]> git.sur5r.net Git - bacula/bacula/blob - bacula/configure
96f9a167368e9f1787f259e6c18fef412dbd95ea
[bacula/bacula] / bacula / configure
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.68 for bacula 7.0.0.
4 #
5 #
6 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
7 # 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010 Free Software
8 # Foundation, Inc.
9 #
10 #
11 # This configure script is free software; the Free Software Foundation
12 # gives unlimited permission to copy, distribute and modify it.
13 ## -------------------- ##
14 ## M4sh Initialization. ##
15 ## -------------------- ##
16
17 # Be more Bourne compatible
18 DUALCASE=1; export DUALCASE # for MKS sh
19 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
20   emulate sh
21   NULLCMD=:
22   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
23   # is contrary to our usage.  Disable this feature.
24   alias -g '${1+"$@"}'='"$@"'
25   setopt NO_GLOB_SUBST
26 else
27   case `(set -o) 2>/dev/null` in #(
28   *posix*) :
29     set -o posix ;; #(
30   *) :
31      ;;
32 esac
33 fi
34
35
36 as_nl='
37 '
38 export as_nl
39 # Printing a long string crashes Solaris 7 /usr/bin/printf.
40 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
41 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
42 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
43 # Prefer a ksh shell builtin over an external printf program on Solaris,
44 # but without wasting forks for bash or zsh.
45 if test -z "$BASH_VERSION$ZSH_VERSION" \
46     && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
47   as_echo='print -r --'
48   as_echo_n='print -rn --'
49 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
50   as_echo='printf %s\n'
51   as_echo_n='printf %s'
52 else
53   if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
54     as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
55     as_echo_n='/usr/ucb/echo -n'
56   else
57     as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
58     as_echo_n_body='eval
59       arg=$1;
60       case $arg in #(
61       *"$as_nl"*)
62         expr "X$arg" : "X\\(.*\\)$as_nl";
63         arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
64       esac;
65       expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
66     '
67     export as_echo_n_body
68     as_echo_n='sh -c $as_echo_n_body as_echo'
69   fi
70   export as_echo_body
71   as_echo='sh -c $as_echo_body as_echo'
72 fi
73
74 # The user is always right.
75 if test "${PATH_SEPARATOR+set}" != set; then
76   PATH_SEPARATOR=:
77   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
78     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
79       PATH_SEPARATOR=';'
80   }
81 fi
82
83
84 # IFS
85 # We need space, tab and new line, in precisely that order.  Quoting is
86 # there to prevent editors from complaining about space-tab.
87 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
88 # splitting by setting IFS to empty value.)
89 IFS=" ""        $as_nl"
90
91 # Find who we are.  Look in the path if we contain no directory separator.
92 as_myself=
93 case $0 in #((
94   *[\\/]* ) as_myself=$0 ;;
95   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
96 for as_dir in $PATH
97 do
98   IFS=$as_save_IFS
99   test -z "$as_dir" && as_dir=.
100     test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
101   done
102 IFS=$as_save_IFS
103
104      ;;
105 esac
106 # We did not find ourselves, most probably we were run as `sh COMMAND'
107 # in which case we are not to be found in the path.
108 if test "x$as_myself" = x; then
109   as_myself=$0
110 fi
111 if test ! -f "$as_myself"; then
112   $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
113   exit 1
114 fi
115
116 # Unset variables that we do not need and which cause bugs (e.g. in
117 # pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
118 # suppresses any "Segmentation fault" message there.  '((' could
119 # trigger a bug in pdksh 5.2.14.
120 for as_var in BASH_ENV ENV MAIL MAILPATH
121 do eval test x\${$as_var+set} = xset \
122   && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
123 done
124 PS1='$ '
125 PS2='> '
126 PS4='+ '
127
128 # NLS nuisances.
129 LC_ALL=C
130 export LC_ALL
131 LANGUAGE=C
132 export LANGUAGE
133
134 # CDPATH.
135 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
136
137 if test "x$CONFIG_SHELL" = x; then
138   as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
139   emulate sh
140   NULLCMD=:
141   # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
142   # is contrary to our usage.  Disable this feature.
143   alias -g '\${1+\"\$@\"}'='\"\$@\"'
144   setopt NO_GLOB_SUBST
145 else
146   case \`(set -o) 2>/dev/null\` in #(
147   *posix*) :
148     set -o posix ;; #(
149   *) :
150      ;;
151 esac
152 fi
153 "
154   as_required="as_fn_return () { (exit \$1); }
155 as_fn_success () { as_fn_return 0; }
156 as_fn_failure () { as_fn_return 1; }
157 as_fn_ret_success () { return 0; }
158 as_fn_ret_failure () { return 1; }
159
160 exitcode=0
161 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
162 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
163 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
164 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
165 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
166
167 else
168   exitcode=1; echo positional parameters were not saved.
169 fi
170 test x\$exitcode = x0 || exit 1"
171   as_suggested="  as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
172   as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
173   eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
174   test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
175 test \$(( 1 + 1 )) = 2 || exit 1
176
177   test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
178     ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
179     ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
180     ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
181     PATH=/empty FPATH=/empty; export PATH FPATH
182     test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
183       || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1"
184   if (eval "$as_required") 2>/dev/null; then :
185   as_have_required=yes
186 else
187   as_have_required=no
188 fi
189   if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
190
191 else
192   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
193 as_found=false
194 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
195 do
196   IFS=$as_save_IFS
197   test -z "$as_dir" && as_dir=.
198   as_found=:
199   case $as_dir in #(
200          /*)
201            for as_base in sh bash ksh sh5; do
202              # Try only shells that exist, to save several forks.
203              as_shell=$as_dir/$as_base
204              if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
205                     { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
206   CONFIG_SHELL=$as_shell as_have_required=yes
207                    if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
208   break 2
209 fi
210 fi
211            done;;
212        esac
213   as_found=false
214 done
215 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
216               { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
217   CONFIG_SHELL=$SHELL as_have_required=yes
218 fi; }
219 IFS=$as_save_IFS
220
221
222       if test "x$CONFIG_SHELL" != x; then :
223   # We cannot yet assume a decent shell, so we have to provide a
224         # neutralization value for shells without unset; and this also
225         # works around shells that cannot unset nonexistent variables.
226         # Preserve -v and -x to the replacement shell.
227         BASH_ENV=/dev/null
228         ENV=/dev/null
229         (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
230         export CONFIG_SHELL
231         case $- in # ((((
232           *v*x* | *x*v* ) as_opts=-vx ;;
233           *v* ) as_opts=-v ;;
234           *x* ) as_opts=-x ;;
235           * ) as_opts= ;;
236         esac
237         exec "$CONFIG_SHELL" $as_opts "$as_myself" ${1+"$@"}
238 fi
239
240     if test x$as_have_required = xno; then :
241   $as_echo "$0: This script requires a shell more modern than all"
242   $as_echo "$0: the shells that I found on your system."
243   if test x${ZSH_VERSION+set} = xset ; then
244     $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
245     $as_echo "$0: be upgraded to zsh 4.3.4 or later."
246   else
247     $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
248 $0: including any error possibly output before this
249 $0: message. Then install a modern shell, or manually run
250 $0: the script under such a shell if you do have one."
251   fi
252   exit 1
253 fi
254 fi
255 fi
256 SHELL=${CONFIG_SHELL-/bin/sh}
257 export SHELL
258 # Unset more variables known to interfere with behavior of common tools.
259 CLICOLOR_FORCE= GREP_OPTIONS=
260 unset CLICOLOR_FORCE GREP_OPTIONS
261
262 ## --------------------- ##
263 ## M4sh Shell Functions. ##
264 ## --------------------- ##
265 # as_fn_unset VAR
266 # ---------------
267 # Portably unset VAR.
268 as_fn_unset ()
269 {
270   { eval $1=; unset $1;}
271 }
272 as_unset=as_fn_unset
273
274 # as_fn_set_status STATUS
275 # -----------------------
276 # Set $? to STATUS, without forking.
277 as_fn_set_status ()
278 {
279   return $1
280 } # as_fn_set_status
281
282 # as_fn_exit STATUS
283 # -----------------
284 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
285 as_fn_exit ()
286 {
287   set +e
288   as_fn_set_status $1
289   exit $1
290 } # as_fn_exit
291
292 # as_fn_mkdir_p
293 # -------------
294 # Create "$as_dir" as a directory, including parents if necessary.
295 as_fn_mkdir_p ()
296 {
297
298   case $as_dir in #(
299   -*) as_dir=./$as_dir;;
300   esac
301   test -d "$as_dir" || eval $as_mkdir_p || {
302     as_dirs=
303     while :; do
304       case $as_dir in #(
305       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
306       *) as_qdir=$as_dir;;
307       esac
308       as_dirs="'$as_qdir' $as_dirs"
309       as_dir=`$as_dirname -- "$as_dir" ||
310 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
311          X"$as_dir" : 'X\(//\)[^/]' \| \
312          X"$as_dir" : 'X\(//\)$' \| \
313          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
314 $as_echo X"$as_dir" |
315     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
316             s//\1/
317             q
318           }
319           /^X\(\/\/\)[^/].*/{
320             s//\1/
321             q
322           }
323           /^X\(\/\/\)$/{
324             s//\1/
325             q
326           }
327           /^X\(\/\).*/{
328             s//\1/
329             q
330           }
331           s/.*/./; q'`
332       test -d "$as_dir" && break
333     done
334     test -z "$as_dirs" || eval "mkdir $as_dirs"
335   } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
336
337
338 } # as_fn_mkdir_p
339 # as_fn_append VAR VALUE
340 # ----------------------
341 # Append the text in VALUE to the end of the definition contained in VAR. Take
342 # advantage of any shell optimizations that allow amortized linear growth over
343 # repeated appends, instead of the typical quadratic growth present in naive
344 # implementations.
345 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
346   eval 'as_fn_append ()
347   {
348     eval $1+=\$2
349   }'
350 else
351   as_fn_append ()
352   {
353     eval $1=\$$1\$2
354   }
355 fi # as_fn_append
356
357 # as_fn_arith ARG...
358 # ------------------
359 # Perform arithmetic evaluation on the ARGs, and store the result in the
360 # global $as_val. Take advantage of shells that can avoid forks. The arguments
361 # must be portable across $(()) and expr.
362 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
363   eval 'as_fn_arith ()
364   {
365     as_val=$(( $* ))
366   }'
367 else
368   as_fn_arith ()
369   {
370     as_val=`expr "$@" || test $? -eq 1`
371   }
372 fi # as_fn_arith
373
374
375 # as_fn_error STATUS ERROR [LINENO LOG_FD]
376 # ----------------------------------------
377 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
378 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
379 # script with STATUS, using 1 if that was 0.
380 as_fn_error ()
381 {
382   as_status=$1; test $as_status -eq 0 && as_status=1
383   if test "$4"; then
384     as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
385     $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
386   fi
387   $as_echo "$as_me: error: $2" >&2
388   as_fn_exit $as_status
389 } # as_fn_error
390
391 if expr a : '\(a\)' >/dev/null 2>&1 &&
392    test "X`expr 00001 : '.*\(...\)'`" = X001; then
393   as_expr=expr
394 else
395   as_expr=false
396 fi
397
398 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
399   as_basename=basename
400 else
401   as_basename=false
402 fi
403
404 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
405   as_dirname=dirname
406 else
407   as_dirname=false
408 fi
409
410 as_me=`$as_basename -- "$0" ||
411 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
412          X"$0" : 'X\(//\)$' \| \
413          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
414 $as_echo X/"$0" |
415     sed '/^.*\/\([^/][^/]*\)\/*$/{
416             s//\1/
417             q
418           }
419           /^X\/\(\/\/\)$/{
420             s//\1/
421             q
422           }
423           /^X\/\(\/\).*/{
424             s//\1/
425             q
426           }
427           s/.*/./; q'`
428
429 # Avoid depending upon Character Ranges.
430 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
431 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
432 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
433 as_cr_digits='0123456789'
434 as_cr_alnum=$as_cr_Letters$as_cr_digits
435
436
437   as_lineno_1=$LINENO as_lineno_1a=$LINENO
438   as_lineno_2=$LINENO as_lineno_2a=$LINENO
439   eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
440   test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
441   # Blame Lee E. McMahon (1931-1989) for sed's syntax.  :-)
442   sed -n '
443     p
444     /[$]LINENO/=
445   ' <$as_myself |
446     sed '
447       s/[$]LINENO.*/&-/
448       t lineno
449       b
450       :lineno
451       N
452       :loop
453       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
454       t loop
455       s/-\n.*//
456     ' >$as_me.lineno &&
457   chmod +x "$as_me.lineno" ||
458     { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
459
460   # Don't try to exec as it changes $[0], causing all sort of problems
461   # (the dirname of $[0] is not the place where we might find the
462   # original and so on.  Autoconf is especially sensitive to this).
463   . "./$as_me.lineno"
464   # Exit status is that of the last command.
465   exit
466 }
467
468 ECHO_C= ECHO_N= ECHO_T=
469 case `echo -n x` in #(((((
470 -n*)
471   case `echo 'xy\c'` in
472   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
473   xy)  ECHO_C='\c';;
474   *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
475        ECHO_T=' ';;
476   esac;;
477 *)
478   ECHO_N='-n';;
479 esac
480
481 rm -f conf$$ conf$$.exe conf$$.file
482 if test -d conf$$.dir; then
483   rm -f conf$$.dir/conf$$.file
484 else
485   rm -f conf$$.dir
486   mkdir conf$$.dir 2>/dev/null
487 fi
488 if (echo >conf$$.file) 2>/dev/null; then
489   if ln -s conf$$.file conf$$ 2>/dev/null; then
490     as_ln_s='ln -s'
491     # ... but there are two gotchas:
492     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
493     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
494     # In both cases, we have to default to `cp -p'.
495     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
496       as_ln_s='cp -p'
497   elif ln conf$$.file conf$$ 2>/dev/null; then
498     as_ln_s=ln
499   else
500     as_ln_s='cp -p'
501   fi
502 else
503   as_ln_s='cp -p'
504 fi
505 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
506 rmdir conf$$.dir 2>/dev/null
507
508 if mkdir -p . 2>/dev/null; then
509   as_mkdir_p='mkdir -p "$as_dir"'
510 else
511   test -d ./-p && rmdir ./-p
512   as_mkdir_p=false
513 fi
514
515 if test -x / >/dev/null 2>&1; then
516   as_test_x='test -x'
517 else
518   if ls -dL / >/dev/null 2>&1; then
519     as_ls_L_option=L
520   else
521     as_ls_L_option=
522   fi
523   as_test_x='
524     eval sh -c '\''
525       if test -d "$1"; then
526         test -d "$1/.";
527       else
528         case $1 in #(
529         -*)set "./$1";;
530         esac;
531         case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
532         ???[sx]*):;;*)false;;esac;fi
533     '\'' sh
534   '
535 fi
536 as_executable_p=$as_test_x
537
538 # Sed expression to map a string onto a valid CPP name.
539 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
540
541 # Sed expression to map a string onto a valid variable name.
542 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
543
544 SHELL=${CONFIG_SHELL-/bin/sh}
545
546
547 test -n "$DJDIR" || exec 7<&0 </dev/null
548 exec 6>&1
549
550 # Name of the host.
551 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
552 # so uname gets run too.
553 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
554
555 #
556 # Initializations.
557 #
558 ac_default_prefix=/usr/local
559 ac_clean_files=
560 ac_config_libobj_dir=.
561 LIBOBJS=
562 cross_compiling=no
563 subdirs=
564 MFLAGS=
565 MAKEFLAGS=
566
567 # Identity of this package.
568 PACKAGE_NAME='bacula'
569 PACKAGE_TARNAME='bacula'
570 PACKAGE_VERSION='7.0.0'
571 PACKAGE_STRING='bacula 7.0.0'
572 PACKAGE_BUGREPORT=''
573 PACKAGE_URL=''
574
575 ac_unique_file="src/version.h"
576 # Factoring default headers for most tests.
577 ac_includes_default="\
578 #include <stdio.h>
579 #ifdef HAVE_SYS_TYPES_H
580 # include <sys/types.h>
581 #endif
582 #ifdef HAVE_SYS_STAT_H
583 # include <sys/stat.h>
584 #endif
585 #ifdef STDC_HEADERS
586 # include <stdlib.h>
587 # include <stddef.h>
588 #else
589 # ifdef HAVE_STDLIB_H
590 #  include <stdlib.h>
591 # endif
592 #endif
593 #ifdef HAVE_STRING_H
594 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
595 #  include <memory.h>
596 # endif
597 # include <string.h>
598 #endif
599 #ifdef HAVE_STRINGS_H
600 # include <strings.h>
601 #endif
602 #ifdef HAVE_INTTYPES_H
603 # include <inttypes.h>
604 #endif
605 #ifdef HAVE_STDINT_H
606 # include <stdint.h>
607 #endif
608 #ifdef HAVE_UNISTD_H
609 # include <unistd.h>
610 #endif"
611
612 ac_header_list=
613 ac_subst_vars='LTLIBOBJS
614 COMPRESS_MANPAGES
615 DISTVER
616 DISTNAME
617 MACOSX
618 PSCMD
619 TAPEDRIVE
620 SYSTEMD_UNITDIR
621 OBJLIST
622 WRAPLIBS
623 WLDFLAGS
624 WCFLAGS
625 DLIB
626 DINCLUDE
627 DEBUG
628 FDLIBS
629 CAP_LIBS
630 LZO_LIBS
631 LZO_INC
632 AFS_LIBS
633 AFS_CFLAGS
634 ZLIBS
635 LIBOBJS
636 X_EXTRA_LIBS
637 X_LIBS
638 X_PRE_LIBS
639 X_CFLAGS
640 XMKMF
641 GETCONF
642 SHARED_CATALOG_TARGETS
643 DEFAULT_DB_TYPE
644 DB_LIBS
645 DB_BACKENDS
646 uncomment_dbi
647 SQLITE_BINDIR
648 SQLITE_INCLUDE
649 SQLITE_LIBS
650 MYSQL_BINDIR
651 MYSQL_INCLUDE
652 MYSQL_LIBS
653 POSTGRESQL_BINDIR
654 POSTGRESQL_INCLUDE
655 POSTGRESQL_LIBS
656 SBINPERM
657 fd_group
658 fd_user
659 sd_group
660 sd_user
661 dir_group
662 dir_user
663 db_port
664 db_password
665 db_user
666 db_name
667 mon_sd_password
668 mon_fd_password
669 mon_dir_password
670 sd_password
671 fd_password
672 dir_password
673 sd_port
674 fd_port
675 dir_port
676 baseport
677 subsysdir
678 piddir
679 smtp_host
680 job_email
681 dump_email
682 plugindir
683 logdir
684 bsrdir
685 scriptdir
686 hostname
687 basename
688 archivedir
689 working_dir
690 OPENSSL_INC
691 OPENSSL_LIBS
692 PYTHON_INCDIR
693 PYTHON_LIBS
694 READLINE_SRC
695 CONS_LDFLAGS
696 CONS_LIBS
697 CONS_SRC
698 CONS_OBJ
699 CONS_INC
700 STORED_DIR
701 DIR_TOOLS
702 DIRD_DIR
703 ALL_DIRS
704 STATIC_CONS
705 STATIC_DIR
706 STATIC_SD
707 STATIC_FD
708 TTOOL_LDFLAGS
709 QWT
710 QWT_LIB
711 QWT_LDFLAGS
712 QWT_INC
713 BAT_DIR
714 INTL_LIBTOOL_SUFFIX_PREFIX
715 INTLOBJS
716 GENCAT
717 INSTOBJEXT
718 DATADIRNAME
719 CATOBJEXT
720 USE_INCLUDED_LIBINTL
721 BUILD_INCLUDED_LIBINTL
722 INTLBISON
723 HAVE_WPRINTF
724 HAVE_SNPRINTF
725 HAVE_ASPRINTF
726 HAVE_POSIX_PRINTF
727 GLIBC21
728 ALLOCA
729 GLIBC2
730 POSUB
731 LTLIBINTL
732 LIBINTL
733 INTLLIBS
734 LTLIBICONV
735 LIBICONV
736 INTL_MACOSX_LIBS
737 MSGMERGE
738 XGETTEXT
739 GMSGFMT
740 MSGFMT
741 USE_NLS
742 MKINSTALLDIRS
743 SET_MAKE
744 HAVE_DARWIN_OS_FALSE
745 HAVE_DARWIN_OS_TRUE
746 HAVE_IRIX_OS_FALSE
747 HAVE_IRIX_OS_TRUE
748 HAVE_SGI_OS_FALSE
749 HAVE_SGI_OS_TRUE
750 HAVE_BSDI_OS_FALSE
751 HAVE_BSDI_OS_TRUE
752 HAVE_OPENBSD_OS_FALSE
753 HAVE_OPENBSD_OS_TRUE
754 HAVE_NETBSD_OS_FALSE
755 HAVE_NETBSD_OS_TRUE
756 HAVE_FREEBSD_OS_FALSE
757 HAVE_FREEBSD_OS_TRUE
758 HAVE_LINUX_OS_FALSE
759 HAVE_LINUX_OS_TRUE
760 HAVE_HPUX_OS_FALSE
761 HAVE_HPUX_OS_TRUE
762 HAVE_AIX_OS_FALSE
763 HAVE_AIX_OS_TRUE
764 HAVE_OSF1_OS_FALSE
765 HAVE_OSF1_OS_TRUE
766 HAVE_HURD_OS_FALSE
767 HAVE_HURD_OS_TRUE
768 HAVE_SUN_OS_FALSE
769 HAVE_SUN_OS_TRUE
770 INCLUDE_UNINSTALL_TARGET
771 INCLUDE_INSTALL_TARGET
772 FD_PLUGIN_DIR
773 QMAKE_LIBTOOL
774 LIBTOOL_CLEAN_TARGET
775 LIBTOOL_UNINSTALL_TARGET
776 LIBTOOL_INSTALL_TARGET
777 DEFAULT_SHARED_OBJECT_TYPE
778 DEFAULT_ARCHIVE_TYPE
779 DEFAULT_OBJECT_TYPE
780 LIBADD_DL
781 LT_DLPREOPEN
782 LIBADD_DLD_LINK
783 LIBADD_SHL_LOAD
784 LIBADD_DLOPEN
785 LT_DLLOADERS
786 CXXCPP
787 OTOOL64
788 OTOOL
789 LIPO
790 NMEDIT
791 DSYMUTIL
792 MANIFEST_TOOL
793 RANLIB
794 STRIP
795 ac_ct_AR
796 DLLTOOL
797 OBJDUMP
798 LN_S
799 NM
800 ac_ct_DUMPBIN
801 DUMPBIN
802 LD
803 FGREP
804 host_os
805 host_vendor
806 host_cpu
807 host
808 build_os
809 build_vendor
810 build_cpu
811 build
812 LIBTOOL
813 LOCAL_DEFS
814 LOCAL_LDFLAGS
815 LOCAL_CFLAGS
816 LOCAL_LIBS
817 MAKE_SHELL
818 ARFLAGS
819 AWK
820 PIDOF
821 CDRECORD
822 GMAKE
823 QMAKE
824 PKGCONFIG
825 DVDRWFORMAT
826 DVDRWMEDIAINFO
827 GROWISOFS
828 PYTHON
829 MKISOFS
830 DD
831 MTX
832 OPENSSL
833 AR
834 TBL
835 CMP
836 ECHO
837 SED
838 CP
839 REMOVE
840 MV
841 INSTALL_DATA
842 INSTALL_SCRIPT
843 INSTALL_PROGRAM
844 EGREP
845 GREP
846 CPP
847 ac_ct_CXX
848 CXXFLAGS
849 CXX
850 OBJEXT
851 EXEEXT
852 ac_ct_CC
853 CPPFLAGS
854 LDFLAGS
855 CFLAGS
856 CC
857 LIBBACFIND_LT_RELEASE
858 LIBBACCATS_LT_RELEASE
859 LIBBACSQL_LT_RELEASE
860 LIBBACPY_LT_RELEASE
861 LIBBACCFG_LT_RELEASE
862 LIBBAC_LT_RELEASE
863 BQT4_VERSION
864 DEPKGS_VERSION
865 DEPKGS_QT_VERSION
866 BDB_VERSION
867 post_host
868 BACULA
869 LSMDATE
870 DATE
871 VERSION
872 FALSEPRG
873 TRUEPRG
874 TOP_DIR
875 BUILD_DIR
876 target_alias
877 host_alias
878 build_alias
879 LIBS
880 ECHO_T
881 ECHO_N
882 ECHO_C
883 DEFS
884 mandir
885 localedir
886 libdir
887 psdir
888 pdfdir
889 dvidir
890 htmldir
891 infodir
892 docdir
893 oldincludedir
894 includedir
895 localstatedir
896 sharedstatedir
897 sysconfdir
898 datadir
899 datarootdir
900 libexecdir
901 sbindir
902 bindir
903 program_transform_name
904 prefix
905 exec_prefix
906 PACKAGE_URL
907 PACKAGE_BUGREPORT
908 PACKAGE_STRING
909 PACKAGE_VERSION
910 PACKAGE_TARNAME
911 PACKAGE_NAME
912 PATH_SEPARATOR
913 SHELL'
914 ac_subst_files='MCOMMON'
915 ac_user_opts='
916 enable_option_checking
917 enable_libtool
918 enable_shared
919 enable_static
920 with_pic
921 enable_fast_install
922 with_gnu_ld
923 with_sysroot
924 enable_libtool_lock
925 enable_includes
926 enable_nls
927 enable_rpath
928 with_libiconv_prefix
929 with_libintl_prefix
930 with_included_gettext
931 enable_bat
932 enable_smartalloc
933 enable_lockmgr
934 enable_static_tools
935 enable_static_fd
936 enable_static_sd
937 enable_static_dir
938 enable_static_cons
939 enable_client_only
940 enable_build_dird
941 enable_build_stored
942 enable_conio
943 enable_ipv6
944 enable_readline
945 with_readline
946 with_python
947 with_tcp_wrappers
948 with_openssl
949 with_working_dir
950 with_archivedir
951 with_basename
952 with_hostname
953 with_scriptdir
954 with_bsrdir
955 with_logdir
956 with_plugindir
957 with_dump_email
958 with_job_email
959 with_smtp_host
960 with_pid_dir
961 with_subsys_dir
962 with_baseport
963 with_dir_password
964 with_fd_password
965 with_sd_password
966 with_mon_dir_password
967 with_mon_fd_password
968 with_mon_sd_password
969 with_db_name
970 with_db_user
971 with_db_password
972 with_db_port
973 with_dir_user
974 with_dir_group
975 with_sd_user
976 with_sd_group
977 with_fd_user
978 with_fd_group
979 with_sbin_perm
980 enable_batch_insert
981 with_postgresql
982 with_mysql
983 with_embedded_mysql
984 with_sqlite3
985 enable_largefile
986 with_x
987 enable_afs
988 with_afsdir
989 enable_lzo
990 with_lzo
991 enable_acl
992 enable_xattr
993 with_systemd
994 '
995       ac_precious_vars='build_alias
996 host_alias
997 target_alias
998 CC
999 CFLAGS
1000 LDFLAGS
1001 LIBS
1002 CPPFLAGS
1003 CXX
1004 CXXFLAGS
1005 CCC
1006 CPP
1007 CXXCPP
1008 XMKMF'
1009
1010
1011 # Initialize some variables set by options.
1012 ac_init_help=
1013 ac_init_version=false
1014 ac_unrecognized_opts=
1015 ac_unrecognized_sep=
1016 # The variables have the same names as the options, with
1017 # dashes changed to underlines.
1018 cache_file=/dev/null
1019 exec_prefix=NONE
1020 no_create=
1021 no_recursion=
1022 prefix=NONE
1023 program_prefix=NONE
1024 program_suffix=NONE
1025 program_transform_name=s,x,x,
1026 silent=
1027 site=
1028 srcdir=
1029 verbose=
1030 x_includes=NONE
1031 x_libraries=NONE
1032
1033 # Installation directory options.
1034 # These are left unexpanded so users can "make install exec_prefix=/foo"
1035 # and all the variables that are supposed to be based on exec_prefix
1036 # by default will actually change.
1037 # Use braces instead of parens because sh, perl, etc. also accept them.
1038 # (The list follows the same order as the GNU Coding Standards.)
1039 bindir='${exec_prefix}/bin'
1040 sbindir='${exec_prefix}/sbin'
1041 libexecdir='${exec_prefix}/libexec'
1042 datarootdir='${prefix}/share'
1043 datadir='${datarootdir}'
1044 sysconfdir='${prefix}/etc'
1045 sharedstatedir='${prefix}/com'
1046 localstatedir='${prefix}/var'
1047 includedir='${prefix}/include'
1048 oldincludedir='/usr/include'
1049 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
1050 infodir='${datarootdir}/info'
1051 htmldir='${docdir}'
1052 dvidir='${docdir}'
1053 pdfdir='${docdir}'
1054 psdir='${docdir}'
1055 libdir='${exec_prefix}/lib'
1056 localedir='${datarootdir}/locale'
1057 mandir='${datarootdir}/man'
1058
1059 ac_prev=
1060 ac_dashdash=
1061 for ac_option
1062 do
1063   # If the previous option needs an argument, assign it.
1064   if test -n "$ac_prev"; then
1065     eval $ac_prev=\$ac_option
1066     ac_prev=
1067     continue
1068   fi
1069
1070   case $ac_option in
1071   *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1072   *=)   ac_optarg= ;;
1073   *)    ac_optarg=yes ;;
1074   esac
1075
1076   # Accept the important Cygnus configure options, so we can diagnose typos.
1077
1078   case $ac_dashdash$ac_option in
1079   --)
1080     ac_dashdash=yes ;;
1081
1082   -bindir | --bindir | --bindi | --bind | --bin | --bi)
1083     ac_prev=bindir ;;
1084   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1085     bindir=$ac_optarg ;;
1086
1087   -build | --build | --buil | --bui | --bu)
1088     ac_prev=build_alias ;;
1089   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1090     build_alias=$ac_optarg ;;
1091
1092   -cache-file | --cache-file | --cache-fil | --cache-fi \
1093   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1094     ac_prev=cache_file ;;
1095   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1096   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1097     cache_file=$ac_optarg ;;
1098
1099   --config-cache | -C)
1100     cache_file=config.cache ;;
1101
1102   -datadir | --datadir | --datadi | --datad)
1103     ac_prev=datadir ;;
1104   -datadir=* | --datadir=* | --datadi=* | --datad=*)
1105     datadir=$ac_optarg ;;
1106
1107   -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1108   | --dataroo | --dataro | --datar)
1109     ac_prev=datarootdir ;;
1110   -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1111   | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1112     datarootdir=$ac_optarg ;;
1113
1114   -disable-* | --disable-*)
1115     ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1116     # Reject names that are not valid shell variable names.
1117     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1118       as_fn_error $? "invalid feature name: $ac_useropt"
1119     ac_useropt_orig=$ac_useropt
1120     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1121     case $ac_user_opts in
1122       *"
1123 "enable_$ac_useropt"
1124 "*) ;;
1125       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1126          ac_unrecognized_sep=', ';;
1127     esac
1128     eval enable_$ac_useropt=no ;;
1129
1130   -docdir | --docdir | --docdi | --doc | --do)
1131     ac_prev=docdir ;;
1132   -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1133     docdir=$ac_optarg ;;
1134
1135   -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1136     ac_prev=dvidir ;;
1137   -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1138     dvidir=$ac_optarg ;;
1139
1140   -enable-* | --enable-*)
1141     ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1142     # Reject names that are not valid shell variable names.
1143     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1144       as_fn_error $? "invalid feature name: $ac_useropt"
1145     ac_useropt_orig=$ac_useropt
1146     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1147     case $ac_user_opts in
1148       *"
1149 "enable_$ac_useropt"
1150 "*) ;;
1151       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1152          ac_unrecognized_sep=', ';;
1153     esac
1154     eval enable_$ac_useropt=\$ac_optarg ;;
1155
1156   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1157   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1158   | --exec | --exe | --ex)
1159     ac_prev=exec_prefix ;;
1160   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1161   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1162   | --exec=* | --exe=* | --ex=*)
1163     exec_prefix=$ac_optarg ;;
1164
1165   -gas | --gas | --ga | --g)
1166     # Obsolete; use --with-gas.
1167     with_gas=yes ;;
1168
1169   -help | --help | --hel | --he | -h)
1170     ac_init_help=long ;;
1171   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1172     ac_init_help=recursive ;;
1173   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1174     ac_init_help=short ;;
1175
1176   -host | --host | --hos | --ho)
1177     ac_prev=host_alias ;;
1178   -host=* | --host=* | --hos=* | --ho=*)
1179     host_alias=$ac_optarg ;;
1180
1181   -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1182     ac_prev=htmldir ;;
1183   -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1184   | --ht=*)
1185     htmldir=$ac_optarg ;;
1186
1187   -includedir | --includedir | --includedi | --included | --include \
1188   | --includ | --inclu | --incl | --inc)
1189     ac_prev=includedir ;;
1190   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1191   | --includ=* | --inclu=* | --incl=* | --inc=*)
1192     includedir=$ac_optarg ;;
1193
1194   -infodir | --infodir | --infodi | --infod | --info | --inf)
1195     ac_prev=infodir ;;
1196   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1197     infodir=$ac_optarg ;;
1198
1199   -libdir | --libdir | --libdi | --libd)
1200     ac_prev=libdir ;;
1201   -libdir=* | --libdir=* | --libdi=* | --libd=*)
1202     libdir=$ac_optarg ;;
1203
1204   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1205   | --libexe | --libex | --libe)
1206     ac_prev=libexecdir ;;
1207   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1208   | --libexe=* | --libex=* | --libe=*)
1209     libexecdir=$ac_optarg ;;
1210
1211   -localedir | --localedir | --localedi | --localed | --locale)
1212     ac_prev=localedir ;;
1213   -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1214     localedir=$ac_optarg ;;
1215
1216   -localstatedir | --localstatedir | --localstatedi | --localstated \
1217   | --localstate | --localstat | --localsta | --localst | --locals)
1218     ac_prev=localstatedir ;;
1219   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1220   | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1221     localstatedir=$ac_optarg ;;
1222
1223   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1224     ac_prev=mandir ;;
1225   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1226     mandir=$ac_optarg ;;
1227
1228   -nfp | --nfp | --nf)
1229     # Obsolete; use --without-fp.
1230     with_fp=no ;;
1231
1232   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1233   | --no-cr | --no-c | -n)
1234     no_create=yes ;;
1235
1236   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1237   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1238     no_recursion=yes ;;
1239
1240   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1241   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1242   | --oldin | --oldi | --old | --ol | --o)
1243     ac_prev=oldincludedir ;;
1244   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1245   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1246   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1247     oldincludedir=$ac_optarg ;;
1248
1249   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1250     ac_prev=prefix ;;
1251   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1252     prefix=$ac_optarg ;;
1253
1254   -program-prefix | --program-prefix | --program-prefi | --program-pref \
1255   | --program-pre | --program-pr | --program-p)
1256     ac_prev=program_prefix ;;
1257   -program-prefix=* | --program-prefix=* | --program-prefi=* \
1258   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1259     program_prefix=$ac_optarg ;;
1260
1261   -program-suffix | --program-suffix | --program-suffi | --program-suff \
1262   | --program-suf | --program-su | --program-s)
1263     ac_prev=program_suffix ;;
1264   -program-suffix=* | --program-suffix=* | --program-suffi=* \
1265   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1266     program_suffix=$ac_optarg ;;
1267
1268   -program-transform-name | --program-transform-name \
1269   | --program-transform-nam | --program-transform-na \
1270   | --program-transform-n | --program-transform- \
1271   | --program-transform | --program-transfor \
1272   | --program-transfo | --program-transf \
1273   | --program-trans | --program-tran \
1274   | --progr-tra | --program-tr | --program-t)
1275     ac_prev=program_transform_name ;;
1276   -program-transform-name=* | --program-transform-name=* \
1277   | --program-transform-nam=* | --program-transform-na=* \
1278   | --program-transform-n=* | --program-transform-=* \
1279   | --program-transform=* | --program-transfor=* \
1280   | --program-transfo=* | --program-transf=* \
1281   | --program-trans=* | --program-tran=* \
1282   | --progr-tra=* | --program-tr=* | --program-t=*)
1283     program_transform_name=$ac_optarg ;;
1284
1285   -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1286     ac_prev=pdfdir ;;
1287   -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1288     pdfdir=$ac_optarg ;;
1289
1290   -psdir | --psdir | --psdi | --psd | --ps)
1291     ac_prev=psdir ;;
1292   -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1293     psdir=$ac_optarg ;;
1294
1295   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1296   | -silent | --silent | --silen | --sile | --sil)
1297     silent=yes ;;
1298
1299   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1300     ac_prev=sbindir ;;
1301   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1302   | --sbi=* | --sb=*)
1303     sbindir=$ac_optarg ;;
1304
1305   -sharedstatedir | --sharedstatedir | --sharedstatedi \
1306   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1307   | --sharedst | --shareds | --shared | --share | --shar \
1308   | --sha | --sh)
1309     ac_prev=sharedstatedir ;;
1310   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1311   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1312   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1313   | --sha=* | --sh=*)
1314     sharedstatedir=$ac_optarg ;;
1315
1316   -site | --site | --sit)
1317     ac_prev=site ;;
1318   -site=* | --site=* | --sit=*)
1319     site=$ac_optarg ;;
1320
1321   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1322     ac_prev=srcdir ;;
1323   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1324     srcdir=$ac_optarg ;;
1325
1326   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1327   | --syscon | --sysco | --sysc | --sys | --sy)
1328     ac_prev=sysconfdir ;;
1329   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1330   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1331     sysconfdir=$ac_optarg ;;
1332
1333   -target | --target | --targe | --targ | --tar | --ta | --t)
1334     ac_prev=target_alias ;;
1335   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1336     target_alias=$ac_optarg ;;
1337
1338   -v | -verbose | --verbose | --verbos | --verbo | --verb)
1339     verbose=yes ;;
1340
1341   -version | --version | --versio | --versi | --vers | -V)
1342     ac_init_version=: ;;
1343
1344   -with-* | --with-*)
1345     ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1346     # Reject names that are not valid shell variable names.
1347     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1348       as_fn_error $? "invalid package name: $ac_useropt"
1349     ac_useropt_orig=$ac_useropt
1350     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1351     case $ac_user_opts in
1352       *"
1353 "with_$ac_useropt"
1354 "*) ;;
1355       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1356          ac_unrecognized_sep=', ';;
1357     esac
1358     eval with_$ac_useropt=\$ac_optarg ;;
1359
1360   -without-* | --without-*)
1361     ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1362     # Reject names that are not valid shell variable names.
1363     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1364       as_fn_error $? "invalid package name: $ac_useropt"
1365     ac_useropt_orig=$ac_useropt
1366     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1367     case $ac_user_opts in
1368       *"
1369 "with_$ac_useropt"
1370 "*) ;;
1371       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1372          ac_unrecognized_sep=', ';;
1373     esac
1374     eval with_$ac_useropt=no ;;
1375
1376   --x)
1377     # Obsolete; use --with-x.
1378     with_x=yes ;;
1379
1380   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1381   | --x-incl | --x-inc | --x-in | --x-i)
1382     ac_prev=x_includes ;;
1383   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1384   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1385     x_includes=$ac_optarg ;;
1386
1387   -x-libraries | --x-libraries | --x-librarie | --x-librari \
1388   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1389     ac_prev=x_libraries ;;
1390   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1391   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1392     x_libraries=$ac_optarg ;;
1393
1394   -*) as_fn_error $? "unrecognized option: \`$ac_option'
1395 Try \`$0 --help' for more information"
1396     ;;
1397
1398   *=*)
1399     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1400     # Reject names that are not valid shell variable names.
1401     case $ac_envvar in #(
1402       '' | [0-9]* | *[!_$as_cr_alnum]* )
1403       as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1404     esac
1405     eval $ac_envvar=\$ac_optarg
1406     export $ac_envvar ;;
1407
1408   *)
1409     # FIXME: should be removed in autoconf 3.0.
1410     $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1411     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1412       $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1413     : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1414     ;;
1415
1416   esac
1417 done
1418
1419 if test -n "$ac_prev"; then
1420   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1421   as_fn_error $? "missing argument to $ac_option"
1422 fi
1423
1424 if test -n "$ac_unrecognized_opts"; then
1425   case $enable_option_checking in
1426     no) ;;
1427     fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1428     *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1429   esac
1430 fi
1431
1432 # Check all directory arguments for consistency.
1433 for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
1434                 datadir sysconfdir sharedstatedir localstatedir includedir \
1435                 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1436                 libdir localedir mandir
1437 do
1438   eval ac_val=\$$ac_var
1439   # Remove trailing slashes.
1440   case $ac_val in
1441     */ )
1442       ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1443       eval $ac_var=\$ac_val;;
1444   esac
1445   # Be sure to have absolute directory names.
1446   case $ac_val in
1447     [\\/$]* | ?:[\\/]* )  continue;;
1448     NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1449   esac
1450   as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1451 done
1452
1453 # There might be people who depend on the old broken behavior: `$host'
1454 # used to hold the argument of --host etc.
1455 # FIXME: To remove some day.
1456 build=$build_alias
1457 host=$host_alias
1458 target=$target_alias
1459
1460 # FIXME: To remove some day.
1461 if test "x$host_alias" != x; then
1462   if test "x$build_alias" = x; then
1463     cross_compiling=maybe
1464     $as_echo "$as_me: WARNING: if you wanted to set the --build type, don't use --host.
1465     If a cross compiler is detected then cross compile mode will be used" >&2
1466   elif test "x$build_alias" != "x$host_alias"; then
1467     cross_compiling=yes
1468   fi
1469 fi
1470
1471 ac_tool_prefix=
1472 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1473
1474 test "$silent" = yes && exec 6>/dev/null
1475
1476
1477 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1478 ac_ls_di=`ls -di .` &&
1479 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1480   as_fn_error $? "working directory cannot be determined"
1481 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1482   as_fn_error $? "pwd does not report name of working directory"
1483
1484
1485 # Find the source files, if location was not specified.
1486 if test -z "$srcdir"; then
1487   ac_srcdir_defaulted=yes
1488   # Try the directory containing this script, then the parent directory.
1489   ac_confdir=`$as_dirname -- "$as_myself" ||
1490 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1491          X"$as_myself" : 'X\(//\)[^/]' \| \
1492          X"$as_myself" : 'X\(//\)$' \| \
1493          X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1494 $as_echo X"$as_myself" |
1495     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1496             s//\1/
1497             q
1498           }
1499           /^X\(\/\/\)[^/].*/{
1500             s//\1/
1501             q
1502           }
1503           /^X\(\/\/\)$/{
1504             s//\1/
1505             q
1506           }
1507           /^X\(\/\).*/{
1508             s//\1/
1509             q
1510           }
1511           s/.*/./; q'`
1512   srcdir=$ac_confdir
1513   if test ! -r "$srcdir/$ac_unique_file"; then
1514     srcdir=..
1515   fi
1516 else
1517   ac_srcdir_defaulted=no
1518 fi
1519 if test ! -r "$srcdir/$ac_unique_file"; then
1520   test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1521   as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1522 fi
1523 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1524 ac_abs_confdir=`(
1525         cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1526         pwd)`
1527 # When building in place, set srcdir=.
1528 if test "$ac_abs_confdir" = "$ac_pwd"; then
1529   srcdir=.
1530 fi
1531 # Remove unnecessary trailing slashes from srcdir.
1532 # Double slashes in file names in object file debugging info
1533 # mess up M-x gdb in Emacs.
1534 case $srcdir in
1535 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1536 esac
1537 for ac_var in $ac_precious_vars; do
1538   eval ac_env_${ac_var}_set=\${${ac_var}+set}
1539   eval ac_env_${ac_var}_value=\$${ac_var}
1540   eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1541   eval ac_cv_env_${ac_var}_value=\$${ac_var}
1542 done
1543
1544 #
1545 # Report the --help message.
1546 #
1547 if test "$ac_init_help" = "long"; then
1548   # Omit some internal or obsolete options to make the list less imposing.
1549   # This message is too long to be a string in the A/UX 3.1 sh.
1550   cat <<_ACEOF
1551 \`configure' configures bacula 7.0.0 to adapt to many kinds of systems.
1552
1553 Usage: $0 [OPTION]... [VAR=VALUE]...
1554
1555 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1556 VAR=VALUE.  See below for descriptions of some of the useful variables.
1557
1558 Defaults for the options are specified in brackets.
1559
1560 Configuration:
1561   -h, --help              display this help and exit
1562       --help=short        display options specific to this package
1563       --help=recursive    display the short help of all the included packages
1564   -V, --version           display version information and exit
1565   -q, --quiet, --silent   do not print \`checking ...' messages
1566       --cache-file=FILE   cache test results in FILE [disabled]
1567   -C, --config-cache      alias for \`--cache-file=config.cache'
1568   -n, --no-create         do not create output files
1569       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1570
1571 Installation directories:
1572   --prefix=PREFIX         install architecture-independent files in PREFIX
1573                           [$ac_default_prefix]
1574   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1575                           [PREFIX]
1576
1577 By default, \`make install' will install all the files in
1578 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1579 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1580 for instance \`--prefix=\$HOME'.
1581
1582 For better control, use the options below.
1583
1584 Fine tuning of the installation directories:
1585   --bindir=DIR            user executables [EPREFIX/bin]
1586   --sbindir=DIR           system admin executables [EPREFIX/sbin]
1587   --libexecdir=DIR        program executables [EPREFIX/libexec]
1588   --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1589   --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1590   --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1591   --libdir=DIR            object code libraries [EPREFIX/lib]
1592   --includedir=DIR        C header files [PREFIX/include]
1593   --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1594   --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1595   --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1596   --infodir=DIR           info documentation [DATAROOTDIR/info]
1597   --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1598   --mandir=DIR            man documentation [DATAROOTDIR/man]
1599   --docdir=DIR            documentation root [DATAROOTDIR/doc/bacula]
1600   --htmldir=DIR           html documentation [DOCDIR]
1601   --dvidir=DIR            dvi documentation [DOCDIR]
1602   --pdfdir=DIR            pdf documentation [DOCDIR]
1603   --psdir=DIR             ps documentation [DOCDIR]
1604 _ACEOF
1605
1606   cat <<\_ACEOF
1607
1608 X features:
1609   --x-includes=DIR    X include files are in DIR
1610   --x-libraries=DIR   X library files are in DIR
1611
1612 System types:
1613   --build=BUILD     configure for building on BUILD [guessed]
1614   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1615 _ACEOF
1616 fi
1617
1618 if test -n "$ac_init_help"; then
1619   case $ac_init_help in
1620      short | recursive ) echo "Configuration of bacula 7.0.0:";;
1621    esac
1622   cat <<\_ACEOF
1623
1624 Optional Features:
1625   --disable-option-checking  ignore unrecognized --enable/--with options
1626   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1627   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1628   --enable-libtool        enable building using GNU libtool [default=yes]
1629   --enable-shared[=PKGS]  build shared libraries [default=yes]
1630   --enable-static[=PKGS]  build static libraries [default=no]
1631   --enable-fast-install[=PKGS]
1632                           optimize for fast installation [default=yes]
1633   --disable-libtool-lock  avoid locking (might break parallel builds)
1634   --enable-includes       enable installing of include files [default=no]
1635   --disable-nls           do not use Native Language Support
1636   --disable-rpath         do not hardcode runtime library paths
1637   --enable-bat            enable build of bat Qt4 GUI [default=no]
1638   --enable-smartalloc     enable smartalloc debugging support [default=no]
1639   --enable-lockmgr        enable lock manager support [default=no]
1640   --enable-static-tools   enable static tape tools [default=no]
1641   --enable-static-fd      enable static File daemon [default=no]
1642   --enable-static-sd      enable static Storage daemon [default=no]
1643   --enable-static-dir     enable static Director [default=no]
1644   --enable-static-cons    enable static Console [default=no]
1645   --enable-client-only    build client (File daemon) only [default=no]
1646   --enable-build-dird     enable building of dird (Director) [default=yes]
1647   --enable-build-stored   enable building of stored (Storage daemon)
1648                           [default=yes]
1649   --disable-conio         disable conio support [default=no]
1650   --enable-ipv6           enable ipv6 support [default=yes]
1651   --disable-readline      disable readline support [default=yes]
1652   --enable-batch-insert   enable the DB batch insert code [default=yes]
1653   --disable-largefile     omit support for large files
1654   --disable-afs           disable afs support [default=auto]
1655   --disable-lzo           disable lzo support [default=yes]
1656   --disable-acl           disable acl support [default=auto]
1657   --disable-xattr         disable xattr support [default=auto]
1658
1659 Optional Packages:
1660   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1661   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1662   --with-pic              try to use only PIC/non-PIC objects [default=use
1663                           both]
1664   --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1665   --with-sysroot=DIR Search for dependent libraries within DIR
1666                         (or the compiler's sysroot if not specified).
1667   --with-gnu-ld           assume the C compiler uses GNU ld default=no
1668   --with-libiconv-prefix[=DIR]  search for libiconv in DIR/include and DIR/lib
1669   --without-libiconv-prefix     don't search for libiconv in includedir and libdir
1670   --with-libintl-prefix[=DIR]  search for libintl in DIR/include and DIR/lib
1671   --without-libintl-prefix     don't search for libintl in includedir and libdir
1672   --with-included-gettext use the GNU gettext library included here
1673   --with-readline[=DIR]   specify readline library directory
1674   --with-python[=DIR]     Include Python support. DIR is the Python base
1675                           install directory, default is to search through a
1676                           number of common places for the Python files.
1677   --with-tcp-wrappers[=DIR]
1678                           enable tcpwrappers support
1679   --with-openssl[=DIR]    Include OpenSSL support. DIR is the OpenSSL base
1680   --with-working-dir=PATH specify path of Bacula working directory
1681   --with-archivedir=PATH  specify path of SD archive directory
1682   --with-basename=RESNAME specify base resource name for daemons
1683   --with-hostname=RESNAME specify host name for daemons
1684   --with-scriptdir=PATH   specify path of Bacula scripts directory
1685   --with-bsrdir=PATH      specify path of Bacula bsrs directory
1686   --with-logdir=PATH      specify path of Bacula logs directory
1687   --with-plugindir=PATH   specify path of Bacula plugins directory
1688   --with-dump-email=EMAIL dump email address
1689   --with-job-email=EMAIL  job output email address
1690   --with-smtp-host=HOST   SMTP mail host address
1691   --with-pid-dir=PATH     specify location of Bacula pid files
1692   --with-subsys-dir=PATH  specify location of Bacula subsys file
1693   --with-baseport=PORT    specify base port address for daemons
1694   --with-dir-password=PASSWORD
1695                           specify Director's password
1696   --with-fd-password=PASSWORD
1697                           specify Client's password
1698   --with-sd-password=PASSWORD
1699                           specify Storage daemon's password
1700   --with-mon-dir-password=PASSWORD
1701                           specify Director's password used by the monitor
1702   --with-mon-fd-password=PASSWORD
1703                           specify Client's password used by the monitor
1704   --with-mon-sd-password=PASSWORD
1705                           specify Storage daemon's password used by the
1706                           monitor
1707   --with-db-name=DBNAME   specify database name [default=bacula]
1708   --with-db-user=UNAME    specify database user [default=bacula]
1709   --with-db-password=PWD  specify database password [default=*none*]
1710   --with-db-port=DBPORT   specify a database port [default=null]
1711   --with-dir-user=USER    specify user for Director daemon
1712   --with-dir-group=GROUP  specify group for Director daemon
1713   --with-sd-user=USER     specify user for Storage daemon
1714   --with-sd-group=GROUP   specify group for Storage daemon
1715   --with-fd-user=USER     specify user for File daemon
1716   --with-fd-group=GROUP   specify group for File daemon
1717   --with-sbin-perm=MODE   specify permissions for sbin binaries [default=0750]
1718   --with-postgresql[=DIR] Include PostgreSQL support. DIR is the PostgreSQL
1719                           base install directory, [default=/usr/local/pgsql]
1720   --with-mysql[=DIR]      Include MySQL support. DIR is the MySQL base install
1721                           directory, default is to search through a number of
1722                           common places for the MySQL files.
1723   --with-embedded-mysql[=DIR]
1724                           Include MySQL support. DIR is the MySQL base install
1725                           directory, default is to search through a number of
1726                           common places for the MySQL files.
1727   --with-sqlite3[=DIR]    Include SQLite3 support. DIR is the SQLite3 base
1728                           install directory, default is to search through a
1729                           number of common places for the SQLite3 files.
1730   --with-x                use the X Window System
1731   --with-afsdir[=DIR]     Directory holding AFS includes/libs
1732   --with-lzo[=DIR]        specify lzo library directory
1733   --with-systemd[=UNITDIR]
1734                           Include systemd support. UNITDIR is where systemd
1735                           system .service files are located, default is to ask
1736                           systemctl.
1737
1738 Some influential environment variables:
1739   CC          C compiler command
1740   CFLAGS      C compiler flags
1741   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1742               nonstandard directory <lib dir>
1743   LIBS        libraries to pass to the linker, e.g. -l<library>
1744   CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1745               you have headers in a nonstandard directory <include dir>
1746   CXX         C++ compiler command
1747   CXXFLAGS    C++ compiler flags
1748   CPP         C preprocessor
1749   CXXCPP      C++ preprocessor
1750   XMKMF       Path to xmkmf, Makefile generator for X Window System
1751
1752 Use these variables to override the choices made by `configure' or to help
1753 it to find libraries and programs with nonstandard names/locations.
1754
1755 Report bugs to the package provider.
1756 _ACEOF
1757 ac_status=$?
1758 fi
1759
1760 if test "$ac_init_help" = "recursive"; then
1761   # If there are subdirs, report their specific --help.
1762   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1763     test -d "$ac_dir" ||
1764       { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1765       continue
1766     ac_builddir=.
1767
1768 case "$ac_dir" in
1769 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1770 *)
1771   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1772   # A ".." for each directory in $ac_dir_suffix.
1773   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1774   case $ac_top_builddir_sub in
1775   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1776   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1777   esac ;;
1778 esac
1779 ac_abs_top_builddir=$ac_pwd
1780 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1781 # for backward compatibility:
1782 ac_top_builddir=$ac_top_build_prefix
1783
1784 case $srcdir in
1785   .)  # We are building in place.
1786     ac_srcdir=.
1787     ac_top_srcdir=$ac_top_builddir_sub
1788     ac_abs_top_srcdir=$ac_pwd ;;
1789   [\\/]* | ?:[\\/]* )  # Absolute name.
1790     ac_srcdir=$srcdir$ac_dir_suffix;
1791     ac_top_srcdir=$srcdir
1792     ac_abs_top_srcdir=$srcdir ;;
1793   *) # Relative name.
1794     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1795     ac_top_srcdir=$ac_top_build_prefix$srcdir
1796     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1797 esac
1798 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1799
1800     cd "$ac_dir" || { ac_status=$?; continue; }
1801     # Check for guested configure.
1802     if test -f "$ac_srcdir/configure.gnu"; then
1803       echo &&
1804       $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1805     elif test -f "$ac_srcdir/configure"; then
1806       echo &&
1807       $SHELL "$ac_srcdir/configure" --help=recursive
1808     else
1809       $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1810     fi || ac_status=$?
1811     cd "$ac_pwd" || { ac_status=$?; break; }
1812   done
1813 fi
1814
1815 test -n "$ac_init_help" && exit $ac_status
1816 if $ac_init_version; then
1817   cat <<\_ACEOF
1818 bacula configure 7.0.0
1819 generated by GNU Autoconf 2.68
1820
1821 Copyright (C) 2010 Free Software Foundation, Inc.
1822 This configure script is free software; the Free Software Foundation
1823 gives unlimited permission to copy, distribute and modify it.
1824 _ACEOF
1825   exit
1826 fi
1827
1828 ## ------------------------ ##
1829 ## Autoconf initialization. ##
1830 ## ------------------------ ##
1831
1832 # ac_fn_c_try_compile LINENO
1833 # --------------------------
1834 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1835 ac_fn_c_try_compile ()
1836 {
1837   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1838   rm -f conftest.$ac_objext
1839   if { { ac_try="$ac_compile"
1840 case "(($ac_try" in
1841   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1842   *) ac_try_echo=$ac_try;;
1843 esac
1844 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1845 $as_echo "$ac_try_echo"; } >&5
1846   (eval "$ac_compile") 2>conftest.err
1847   ac_status=$?
1848   if test -s conftest.err; then
1849     grep -v '^ *+' conftest.err >conftest.er1
1850     cat conftest.er1 >&5
1851     mv -f conftest.er1 conftest.err
1852   fi
1853   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1854   test $ac_status = 0; } && {
1855          test -z "$ac_c_werror_flag" ||
1856          test ! -s conftest.err
1857        } && test -s conftest.$ac_objext; then :
1858   ac_retval=0
1859 else
1860   $as_echo "$as_me: failed program was:" >&5
1861 sed 's/^/| /' conftest.$ac_ext >&5
1862
1863         ac_retval=1
1864 fi
1865   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1866   as_fn_set_status $ac_retval
1867
1868 } # ac_fn_c_try_compile
1869
1870 # ac_fn_cxx_try_compile LINENO
1871 # ----------------------------
1872 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1873 ac_fn_cxx_try_compile ()
1874 {
1875   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1876   rm -f conftest.$ac_objext
1877   if { { ac_try="$ac_compile"
1878 case "(($ac_try" in
1879   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1880   *) ac_try_echo=$ac_try;;
1881 esac
1882 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1883 $as_echo "$ac_try_echo"; } >&5
1884   (eval "$ac_compile") 2>conftest.err
1885   ac_status=$?
1886   if test -s conftest.err; then
1887     grep -v '^ *+' conftest.err >conftest.er1
1888     cat conftest.er1 >&5
1889     mv -f conftest.er1 conftest.err
1890   fi
1891   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1892   test $ac_status = 0; } && {
1893          test -z "$ac_cxx_werror_flag" ||
1894          test ! -s conftest.err
1895        } && test -s conftest.$ac_objext; then :
1896   ac_retval=0
1897 else
1898   $as_echo "$as_me: failed program was:" >&5
1899 sed 's/^/| /' conftest.$ac_ext >&5
1900
1901         ac_retval=1
1902 fi
1903   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1904   as_fn_set_status $ac_retval
1905
1906 } # ac_fn_cxx_try_compile
1907
1908 # ac_fn_c_try_cpp LINENO
1909 # ----------------------
1910 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1911 ac_fn_c_try_cpp ()
1912 {
1913   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1914   if { { ac_try="$ac_cpp conftest.$ac_ext"
1915 case "(($ac_try" in
1916   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1917   *) ac_try_echo=$ac_try;;
1918 esac
1919 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1920 $as_echo "$ac_try_echo"; } >&5
1921   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1922   ac_status=$?
1923   if test -s conftest.err; then
1924     grep -v '^ *+' conftest.err >conftest.er1
1925     cat conftest.er1 >&5
1926     mv -f conftest.er1 conftest.err
1927   fi
1928   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1929   test $ac_status = 0; } > conftest.i && {
1930          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1931          test ! -s conftest.err
1932        }; then :
1933   ac_retval=0
1934 else
1935   $as_echo "$as_me: failed program was:" >&5
1936 sed 's/^/| /' conftest.$ac_ext >&5
1937
1938     ac_retval=1
1939 fi
1940   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1941   as_fn_set_status $ac_retval
1942
1943 } # ac_fn_c_try_cpp
1944
1945 # ac_fn_c_try_link LINENO
1946 # -----------------------
1947 # Try to link conftest.$ac_ext, and return whether this succeeded.
1948 ac_fn_c_try_link ()
1949 {
1950   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1951   rm -f conftest.$ac_objext conftest$ac_exeext
1952   if { { ac_try="$ac_link"
1953 case "(($ac_try" in
1954   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1955   *) ac_try_echo=$ac_try;;
1956 esac
1957 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1958 $as_echo "$ac_try_echo"; } >&5
1959   (eval "$ac_link") 2>conftest.err
1960   ac_status=$?
1961   if test -s conftest.err; then
1962     grep -v '^ *+' conftest.err >conftest.er1
1963     cat conftest.er1 >&5
1964     mv -f conftest.er1 conftest.err
1965   fi
1966   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1967   test $ac_status = 0; } && {
1968          test -z "$ac_c_werror_flag" ||
1969          test ! -s conftest.err
1970        } && test -s conftest$ac_exeext && {
1971          test "$cross_compiling" = yes ||
1972          $as_test_x conftest$ac_exeext
1973        }; then :
1974   ac_retval=0
1975 else
1976   $as_echo "$as_me: failed program was:" >&5
1977 sed 's/^/| /' conftest.$ac_ext >&5
1978
1979         ac_retval=1
1980 fi
1981   # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1982   # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1983   # interfere with the next link command; also delete a directory that is
1984   # left behind by Apple's compiler.  We do this before executing the actions.
1985   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1986   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1987   as_fn_set_status $ac_retval
1988
1989 } # ac_fn_c_try_link
1990
1991 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1992 # -------------------------------------------------------
1993 # Tests whether HEADER exists and can be compiled using the include files in
1994 # INCLUDES, setting the cache variable VAR accordingly.
1995 ac_fn_c_check_header_compile ()
1996 {
1997   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1998   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1999 $as_echo_n "checking for $2... " >&6; }
2000 if eval \${$3+:} false; then :
2001   $as_echo_n "(cached) " >&6
2002 else
2003   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2004 /* end confdefs.h.  */
2005 $4
2006 #include <$2>
2007 _ACEOF
2008 if ac_fn_c_try_compile "$LINENO"; then :
2009   eval "$3=yes"
2010 else
2011   eval "$3=no"
2012 fi
2013 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2014 fi
2015 eval ac_res=\$$3
2016                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2017 $as_echo "$ac_res" >&6; }
2018   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2019
2020 } # ac_fn_c_check_header_compile
2021
2022 # ac_fn_c_try_run LINENO
2023 # ----------------------
2024 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
2025 # that executables *can* be run.
2026 ac_fn_c_try_run ()
2027 {
2028   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2029   if { { ac_try="$ac_link"
2030 case "(($ac_try" in
2031   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2032   *) ac_try_echo=$ac_try;;
2033 esac
2034 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2035 $as_echo "$ac_try_echo"; } >&5
2036   (eval "$ac_link") 2>&5
2037   ac_status=$?
2038   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2039   test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
2040   { { case "(($ac_try" in
2041   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2042   *) ac_try_echo=$ac_try;;
2043 esac
2044 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2045 $as_echo "$ac_try_echo"; } >&5
2046   (eval "$ac_try") 2>&5
2047   ac_status=$?
2048   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2049   test $ac_status = 0; }; }; then :
2050   ac_retval=0
2051 else
2052   $as_echo "$as_me: program exited with status $ac_status" >&5
2053        $as_echo "$as_me: failed program was:" >&5
2054 sed 's/^/| /' conftest.$ac_ext >&5
2055
2056        ac_retval=$ac_status
2057 fi
2058   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2059   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2060   as_fn_set_status $ac_retval
2061
2062 } # ac_fn_c_try_run
2063
2064 # ac_fn_c_check_func LINENO FUNC VAR
2065 # ----------------------------------
2066 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2067 ac_fn_c_check_func ()
2068 {
2069   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2070   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2071 $as_echo_n "checking for $2... " >&6; }
2072 if eval \${$3+:} false; then :
2073   $as_echo_n "(cached) " >&6
2074 else
2075   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2076 /* end confdefs.h.  */
2077 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2078    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
2079 #define $2 innocuous_$2
2080
2081 /* System header to define __stub macros and hopefully few prototypes,
2082     which can conflict with char $2 (); below.
2083     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2084     <limits.h> exists even on freestanding compilers.  */
2085
2086 #ifdef __STDC__
2087 # include <limits.h>
2088 #else
2089 # include <assert.h>
2090 #endif
2091
2092 #undef $2
2093
2094 /* Override any GCC internal prototype to avoid an error.
2095    Use char because int might match the return type of a GCC
2096    builtin and then its argument prototype would still apply.  */
2097 #ifdef __cplusplus
2098 extern "C"
2099 #endif
2100 char $2 ();
2101 /* The GNU C library defines this for functions which it implements
2102     to always fail with ENOSYS.  Some functions are actually named
2103     something starting with __ and the normal name is an alias.  */
2104 #if defined __stub_$2 || defined __stub___$2
2105 choke me
2106 #endif
2107
2108 int
2109 main ()
2110 {
2111 return $2 ();
2112   ;
2113   return 0;
2114 }
2115 _ACEOF
2116 if ac_fn_c_try_link "$LINENO"; then :
2117   eval "$3=yes"
2118 else
2119   eval "$3=no"
2120 fi
2121 rm -f core conftest.err conftest.$ac_objext \
2122     conftest$ac_exeext conftest.$ac_ext
2123 fi
2124 eval ac_res=\$$3
2125                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2126 $as_echo "$ac_res" >&6; }
2127   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2128
2129 } # ac_fn_c_check_func
2130
2131 # ac_fn_cxx_try_cpp LINENO
2132 # ------------------------
2133 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2134 ac_fn_cxx_try_cpp ()
2135 {
2136   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2137   if { { ac_try="$ac_cpp conftest.$ac_ext"
2138 case "(($ac_try" in
2139   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2140   *) ac_try_echo=$ac_try;;
2141 esac
2142 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2143 $as_echo "$ac_try_echo"; } >&5
2144   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2145   ac_status=$?
2146   if test -s conftest.err; then
2147     grep -v '^ *+' conftest.err >conftest.er1
2148     cat conftest.er1 >&5
2149     mv -f conftest.er1 conftest.err
2150   fi
2151   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2152   test $ac_status = 0; } > conftest.i && {
2153          test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
2154          test ! -s conftest.err
2155        }; then :
2156   ac_retval=0
2157 else
2158   $as_echo "$as_me: failed program was:" >&5
2159 sed 's/^/| /' conftest.$ac_ext >&5
2160
2161     ac_retval=1
2162 fi
2163   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2164   as_fn_set_status $ac_retval
2165
2166 } # ac_fn_cxx_try_cpp
2167
2168 # ac_fn_cxx_try_link LINENO
2169 # -------------------------
2170 # Try to link conftest.$ac_ext, and return whether this succeeded.
2171 ac_fn_cxx_try_link ()
2172 {
2173   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2174   rm -f conftest.$ac_objext conftest$ac_exeext
2175   if { { ac_try="$ac_link"
2176 case "(($ac_try" in
2177   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2178   *) ac_try_echo=$ac_try;;
2179 esac
2180 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2181 $as_echo "$ac_try_echo"; } >&5
2182   (eval "$ac_link") 2>conftest.err
2183   ac_status=$?
2184   if test -s conftest.err; then
2185     grep -v '^ *+' conftest.err >conftest.er1
2186     cat conftest.er1 >&5
2187     mv -f conftest.er1 conftest.err
2188   fi
2189   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2190   test $ac_status = 0; } && {
2191          test -z "$ac_cxx_werror_flag" ||
2192          test ! -s conftest.err
2193        } && test -s conftest$ac_exeext && {
2194          test "$cross_compiling" = yes ||
2195          $as_test_x conftest$ac_exeext
2196        }; then :
2197   ac_retval=0
2198 else
2199   $as_echo "$as_me: failed program was:" >&5
2200 sed 's/^/| /' conftest.$ac_ext >&5
2201
2202         ac_retval=1
2203 fi
2204   # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2205   # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2206   # interfere with the next link command; also delete a directory that is
2207   # left behind by Apple's compiler.  We do this before executing the actions.
2208   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2209   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2210   as_fn_set_status $ac_retval
2211
2212 } # ac_fn_cxx_try_link
2213
2214 # ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
2215 # ---------------------------------------------
2216 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
2217 # accordingly.
2218 ac_fn_c_check_decl ()
2219 {
2220   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2221   as_decl_name=`echo $2|sed 's/ *(.*//'`
2222   as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
2223   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
2224 $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
2225 if eval \${$3+:} false; then :
2226   $as_echo_n "(cached) " >&6
2227 else
2228   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2229 /* end confdefs.h.  */
2230 $4
2231 int
2232 main ()
2233 {
2234 #ifndef $as_decl_name
2235 #ifdef __cplusplus
2236   (void) $as_decl_use;
2237 #else
2238   (void) $as_decl_name;
2239 #endif
2240 #endif
2241
2242   ;
2243   return 0;
2244 }
2245 _ACEOF
2246 if ac_fn_c_try_compile "$LINENO"; then :
2247   eval "$3=yes"
2248 else
2249   eval "$3=no"
2250 fi
2251 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2252 fi
2253 eval ac_res=\$$3
2254                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2255 $as_echo "$ac_res" >&6; }
2256   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2257
2258 } # ac_fn_c_check_decl
2259
2260 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2261 # -------------------------------------------
2262 # Tests whether TYPE exists after having included INCLUDES, setting cache
2263 # variable VAR accordingly.
2264 ac_fn_c_check_type ()
2265 {
2266   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2267   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2268 $as_echo_n "checking for $2... " >&6; }
2269 if eval \${$3+:} false; then :
2270   $as_echo_n "(cached) " >&6
2271 else
2272   eval "$3=no"
2273   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2274 /* end confdefs.h.  */
2275 $4
2276 int
2277 main ()
2278 {
2279 if (sizeof ($2))
2280          return 0;
2281   ;
2282   return 0;
2283 }
2284 _ACEOF
2285 if ac_fn_c_try_compile "$LINENO"; then :
2286   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2287 /* end confdefs.h.  */
2288 $4
2289 int
2290 main ()
2291 {
2292 if (sizeof (($2)))
2293             return 0;
2294   ;
2295   return 0;
2296 }
2297 _ACEOF
2298 if ac_fn_c_try_compile "$LINENO"; then :
2299
2300 else
2301   eval "$3=yes"
2302 fi
2303 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2304 fi
2305 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2306 fi
2307 eval ac_res=\$$3
2308                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2309 $as_echo "$ac_res" >&6; }
2310   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2311
2312 } # ac_fn_c_check_type
2313
2314 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
2315 # -------------------------------------------------------
2316 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
2317 # the include files in INCLUDES and setting the cache variable VAR
2318 # accordingly.
2319 ac_fn_c_check_header_mongrel ()
2320 {
2321   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2322   if eval \${$3+:} false; then :
2323   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2324 $as_echo_n "checking for $2... " >&6; }
2325 if eval \${$3+:} false; then :
2326   $as_echo_n "(cached) " >&6
2327 fi
2328 eval ac_res=\$$3
2329                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2330 $as_echo "$ac_res" >&6; }
2331 else
2332   # Is the header compilable?
2333 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
2334 $as_echo_n "checking $2 usability... " >&6; }
2335 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2336 /* end confdefs.h.  */
2337 $4
2338 #include <$2>
2339 _ACEOF
2340 if ac_fn_c_try_compile "$LINENO"; then :
2341   ac_header_compiler=yes
2342 else
2343   ac_header_compiler=no
2344 fi
2345 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2346 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2347 $as_echo "$ac_header_compiler" >&6; }
2348
2349 # Is the header present?
2350 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2351 $as_echo_n "checking $2 presence... " >&6; }
2352 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2353 /* end confdefs.h.  */
2354 #include <$2>
2355 _ACEOF
2356 if ac_fn_c_try_cpp "$LINENO"; then :
2357   ac_header_preproc=yes
2358 else
2359   ac_header_preproc=no
2360 fi
2361 rm -f conftest.err conftest.i conftest.$ac_ext
2362 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2363 $as_echo "$ac_header_preproc" >&6; }
2364
2365 # So?  What about this header?
2366 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
2367   yes:no: )
2368     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2369 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2370     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2371 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2372     ;;
2373   no:yes:* )
2374     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2375 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2376     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     check for missing prerequisite headers?" >&5
2377 $as_echo "$as_me: WARNING: $2:     check for missing prerequisite headers?" >&2;}
2378     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2379 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2380     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&5
2381 $as_echo "$as_me: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&2;}
2382     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2383 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2384     ;;
2385 esac
2386   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2387 $as_echo_n "checking for $2... " >&6; }
2388 if eval \${$3+:} false; then :
2389   $as_echo_n "(cached) " >&6
2390 else
2391   eval "$3=\$ac_header_compiler"
2392 fi
2393 eval ac_res=\$$3
2394                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2395 $as_echo "$ac_res" >&6; }
2396 fi
2397   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2398
2399 } # ac_fn_c_check_header_mongrel
2400
2401 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2402 # --------------------------------------------
2403 # Tries to find the compile-time value of EXPR in a program that includes
2404 # INCLUDES, setting VAR accordingly. Returns whether the value could be
2405 # computed
2406 ac_fn_c_compute_int ()
2407 {
2408   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2409   if test "$cross_compiling" = yes; then
2410     # Depending upon the size, compute the lo and hi bounds.
2411 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2412 /* end confdefs.h.  */
2413 $4
2414 int
2415 main ()
2416 {
2417 static int test_array [1 - 2 * !(($2) >= 0)];
2418 test_array [0] = 0
2419
2420   ;
2421   return 0;
2422 }
2423 _ACEOF
2424 if ac_fn_c_try_compile "$LINENO"; then :
2425   ac_lo=0 ac_mid=0
2426   while :; do
2427     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2428 /* end confdefs.h.  */
2429 $4
2430 int
2431 main ()
2432 {
2433 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2434 test_array [0] = 0
2435
2436   ;
2437   return 0;
2438 }
2439 _ACEOF
2440 if ac_fn_c_try_compile "$LINENO"; then :
2441   ac_hi=$ac_mid; break
2442 else
2443   as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2444                         if test $ac_lo -le $ac_mid; then
2445                           ac_lo= ac_hi=
2446                           break
2447                         fi
2448                         as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2449 fi
2450 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2451   done
2452 else
2453   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2454 /* end confdefs.h.  */
2455 $4
2456 int
2457 main ()
2458 {
2459 static int test_array [1 - 2 * !(($2) < 0)];
2460 test_array [0] = 0
2461
2462   ;
2463   return 0;
2464 }
2465 _ACEOF
2466 if ac_fn_c_try_compile "$LINENO"; then :
2467   ac_hi=-1 ac_mid=-1
2468   while :; do
2469     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2470 /* end confdefs.h.  */
2471 $4
2472 int
2473 main ()
2474 {
2475 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2476 test_array [0] = 0
2477
2478   ;
2479   return 0;
2480 }
2481 _ACEOF
2482 if ac_fn_c_try_compile "$LINENO"; then :
2483   ac_lo=$ac_mid; break
2484 else
2485   as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2486                         if test $ac_mid -le $ac_hi; then
2487                           ac_lo= ac_hi=
2488                           break
2489                         fi
2490                         as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2491 fi
2492 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2493   done
2494 else
2495   ac_lo= ac_hi=
2496 fi
2497 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2498 fi
2499 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2500 # Binary search between lo and hi bounds.
2501 while test "x$ac_lo" != "x$ac_hi"; do
2502   as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2503   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2504 /* end confdefs.h.  */
2505 $4
2506 int
2507 main ()
2508 {
2509 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2510 test_array [0] = 0
2511
2512   ;
2513   return 0;
2514 }
2515 _ACEOF
2516 if ac_fn_c_try_compile "$LINENO"; then :
2517   ac_hi=$ac_mid
2518 else
2519   as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2520 fi
2521 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2522 done
2523 case $ac_lo in #((
2524 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2525 '') ac_retval=1 ;;
2526 esac
2527   else
2528     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2529 /* end confdefs.h.  */
2530 $4
2531 static long int longval () { return $2; }
2532 static unsigned long int ulongval () { return $2; }
2533 #include <stdio.h>
2534 #include <stdlib.h>
2535 int
2536 main ()
2537 {
2538
2539   FILE *f = fopen ("conftest.val", "w");
2540   if (! f)
2541     return 1;
2542   if (($2) < 0)
2543     {
2544       long int i = longval ();
2545       if (i != ($2))
2546         return 1;
2547       fprintf (f, "%ld", i);
2548     }
2549   else
2550     {
2551       unsigned long int i = ulongval ();
2552       if (i != ($2))
2553         return 1;
2554       fprintf (f, "%lu", i);
2555     }
2556   /* Do not output a trailing newline, as this causes \r\n confusion
2557      on some platforms.  */
2558   return ferror (f) || fclose (f) != 0;
2559
2560   ;
2561   return 0;
2562 }
2563 _ACEOF
2564 if ac_fn_c_try_run "$LINENO"; then :
2565   echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2566 else
2567   ac_retval=1
2568 fi
2569 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2570   conftest.$ac_objext conftest.beam conftest.$ac_ext
2571 rm -f conftest.val
2572
2573   fi
2574   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2575   as_fn_set_status $ac_retval
2576
2577 } # ac_fn_c_compute_int
2578
2579 # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
2580 # ----------------------------------------------------
2581 # Tries to find if the field MEMBER exists in type AGGR, after including
2582 # INCLUDES, setting cache variable VAR accordingly.
2583 ac_fn_c_check_member ()
2584 {
2585   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2586   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2587 $as_echo_n "checking for $2.$3... " >&6; }
2588 if eval \${$4+:} false; then :
2589   $as_echo_n "(cached) " >&6
2590 else
2591   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2592 /* end confdefs.h.  */
2593 $5
2594 int
2595 main ()
2596 {
2597 static $2 ac_aggr;
2598 if (ac_aggr.$3)
2599 return 0;
2600   ;
2601   return 0;
2602 }
2603 _ACEOF
2604 if ac_fn_c_try_compile "$LINENO"; then :
2605   eval "$4=yes"
2606 else
2607   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2608 /* end confdefs.h.  */
2609 $5
2610 int
2611 main ()
2612 {
2613 static $2 ac_aggr;
2614 if (sizeof ac_aggr.$3)
2615 return 0;
2616   ;
2617   return 0;
2618 }
2619 _ACEOF
2620 if ac_fn_c_try_compile "$LINENO"; then :
2621   eval "$4=yes"
2622 else
2623   eval "$4=no"
2624 fi
2625 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2626 fi
2627 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2628 fi
2629 eval ac_res=\$$4
2630                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2631 $as_echo "$ac_res" >&6; }
2632   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2633
2634 } # ac_fn_c_check_member
2635
2636 # ac_fn_cxx_try_run LINENO
2637 # ------------------------
2638 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
2639 # that executables *can* be run.
2640 ac_fn_cxx_try_run ()
2641 {
2642   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2643   if { { ac_try="$ac_link"
2644 case "(($ac_try" in
2645   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2646   *) ac_try_echo=$ac_try;;
2647 esac
2648 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2649 $as_echo "$ac_try_echo"; } >&5
2650   (eval "$ac_link") 2>&5
2651   ac_status=$?
2652   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2653   test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
2654   { { case "(($ac_try" in
2655   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2656   *) ac_try_echo=$ac_try;;
2657 esac
2658 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2659 $as_echo "$ac_try_echo"; } >&5
2660   (eval "$ac_try") 2>&5
2661   ac_status=$?
2662   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2663   test $ac_status = 0; }; }; then :
2664   ac_retval=0
2665 else
2666   $as_echo "$as_me: program exited with status $ac_status" >&5
2667        $as_echo "$as_me: failed program was:" >&5
2668 sed 's/^/| /' conftest.$ac_ext >&5
2669
2670        ac_retval=$ac_status
2671 fi
2672   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2673   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2674   as_fn_set_status $ac_retval
2675
2676 } # ac_fn_cxx_try_run
2677
2678 # ac_fn_cxx_check_func LINENO FUNC VAR
2679 # ------------------------------------
2680 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2681 ac_fn_cxx_check_func ()
2682 {
2683   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2684   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2685 $as_echo_n "checking for $2... " >&6; }
2686 if eval \${$3+:} false; then :
2687   $as_echo_n "(cached) " >&6
2688 else
2689   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2690 /* end confdefs.h.  */
2691 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2692    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
2693 #define $2 innocuous_$2
2694
2695 /* System header to define __stub macros and hopefully few prototypes,
2696     which can conflict with char $2 (); below.
2697     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2698     <limits.h> exists even on freestanding compilers.  */
2699
2700 #ifdef __STDC__
2701 # include <limits.h>
2702 #else
2703 # include <assert.h>
2704 #endif
2705
2706 #undef $2
2707
2708 /* Override any GCC internal prototype to avoid an error.
2709    Use char because int might match the return type of a GCC
2710    builtin and then its argument prototype would still apply.  */
2711 #ifdef __cplusplus
2712 extern "C"
2713 #endif
2714 char $2 ();
2715 /* The GNU C library defines this for functions which it implements
2716     to always fail with ENOSYS.  Some functions are actually named
2717     something starting with __ and the normal name is an alias.  */
2718 #if defined __stub_$2 || defined __stub___$2
2719 choke me
2720 #endif
2721
2722 int
2723 main ()
2724 {
2725 return $2 ();
2726   ;
2727   return 0;
2728 }
2729 _ACEOF
2730 if ac_fn_cxx_try_link "$LINENO"; then :
2731   eval "$3=yes"
2732 else
2733   eval "$3=no"
2734 fi
2735 rm -f core conftest.err conftest.$ac_objext \
2736     conftest$ac_exeext conftest.$ac_ext
2737 fi
2738 eval ac_res=\$$3
2739                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2740 $as_echo "$ac_res" >&6; }
2741   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2742
2743 } # ac_fn_cxx_check_func
2744 cat >config.log <<_ACEOF
2745 This file contains any messages produced by compilers while
2746 running configure, to aid debugging if configure makes a mistake.
2747
2748 It was created by bacula $as_me 7.0.0, which was
2749 generated by GNU Autoconf 2.68.  Invocation command line was
2750
2751   $ $0 $@
2752
2753 _ACEOF
2754 exec 5>>config.log
2755 {
2756 cat <<_ASUNAME
2757 ## --------- ##
2758 ## Platform. ##
2759 ## --------- ##
2760
2761 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2762 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2763 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2764 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2765 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2766
2767 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2768 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
2769
2770 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
2771 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
2772 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2773 /usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
2774 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
2775 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
2776 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
2777
2778 _ASUNAME
2779
2780 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2781 for as_dir in $PATH
2782 do
2783   IFS=$as_save_IFS
2784   test -z "$as_dir" && as_dir=.
2785     $as_echo "PATH: $as_dir"
2786   done
2787 IFS=$as_save_IFS
2788
2789 } >&5
2790
2791 cat >&5 <<_ACEOF
2792
2793
2794 ## ----------- ##
2795 ## Core tests. ##
2796 ## ----------- ##
2797
2798 _ACEOF
2799
2800
2801 # Keep a trace of the command line.
2802 # Strip out --no-create and --no-recursion so they do not pile up.
2803 # Strip out --silent because we don't want to record it for future runs.
2804 # Also quote any args containing shell meta-characters.
2805 # Make two passes to allow for proper duplicate-argument suppression.
2806 ac_configure_args=
2807 ac_configure_args0=
2808 ac_configure_args1=
2809 ac_must_keep_next=false
2810 for ac_pass in 1 2
2811 do
2812   for ac_arg
2813   do
2814     case $ac_arg in
2815     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2816     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2817     | -silent | --silent | --silen | --sile | --sil)
2818       continue ;;
2819     *\'*)
2820       ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2821     esac
2822     case $ac_pass in
2823     1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2824     2)
2825       as_fn_append ac_configure_args1 " '$ac_arg'"
2826       if test $ac_must_keep_next = true; then
2827         ac_must_keep_next=false # Got value, back to normal.
2828       else
2829         case $ac_arg in
2830           *=* | --config-cache | -C | -disable-* | --disable-* \
2831           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2832           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2833           | -with-* | --with-* | -without-* | --without-* | --x)
2834             case "$ac_configure_args0 " in
2835               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2836             esac
2837             ;;
2838           -* ) ac_must_keep_next=true ;;
2839         esac
2840       fi
2841       as_fn_append ac_configure_args " '$ac_arg'"
2842       ;;
2843     esac
2844   done
2845 done
2846 { ac_configure_args0=; unset ac_configure_args0;}
2847 { ac_configure_args1=; unset ac_configure_args1;}
2848
2849 # When interrupted or exit'd, cleanup temporary files, and complete
2850 # config.log.  We remove comments because anyway the quotes in there
2851 # would cause problems or look ugly.
2852 # WARNING: Use '\'' to represent an apostrophe within the trap.
2853 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2854 trap 'exit_status=$?
2855   # Save into config.log some information that might help in debugging.
2856   {
2857     echo
2858
2859     $as_echo "## ---------------- ##
2860 ## Cache variables. ##
2861 ## ---------------- ##"
2862     echo
2863     # The following way of writing the cache mishandles newlines in values,
2864 (
2865   for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2866     eval ac_val=\$$ac_var
2867     case $ac_val in #(
2868     *${as_nl}*)
2869       case $ac_var in #(
2870       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2871 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2872       esac
2873       case $ac_var in #(
2874       _ | IFS | as_nl) ;; #(
2875       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2876       *) { eval $ac_var=; unset $ac_var;} ;;
2877       esac ;;
2878     esac
2879   done
2880   (set) 2>&1 |
2881     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2882     *${as_nl}ac_space=\ *)
2883       sed -n \
2884         "s/'\''/'\''\\\\'\'''\''/g;
2885           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2886       ;; #(
2887     *)
2888       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2889       ;;
2890     esac |
2891     sort
2892 )
2893     echo
2894
2895     $as_echo "## ----------------- ##
2896 ## Output variables. ##
2897 ## ----------------- ##"
2898     echo
2899     for ac_var in $ac_subst_vars
2900     do
2901       eval ac_val=\$$ac_var
2902       case $ac_val in
2903       *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2904       esac
2905       $as_echo "$ac_var='\''$ac_val'\''"
2906     done | sort
2907     echo
2908
2909     if test -n "$ac_subst_files"; then
2910       $as_echo "## ------------------- ##
2911 ## File substitutions. ##
2912 ## ------------------- ##"
2913       echo
2914       for ac_var in $ac_subst_files
2915       do
2916         eval ac_val=\$$ac_var
2917         case $ac_val in
2918         *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2919         esac
2920         $as_echo "$ac_var='\''$ac_val'\''"
2921       done | sort
2922       echo
2923     fi
2924
2925     if test -s confdefs.h; then
2926       $as_echo "## ----------- ##
2927 ## confdefs.h. ##
2928 ## ----------- ##"
2929       echo
2930       cat confdefs.h
2931       echo
2932     fi
2933     test "$ac_signal" != 0 &&
2934       $as_echo "$as_me: caught signal $ac_signal"
2935     $as_echo "$as_me: exit $exit_status"
2936   } >&5
2937   rm -f core *.core core.conftest.* &&
2938     rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2939     exit $exit_status
2940 ' 0
2941 for ac_signal in 1 2 13 15; do
2942   trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2943 done
2944 ac_signal=0
2945
2946 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2947 rm -f -r conftest* confdefs.h
2948
2949 $as_echo "/* confdefs.h */" > confdefs.h
2950
2951 # Predefined preprocessor variables.
2952
2953 cat >>confdefs.h <<_ACEOF
2954 #define PACKAGE_NAME "$PACKAGE_NAME"
2955 _ACEOF
2956
2957 cat >>confdefs.h <<_ACEOF
2958 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2959 _ACEOF
2960
2961 cat >>confdefs.h <<_ACEOF
2962 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2963 _ACEOF
2964
2965 cat >>confdefs.h <<_ACEOF
2966 #define PACKAGE_STRING "$PACKAGE_STRING"
2967 _ACEOF
2968
2969 cat >>confdefs.h <<_ACEOF
2970 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2971 _ACEOF
2972
2973 cat >>confdefs.h <<_ACEOF
2974 #define PACKAGE_URL "$PACKAGE_URL"
2975 _ACEOF
2976
2977
2978 # Let the site file select an alternate cache file if it wants to.
2979 # Prefer an explicitly selected file to automatically selected ones.
2980 ac_site_file1=NONE
2981 ac_site_file2=NONE
2982 if test -n "$CONFIG_SITE"; then
2983   # We do not want a PATH search for config.site.
2984   case $CONFIG_SITE in #((
2985     -*)  ac_site_file1=./$CONFIG_SITE;;
2986     */*) ac_site_file1=$CONFIG_SITE;;
2987     *)   ac_site_file1=./$CONFIG_SITE;;
2988   esac
2989 elif test "x$prefix" != xNONE; then
2990   ac_site_file1=$prefix/share/config.site
2991   ac_site_file2=$prefix/etc/config.site
2992 else
2993   ac_site_file1=$ac_default_prefix/share/config.site
2994   ac_site_file2=$ac_default_prefix/etc/config.site
2995 fi
2996 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2997 do
2998   test "x$ac_site_file" = xNONE && continue
2999   if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
3000     { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
3001 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
3002     sed 's/^/| /' "$ac_site_file" >&5
3003     . "$ac_site_file" \
3004       || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3005 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3006 as_fn_error $? "failed to load site script $ac_site_file
3007 See \`config.log' for more details" "$LINENO" 5; }
3008   fi
3009 done
3010
3011 if test -r "$cache_file"; then
3012   # Some versions of bash will fail to source /dev/null (special files
3013   # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
3014   if test /dev/null != "$cache_file" && test -f "$cache_file"; then
3015     { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
3016 $as_echo "$as_me: loading cache $cache_file" >&6;}
3017     case $cache_file in
3018       [\\/]* | ?:[\\/]* ) . "$cache_file";;
3019       *)                      . "./$cache_file";;
3020     esac
3021   fi
3022 else
3023   { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
3024 $as_echo "$as_me: creating cache $cache_file" >&6;}
3025   >$cache_file
3026 fi
3027
3028 as_fn_append ac_header_list " stdlib.h"
3029 as_fn_append ac_header_list " unistd.h"
3030 as_fn_append ac_header_list " sys/param.h"
3031 # Check that the precious variables saved in the cache have kept the same
3032 # value.
3033 ac_cache_corrupted=false
3034 for ac_var in $ac_precious_vars; do
3035   eval ac_old_set=\$ac_cv_env_${ac_var}_set
3036   eval ac_new_set=\$ac_env_${ac_var}_set
3037   eval ac_old_val=\$ac_cv_env_${ac_var}_value
3038   eval ac_new_val=\$ac_env_${ac_var}_value
3039   case $ac_old_set,$ac_new_set in
3040     set,)
3041       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
3042 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
3043       ac_cache_corrupted=: ;;
3044     ,set)
3045       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
3046 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
3047       ac_cache_corrupted=: ;;
3048     ,);;
3049     *)
3050       if test "x$ac_old_val" != "x$ac_new_val"; then
3051         # differences in whitespace do not lead to failure.
3052         ac_old_val_w=`echo x $ac_old_val`
3053         ac_new_val_w=`echo x $ac_new_val`
3054         if test "$ac_old_val_w" != "$ac_new_val_w"; then
3055           { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
3056 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
3057           ac_cache_corrupted=:
3058         else
3059           { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
3060 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
3061           eval $ac_var=\$ac_old_val
3062         fi
3063         { $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
3064 $as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
3065         { $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
3066 $as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
3067       fi;;
3068   esac
3069   # Pass precious variables to config.status.
3070   if test "$ac_new_set" = set; then
3071     case $ac_new_val in
3072     *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
3073     *) ac_arg=$ac_var=$ac_new_val ;;
3074     esac
3075     case " $ac_configure_args " in
3076       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
3077       *) as_fn_append ac_configure_args " '$ac_arg'" ;;
3078     esac
3079   fi
3080 done
3081 if $ac_cache_corrupted; then
3082   { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3083 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3084   { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
3085 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
3086   as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
3087 fi
3088 ## -------------------- ##
3089 ## Main body of script. ##
3090 ## -------------------- ##
3091
3092 ac_ext=c
3093 ac_cpp='$CPP $CPPFLAGS'
3094 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3095 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3096 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3097
3098
3099
3100
3101 BUILD_DIR=`pwd`
3102 cd ..
3103 TOP_DIR=`pwd`
3104 cd ${BUILD_DIR}
3105
3106
3107 ac_aux_dir=
3108 for ac_dir in ${BUILD_DIR}/autoconf "$srcdir"/${BUILD_DIR}/autoconf; do
3109   if test -f "$ac_dir/install-sh"; then
3110     ac_aux_dir=$ac_dir
3111     ac_install_sh="$ac_aux_dir/install-sh -c"
3112     break
3113   elif test -f "$ac_dir/install.sh"; then
3114     ac_aux_dir=$ac_dir
3115     ac_install_sh="$ac_aux_dir/install.sh -c"
3116     break
3117   elif test -f "$ac_dir/shtool"; then
3118     ac_aux_dir=$ac_dir
3119     ac_install_sh="$ac_aux_dir/shtool install -c"
3120     break
3121   fi
3122 done
3123 if test -z "$ac_aux_dir"; then
3124   as_fn_error $? "cannot find install-sh, install.sh, or shtool in ${BUILD_DIR}/autoconf \"$srcdir\"/${BUILD_DIR}/autoconf" "$LINENO" 5
3125 fi
3126
3127 # These three variables are undocumented and unsupported,
3128 # and are intended to be withdrawn in a future Autoconf release.
3129 # They can cause serious problems if a builder's source tree is in a directory
3130 # whose full name contains unusual characters.
3131 ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
3132 ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
3133 ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
3134
3135
3136 ac_config_headers="$ac_config_headers src/config.h:autoconf/config.h.in"
3137
3138
3139 for ac_prog in true
3140 do
3141   # Extract the first word of "$ac_prog", so it can be a program name with args.
3142 set dummy $ac_prog; ac_word=$2
3143 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3144 $as_echo_n "checking for $ac_word... " >&6; }
3145 if ${ac_cv_path_TRUEPRG+:} false; then :
3146   $as_echo_n "(cached) " >&6
3147 else
3148   case $TRUEPRG in
3149   [\\/]* | ?:[\\/]*)
3150   ac_cv_path_TRUEPRG="$TRUEPRG" # Let the user override the test with a path.
3151   ;;
3152   *)
3153   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3154 for as_dir in $PATH
3155 do
3156   IFS=$as_save_IFS
3157   test -z "$as_dir" && as_dir=.
3158     for ac_exec_ext in '' $ac_executable_extensions; do
3159   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3160     ac_cv_path_TRUEPRG="$as_dir/$ac_word$ac_exec_ext"
3161     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3162     break 2
3163   fi
3164 done
3165   done
3166 IFS=$as_save_IFS
3167
3168   ;;
3169 esac
3170 fi
3171 TRUEPRG=$ac_cv_path_TRUEPRG
3172 if test -n "$TRUEPRG"; then
3173   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TRUEPRG" >&5
3174 $as_echo "$TRUEPRG" >&6; }
3175 else
3176   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3177 $as_echo "no" >&6; }
3178 fi
3179
3180
3181   test -n "$TRUEPRG" && break
3182 done
3183 test -n "$TRUEPRG" || TRUEPRG=":"
3184
3185 for ac_prog in false
3186 do
3187   # Extract the first word of "$ac_prog", so it can be a program name with args.
3188 set dummy $ac_prog; ac_word=$2
3189 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3190 $as_echo_n "checking for $ac_word... " >&6; }
3191 if ${ac_cv_path_FALSEPRG+:} false; then :
3192   $as_echo_n "(cached) " >&6
3193 else
3194   case $FALSEPRG in
3195   [\\/]* | ?:[\\/]*)
3196   ac_cv_path_FALSEPRG="$FALSEPRG" # Let the user override the test with a path.
3197   ;;
3198   *)
3199   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3200 for as_dir in $PATH
3201 do
3202   IFS=$as_save_IFS
3203   test -z "$as_dir" && as_dir=.
3204     for ac_exec_ext in '' $ac_executable_extensions; do
3205   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3206     ac_cv_path_FALSEPRG="$as_dir/$ac_word$ac_exec_ext"
3207     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3208     break 2
3209   fi
3210 done
3211   done
3212 IFS=$as_save_IFS
3213
3214   ;;
3215 esac
3216 fi
3217 FALSEPRG=$ac_cv_path_FALSEPRG
3218 if test -n "$FALSEPRG"; then
3219   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FALSEPRG" >&5
3220 $as_echo "$FALSEPRG" >&6; }
3221 else
3222   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3223 $as_echo "no" >&6; }
3224 fi
3225
3226
3227   test -n "$FALSEPRG" && break
3228 done
3229 test -n "$FALSEPRG" || FALSEPRG=":"
3230
3231
3232
3233 post_host=
3234 if test "x$BACULA" != x; then
3235    post_host=`echo -${BACULA} | tr 'A-Z ' 'a-z-'`
3236 fi
3237 BACULA=${BACULA:-Bacula}
3238 VERSION=`sed -n -e 's/^#define VERSION.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
3239 RELEASE=`sed -n -e 's/^#define RELEASE.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
3240 DATE=`sed -n -e 's/^#define BDATE.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
3241 LSMDATE=`sed -n -e 's/^#define LSMDATE.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
3242 BDB_VERSION=`sed -n -e 's/^#define BDB_VERSION \(.*\)$/\1/p' ${srcdir}/src/cats/cats.h`
3243 DEPKGS_VERSION=`sed -n -e 's/^#define DEPKGS_VERSION \(.*\)$/\1/p' ${srcdir}/src/cats/cats.h`
3244 DEPKGS_QT_VERSION=`sed -n -e 's/^#define DEPKGS_QT_VERSION.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
3245 BQT_VERSION=`sed -n -e 's/^#define BQT_VERSION.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
3246
3247 LIBBAC_LT_RELEASE=`sed -n -e 's/^#.*LIBBAC_LT_RELEASE.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
3248 LIBBACCFG_LT_RELEASE=`sed -n -e 's/^#.*LIBBACCFG_LT_RELEASE.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
3249 LIBBACPY_LT_RELEASE=`sed -n -e 's/^#.*LIBBACPY_LT_RELEASE.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
3250
3251 LIBBAC_LT_RELEASE=${LIBBAC_LT_RELEASE:-$VERSION}
3252 LIBBACCFG_LT_RELEASE=${LIBBACCFG_LT_RELEASE:-$VERSION}
3253 LIBBACPY_LT_RELEASE=${LIBBACPY_LT_RELEASE:-$VERSION}
3254
3255
3256 LIBBACSQL_LT_RELEASE=`sed -n -e 's/^#.*LIBBACSQL_LT_RELEASE.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
3257 LIBBACCATS_LT_RELEASE=`sed -n -e 's/^#.*LIBBACCATS_LT_RELEASE.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
3258
3259 LIBBACSQL_LT_RELEASE=${LIBBACSQL_LT_RELEASE:-$VERSION}
3260 LIBBACCATS_LT_RELEASE=${LIBBACCATS_LT_RELEASE:-$VERSION}
3261
3262
3263 LIBBACFIND_LT_RELEASE=`sed -n -e 's/^#.*LIBBACFIND_LT_RELEASE.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
3264
3265 LIBBACFIND_LT_RELEASE=${LIBBACFIND_LT_RELEASE:-$VERSION}
3266
3267
3268 echo "configuring for ${BACULA} $VERSION ($DATE)"
3269
3270
3271
3272 ac_ext=c
3273 ac_cpp='$CPP $CPPFLAGS'
3274 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3275 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3276 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3277 if test -n "$ac_tool_prefix"; then
3278   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3279 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3280 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3281 $as_echo_n "checking for $ac_word... " >&6; }
3282 if ${ac_cv_prog_CC+:} false; then :
3283   $as_echo_n "(cached) " >&6
3284 else
3285   if test -n "$CC"; then
3286   ac_cv_prog_CC="$CC" # Let the user override the test.
3287 else
3288 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3289 for as_dir in $PATH
3290 do
3291   IFS=$as_save_IFS
3292   test -z "$as_dir" && as_dir=.
3293     for ac_exec_ext in '' $ac_executable_extensions; do
3294   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3295     ac_cv_prog_CC="${ac_tool_prefix}gcc"
3296     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3297     break 2
3298   fi
3299 done
3300   done
3301 IFS=$as_save_IFS
3302
3303 fi
3304 fi
3305 CC=$ac_cv_prog_CC
3306 if test -n "$CC"; then
3307   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3308 $as_echo "$CC" >&6; }
3309 else
3310   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3311 $as_echo "no" >&6; }
3312 fi
3313
3314
3315 fi
3316 if test -z "$ac_cv_prog_CC"; then
3317   ac_ct_CC=$CC
3318   # Extract the first word of "gcc", so it can be a program name with args.
3319 set dummy gcc; ac_word=$2
3320 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3321 $as_echo_n "checking for $ac_word... " >&6; }
3322 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3323   $as_echo_n "(cached) " >&6
3324 else
3325   if test -n "$ac_ct_CC"; then
3326   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3327 else
3328 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3329 for as_dir in $PATH
3330 do
3331   IFS=$as_save_IFS
3332   test -z "$as_dir" && as_dir=.
3333     for ac_exec_ext in '' $ac_executable_extensions; do
3334   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3335     ac_cv_prog_ac_ct_CC="gcc"
3336     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3337     break 2
3338   fi
3339 done
3340   done
3341 IFS=$as_save_IFS
3342
3343 fi
3344 fi
3345 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3346 if test -n "$ac_ct_CC"; then
3347   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3348 $as_echo "$ac_ct_CC" >&6; }
3349 else
3350   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3351 $as_echo "no" >&6; }
3352 fi
3353
3354   if test "x$ac_ct_CC" = x; then
3355     CC=""
3356   else
3357     case $cross_compiling:$ac_tool_warned in
3358 yes:)
3359 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3360 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3361 ac_tool_warned=yes ;;
3362 esac
3363     CC=$ac_ct_CC
3364   fi
3365 else
3366   CC="$ac_cv_prog_CC"
3367 fi
3368
3369 if test -z "$CC"; then
3370           if test -n "$ac_tool_prefix"; then
3371     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3372 set dummy ${ac_tool_prefix}cc; ac_word=$2
3373 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3374 $as_echo_n "checking for $ac_word... " >&6; }
3375 if ${ac_cv_prog_CC+:} false; then :
3376   $as_echo_n "(cached) " >&6
3377 else
3378   if test -n "$CC"; then
3379   ac_cv_prog_CC="$CC" # Let the user override the test.
3380 else
3381 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3382 for as_dir in $PATH
3383 do
3384   IFS=$as_save_IFS
3385   test -z "$as_dir" && as_dir=.
3386     for ac_exec_ext in '' $ac_executable_extensions; do
3387   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3388     ac_cv_prog_CC="${ac_tool_prefix}cc"
3389     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3390     break 2
3391   fi
3392 done
3393   done
3394 IFS=$as_save_IFS
3395
3396 fi
3397 fi
3398 CC=$ac_cv_prog_CC
3399 if test -n "$CC"; then
3400   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3401 $as_echo "$CC" >&6; }
3402 else
3403   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3404 $as_echo "no" >&6; }
3405 fi
3406
3407
3408   fi
3409 fi
3410 if test -z "$CC"; then
3411   # Extract the first word of "cc", so it can be a program name with args.
3412 set dummy cc; ac_word=$2
3413 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3414 $as_echo_n "checking for $ac_word... " >&6; }
3415 if ${ac_cv_prog_CC+:} false; then :
3416   $as_echo_n "(cached) " >&6
3417 else
3418   if test -n "$CC"; then
3419   ac_cv_prog_CC="$CC" # Let the user override the test.
3420 else
3421   ac_prog_rejected=no
3422 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3423 for as_dir in $PATH
3424 do
3425   IFS=$as_save_IFS
3426   test -z "$as_dir" && as_dir=.
3427     for ac_exec_ext in '' $ac_executable_extensions; do
3428   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3429     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3430        ac_prog_rejected=yes
3431        continue
3432      fi
3433     ac_cv_prog_CC="cc"
3434     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3435     break 2
3436   fi
3437 done
3438   done
3439 IFS=$as_save_IFS
3440
3441 if test $ac_prog_rejected = yes; then
3442   # We found a bogon in the path, so make sure we never use it.
3443   set dummy $ac_cv_prog_CC
3444   shift
3445   if test $# != 0; then
3446     # We chose a different compiler from the bogus one.
3447     # However, it has the same basename, so the bogon will be chosen
3448     # first if we set CC to just the basename; use the full file name.
3449     shift
3450     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3451   fi
3452 fi
3453 fi
3454 fi
3455 CC=$ac_cv_prog_CC
3456 if test -n "$CC"; then
3457   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3458 $as_echo "$CC" >&6; }
3459 else
3460   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3461 $as_echo "no" >&6; }
3462 fi
3463
3464
3465 fi
3466 if test -z "$CC"; then
3467   if test -n "$ac_tool_prefix"; then
3468   for ac_prog in cl.exe
3469   do
3470     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3471 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3472 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3473 $as_echo_n "checking for $ac_word... " >&6; }
3474 if ${ac_cv_prog_CC+:} false; then :
3475   $as_echo_n "(cached) " >&6
3476 else
3477   if test -n "$CC"; then
3478   ac_cv_prog_CC="$CC" # Let the user override the test.
3479 else
3480 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3481 for as_dir in $PATH
3482 do
3483   IFS=$as_save_IFS
3484   test -z "$as_dir" && as_dir=.
3485     for ac_exec_ext in '' $ac_executable_extensions; do
3486   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3487     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3488     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3489     break 2
3490   fi
3491 done
3492   done
3493 IFS=$as_save_IFS
3494
3495 fi
3496 fi
3497 CC=$ac_cv_prog_CC
3498 if test -n "$CC"; then
3499   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3500 $as_echo "$CC" >&6; }
3501 else
3502   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3503 $as_echo "no" >&6; }
3504 fi
3505
3506
3507     test -n "$CC" && break
3508   done
3509 fi
3510 if test -z "$CC"; then
3511   ac_ct_CC=$CC
3512   for ac_prog in cl.exe
3513 do
3514   # Extract the first word of "$ac_prog", so it can be a program name with args.
3515 set dummy $ac_prog; ac_word=$2
3516 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3517 $as_echo_n "checking for $ac_word... " >&6; }
3518 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3519   $as_echo_n "(cached) " >&6
3520 else
3521   if test -n "$ac_ct_CC"; then
3522   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3523 else
3524 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3525 for as_dir in $PATH
3526 do
3527   IFS=$as_save_IFS
3528   test -z "$as_dir" && as_dir=.
3529     for ac_exec_ext in '' $ac_executable_extensions; do
3530   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3531     ac_cv_prog_ac_ct_CC="$ac_prog"
3532     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3533     break 2
3534   fi
3535 done
3536   done
3537 IFS=$as_save_IFS
3538
3539 fi
3540 fi
3541 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3542 if test -n "$ac_ct_CC"; then
3543   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3544 $as_echo "$ac_ct_CC" >&6; }
3545 else
3546   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3547 $as_echo "no" >&6; }
3548 fi
3549
3550
3551   test -n "$ac_ct_CC" && break
3552 done
3553
3554   if test "x$ac_ct_CC" = x; then
3555     CC=""
3556   else
3557     case $cross_compiling:$ac_tool_warned in
3558 yes:)
3559 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3560 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3561 ac_tool_warned=yes ;;
3562 esac
3563     CC=$ac_ct_CC
3564   fi
3565 fi
3566
3567 fi
3568
3569
3570 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3571 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3572 as_fn_error $? "no acceptable C compiler found in \$PATH
3573 See \`config.log' for more details" "$LINENO" 5; }
3574
3575 # Provide some information about the compiler.
3576 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3577 set X $ac_compile
3578 ac_compiler=$2
3579 for ac_option in --version -v -V -qversion; do
3580   { { ac_try="$ac_compiler $ac_option >&5"
3581 case "(($ac_try" in
3582   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3583   *) ac_try_echo=$ac_try;;
3584 esac
3585 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3586 $as_echo "$ac_try_echo"; } >&5
3587   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3588   ac_status=$?
3589   if test -s conftest.err; then
3590     sed '10a\
3591 ... rest of stderr output deleted ...
3592          10q' conftest.err >conftest.er1
3593     cat conftest.er1 >&5
3594   fi
3595   rm -f conftest.er1 conftest.err
3596   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3597   test $ac_status = 0; }
3598 done
3599
3600 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3601 /* end confdefs.h.  */
3602
3603 int
3604 main ()
3605 {
3606
3607   ;
3608   return 0;
3609 }
3610 _ACEOF
3611 ac_clean_files_save=$ac_clean_files
3612 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3613 # Try to create an executable without -o first, disregard a.out.
3614 # It will help us diagnose broken compilers, and finding out an intuition
3615 # of exeext.
3616 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3617 $as_echo_n "checking whether the C compiler works... " >&6; }
3618 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3619
3620 # The possible output files:
3621 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3622
3623 ac_rmfiles=
3624 for ac_file in $ac_files
3625 do
3626   case $ac_file in
3627     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3628     * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3629   esac
3630 done
3631 rm -f $ac_rmfiles
3632
3633 if { { ac_try="$ac_link_default"
3634 case "(($ac_try" in
3635   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3636   *) ac_try_echo=$ac_try;;
3637 esac
3638 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3639 $as_echo "$ac_try_echo"; } >&5
3640   (eval "$ac_link_default") 2>&5
3641   ac_status=$?
3642   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3643   test $ac_status = 0; }; then :
3644   # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3645 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3646 # in a Makefile.  We should not override ac_cv_exeext if it was cached,
3647 # so that the user can short-circuit this test for compilers unknown to
3648 # Autoconf.
3649 for ac_file in $ac_files ''
3650 do
3651   test -f "$ac_file" || continue
3652   case $ac_file in
3653     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3654         ;;
3655     [ab].out )
3656         # We found the default executable, but exeext='' is most
3657         # certainly right.
3658         break;;
3659     *.* )
3660         if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3661         then :; else
3662            ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3663         fi
3664         # We set ac_cv_exeext here because the later test for it is not
3665         # safe: cross compilers may not add the suffix if given an `-o'
3666         # argument, so we may need to know it at that point already.
3667         # Even if this section looks crufty: it has the advantage of
3668         # actually working.
3669         break;;
3670     * )
3671         break;;
3672   esac
3673 done
3674 test "$ac_cv_exeext" = no && ac_cv_exeext=
3675
3676 else
3677   ac_file=''
3678 fi
3679 if test -z "$ac_file"; then :
3680   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3681 $as_echo "no" >&6; }
3682 $as_echo "$as_me: failed program was:" >&5
3683 sed 's/^/| /' conftest.$ac_ext >&5
3684
3685 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3686 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3687 as_fn_error 77 "C compiler cannot create executables
3688 See \`config.log' for more details" "$LINENO" 5; }
3689 else
3690   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3691 $as_echo "yes" >&6; }
3692 fi
3693 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3694 $as_echo_n "checking for C compiler default output file name... " >&6; }
3695 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3696 $as_echo "$ac_file" >&6; }
3697 ac_exeext=$ac_cv_exeext
3698
3699 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3700 ac_clean_files=$ac_clean_files_save
3701 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3702 $as_echo_n "checking for suffix of executables... " >&6; }
3703 if { { ac_try="$ac_link"
3704 case "(($ac_try" in
3705   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3706   *) ac_try_echo=$ac_try;;
3707 esac
3708 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3709 $as_echo "$ac_try_echo"; } >&5
3710   (eval "$ac_link") 2>&5
3711   ac_status=$?
3712   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3713   test $ac_status = 0; }; then :
3714   # If both `conftest.exe' and `conftest' are `present' (well, observable)
3715 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
3716 # work properly (i.e., refer to `conftest.exe'), while it won't with
3717 # `rm'.
3718 for ac_file in conftest.exe conftest conftest.*; do
3719   test -f "$ac_file" || continue
3720   case $ac_file in
3721     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3722     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3723           break;;
3724     * ) break;;
3725   esac
3726 done
3727 else
3728   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3729 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3730 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3731 See \`config.log' for more details" "$LINENO" 5; }
3732 fi
3733 rm -f conftest conftest$ac_cv_exeext
3734 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3735 $as_echo "$ac_cv_exeext" >&6; }
3736
3737 rm -f conftest.$ac_ext
3738 EXEEXT=$ac_cv_exeext
3739 ac_exeext=$EXEEXT
3740 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3741 /* end confdefs.h.  */
3742 #include <stdio.h>
3743 int
3744 main ()
3745 {
3746 FILE *f = fopen ("conftest.out", "w");
3747  return ferror (f) || fclose (f) != 0;
3748
3749   ;
3750   return 0;
3751 }
3752 _ACEOF
3753 ac_clean_files="$ac_clean_files conftest.out"
3754 # Check that the compiler produces executables we can run.  If not, either
3755 # the compiler is broken, or we cross compile.
3756 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3757 $as_echo_n "checking whether we are cross compiling... " >&6; }
3758 if test "$cross_compiling" != yes; then
3759   { { ac_try="$ac_link"
3760 case "(($ac_try" in
3761   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3762   *) ac_try_echo=$ac_try;;
3763 esac
3764 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3765 $as_echo "$ac_try_echo"; } >&5
3766   (eval "$ac_link") 2>&5
3767   ac_status=$?
3768   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3769   test $ac_status = 0; }
3770   if { ac_try='./conftest$ac_cv_exeext'
3771   { { case "(($ac_try" in
3772   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3773   *) ac_try_echo=$ac_try;;
3774 esac
3775 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3776 $as_echo "$ac_try_echo"; } >&5
3777   (eval "$ac_try") 2>&5
3778   ac_status=$?
3779   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3780   test $ac_status = 0; }; }; then
3781     cross_compiling=no
3782   else
3783     if test "$cross_compiling" = maybe; then
3784         cross_compiling=yes
3785     else
3786         { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3787 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3788 as_fn_error $? "cannot run C compiled programs.
3789 If you meant to cross compile, use \`--host'.
3790 See \`config.log' for more details" "$LINENO" 5; }
3791     fi
3792   fi
3793 fi
3794 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3795 $as_echo "$cross_compiling" >&6; }
3796
3797 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3798 ac_clean_files=$ac_clean_files_save
3799 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3800 $as_echo_n "checking for suffix of object files... " >&6; }
3801 if ${ac_cv_objext+:} false; then :
3802   $as_echo_n "(cached) " >&6
3803 else
3804   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3805 /* end confdefs.h.  */
3806
3807 int
3808 main ()
3809 {
3810
3811   ;
3812   return 0;
3813 }
3814 _ACEOF
3815 rm -f conftest.o conftest.obj
3816 if { { ac_try="$ac_compile"
3817 case "(($ac_try" in
3818   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3819   *) ac_try_echo=$ac_try;;
3820 esac
3821 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3822 $as_echo "$ac_try_echo"; } >&5
3823   (eval "$ac_compile") 2>&5
3824   ac_status=$?
3825   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3826   test $ac_status = 0; }; then :
3827   for ac_file in conftest.o conftest.obj conftest.*; do
3828   test -f "$ac_file" || continue;
3829   case $ac_file in
3830     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3831     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3832        break;;
3833   esac
3834 done
3835 else
3836   $as_echo "$as_me: failed program was:" >&5
3837 sed 's/^/| /' conftest.$ac_ext >&5
3838
3839 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3840 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3841 as_fn_error $? "cannot compute suffix of object files: cannot compile
3842 See \`config.log' for more details" "$LINENO" 5; }
3843 fi
3844 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3845 fi
3846 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3847 $as_echo "$ac_cv_objext" >&6; }
3848 OBJEXT=$ac_cv_objext
3849 ac_objext=$OBJEXT
3850 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3851 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3852 if ${ac_cv_c_compiler_gnu+:} false; then :
3853   $as_echo_n "(cached) " >&6
3854 else
3855   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3856 /* end confdefs.h.  */
3857
3858 int
3859 main ()
3860 {
3861 #ifndef __GNUC__
3862        choke me
3863 #endif
3864
3865   ;
3866   return 0;
3867 }
3868 _ACEOF
3869 if ac_fn_c_try_compile "$LINENO"; then :
3870   ac_compiler_gnu=yes
3871 else
3872   ac_compiler_gnu=no
3873 fi
3874 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3875 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3876
3877 fi
3878 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3879 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3880 if test $ac_compiler_gnu = yes; then
3881   GCC=yes
3882 else
3883   GCC=
3884 fi
3885 ac_test_CFLAGS=${CFLAGS+set}
3886 ac_save_CFLAGS=$CFLAGS
3887 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3888 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3889 if ${ac_cv_prog_cc_g+:} false; then :
3890   $as_echo_n "(cached) " >&6
3891 else
3892   ac_save_c_werror_flag=$ac_c_werror_flag
3893    ac_c_werror_flag=yes
3894    ac_cv_prog_cc_g=no
3895    CFLAGS="-g"
3896    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3897 /* end confdefs.h.  */
3898
3899 int
3900 main ()
3901 {
3902
3903   ;
3904   return 0;
3905 }
3906 _ACEOF
3907 if ac_fn_c_try_compile "$LINENO"; then :
3908   ac_cv_prog_cc_g=yes
3909 else
3910   CFLAGS=""
3911       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3912 /* end confdefs.h.  */
3913
3914 int
3915 main ()
3916 {
3917
3918   ;
3919   return 0;
3920 }
3921 _ACEOF
3922 if ac_fn_c_try_compile "$LINENO"; then :
3923
3924 else
3925   ac_c_werror_flag=$ac_save_c_werror_flag
3926          CFLAGS="-g"
3927          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3928 /* end confdefs.h.  */
3929
3930 int
3931 main ()
3932 {
3933
3934   ;
3935   return 0;
3936 }
3937 _ACEOF
3938 if ac_fn_c_try_compile "$LINENO"; then :
3939   ac_cv_prog_cc_g=yes
3940 fi
3941 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3942 fi
3943 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3944 fi
3945 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3946    ac_c_werror_flag=$ac_save_c_werror_flag
3947 fi
3948 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3949 $as_echo "$ac_cv_prog_cc_g" >&6; }
3950 if test "$ac_test_CFLAGS" = set; then
3951   CFLAGS=$ac_save_CFLAGS
3952 elif test $ac_cv_prog_cc_g = yes; then
3953   if test "$GCC" = yes; then
3954     CFLAGS="-g -O2"
3955   else
3956     CFLAGS="-g"
3957   fi
3958 else
3959   if test "$GCC" = yes; then
3960     CFLAGS="-O2"
3961   else
3962     CFLAGS=
3963   fi
3964 fi
3965 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3966 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3967 if ${ac_cv_prog_cc_c89+:} false; then :
3968   $as_echo_n "(cached) " >&6
3969 else
3970   ac_cv_prog_cc_c89=no
3971 ac_save_CC=$CC
3972 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3973 /* end confdefs.h.  */
3974 #include <stdarg.h>
3975 #include <stdio.h>
3976 #include <sys/types.h>
3977 #include <sys/stat.h>
3978 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3979 struct buf { int x; };
3980 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3981 static char *e (p, i)
3982      char **p;
3983      int i;
3984 {
3985   return p[i];
3986 }
3987 static char *f (char * (*g) (char **, int), char **p, ...)
3988 {
3989   char *s;
3990   va_list v;
3991   va_start (v,p);
3992   s = g (p, va_arg (v,int));
3993   va_end (v);
3994   return s;
3995 }
3996
3997 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
3998    function prototypes and stuff, but not '\xHH' hex character constants.
3999    These don't provoke an error unfortunately, instead are silently treated
4000    as 'x'.  The following induces an error, until -std is added to get
4001    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
4002    array size at least.  It's necessary to write '\x00'==0 to get something
4003    that's true only with -std.  */
4004 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4005
4006 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4007    inside strings and character constants.  */
4008 #define FOO(x) 'x'
4009 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4010
4011 int test (int i, double x);
4012 struct s1 {int (*f) (int a);};
4013 struct s2 {int (*f) (double a);};
4014 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4015 int argc;
4016 char **argv;
4017 int
4018 main ()
4019 {
4020 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
4021   ;
4022   return 0;
4023 }
4024 _ACEOF
4025 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4026         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4027 do
4028   CC="$ac_save_CC $ac_arg"
4029   if ac_fn_c_try_compile "$LINENO"; then :
4030   ac_cv_prog_cc_c89=$ac_arg
4031 fi
4032 rm -f core conftest.err conftest.$ac_objext
4033   test "x$ac_cv_prog_cc_c89" != "xno" && break
4034 done
4035 rm -f conftest.$ac_ext
4036 CC=$ac_save_CC
4037
4038 fi
4039 # AC_CACHE_VAL
4040 case "x$ac_cv_prog_cc_c89" in
4041   x)
4042     { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4043 $as_echo "none needed" >&6; } ;;
4044   xno)
4045     { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4046 $as_echo "unsupported" >&6; } ;;
4047   *)
4048     CC="$CC $ac_cv_prog_cc_c89"
4049     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4050 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4051 esac
4052 if test "x$ac_cv_prog_cc_c89" != xno; then :
4053
4054 fi
4055
4056 ac_ext=c
4057 ac_cpp='$CPP $CPPFLAGS'
4058 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4059 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4060 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4061
4062 ac_ext=cpp
4063 ac_cpp='$CXXCPP $CPPFLAGS'
4064 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4065 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4066 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4067 if test -z "$CXX"; then
4068   if test -n "$CCC"; then
4069     CXX=$CCC
4070   else
4071     if test -n "$ac_tool_prefix"; then
4072   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4073   do
4074     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4075 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4076 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4077 $as_echo_n "checking for $ac_word... " >&6; }
4078 if ${ac_cv_prog_CXX+:} false; then :
4079   $as_echo_n "(cached) " >&6
4080 else
4081   if test -n "$CXX"; then
4082   ac_cv_prog_CXX="$CXX" # Let the user override the test.
4083 else
4084 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4085 for as_dir in $PATH
4086 do
4087   IFS=$as_save_IFS
4088   test -z "$as_dir" && as_dir=.
4089     for ac_exec_ext in '' $ac_executable_extensions; do
4090   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4091     ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
4092     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4093     break 2
4094   fi
4095 done
4096   done
4097 IFS=$as_save_IFS
4098
4099 fi
4100 fi
4101 CXX=$ac_cv_prog_CXX
4102 if test -n "$CXX"; then
4103   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
4104 $as_echo "$CXX" >&6; }
4105 else
4106   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4107 $as_echo "no" >&6; }
4108 fi
4109
4110
4111     test -n "$CXX" && break
4112   done
4113 fi
4114 if test -z "$CXX"; then
4115   ac_ct_CXX=$CXX
4116   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4117 do
4118   # Extract the first word of "$ac_prog", so it can be a program name with args.
4119 set dummy $ac_prog; ac_word=$2
4120 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4121 $as_echo_n "checking for $ac_word... " >&6; }
4122 if ${ac_cv_prog_ac_ct_CXX+:} false; then :
4123   $as_echo_n "(cached) " >&6
4124 else
4125   if test -n "$ac_ct_CXX"; then
4126   ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
4127 else
4128 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4129 for as_dir in $PATH
4130 do
4131   IFS=$as_save_IFS
4132   test -z "$as_dir" && as_dir=.
4133     for ac_exec_ext in '' $ac_executable_extensions; do
4134   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4135     ac_cv_prog_ac_ct_CXX="$ac_prog"
4136     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4137     break 2
4138   fi
4139 done
4140   done
4141 IFS=$as_save_IFS
4142
4143 fi
4144 fi
4145 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
4146 if test -n "$ac_ct_CXX"; then
4147   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
4148 $as_echo "$ac_ct_CXX" >&6; }
4149 else
4150   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4151 $as_echo "no" >&6; }
4152 fi
4153
4154
4155   test -n "$ac_ct_CXX" && break
4156 done
4157
4158   if test "x$ac_ct_CXX" = x; then
4159     CXX="g++"
4160   else
4161     case $cross_compiling:$ac_tool_warned in
4162 yes:)
4163 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4164 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4165 ac_tool_warned=yes ;;
4166 esac
4167     CXX=$ac_ct_CXX
4168   fi
4169 fi
4170
4171   fi
4172 fi
4173 # Provide some information about the compiler.
4174 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
4175 set X $ac_compile
4176 ac_compiler=$2
4177 for ac_option in --version -v -V -qversion; do
4178   { { ac_try="$ac_compiler $ac_option >&5"
4179 case "(($ac_try" in
4180   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4181   *) ac_try_echo=$ac_try;;
4182 esac
4183 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4184 $as_echo "$ac_try_echo"; } >&5
4185   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4186   ac_status=$?
4187   if test -s conftest.err; then
4188     sed '10a\
4189 ... rest of stderr output deleted ...
4190          10q' conftest.err >conftest.er1
4191     cat conftest.er1 >&5
4192   fi
4193   rm -f conftest.er1 conftest.err
4194   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4195   test $ac_status = 0; }
4196 done
4197
4198 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
4199 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
4200 if ${ac_cv_cxx_compiler_gnu+:} false; then :
4201   $as_echo_n "(cached) " >&6
4202 else
4203   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4204 /* end confdefs.h.  */
4205
4206 int
4207 main ()
4208 {
4209 #ifndef __GNUC__
4210        choke me
4211 #endif
4212
4213   ;
4214   return 0;
4215 }
4216 _ACEOF
4217 if ac_fn_cxx_try_compile "$LINENO"; then :
4218   ac_compiler_gnu=yes
4219 else
4220   ac_compiler_gnu=no
4221 fi
4222 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4223 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
4224
4225 fi
4226 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
4227 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
4228 if test $ac_compiler_gnu = yes; then
4229   GXX=yes
4230 else
4231   GXX=
4232 fi
4233 ac_test_CXXFLAGS=${CXXFLAGS+set}
4234 ac_save_CXXFLAGS=$CXXFLAGS
4235 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
4236 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
4237 if ${ac_cv_prog_cxx_g+:} false; then :
4238   $as_echo_n "(cached) " >&6
4239 else
4240   ac_save_cxx_werror_flag=$ac_cxx_werror_flag
4241    ac_cxx_werror_flag=yes
4242    ac_cv_prog_cxx_g=no
4243    CXXFLAGS="-g"
4244    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4245 /* end confdefs.h.  */
4246
4247 int
4248 main ()
4249 {
4250
4251   ;
4252   return 0;
4253 }
4254 _ACEOF
4255 if ac_fn_cxx_try_compile "$LINENO"; then :
4256   ac_cv_prog_cxx_g=yes
4257 else
4258   CXXFLAGS=""
4259       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4260 /* end confdefs.h.  */
4261
4262 int
4263 main ()
4264 {
4265
4266   ;
4267   return 0;
4268 }
4269 _ACEOF
4270 if ac_fn_cxx_try_compile "$LINENO"; then :
4271
4272 else
4273   ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4274          CXXFLAGS="-g"
4275          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4276 /* end confdefs.h.  */
4277
4278 int
4279 main ()
4280 {
4281
4282   ;
4283   return 0;
4284 }
4285 _ACEOF
4286 if ac_fn_cxx_try_compile "$LINENO"; then :
4287   ac_cv_prog_cxx_g=yes
4288 fi
4289 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4290 fi
4291 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4292 fi
4293 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4294    ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4295 fi
4296 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
4297 $as_echo "$ac_cv_prog_cxx_g" >&6; }
4298 if test "$ac_test_CXXFLAGS" = set; then
4299   CXXFLAGS=$ac_save_CXXFLAGS
4300 elif test $ac_cv_prog_cxx_g = yes; then
4301   if test "$GXX" = yes; then
4302     CXXFLAGS="-g -O2"
4303   else
4304     CXXFLAGS="-g"
4305   fi
4306 else
4307   if test "$GXX" = yes; then
4308     CXXFLAGS="-O2"
4309   else
4310     CXXFLAGS=
4311   fi
4312 fi
4313 ac_ext=c
4314 ac_cpp='$CPP $CPPFLAGS'
4315 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4316 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4317 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4318
4319 if test "x$CC" != xcc; then
4320   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC and cc understand -c and -o together" >&5
4321 $as_echo_n "checking whether $CC and cc understand -c and -o together... " >&6; }
4322 else
4323   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether cc understands -c and -o together" >&5
4324 $as_echo_n "checking whether cc understands -c and -o together... " >&6; }
4325 fi
4326 set dummy $CC; ac_cc=`$as_echo "$2" |
4327                       sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
4328 if eval \${ac_cv_prog_cc_${ac_cc}_c_o+:} false; then :
4329   $as_echo_n "(cached) " >&6
4330 else
4331   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4332 /* end confdefs.h.  */
4333
4334 int
4335 main ()
4336 {
4337
4338   ;
4339   return 0;
4340 }
4341 _ACEOF
4342 # Make sure it works both with $CC and with simple cc.
4343 # We do the test twice because some compilers refuse to overwrite an
4344 # existing .o file with -o, though they will create one.
4345 ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
4346 rm -f conftest2.*
4347 if { { case "(($ac_try" in
4348   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4349   *) ac_try_echo=$ac_try;;
4350 esac
4351 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4352 $as_echo "$ac_try_echo"; } >&5
4353   (eval "$ac_try") 2>&5
4354   ac_status=$?
4355   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4356   test $ac_status = 0; } &&
4357    test -f conftest2.$ac_objext && { { case "(($ac_try" in
4358   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4359   *) ac_try_echo=$ac_try;;
4360 esac
4361 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4362 $as_echo "$ac_try_echo"; } >&5
4363   (eval "$ac_try") 2>&5
4364   ac_status=$?
4365   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4366   test $ac_status = 0; };
4367 then
4368   eval ac_cv_prog_cc_${ac_cc}_c_o=yes
4369   if test "x$CC" != xcc; then
4370     # Test first that cc exists at all.
4371     if { ac_try='cc -c conftest.$ac_ext >&5'
4372   { { case "(($ac_try" in
4373   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4374   *) ac_try_echo=$ac_try;;
4375 esac
4376 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4377 $as_echo "$ac_try_echo"; } >&5
4378   (eval "$ac_try") 2>&5
4379   ac_status=$?
4380   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4381   test $ac_status = 0; }; }; then
4382       ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
4383       rm -f conftest2.*
4384       if { { case "(($ac_try" in
4385   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4386   *) ac_try_echo=$ac_try;;
4387 esac
4388 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4389 $as_echo "$ac_try_echo"; } >&5
4390   (eval "$ac_try") 2>&5
4391   ac_status=$?
4392   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4393   test $ac_status = 0; } &&
4394          test -f conftest2.$ac_objext && { { case "(($ac_try" in
4395   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4396   *) ac_try_echo=$ac_try;;
4397 esac
4398 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4399 $as_echo "$ac_try_echo"; } >&5
4400   (eval "$ac_try") 2>&5
4401   ac_status=$?
4402   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4403   test $ac_status = 0; };
4404       then
4405         # cc works too.
4406         :
4407       else
4408         # cc exists but doesn't like -o.
4409         eval ac_cv_prog_cc_${ac_cc}_c_o=no
4410       fi
4411     fi
4412   fi
4413 else
4414   eval ac_cv_prog_cc_${ac_cc}_c_o=no
4415 fi
4416 rm -f core conftest*
4417
4418 fi
4419 if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then
4420   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4421 $as_echo "yes" >&6; }
4422 else
4423   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4424 $as_echo "no" >&6; }
4425
4426 $as_echo "#define NO_MINUS_C_MINUS_O 1" >>confdefs.h
4427
4428 fi
4429
4430 ac_ext=c
4431 ac_cpp='$CPP $CPPFLAGS'
4432 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4433 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4434 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4435 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4436 $as_echo_n "checking how to run the C preprocessor... " >&6; }
4437 # On Suns, sometimes $CPP names a directory.
4438 if test -n "$CPP" && test -d "$CPP"; then
4439   CPP=
4440 fi
4441 if test -z "$CPP"; then
4442   if ${ac_cv_prog_CPP+:} false; then :
4443   $as_echo_n "(cached) " >&6
4444 else
4445       # Double quotes because CPP needs to be expanded
4446     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4447     do
4448       ac_preproc_ok=false
4449 for ac_c_preproc_warn_flag in '' yes
4450 do
4451   # Use a header file that comes with gcc, so configuring glibc
4452   # with a fresh cross-compiler works.
4453   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4454   # <limits.h> exists even on freestanding compilers.
4455   # On the NeXT, cc -E runs the code through the compiler's parser,
4456   # not just through cpp. "Syntax error" is here to catch this case.
4457   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4458 /* end confdefs.h.  */
4459 #ifdef __STDC__
4460 # include <limits.h>
4461 #else
4462 # include <assert.h>
4463 #endif
4464                      Syntax error
4465 _ACEOF
4466 if ac_fn_c_try_cpp "$LINENO"; then :
4467
4468 else
4469   # Broken: fails on valid input.
4470 continue
4471 fi
4472 rm -f conftest.err conftest.i conftest.$ac_ext
4473
4474   # OK, works on sane cases.  Now check whether nonexistent headers
4475   # can be detected and how.
4476   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4477 /* end confdefs.h.  */
4478 #include <ac_nonexistent.h>
4479 _ACEOF
4480 if ac_fn_c_try_cpp "$LINENO"; then :
4481   # Broken: success on invalid input.
4482 continue
4483 else
4484   # Passes both tests.
4485 ac_preproc_ok=:
4486 break
4487 fi
4488 rm -f conftest.err conftest.i conftest.$ac_ext
4489
4490 done
4491 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4492 rm -f conftest.i conftest.err conftest.$ac_ext
4493 if $ac_preproc_ok; then :
4494   break
4495 fi
4496
4497     done
4498     ac_cv_prog_CPP=$CPP
4499
4500 fi
4501   CPP=$ac_cv_prog_CPP
4502 else
4503   ac_cv_prog_CPP=$CPP
4504 fi
4505 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4506 $as_echo "$CPP" >&6; }
4507 ac_preproc_ok=false
4508 for ac_c_preproc_warn_flag in '' yes
4509 do
4510   # Use a header file that comes with gcc, so configuring glibc
4511   # with a fresh cross-compiler works.
4512   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4513   # <limits.h> exists even on freestanding compilers.
4514   # On the NeXT, cc -E runs the code through the compiler's parser,
4515   # not just through cpp. "Syntax error" is here to catch this case.
4516   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4517 /* end confdefs.h.  */
4518 #ifdef __STDC__
4519 # include <limits.h>
4520 #else
4521 # include <assert.h>
4522 #endif
4523                      Syntax error
4524 _ACEOF
4525 if ac_fn_c_try_cpp "$LINENO"; then :
4526
4527 else
4528   # Broken: fails on valid input.
4529 continue
4530 fi
4531 rm -f conftest.err conftest.i conftest.$ac_ext
4532
4533   # OK, works on sane cases.  Now check whether nonexistent headers
4534   # can be detected and how.
4535   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4536 /* end confdefs.h.  */
4537 #include <ac_nonexistent.h>
4538 _ACEOF
4539 if ac_fn_c_try_cpp "$LINENO"; then :
4540   # Broken: success on invalid input.
4541 continue
4542 else
4543   # Passes both tests.
4544 ac_preproc_ok=:
4545 break
4546 fi
4547 rm -f conftest.err conftest.i conftest.$ac_ext
4548
4549 done
4550 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4551 rm -f conftest.i conftest.err conftest.$ac_ext
4552 if $ac_preproc_ok; then :
4553
4554 else
4555   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4556 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4557 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
4558 See \`config.log' for more details" "$LINENO" 5; }
4559 fi
4560
4561 ac_ext=c
4562 ac_cpp='$CPP $CPPFLAGS'
4563 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4564 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4565 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4566
4567
4568 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4569 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4570 if ${ac_cv_path_GREP+:} false; then :
4571   $as_echo_n "(cached) " >&6
4572 else
4573   if test -z "$GREP"; then
4574   ac_path_GREP_found=false
4575   # Loop through the user's path and test for each of PROGNAME-LIST
4576   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4577 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4578 do
4579   IFS=$as_save_IFS
4580   test -z "$as_dir" && as_dir=.
4581     for ac_prog in grep ggrep; do
4582     for ac_exec_ext in '' $ac_executable_extensions; do
4583       ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4584       { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4585 # Check for GNU ac_path_GREP and select it if it is found.
4586   # Check for GNU $ac_path_GREP
4587 case `"$ac_path_GREP" --version 2>&1` in
4588 *GNU*)
4589   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4590 *)
4591   ac_count=0
4592   $as_echo_n 0123456789 >"conftest.in"
4593   while :
4594   do
4595     cat "conftest.in" "conftest.in" >"conftest.tmp"
4596     mv "conftest.tmp" "conftest.in"
4597     cp "conftest.in" "conftest.nl"
4598     $as_echo 'GREP' >> "conftest.nl"
4599     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4600     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4601     as_fn_arith $ac_count + 1 && ac_count=$as_val
4602     if test $ac_count -gt ${ac_path_GREP_max-0}; then
4603       # Best one so far, save it but keep looking for a better one
4604       ac_cv_path_GREP="$ac_path_GREP"
4605       ac_path_GREP_max=$ac_count
4606     fi
4607     # 10*(2^10) chars as input seems more than enough
4608     test $ac_count -gt 10 && break
4609   done
4610   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4611 esac
4612
4613       $ac_path_GREP_found && break 3
4614     done
4615   done
4616   done
4617 IFS=$as_save_IFS
4618   if test -z "$ac_cv_path_GREP"; then
4619     as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4620   fi
4621 else
4622   ac_cv_path_GREP=$GREP
4623 fi
4624
4625 fi
4626 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4627 $as_echo "$ac_cv_path_GREP" >&6; }
4628  GREP="$ac_cv_path_GREP"
4629
4630
4631 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4632 $as_echo_n "checking for egrep... " >&6; }
4633 if ${ac_cv_path_EGREP+:} false; then :
4634   $as_echo_n "(cached) " >&6
4635 else
4636   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4637    then ac_cv_path_EGREP="$GREP -E"
4638    else
4639      if test -z "$EGREP"; then
4640   ac_path_EGREP_found=false
4641   # Loop through the user's path and test for each of PROGNAME-LIST
4642   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4643 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4644 do
4645   IFS=$as_save_IFS
4646   test -z "$as_dir" && as_dir=.
4647     for ac_prog in egrep; do
4648     for ac_exec_ext in '' $ac_executable_extensions; do
4649       ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4650       { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4651 # Check for GNU ac_path_EGREP and select it if it is found.
4652   # Check for GNU $ac_path_EGREP
4653 case `"$ac_path_EGREP" --version 2>&1` in
4654 *GNU*)
4655   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4656 *)
4657   ac_count=0
4658   $as_echo_n 0123456789 >"conftest.in"
4659   while :
4660   do
4661     cat "conftest.in" "conftest.in" >"conftest.tmp"
4662     mv "conftest.tmp" "conftest.in"
4663     cp "conftest.in" "conftest.nl"
4664     $as_echo 'EGREP' >> "conftest.nl"
4665     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4666     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4667     as_fn_arith $ac_count + 1 && ac_count=$as_val
4668     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4669       # Best one so far, save it but keep looking for a better one
4670       ac_cv_path_EGREP="$ac_path_EGREP"
4671       ac_path_EGREP_max=$ac_count
4672     fi
4673     # 10*(2^10) chars as input seems more than enough
4674     test $ac_count -gt 10 && break
4675   done
4676   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4677 esac
4678
4679       $ac_path_EGREP_found && break 3
4680     done
4681   done
4682   done
4683 IFS=$as_save_IFS
4684   if test -z "$ac_cv_path_EGREP"; then
4685     as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4686   fi
4687 else
4688   ac_cv_path_EGREP=$EGREP
4689 fi
4690
4691    fi
4692 fi
4693 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4694 $as_echo "$ac_cv_path_EGREP" >&6; }
4695  EGREP="$ac_cv_path_EGREP"
4696
4697
4698 if test $ac_cv_c_compiler_gnu = yes; then
4699     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC needs -traditional" >&5
4700 $as_echo_n "checking whether $CC needs -traditional... " >&6; }
4701 if ${ac_cv_prog_gcc_traditional+:} false; then :
4702   $as_echo_n "(cached) " >&6
4703 else
4704     ac_pattern="Autoconf.*'x'"
4705   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4706 /* end confdefs.h.  */
4707 #include <sgtty.h>
4708 Autoconf TIOCGETP
4709 _ACEOF
4710 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4711   $EGREP "$ac_pattern" >/dev/null 2>&1; then :
4712   ac_cv_prog_gcc_traditional=yes
4713 else
4714   ac_cv_prog_gcc_traditional=no
4715 fi
4716 rm -f conftest*
4717
4718
4719   if test $ac_cv_prog_gcc_traditional = no; then
4720     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4721 /* end confdefs.h.  */
4722 #include <termio.h>
4723 Autoconf TCGETA
4724 _ACEOF
4725 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4726   $EGREP "$ac_pattern" >/dev/null 2>&1; then :
4727   ac_cv_prog_gcc_traditional=yes
4728 fi
4729 rm -f conftest*
4730
4731   fi
4732 fi
4733 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_gcc_traditional" >&5
4734 $as_echo "$ac_cv_prog_gcc_traditional" >&6; }
4735   if test $ac_cv_prog_gcc_traditional = yes; then
4736     CC="$CC -traditional"
4737   fi
4738 fi
4739
4740 BASECC=`basename $CC`
4741 have_gcc=no
4742 if test "x$BASECC" = xgcc; then
4743    $as_echo "#define HAVE_GCC 1" >>confdefs.h
4744
4745    have_gcc=yes
4746 fi
4747 # Extract the first word of "$CXX", so it can be a program name with args.
4748 set dummy $CXX; ac_word=$2
4749 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4750 $as_echo_n "checking for $ac_word... " >&6; }
4751 if ${ac_cv_path_CXX+:} false; then :
4752   $as_echo_n "(cached) " >&6
4753 else
4754   case $CXX in
4755   [\\/]* | ?:[\\/]*)
4756   ac_cv_path_CXX="$CXX" # Let the user override the test with a path.
4757   ;;
4758   *)
4759   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4760 for as_dir in $PATH
4761 do
4762   IFS=$as_save_IFS
4763   test -z "$as_dir" && as_dir=.
4764     for ac_exec_ext in '' $ac_executable_extensions; do
4765   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4766     ac_cv_path_CXX="$as_dir/$ac_word$ac_exec_ext"
4767     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4768     break 2
4769   fi
4770 done
4771   done
4772 IFS=$as_save_IFS
4773
4774   test -z "$ac_cv_path_CXX" && ac_cv_path_CXX="$CXX"
4775   ;;
4776 esac
4777 fi
4778 CXX=$ac_cv_path_CXX
4779 if test -n "$CXX"; then
4780   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
4781 $as_echo "$CXX" >&6; }
4782 else
4783   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4784 $as_echo "no" >&6; }
4785 fi
4786
4787
4788 if test ! -e $CXX; then
4789    as_fn_error $? "Unable to find C++ compiler" "$LINENO" 5
4790 fi
4791
4792 # Find a good install program.  We prefer a C program (faster),
4793 # so one script is as good as another.  But avoid the broken or
4794 # incompatible versions:
4795 # SysV /etc/install, /usr/sbin/install
4796 # SunOS /usr/etc/install
4797 # IRIX /sbin/install
4798 # AIX /bin/install
4799 # AmigaOS /C/install, which installs bootblocks on floppy discs
4800 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
4801 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
4802 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
4803 # OS/2's system install, which has a completely different semantic
4804 # ./install, which can be erroneously created by make from ./install.sh.
4805 # Reject install programs that cannot install multiple files.
4806 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
4807 $as_echo_n "checking for a BSD-compatible install... " >&6; }
4808 if test -z "$INSTALL"; then
4809 if ${ac_cv_path_install+:} false; then :
4810   $as_echo_n "(cached) " >&6
4811 else
4812   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4813 for as_dir in $PATH
4814 do
4815   IFS=$as_save_IFS
4816   test -z "$as_dir" && as_dir=.
4817     # Account for people who put trailing slashes in PATH elements.
4818 case $as_dir/ in #((
4819   ./ | .// | /[cC]/* | \
4820   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
4821   ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
4822   /usr/ucb/* ) ;;
4823   *)
4824     # OSF1 and SCO ODT 3.0 have their own names for install.
4825     # Don't use installbsd from OSF since it installs stuff as root
4826     # by default.
4827     for ac_prog in ginstall scoinst install; do
4828       for ac_exec_ext in '' $ac_executable_extensions; do
4829         if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
4830           if test $ac_prog = install &&
4831             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4832             # AIX install.  It has an incompatible calling convention.
4833             :
4834           elif test $ac_prog = install &&
4835             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4836             # program-specific install script used by HP pwplus--don't use.
4837             :
4838           else
4839             rm -rf conftest.one conftest.two conftest.dir
4840             echo one > conftest.one
4841             echo two > conftest.two
4842             mkdir conftest.dir
4843             if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
4844               test -s conftest.one && test -s conftest.two &&
4845               test -s conftest.dir/conftest.one &&
4846               test -s conftest.dir/conftest.two
4847             then
4848               ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
4849               break 3
4850             fi
4851           fi
4852         fi
4853       done
4854     done
4855     ;;
4856 esac
4857
4858   done
4859 IFS=$as_save_IFS
4860
4861 rm -rf conftest.one conftest.two conftest.dir
4862
4863 fi
4864   if test "${ac_cv_path_install+set}" = set; then
4865     INSTALL=$ac_cv_path_install
4866   else
4867     # As a last resort, use the slow shell script.  Don't cache a
4868     # value for INSTALL within a source directory, because that will
4869     # break other packages using the cache if that directory is
4870     # removed, or if the value is a relative name.
4871     INSTALL=$ac_install_sh
4872   fi
4873 fi
4874 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
4875 $as_echo "$INSTALL" >&6; }
4876
4877 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
4878 # It thinks the first close brace ends the variable substitution.
4879 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
4880
4881 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
4882
4883 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
4884
4885 # Extract the first word of "mv", so it can be a program name with args.
4886 set dummy mv; ac_word=$2
4887 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4888 $as_echo_n "checking for $ac_word... " >&6; }
4889 if ${ac_cv_path_MV+:} false; then :
4890   $as_echo_n "(cached) " >&6
4891 else
4892   case $MV in
4893   [\\/]* | ?:[\\/]*)
4894   ac_cv_path_MV="$MV" # Let the user override the test with a path.
4895   ;;
4896   *)
4897   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4898 for as_dir in $PATH
4899 do
4900   IFS=$as_save_IFS
4901   test -z "$as_dir" && as_dir=.
4902     for ac_exec_ext in '' $ac_executable_extensions; do
4903   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4904     ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
4905     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4906     break 2
4907   fi
4908 done
4909   done
4910 IFS=$as_save_IFS
4911
4912   test -z "$ac_cv_path_MV" && ac_cv_path_MV="mv"
4913   ;;
4914 esac
4915 fi
4916 MV=$ac_cv_path_MV
4917 if test -n "$MV"; then
4918   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MV" >&5
4919 $as_echo "$MV" >&6; }
4920 else
4921   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4922 $as_echo "no" >&6; }
4923 fi
4924
4925
4926 # Extract the first word of "rm", so it can be a program name with args.
4927 set dummy rm; ac_word=$2
4928 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4929 $as_echo_n "checking for $ac_word... " >&6; }
4930 if ${ac_cv_path_REMOVE+:} false; then :
4931   $as_echo_n "(cached) " >&6
4932 else
4933   case $REMOVE in
4934   [\\/]* | ?:[\\/]*)
4935   ac_cv_path_REMOVE="$REMOVE" # Let the user override the test with a path.
4936   ;;
4937   *)
4938   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4939 for as_dir in $PATH
4940 do
4941   IFS=$as_save_IFS
4942   test -z "$as_dir" && as_dir=.
4943     for ac_exec_ext in '' $ac_executable_extensions; do
4944   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4945     ac_cv_path_REMOVE="$as_dir/$ac_word$ac_exec_ext"
4946     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4947     break 2
4948   fi
4949 done
4950   done
4951 IFS=$as_save_IFS
4952
4953   test -z "$ac_cv_path_REMOVE" && ac_cv_path_REMOVE="rm"
4954   ;;
4955 esac
4956 fi
4957 REMOVE=$ac_cv_path_REMOVE
4958 if test -n "$REMOVE"; then
4959   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $REMOVE" >&5
4960 $as_echo "$REMOVE" >&6; }
4961 else
4962   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4963 $as_echo "no" >&6; }
4964 fi
4965
4966
4967 # Extract the first word of "cp", so it can be a program name with args.
4968 set dummy cp; ac_word=$2
4969 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4970 $as_echo_n "checking for $ac_word... " >&6; }
4971 if ${ac_cv_path_CP+:} false; then :
4972   $as_echo_n "(cached) " >&6
4973 else
4974   case $CP in
4975   [\\/]* | ?:[\\/]*)
4976   ac_cv_path_CP="$CP" # Let the user override the test with a path.
4977   ;;
4978   *)
4979   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4980 for as_dir in $PATH
4981 do
4982   IFS=$as_save_IFS
4983   test -z "$as_dir" && as_dir=.
4984     for ac_exec_ext in '' $ac_executable_extensions; do
4985   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4986     ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext"
4987     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4988     break 2
4989   fi
4990 done
4991   done
4992 IFS=$as_save_IFS
4993
4994   test -z "$ac_cv_path_CP" && ac_cv_path_CP="cp"
4995   ;;
4996 esac
4997 fi
4998 CP=$ac_cv_path_CP
4999 if test -n "$CP"; then
5000   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CP" >&5
5001 $as_echo "$CP" >&6; }
5002 else
5003   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5004 $as_echo "no" >&6; }
5005 fi
5006
5007
5008 # Extract the first word of "sed", so it can be a program name with args.
5009 set dummy sed; ac_word=$2
5010 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5011 $as_echo_n "checking for $ac_word... " >&6; }
5012 if ${ac_cv_path_SED+:} false; then :
5013   $as_echo_n "(cached) " >&6
5014 else
5015   case $SED in
5016   [\\/]* | ?:[\\/]*)
5017   ac_cv_path_SED="$SED" # Let the user override the test with a path.
5018   ;;
5019   *)
5020   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5021 for as_dir in $PATH
5022 do
5023   IFS=$as_save_IFS
5024   test -z "$as_dir" && as_dir=.
5025     for ac_exec_ext in '' $ac_executable_extensions; do
5026   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5027     ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
5028     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5029     break 2
5030   fi
5031 done
5032   done
5033 IFS=$as_save_IFS
5034
5035   test -z "$ac_cv_path_SED" && ac_cv_path_SED="sed"
5036   ;;
5037 esac
5038 fi
5039 SED=$ac_cv_path_SED
5040 if test -n "$SED"; then
5041   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SED" >&5
5042 $as_echo "$SED" >&6; }
5043 else
5044   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5045 $as_echo "no" >&6; }
5046 fi
5047
5048
5049 # Extract the first word of "echo", so it can be a program name with args.
5050 set dummy echo; ac_word=$2
5051 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5052 $as_echo_n "checking for $ac_word... " >&6; }
5053 if ${ac_cv_path_ECHO+:} false; then :
5054   $as_echo_n "(cached) " >&6
5055 else
5056   case $ECHO in
5057   [\\/]* | ?:[\\/]*)
5058   ac_cv_path_ECHO="$ECHO" # Let the user override the test with a path.
5059   ;;
5060   *)
5061   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5062 for as_dir in $PATH
5063 do
5064   IFS=$as_save_IFS
5065   test -z "$as_dir" && as_dir=.
5066     for ac_exec_ext in '' $ac_executable_extensions; do
5067   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5068     ac_cv_path_ECHO="$as_dir/$ac_word$ac_exec_ext"
5069     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5070     break 2
5071   fi
5072 done
5073   done
5074 IFS=$as_save_IFS
5075
5076   test -z "$ac_cv_path_ECHO" && ac_cv_path_ECHO="echo"
5077   ;;
5078 esac
5079 fi
5080 ECHO=$ac_cv_path_ECHO
5081 if test -n "$ECHO"; then
5082   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ECHO" >&5
5083 $as_echo "$ECHO" >&6; }
5084 else
5085   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5086 $as_echo "no" >&6; }
5087 fi
5088
5089
5090 # Extract the first word of "cmp", so it can be a program name with args.
5091 set dummy cmp; ac_word=$2
5092 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5093 $as_echo_n "checking for $ac_word... " >&6; }
5094 if ${ac_cv_path_CMP+:} false; then :
5095   $as_echo_n "(cached) " >&6
5096 else
5097   case $CMP in
5098   [\\/]* | ?:[\\/]*)
5099   ac_cv_path_CMP="$CMP" # Let the user override the test with a path.
5100   ;;
5101   *)
5102   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5103 for as_dir in $PATH
5104 do
5105   IFS=$as_save_IFS
5106   test -z "$as_dir" && as_dir=.
5107     for ac_exec_ext in '' $ac_executable_extensions; do
5108   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5109     ac_cv_path_CMP="$as_dir/$ac_word$ac_exec_ext"
5110     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5111     break 2
5112   fi
5113 done
5114   done
5115 IFS=$as_save_IFS
5116
5117   test -z "$ac_cv_path_CMP" && ac_cv_path_CMP="cmp"
5118   ;;
5119 esac
5120 fi
5121 CMP=$ac_cv_path_CMP
5122 if test -n "$CMP"; then
5123   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CMP" >&5
5124 $as_echo "$CMP" >&6; }
5125 else
5126   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5127 $as_echo "no" >&6; }
5128 fi
5129
5130
5131 # Extract the first word of "tbl", so it can be a program name with args.
5132 set dummy tbl; ac_word=$2
5133 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5134 $as_echo_n "checking for $ac_word... " >&6; }
5135 if ${ac_cv_path_TBL+:} false; then :
5136   $as_echo_n "(cached) " >&6
5137 else
5138   case $TBL in
5139   [\\/]* | ?:[\\/]*)
5140   ac_cv_path_TBL="$TBL" # Let the user override the test with a path.
5141   ;;
5142   *)
5143   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5144 for as_dir in $PATH
5145 do
5146   IFS=$as_save_IFS
5147   test -z "$as_dir" && as_dir=.
5148     for ac_exec_ext in '' $ac_executable_extensions; do
5149   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5150     ac_cv_path_TBL="$as_dir/$ac_word$ac_exec_ext"
5151     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5152     break 2
5153   fi
5154 done
5155   done
5156 IFS=$as_save_IFS
5157
5158   test -z "$ac_cv_path_TBL" && ac_cv_path_TBL="tbl"
5159   ;;
5160 esac
5161 fi
5162 TBL=$ac_cv_path_TBL
5163 if test -n "$TBL"; then
5164   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TBL" >&5
5165 $as_echo "$TBL" >&6; }
5166 else
5167   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5168 $as_echo "no" >&6; }
5169 fi
5170
5171
5172 # Extract the first word of "ar", so it can be a program name with args.
5173 set dummy ar; ac_word=$2
5174 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5175 $as_echo_n "checking for $ac_word... " >&6; }
5176 if ${ac_cv_path_AR+:} false; then :
5177   $as_echo_n "(cached) " >&6
5178 else
5179   case $AR in
5180   [\\/]* | ?:[\\/]*)
5181   ac_cv_path_AR="$AR" # Let the user override the test with a path.
5182   ;;
5183   *)
5184   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5185 for as_dir in $PATH
5186 do
5187   IFS=$as_save_IFS
5188   test -z "$as_dir" && as_dir=.
5189     for ac_exec_ext in '' $ac_executable_extensions; do
5190   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5191     ac_cv_path_AR="$as_dir/$ac_word$ac_exec_ext"
5192     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5193     break 2
5194   fi
5195 done
5196   done
5197 IFS=$as_save_IFS
5198
5199   test -z "$ac_cv_path_AR" && ac_cv_path_AR="ar"
5200   ;;
5201 esac
5202 fi
5203 AR=$ac_cv_path_AR
5204 if test -n "$AR"; then
5205   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
5206 $as_echo "$AR" >&6; }
5207 else
5208   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5209 $as_echo "no" >&6; }
5210 fi
5211
5212
5213 # Extract the first word of "openssl", so it can be a program name with args.
5214 set dummy openssl; ac_word=$2
5215 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5216 $as_echo_n "checking for $ac_word... " >&6; }
5217 if ${ac_cv_path_OPENSSL+:} false; then :
5218   $as_echo_n "(cached) " >&6
5219 else
5220   case $OPENSSL in
5221   [\\/]* | ?:[\\/]*)
5222   ac_cv_path_OPENSSL="$OPENSSL" # Let the user override the test with a path.
5223   ;;
5224   *)
5225   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5226 for as_dir in $PATH
5227 do
5228   IFS=$as_save_IFS
5229   test -z "$as_dir" && as_dir=.
5230     for ac_exec_ext in '' $ac_executable_extensions; do
5231   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5232     ac_cv_path_OPENSSL="$as_dir/$ac_word$ac_exec_ext"
5233     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5234     break 2
5235   fi
5236 done
5237   done
5238 IFS=$as_save_IFS
5239
5240   test -z "$ac_cv_path_OPENSSL" && ac_cv_path_OPENSSL="none"
5241   ;;
5242 esac
5243 fi
5244 OPENSSL=$ac_cv_path_OPENSSL
5245 if test -n "$OPENSSL"; then
5246   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OPENSSL" >&5
5247 $as_echo "$OPENSSL" >&6; }
5248 else
5249   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5250 $as_echo "no" >&6; }
5251 fi
5252
5253
5254 # Extract the first word of "mtx", so it can be a program name with args.
5255 set dummy mtx; ac_word=$2
5256 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5257 $as_echo_n "checking for $ac_word... " >&6; }
5258 if ${ac_cv_path_MTX+:} false; then :
5259   $as_echo_n "(cached) " >&6
5260 else
5261   case $MTX in
5262   [\\/]* | ?:[\\/]*)
5263   ac_cv_path_MTX="$MTX" # Let the user override the test with a path.
5264   ;;
5265   *)
5266   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5267 for as_dir in $PATH
5268 do
5269   IFS=$as_save_IFS
5270   test -z "$as_dir" && as_dir=.
5271     for ac_exec_ext in '' $ac_executable_extensions; do
5272   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5273     ac_cv_path_MTX="$as_dir/$ac_word$ac_exec_ext"
5274     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5275     break 2
5276   fi
5277 done
5278   done
5279 IFS=$as_save_IFS
5280
5281   test -z "$ac_cv_path_MTX" && ac_cv_path_MTX="mtx"
5282   ;;
5283 esac
5284 fi
5285 MTX=$ac_cv_path_MTX
5286 if test -n "$MTX"; then
5287   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MTX" >&5
5288 $as_echo "$MTX" >&6; }
5289 else
5290   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5291 $as_echo "no" >&6; }
5292 fi
5293
5294
5295 # Extract the first word of "dd", so it can be a program name with args.
5296 set dummy dd; ac_word=$2
5297 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5298 $as_echo_n "checking for $ac_word... " >&6; }
5299 if ${ac_cv_path_DD+:} false; then :
5300   $as_echo_n "(cached) " >&6
5301 else
5302   case $DD in
5303   [\\/]* | ?:[\\/]*)
5304   ac_cv_path_DD="$DD" # Let the user override the test with a path.
5305   ;;
5306   *)
5307   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5308 for as_dir in $PATH
5309 do
5310   IFS=$as_save_IFS
5311   test -z "$as_dir" && as_dir=.
5312     for ac_exec_ext in '' $ac_executable_extensions; do
5313   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5314     ac_cv_path_DD="$as_dir/$ac_word$ac_exec_ext"
5315     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5316     break 2
5317   fi
5318 done
5319   done
5320 IFS=$as_save_IFS
5321
5322   test -z "$ac_cv_path_DD" && ac_cv_path_DD="dd"
5323   ;;
5324 esac
5325 fi
5326 DD=$ac_cv_path_DD
5327 if test -n "$DD"; then
5328   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DD" >&5
5329 $as_echo "$DD" >&6; }
5330 else
5331   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5332 $as_echo "no" >&6; }
5333 fi
5334
5335
5336 # Extract the first word of "mkisofs", so it can be a program name with args.
5337 set dummy mkisofs; ac_word=$2
5338 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5339 $as_echo_n "checking for $ac_word... " >&6; }
5340 if ${ac_cv_path_MKISOFS+:} false; then :
5341   $as_echo_n "(cached) " >&6
5342 else
5343   case $MKISOFS in
5344   [\\/]* | ?:[\\/]*)
5345   ac_cv_path_MKISOFS="$MKISOFS" # Let the user override the test with a path.
5346   ;;
5347   *)
5348   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5349 for as_dir in $PATH
5350 do
5351   IFS=$as_save_IFS
5352   test -z "$as_dir" && as_dir=.
5353     for ac_exec_ext in '' $ac_executable_extensions; do
5354   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5355     ac_cv_path_MKISOFS="$as_dir/$ac_word$ac_exec_ext"
5356     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5357     break 2
5358   fi
5359 done
5360   done
5361 IFS=$as_save_IFS
5362
5363   test -z "$ac_cv_path_MKISOFS" && ac_cv_path_MKISOFS="mkisofs"
5364   ;;
5365 esac
5366 fi
5367 MKISOFS=$ac_cv_path_MKISOFS
5368 if test -n "$MKISOFS"; then
5369   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKISOFS" >&5
5370 $as_echo "$MKISOFS" >&6; }
5371 else
5372   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5373 $as_echo "no" >&6; }
5374 fi
5375
5376
5377 # Extract the first word of "python", so it can be a program name with args.
5378 set dummy python; ac_word=$2
5379 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5380 $as_echo_n "checking for $ac_word... " >&6; }
5381 if ${ac_cv_path_PYTHON+:} false; then :
5382   $as_echo_n "(cached) " >&6
5383 else
5384   case $PYTHON in
5385   [\\/]* | ?:[\\/]*)
5386   ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path.
5387   ;;
5388   *)
5389   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5390 for as_dir in $PATH
5391 do
5392   IFS=$as_save_IFS
5393   test -z "$as_dir" && as_dir=.
5394     for ac_exec_ext in '' $ac_executable_extensions; do
5395   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5396     ac_cv_path_PYTHON="$as_dir/$ac_word$ac_exec_ext"
5397     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5398     break 2
5399   fi
5400 done
5401   done
5402 IFS=$as_save_IFS
5403
5404   test -z "$ac_cv_path_PYTHON" && ac_cv_path_PYTHON="python"
5405   ;;
5406 esac
5407 fi
5408 PYTHON=$ac_cv_path_PYTHON
5409 if test -n "$PYTHON"; then
5410   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON" >&5
5411 $as_echo "$PYTHON" >&6; }
5412 else
5413   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5414 $as_echo "no" >&6; }
5415 fi
5416
5417
5418 # Extract the first word of "growisofs", so it can be a program name with args.
5419 set dummy growisofs; ac_word=$2
5420 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5421 $as_echo_n "checking for $ac_word... " >&6; }
5422 if ${ac_cv_path_GROWISOFS+:} false; then :
5423   $as_echo_n "(cached) " >&6
5424 else
5425   case $GROWISOFS in
5426   [\\/]* | ?:[\\/]*)
5427   ac_cv_path_GROWISOFS="$GROWISOFS" # Let the user override the test with a path.
5428   ;;
5429   *)
5430   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5431 for as_dir in $PATH
5432 do
5433   IFS=$as_save_IFS
5434   test -z "$as_dir" && as_dir=.
5435     for ac_exec_ext in '' $ac_executable_extensions; do
5436   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5437     ac_cv_path_GROWISOFS="$as_dir/$ac_word$ac_exec_ext"
5438     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5439     break 2
5440   fi
5441 done
5442   done
5443 IFS=$as_save_IFS
5444
5445   test -z "$ac_cv_path_GROWISOFS" && ac_cv_path_GROWISOFS="growisofs"
5446   ;;
5447 esac
5448 fi
5449 GROWISOFS=$ac_cv_path_GROWISOFS
5450 if test -n "$GROWISOFS"; then
5451   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GROWISOFS" >&5
5452 $as_echo "$GROWISOFS" >&6; }
5453 else
5454   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5455 $as_echo "no" >&6; }
5456 fi
5457
5458
5459 # Extract the first word of "dvd+rw-mediainfo", so it can be a program name with args.
5460 set dummy dvd+rw-mediainfo; ac_word=$2
5461 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5462 $as_echo_n "checking for $ac_word... " >&6; }
5463 if ${ac_cv_path_DVDRWMEDIAINFO+:} false; then :
5464   $as_echo_n "(cached) " >&6
5465 else
5466   case $DVDRWMEDIAINFO in
5467   [\\/]* | ?:[\\/]*)
5468   ac_cv_path_DVDRWMEDIAINFO="$DVDRWMEDIAINFO" # Let the user override the test with a path.
5469   ;;
5470   *)
5471   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5472 for as_dir in $PATH
5473 do
5474   IFS=$as_save_IFS
5475   test -z "$as_dir" && as_dir=.
5476     for ac_exec_ext in '' $ac_executable_extensions; do
5477   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5478     ac_cv_path_DVDRWMEDIAINFO="$as_dir/$ac_word$ac_exec_ext"
5479     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5480     break 2
5481   fi
5482 done
5483   done
5484 IFS=$as_save_IFS
5485
5486   test -z "$ac_cv_path_DVDRWMEDIAINFO" && ac_cv_path_DVDRWMEDIAINFO="dvd+rw-mediainfo"
5487   ;;
5488 esac
5489 fi
5490 DVDRWMEDIAINFO=$ac_cv_path_DVDRWMEDIAINFO
5491 if test -n "$DVDRWMEDIAINFO"; then
5492   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DVDRWMEDIAINFO" >&5
5493 $as_echo "$DVDRWMEDIAINFO" >&6; }
5494 else
5495   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5496 $as_echo "no" >&6; }
5497 fi
5498
5499
5500 # Extract the first word of "dvd+rw-format", so it can be a program name with args.
5501 set dummy dvd+rw-format; ac_word=$2
5502 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5503 $as_echo_n "checking for $ac_word... " >&6; }
5504 if ${ac_cv_path_DVDRWFORMAT+:} false; then :
5505   $as_echo_n "(cached) " >&6
5506 else
5507   case $DVDRWFORMAT in
5508   [\\/]* | ?:[\\/]*)
5509   ac_cv_path_DVDRWFORMAT="$DVDRWFORMAT" # Let the user override the test with a path.
5510   ;;
5511   *)
5512   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5513 for as_dir in $PATH
5514 do
5515   IFS=$as_save_IFS
5516   test -z "$as_dir" && as_dir=.
5517     for ac_exec_ext in '' $ac_executable_extensions; do
5518   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5519     ac_cv_path_DVDRWFORMAT="$as_dir/$ac_word$ac_exec_ext"
5520     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5521     break 2
5522   fi
5523 done
5524   done
5525 IFS=$as_save_IFS
5526
5527   test -z "$ac_cv_path_DVDRWFORMAT" && ac_cv_path_DVDRWFORMAT="dvd+rw-format"
5528   ;;
5529 esac
5530 fi
5531 DVDRWFORMAT=$ac_cv_path_DVDRWFORMAT
5532 if test -n "$DVDRWFORMAT"; then
5533   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DVDRWFORMAT" >&5
5534 $as_echo "$DVDRWFORMAT" >&6; }
5535 else
5536   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5537 $as_echo "no" >&6; }
5538 fi
5539
5540
5541 # Extract the first word of "pkg-config", so it can be a program name with args.
5542 set dummy pkg-config; ac_word=$2
5543 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5544 $as_echo_n "checking for $ac_word... " >&6; }
5545 if ${ac_cv_path_PKGCONFIG+:} false; then :
5546   $as_echo_n "(cached) " >&6
5547 else
5548   case $PKGCONFIG in
5549   [\\/]* | ?:[\\/]*)
5550   ac_cv_path_PKGCONFIG="$PKGCONFIG" # Let the user override the test with a path.
5551   ;;
5552   *)
5553   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5554 for as_dir in $PATH
5555 do
5556   IFS=$as_save_IFS
5557   test -z "$as_dir" && as_dir=.
5558     for ac_exec_ext in '' $ac_executable_extensions; do
5559   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5560     ac_cv_path_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext"
5561     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5562     break 2
5563   fi
5564 done
5565   done
5566 IFS=$as_save_IFS
5567
5568   test -z "$ac_cv_path_PKGCONFIG" && ac_cv_path_PKGCONFIG="pkg-config"
5569   ;;
5570 esac
5571 fi
5572 PKGCONFIG=$ac_cv_path_PKGCONFIG
5573 if test -n "$PKGCONFIG"; then
5574   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKGCONFIG" >&5
5575 $as_echo "$PKGCONFIG" >&6; }
5576 else
5577   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5578 $as_echo "no" >&6; }
5579 fi
5580
5581
5582 # Extract the first word of "qmake", so it can be a program name with args.
5583 set dummy qmake; ac_word=$2
5584 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5585 $as_echo_n "checking for $ac_word... " >&6; }
5586 if ${ac_cv_path_QMAKE+:} false; then :
5587   $as_echo_n "(cached) " >&6
5588 else
5589   case $QMAKE in
5590   [\\/]* | ?:[\\/]*)
5591   ac_cv_path_QMAKE="$QMAKE" # Let the user override the test with a path.
5592   ;;
5593   *)
5594   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5595 for as_dir in $PATH
5596 do
5597   IFS=$as_save_IFS
5598   test -z "$as_dir" && as_dir=.
5599     for ac_exec_ext in '' $ac_executable_extensions; do
5600   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5601     ac_cv_path_QMAKE="$as_dir/$ac_word$ac_exec_ext"
5602     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5603     break 2
5604   fi
5605 done
5606   done
5607 IFS=$as_save_IFS
5608
5609   test -z "$ac_cv_path_QMAKE" && ac_cv_path_QMAKE="none"
5610   ;;
5611 esac
5612 fi
5613 QMAKE=$ac_cv_path_QMAKE
5614 if test -n "$QMAKE"; then
5615   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $QMAKE" >&5
5616 $as_echo "$QMAKE" >&6; }
5617 else
5618   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5619 $as_echo "no" >&6; }
5620 fi
5621
5622
5623 # Extract the first word of "gmake", so it can be a program name with args.
5624 set dummy gmake; ac_word=$2
5625 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5626 $as_echo_n "checking for $ac_word... " >&6; }
5627 if ${ac_cv_path_GMAKE+:} false; then :
5628   $as_echo_n "(cached) " >&6
5629 else
5630   case $GMAKE in
5631   [\\/]* | ?:[\\/]*)
5632   ac_cv_path_GMAKE="$GMAKE" # Let the user override the test with a path.
5633   ;;
5634   *)
5635   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5636 for as_dir in $PATH
5637 do
5638   IFS=$as_save_IFS
5639   test -z "$as_dir" && as_dir=.
5640     for ac_exec_ext in '' $ac_executable_extensions; do
5641   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5642     ac_cv_path_GMAKE="$as_dir/$ac_word$ac_exec_ext"
5643     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5644     break 2
5645   fi
5646 done
5647   done
5648 IFS=$as_save_IFS
5649
5650   test -z "$ac_cv_path_GMAKE" && ac_cv_path_GMAKE="none"
5651   ;;
5652 esac
5653 fi
5654 GMAKE=$ac_cv_path_GMAKE
5655 if test -n "$GMAKE"; then
5656   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GMAKE" >&5
5657 $as_echo "$GMAKE" >&6; }
5658 else
5659   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5660 $as_echo "no" >&6; }
5661 fi
5662
5663
5664 # Extract the first word of "cdrecord", so it can be a program name with args.
5665 set dummy cdrecord; ac_word=$2
5666 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5667 $as_echo_n "checking for $ac_word... " >&6; }
5668 if ${ac_cv_path_CDRECORD+:} false; then :
5669   $as_echo_n "(cached) " >&6
5670 else
5671   case $CDRECORD in
5672   [\\/]* | ?:[\\/]*)
5673   ac_cv_path_CDRECORD="$CDRECORD" # Let the user override the test with a path.
5674   ;;
5675   *)
5676   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5677 for as_dir in $PATH
5678 do
5679   IFS=$as_save_IFS
5680   test -z "$as_dir" && as_dir=.
5681     for ac_exec_ext in '' $ac_executable_extensions; do
5682   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5683     ac_cv_path_CDRECORD="$as_dir/$ac_word$ac_exec_ext"
5684     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5685     break 2
5686   fi
5687 done
5688   done
5689 IFS=$as_save_IFS
5690
5691   test -z "$ac_cv_path_CDRECORD" && ac_cv_path_CDRECORD="cdrecord"
5692   ;;
5693 esac
5694 fi
5695 CDRECORD=$ac_cv_path_CDRECORD
5696 if test -n "$CDRECORD"; then
5697   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CDRECORD" >&5
5698 $as_echo "$CDRECORD" >&6; }
5699 else
5700   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5701 $as_echo "no" >&6; }
5702 fi
5703
5704
5705 # Extract the first word of "pidof", so it can be a program name with args.
5706 set dummy pidof; ac_word=$2
5707 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5708 $as_echo_n "checking for $ac_word... " >&6; }
5709 if ${ac_cv_path_PIDOF+:} false; then :
5710   $as_echo_n "(cached) " >&6
5711 else
5712   case $PIDOF in
5713   [\\/]* | ?:[\\/]*)
5714   ac_cv_path_PIDOF="$PIDOF" # Let the user override the test with a path.
5715   ;;
5716   *)
5717   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5718 for as_dir in $PATH
5719 do
5720   IFS=$as_save_IFS
5721   test -z "$as_dir" && as_dir=.
5722     for ac_exec_ext in '' $ac_executable_extensions; do
5723   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5724     ac_cv_path_PIDOF="$as_dir/$ac_word$ac_exec_ext"
5725     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5726     break 2
5727   fi
5728 done
5729   done
5730 IFS=$as_save_IFS
5731
5732   test -z "$ac_cv_path_PIDOF" && ac_cv_path_PIDOF="pidof"
5733   ;;
5734 esac
5735 fi
5736 PIDOF=$ac_cv_path_PIDOF
5737 if test -n "$PIDOF"; then
5738   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PIDOF" >&5
5739 $as_echo "$PIDOF" >&6; }
5740 else
5741   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5742 $as_echo "no" >&6; }
5743 fi
5744
5745
5746 for ac_prog in gawk mawk nawk awk
5747 do
5748   # Extract the first word of "$ac_prog", so it can be a program name with args.
5749 set dummy $ac_prog; ac_word=$2
5750 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5751 $as_echo_n "checking for $ac_word... " >&6; }
5752 if ${ac_cv_prog_AWK+:} false; then :
5753   $as_echo_n "(cached) " >&6
5754 else
5755   if test -n "$AWK"; then
5756   ac_cv_prog_AWK="$AWK" # Let the user override the test.
5757 else
5758 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5759 for as_dir in $PATH
5760 do
5761   IFS=$as_save_IFS
5762   test -z "$as_dir" && as_dir=.
5763     for ac_exec_ext in '' $ac_executable_extensions; do
5764   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5765     ac_cv_prog_AWK="$ac_prog"
5766     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5767     break 2
5768   fi
5769 done
5770   done
5771 IFS=$as_save_IFS
5772
5773 fi
5774 fi
5775 AWK=$ac_cv_prog_AWK
5776 if test -n "$AWK"; then
5777   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
5778 $as_echo "$AWK" >&6; }
5779 else
5780   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5781 $as_echo "no" >&6; }
5782 fi
5783
5784
5785   test -n "$AWK" && break
5786 done
5787
5788 # Some AWK programs fail, so test it and warn the user
5789 if echo xfoo | $AWK 'BEGIN { prog=ARGV1; ARGC=1 }
5790       { if ((prog == $2) || (("(" prog ")") == $2) ||
5791       (("" prog "") == $2) ||
5792       ((prog ":") == $2)) { print $1 ; exit 0 } }' xfoo>/dev/null; then :;
5793 else
5794   as_fn_error $? "!!!!!!!!! WARNING !!!!!!!!!!!!!!
5795    The regex engine of $AWK is too broken to be used you
5796    might want to install GNU AWK.
5797    !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!" "$LINENO" 5
5798 fi
5799 THE_AWK=$AWK
5800 # Extract the first word of "$THE_AWK", so it can be a program name with args.
5801 set dummy $THE_AWK; ac_word=$2
5802 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5803 $as_echo_n "checking for $ac_word... " >&6; }
5804 if ${ac_cv_path_AWK+:} false; then :
5805   $as_echo_n "(cached) " >&6
5806 else
5807   case $AWK in
5808   [\\/]* | ?:[\\/]*)
5809   ac_cv_path_AWK="$AWK" # Let the user override the test with a path.
5810   ;;
5811   *)
5812   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5813 for as_dir in $PATH
5814 do
5815   IFS=$as_save_IFS
5816   test -z "$as_dir" && as_dir=.
5817     for ac_exec_ext in '' $ac_executable_extensions; do
5818   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5819     ac_cv_path_AWK="$as_dir/$ac_word$ac_exec_ext"
5820     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5821     break 2
5822   fi
5823 done
5824   done
5825 IFS=$as_save_IFS
5826
5827   test -z "$ac_cv_path_AWK" && ac_cv_path_AWK="$THE_AWK"
5828   ;;
5829 esac
5830 fi
5831 AWK=$ac_cv_path_AWK
5832 if test -n "$AWK"; then
5833   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
5834 $as_echo "$AWK" >&6; }
5835 else
5836   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5837 $as_echo "no" >&6; }
5838 fi
5839
5840
5841
5842
5843 test -n "$ARFLAG" || ARFLAGS="cr"
5844
5845
5846 MAKE_SHELL=/bin/sh
5847
5848
5849
5850
5851
5852
5853
5854 use_libtool=yes
5855 # Check whether --enable-libtool was given.
5856 if test "${enable_libtool+set}" = set; then :
5857   enableval=$enable_libtool;
5858        if test x$enableval = xno; then
5859           use_libtool=no
5860        fi
5861
5862
5863 fi
5864
5865 case `pwd` in
5866   *\ * | *\     *)
5867     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
5868 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
5869 esac
5870
5871
5872
5873 macro_version='2.4'
5874 macro_revision='1.3293'
5875
5876
5877
5878
5879
5880
5881
5882
5883
5884
5885
5886
5887
5888 ltmain="$ac_aux_dir/ltmain.sh"
5889
5890 # Make sure we can run config.sub.
5891 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
5892   as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
5893
5894 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
5895 $as_echo_n "checking build system type... " >&6; }
5896 if ${ac_cv_build+:} false; then :
5897   $as_echo_n "(cached) " >&6
5898 else
5899   ac_build_alias=$build_alias
5900 test "x$ac_build_alias" = x &&
5901   ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
5902 test "x$ac_build_alias" = x &&
5903   as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
5904 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
5905   as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
5906
5907 fi
5908 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
5909 $as_echo "$ac_cv_build" >&6; }
5910 case $ac_cv_build in
5911 *-*-*) ;;
5912 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
5913 esac
5914 build=$ac_cv_build
5915 ac_save_IFS=$IFS; IFS='-'
5916 set x $ac_cv_build
5917 shift
5918 build_cpu=$1
5919 build_vendor=$2
5920 shift; shift
5921 # Remember, the first character of IFS is used to create $*,
5922 # except with old shells:
5923 build_os=$*
5924 IFS=$ac_save_IFS
5925 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
5926
5927
5928 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
5929 $as_echo_n "checking host system type... " >&6; }
5930 if ${ac_cv_host+:} false; then :
5931   $as_echo_n "(cached) " >&6
5932 else
5933   if test "x$host_alias" = x; then
5934   ac_cv_host=$ac_cv_build
5935 else
5936   ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
5937     as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
5938 fi
5939
5940 fi
5941 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
5942 $as_echo "$ac_cv_host" >&6; }
5943 case $ac_cv_host in
5944 *-*-*) ;;
5945 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
5946 esac
5947 host=$ac_cv_host
5948 ac_save_IFS=$IFS; IFS='-'
5949 set x $ac_cv_host
5950 shift
5951 host_cpu=$1
5952 host_vendor=$2
5953 shift; shift
5954 # Remember, the first character of IFS is used to create $*,
5955 # except with old shells:
5956 host_os=$*
5957 IFS=$ac_save_IFS
5958 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
5959
5960
5961 # Backslashify metacharacters that are still active within
5962 # double-quoted strings.
5963 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
5964
5965 # Same as above, but do not quote variable references.
5966 double_quote_subst='s/\(["`\\]\)/\\\1/g'
5967
5968 # Sed substitution to delay expansion of an escaped shell variable in a
5969 # double_quote_subst'ed string.
5970 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
5971
5972 # Sed substitution to delay expansion of an escaped single quote.
5973 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
5974
5975 # Sed substitution to avoid accidental globbing in evaled expressions
5976 no_glob_subst='s/\*/\\\*/g'
5977
5978 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
5979 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
5980 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
5981
5982 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
5983 $as_echo_n "checking how to print strings... " >&6; }
5984 # Test print first, because it will be a builtin if present.
5985 if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
5986    test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
5987   ECHO='print -r --'
5988 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
5989   ECHO='printf %s\n'
5990 else
5991   # Use this function as a fallback that always works.
5992   func_fallback_echo ()
5993   {
5994     eval 'cat <<_LTECHO_EOF
5995 $1
5996 _LTECHO_EOF'
5997   }
5998   ECHO='func_fallback_echo'
5999 fi
6000
6001 # func_echo_all arg...
6002 # Invoke $ECHO with all args, space-separated.
6003 func_echo_all ()
6004 {
6005     $ECHO ""
6006 }
6007
6008 case "$ECHO" in
6009   printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
6010 $as_echo "printf" >&6; } ;;
6011   print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
6012 $as_echo "print -r" >&6; } ;;
6013   *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
6014 $as_echo "cat" >&6; } ;;
6015 esac
6016
6017
6018
6019
6020
6021
6022
6023
6024
6025
6026
6027
6028
6029
6030 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
6031 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
6032 if ${ac_cv_path_SED+:} false; then :
6033   $as_echo_n "(cached) " >&6
6034 else
6035             ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
6036      for ac_i in 1 2 3 4 5 6 7; do
6037        ac_script="$ac_script$as_nl$ac_script"
6038      done
6039      echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
6040      { ac_script=; unset ac_script;}
6041      if test -z "$SED"; then
6042   ac_path_SED_found=false
6043   # Loop through the user's path and test for each of PROGNAME-LIST
6044   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6045 for as_dir in $PATH
6046 do
6047   IFS=$as_save_IFS
6048   test -z "$as_dir" && as_dir=.
6049     for ac_prog in sed gsed; do
6050     for ac_exec_ext in '' $ac_executable_extensions; do
6051       ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
6052       { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
6053 # Check for GNU ac_path_SED and select it if it is found.
6054   # Check for GNU $ac_path_SED
6055 case `"$ac_path_SED" --version 2>&1` in
6056 *GNU*)
6057   ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
6058 *)
6059   ac_count=0
6060   $as_echo_n 0123456789 >"conftest.in"
6061   while :
6062   do
6063     cat "conftest.in" "conftest.in" >"conftest.tmp"
6064     mv "conftest.tmp" "conftest.in"
6065     cp "conftest.in" "conftest.nl"
6066     $as_echo '' >> "conftest.nl"
6067     "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
6068     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6069     as_fn_arith $ac_count + 1 && ac_count=$as_val
6070     if test $ac_count -gt ${ac_path_SED_max-0}; then
6071       # Best one so far, save it but keep looking for a better one
6072       ac_cv_path_SED="$ac_path_SED"
6073       ac_path_SED_max=$ac_count
6074     fi
6075     # 10*(2^10) chars as input seems more than enough
6076     test $ac_count -gt 10 && break
6077   done
6078   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6079 esac
6080
6081       $ac_path_SED_found && break 3
6082     done
6083   done
6084   done
6085 IFS=$as_save_IFS
6086   if test -z "$ac_cv_path_SED"; then
6087     as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
6088   fi
6089 else
6090   ac_cv_path_SED=$SED
6091 fi
6092
6093 fi
6094 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
6095 $as_echo "$ac_cv_path_SED" >&6; }
6096  SED="$ac_cv_path_SED"
6097   rm -f conftest.sed
6098
6099 test -z "$SED" && SED=sed
6100 Xsed="$SED -e 1s/^X//"
6101
6102
6103
6104
6105
6106
6107
6108
6109
6110
6111
6112 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
6113 $as_echo_n "checking for fgrep... " >&6; }
6114 if ${ac_cv_path_FGREP+:} false; then :
6115   $as_echo_n "(cached) " >&6
6116 else
6117   if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
6118    then ac_cv_path_FGREP="$GREP -F"
6119    else
6120      if test -z "$FGREP"; then
6121   ac_path_FGREP_found=false
6122   # Loop through the user's path and test for each of PROGNAME-LIST
6123   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6124 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
6125 do
6126   IFS=$as_save_IFS
6127   test -z "$as_dir" && as_dir=.
6128     for ac_prog in fgrep; do
6129     for ac_exec_ext in '' $ac_executable_extensions; do
6130       ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
6131       { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
6132 # Check for GNU ac_path_FGREP and select it if it is found.
6133   # Check for GNU $ac_path_FGREP
6134 case `"$ac_path_FGREP" --version 2>&1` in
6135 *GNU*)
6136   ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
6137 *)
6138   ac_count=0
6139   $as_echo_n 0123456789 >"conftest.in"
6140   while :
6141   do
6142     cat "conftest.in" "conftest.in" >"conftest.tmp"
6143     mv "conftest.tmp" "conftest.in"
6144     cp "conftest.in" "conftest.nl"
6145     $as_echo 'FGREP' >> "conftest.nl"
6146     "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
6147     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6148     as_fn_arith $ac_count + 1 && ac_count=$as_val
6149     if test $ac_count -gt ${ac_path_FGREP_max-0}; then
6150       # Best one so far, save it but keep looking for a better one
6151       ac_cv_path_FGREP="$ac_path_FGREP"
6152       ac_path_FGREP_max=$ac_count
6153     fi
6154     # 10*(2^10) chars as input seems more than enough
6155     test $ac_count -gt 10 && break
6156   done
6157   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6158 esac
6159
6160       $ac_path_FGREP_found && break 3
6161     done
6162   done
6163   done
6164 IFS=$as_save_IFS
6165   if test -z "$ac_cv_path_FGREP"; then
6166     as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
6167   fi
6168 else
6169   ac_cv_path_FGREP=$FGREP
6170 fi
6171
6172    fi
6173 fi
6174 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
6175 $as_echo "$ac_cv_path_FGREP" >&6; }
6176  FGREP="$ac_cv_path_FGREP"
6177
6178
6179 test -z "$GREP" && GREP=grep
6180
6181
6182
6183
6184
6185
6186
6187
6188
6189
6190
6191
6192
6193
6194
6195
6196
6197
6198
6199 # Check whether --with-gnu-ld was given.
6200 if test "${with_gnu_ld+set}" = set; then :
6201   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
6202 else
6203   with_gnu_ld=no
6204 fi
6205
6206 ac_prog=ld
6207 if test "$GCC" = yes; then
6208   # Check if gcc -print-prog-name=ld gives a path.
6209   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
6210 $as_echo_n "checking for ld used by $CC... " >&6; }
6211   case $host in
6212   *-*-mingw*)
6213     # gcc leaves a trailing carriage return which upsets mingw
6214     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
6215   *)
6216     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
6217   esac
6218   case $ac_prog in
6219     # Accept absolute paths.
6220     [\\/]* | ?:[\\/]*)
6221       re_direlt='/[^/][^/]*/\.\./'
6222       # Canonicalize the pathname of ld
6223       ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
6224       while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
6225         ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
6226       done
6227       test -z "$LD" && LD="$ac_prog"
6228       ;;
6229   "")
6230     # If it fails, then pretend we aren't using GCC.
6231     ac_prog=ld
6232     ;;
6233   *)
6234     # If it is relative, then search for the first ld in PATH.
6235     with_gnu_ld=unknown
6236     ;;
6237   esac
6238 elif test "$with_gnu_ld" = yes; then
6239   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
6240 $as_echo_n "checking for GNU ld... " >&6; }
6241 else
6242   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
6243 $as_echo_n "checking for non-GNU ld... " >&6; }
6244 fi
6245 if ${lt_cv_path_LD+:} false; then :
6246   $as_echo_n "(cached) " >&6
6247 else
6248   if test -z "$LD"; then
6249   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6250   for ac_dir in $PATH; do
6251     IFS="$lt_save_ifs"
6252     test -z "$ac_dir" && ac_dir=.
6253     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
6254       lt_cv_path_LD="$ac_dir/$ac_prog"
6255       # Check to see if the program is GNU ld.  I'd rather use --version,
6256       # but apparently some variants of GNU ld only accept -v.
6257       # Break only if it was the GNU/non-GNU ld that we prefer.
6258       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
6259       *GNU* | *'with BFD'*)
6260         test "$with_gnu_ld" != no && break
6261         ;;
6262       *)
6263         test "$with_gnu_ld" != yes && break
6264         ;;
6265       esac
6266     fi
6267   done
6268   IFS="$lt_save_ifs"
6269 else
6270   lt_cv_path_LD="$LD" # Let the user override the test with a path.
6271 fi
6272 fi
6273
6274 LD="$lt_cv_path_LD"
6275 if test -n "$LD"; then
6276   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
6277 $as_echo "$LD" >&6; }
6278 else
6279   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6280 $as_echo "no" >&6; }
6281 fi
6282 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
6283 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
6284 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
6285 if ${lt_cv_prog_gnu_ld+:} false; then :
6286   $as_echo_n "(cached) " >&6
6287 else
6288   # I'd rather use --version here, but apparently some GNU lds only accept -v.
6289 case `$LD -v 2>&1 </dev/null` in
6290 *GNU* | *'with BFD'*)
6291   lt_cv_prog_gnu_ld=yes
6292   ;;
6293 *)
6294   lt_cv_prog_gnu_ld=no
6295   ;;
6296 esac
6297 fi
6298 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
6299 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
6300 with_gnu_ld=$lt_cv_prog_gnu_ld
6301
6302
6303
6304
6305
6306
6307
6308
6309
6310 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
6311 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
6312 if ${lt_cv_path_NM+:} false; then :
6313   $as_echo_n "(cached) " >&6
6314 else
6315   if test -n "$NM"; then
6316   # Let the user override the test.
6317   lt_cv_path_NM="$NM"
6318 else
6319   lt_nm_to_check="${ac_tool_prefix}nm"
6320   if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
6321     lt_nm_to_check="$lt_nm_to_check nm"
6322   fi
6323   for lt_tmp_nm in $lt_nm_to_check; do
6324     lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6325     for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
6326       IFS="$lt_save_ifs"
6327       test -z "$ac_dir" && ac_dir=.
6328       tmp_nm="$ac_dir/$lt_tmp_nm"
6329       if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
6330         # Check to see if the nm accepts a BSD-compat flag.
6331         # Adding the `sed 1q' prevents false positives on HP-UX, which says:
6332         #   nm: unknown option "B" ignored
6333         # Tru64's nm complains that /dev/null is an invalid object file
6334         case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
6335         */dev/null* | *'Invalid file or object type'*)
6336           lt_cv_path_NM="$tmp_nm -B"
6337           break
6338           ;;
6339         *)
6340           case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
6341           */dev/null*)
6342             lt_cv_path_NM="$tmp_nm -p"
6343             break
6344             ;;
6345           *)
6346             lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
6347             continue # so that we can try to find one that supports BSD flags
6348             ;;
6349           esac
6350           ;;
6351         esac
6352       fi
6353     done
6354     IFS="$lt_save_ifs"
6355   done
6356   : ${lt_cv_path_NM=no}
6357 fi
6358 fi
6359 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
6360 $as_echo "$lt_cv_path_NM" >&6; }
6361 if test "$lt_cv_path_NM" != "no"; then
6362   NM="$lt_cv_path_NM"
6363 else
6364   # Didn't find any BSD compatible name lister, look for dumpbin.
6365   if test -n "$DUMPBIN"; then :
6366     # Let the user override the test.
6367   else
6368     if test -n "$ac_tool_prefix"; then
6369   for ac_prog in dumpbin "link -dump"
6370   do
6371     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6372 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6373 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6374 $as_echo_n "checking for $ac_word... " >&6; }
6375 if ${ac_cv_prog_DUMPBIN+:} false; then :
6376   $as_echo_n "(cached) " >&6
6377 else
6378   if test -n "$DUMPBIN"; then
6379   ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
6380 else
6381 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6382 for as_dir in $PATH
6383 do
6384   IFS=$as_save_IFS
6385   test -z "$as_dir" && as_dir=.
6386     for ac_exec_ext in '' $ac_executable_extensions; do
6387   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6388     ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
6389     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6390     break 2
6391   fi
6392 done
6393   done
6394 IFS=$as_save_IFS
6395
6396 fi
6397 fi
6398 DUMPBIN=$ac_cv_prog_DUMPBIN
6399 if test -n "$DUMPBIN"; then
6400   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
6401 $as_echo "$DUMPBIN" >&6; }
6402 else
6403   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6404 $as_echo "no" >&6; }
6405 fi
6406
6407
6408     test -n "$DUMPBIN" && break
6409   done
6410 fi
6411 if test -z "$DUMPBIN"; then
6412   ac_ct_DUMPBIN=$DUMPBIN
6413   for ac_prog in dumpbin "link -dump"
6414 do
6415   # Extract the first word of "$ac_prog", so it can be a program name with args.
6416 set dummy $ac_prog; ac_word=$2
6417 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6418 $as_echo_n "checking for $ac_word... " >&6; }
6419 if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
6420   $as_echo_n "(cached) " >&6
6421 else
6422   if test -n "$ac_ct_DUMPBIN"; then
6423   ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
6424 else
6425 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6426 for as_dir in $PATH
6427 do
6428   IFS=$as_save_IFS
6429   test -z "$as_dir" && as_dir=.
6430     for ac_exec_ext in '' $ac_executable_extensions; do
6431   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6432     ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
6433     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6434     break 2
6435   fi
6436 done
6437   done
6438 IFS=$as_save_IFS
6439
6440 fi
6441 fi
6442 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
6443 if test -n "$ac_ct_DUMPBIN"; then
6444   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
6445 $as_echo "$ac_ct_DUMPBIN" >&6; }
6446 else
6447   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6448 $as_echo "no" >&6; }
6449 fi
6450
6451
6452   test -n "$ac_ct_DUMPBIN" && break
6453 done
6454
6455   if test "x$ac_ct_DUMPBIN" = x; then
6456     DUMPBIN=":"
6457   else
6458     case $cross_compiling:$ac_tool_warned in
6459 yes:)
6460 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6461 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6462 ac_tool_warned=yes ;;
6463 esac
6464     DUMPBIN=$ac_ct_DUMPBIN
6465   fi
6466 fi
6467
6468     case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
6469     *COFF*)
6470       DUMPBIN="$DUMPBIN -symbols"
6471       ;;
6472     *)
6473       DUMPBIN=:
6474       ;;
6475     esac
6476   fi
6477
6478   if test "$DUMPBIN" != ":"; then
6479     NM="$DUMPBIN"
6480   fi
6481 fi
6482 test -z "$NM" && NM=nm
6483
6484
6485
6486
6487
6488
6489 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
6490 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
6491 if ${lt_cv_nm_interface+:} false; then :
6492   $as_echo_n "(cached) " >&6
6493 else
6494   lt_cv_nm_interface="BSD nm"
6495   echo "int some_variable = 0;" > conftest.$ac_ext
6496   (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
6497   (eval "$ac_compile" 2>conftest.err)
6498   cat conftest.err >&5
6499   (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
6500   (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
6501   cat conftest.err >&5
6502   (eval echo "\"\$as_me:$LINENO: output\"" >&5)
6503   cat conftest.out >&5
6504   if $GREP 'External.*some_variable' conftest.out > /dev/null; then
6505     lt_cv_nm_interface="MS dumpbin"
6506   fi
6507   rm -f conftest*
6508 fi
6509 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
6510 $as_echo "$lt_cv_nm_interface" >&6; }
6511
6512 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
6513 $as_echo_n "checking whether ln -s works... " >&6; }
6514 LN_S=$as_ln_s
6515 if test "$LN_S" = "ln -s"; then
6516   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6517 $as_echo "yes" >&6; }
6518 else
6519   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
6520 $as_echo "no, using $LN_S" >&6; }
6521 fi
6522
6523 # find the maximum length of command line arguments
6524 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
6525 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
6526 if ${lt_cv_sys_max_cmd_len+:} false; then :
6527   $as_echo_n "(cached) " >&6
6528 else
6529     i=0
6530   teststring="ABCD"
6531
6532   case $build_os in
6533   msdosdjgpp*)
6534     # On DJGPP, this test can blow up pretty badly due to problems in libc
6535     # (any single argument exceeding 2000 bytes causes a buffer overrun
6536     # during glob expansion).  Even if it were fixed, the result of this
6537     # check would be larger than it should be.
6538     lt_cv_sys_max_cmd_len=12288;    # 12K is about right
6539     ;;
6540
6541   gnu*)
6542     # Under GNU Hurd, this test is not required because there is
6543     # no limit to the length of command line arguments.
6544     # Libtool will interpret -1 as no limit whatsoever
6545     lt_cv_sys_max_cmd_len=-1;
6546     ;;
6547
6548   cygwin* | mingw* | cegcc*)
6549     # On Win9x/ME, this test blows up -- it succeeds, but takes
6550     # about 5 minutes as the teststring grows exponentially.
6551     # Worse, since 9x/ME are not pre-emptively multitasking,
6552     # you end up with a "frozen" computer, even though with patience
6553     # the test eventually succeeds (with a max line length of 256k).
6554     # Instead, let's just punt: use the minimum linelength reported by
6555     # all of the supported platforms: 8192 (on NT/2K/XP).
6556     lt_cv_sys_max_cmd_len=8192;
6557     ;;
6558
6559   mint*)
6560     # On MiNT this can take a long time and run out of memory.
6561     lt_cv_sys_max_cmd_len=8192;
6562     ;;
6563
6564   amigaos*)
6565     # On AmigaOS with pdksh, this test takes hours, literally.
6566     # So we just punt and use a minimum line length of 8192.
6567     lt_cv_sys_max_cmd_len=8192;
6568     ;;
6569
6570   netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
6571     # This has been around since 386BSD, at least.  Likely further.
6572     if test -x /sbin/sysctl; then
6573       lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
6574     elif test -x /usr/sbin/sysctl; then
6575       lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
6576     else
6577       lt_cv_sys_max_cmd_len=65536       # usable default for all BSDs
6578     fi
6579     # And add a safety zone
6580     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6581     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6582     ;;
6583
6584   interix*)
6585     # We know the value 262144 and hardcode it with a safety zone (like BSD)
6586     lt_cv_sys_max_cmd_len=196608
6587     ;;
6588
6589   osf*)
6590     # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
6591     # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
6592     # nice to cause kernel panics so lets avoid the loop below.
6593     # First set a reasonable default.
6594     lt_cv_sys_max_cmd_len=16384
6595     #
6596     if test -x /sbin/sysconfig; then
6597       case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
6598         *1*) lt_cv_sys_max_cmd_len=-1 ;;
6599       esac
6600     fi
6601     ;;
6602   sco3.2v5*)
6603     lt_cv_sys_max_cmd_len=102400
6604     ;;
6605   sysv5* | sco5v6* | sysv4.2uw2*)
6606     kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
6607     if test -n "$kargmax"; then
6608       lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[  ]//'`
6609     else
6610       lt_cv_sys_max_cmd_len=32768
6611     fi
6612     ;;
6613   *)
6614     lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
6615     if test -n "$lt_cv_sys_max_cmd_len"; then
6616       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6617       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6618     else
6619       # Make teststring a little bigger before we do anything with it.
6620       # a 1K string should be a reasonable start.
6621       for i in 1 2 3 4 5 6 7 8 ; do
6622         teststring=$teststring$teststring
6623       done
6624       SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
6625       # If test is not a shell built-in, we'll probably end up computing a
6626       # maximum length that is only half of the actual maximum length, but
6627       # we can't tell.
6628       while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \
6629                  = "X$teststring$teststring"; } >/dev/null 2>&1 &&
6630               test $i != 17 # 1/2 MB should be enough
6631       do
6632         i=`expr $i + 1`
6633         teststring=$teststring$teststring
6634       done
6635       # Only check the string length outside the loop.
6636       lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
6637       teststring=
6638       # Add a significant safety factor because C++ compilers can tack on
6639       # massive amounts of additional arguments before passing them to the
6640       # linker.  It appears as though 1/2 is a usable value.
6641       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
6642     fi
6643     ;;
6644   esac
6645
6646 fi
6647
6648 if test -n $lt_cv_sys_max_cmd_len ; then
6649   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
6650 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
6651 else
6652   { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
6653 $as_echo "none" >&6; }
6654 fi
6655 max_cmd_len=$lt_cv_sys_max_cmd_len
6656
6657
6658
6659
6660
6661
6662 : ${CP="cp -f"}
6663 : ${MV="mv -f"}
6664 : ${RM="rm -f"}
6665
6666 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
6667 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
6668 # Try some XSI features
6669 xsi_shell=no
6670 ( _lt_dummy="a/b/c"
6671   test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \
6672       = c,a/b,b/c, \
6673     && eval 'test $(( 1 + 1 )) -eq 2 \
6674     && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
6675   && xsi_shell=yes
6676 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
6677 $as_echo "$xsi_shell" >&6; }
6678
6679
6680 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
6681 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
6682 lt_shell_append=no
6683 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
6684     >/dev/null 2>&1 \
6685   && lt_shell_append=yes
6686 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
6687 $as_echo "$lt_shell_append" >&6; }
6688
6689
6690 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
6691   lt_unset=unset
6692 else
6693   lt_unset=false
6694 fi
6695
6696
6697
6698
6699
6700 # test EBCDIC or ASCII
6701 case `echo X|tr X '\101'` in
6702  A) # ASCII based system
6703     # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
6704   lt_SP2NL='tr \040 \012'
6705   lt_NL2SP='tr \015\012 \040\040'
6706   ;;
6707  *) # EBCDIC based system
6708   lt_SP2NL='tr \100 \n'
6709   lt_NL2SP='tr \r\n \100\100'
6710   ;;
6711 esac
6712
6713
6714
6715
6716
6717
6718
6719
6720
6721 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
6722 $as_echo_n "checking how to convert $build file names to $host format... " >&6; }
6723 if ${lt_cv_to_host_file_cmd+:} false; then :
6724   $as_echo_n "(cached) " >&6
6725 else
6726   case $host in
6727   *-*-mingw* )
6728     case $build in
6729       *-*-mingw* ) # actually msys
6730         lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
6731         ;;
6732       *-*-cygwin* )
6733         lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
6734         ;;
6735       * ) # otherwise, assume *nix
6736         lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
6737         ;;
6738     esac
6739     ;;
6740   *-*-cygwin* )
6741     case $build in
6742       *-*-mingw* ) # actually msys
6743         lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
6744         ;;
6745       *-*-cygwin* )
6746         lt_cv_to_host_file_cmd=func_convert_file_noop
6747         ;;
6748       * ) # otherwise, assume *nix
6749         lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
6750         ;;
6751     esac
6752     ;;
6753   * ) # unhandled hosts (and "normal" native builds)
6754     lt_cv_to_host_file_cmd=func_convert_file_noop
6755     ;;
6756 esac
6757
6758 fi
6759
6760 to_host_file_cmd=$lt_cv_to_host_file_cmd
6761 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
6762 $as_echo "$lt_cv_to_host_file_cmd" >&6; }
6763
6764
6765
6766
6767
6768 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
6769 $as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
6770 if ${lt_cv_to_tool_file_cmd+:} false; then :
6771   $as_echo_n "(cached) " >&6
6772 else
6773   #assume ordinary cross tools, or native build.
6774 lt_cv_to_tool_file_cmd=func_convert_file_noop
6775 case $host in
6776   *-*-mingw* )
6777     case $build in
6778       *-*-mingw* ) # actually msys
6779         lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
6780         ;;
6781     esac
6782     ;;
6783 esac
6784
6785 fi
6786
6787 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
6788 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
6789 $as_echo "$lt_cv_to_tool_file_cmd" >&6; }
6790
6791
6792
6793
6794
6795 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
6796 $as_echo_n "checking for $LD option to reload object files... " >&6; }
6797 if ${lt_cv_ld_reload_flag+:} false; then :
6798   $as_echo_n "(cached) " >&6
6799 else
6800   lt_cv_ld_reload_flag='-r'
6801 fi
6802 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
6803 $as_echo "$lt_cv_ld_reload_flag" >&6; }
6804 reload_flag=$lt_cv_ld_reload_flag
6805 case $reload_flag in
6806 "" | " "*) ;;
6807 *) reload_flag=" $reload_flag" ;;
6808 esac
6809 reload_cmds='$LD$reload_flag -o $output$reload_objs'
6810 case $host_os in
6811   cygwin* | mingw* | pw32* | cegcc*)
6812     if test "$GCC" != yes; then
6813       reload_cmds=false
6814     fi
6815     ;;
6816   darwin*)
6817     if test "$GCC" = yes; then
6818       reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
6819     else
6820       reload_cmds='$LD$reload_flag -o $output$reload_objs'
6821     fi
6822     ;;
6823 esac
6824
6825
6826
6827
6828
6829
6830
6831
6832
6833 if test -n "$ac_tool_prefix"; then
6834   # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
6835 set dummy ${ac_tool_prefix}objdump; ac_word=$2
6836 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6837 $as_echo_n "checking for $ac_word... " >&6; }
6838 if ${ac_cv_prog_OBJDUMP+:} false; then :
6839   $as_echo_n "(cached) " >&6
6840 else
6841   if test -n "$OBJDUMP"; then
6842   ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
6843 else
6844 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6845 for as_dir in $PATH
6846 do
6847   IFS=$as_save_IFS
6848   test -z "$as_dir" && as_dir=.
6849     for ac_exec_ext in '' $ac_executable_extensions; do
6850   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6851     ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
6852     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6853     break 2
6854   fi
6855 done
6856   done
6857 IFS=$as_save_IFS
6858
6859 fi
6860 fi
6861 OBJDUMP=$ac_cv_prog_OBJDUMP
6862 if test -n "$OBJDUMP"; then
6863   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
6864 $as_echo "$OBJDUMP" >&6; }
6865 else
6866   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6867 $as_echo "no" >&6; }
6868 fi
6869
6870
6871 fi
6872 if test -z "$ac_cv_prog_OBJDUMP"; then
6873   ac_ct_OBJDUMP=$OBJDUMP
6874   # Extract the first word of "objdump", so it can be a program name with args.
6875 set dummy objdump; ac_word=$2
6876 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6877 $as_echo_n "checking for $ac_word... " >&6; }
6878 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
6879   $as_echo_n "(cached) " >&6
6880 else
6881   if test -n "$ac_ct_OBJDUMP"; then
6882   ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
6883 else
6884 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6885 for as_dir in $PATH
6886 do
6887   IFS=$as_save_IFS
6888   test -z "$as_dir" && as_dir=.
6889     for ac_exec_ext in '' $ac_executable_extensions; do
6890   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6891     ac_cv_prog_ac_ct_OBJDUMP="objdump"
6892     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6893     break 2
6894   fi
6895 done
6896   done
6897 IFS=$as_save_IFS
6898
6899 fi
6900 fi
6901 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
6902 if test -n "$ac_ct_OBJDUMP"; then
6903   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
6904 $as_echo "$ac_ct_OBJDUMP" >&6; }
6905 else
6906   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6907 $as_echo "no" >&6; }
6908 fi
6909
6910   if test "x$ac_ct_OBJDUMP" = x; then
6911     OBJDUMP="false"
6912   else
6913     case $cross_compiling:$ac_tool_warned in
6914 yes:)
6915 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6916 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6917 ac_tool_warned=yes ;;
6918 esac
6919     OBJDUMP=$ac_ct_OBJDUMP
6920   fi
6921 else
6922   OBJDUMP="$ac_cv_prog_OBJDUMP"
6923 fi
6924
6925 test -z "$OBJDUMP" && OBJDUMP=objdump
6926
6927
6928
6929
6930
6931
6932
6933
6934
6935 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
6936 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
6937 if ${lt_cv_deplibs_check_method+:} false; then :
6938   $as_echo_n "(cached) " >&6
6939 else
6940   lt_cv_file_magic_cmd='$MAGIC_CMD'
6941 lt_cv_file_magic_test_file=
6942 lt_cv_deplibs_check_method='unknown'
6943 # Need to set the preceding variable on all platforms that support
6944 # interlibrary dependencies.
6945 # 'none' -- dependencies not supported.
6946 # `unknown' -- same as none, but documents that we really don't know.
6947 # 'pass_all' -- all dependencies passed with no checks.
6948 # 'test_compile' -- check by making test program.
6949 # 'file_magic [[regex]]' -- check by looking for files in library path
6950 # which responds to the $file_magic_cmd with a given extended regex.
6951 # If you have `file' or equivalent on your system and you're not sure
6952 # whether `pass_all' will *always* work, you probably want this one.
6953
6954 case $host_os in
6955 aix[4-9]*)
6956   lt_cv_deplibs_check_method=pass_all
6957   ;;
6958
6959 beos*)
6960   lt_cv_deplibs_check_method=pass_all
6961   ;;
6962
6963 bsdi[45]*)
6964   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
6965   lt_cv_file_magic_cmd='/usr/bin/file -L'
6966   lt_cv_file_magic_test_file=/shlib/libc.so
6967   ;;
6968
6969 cygwin*)
6970   # func_win32_libid is a shell function defined in ltmain.sh
6971   lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6972   lt_cv_file_magic_cmd='func_win32_libid'
6973   ;;
6974
6975 mingw* | pw32*)
6976   # Base MSYS/MinGW do not provide the 'file' command needed by
6977   # func_win32_libid shell function, so use a weaker test based on 'objdump',
6978   # unless we find 'file', for example because we are cross-compiling.
6979   # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
6980   if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
6981     lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6982     lt_cv_file_magic_cmd='func_win32_libid'
6983   else
6984     # Keep this pattern in sync with the one in func_win32_libid.
6985     lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
6986     lt_cv_file_magic_cmd='$OBJDUMP -f'
6987   fi
6988   ;;
6989
6990 cegcc*)
6991   # use the weaker test based on 'objdump'. See mingw*.
6992   lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
6993   lt_cv_file_magic_cmd='$OBJDUMP -f'
6994   ;;
6995
6996 darwin* | rhapsody*)
6997   lt_cv_deplibs_check_method=pass_all
6998   ;;
6999
7000 freebsd* | dragonfly*)
7001   if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
7002     case $host_cpu in
7003     i*86 )
7004       # Not sure whether the presence of OpenBSD here was a mistake.
7005       # Let's accept both of them until this is cleared up.
7006       lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
7007       lt_cv_file_magic_cmd=/usr/bin/file
7008       lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
7009       ;;
7010     esac
7011   else
7012     lt_cv_deplibs_check_method=pass_all
7013   fi
7014   ;;
7015
7016 gnu*)
7017   lt_cv_deplibs_check_method=pass_all
7018   ;;
7019
7020 haiku*)
7021   lt_cv_deplibs_check_method=pass_all
7022   ;;
7023
7024 hpux10.20* | hpux11*)
7025   lt_cv_file_magic_cmd=/usr/bin/file
7026   case $host_cpu in
7027   ia64*)
7028     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
7029     lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
7030     ;;
7031   hppa*64*)
7032     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF[ -][0-9][0-9])(-bit)?( [LM]SB)? shared object( file)?[, -]* PA-RISC [0-9]\.[0-9]'
7033     lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
7034     ;;
7035   *)
7036     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
7037     lt_cv_file_magic_test_file=/usr/lib/libc.sl
7038     ;;
7039   esac
7040   ;;
7041
7042 interix[3-9]*)
7043   # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
7044   lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
7045   ;;
7046
7047 irix5* | irix6* | nonstopux*)
7048   case $LD in
7049   *-32|*"-32 ") libmagic=32-bit;;
7050   *-n32|*"-n32 ") libmagic=N32;;
7051   *-64|*"-64 ") libmagic=64-bit;;
7052   *) libmagic=never-match;;
7053   esac
7054   lt_cv_deplibs_check_method=pass_all
7055   ;;
7056
7057 # This must be Linux ELF.
7058 linux* | k*bsd*-gnu | kopensolaris*-gnu)
7059   lt_cv_deplibs_check_method=pass_all
7060   ;;
7061
7062 netbsd*)
7063   if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
7064     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
7065   else
7066     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
7067   fi
7068   ;;
7069
7070 newos6*)
7071   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
7072   lt_cv_file_magic_cmd=/usr/bin/file
7073   lt_cv_file_magic_test_file=/usr/lib/libnls.so
7074   ;;
7075
7076 *nto* | *qnx*)
7077   lt_cv_deplibs_check_method=pass_all
7078   ;;
7079
7080 openbsd*)
7081   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
7082     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
7083   else
7084     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
7085   fi
7086   ;;
7087
7088 osf3* | osf4* | osf5*)
7089   lt_cv_deplibs_check_method=pass_all
7090   ;;
7091
7092 rdos*)
7093   lt_cv_deplibs_check_method=pass_all
7094   ;;
7095
7096 solaris*)
7097   lt_cv_deplibs_check_method=pass_all
7098   ;;
7099
7100 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
7101   lt_cv_deplibs_check_method=pass_all
7102   ;;
7103
7104 sysv4 | sysv4.3*)
7105   case $host_vendor in
7106   motorola)
7107     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib) M[0-9][0-9]* Version [0-9]'
7108     lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
7109     ;;
7110   ncr)
7111     lt_cv_deplibs_check_method=pass_all
7112     ;;
7113   sequent)
7114     lt_cv_file_magic_cmd='/bin/file'
7115     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
7116     ;;
7117   sni)
7118     lt_cv_file_magic_cmd='/bin/file'
7119     lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
7120     lt_cv_file_magic_test_file=/lib/libc.so
7121     ;;
7122   siemens)
7123     lt_cv_deplibs_check_method=pass_all
7124     ;;
7125   pc)
7126     lt_cv_deplibs_check_method=pass_all
7127     ;;
7128   esac
7129   ;;
7130
7131 tpf*)
7132   lt_cv_deplibs_check_method=pass_all
7133   ;;
7134 esac
7135
7136 fi
7137 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
7138 $as_echo "$lt_cv_deplibs_check_method" >&6; }
7139
7140 file_magic_glob=
7141 want_nocaseglob=no
7142 if test "$build" = "$host"; then
7143   case $host_os in
7144   mingw* | pw32*)
7145     if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
7146       want_nocaseglob=yes
7147     else
7148       file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
7149     fi
7150     ;;
7151   esac
7152 fi
7153
7154 file_magic_cmd=$lt_cv_file_magic_cmd
7155 deplibs_check_method=$lt_cv_deplibs_check_method
7156 test -z "$deplibs_check_method" && deplibs_check_method=unknown
7157
7158
7159
7160
7161
7162
7163
7164
7165
7166
7167
7168
7169
7170
7171
7172
7173
7174
7175
7176
7177
7178
7179 if test -n "$ac_tool_prefix"; then
7180   # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
7181 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
7182 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7183 $as_echo_n "checking for $ac_word... " >&6; }
7184 if ${ac_cv_prog_DLLTOOL+:} false; then :
7185   $as_echo_n "(cached) " >&6
7186 else
7187   if test -n "$DLLTOOL"; then
7188   ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
7189 else
7190 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7191 for as_dir in $PATH
7192 do
7193   IFS=$as_save_IFS
7194   test -z "$as_dir" && as_dir=.
7195     for ac_exec_ext in '' $ac_executable_extensions; do
7196   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7197     ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
7198     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7199     break 2
7200   fi
7201 done
7202   done
7203 IFS=$as_save_IFS
7204
7205 fi
7206 fi
7207 DLLTOOL=$ac_cv_prog_DLLTOOL
7208 if test -n "$DLLTOOL"; then
7209   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
7210 $as_echo "$DLLTOOL" >&6; }
7211 else
7212   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7213 $as_echo "no" >&6; }
7214 fi
7215
7216
7217 fi
7218 if test -z "$ac_cv_prog_DLLTOOL"; then
7219   ac_ct_DLLTOOL=$DLLTOOL
7220   # Extract the first word of "dlltool", so it can be a program name with args.
7221 set dummy dlltool; ac_word=$2
7222 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7223 $as_echo_n "checking for $ac_word... " >&6; }
7224 if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
7225   $as_echo_n "(cached) " >&6
7226 else
7227   if test -n "$ac_ct_DLLTOOL"; then
7228   ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
7229 else
7230 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7231 for as_dir in $PATH
7232 do
7233   IFS=$as_save_IFS
7234   test -z "$as_dir" && as_dir=.
7235     for ac_exec_ext in '' $ac_executable_extensions; do
7236   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7237     ac_cv_prog_ac_ct_DLLTOOL="dlltool"
7238     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7239     break 2
7240   fi
7241 done
7242   done
7243 IFS=$as_save_IFS
7244
7245 fi
7246 fi
7247 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
7248 if test -n "$ac_ct_DLLTOOL"; then
7249   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
7250 $as_echo "$ac_ct_DLLTOOL" >&6; }
7251 else
7252   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7253 $as_echo "no" >&6; }
7254 fi
7255
7256   if test "x$ac_ct_DLLTOOL" = x; then
7257     DLLTOOL="false"
7258   else
7259     case $cross_compiling:$ac_tool_warned in
7260 yes:)
7261 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7262 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7263 ac_tool_warned=yes ;;
7264 esac
7265     DLLTOOL=$ac_ct_DLLTOOL
7266   fi
7267 else
7268   DLLTOOL="$ac_cv_prog_DLLTOOL"
7269 fi
7270
7271 test -z "$DLLTOOL" && DLLTOOL=dlltool
7272
7273
7274
7275
7276
7277
7278
7279
7280
7281
7282 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
7283 $as_echo_n "checking how to associate runtime and link libraries... " >&6; }
7284 if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
7285   $as_echo_n "(cached) " >&6
7286 else
7287   lt_cv_sharedlib_from_linklib_cmd='unknown'
7288
7289 case $host_os in
7290 cygwin* | mingw* | pw32* | cegcc*)
7291   # two different shell functions defined in ltmain.sh
7292   # decide which to use based on capabilities of $DLLTOOL
7293   case `$DLLTOOL --help 2>&1` in
7294   *--identify-strict*)
7295     lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
7296     ;;
7297   *)
7298     lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
7299     ;;
7300   esac
7301   ;;
7302 *)
7303   # fallback: assume linklib IS sharedlib
7304   lt_cv_sharedlib_from_linklib_cmd="$ECHO"
7305   ;;
7306 esac
7307
7308 fi
7309 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
7310 $as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
7311 sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
7312 test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
7313
7314
7315
7316
7317
7318
7319
7320 if test -n "$ac_tool_prefix"; then
7321   for ac_prog in ar
7322   do
7323     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
7324 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
7325 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7326 $as_echo_n "checking for $ac_word... " >&6; }
7327 if ${ac_cv_prog_AR+:} false; then :
7328   $as_echo_n "(cached) " >&6
7329 else
7330   if test -n "$AR"; then
7331   ac_cv_prog_AR="$AR" # Let the user override the test.
7332 else
7333 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7334 for as_dir in $PATH
7335 do
7336   IFS=$as_save_IFS
7337   test -z "$as_dir" && as_dir=.
7338     for ac_exec_ext in '' $ac_executable_extensions; do
7339   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7340     ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
7341     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7342     break 2
7343   fi
7344 done
7345   done
7346 IFS=$as_save_IFS
7347
7348 fi
7349 fi
7350 AR=$ac_cv_prog_AR
7351 if test -n "$AR"; then
7352   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
7353 $as_echo "$AR" >&6; }
7354 else
7355   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7356 $as_echo "no" >&6; }
7357 fi
7358
7359
7360     test -n "$AR" && break
7361   done
7362 fi
7363 if test -z "$AR"; then
7364   ac_ct_AR=$AR
7365   for ac_prog in ar
7366 do
7367   # Extract the first word of "$ac_prog", so it can be a program name with args.
7368 set dummy $ac_prog; ac_word=$2
7369 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7370 $as_echo_n "checking for $ac_word... " >&6; }
7371 if ${ac_cv_prog_ac_ct_AR+:} false; then :
7372   $as_echo_n "(cached) " >&6
7373 else
7374   if test -n "$ac_ct_AR"; then
7375   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
7376 else
7377 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7378 for as_dir in $PATH
7379 do
7380   IFS=$as_save_IFS
7381   test -z "$as_dir" && as_dir=.
7382     for ac_exec_ext in '' $ac_executable_extensions; do
7383   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7384     ac_cv_prog_ac_ct_AR="$ac_prog"
7385     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7386     break 2
7387   fi
7388 done
7389   done
7390 IFS=$as_save_IFS
7391
7392 fi
7393 fi
7394 ac_ct_AR=$ac_cv_prog_ac_ct_AR
7395 if test -n "$ac_ct_AR"; then
7396   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
7397 $as_echo "$ac_ct_AR" >&6; }
7398 else
7399   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7400 $as_echo "no" >&6; }
7401 fi
7402
7403
7404   test -n "$ac_ct_AR" && break
7405 done
7406
7407   if test "x$ac_ct_AR" = x; then
7408     AR="false"
7409   else
7410     case $cross_compiling:$ac_tool_warned in
7411 yes:)
7412 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7413 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7414 ac_tool_warned=yes ;;
7415 esac
7416     AR=$ac_ct_AR
7417   fi
7418 fi
7419
7420 : ${AR=ar}
7421 : ${AR_FLAGS=cru}
7422
7423
7424
7425
7426
7427
7428
7429
7430
7431
7432
7433 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
7434 $as_echo_n "checking for archiver @FILE support... " >&6; }
7435 if ${lt_cv_ar_at_file+:} false; then :
7436   $as_echo_n "(cached) " >&6
7437 else
7438   lt_cv_ar_at_file=no
7439    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7440 /* end confdefs.h.  */
7441
7442 int
7443 main ()
7444 {
7445
7446   ;
7447   return 0;
7448 }
7449 _ACEOF
7450 if ac_fn_c_try_compile "$LINENO"; then :
7451   echo conftest.$ac_objext > conftest.lst
7452       lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
7453       { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
7454   (eval $lt_ar_try) 2>&5
7455   ac_status=$?
7456   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7457   test $ac_status = 0; }
7458       if test "$ac_status" -eq 0; then
7459         # Ensure the archiver fails upon bogus file names.
7460         rm -f conftest.$ac_objext libconftest.a
7461         { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
7462   (eval $lt_ar_try) 2>&5
7463   ac_status=$?
7464   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7465   test $ac_status = 0; }
7466         if test "$ac_status" -ne 0; then
7467           lt_cv_ar_at_file=@
7468         fi
7469       fi
7470       rm -f conftest.* libconftest.a
7471
7472 fi
7473 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7474
7475 fi
7476 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
7477 $as_echo "$lt_cv_ar_at_file" >&6; }
7478
7479 if test "x$lt_cv_ar_at_file" = xno; then
7480   archiver_list_spec=
7481 else
7482   archiver_list_spec=$lt_cv_ar_at_file
7483 fi
7484
7485
7486
7487
7488
7489
7490
7491 if test -n "$ac_tool_prefix"; then
7492   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
7493 set dummy ${ac_tool_prefix}strip; ac_word=$2
7494 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7495 $as_echo_n "checking for $ac_word... " >&6; }
7496 if ${ac_cv_prog_STRIP+:} false; then :
7497   $as_echo_n "(cached) " >&6
7498 else
7499   if test -n "$STRIP"; then
7500   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
7501 else
7502 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7503 for as_dir in $PATH
7504 do
7505   IFS=$as_save_IFS
7506   test -z "$as_dir" && as_dir=.
7507     for ac_exec_ext in '' $ac_executable_extensions; do
7508   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7509     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
7510     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7511     break 2
7512   fi
7513 done
7514   done
7515 IFS=$as_save_IFS
7516
7517 fi
7518 fi
7519 STRIP=$ac_cv_prog_STRIP
7520 if test -n "$STRIP"; then
7521   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
7522 $as_echo "$STRIP" >&6; }
7523 else
7524   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7525 $as_echo "no" >&6; }
7526 fi
7527
7528
7529 fi
7530 if test -z "$ac_cv_prog_STRIP"; then
7531   ac_ct_STRIP=$STRIP
7532   # Extract the first word of "strip", so it can be a program name with args.
7533 set dummy strip; ac_word=$2
7534 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7535 $as_echo_n "checking for $ac_word... " >&6; }
7536 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
7537   $as_echo_n "(cached) " >&6
7538 else
7539   if test -n "$ac_ct_STRIP"; then
7540   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
7541 else
7542 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7543 for as_dir in $PATH
7544 do
7545   IFS=$as_save_IFS
7546   test -z "$as_dir" && as_dir=.
7547     for ac_exec_ext in '' $ac_executable_extensions; do
7548   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7549     ac_cv_prog_ac_ct_STRIP="strip"
7550     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7551     break 2
7552   fi
7553 done
7554   done
7555 IFS=$as_save_IFS
7556
7557 fi
7558 fi
7559 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
7560 if test -n "$ac_ct_STRIP"; then
7561   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
7562 $as_echo "$ac_ct_STRIP" >&6; }
7563 else
7564   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7565 $as_echo "no" >&6; }
7566 fi
7567
7568   if test "x$ac_ct_STRIP" = x; then
7569     STRIP=":"
7570   else
7571     case $cross_compiling:$ac_tool_warned in
7572 yes:)
7573 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7574 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7575 ac_tool_warned=yes ;;
7576 esac
7577     STRIP=$ac_ct_STRIP
7578   fi
7579 else
7580   STRIP="$ac_cv_prog_STRIP"
7581 fi
7582
7583 test -z "$STRIP" && STRIP=:
7584
7585
7586
7587
7588
7589
7590 if test -n "$ac_tool_prefix"; then
7591   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
7592 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
7593 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7594 $as_echo_n "checking for $ac_word... " >&6; }
7595 if ${ac_cv_prog_RANLIB+:} false; then :
7596   $as_echo_n "(cached) " >&6
7597 else
7598   if test -n "$RANLIB"; then
7599   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
7600 else
7601 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7602 for as_dir in $PATH
7603 do
7604   IFS=$as_save_IFS
7605   test -z "$as_dir" && as_dir=.
7606     for ac_exec_ext in '' $ac_executable_extensions; do
7607   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7608     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
7609     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7610     break 2
7611   fi
7612 done
7613   done
7614 IFS=$as_save_IFS
7615
7616 fi
7617 fi
7618 RANLIB=$ac_cv_prog_RANLIB
7619 if test -n "$RANLIB"; then
7620   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
7621 $as_echo "$RANLIB" >&6; }
7622 else
7623   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7624 $as_echo "no" >&6; }
7625 fi
7626
7627
7628 fi
7629 if test -z "$ac_cv_prog_RANLIB"; then
7630   ac_ct_RANLIB=$RANLIB
7631   # Extract the first word of "ranlib", so it can be a program name with args.
7632 set dummy ranlib; ac_word=$2
7633 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7634 $as_echo_n "checking for $ac_word... " >&6; }
7635 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
7636   $as_echo_n "(cached) " >&6
7637 else
7638   if test -n "$ac_ct_RANLIB"; then
7639   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
7640 else
7641 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7642 for as_dir in $PATH
7643 do
7644   IFS=$as_save_IFS
7645   test -z "$as_dir" && as_dir=.
7646     for ac_exec_ext in '' $ac_executable_extensions; do
7647   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7648     ac_cv_prog_ac_ct_RANLIB="ranlib"
7649     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7650     break 2
7651   fi
7652 done
7653   done
7654 IFS=$as_save_IFS
7655
7656 fi
7657 fi
7658 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
7659 if test -n "$ac_ct_RANLIB"; then
7660   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
7661 $as_echo "$ac_ct_RANLIB" >&6; }
7662 else
7663   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7664 $as_echo "no" >&6; }
7665 fi
7666
7667   if test "x$ac_ct_RANLIB" = x; then
7668     RANLIB=":"
7669   else
7670     case $cross_compiling:$ac_tool_warned in
7671 yes:)
7672 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7673 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7674 ac_tool_warned=yes ;;
7675 esac
7676     RANLIB=$ac_ct_RANLIB
7677   fi
7678 else
7679   RANLIB="$ac_cv_prog_RANLIB"
7680 fi
7681
7682 test -z "$RANLIB" && RANLIB=:
7683
7684
7685
7686
7687
7688
7689 # Determine commands to create old-style static archives.
7690 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
7691 old_postinstall_cmds='chmod 644 $oldlib'
7692 old_postuninstall_cmds=
7693
7694 if test -n "$RANLIB"; then
7695   case $host_os in
7696   openbsd*)
7697     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
7698     ;;
7699   *)
7700     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
7701     ;;
7702   esac
7703   old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
7704 fi
7705
7706 case $host_os in
7707   darwin*)
7708     lock_old_archive_extraction=yes ;;
7709   *)
7710     lock_old_archive_extraction=no ;;
7711 esac
7712
7713
7714
7715
7716
7717
7718
7719
7720
7721
7722
7723
7724
7725
7726
7727
7728
7729
7730
7731
7732
7733
7734
7735
7736
7737
7738
7739
7740
7741
7742
7743
7744
7745
7746
7747
7748
7749
7750
7751 # If no C compiler was specified, use CC.
7752 LTCC=${LTCC-"$CC"}
7753
7754 # If no C compiler flags were specified, use CFLAGS.
7755 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7756
7757 # Allow CC to be a program name with arguments.
7758 compiler=$CC
7759
7760
7761 # Check for command to grab the raw symbol name followed by C symbol from nm.
7762 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
7763 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
7764 if ${lt_cv_sys_global_symbol_pipe+:} false; then :
7765   $as_echo_n "(cached) " >&6
7766 else
7767
7768 # These are sane defaults that work on at least a few old systems.
7769 # [They come from Ultrix.  What could be older than Ultrix?!! ;)]
7770
7771 # Character class describing NM global symbol codes.
7772 symcode='[BCDEGRST]'
7773
7774 # Regexp to match symbols that can be accessed directly from C.
7775 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
7776
7777 # Define system-specific variables.
7778 case $host_os in
7779 aix*)
7780   symcode='[BCDT]'
7781   ;;
7782 cygwin* | mingw* | pw32* | cegcc*)
7783   symcode='[ABCDGISTW]'
7784   ;;
7785 hpux*)
7786   if test "$host_cpu" = ia64; then
7787     symcode='[ABCDEGRST]'
7788   fi
7789   ;;
7790 irix* | nonstopux*)
7791   symcode='[BCDEGRST]'
7792   ;;
7793 osf*)
7794   symcode='[BCDEGQRST]'
7795   ;;
7796 solaris*)
7797   symcode='[BDRT]'
7798   ;;
7799 sco3.2v5*)
7800   symcode='[DT]'
7801   ;;
7802 sysv4.2uw2*)
7803   symcode='[DT]'
7804   ;;
7805 sysv5* | sco5v6* | unixware* | OpenUNIX*)
7806   symcode='[ABDT]'
7807   ;;
7808 sysv4)
7809   symcode='[DFNSTU]'
7810   ;;
7811 esac
7812
7813 # If we're using GNU nm, then use its standard symbol codes.
7814 case `$NM -V 2>&1` in
7815 *GNU* | *'with BFD'*)
7816   symcode='[ABCDGIRSTW]' ;;
7817 esac
7818
7819 # Transform an extracted symbol line into a proper C declaration.
7820 # Some systems (esp. on ia64) link data and code symbols differently,
7821 # so use this general approach.
7822 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
7823
7824 # Transform an extracted symbol line into symbol name and symbol address
7825 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/  {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"\2\", (void *) \&\2},/p'"
7826 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n -e 's/^: \([^ ]*\)[ ]*$/  {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \(lib[^ ]*\)$/  {\"\2\", (void *) \&\2},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"lib\2\", (void *) \&\2},/p'"
7827
7828 # Handle CRLF in mingw tool chain
7829 opt_cr=
7830 case $build_os in
7831 mingw*)
7832   opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
7833   ;;
7834 esac
7835
7836 # Try without a prefix underscore, then with it.
7837 for ac_symprfx in "" "_"; do
7838
7839   # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
7840   symxfrm="\\1 $ac_symprfx\\2 \\2"
7841
7842   # Write the raw and C identifiers.
7843   if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7844     # Fake it for dumpbin and say T for any non-static function
7845     # and D for any global variable.
7846     # Also find C++ and __fastcall symbols from MSVC++,
7847     # which start with @ or ?.
7848     lt_cv_sys_global_symbol_pipe="$AWK '"\
7849 "     {last_section=section; section=\$ 3};"\
7850 "     /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
7851 "     \$ 0!~/External *\|/{next};"\
7852 "     / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
7853 "     {if(hide[section]) next};"\
7854 "     {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
7855 "     {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
7856 "     s[1]~/^[@?]/{print s[1], s[1]; next};"\
7857 "     s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
7858 "     ' prfx=^$ac_symprfx"
7859   else
7860     lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[      ]\($symcode$symcode*\)[         ][      ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
7861   fi
7862   lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
7863
7864   # Check to see that the pipe works correctly.
7865   pipe_works=no
7866
7867   rm -f conftest*
7868   cat > conftest.$ac_ext <<_LT_EOF
7869 #ifdef __cplusplus
7870 extern "C" {
7871 #endif
7872 char nm_test_var;
7873 void nm_test_func(void);
7874 void nm_test_func(void){}
7875 #ifdef __cplusplus
7876 }
7877 #endif
7878 int main(){nm_test_var='a';nm_test_func();return(0);}
7879 _LT_EOF
7880
7881   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7882   (eval $ac_compile) 2>&5
7883   ac_status=$?
7884   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7885   test $ac_status = 0; }; then
7886     # Now try to grab the symbols.
7887     nlist=conftest.nm
7888     if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
7889   (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
7890   ac_status=$?
7891   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7892   test $ac_status = 0; } && test -s "$nlist"; then
7893       # Try sorting and uniquifying the output.
7894       if sort "$nlist" | uniq > "$nlist"T; then
7895         mv -f "$nlist"T "$nlist"
7896       else
7897         rm -f "$nlist"T
7898       fi
7899
7900       # Make sure that we snagged all the symbols we need.
7901       if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
7902         if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
7903           cat <<_LT_EOF > conftest.$ac_ext
7904 /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests.  */
7905 #if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE)
7906 /* DATA imports from DLLs on WIN32 con't be const, because runtime
7907    relocations are performed -- see ld's documentation on pseudo-relocs.  */
7908 # define LT_DLSYM_CONST
7909 #elif defined(__osf__)
7910 /* This system does not cope well with relocations in const data.  */
7911 # define LT_DLSYM_CONST
7912 #else
7913 # define LT_DLSYM_CONST const
7914 #endif
7915
7916 #ifdef __cplusplus
7917 extern "C" {
7918 #endif
7919
7920 _LT_EOF
7921           # Now generate the symbol file.
7922           eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
7923
7924           cat <<_LT_EOF >> conftest.$ac_ext
7925
7926 /* The mapping between symbol names and symbols.  */
7927 LT_DLSYM_CONST struct {
7928   const char *name;
7929   void       *address;
7930 }
7931 lt__PROGRAM__LTX_preloaded_symbols[] =
7932 {
7933   { "@PROGRAM@", (void *) 0 },
7934 _LT_EOF
7935           $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
7936           cat <<\_LT_EOF >> conftest.$ac_ext
7937   {0, (void *) 0}
7938 };
7939
7940 /* This works around a problem in FreeBSD linker */
7941 #ifdef FREEBSD_WORKAROUND
7942 static const void *lt_preloaded_setup() {
7943   return lt__PROGRAM__LTX_preloaded_symbols;
7944 }
7945 #endif
7946
7947 #ifdef __cplusplus
7948 }
7949 #endif
7950 _LT_EOF
7951           # Now try linking the two files.
7952           mv conftest.$ac_objext conftstm.$ac_objext
7953           lt_globsym_save_LIBS=$LIBS
7954           lt_globsym_save_CFLAGS=$CFLAGS
7955           LIBS="conftstm.$ac_objext"
7956           CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
7957           if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
7958   (eval $ac_link) 2>&5
7959   ac_status=$?
7960   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7961   test $ac_status = 0; } && test -s conftest${ac_exeext}; then
7962             pipe_works=yes
7963           fi
7964           LIBS=$lt_globsym_save_LIBS
7965           CFLAGS=$lt_globsym_save_CFLAGS
7966         else
7967           echo "cannot find nm_test_func in $nlist" >&5
7968         fi
7969       else
7970         echo "cannot find nm_test_var in $nlist" >&5
7971       fi
7972     else
7973       echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
7974     fi
7975   else
7976     echo "$progname: failed program was:" >&5
7977     cat conftest.$ac_ext >&5
7978   fi
7979   rm -rf conftest* conftst*
7980
7981   # Do not use the global_symbol_pipe unless it works.
7982   if test "$pipe_works" = yes; then
7983     break
7984   else
7985     lt_cv_sys_global_symbol_pipe=
7986   fi
7987 done
7988
7989 fi
7990
7991 if test -z "$lt_cv_sys_global_symbol_pipe"; then
7992   lt_cv_sys_global_symbol_to_cdecl=
7993 fi
7994 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
7995   { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
7996 $as_echo "failed" >&6; }
7997 else
7998   { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
7999 $as_echo "ok" >&6; }
8000 fi
8001
8002 # Response file support.
8003 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
8004   nm_file_list_spec='@'
8005 elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
8006   nm_file_list_spec='@'
8007 fi
8008
8009
8010
8011
8012
8013
8014
8015
8016
8017
8018
8019
8020
8021
8022
8023
8024
8025
8026
8027
8028
8029
8030
8031
8032
8033
8034
8035 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
8036 $as_echo_n "checking for sysroot... " >&6; }
8037
8038 # Check whether --with-sysroot was given.
8039 if test "${with_sysroot+set}" = set; then :
8040   withval=$with_sysroot;
8041 else
8042   with_sysroot=no
8043 fi
8044
8045
8046 lt_sysroot=
8047 case ${with_sysroot} in #(
8048  yes)
8049    if test "$GCC" = yes; then
8050      lt_sysroot=`$CC --print-sysroot 2>/dev/null`
8051    fi
8052    ;; #(
8053  /*)
8054    lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
8055    ;; #(
8056  no|'')
8057    ;; #(
8058  *)
8059    { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_sysroot}" >&5
8060 $as_echo "${with_sysroot}" >&6; }
8061    as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
8062    ;;
8063 esac
8064
8065  { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
8066 $as_echo "${lt_sysroot:-no}" >&6; }
8067
8068
8069
8070
8071
8072 # Check whether --enable-libtool-lock was given.
8073 if test "${enable_libtool_lock+set}" = set; then :
8074   enableval=$enable_libtool_lock;
8075 fi
8076
8077 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
8078
8079 # Some flags need to be propagated to the compiler or linker for good
8080 # libtool support.
8081 case $host in
8082 ia64-*-hpux*)
8083   # Find out which ABI we are using.
8084   echo 'int i;' > conftest.$ac_ext
8085   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8086   (eval $ac_compile) 2>&5
8087   ac_status=$?
8088   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8089   test $ac_status = 0; }; then
8090     case `/usr/bin/file conftest.$ac_objext` in
8091       *ELF-32*)
8092         HPUX_IA64_MODE="32"
8093         ;;
8094       *ELF-64*)
8095         HPUX_IA64_MODE="64"
8096         ;;
8097     esac
8098   fi
8099   rm -rf conftest*
8100   ;;
8101 *-*-irix6*)
8102   # Find out which ABI we are using.
8103   echo '#line '$LINENO' "configure"' > conftest.$ac_ext
8104   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8105   (eval $ac_compile) 2>&5
8106   ac_status=$?
8107   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8108   test $ac_status = 0; }; then
8109     if test "$lt_cv_prog_gnu_ld" = yes; then
8110       case `/usr/bin/file conftest.$ac_objext` in
8111         *32-bit*)
8112           LD="${LD-ld} -melf32bsmip"
8113           ;;
8114         *N32*)
8115           LD="${LD-ld} -melf32bmipn32"
8116           ;;
8117         *64-bit*)
8118           LD="${LD-ld} -melf64bmip"
8119         ;;
8120       esac
8121     else
8122       case `/usr/bin/file conftest.$ac_objext` in
8123         *32-bit*)
8124           LD="${LD-ld} -32"
8125           ;;
8126         *N32*)
8127           LD="${LD-ld} -n32"
8128           ;;
8129         *64-bit*)
8130           LD="${LD-ld} -64"
8131           ;;
8132       esac
8133     fi
8134   fi
8135   rm -rf conftest*
8136   ;;
8137
8138 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
8139 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
8140   # Find out which ABI we are using.
8141   echo 'int i;' > conftest.$ac_ext
8142   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8143   (eval $ac_compile) 2>&5
8144   ac_status=$?
8145   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8146   test $ac_status = 0; }; then
8147     case `/usr/bin/file conftest.o` in
8148       *32-bit*)
8149         case $host in
8150           x86_64-*kfreebsd*-gnu)
8151             LD="${LD-ld} -m elf_i386_fbsd"
8152             ;;
8153           x86_64-*linux*)
8154             LD="${LD-ld} -m elf_i386"
8155             ;;
8156           ppc64-*linux*|powerpc64-*linux*)
8157             LD="${LD-ld} -m elf32ppclinux"
8158             ;;
8159           s390x-*linux*)
8160             LD="${LD-ld} -m elf_s390"
8161             ;;
8162           sparc64-*linux*)
8163             LD="${LD-ld} -m elf32_sparc"
8164             ;;
8165         esac
8166         ;;
8167       *64-bit*)
8168         case $host in
8169           x86_64-*kfreebsd*-gnu)
8170             LD="${LD-ld} -m elf_x86_64_fbsd"
8171             ;;
8172           x86_64-*linux*)
8173             LD="${LD-ld} -m elf_x86_64"
8174             ;;
8175           ppc*-*linux*|powerpc*-*linux*)
8176             LD="${LD-ld} -m elf64ppc"
8177             ;;
8178           s390*-*linux*|s390*-*tpf*)
8179             LD="${LD-ld} -m elf64_s390"
8180             ;;
8181           sparc*-*linux*)
8182             LD="${LD-ld} -m elf64_sparc"
8183             ;;
8184         esac
8185         ;;
8186     esac
8187   fi
8188   rm -rf conftest*
8189   ;;
8190
8191 *-*-sco3.2v5*)
8192   # On SCO OpenServer 5, we need -belf to get full-featured binaries.
8193   SAVE_CFLAGS="$CFLAGS"
8194   CFLAGS="$CFLAGS -belf"
8195   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
8196 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
8197 if ${lt_cv_cc_needs_belf+:} false; then :
8198   $as_echo_n "(cached) " >&6
8199 else
8200   ac_ext=c
8201 ac_cpp='$CPP $CPPFLAGS'
8202 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8203 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8204 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8205
8206      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8207 /* end confdefs.h.  */
8208
8209 int
8210 main ()
8211 {
8212
8213   ;
8214   return 0;
8215 }
8216 _ACEOF
8217 if ac_fn_c_try_link "$LINENO"; then :
8218   lt_cv_cc_needs_belf=yes
8219 else
8220   lt_cv_cc_needs_belf=no
8221 fi
8222 rm -f core conftest.err conftest.$ac_objext \
8223     conftest$ac_exeext conftest.$ac_ext
8224      ac_ext=c
8225 ac_cpp='$CPP $CPPFLAGS'
8226 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8227 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8228 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8229
8230 fi
8231 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
8232 $as_echo "$lt_cv_cc_needs_belf" >&6; }
8233   if test x"$lt_cv_cc_needs_belf" != x"yes"; then
8234     # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
8235     CFLAGS="$SAVE_CFLAGS"
8236   fi
8237   ;;
8238 sparc*-*solaris*)
8239   # Find out which ABI we are using.
8240   echo 'int i;' > conftest.$ac_ext
8241   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8242   (eval $ac_compile) 2>&5
8243   ac_status=$?
8244   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8245   test $ac_status = 0; }; then
8246     case `/usr/bin/file conftest.o` in
8247     *64-bit*)
8248       case $lt_cv_prog_gnu_ld in
8249       yes*) LD="${LD-ld} -m elf64_sparc" ;;
8250       *)
8251         if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
8252           LD="${LD-ld} -64"
8253         fi
8254         ;;
8255       esac
8256       ;;
8257     esac
8258   fi
8259   rm -rf conftest*
8260   ;;
8261 esac
8262
8263 need_locks="$enable_libtool_lock"
8264
8265 if test -n "$ac_tool_prefix"; then
8266   # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
8267 set dummy ${ac_tool_prefix}mt; ac_word=$2
8268 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8269 $as_echo_n "checking for $ac_word... " >&6; }
8270 if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
8271   $as_echo_n "(cached) " >&6
8272 else
8273   if test -n "$MANIFEST_TOOL"; then
8274   ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
8275 else
8276 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8277 for as_dir in $PATH
8278 do
8279   IFS=$as_save_IFS
8280   test -z "$as_dir" && as_dir=.
8281     for ac_exec_ext in '' $ac_executable_extensions; do
8282   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8283     ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
8284     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8285     break 2
8286   fi
8287 done
8288   done
8289 IFS=$as_save_IFS
8290
8291 fi
8292 fi
8293 MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
8294 if test -n "$MANIFEST_TOOL"; then
8295   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
8296 $as_echo "$MANIFEST_TOOL" >&6; }
8297 else
8298   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8299 $as_echo "no" >&6; }
8300 fi
8301
8302
8303 fi
8304 if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
8305   ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
8306   # Extract the first word of "mt", so it can be a program name with args.
8307 set dummy mt; ac_word=$2
8308 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8309 $as_echo_n "checking for $ac_word... " >&6; }
8310 if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
8311   $as_echo_n "(cached) " >&6
8312 else
8313   if test -n "$ac_ct_MANIFEST_TOOL"; then
8314   ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
8315 else
8316 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8317 for as_dir in $PATH
8318 do
8319   IFS=$as_save_IFS
8320   test -z "$as_dir" && as_dir=.
8321     for ac_exec_ext in '' $ac_executable_extensions; do
8322   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8323     ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
8324     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8325     break 2
8326   fi
8327 done
8328   done
8329 IFS=$as_save_IFS
8330
8331 fi
8332 fi
8333 ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
8334 if test -n "$ac_ct_MANIFEST_TOOL"; then
8335   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
8336 $as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
8337 else
8338   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8339 $as_echo "no" >&6; }
8340 fi
8341
8342   if test "x$ac_ct_MANIFEST_TOOL" = x; then
8343     MANIFEST_TOOL=":"
8344   else
8345     case $cross_compiling:$ac_tool_warned in
8346 yes:)
8347 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8348 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8349 ac_tool_warned=yes ;;
8350 esac
8351     MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
8352   fi
8353 else
8354   MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
8355 fi
8356
8357 test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
8358 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
8359 $as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
8360 if ${lt_cv_path_mainfest_tool+:} false; then :
8361   $as_echo_n "(cached) " >&6
8362 else
8363   lt_cv_path_mainfest_tool=no
8364   echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
8365   $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
8366   cat conftest.err >&5
8367   if $GREP 'Manifest Tool' conftest.out > /dev/null; then
8368     lt_cv_path_mainfest_tool=yes
8369   fi
8370   rm -f conftest*
8371 fi
8372 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
8373 $as_echo "$lt_cv_path_mainfest_tool" >&6; }
8374 if test "x$lt_cv_path_mainfest_tool" != xyes; then
8375   MANIFEST_TOOL=:
8376 fi
8377
8378
8379
8380
8381
8382
8383   case $host_os in
8384     rhapsody* | darwin*)
8385     if test -n "$ac_tool_prefix"; then
8386   # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
8387 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
8388 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8389 $as_echo_n "checking for $ac_word... " >&6; }
8390 if ${ac_cv_prog_DSYMUTIL+:} false; then :
8391   $as_echo_n "(cached) " >&6
8392 else
8393   if test -n "$DSYMUTIL"; then
8394   ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
8395 else
8396 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8397 for as_dir in $PATH
8398 do
8399   IFS=$as_save_IFS
8400   test -z "$as_dir" && as_dir=.
8401     for ac_exec_ext in '' $ac_executable_extensions; do
8402   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8403     ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
8404     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8405     break 2
8406   fi
8407 done
8408   done
8409 IFS=$as_save_IFS
8410
8411 fi
8412 fi
8413 DSYMUTIL=$ac_cv_prog_DSYMUTIL
8414 if test -n "$DSYMUTIL"; then
8415   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
8416 $as_echo "$DSYMUTIL" >&6; }
8417 else
8418   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8419 $as_echo "no" >&6; }
8420 fi
8421
8422
8423 fi
8424 if test -z "$ac_cv_prog_DSYMUTIL"; then
8425   ac_ct_DSYMUTIL=$DSYMUTIL
8426   # Extract the first word of "dsymutil", so it can be a program name with args.
8427 set dummy dsymutil; ac_word=$2
8428 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8429 $as_echo_n "checking for $ac_word... " >&6; }
8430 if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
8431   $as_echo_n "(cached) " >&6
8432 else
8433   if test -n "$ac_ct_DSYMUTIL"; then
8434   ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
8435 else
8436 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8437 for as_dir in $PATH
8438 do
8439   IFS=$as_save_IFS
8440   test -z "$as_dir" && as_dir=.
8441     for ac_exec_ext in '' $ac_executable_extensions; do
8442   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8443     ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
8444     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8445     break 2
8446   fi
8447 done
8448   done
8449 IFS=$as_save_IFS
8450
8451 fi
8452 fi
8453 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
8454 if test -n "$ac_ct_DSYMUTIL"; then
8455   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
8456 $as_echo "$ac_ct_DSYMUTIL" >&6; }
8457 else
8458   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8459 $as_echo "no" >&6; }
8460 fi
8461
8462   if test "x$ac_ct_DSYMUTIL" = x; then
8463     DSYMUTIL=":"
8464   else
8465     case $cross_compiling:$ac_tool_warned in
8466 yes:)
8467 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8468 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8469 ac_tool_warned=yes ;;
8470 esac
8471     DSYMUTIL=$ac_ct_DSYMUTIL
8472   fi
8473 else
8474   DSYMUTIL="$ac_cv_prog_DSYMUTIL"
8475 fi
8476
8477     if test -n "$ac_tool_prefix"; then
8478   # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
8479 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
8480 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8481 $as_echo_n "checking for $ac_word... " >&6; }
8482 if ${ac_cv_prog_NMEDIT+:} false; then :
8483   $as_echo_n "(cached) " >&6
8484 else
8485   if test -n "$NMEDIT"; then
8486   ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
8487 else
8488 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8489 for as_dir in $PATH
8490 do
8491   IFS=$as_save_IFS
8492   test -z "$as_dir" && as_dir=.
8493     for ac_exec_ext in '' $ac_executable_extensions; do
8494   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8495     ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
8496     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8497     break 2
8498   fi
8499 done
8500   done
8501 IFS=$as_save_IFS
8502
8503 fi
8504 fi
8505 NMEDIT=$ac_cv_prog_NMEDIT
8506 if test -n "$NMEDIT"; then
8507   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
8508 $as_echo "$NMEDIT" >&6; }
8509 else
8510   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8511 $as_echo "no" >&6; }
8512 fi
8513
8514
8515 fi
8516 if test -z "$ac_cv_prog_NMEDIT"; then
8517   ac_ct_NMEDIT=$NMEDIT
8518   # Extract the first word of "nmedit", so it can be a program name with args.
8519 set dummy nmedit; ac_word=$2
8520 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8521 $as_echo_n "checking for $ac_word... " >&6; }
8522 if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
8523   $as_echo_n "(cached) " >&6
8524 else
8525   if test -n "$ac_ct_NMEDIT"; then
8526   ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
8527 else
8528 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8529 for as_dir in $PATH
8530 do
8531   IFS=$as_save_IFS
8532   test -z "$as_dir" && as_dir=.
8533     for ac_exec_ext in '' $ac_executable_extensions; do
8534   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8535     ac_cv_prog_ac_ct_NMEDIT="nmedit"
8536     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8537     break 2
8538   fi
8539 done
8540   done
8541 IFS=$as_save_IFS
8542
8543 fi
8544 fi
8545 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
8546 if test -n "$ac_ct_NMEDIT"; then
8547   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
8548 $as_echo "$ac_ct_NMEDIT" >&6; }
8549 else
8550   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8551 $as_echo "no" >&6; }
8552 fi
8553
8554   if test "x$ac_ct_NMEDIT" = x; then
8555     NMEDIT=":"
8556   else
8557     case $cross_compiling:$ac_tool_warned in
8558 yes:)
8559 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8560 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8561 ac_tool_warned=yes ;;
8562 esac
8563     NMEDIT=$ac_ct_NMEDIT
8564   fi
8565 else
8566   NMEDIT="$ac_cv_prog_NMEDIT"
8567 fi
8568
8569     if test -n "$ac_tool_prefix"; then
8570   # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
8571 set dummy ${ac_tool_prefix}lipo; ac_word=$2
8572 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8573 $as_echo_n "checking for $ac_word... " >&6; }
8574 if ${ac_cv_prog_LIPO+:} false; then :
8575   $as_echo_n "(cached) " >&6
8576 else
8577   if test -n "$LIPO"; then
8578   ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
8579 else
8580 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8581 for as_dir in $PATH
8582 do
8583   IFS=$as_save_IFS
8584   test -z "$as_dir" && as_dir=.
8585     for ac_exec_ext in '' $ac_executable_extensions; do
8586   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8587     ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
8588     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8589     break 2
8590   fi
8591 done
8592   done
8593 IFS=$as_save_IFS
8594
8595 fi
8596 fi
8597 LIPO=$ac_cv_prog_LIPO
8598 if test -n "$LIPO"; then
8599   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
8600 $as_echo "$LIPO" >&6; }
8601 else
8602   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8603 $as_echo "no" >&6; }
8604 fi
8605
8606
8607 fi
8608 if test -z "$ac_cv_prog_LIPO"; then
8609   ac_ct_LIPO=$LIPO
8610   # Extract the first word of "lipo", so it can be a program name with args.
8611 set dummy lipo; ac_word=$2
8612 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8613 $as_echo_n "checking for $ac_word... " >&6; }
8614 if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
8615   $as_echo_n "(cached) " >&6
8616 else
8617   if test -n "$ac_ct_LIPO"; then
8618   ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
8619 else
8620 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8621 for as_dir in $PATH
8622 do
8623   IFS=$as_save_IFS
8624   test -z "$as_dir" && as_dir=.
8625     for ac_exec_ext in '' $ac_executable_extensions; do
8626   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8627     ac_cv_prog_ac_ct_LIPO="lipo"
8628     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8629     break 2
8630   fi
8631 done
8632   done
8633 IFS=$as_save_IFS
8634
8635 fi
8636 fi
8637 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
8638 if test -n "$ac_ct_LIPO"; then
8639   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
8640 $as_echo "$ac_ct_LIPO" >&6; }
8641 else
8642   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8643 $as_echo "no" >&6; }
8644 fi
8645
8646   if test "x$ac_ct_LIPO" = x; then
8647     LIPO=":"
8648   else
8649     case $cross_compiling:$ac_tool_warned in
8650 yes:)
8651 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8652 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8653 ac_tool_warned=yes ;;
8654 esac
8655     LIPO=$ac_ct_LIPO
8656   fi
8657 else
8658   LIPO="$ac_cv_prog_LIPO"
8659 fi
8660
8661     if test -n "$ac_tool_prefix"; then
8662   # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
8663 set dummy ${ac_tool_prefix}otool; ac_word=$2
8664 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8665 $as_echo_n "checking for $ac_word... " >&6; }
8666 if ${ac_cv_prog_OTOOL+:} false; then :
8667   $as_echo_n "(cached) " >&6
8668 else
8669   if test -n "$OTOOL"; then
8670   ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
8671 else
8672 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8673 for as_dir in $PATH
8674 do
8675   IFS=$as_save_IFS
8676   test -z "$as_dir" && as_dir=.
8677     for ac_exec_ext in '' $ac_executable_extensions; do
8678   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8679     ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
8680     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8681     break 2
8682   fi
8683 done
8684   done
8685 IFS=$as_save_IFS
8686
8687 fi
8688 fi
8689 OTOOL=$ac_cv_prog_OTOOL
8690 if test -n "$OTOOL"; then
8691   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
8692 $as_echo "$OTOOL" >&6; }
8693 else
8694   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8695 $as_echo "no" >&6; }
8696 fi
8697
8698
8699 fi
8700 if test -z "$ac_cv_prog_OTOOL"; then
8701   ac_ct_OTOOL=$OTOOL
8702   # Extract the first word of "otool", so it can be a program name with args.
8703 set dummy otool; ac_word=$2
8704 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8705 $as_echo_n "checking for $ac_word... " >&6; }
8706 if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
8707   $as_echo_n "(cached) " >&6
8708 else
8709   if test -n "$ac_ct_OTOOL"; then
8710   ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
8711 else
8712 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8713 for as_dir in $PATH
8714 do
8715   IFS=$as_save_IFS
8716   test -z "$as_dir" && as_dir=.
8717     for ac_exec_ext in '' $ac_executable_extensions; do
8718   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8719     ac_cv_prog_ac_ct_OTOOL="otool"
8720     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8721     break 2
8722   fi
8723 done
8724   done
8725 IFS=$as_save_IFS
8726
8727 fi
8728 fi
8729 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
8730 if test -n "$ac_ct_OTOOL"; then
8731   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
8732 $as_echo "$ac_ct_OTOOL" >&6; }
8733 else
8734   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8735 $as_echo "no" >&6; }
8736 fi
8737
8738   if test "x$ac_ct_OTOOL" = x; then
8739     OTOOL=":"
8740   else
8741     case $cross_compiling:$ac_tool_warned in
8742 yes:)
8743 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8744 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8745 ac_tool_warned=yes ;;
8746 esac
8747     OTOOL=$ac_ct_OTOOL
8748   fi
8749 else
8750   OTOOL="$ac_cv_prog_OTOOL"
8751 fi
8752
8753     if test -n "$ac_tool_prefix"; then
8754   # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
8755 set dummy ${ac_tool_prefix}otool64; ac_word=$2
8756 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8757 $as_echo_n "checking for $ac_word... " >&6; }
8758 if ${ac_cv_prog_OTOOL64+:} false; then :
8759   $as_echo_n "(cached) " >&6
8760 else
8761   if test -n "$OTOOL64"; then
8762   ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
8763 else
8764 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8765 for as_dir in $PATH
8766 do
8767   IFS=$as_save_IFS
8768   test -z "$as_dir" && as_dir=.
8769     for ac_exec_ext in '' $ac_executable_extensions; do
8770   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8771     ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
8772     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8773     break 2
8774   fi
8775 done
8776   done
8777 IFS=$as_save_IFS
8778
8779 fi
8780 fi
8781 OTOOL64=$ac_cv_prog_OTOOL64
8782 if test -n "$OTOOL64"; then
8783   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
8784 $as_echo "$OTOOL64" >&6; }
8785 else
8786   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8787 $as_echo "no" >&6; }
8788 fi
8789
8790
8791 fi
8792 if test -z "$ac_cv_prog_OTOOL64"; then
8793   ac_ct_OTOOL64=$OTOOL64
8794   # Extract the first word of "otool64", so it can be a program name with args.
8795 set dummy otool64; ac_word=$2
8796 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8797 $as_echo_n "checking for $ac_word... " >&6; }
8798 if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
8799   $as_echo_n "(cached) " >&6
8800 else
8801   if test -n "$ac_ct_OTOOL64"; then
8802   ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
8803 else
8804 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8805 for as_dir in $PATH
8806 do
8807   IFS=$as_save_IFS
8808   test -z "$as_dir" && as_dir=.
8809     for ac_exec_ext in '' $ac_executable_extensions; do
8810   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8811     ac_cv_prog_ac_ct_OTOOL64="otool64"
8812     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8813     break 2
8814   fi
8815 done
8816   done
8817 IFS=$as_save_IFS
8818
8819 fi
8820 fi
8821 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
8822 if test -n "$ac_ct_OTOOL64"; then
8823   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
8824 $as_echo "$ac_ct_OTOOL64" >&6; }
8825 else
8826   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8827 $as_echo "no" >&6; }
8828 fi
8829
8830   if test "x$ac_ct_OTOOL64" = x; then
8831     OTOOL64=":"
8832   else
8833     case $cross_compiling:$ac_tool_warned in
8834 yes:)
8835 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8836 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8837 ac_tool_warned=yes ;;
8838 esac
8839     OTOOL64=$ac_ct_OTOOL64
8840   fi
8841 else
8842   OTOOL64="$ac_cv_prog_OTOOL64"
8843 fi
8844
8845
8846
8847
8848
8849
8850
8851
8852
8853
8854
8855
8856
8857
8858
8859
8860
8861
8862
8863
8864
8865
8866
8867
8868
8869
8870
8871     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
8872 $as_echo_n "checking for -single_module linker flag... " >&6; }
8873 if ${lt_cv_apple_cc_single_mod+:} false; then :
8874   $as_echo_n "(cached) " >&6
8875 else
8876   lt_cv_apple_cc_single_mod=no
8877       if test -z "${LT_MULTI_MODULE}"; then
8878         # By default we will add the -single_module flag. You can override
8879         # by either setting the environment variable LT_MULTI_MODULE
8880         # non-empty at configure time, or by adding -multi_module to the
8881         # link flags.
8882         rm -rf libconftest.dylib*
8883         echo "int foo(void){return 1;}" > conftest.c
8884         echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8885 -dynamiclib -Wl,-single_module conftest.c" >&5
8886         $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8887           -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
8888         _lt_result=$?
8889         if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
8890           lt_cv_apple_cc_single_mod=yes
8891         else
8892           cat conftest.err >&5
8893         fi
8894         rm -rf libconftest.dylib*
8895         rm -f conftest.*
8896       fi
8897 fi
8898 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
8899 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
8900     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
8901 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
8902 if ${lt_cv_ld_exported_symbols_list+:} false; then :
8903   $as_echo_n "(cached) " >&6
8904 else
8905   lt_cv_ld_exported_symbols_list=no
8906       save_LDFLAGS=$LDFLAGS
8907       echo "_main" > conftest.sym
8908       LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
8909       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8910 /* end confdefs.h.  */
8911
8912 int
8913 main ()
8914 {
8915
8916   ;
8917   return 0;
8918 }
8919 _ACEOF
8920 if ac_fn_c_try_link "$LINENO"; then :
8921   lt_cv_ld_exported_symbols_list=yes
8922 else
8923   lt_cv_ld_exported_symbols_list=no
8924 fi
8925 rm -f core conftest.err conftest.$ac_objext \
8926     conftest$ac_exeext conftest.$ac_ext
8927         LDFLAGS="$save_LDFLAGS"
8928
8929 fi
8930 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
8931 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
8932     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
8933 $as_echo_n "checking for -force_load linker flag... " >&6; }
8934 if ${lt_cv_ld_force_load+:} false; then :
8935   $as_echo_n "(cached) " >&6
8936 else
8937   lt_cv_ld_force_load=no
8938       cat > conftest.c << _LT_EOF
8939 int forced_loaded() { return 2;}
8940 _LT_EOF
8941       echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
8942       $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
8943       echo "$AR cru libconftest.a conftest.o" >&5
8944       $AR cru libconftest.a conftest.o 2>&5
8945       echo "$RANLIB libconftest.a" >&5
8946       $RANLIB libconftest.a 2>&5
8947       cat > conftest.c << _LT_EOF
8948 int main() { return 0;}
8949 _LT_EOF
8950       echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
8951       $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
8952       _lt_result=$?
8953       if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then
8954         lt_cv_ld_force_load=yes
8955       else
8956         cat conftest.err >&5
8957       fi
8958         rm -f conftest.err libconftest.a conftest conftest.c
8959         rm -rf conftest.dSYM
8960
8961 fi
8962 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
8963 $as_echo "$lt_cv_ld_force_load" >&6; }
8964     case $host_os in
8965     rhapsody* | darwin1.[012])
8966       _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
8967     darwin1.*)
8968       _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
8969     darwin*) # darwin 5.x on
8970       # if running on 10.5 or later, the deployment target defaults
8971       # to the OS version, if on x86, and 10.4, the deployment
8972       # target defaults to 10.4. Don't you love it?
8973       case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
8974         10.0,*86*-darwin8*|10.0,*-darwin[91]*)
8975           _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
8976         10.[012]*)
8977           _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
8978         10.*)
8979           _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
8980       esac
8981     ;;
8982   esac
8983     if test "$lt_cv_apple_cc_single_mod" = "yes"; then
8984       _lt_dar_single_mod='$single_module'
8985     fi
8986     if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
8987       _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
8988     else
8989       _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
8990     fi
8991     if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
8992       _lt_dsymutil='~$DSYMUTIL $lib || :'
8993     else
8994       _lt_dsymutil=
8995     fi
8996     ;;
8997   esac
8998
8999 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
9000 $as_echo_n "checking for ANSI C header files... " >&6; }
9001 if ${ac_cv_header_stdc+:} false; then :
9002   $as_echo_n "(cached) " >&6
9003 else
9004   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9005 /* end confdefs.h.  */
9006 #include <stdlib.h>
9007 #include <stdarg.h>
9008 #include <string.h>
9009 #include <float.h>
9010
9011 int
9012 main ()
9013 {
9014
9015   ;
9016   return 0;
9017 }
9018 _ACEOF
9019 if ac_fn_c_try_compile "$LINENO"; then :
9020   ac_cv_header_stdc=yes
9021 else
9022   ac_cv_header_stdc=no
9023 fi
9024 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9025
9026 if test $ac_cv_header_stdc = yes; then
9027   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
9028   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9029 /* end confdefs.h.  */
9030 #include <string.h>
9031
9032 _ACEOF
9033 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9034   $EGREP "memchr" >/dev/null 2>&1; then :
9035
9036 else
9037   ac_cv_header_stdc=no
9038 fi
9039 rm -f conftest*
9040
9041 fi
9042
9043 if test $ac_cv_header_stdc = yes; then
9044   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
9045   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9046 /* end confdefs.h.  */
9047 #include <stdlib.h>
9048
9049 _ACEOF
9050 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9051   $EGREP "free" >/dev/null 2>&1; then :
9052
9053 else
9054   ac_cv_header_stdc=no
9055 fi
9056 rm -f conftest*
9057
9058 fi
9059
9060 if test $ac_cv_header_stdc = yes; then
9061   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
9062   if test "$cross_compiling" = yes; then :
9063   :
9064 else
9065   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9066 /* end confdefs.h.  */
9067 #include <ctype.h>
9068 #include <stdlib.h>
9069 #if ((' ' & 0x0FF) == 0x020)
9070 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
9071 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
9072 #else
9073 # define ISLOWER(c) \
9074                    (('a' <= (c) && (c) <= 'i') \
9075                      || ('j' <= (c) && (c) <= 'r') \
9076                      || ('s' <= (c) && (c) <= 'z'))
9077 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
9078 #endif
9079
9080 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
9081 int
9082 main ()
9083 {
9084   int i;
9085   for (i = 0; i < 256; i++)
9086     if (XOR (islower (i), ISLOWER (i))
9087         || toupper (i) != TOUPPER (i))
9088       return 2;
9089   return 0;
9090 }
9091 _ACEOF
9092 if ac_fn_c_try_run "$LINENO"; then :
9093
9094 else
9095   ac_cv_header_stdc=no
9096 fi
9097 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9098   conftest.$ac_objext conftest.beam conftest.$ac_ext
9099 fi
9100
9101 fi
9102 fi
9103 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
9104 $as_echo "$ac_cv_header_stdc" >&6; }
9105 if test $ac_cv_header_stdc = yes; then
9106
9107 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
9108
9109 fi
9110
9111 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
9112 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
9113                   inttypes.h stdint.h unistd.h
9114 do :
9115   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
9116 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
9117 "
9118 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
9119   cat >>confdefs.h <<_ACEOF
9120 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
9121 _ACEOF
9122
9123 fi
9124
9125 done
9126
9127
9128 for ac_header in dlfcn.h
9129 do :
9130   ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
9131 "
9132 if test "x$ac_cv_header_dlfcn_h" = xyes; then :
9133   cat >>confdefs.h <<_ACEOF
9134 #define HAVE_DLFCN_H 1
9135 _ACEOF
9136
9137 fi
9138
9139 done
9140
9141
9142
9143
9144 func_stripname_cnf ()
9145 {
9146   case ${2} in
9147   .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
9148   *)  func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
9149   esac
9150 } # func_stripname_cnf
9151
9152
9153
9154
9155
9156 # Set options
9157 # Check whether --enable-shared was given.
9158 if test "${enable_shared+set}" = set; then :
9159   enableval=$enable_shared; p=${PACKAGE-default}
9160     case $enableval in
9161     yes) enable_shared=yes ;;
9162     no) enable_shared=no ;;
9163     *)
9164       enable_shared=no
9165       # Look at the argument we got.  We use all the common list separators.
9166       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9167       for pkg in $enableval; do
9168         IFS="$lt_save_ifs"
9169         if test "X$pkg" = "X$p"; then
9170           enable_shared=yes
9171         fi
9172       done
9173       IFS="$lt_save_ifs"
9174       ;;
9175     esac
9176 else
9177   enable_shared=yes
9178 fi
9179
9180
9181
9182
9183
9184
9185
9186 # Check whether --enable-static was given.
9187 if test "${enable_static+set}" = set; then :
9188   enableval=$enable_static; p=${PACKAGE-default}
9189     case $enableval in
9190     yes) enable_static=yes ;;
9191     no) enable_static=no ;;
9192     *)
9193      enable_static=no
9194       # Look at the argument we got.  We use all the common list separators.
9195       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9196       for pkg in $enableval; do
9197         IFS="$lt_save_ifs"
9198         if test "X$pkg" = "X$p"; then
9199           enable_static=yes
9200         fi
9201       done
9202       IFS="$lt_save_ifs"
9203       ;;
9204     esac
9205 else
9206   enable_static=no
9207 fi
9208
9209
9210
9211
9212
9213
9214
9215
9216
9217
9218         enable_dlopen=no
9219
9220
9221   enable_win32_dll=no
9222
9223
9224
9225
9226
9227 # Check whether --with-pic was given.
9228 if test "${with_pic+set}" = set; then :
9229   withval=$with_pic; pic_mode="$withval"
9230 else
9231   pic_mode=default
9232 fi
9233
9234
9235 test -z "$pic_mode" && pic_mode=default
9236
9237
9238
9239
9240
9241
9242
9243   # Check whether --enable-fast-install was given.
9244 if test "${enable_fast_install+set}" = set; then :
9245   enableval=$enable_fast_install; p=${PACKAGE-default}
9246     case $enableval in
9247     yes) enable_fast_install=yes ;;
9248     no) enable_fast_install=no ;;
9249     *)
9250       enable_fast_install=no
9251       # Look at the argument we got.  We use all the common list separators.
9252       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9253       for pkg in $enableval; do
9254         IFS="$lt_save_ifs"
9255         if test "X$pkg" = "X$p"; then
9256           enable_fast_install=yes
9257         fi
9258       done
9259       IFS="$lt_save_ifs"
9260       ;;
9261     esac
9262 else
9263   enable_fast_install=yes
9264 fi
9265
9266
9267
9268
9269
9270
9271
9272
9273
9274
9275
9276 # This can be used to rebuild libtool when needed
9277 LIBTOOL_DEPS="$ltmain"
9278
9279 # Always use our own libtool.
9280 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
9281
9282
9283
9284
9285
9286
9287
9288
9289
9290
9291
9292
9293
9294
9295
9296
9297
9298
9299
9300
9301
9302
9303
9304
9305
9306
9307 test -z "$LN_S" && LN_S="ln -s"
9308
9309
9310
9311
9312
9313
9314
9315
9316
9317
9318
9319
9320
9321
9322 if test -n "${ZSH_VERSION+set}" ; then
9323    setopt NO_GLOB_SUBST
9324 fi
9325
9326 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
9327 $as_echo_n "checking for objdir... " >&6; }
9328 if ${lt_cv_objdir+:} false; then :
9329   $as_echo_n "(cached) " >&6
9330 else
9331   rm -f .libs 2>/dev/null
9332 mkdir .libs 2>/dev/null
9333 if test -d .libs; then
9334   lt_cv_objdir=.libs
9335 else
9336   # MS-DOS does not allow filenames that begin with a dot.
9337   lt_cv_objdir=_libs
9338 fi
9339 rmdir .libs 2>/dev/null
9340 fi
9341 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
9342 $as_echo "$lt_cv_objdir" >&6; }
9343 objdir=$lt_cv_objdir
9344
9345
9346
9347
9348
9349 cat >>confdefs.h <<_ACEOF
9350 #define LT_OBJDIR "$lt_cv_objdir/"
9351 _ACEOF
9352
9353
9354
9355
9356 case $host_os in
9357 aix3*)
9358   # AIX sometimes has problems with the GCC collect2 program.  For some
9359   # reason, if we set the COLLECT_NAMES environment variable, the problems
9360   # vanish in a puff of smoke.
9361   if test "X${COLLECT_NAMES+set}" != Xset; then
9362     COLLECT_NAMES=
9363     export COLLECT_NAMES
9364   fi
9365   ;;
9366 esac
9367
9368 # Global variables:
9369 ofile=libtool
9370 can_build_shared=yes
9371
9372 # All known linkers require a `.a' archive for static linking (except MSVC,
9373 # which needs '.lib').
9374 libext=a
9375
9376 with_gnu_ld="$lt_cv_prog_gnu_ld"
9377
9378 old_CC="$CC"
9379 old_CFLAGS="$CFLAGS"
9380
9381 # Set sane defaults for various variables
9382 test -z "$CC" && CC=cc
9383 test -z "$LTCC" && LTCC=$CC
9384 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
9385 test -z "$LD" && LD=ld
9386 test -z "$ac_objext" && ac_objext=o
9387
9388 for cc_temp in $compiler""; do
9389   case $cc_temp in
9390     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
9391     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
9392     \-*) ;;
9393     *) break;;
9394   esac
9395 done
9396 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
9397
9398
9399 # Only perform the check for file, if the check method requires it
9400 test -z "$MAGIC_CMD" && MAGIC_CMD=file
9401 case $deplibs_check_method in
9402 file_magic*)
9403   if test "$file_magic_cmd" = '$MAGIC_CMD'; then
9404     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
9405 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
9406 if ${lt_cv_path_MAGIC_CMD+:} false; then :
9407   $as_echo_n "(cached) " >&6
9408 else
9409   case $MAGIC_CMD in
9410 [\\/*] |  ?:[\\/]*)
9411   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
9412   ;;
9413 *)
9414   lt_save_MAGIC_CMD="$MAGIC_CMD"
9415   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
9416   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
9417   for ac_dir in $ac_dummy; do
9418     IFS="$lt_save_ifs"
9419     test -z "$ac_dir" && ac_dir=.
9420     if test -f $ac_dir/${ac_tool_prefix}file; then
9421       lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
9422       if test -n "$file_magic_test_file"; then
9423         case $deplibs_check_method in
9424         "file_magic "*)
9425           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
9426           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9427           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
9428             $EGREP "$file_magic_regex" > /dev/null; then
9429             :
9430           else
9431             cat <<_LT_EOF 1>&2
9432
9433 *** Warning: the command libtool uses to detect shared libraries,
9434 *** $file_magic_cmd, produces output that libtool cannot recognize.
9435 *** The result is that libtool may fail to recognize shared libraries
9436 *** as such.  This will affect the creation of libtool libraries that
9437 *** depend on shared libraries, but programs linked with such libtool
9438 *** libraries will work regardless of this problem.  Nevertheless, you
9439 *** may want to report the problem to your system manager and/or to
9440 *** bug-libtool@gnu.org
9441
9442 _LT_EOF
9443           fi ;;
9444         esac
9445       fi
9446       break
9447     fi
9448   done
9449   IFS="$lt_save_ifs"
9450   MAGIC_CMD="$lt_save_MAGIC_CMD"
9451   ;;
9452 esac
9453 fi
9454
9455 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9456 if test -n "$MAGIC_CMD"; then
9457   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
9458 $as_echo "$MAGIC_CMD" >&6; }
9459 else
9460   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9461 $as_echo "no" >&6; }
9462 fi
9463
9464
9465
9466
9467
9468 if test -z "$lt_cv_path_MAGIC_CMD"; then
9469   if test -n "$ac_tool_prefix"; then
9470     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
9471 $as_echo_n "checking for file... " >&6; }
9472 if ${lt_cv_path_MAGIC_CMD+:} false; then :
9473   $as_echo_n "(cached) " >&6
9474 else
9475   case $MAGIC_CMD in
9476 [\\/*] |  ?:[\\/]*)
9477   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
9478   ;;
9479 *)
9480   lt_save_MAGIC_CMD="$MAGIC_CMD"
9481   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
9482   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
9483   for ac_dir in $ac_dummy; do
9484     IFS="$lt_save_ifs"
9485     test -z "$ac_dir" && ac_dir=.
9486     if test -f $ac_dir/file; then
9487       lt_cv_path_MAGIC_CMD="$ac_dir/file"
9488       if test -n "$file_magic_test_file"; then
9489         case $deplibs_check_method in
9490         "file_magic "*)
9491           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
9492           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9493           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
9494             $EGREP "$file_magic_regex" > /dev/null; then
9495             :
9496           else
9497             cat <<_LT_EOF 1>&2
9498
9499 *** Warning: the command libtool uses to detect shared libraries,
9500 *** $file_magic_cmd, produces output that libtool cannot recognize.
9501 *** The result is that libtool may fail to recognize shared libraries
9502 *** as such.  This will affect the creation of libtool libraries that
9503 *** depend on shared libraries, but programs linked with such libtool
9504 *** libraries will work regardless of this problem.  Nevertheless, you
9505 *** may want to report the problem to your system manager and/or to
9506 *** bug-libtool@gnu.org
9507
9508 _LT_EOF
9509           fi ;;
9510         esac
9511       fi
9512       break
9513     fi
9514   done
9515   IFS="$lt_save_ifs"
9516   MAGIC_CMD="$lt_save_MAGIC_CMD"
9517   ;;
9518 esac
9519 fi
9520
9521 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9522 if test -n "$MAGIC_CMD"; then
9523   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
9524 $as_echo "$MAGIC_CMD" >&6; }
9525 else
9526   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9527 $as_echo "no" >&6; }
9528 fi
9529
9530
9531   else
9532     MAGIC_CMD=:
9533   fi
9534 fi
9535
9536   fi
9537   ;;
9538 esac
9539
9540 # Use C for the default configuration in the libtool script
9541
9542 lt_save_CC="$CC"
9543 ac_ext=c
9544 ac_cpp='$CPP $CPPFLAGS'
9545 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9546 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9547 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9548
9549
9550 # Source file extension for C test sources.
9551 ac_ext=c
9552
9553 # Object file extension for compiled C test sources.
9554 objext=o
9555 objext=$objext
9556
9557 # Code to be used in simple compile tests
9558 lt_simple_compile_test_code="int some_variable = 0;"
9559
9560 # Code to be used in simple link tests
9561 lt_simple_link_test_code='int main(){return(0);}'
9562
9563
9564
9565
9566
9567
9568
9569 # If no C compiler was specified, use CC.
9570 LTCC=${LTCC-"$CC"}
9571
9572 # If no C compiler flags were specified, use CFLAGS.
9573 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
9574
9575 # Allow CC to be a program name with arguments.
9576 compiler=$CC
9577
9578 # Save the default compiler, since it gets overwritten when the other
9579 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
9580 compiler_DEFAULT=$CC
9581
9582 # save warnings/boilerplate of simple test code
9583 ac_outfile=conftest.$ac_objext
9584 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
9585 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9586 _lt_compiler_boilerplate=`cat conftest.err`
9587 $RM conftest*
9588
9589 ac_outfile=conftest.$ac_objext
9590 echo "$lt_simple_link_test_code" >conftest.$ac_ext
9591 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9592 _lt_linker_boilerplate=`cat conftest.err`
9593 $RM -r conftest*
9594
9595
9596 ## CAVEAT EMPTOR:
9597 ## There is no encapsulation within the following macros, do not change
9598 ## the running order or otherwise move them around unless you know exactly
9599 ## what you are doing...
9600 if test -n "$compiler"; then
9601
9602 lt_prog_compiler_no_builtin_flag=
9603
9604 if test "$GCC" = yes; then
9605   case $cc_basename in
9606   nvcc*)
9607     lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
9608   *)
9609     lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
9610   esac
9611
9612   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
9613 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
9614 if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
9615   $as_echo_n "(cached) " >&6
9616 else
9617   lt_cv_prog_compiler_rtti_exceptions=no
9618    ac_outfile=conftest.$ac_objext
9619    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9620    lt_compiler_flag="-fno-rtti -fno-exceptions"
9621    # Insert the option either (1) after the last *FLAGS variable, or
9622    # (2) before a word containing "conftest.", or (3) at the end.
9623    # Note that $ac_compile itself does not contain backslashes and begins
9624    # with a dollar sign (not a hyphen), so the echo should work correctly.
9625    # The option is referenced via a variable to avoid confusing sed.
9626    lt_compile=`echo "$ac_compile" | $SED \
9627    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9628    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9629    -e 's:$: $lt_compiler_flag:'`
9630    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9631    (eval "$lt_compile" 2>conftest.err)
9632    ac_status=$?
9633    cat conftest.err >&5
9634    echo "$as_me:$LINENO: \$? = $ac_status" >&5
9635    if (exit $ac_status) && test -s "$ac_outfile"; then
9636      # The compiler can only warn and ignore the option if not recognized
9637      # So say no if there are warnings other than the usual output.
9638      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
9639      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9640      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9641        lt_cv_prog_compiler_rtti_exceptions=yes
9642      fi
9643    fi
9644    $RM conftest*
9645
9646 fi
9647 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
9648 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
9649
9650 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
9651     lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
9652 else
9653     :
9654 fi
9655
9656 fi
9657
9658
9659
9660
9661
9662
9663   lt_prog_compiler_wl=
9664 lt_prog_compiler_pic=
9665 lt_prog_compiler_static=
9666
9667
9668   if test "$GCC" = yes; then
9669     lt_prog_compiler_wl='-Wl,'
9670     lt_prog_compiler_static='-static'
9671
9672     case $host_os in
9673       aix*)
9674       # All AIX code is PIC.
9675       if test "$host_cpu" = ia64; then
9676         # AIX 5 now supports IA64 processor
9677         lt_prog_compiler_static='-Bstatic'
9678       fi
9679       ;;
9680
9681     amigaos*)
9682       case $host_cpu in
9683       powerpc)
9684             # see comment about AmigaOS4 .so support
9685             lt_prog_compiler_pic='-fPIC'
9686         ;;
9687       m68k)
9688             # FIXME: we need at least 68020 code to build shared libraries, but
9689             # adding the `-m68020' flag to GCC prevents building anything better,
9690             # like `-m68040'.
9691             lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
9692         ;;
9693       esac
9694       ;;
9695
9696     beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
9697       # PIC is the default for these OSes.
9698       ;;
9699
9700     mingw* | cygwin* | pw32* | os2* | cegcc*)
9701       # This hack is so that the source file can tell whether it is being
9702       # built for inclusion in a dll (and should export symbols for example).
9703       # Although the cygwin gcc ignores -fPIC, still need this for old-style
9704       # (--disable-auto-import) libraries
9705       lt_prog_compiler_pic='-DDLL_EXPORT'
9706       ;;
9707
9708     darwin* | rhapsody*)
9709       # PIC is the default on this platform
9710       # Common symbols not allowed in MH_DYLIB files
9711       lt_prog_compiler_pic='-fno-common'
9712       ;;
9713
9714     haiku*)
9715       # PIC is the default for Haiku.
9716       # The "-static" flag exists, but is broken.
9717       lt_prog_compiler_static=
9718       ;;
9719
9720     hpux*)
9721       # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
9722       # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
9723       # sets the default TLS model and affects inlining.
9724       case $host_cpu in
9725       hppa*64*)
9726         # +Z the default
9727         ;;
9728       *)
9729         lt_prog_compiler_pic='-fPIC'
9730         ;;
9731       esac
9732       ;;
9733
9734     interix[3-9]*)
9735       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
9736       # Instead, we relocate shared libraries at runtime.
9737       ;;
9738
9739     msdosdjgpp*)
9740       # Just because we use GCC doesn't mean we suddenly get shared libraries
9741       # on systems that don't support them.
9742       lt_prog_compiler_can_build_shared=no
9743       enable_shared=no
9744       ;;
9745
9746     *nto* | *qnx*)
9747       # QNX uses GNU C++, but need to define -shared option too, otherwise
9748       # it will coredump.
9749       lt_prog_compiler_pic='-fPIC -shared'
9750       ;;
9751
9752     sysv4*MP*)
9753       if test -d /usr/nec; then
9754         lt_prog_compiler_pic=-Kconform_pic
9755       fi
9756       ;;
9757
9758     *)
9759       lt_prog_compiler_pic='-fPIC'
9760       ;;
9761     esac
9762
9763     case $cc_basename in
9764     nvcc*) # Cuda Compiler Driver 2.2
9765       lt_prog_compiler_wl='-Xlinker '
9766       lt_prog_compiler_pic='-Xcompiler -fPIC'
9767       ;;
9768     esac
9769   else
9770     # PORTME Check for flag to pass linker flags through the system compiler.
9771     case $host_os in
9772     aix*)
9773       lt_prog_compiler_wl='-Wl,'
9774       if test "$host_cpu" = ia64; then
9775         # AIX 5 now supports IA64 processor
9776         lt_prog_compiler_static='-Bstatic'
9777       else
9778         lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
9779       fi
9780       ;;
9781
9782     mingw* | cygwin* | pw32* | os2* | cegcc*)
9783       # This hack is so that the source file can tell whether it is being
9784       # built for inclusion in a dll (and should export symbols for example).
9785       lt_prog_compiler_pic='-DDLL_EXPORT'
9786       ;;
9787
9788     hpux9* | hpux10* | hpux11*)
9789       lt_prog_compiler_wl='-Wl,'
9790       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
9791       # not for PA HP-UX.
9792       case $host_cpu in
9793       hppa*64*|ia64*)
9794         # +Z the default
9795         ;;
9796       *)
9797         lt_prog_compiler_pic='+Z'
9798         ;;
9799       esac
9800       # Is there a better lt_prog_compiler_static that works with the bundled CC?
9801       lt_prog_compiler_static='${wl}-a ${wl}archive'
9802       ;;
9803
9804     irix5* | irix6* | nonstopux*)
9805       lt_prog_compiler_wl='-Wl,'
9806       # PIC (with -KPIC) is the default.
9807       lt_prog_compiler_static='-non_shared'
9808       ;;
9809
9810     linux* | k*bsd*-gnu | kopensolaris*-gnu)
9811       case $cc_basename in
9812       # old Intel for x86_64 which still supported -KPIC.
9813       ecc*)
9814         lt_prog_compiler_wl='-Wl,'
9815         lt_prog_compiler_pic='-KPIC'
9816         lt_prog_compiler_static='-static'
9817         ;;
9818       # icc used to be incompatible with GCC.
9819       # ICC 10 doesn't accept -KPIC any more.
9820       icc* | ifort*)
9821         lt_prog_compiler_wl='-Wl,'
9822         lt_prog_compiler_pic='-fPIC'
9823         lt_prog_compiler_static='-static'
9824         ;;
9825       # Lahey Fortran 8.1.
9826       lf95*)
9827         lt_prog_compiler_wl='-Wl,'
9828         lt_prog_compiler_pic='--shared'
9829         lt_prog_compiler_static='--static'
9830         ;;
9831       nagfor*)
9832         # NAG Fortran compiler
9833         lt_prog_compiler_wl='-Wl,-Wl,,'
9834         lt_prog_compiler_pic='-PIC'
9835         lt_prog_compiler_static='-Bstatic'
9836         ;;
9837       pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
9838         # Portland Group compilers (*not* the Pentium gcc compiler,
9839         # which looks to be a dead project)
9840         lt_prog_compiler_wl='-Wl,'
9841         lt_prog_compiler_pic='-fpic'
9842         lt_prog_compiler_static='-Bstatic'
9843         ;;
9844       ccc*)
9845         lt_prog_compiler_wl='-Wl,'
9846         # All Alpha code is PIC.
9847         lt_prog_compiler_static='-non_shared'
9848         ;;
9849       xl* | bgxl* | bgf* | mpixl*)
9850         # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
9851         lt_prog_compiler_wl='-Wl,'
9852         lt_prog_compiler_pic='-qpic'
9853         lt_prog_compiler_static='-qstaticlink'
9854         ;;
9855       *)
9856         case `$CC -V 2>&1 | sed 5q` in
9857         *Sun\ F* | *Sun*Fortran*)
9858           # Sun Fortran 8.3 passes all unrecognized flags to the linker
9859           lt_prog_compiler_pic='-KPIC'
9860           lt_prog_compiler_static='-Bstatic'
9861           lt_prog_compiler_wl=''
9862           ;;
9863         *Sun\ C*)
9864           # Sun C 5.9
9865           lt_prog_compiler_pic='-KPIC'
9866           lt_prog_compiler_static='-Bstatic'
9867           lt_prog_compiler_wl='-Wl,'
9868           ;;
9869         esac
9870         ;;
9871       esac
9872       ;;
9873
9874     newsos6)
9875       lt_prog_compiler_pic='-KPIC'
9876       lt_prog_compiler_static='-Bstatic'
9877       ;;
9878
9879     *nto* | *qnx*)
9880       # QNX uses GNU C++, but need to define -shared option too, otherwise
9881       # it will coredump.
9882       lt_prog_compiler_pic='-fPIC -shared'
9883       ;;
9884
9885     osf3* | osf4* | osf5*)
9886       lt_prog_compiler_wl='-Wl,'
9887       # All OSF/1 code is PIC.
9888       lt_prog_compiler_static='-non_shared'
9889       ;;
9890
9891     rdos*)
9892       lt_prog_compiler_static='-non_shared'
9893       ;;
9894
9895     solaris*)
9896       lt_prog_compiler_pic='-KPIC'
9897       lt_prog_compiler_static='-Bstatic'
9898       case $cc_basename in
9899       f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
9900         lt_prog_compiler_wl='-Qoption ld ';;
9901       *)
9902         lt_prog_compiler_wl='-Wl,';;
9903       esac
9904       ;;
9905
9906     sunos4*)
9907       lt_prog_compiler_wl='-Qoption ld '
9908       lt_prog_compiler_pic='-PIC'
9909       lt_prog_compiler_static='-Bstatic'
9910       ;;
9911
9912     sysv4 | sysv4.2uw2* | sysv4.3*)
9913       lt_prog_compiler_wl='-Wl,'
9914       lt_prog_compiler_pic='-KPIC'
9915       lt_prog_compiler_static='-Bstatic'
9916       ;;
9917
9918     sysv4*MP*)
9919       if test -d /usr/nec ;then
9920         lt_prog_compiler_pic='-Kconform_pic'
9921         lt_prog_compiler_static='-Bstatic'
9922       fi
9923       ;;
9924
9925     sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
9926       lt_prog_compiler_wl='-Wl,'
9927       lt_prog_compiler_pic='-KPIC'
9928       lt_prog_compiler_static='-Bstatic'
9929       ;;
9930
9931     unicos*)
9932       lt_prog_compiler_wl='-Wl,'
9933       lt_prog_compiler_can_build_shared=no
9934       ;;
9935
9936     uts4*)
9937       lt_prog_compiler_pic='-pic'
9938       lt_prog_compiler_static='-Bstatic'
9939       ;;
9940
9941     *)
9942       lt_prog_compiler_can_build_shared=no
9943       ;;
9944     esac
9945   fi
9946
9947 case $host_os in
9948   # For platforms which do not support PIC, -DPIC is meaningless:
9949   *djgpp*)
9950     lt_prog_compiler_pic=
9951     ;;
9952   *)
9953     lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
9954     ;;
9955 esac
9956
9957 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
9958 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
9959 if ${lt_cv_prog_compiler_pic+:} false; then :
9960   $as_echo_n "(cached) " >&6
9961 else
9962   lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
9963 fi
9964 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
9965 $as_echo "$lt_cv_prog_compiler_pic" >&6; }
9966 lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
9967
9968 #
9969 # Check to make sure the PIC flag actually works.
9970 #
9971 if test -n "$lt_prog_compiler_pic"; then
9972   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
9973 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
9974 if ${lt_cv_prog_compiler_pic_works+:} false; then :
9975   $as_echo_n "(cached) " >&6
9976 else
9977   lt_cv_prog_compiler_pic_works=no
9978    ac_outfile=conftest.$ac_objext
9979    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9980    lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
9981    # Insert the option either (1) after the last *FLAGS variable, or
9982    # (2) before a word containing "conftest.", or (3) at the end.
9983    # Note that $ac_compile itself does not contain backslashes and begins
9984    # with a dollar sign (not a hyphen), so the echo should work correctly.
9985    # The option is referenced via a variable to avoid confusing sed.
9986    lt_compile=`echo "$ac_compile" | $SED \
9987    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9988    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9989    -e 's:$: $lt_compiler_flag:'`
9990    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9991    (eval "$lt_compile" 2>conftest.err)
9992    ac_status=$?
9993    cat conftest.err >&5
9994    echo "$as_me:$LINENO: \$? = $ac_status" >&5
9995    if (exit $ac_status) && test -s "$ac_outfile"; then
9996      # The compiler can only warn and ignore the option if not recognized
9997      # So say no if there are warnings other than the usual output.
9998      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
9999      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10000      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
10001        lt_cv_prog_compiler_pic_works=yes
10002      fi
10003    fi
10004    $RM conftest*
10005
10006 fi
10007 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
10008 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
10009
10010 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
10011     case $lt_prog_compiler_pic in
10012      "" | " "*) ;;
10013      *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
10014      esac
10015 else
10016     lt_prog_compiler_pic=
10017      lt_prog_compiler_can_build_shared=no
10018 fi
10019
10020 fi
10021
10022
10023
10024
10025
10026
10027
10028
10029
10030
10031
10032 #
10033 # Check to make sure the static flag actually works.
10034 #
10035 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
10036 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
10037 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
10038 if ${lt_cv_prog_compiler_static_works+:} false; then :
10039   $as_echo_n "(cached) " >&6
10040 else
10041   lt_cv_prog_compiler_static_works=no
10042    save_LDFLAGS="$LDFLAGS"
10043    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
10044    echo "$lt_simple_link_test_code" > conftest.$ac_ext
10045    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
10046      # The linker can only warn and ignore the option if not recognized
10047      # So say no if there are warnings
10048      if test -s conftest.err; then
10049        # Append any errors to the config.log.
10050        cat conftest.err 1>&5
10051        $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
10052        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10053        if diff conftest.exp conftest.er2 >/dev/null; then
10054          lt_cv_prog_compiler_static_works=yes
10055        fi
10056      else
10057        lt_cv_prog_compiler_static_works=yes
10058      fi
10059    fi
10060    $RM -r conftest*
10061    LDFLAGS="$save_LDFLAGS"
10062
10063 fi
10064 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
10065 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
10066
10067 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
10068     :
10069 else
10070     lt_prog_compiler_static=
10071 fi
10072
10073
10074
10075
10076
10077
10078
10079   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
10080 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
10081 if ${lt_cv_prog_compiler_c_o+:} false; then :
10082   $as_echo_n "(cached) " >&6
10083 else
10084   lt_cv_prog_compiler_c_o=no
10085    $RM -r conftest 2>/dev/null
10086    mkdir conftest
10087    cd conftest
10088    mkdir out
10089    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10090
10091    lt_compiler_flag="-o out/conftest2.$ac_objext"
10092    # Insert the option either (1) after the last *FLAGS variable, or
10093    # (2) before a word containing "conftest.", or (3) at the end.
10094    # Note that $ac_compile itself does not contain backslashes and begins
10095    # with a dollar sign (not a hyphen), so the echo should work correctly.
10096    lt_compile=`echo "$ac_compile" | $SED \
10097    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10098    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10099    -e 's:$: $lt_compiler_flag:'`
10100    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
10101    (eval "$lt_compile" 2>out/conftest.err)
10102    ac_status=$?
10103    cat out/conftest.err >&5
10104    echo "$as_me:$LINENO: \$? = $ac_status" >&5
10105    if (exit $ac_status) && test -s out/conftest2.$ac_objext
10106    then
10107      # The compiler can only warn and ignore the option if not recognized
10108      # So say no if there are warnings
10109      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
10110      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
10111      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
10112        lt_cv_prog_compiler_c_o=yes
10113      fi
10114    fi
10115    chmod u+w . 2>&5
10116    $RM conftest*
10117    # SGI C++ compiler will create directory out/ii_files/ for
10118    # template instantiation
10119    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
10120    $RM out/* && rmdir out
10121    cd ..
10122    $RM -r conftest
10123    $RM conftest*
10124
10125 fi
10126 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
10127 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
10128
10129
10130
10131
10132
10133
10134   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
10135 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
10136 if ${lt_cv_prog_compiler_c_o+:} false; then :
10137   $as_echo_n "(cached) " >&6
10138 else
10139   lt_cv_prog_compiler_c_o=no
10140    $RM -r conftest 2>/dev/null
10141    mkdir conftest
10142    cd conftest
10143    mkdir out
10144    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10145
10146    lt_compiler_flag="-o out/conftest2.$ac_objext"
10147    # Insert the option either (1) after the last *FLAGS variable, or
10148    # (2) before a word containing "conftest.", or (3) at the end.
10149    # Note that $ac_compile itself does not contain backslashes and begins
10150    # with a dollar sign (not a hyphen), so the echo should work correctly.
10151    lt_compile=`echo "$ac_compile" | $SED \
10152    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10153    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10154    -e 's:$: $lt_compiler_flag:'`
10155    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
10156    (eval "$lt_compile" 2>out/conftest.err)
10157    ac_status=$?
10158    cat out/conftest.err >&5
10159    echo "$as_me:$LINENO: \$? = $ac_status" >&5
10160    if (exit $ac_status) && test -s out/conftest2.$ac_objext
10161    then
10162      # The compiler can only warn and ignore the option if not recognized
10163      # So say no if there are warnings
10164      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
10165      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
10166      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
10167        lt_cv_prog_compiler_c_o=yes
10168      fi
10169    fi
10170    chmod u+w . 2>&5
10171    $RM conftest*
10172    # SGI C++ compiler will create directory out/ii_files/ for
10173    # template instantiation
10174    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
10175    $RM out/* && rmdir out
10176    cd ..
10177    $RM -r conftest
10178    $RM conftest*
10179
10180 fi
10181 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
10182 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
10183
10184
10185
10186
10187 hard_links="nottested"
10188 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
10189   # do not overwrite the value of need_locks provided by the user
10190   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
10191 $as_echo_n "checking if we can lock with hard links... " >&6; }
10192   hard_links=yes
10193   $RM conftest*
10194   ln conftest.a conftest.b 2>/dev/null && hard_links=no
10195   touch conftest.a
10196   ln conftest.a conftest.b 2>&5 || hard_links=no
10197   ln conftest.a conftest.b 2>/dev/null && hard_links=no
10198   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
10199 $as_echo "$hard_links" >&6; }
10200   if test "$hard_links" = no; then
10201     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
10202 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
10203     need_locks=warn
10204   fi
10205 else
10206   need_locks=no
10207 fi
10208
10209
10210
10211
10212
10213
10214   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
10215 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
10216
10217   runpath_var=
10218   allow_undefined_flag=
10219   always_export_symbols=no
10220   archive_cmds=
10221   archive_expsym_cmds=
10222   compiler_needs_object=no
10223   enable_shared_with_static_runtimes=no
10224   export_dynamic_flag_spec=
10225   export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
10226   hardcode_automatic=no
10227   hardcode_direct=no
10228   hardcode_direct_absolute=no
10229   hardcode_libdir_flag_spec=
10230   hardcode_libdir_flag_spec_ld=
10231   hardcode_libdir_separator=
10232   hardcode_minus_L=no
10233   hardcode_shlibpath_var=unsupported
10234   inherit_rpath=no
10235   link_all_deplibs=unknown
10236   module_cmds=
10237   module_expsym_cmds=
10238   old_archive_from_new_cmds=
10239   old_archive_from_expsyms_cmds=
10240   thread_safe_flag_spec=
10241   whole_archive_flag_spec=
10242   # include_expsyms should be a list of space-separated symbols to be *always*
10243   # included in the symbol list
10244   include_expsyms=
10245   # exclude_expsyms can be an extended regexp of symbols to exclude
10246   # it will be wrapped by ` (' and `)$', so one must not match beginning or
10247   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
10248   # as well as any symbol that contains `d'.
10249   exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
10250   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
10251   # platforms (ab)use it in PIC code, but their linkers get confused if
10252   # the symbol is explicitly referenced.  Since portable code cannot
10253   # rely on this symbol name, it's probably fine to never include it in
10254   # preloaded symbol tables.
10255   # Exclude shared library initialization/finalization symbols.
10256   extract_expsyms_cmds=
10257
10258   case $host_os in
10259   cygwin* | mingw* | pw32* | cegcc*)
10260     # FIXME: the MSVC++ port hasn't been tested in a loooong time
10261     # When not using gcc, we currently assume that we are using
10262     # Microsoft Visual C++.
10263     if test "$GCC" != yes; then
10264       with_gnu_ld=no
10265     fi
10266     ;;
10267   interix*)
10268     # we just hope/assume this is gcc and not c89 (= MSVC++)
10269     with_gnu_ld=yes
10270     ;;
10271   openbsd*)
10272     with_gnu_ld=no
10273     ;;
10274   esac
10275
10276   ld_shlibs=yes
10277
10278   # On some targets, GNU ld is compatible enough with the native linker
10279   # that we're better off using the native interface for both.
10280   lt_use_gnu_ld_interface=no
10281   if test "$with_gnu_ld" = yes; then
10282     case $host_os in
10283       aix*)
10284         # The AIX port of GNU ld has always aspired to compatibility
10285         # with the native linker.  However, as the warning in the GNU ld
10286         # block says, versions before 2.19.5* couldn't really create working
10287         # shared libraries, regardless of the interface used.
10288         case `$LD -v 2>&1` in
10289           *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
10290           *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
10291           *\ \(GNU\ Binutils\)\ [3-9]*) ;;
10292           *)
10293             lt_use_gnu_ld_interface=yes
10294             ;;
10295         esac
10296         ;;
10297       *)
10298         lt_use_gnu_ld_interface=yes
10299         ;;
10300     esac
10301   fi
10302
10303   if test "$lt_use_gnu_ld_interface" = yes; then
10304     # If archive_cmds runs LD, not CC, wlarc should be empty
10305     wlarc='${wl}'
10306
10307     # Set some defaults for GNU ld with shared library support. These
10308     # are reset later if shared libraries are not supported. Putting them
10309     # here allows them to be overridden if necessary.
10310     runpath_var=LD_RUN_PATH
10311     hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10312     export_dynamic_flag_spec='${wl}--export-dynamic'
10313     # ancient GNU ld didn't support --whole-archive et. al.
10314     if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
10315       whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
10316     else
10317       whole_archive_flag_spec=
10318     fi
10319     supports_anon_versioning=no
10320     case `$LD -v 2>&1` in
10321       *GNU\ gold*) supports_anon_versioning=yes ;;
10322       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
10323       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
10324       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
10325       *\ 2.11.*) ;; # other 2.11 versions
10326       *) supports_anon_versioning=yes ;;
10327     esac
10328
10329     # See if GNU ld supports shared libraries.
10330     case $host_os in
10331     aix[3-9]*)
10332       # On AIX/PPC, the GNU linker is very broken
10333       if test "$host_cpu" != ia64; then
10334         ld_shlibs=no
10335         cat <<_LT_EOF 1>&2
10336
10337 *** Warning: the GNU linker, at least up to release 2.19, is reported
10338 *** to be unable to reliably create shared libraries on AIX.
10339 *** Therefore, libtool is disabling shared libraries support.  If you
10340 *** really care for shared libraries, you may want to install binutils
10341 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
10342 *** You will then need to restart the configuration process.
10343
10344 _LT_EOF
10345       fi
10346       ;;
10347
10348     amigaos*)
10349       case $host_cpu in
10350       powerpc)
10351             # see comment about AmigaOS4 .so support
10352             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10353             archive_expsym_cmds=''
10354         ;;
10355       m68k)
10356             archive_cmds='$RM $output_objdir/a2ixlibrary.data~$ECHO "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$ECHO "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$ECHO "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$ECHO "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
10357             hardcode_libdir_flag_spec='-L$libdir'
10358             hardcode_minus_L=yes
10359         ;;
10360       esac
10361       ;;
10362
10363     beos*)
10364       if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10365         allow_undefined_flag=unsupported
10366         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
10367         # support --undefined.  This deserves some investigation.  FIXME
10368         archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10369       else
10370         ld_shlibs=no
10371       fi
10372       ;;
10373
10374     cygwin* | mingw* | pw32* | cegcc*)
10375       # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
10376       # as there is no search path for DLLs.
10377       hardcode_libdir_flag_spec='-L$libdir'
10378       export_dynamic_flag_spec='${wl}--export-all-symbols'
10379       allow_undefined_flag=unsupported
10380       always_export_symbols=no
10381       enable_shared_with_static_runtimes=yes
10382       export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/;s/^.*[ ]__nm__\([^ ]*\)[ ][^ ]*/\1 DATA/;/^I[ ]/d;/^[AITW][ ]/s/.* //'\'' | sort | uniq > $export_symbols'
10383       exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
10384
10385       if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
10386         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
10387         # If the export-symbols file already is a .def file (1st line
10388         # is EXPORTS), use it as is; otherwise, prepend...
10389         archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
10390           cp $export_symbols $output_objdir/$soname.def;
10391         else
10392           echo EXPORTS > $output_objdir/$soname.def;
10393           cat $export_symbols >> $output_objdir/$soname.def;
10394         fi~
10395         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
10396       else
10397         ld_shlibs=no
10398       fi
10399       ;;
10400
10401     haiku*)
10402       archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10403       link_all_deplibs=yes
10404       ;;
10405
10406     interix[3-9]*)
10407       hardcode_direct=no
10408       hardcode_shlibpath_var=no
10409       hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10410       export_dynamic_flag_spec='${wl}-E'
10411       # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
10412       # Instead, shared libraries are loaded at an image base (0x10000000 by
10413       # default) and relocated if they conflict, which is a slow very memory
10414       # consuming and fragmenting process.  To avoid this, we pick a random,
10415       # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
10416       # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
10417       archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
10418       archive_expsym_cmds='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
10419       ;;
10420
10421     gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
10422       tmp_diet=no
10423       if test "$host_os" = linux-dietlibc; then
10424         case $cc_basename in
10425           diet\ *) tmp_diet=yes;;       # linux-dietlibc with static linking (!diet-dyn)
10426         esac
10427       fi
10428       if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
10429          && test "$tmp_diet" = no
10430       then
10431         tmp_addflag=' $pic_flag'
10432         tmp_sharedflag='-shared'
10433         case $cc_basename,$host_cpu in
10434         pgcc*)                          # Portland Group C compiler
10435           whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
10436           tmp_addflag=' $pic_flag'
10437           ;;
10438         pgf77* | pgf90* | pgf95* | pgfortran*)
10439                                         # Portland Group f77 and f90 compilers
10440           whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
10441           tmp_addflag=' $pic_flag -Mnomain' ;;
10442         ecc*,ia64* | icc*,ia64*)        # Intel C compiler on ia64
10443           tmp_addflag=' -i_dynamic' ;;
10444         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
10445           tmp_addflag=' -i_dynamic -nofor_main' ;;
10446         ifc* | ifort*)                  # Intel Fortran compiler
10447           tmp_addflag=' -nofor_main' ;;
10448         lf95*)                          # Lahey Fortran 8.1
10449           whole_archive_flag_spec=
10450           tmp_sharedflag='--shared' ;;
10451         xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
10452           tmp_sharedflag='-qmkshrobj'
10453           tmp_addflag= ;;
10454         nvcc*)  # Cuda Compiler Driver 2.2
10455           whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
10456           compiler_needs_object=yes
10457           ;;
10458         esac
10459         case `$CC -V 2>&1 | sed 5q` in
10460         *Sun\ C*)                       # Sun C 5.9
10461           whole_archive_flag_spec='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
10462           compiler_needs_object=yes
10463           tmp_sharedflag='-G' ;;
10464         *Sun\ F*)                       # Sun Fortran 8.3
10465           tmp_sharedflag='-G' ;;
10466         esac
10467         archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10468
10469         if test "x$supports_anon_versioning" = xyes; then
10470           archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
10471             cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
10472             echo "local: *; };" >> $output_objdir/$libname.ver~
10473             $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
10474         fi
10475
10476         case $cc_basename in
10477         xlf* | bgf* | bgxlf* | mpixlf*)
10478           # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
10479           whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
10480           hardcode_libdir_flag_spec=
10481           hardcode_libdir_flag_spec_ld='-rpath $libdir'
10482           archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
10483           if test "x$supports_anon_versioning" = xyes; then
10484             archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
10485               cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
10486               echo "local: *; };" >> $output_objdir/$libname.ver~
10487               $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
10488           fi
10489           ;;
10490         esac
10491       else
10492         ld_shlibs=no
10493       fi
10494       ;;
10495
10496     netbsd*)
10497       if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10498         archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
10499         wlarc=
10500       else
10501         archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10502         archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10503       fi
10504       ;;
10505
10506     solaris*)
10507       if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
10508         ld_shlibs=no
10509         cat <<_LT_EOF 1>&2
10510
10511 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
10512 *** create shared libraries on Solaris systems.  Therefore, libtool
10513 *** is disabling shared libraries support.  We urge you to upgrade GNU
10514 *** binutils to release 2.9.1 or newer.  Another option is to modify
10515 *** your PATH or compiler configuration so that the native linker is
10516 *** used, and then restart.
10517
10518 _LT_EOF
10519       elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10520         archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10521         archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10522       else
10523         ld_shlibs=no
10524       fi
10525       ;;
10526
10527     sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
10528       case `$LD -v 2>&1` in
10529         *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
10530         ld_shlibs=no
10531         cat <<_LT_EOF 1>&2
10532
10533 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
10534 *** reliably create shared libraries on SCO systems.  Therefore, libtool
10535 *** is disabling shared libraries support.  We urge you to upgrade GNU
10536 *** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
10537 *** your PATH or compiler configuration so that the native linker is
10538 *** used, and then restart.
10539
10540 _LT_EOF
10541         ;;
10542         *)
10543           # For security reasons, it is highly recommended that you always
10544           # use absolute paths for naming shared libraries, and exclude the
10545           # DT_RUNPATH tag from executables and libraries.  But doing so
10546           # requires that you compile everything twice, which is a pain.
10547           if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10548             hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10549             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10550             archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10551           else
10552             ld_shlibs=no
10553           fi
10554         ;;
10555       esac
10556       ;;
10557
10558     sunos4*)
10559       archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10560       wlarc=
10561       hardcode_direct=yes
10562       hardcode_shlibpath_var=no
10563       ;;
10564
10565     *)
10566       if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10567         archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10568         archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10569       else
10570         ld_shlibs=no
10571       fi
10572       ;;
10573     esac
10574
10575     if test "$ld_shlibs" = no; then
10576       runpath_var=
10577       hardcode_libdir_flag_spec=
10578       export_dynamic_flag_spec=
10579       whole_archive_flag_spec=
10580     fi
10581   else
10582     # PORTME fill in a description of your system's linker (not GNU ld)
10583     case $host_os in
10584     aix3*)
10585       allow_undefined_flag=unsupported
10586       always_export_symbols=yes
10587       archive_expsym_cmds='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname'
10588       # Note: this linker hardcodes the directories in LIBPATH if there
10589       # are no directories specified by -L.
10590       hardcode_minus_L=yes
10591       if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
10592         # Neither direct hardcoding nor static linking is supported with a
10593         # broken collect2.
10594         hardcode_direct=unsupported
10595       fi
10596       ;;
10597
10598     aix[4-9]*)
10599       if test "$host_cpu" = ia64; then
10600         # On IA64, the linker does run time linking by default, so we don't
10601         # have to do anything special.
10602         aix_use_runtimelinking=no
10603         exp_sym_flag='-Bexport'
10604         no_entry_flag=""
10605       else
10606         # If we're using GNU nm, then we don't want the "-C" option.
10607         # -C means demangle to AIX nm, but means don't demangle with GNU nm
10608         # Also, AIX nm treats weak defined symbols like other global
10609         # defined symbols, whereas GNU nm marks them as "W".
10610         if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
10611           export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
10612         else
10613           export_symbols_cmds='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
10614         fi
10615         aix_use_runtimelinking=no
10616
10617         # Test if we are trying to use run time linking or normal
10618         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
10619         # need to do runtime linking.
10620         case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
10621           for ld_flag in $LDFLAGS; do
10622           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
10623             aix_use_runtimelinking=yes
10624             break
10625           fi
10626           done
10627           ;;
10628         esac
10629
10630         exp_sym_flag='-bexport'
10631         no_entry_flag='-bnoentry'
10632       fi
10633
10634       # When large executables or shared objects are built, AIX ld can
10635       # have problems creating the table of contents.  If linking a library
10636       # or program results in "error TOC overflow" add -mminimal-toc to
10637       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
10638       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
10639
10640       archive_cmds=''
10641       hardcode_direct=yes
10642       hardcode_direct_absolute=yes
10643       hardcode_libdir_separator=':'
10644       link_all_deplibs=yes
10645       file_list_spec='${wl}-f,'
10646
10647       if test "$GCC" = yes; then
10648         case $host_os in aix4.[012]|aix4.[012].*)
10649         # We only want to do this on AIX 4.2 and lower, the check
10650         # below for broken collect2 doesn't work under 4.3+
10651           collect2name=`${CC} -print-prog-name=collect2`
10652           if test -f "$collect2name" &&
10653            strings "$collect2name" | $GREP resolve_lib_name >/dev/null
10654           then
10655           # We have reworked collect2
10656           :
10657           else
10658           # We have old collect2
10659           hardcode_direct=unsupported
10660           # It fails to find uninstalled libraries when the uninstalled
10661           # path is not listed in the libpath.  Setting hardcode_minus_L
10662           # to unsupported forces relinking
10663           hardcode_minus_L=yes
10664           hardcode_libdir_flag_spec='-L$libdir'
10665           hardcode_libdir_separator=
10666           fi
10667           ;;
10668         esac
10669         shared_flag='-shared'
10670         if test "$aix_use_runtimelinking" = yes; then
10671           shared_flag="$shared_flag "'${wl}-G'
10672         fi
10673       else
10674         # not using gcc
10675         if test "$host_cpu" = ia64; then
10676         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
10677         # chokes on -Wl,-G. The following line is correct:
10678           shared_flag='-G'
10679         else
10680           if test "$aix_use_runtimelinking" = yes; then
10681             shared_flag='${wl}-G'
10682           else
10683             shared_flag='${wl}-bM:SRE'
10684           fi
10685         fi
10686       fi
10687
10688       export_dynamic_flag_spec='${wl}-bexpall'
10689       # It seems that -bexpall does not export symbols beginning with
10690       # underscore (_), so it is better to generate a list of symbols to export.
10691       always_export_symbols=yes
10692       if test "$aix_use_runtimelinking" = yes; then
10693         # Warning - without using the other runtime loading flags (-brtl),
10694         # -berok will link without error, but may produce a broken library.
10695         allow_undefined_flag='-berok'
10696         # Determine the default libpath from the value encoded in an
10697         # empty executable.
10698         if test "${lt_cv_aix_libpath+set}" = set; then
10699   aix_libpath=$lt_cv_aix_libpath
10700 else
10701   if ${lt_cv_aix_libpath_+:} false; then :
10702   $as_echo_n "(cached) " >&6
10703 else
10704   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10705 /* end confdefs.h.  */
10706
10707 int
10708 main ()
10709 {
10710
10711   ;
10712   return 0;
10713 }
10714 _ACEOF
10715 if ac_fn_c_try_link "$LINENO"; then :
10716
10717   lt_aix_libpath_sed='
10718       /Import File Strings/,/^$/ {
10719           /^0/ {
10720               s/^0  *\([^ ]*\) *$/\1/
10721               p
10722           }
10723       }'
10724   lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10725   # Check for a 64-bit object if we didn't find anything.
10726   if test -z "$lt_cv_aix_libpath_"; then
10727     lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10728   fi
10729 fi
10730 rm -f core conftest.err conftest.$ac_objext \
10731     conftest$ac_exeext conftest.$ac_ext
10732   if test -z "$lt_cv_aix_libpath_"; then
10733     lt_cv_aix_libpath_="/usr/lib:/lib"
10734   fi
10735
10736 fi
10737
10738   aix_libpath=$lt_cv_aix_libpath_
10739 fi
10740
10741         hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
10742         archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then func_echo_all "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
10743       else
10744         if test "$host_cpu" = ia64; then
10745           hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
10746           allow_undefined_flag="-z nodefs"
10747           archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols"
10748         else
10749          # Determine the default libpath from the value encoded in an
10750          # empty executable.
10751          if test "${lt_cv_aix_libpath+set}" = set; then
10752   aix_libpath=$lt_cv_aix_libpath
10753 else
10754   if ${lt_cv_aix_libpath_+:} false; then :
10755   $as_echo_n "(cached) " >&6
10756 else
10757   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10758 /* end confdefs.h.  */
10759
10760 int
10761 main ()
10762 {
10763
10764   ;
10765   return 0;
10766 }
10767 _ACEOF
10768 if ac_fn_c_try_link "$LINENO"; then :
10769
10770   lt_aix_libpath_sed='
10771       /Import File Strings/,/^$/ {
10772           /^0/ {
10773               s/^0  *\([^ ]*\) *$/\1/
10774               p
10775           }
10776       }'
10777   lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10778   # Check for a 64-bit object if we didn't find anything.
10779   if test -z "$lt_cv_aix_libpath_"; then
10780     lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10781   fi
10782 fi
10783 rm -f core conftest.err conftest.$ac_objext \
10784     conftest$ac_exeext conftest.$ac_ext
10785   if test -z "$lt_cv_aix_libpath_"; then
10786     lt_cv_aix_libpath_="/usr/lib:/lib"
10787   fi
10788
10789 fi
10790
10791   aix_libpath=$lt_cv_aix_libpath_
10792 fi
10793
10794          hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
10795           # Warning - without using the other run time loading flags,
10796           # -berok will link without error, but may produce a broken library.
10797           no_undefined_flag=' ${wl}-bernotok'
10798           allow_undefined_flag=' ${wl}-berok'
10799           if test "$with_gnu_ld" = yes; then
10800             # We only use this code for GNU lds that support --whole-archive.
10801             whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
10802           else
10803             # Exported symbols can be pulled into shared objects from archives
10804             whole_archive_flag_spec='$convenience'
10805           fi
10806           archive_cmds_need_lc=yes
10807           # This is similar to how AIX traditionally builds its shared libraries.
10808           archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
10809         fi
10810       fi
10811       ;;
10812
10813     amigaos*)
10814       case $host_cpu in
10815       powerpc)
10816             # see comment about AmigaOS4 .so support
10817             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10818             archive_expsym_cmds=''
10819         ;;
10820       m68k)
10821             archive_cmds='$RM $output_objdir/a2ixlibrary.data~$ECHO "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$ECHO "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$ECHO "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$ECHO "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
10822             hardcode_libdir_flag_spec='-L$libdir'
10823             hardcode_minus_L=yes
10824         ;;
10825       esac
10826       ;;
10827
10828     bsdi[45]*)
10829       export_dynamic_flag_spec=-rdynamic
10830       ;;
10831
10832     cygwin* | mingw* | pw32* | cegcc*)
10833       # When not using gcc, we currently assume that we are using
10834       # Microsoft Visual C++.
10835       # hardcode_libdir_flag_spec is actually meaningless, as there is
10836       # no search path for DLLs.
10837       case $cc_basename in
10838       cl*)
10839         # Native MSVC
10840         hardcode_libdir_flag_spec=' '
10841         allow_undefined_flag=unsupported
10842         always_export_symbols=yes
10843         file_list_spec='@'
10844         # Tell ltmain to make .lib files, not .a files.
10845         libext=lib
10846         # Tell ltmain to make .dll files, not .so files.
10847         shrext_cmds=".dll"
10848         # FIXME: Setting linknames here is a bad hack.
10849         archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
10850         archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
10851             sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
10852           else
10853             sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
10854           fi~
10855           $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
10856           linknames='
10857         # The linker will not automatically build a static lib if we build a DLL.
10858         # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
10859         enable_shared_with_static_runtimes=yes
10860         export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
10861         # Don't use ranlib
10862         old_postinstall_cmds='chmod 644 $oldlib'
10863         postlink_cmds='lt_outputfile="@OUTPUT@"~
10864           lt_tool_outputfile="@TOOL_OUTPUT@"~
10865           case $lt_outputfile in
10866             *.exe|*.EXE) ;;
10867             *)
10868               lt_outputfile="$lt_outputfile.exe"
10869               lt_tool_outputfile="$lt_tool_outputfile.exe"
10870               ;;
10871           esac~
10872           if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
10873             $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
10874             $RM "$lt_outputfile.manifest";
10875           fi'
10876         ;;
10877       *)
10878         # Assume MSVC wrapper
10879         hardcode_libdir_flag_spec=' '
10880         allow_undefined_flag=unsupported
10881         # Tell ltmain to make .lib files, not .a files.
10882         libext=lib
10883         # Tell ltmain to make .dll files, not .so files.
10884         shrext_cmds=".dll"
10885         # FIXME: Setting linknames here is a bad hack.
10886         archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
10887         # The linker will automatically build a .lib file if we build a DLL.
10888         old_archive_from_new_cmds='true'
10889         # FIXME: Should let the user specify the lib program.
10890         old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
10891         enable_shared_with_static_runtimes=yes
10892         ;;
10893       esac
10894       ;;
10895
10896     darwin* | rhapsody*)
10897
10898
10899   archive_cmds_need_lc=no
10900   hardcode_direct=no
10901   hardcode_automatic=yes
10902   hardcode_shlibpath_var=unsupported
10903   if test "$lt_cv_ld_force_load" = "yes"; then
10904     whole_archive_flag_spec='`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience ${wl}-force_load,$conv\"; done; func_echo_all \"$new_convenience\"`'
10905   else
10906     whole_archive_flag_spec=''
10907   fi
10908   link_all_deplibs=yes
10909   allow_undefined_flag="$_lt_dar_allow_undefined"
10910   case $cc_basename in
10911      ifort*) _lt_dar_can_shared=yes ;;
10912      *) _lt_dar_can_shared=$GCC ;;
10913   esac
10914   if test "$_lt_dar_can_shared" = "yes"; then
10915     output_verbose_link_cmd=func_echo_all
10916     archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
10917     module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
10918     archive_expsym_cmds="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring ${_lt_dar_single_mod}${_lt_dar_export_syms}${_lt_dsymutil}"
10919     module_expsym_cmds="sed -e 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dar_export_syms}${_lt_dsymutil}"
10920
10921   else
10922   ld_shlibs=no
10923   fi
10924
10925       ;;
10926
10927     dgux*)
10928       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10929       hardcode_libdir_flag_spec='-L$libdir'
10930       hardcode_shlibpath_var=no
10931       ;;
10932
10933     freebsd1*)
10934       ld_shlibs=no
10935       ;;
10936
10937     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
10938     # support.  Future versions do this automatically, but an explicit c++rt0.o
10939     # does not break anything, and helps significantly (at the cost of a little
10940     # extra space).
10941     freebsd2.2*)
10942       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
10943       hardcode_libdir_flag_spec='-R$libdir'
10944       hardcode_direct=yes
10945       hardcode_shlibpath_var=no
10946       ;;
10947
10948     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
10949     freebsd2*)
10950       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10951       hardcode_direct=yes
10952       hardcode_minus_L=yes
10953       hardcode_shlibpath_var=no
10954       ;;
10955
10956     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
10957     freebsd* | dragonfly*)
10958       archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10959       hardcode_libdir_flag_spec='-R$libdir'
10960       hardcode_direct=yes
10961       hardcode_shlibpath_var=no
10962       ;;
10963
10964     hpux9*)
10965       if test "$GCC" = yes; then
10966         archive_cmds='$RM $output_objdir/$soname~$CC -shared $pic_flag ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
10967       else
10968         archive_cmds='$RM $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
10969       fi
10970       hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10971       hardcode_libdir_separator=:
10972       hardcode_direct=yes
10973
10974       # hardcode_minus_L: Not really in the search PATH,
10975       # but as the default location of the library.
10976       hardcode_minus_L=yes
10977       export_dynamic_flag_spec='${wl}-E'
10978       ;;
10979
10980     hpux10*)
10981       if test "$GCC" = yes && test "$with_gnu_ld" = no; then
10982         archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10983       else
10984         archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10985       fi
10986       if test "$with_gnu_ld" = no; then
10987         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10988         hardcode_libdir_flag_spec_ld='+b $libdir'
10989         hardcode_libdir_separator=:
10990         hardcode_direct=yes
10991         hardcode_direct_absolute=yes
10992         export_dynamic_flag_spec='${wl}-E'
10993         # hardcode_minus_L: Not really in the search PATH,
10994         # but as the default location of the library.
10995         hardcode_minus_L=yes
10996       fi
10997       ;;
10998
10999     hpux11*)
11000       if test "$GCC" = yes && test "$with_gnu_ld" = no; then
11001         case $host_cpu in
11002         hppa*64*)
11003           archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
11004           ;;
11005         ia64*)
11006           archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
11007           ;;
11008         *)
11009           archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
11010           ;;
11011         esac
11012       else
11013         case $host_cpu in
11014         hppa*64*)
11015           archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
11016           ;;
11017         ia64*)
11018           archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
11019           ;;
11020         *)
11021
11022           # Older versions of the 11.00 compiler do not understand -b yet
11023           # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
11024           { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
11025 $as_echo_n "checking if $CC understands -b... " >&6; }
11026 if ${lt_cv_prog_compiler__b+:} false; then :
11027   $as_echo_n "(cached) " >&6
11028 else
11029   lt_cv_prog_compiler__b=no
11030    save_LDFLAGS="$LDFLAGS"
11031    LDFLAGS="$LDFLAGS -b"
11032    echo "$lt_simple_link_test_code" > conftest.$ac_ext
11033    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
11034      # The linker can only warn and ignore the option if not recognized
11035      # So say no if there are warnings
11036      if test -s conftest.err; then
11037        # Append any errors to the config.log.
11038        cat conftest.err 1>&5
11039        $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
11040        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
11041        if diff conftest.exp conftest.er2 >/dev/null; then
11042          lt_cv_prog_compiler__b=yes
11043        fi
11044      else
11045        lt_cv_prog_compiler__b=yes
11046      fi
11047    fi
11048    $RM -r conftest*
11049    LDFLAGS="$save_LDFLAGS"
11050
11051 fi
11052 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
11053 $as_echo "$lt_cv_prog_compiler__b" >&6; }
11054
11055 if test x"$lt_cv_prog_compiler__b" = xyes; then
11056     archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
11057 else
11058     archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
11059 fi
11060
11061           ;;
11062         esac
11063       fi
11064       if test "$with_gnu_ld" = no; then
11065         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
11066         hardcode_libdir_separator=:
11067
11068         case $host_cpu in
11069         hppa*64*|ia64*)
11070           hardcode_direct=no
11071           hardcode_shlibpath_var=no
11072           ;;
11073         *)
11074           hardcode_direct=yes
11075           hardcode_direct_absolute=yes
11076           export_dynamic_flag_spec='${wl}-E'
11077
11078           # hardcode_minus_L: Not really in the search PATH,
11079           # but as the default location of the library.
11080           hardcode_minus_L=yes
11081           ;;
11082         esac
11083       fi
11084       ;;
11085
11086     irix5* | irix6* | nonstopux*)
11087       if test "$GCC" = yes; then
11088         archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
11089         # Try to use the -exported_symbol ld option, if it does not
11090         # work, assume that -exports_file does not work either and
11091         # implicitly export all symbols.
11092         # This should be the same for all languages, so no per-tag cache variable.
11093         { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
11094 $as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
11095 if ${lt_cv_irix_exported_symbol+:} false; then :
11096   $as_echo_n "(cached) " >&6
11097 else
11098   save_LDFLAGS="$LDFLAGS"
11099            LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
11100            cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11101 /* end confdefs.h.  */
11102 int foo (void) { return 0; }
11103 _ACEOF
11104 if ac_fn_c_try_link "$LINENO"; then :
11105   lt_cv_irix_exported_symbol=yes
11106 else
11107   lt_cv_irix_exported_symbol=no
11108 fi
11109 rm -f core conftest.err conftest.$ac_objext \
11110     conftest$ac_exeext conftest.$ac_ext
11111            LDFLAGS="$save_LDFLAGS"
11112 fi
11113 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
11114 $as_echo "$lt_cv_irix_exported_symbol" >&6; }
11115         if test "$lt_cv_irix_exported_symbol" = yes; then
11116           archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations ${wl}-exports_file ${wl}$export_symbols -o $lib'
11117         fi
11118       else
11119         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
11120         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -exports_file $export_symbols -o $lib'
11121       fi
11122       archive_cmds_need_lc='no'
11123       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
11124       hardcode_libdir_separator=:
11125       inherit_rpath=yes
11126       link_all_deplibs=yes
11127       ;;
11128
11129     netbsd*)
11130       if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11131         archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
11132       else
11133         archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
11134       fi
11135       hardcode_libdir_flag_spec='-R$libdir'
11136       hardcode_direct=yes
11137       hardcode_shlibpath_var=no
11138       ;;
11139
11140     newsos6)
11141       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11142       hardcode_direct=yes
11143       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
11144       hardcode_libdir_separator=:
11145       hardcode_shlibpath_var=no
11146       ;;
11147
11148     *nto* | *qnx*)
11149       ;;
11150
11151     openbsd*)
11152       if test -f /usr/libexec/ld.so; then
11153         hardcode_direct=yes
11154         hardcode_shlibpath_var=no
11155         hardcode_direct_absolute=yes
11156         if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11157           archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
11158           archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
11159           hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
11160           export_dynamic_flag_spec='${wl}-E'
11161         else
11162           case $host_os in
11163            openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
11164              archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
11165              hardcode_libdir_flag_spec='-R$libdir'
11166              ;;
11167            *)
11168              archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
11169              hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
11170              ;;
11171           esac
11172         fi
11173       else
11174         ld_shlibs=no
11175       fi
11176       ;;
11177
11178     os2*)
11179       hardcode_libdir_flag_spec='-L$libdir'
11180       hardcode_minus_L=yes
11181       allow_undefined_flag=unsupported
11182       archive_cmds='$ECHO "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~echo DATA >> $output_objdir/$libname.def~echo " SINGLE NONSHARED" >> $output_objdir/$libname.def~echo EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def'
11183       old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
11184       ;;
11185
11186     osf3*)
11187       if test "$GCC" = yes; then
11188         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
11189         archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
11190       else
11191         allow_undefined_flag=' -expect_unresolved \*'
11192         archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
11193       fi
11194       archive_cmds_need_lc='no'
11195       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
11196       hardcode_libdir_separator=:
11197       ;;
11198
11199     osf4* | osf5*)      # as osf3* with the addition of -msym flag
11200       if test "$GCC" = yes; then
11201         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
11202         archive_cmds='$CC -shared${allow_undefined_flag} $pic_flag $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
11203         hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
11204       else
11205         allow_undefined_flag=' -expect_unresolved \*'
11206         archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -msym -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
11207         archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; printf "%s\\n" "-hidden">> $lib.exp~
11208         $CC -shared${allow_undefined_flag} ${wl}-input ${wl}$lib.exp $compiler_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && $ECHO "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib~$RM $lib.exp'
11209
11210         # Both c and cxx compiler support -rpath directly
11211         hardcode_libdir_flag_spec='-rpath $libdir'
11212       fi
11213       archive_cmds_need_lc='no'
11214       hardcode_libdir_separator=:
11215       ;;
11216
11217     solaris*)
11218       no_undefined_flag=' -z defs'
11219       if test "$GCC" = yes; then
11220         wlarc='${wl}'
11221         archive_cmds='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
11222         archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
11223           $CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
11224       else
11225         case `$CC -V 2>&1` in
11226         *"Compilers 5.0"*)
11227           wlarc=''
11228           archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
11229           archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
11230           $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
11231           ;;
11232         *)
11233           wlarc='${wl}'
11234           archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
11235           archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
11236           $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
11237           ;;
11238         esac
11239       fi
11240       hardcode_libdir_flag_spec='-R$libdir'
11241       hardcode_shlibpath_var=no
11242       case $host_os in
11243       solaris2.[0-5] | solaris2.[0-5].*) ;;
11244       *)
11245         # The compiler driver will combine and reorder linker options,
11246         # but understands `-z linker_flag'.  GCC discards it without `$wl',
11247         # but is careful enough not to reorder.
11248         # Supported since Solaris 2.6 (maybe 2.5.1?)
11249         if test "$GCC" = yes; then
11250           whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
11251         else
11252           whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
11253         fi
11254         ;;
11255       esac
11256       link_all_deplibs=yes
11257       ;;
11258
11259     sunos4*)
11260       if test "x$host_vendor" = xsequent; then
11261         # Use $CC to link under sequent, because it throws in some extra .o
11262         # files that make .init and .fini sections work.
11263         archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
11264       else
11265         archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
11266       fi
11267       hardcode_libdir_flag_spec='-L$libdir'
11268       hardcode_direct=yes
11269       hardcode_minus_L=yes
11270       hardcode_shlibpath_var=no
11271       ;;
11272
11273     sysv4)
11274       case $host_vendor in
11275         sni)
11276           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11277           hardcode_direct=yes # is this really true???
11278         ;;
11279         siemens)
11280           ## LD is ld it makes a PLAMLIB
11281           ## CC just makes a GrossModule.
11282           archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
11283           reload_cmds='$CC -r -o $output$reload_objs'
11284           hardcode_direct=no
11285         ;;
11286         motorola)
11287           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11288           hardcode_direct=no #Motorola manual says yes, but my tests say they lie
11289         ;;
11290       esac
11291       runpath_var='LD_RUN_PATH'
11292       hardcode_shlibpath_var=no
11293       ;;
11294
11295     sysv4.3*)
11296       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11297       hardcode_shlibpath_var=no
11298       export_dynamic_flag_spec='-Bexport'
11299       ;;
11300
11301     sysv4*MP*)
11302       if test -d /usr/nec; then
11303         archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11304         hardcode_shlibpath_var=no
11305         runpath_var=LD_RUN_PATH
11306         hardcode_runpath_var=yes
11307         ld_shlibs=yes
11308       fi
11309       ;;
11310
11311     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
11312       no_undefined_flag='${wl}-z,text'
11313       archive_cmds_need_lc=no
11314       hardcode_shlibpath_var=no
11315       runpath_var='LD_RUN_PATH'
11316
11317       if test "$GCC" = yes; then
11318         archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11319         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11320       else
11321         archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11322         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11323       fi
11324       ;;
11325
11326     sysv5* | sco3.2v5* | sco5v6*)
11327       # Note: We can NOT use -z defs as we might desire, because we do not
11328       # link with -lc, and that would cause any symbols used from libc to
11329       # always be unresolved, which means just about no library would
11330       # ever link correctly.  If we're not using GNU ld we use -z text
11331       # though, which does catch some bad symbols but isn't as heavy-handed
11332       # as -z defs.
11333       no_undefined_flag='${wl}-z,text'
11334       allow_undefined_flag='${wl}-z,nodefs'
11335       archive_cmds_need_lc=no
11336       hardcode_shlibpath_var=no
11337       hardcode_libdir_flag_spec='${wl}-R,$libdir'
11338       hardcode_libdir_separator=':'
11339       link_all_deplibs=yes
11340       export_dynamic_flag_spec='${wl}-Bexport'
11341       runpath_var='LD_RUN_PATH'
11342
11343       if test "$GCC" = yes; then
11344         archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11345         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11346       else
11347         archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11348         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11349       fi
11350       ;;
11351
11352     uts4*)
11353       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11354       hardcode_libdir_flag_spec='-L$libdir'
11355       hardcode_shlibpath_var=no
11356       ;;
11357
11358     *)
11359       ld_shlibs=no
11360       ;;
11361     esac
11362
11363     if test x$host_vendor = xsni; then
11364       case $host in
11365       sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
11366         export_dynamic_flag_spec='${wl}-Blargedynsym'
11367         ;;
11368       esac
11369     fi
11370   fi
11371
11372 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
11373 $as_echo "$ld_shlibs" >&6; }
11374 test "$ld_shlibs" = no && can_build_shared=no
11375
11376 with_gnu_ld=$with_gnu_ld
11377
11378
11379
11380
11381
11382
11383
11384
11385
11386
11387
11388
11389
11390
11391
11392 #
11393 # Do we need to explicitly link libc?
11394 #
11395 case "x$archive_cmds_need_lc" in
11396 x|xyes)
11397   # Assume -lc should be added
11398   archive_cmds_need_lc=yes
11399
11400   if test "$enable_shared" = yes && test "$GCC" = yes; then
11401     case $archive_cmds in
11402     *'~'*)
11403       # FIXME: we may have to deal with multi-command sequences.
11404       ;;
11405     '$CC '*)
11406       # Test whether the compiler implicitly links with -lc since on some
11407       # systems, -lgcc has to come before -lc. If gcc already passes -lc
11408       # to ld, don't add -lc before -lgcc.
11409       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
11410 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
11411 if ${lt_cv_archive_cmds_need_lc+:} false; then :
11412   $as_echo_n "(cached) " >&6
11413 else
11414   $RM conftest*
11415         echo "$lt_simple_compile_test_code" > conftest.$ac_ext
11416
11417         if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
11418   (eval $ac_compile) 2>&5
11419   ac_status=$?
11420   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11421   test $ac_status = 0; } 2>conftest.err; then
11422           soname=conftest
11423           lib=conftest
11424           libobjs=conftest.$ac_objext
11425           deplibs=
11426           wl=$lt_prog_compiler_wl
11427           pic_flag=$lt_prog_compiler_pic
11428           compiler_flags=-v
11429           linker_flags=-v
11430           verstring=
11431           output_objdir=.
11432           libname=conftest
11433           lt_save_allow_undefined_flag=$allow_undefined_flag
11434           allow_undefined_flag=
11435           if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
11436   (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
11437   ac_status=$?
11438   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11439   test $ac_status = 0; }
11440           then
11441             lt_cv_archive_cmds_need_lc=no
11442           else
11443             lt_cv_archive_cmds_need_lc=yes
11444           fi
11445           allow_undefined_flag=$lt_save_allow_undefined_flag
11446         else
11447           cat conftest.err 1>&5
11448         fi
11449         $RM conftest*
11450
11451 fi
11452 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
11453 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
11454       archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
11455       ;;
11456     esac
11457   fi
11458   ;;
11459 esac
11460
11461
11462
11463
11464
11465
11466
11467
11468
11469
11470
11471
11472
11473
11474
11475
11476
11477
11478
11479
11480
11481
11482
11483
11484
11485
11486
11487
11488
11489
11490
11491
11492
11493
11494
11495
11496
11497
11498
11499
11500
11501
11502
11503
11504
11505
11506
11507
11508
11509
11510
11511
11512
11513
11514
11515
11516
11517
11518
11519
11520
11521
11522
11523
11524
11525
11526
11527
11528
11529
11530
11531
11532
11533
11534
11535
11536
11537
11538
11539
11540
11541
11542
11543
11544
11545
11546
11547
11548
11549
11550
11551
11552
11553
11554
11555
11556
11557
11558
11559
11560
11561
11562
11563
11564
11565
11566
11567
11568
11569
11570
11571
11572
11573
11574
11575
11576
11577
11578
11579
11580
11581
11582
11583
11584
11585
11586
11587
11588
11589
11590
11591
11592
11593
11594
11595
11596
11597
11598
11599
11600
11601
11602
11603
11604
11605
11606
11607
11608
11609
11610
11611
11612
11613
11614
11615
11616
11617   { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
11618 $as_echo_n "checking dynamic linker characteristics... " >&6; }
11619
11620 if test "$GCC" = yes; then
11621   case $host_os in
11622     darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
11623     *) lt_awk_arg="/^libraries:/" ;;
11624   esac
11625   case $host_os in
11626     mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
11627     *) lt_sed_strip_eq="s,=/,/,g" ;;
11628   esac
11629   lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
11630   case $lt_search_path_spec in
11631   *\;*)
11632     # if the path contains ";" then we assume it to be the separator
11633     # otherwise default to the standard path separator (i.e. ":") - it is
11634     # assumed that no part of a normal pathname contains ";" but that should
11635     # okay in the real world where ";" in dirpaths is itself problematic.
11636     lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
11637     ;;
11638   *)
11639     lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
11640     ;;
11641   esac
11642   # Ok, now we have the path, separated by spaces, we can step through it
11643   # and add multilib dir if necessary.
11644   lt_tmp_lt_search_path_spec=
11645   lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
11646   for lt_sys_path in $lt_search_path_spec; do
11647     if test -d "$lt_sys_path/$lt_multi_os_dir"; then
11648       lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
11649     else
11650       test -d "$lt_sys_path" && \
11651         lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
11652     fi
11653   done
11654   lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
11655 BEGIN {RS=" "; FS="/|\n";} {
11656   lt_foo="";
11657   lt_count=0;
11658   for (lt_i = NF; lt_i > 0; lt_i--) {
11659     if ($lt_i != "" && $lt_i != ".") {
11660       if ($lt_i == "..") {
11661         lt_count++;
11662       } else {
11663         if (lt_count == 0) {
11664           lt_foo="/" $lt_i lt_foo;
11665         } else {
11666           lt_count--;
11667         }
11668       }
11669     }
11670   }
11671   if (lt_foo != "") { lt_freq[lt_foo]++; }
11672   if (lt_freq[lt_foo] == 1) { print lt_foo; }
11673 }'`
11674   # AWK program above erroneously prepends '/' to C:/dos/paths
11675   # for these hosts.
11676   case $host_os in
11677     mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
11678       $SED 's,/\([A-Za-z]:\),\1,g'` ;;
11679   esac
11680   sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
11681 else
11682   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
11683 fi
11684 library_names_spec=
11685 libname_spec='lib$name'
11686 soname_spec=
11687 shrext_cmds=".so"
11688 postinstall_cmds=
11689 postuninstall_cmds=
11690 finish_cmds=
11691 finish_eval=
11692 shlibpath_var=
11693 shlibpath_overrides_runpath=unknown
11694 version_type=none
11695 dynamic_linker="$host_os ld.so"
11696 sys_lib_dlsearch_path_spec="/lib /usr/lib"
11697 need_lib_prefix=unknown
11698 hardcode_into_libs=no
11699
11700 # when you set need_version to no, make sure it does not cause -set_version
11701 # flags to be left without arguments
11702 need_version=unknown
11703
11704 case $host_os in
11705 aix3*)
11706   version_type=linux
11707   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
11708   shlibpath_var=LIBPATH
11709
11710   # AIX 3 has no versioning support, so we append a major version to the name.
11711   soname_spec='${libname}${release}${shared_ext}$major'
11712   ;;
11713
11714 aix[4-9]*)
11715   version_type=linux
11716   need_lib_prefix=no
11717   need_version=no
11718   hardcode_into_libs=yes
11719   if test "$host_cpu" = ia64; then
11720     # AIX 5 supports IA64
11721     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
11722     shlibpath_var=LD_LIBRARY_PATH
11723   else
11724     # With GCC up to 2.95.x, collect2 would create an import file
11725     # for dependence libraries.  The import file would start with
11726     # the line `#! .'.  This would cause the generated library to
11727     # depend on `.', always an invalid library.  This was fixed in
11728     # development snapshots of GCC prior to 3.0.
11729     case $host_os in
11730       aix4 | aix4.[01] | aix4.[01].*)
11731       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
11732            echo ' yes '
11733            echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
11734         :
11735       else
11736         can_build_shared=no
11737       fi
11738       ;;
11739     esac
11740     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
11741     # soname into executable. Probably we can add versioning support to
11742     # collect2, so additional links can be useful in future.
11743     if test "$aix_use_runtimelinking" = yes; then
11744       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
11745       # instead of lib<name>.a to let people know that these are not
11746       # typical AIX shared libraries.
11747       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11748     else
11749       # We preserve .a as extension for shared libraries through AIX4.2
11750       # and later when we are not doing run time linking.
11751       library_names_spec='${libname}${release}.a $libname.a'
11752       soname_spec='${libname}${release}${shared_ext}$major'
11753     fi
11754     shlibpath_var=LIBPATH
11755   fi
11756   ;;
11757
11758 amigaos*)
11759   case $host_cpu in
11760   powerpc)
11761     # Since July 2007 AmigaOS4 officially supports .so libraries.
11762     # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
11763     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11764     ;;
11765   m68k)
11766     library_names_spec='$libname.ixlibrary $libname.a'
11767     # Create ${libname}_ixlibrary.a entries in /sys/libs.
11768     finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
11769     ;;
11770   esac
11771   ;;
11772
11773 beos*)
11774   library_names_spec='${libname}${shared_ext}'
11775   dynamic_linker="$host_os ld.so"
11776   shlibpath_var=LIBRARY_PATH
11777   ;;
11778
11779 bsdi[45]*)
11780   version_type=linux
11781   need_version=no
11782   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11783   soname_spec='${libname}${release}${shared_ext}$major'
11784   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
11785   shlibpath_var=LD_LIBRARY_PATH
11786   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
11787   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
11788   # the default ld.so.conf also contains /usr/contrib/lib and
11789   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
11790   # libtool to hard-code these into programs
11791   ;;
11792
11793 cygwin* | mingw* | pw32* | cegcc*)
11794   version_type=windows
11795   shrext_cmds=".dll"
11796   need_version=no
11797   need_lib_prefix=no
11798
11799   case $GCC,$cc_basename in
11800   yes,*)
11801     # gcc
11802     library_names_spec='$libname.dll.a'
11803     # DLL is installed to $(libdir)/../bin by postinstall_cmds
11804     postinstall_cmds='base_file=`basename \${file}`~
11805       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
11806       dldir=$destdir/`dirname \$dlpath`~
11807       test -d \$dldir || mkdir -p \$dldir~
11808       $install_prog $dir/$dlname \$dldir/$dlname~
11809       chmod a+x \$dldir/$dlname~
11810       if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
11811         eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
11812       fi'
11813     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11814       dlpath=$dir/\$dldll~
11815        $RM \$dlpath'
11816     shlibpath_overrides_runpath=yes
11817
11818     case $host_os in
11819     cygwin*)
11820       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
11821       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11822
11823       sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
11824       ;;
11825     mingw* | cegcc*)
11826       # MinGW DLLs use traditional 'lib' prefix
11827       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11828       ;;
11829     pw32*)
11830       # pw32 DLLs use 'pw' prefix rather than 'lib'
11831       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11832       ;;
11833     esac
11834     dynamic_linker='Win32 ld.exe'
11835     ;;
11836
11837   *,cl*)
11838     # Native MSVC
11839     libname_spec='$name'
11840     soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11841     library_names_spec='${libname}.dll.lib'
11842
11843     case $build_os in
11844     mingw*)
11845       sys_lib_search_path_spec=
11846       lt_save_ifs=$IFS
11847       IFS=';'
11848       for lt_path in $LIB
11849       do
11850         IFS=$lt_save_ifs
11851         # Let DOS variable expansion print the short 8.3 style file name.
11852         lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
11853         sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
11854       done
11855       IFS=$lt_save_ifs
11856       # Convert to MSYS style.
11857       sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
11858       ;;
11859     cygwin*)
11860       # Convert to unix form, then to dos form, then back to unix form
11861       # but this time dos style (no spaces!) so that the unix form looks
11862       # like /cygdrive/c/PROGRA~1:/cygdr...
11863       sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
11864       sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
11865       sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11866       ;;
11867     *)
11868       sys_lib_search_path_spec="$LIB"
11869       if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
11870         # It is most probably a Windows format PATH.
11871         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
11872       else
11873         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11874       fi
11875       # FIXME: find the short name or the path components, as spaces are
11876       # common. (e.g. "Program Files" -> "PROGRA~1")
11877       ;;
11878     esac
11879
11880     # DLL is installed to $(libdir)/../bin by postinstall_cmds
11881     postinstall_cmds='base_file=`basename \${file}`~
11882       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
11883       dldir=$destdir/`dirname \$dlpath`~
11884       test -d \$dldir || mkdir -p \$dldir~
11885       $install_prog $dir/$dlname \$dldir/$dlname'
11886     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11887       dlpath=$dir/\$dldll~
11888        $RM \$dlpath'
11889     shlibpath_overrides_runpath=yes
11890     dynamic_linker='Win32 link.exe'
11891     ;;
11892
11893   *)
11894     # Assume MSVC wrapper
11895     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
11896     dynamic_linker='Win32 ld.exe'
11897     ;;
11898   esac
11899   # FIXME: first we should search . and the directory the executable is in
11900   shlibpath_var=PATH
11901   ;;
11902
11903 darwin* | rhapsody*)
11904   dynamic_linker="$host_os dyld"
11905   version_type=darwin
11906   need_lib_prefix=no
11907   need_version=no
11908   library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
11909   soname_spec='${libname}${release}${major}$shared_ext'
11910   shlibpath_overrides_runpath=yes
11911   shlibpath_var=DYLD_LIBRARY_PATH
11912   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
11913
11914   sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
11915   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
11916   ;;
11917
11918 dgux*)
11919   version_type=linux
11920   need_lib_prefix=no
11921   need_version=no
11922   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
11923   soname_spec='${libname}${release}${shared_ext}$major'
11924   shlibpath_var=LD_LIBRARY_PATH
11925   ;;
11926
11927 freebsd1*)
11928   dynamic_linker=no
11929   ;;
11930
11931 freebsd* | dragonfly*)
11932   # DragonFly does not have aout.  When/if they implement a new
11933   # versioning mechanism, adjust this.
11934   if test -x /usr/bin/objformat; then
11935     objformat=`/usr/bin/objformat`
11936   else
11937     case $host_os in
11938     freebsd[123]*) objformat=aout ;;
11939     *) objformat=elf ;;
11940     esac
11941   fi
11942   version_type=freebsd-$objformat
11943   case $version_type in
11944     freebsd-elf*)
11945       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11946       need_version=no
11947       need_lib_prefix=no
11948       ;;
11949     freebsd-*)
11950       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
11951       need_version=yes
11952       ;;
11953   esac
11954   shlibpath_var=LD_LIBRARY_PATH
11955   case $host_os in
11956   freebsd2*)
11957     shlibpath_overrides_runpath=yes
11958     ;;
11959   freebsd3.[01]* | freebsdelf3.[01]*)
11960     shlibpath_overrides_runpath=yes
11961     hardcode_into_libs=yes
11962     ;;
11963   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
11964   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
11965     shlibpath_overrides_runpath=no
11966     hardcode_into_libs=yes
11967     ;;
11968   *) # from 4.6 on, and DragonFly
11969     shlibpath_overrides_runpath=yes
11970     hardcode_into_libs=yes
11971     ;;
11972   esac
11973   ;;
11974
11975 gnu*)
11976   version_type=linux
11977   need_lib_prefix=no
11978   need_version=no
11979   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
11980   soname_spec='${libname}${release}${shared_ext}$major'
11981   shlibpath_var=LD_LIBRARY_PATH
11982   hardcode_into_libs=yes
11983   ;;
11984
11985 haiku*)
11986   version_type=linux
11987   need_lib_prefix=no
11988   need_version=no
11989   dynamic_linker="$host_os runtime_loader"
11990   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
11991   soname_spec='${libname}${release}${shared_ext}$major'
11992   shlibpath_var=LIBRARY_PATH
11993   shlibpath_overrides_runpath=yes
11994   sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
11995   hardcode_into_libs=yes
11996   ;;
11997
11998 hpux9* | hpux10* | hpux11*)
11999   # Give a soname corresponding to the major version so that dld.sl refuses to
12000   # link against other versions.
12001   version_type=sunos
12002   need_lib_prefix=no
12003   need_version=no
12004   case $host_cpu in
12005   ia64*)
12006     shrext_cmds='.so'
12007     hardcode_into_libs=yes
12008     dynamic_linker="$host_os dld.so"
12009     shlibpath_var=LD_LIBRARY_PATH
12010     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
12011     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12012     soname_spec='${libname}${release}${shared_ext}$major'
12013     if test "X$HPUX_IA64_MODE" = X32; then
12014       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
12015     else
12016       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
12017     fi
12018     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12019     ;;
12020   hppa*64*)
12021     shrext_cmds='.sl'
12022     hardcode_into_libs=yes
12023     dynamic_linker="$host_os dld.sl"
12024     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
12025     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
12026     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12027     soname_spec='${libname}${release}${shared_ext}$major'
12028     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
12029     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12030     ;;
12031   *)
12032     shrext_cmds='.sl'
12033     dynamic_linker="$host_os dld.sl"
12034     shlibpath_var=SHLIB_PATH
12035     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
12036     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12037     soname_spec='${libname}${release}${shared_ext}$major'
12038     ;;
12039   esac
12040   # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
12041   postinstall_cmds='chmod 555 $lib'
12042   # or fails outright, so override atomically:
12043   install_override_mode=555
12044   ;;
12045
12046 interix[3-9]*)
12047   version_type=linux
12048   need_lib_prefix=no
12049   need_version=no
12050   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12051   soname_spec='${libname}${release}${shared_ext}$major'
12052   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
12053   shlibpath_var=LD_LIBRARY_PATH
12054   shlibpath_overrides_runpath=no
12055   hardcode_into_libs=yes
12056   ;;
12057
12058 irix5* | irix6* | nonstopux*)
12059   case $host_os in
12060     nonstopux*) version_type=nonstopux ;;
12061     *)
12062         if test "$lt_cv_prog_gnu_ld" = yes; then
12063                 version_type=linux
12064         else
12065                 version_type=irix
12066         fi ;;
12067   esac
12068   need_lib_prefix=no
12069   need_version=no
12070   soname_spec='${libname}${release}${shared_ext}$major'
12071   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
12072   case $host_os in
12073   irix5* | nonstopux*)
12074     libsuff= shlibsuff=
12075     ;;
12076   *)
12077     case $LD in # libtool.m4 will add one of these switches to LD
12078     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
12079       libsuff= shlibsuff= libmagic=32-bit;;
12080     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
12081       libsuff=32 shlibsuff=N32 libmagic=N32;;
12082     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
12083       libsuff=64 shlibsuff=64 libmagic=64-bit;;
12084     *) libsuff= shlibsuff= libmagic=never-match;;
12085     esac
12086     ;;
12087   esac
12088   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
12089   shlibpath_overrides_runpath=no
12090   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
12091   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
12092   hardcode_into_libs=yes
12093   ;;
12094
12095 # No shared lib support for Linux oldld, aout, or coff.
12096 linux*oldld* | linux*aout* | linux*coff*)
12097   dynamic_linker=no
12098   ;;
12099
12100 # This must be Linux ELF.
12101 linux* | k*bsd*-gnu | kopensolaris*-gnu)
12102   version_type=linux
12103   need_lib_prefix=no
12104   need_version=no
12105   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12106   soname_spec='${libname}${release}${shared_ext}$major'
12107   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
12108   shlibpath_var=LD_LIBRARY_PATH
12109   shlibpath_overrides_runpath=no
12110
12111   # Some binutils ld are patched to set DT_RUNPATH
12112   if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
12113   $as_echo_n "(cached) " >&6
12114 else
12115   lt_cv_shlibpath_overrides_runpath=no
12116     save_LDFLAGS=$LDFLAGS
12117     save_libdir=$libdir
12118     eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
12119          LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
12120     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12121 /* end confdefs.h.  */
12122
12123 int
12124 main ()
12125 {
12126
12127   ;
12128   return 0;
12129 }
12130 _ACEOF
12131 if ac_fn_c_try_link "$LINENO"; then :
12132   if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
12133   lt_cv_shlibpath_overrides_runpath=yes
12134 fi
12135 fi
12136 rm -f core conftest.err conftest.$ac_objext \
12137     conftest$ac_exeext conftest.$ac_ext
12138     LDFLAGS=$save_LDFLAGS
12139     libdir=$save_libdir
12140
12141 fi
12142
12143   shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
12144
12145   # This implies no fast_install, which is unacceptable.
12146   # Some rework will be needed to allow for fast_install
12147   # before this can be enabled.
12148   hardcode_into_libs=yes
12149
12150   # Append ld.so.conf contents to the search path
12151   if test -f /etc/ld.so.conf; then
12152     lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[       ]*hwcap[        ]/d;s/[:,      ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;s/"//g;/^$/d' | tr '\n' ' '`
12153     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
12154   fi
12155
12156   # We used to test for /lib/ld.so.1 and disable shared libraries on
12157   # powerpc, because MkLinux only supported shared libraries with the
12158   # GNU dynamic linker.  Since this was broken with cross compilers,
12159   # most powerpc-linux boxes support dynamic linking these days and
12160   # people can always --disable-shared, the test was removed, and we
12161   # assume the GNU/Linux dynamic linker is in use.
12162   dynamic_linker='GNU/Linux ld.so'
12163   ;;
12164
12165 netbsd*)
12166   version_type=sunos
12167   need_lib_prefix=no
12168   need_version=no
12169   if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
12170     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12171     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12172     dynamic_linker='NetBSD (a.out) ld.so'
12173   else
12174     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12175     soname_spec='${libname}${release}${shared_ext}$major'
12176     dynamic_linker='NetBSD ld.elf_so'
12177   fi
12178   shlibpath_var=LD_LIBRARY_PATH
12179   shlibpath_overrides_runpath=yes
12180   hardcode_into_libs=yes
12181   ;;
12182
12183 newsos6)
12184   version_type=linux
12185   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12186   shlibpath_var=LD_LIBRARY_PATH
12187   shlibpath_overrides_runpath=yes
12188   ;;
12189
12190 *nto* | *qnx*)
12191   version_type=qnx
12192   need_lib_prefix=no
12193   need_version=no
12194   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12195   soname_spec='${libname}${release}${shared_ext}$major'
12196   shlibpath_var=LD_LIBRARY_PATH
12197   shlibpath_overrides_runpath=no
12198   hardcode_into_libs=yes
12199   dynamic_linker='ldqnx.so'
12200   ;;
12201
12202 openbsd*)
12203   version_type=sunos
12204   sys_lib_dlsearch_path_spec="/usr/lib"
12205   need_lib_prefix=no
12206   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
12207   case $host_os in
12208     openbsd3.3 | openbsd3.3.*)  need_version=yes ;;
12209     *)                          need_version=no  ;;
12210   esac
12211   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12212   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12213   shlibpath_var=LD_LIBRARY_PATH
12214   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
12215     case $host_os in
12216       openbsd2.[89] | openbsd2.[89].*)
12217         shlibpath_overrides_runpath=no
12218         ;;
12219       *)
12220         shlibpath_overrides_runpath=yes
12221         ;;
12222       esac
12223   else
12224     shlibpath_overrides_runpath=yes
12225   fi
12226   ;;
12227
12228 os2*)
12229   libname_spec='$name'
12230   shrext_cmds=".dll"
12231   need_lib_prefix=no
12232   library_names_spec='$libname${shared_ext} $libname.a'
12233   dynamic_linker='OS/2 ld.exe'
12234   shlibpath_var=LIBPATH
12235   ;;
12236
12237 osf3* | osf4* | osf5*)
12238   version_type=osf
12239   need_lib_prefix=no
12240   need_version=no
12241   soname_spec='${libname}${release}${shared_ext}$major'
12242   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12243   shlibpath_var=LD_LIBRARY_PATH
12244   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
12245   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
12246   ;;
12247
12248 rdos*)
12249   dynamic_linker=no
12250   ;;
12251
12252 solaris*)
12253   version_type=linux
12254   need_lib_prefix=no
12255   need_version=no
12256   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12257   soname_spec='${libname}${release}${shared_ext}$major'
12258   shlibpath_var=LD_LIBRARY_PATH
12259   shlibpath_overrides_runpath=yes
12260   hardcode_into_libs=yes
12261   # ldd complains unless libraries are executable
12262   postinstall_cmds='chmod +x $lib'
12263   ;;
12264
12265 sunos4*)
12266   version_type=sunos
12267   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12268   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
12269   shlibpath_var=LD_LIBRARY_PATH
12270   shlibpath_overrides_runpath=yes
12271   if test "$with_gnu_ld" = yes; then
12272     need_lib_prefix=no
12273   fi
12274   need_version=yes
12275   ;;
12276
12277 sysv4 | sysv4.3*)
12278   version_type=linux
12279   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12280   soname_spec='${libname}${release}${shared_ext}$major'
12281   shlibpath_var=LD_LIBRARY_PATH
12282   case $host_vendor in
12283     sni)
12284       shlibpath_overrides_runpath=no
12285       need_lib_prefix=no
12286       runpath_var=LD_RUN_PATH
12287       ;;
12288     siemens)
12289       need_lib_prefix=no
12290       ;;
12291     motorola)
12292       need_lib_prefix=no
12293       need_version=no
12294       shlibpath_overrides_runpath=no
12295       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
12296       ;;
12297   esac
12298   ;;
12299
12300 sysv4*MP*)
12301   if test -d /usr/nec ;then
12302     version_type=linux
12303     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
12304     soname_spec='$libname${shared_ext}.$major'
12305     shlibpath_var=LD_LIBRARY_PATH
12306   fi
12307   ;;
12308
12309 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
12310   version_type=freebsd-elf
12311   need_lib_prefix=no
12312   need_version=no
12313   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
12314   soname_spec='${libname}${release}${shared_ext}$major'
12315   shlibpath_var=LD_LIBRARY_PATH
12316   shlibpath_overrides_runpath=yes
12317   hardcode_into_libs=yes
12318   if test "$with_gnu_ld" = yes; then
12319     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
12320   else
12321     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
12322     case $host_os in
12323       sco3.2v5*)
12324         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
12325         ;;
12326     esac
12327   fi
12328   sys_lib_dlsearch_path_spec='/usr/lib'
12329   ;;
12330
12331 tpf*)
12332   # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
12333   version_type=linux
12334   need_lib_prefix=no
12335   need_version=no
12336   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12337   shlibpath_var=LD_LIBRARY_PATH
12338   shlibpath_overrides_runpath=no
12339   hardcode_into_libs=yes
12340   ;;
12341
12342 uts4*)
12343   version_type=linux
12344   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12345   soname_spec='${libname}${release}${shared_ext}$major'
12346   shlibpath_var=LD_LIBRARY_PATH
12347   ;;
12348
12349 *)
12350   dynamic_linker=no
12351   ;;
12352 esac
12353 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
12354 $as_echo "$dynamic_linker" >&6; }
12355 test "$dynamic_linker" = no && can_build_shared=no
12356
12357 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
12358 if test "$GCC" = yes; then
12359   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
12360 fi
12361
12362 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
12363   sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
12364 fi
12365 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
12366   sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
12367 fi
12368
12369
12370
12371
12372
12373
12374
12375
12376
12377
12378
12379
12380
12381
12382
12383
12384
12385
12386
12387
12388
12389
12390
12391
12392
12393
12394
12395
12396
12397
12398
12399
12400
12401
12402
12403
12404
12405
12406
12407
12408
12409
12410
12411
12412
12413
12414
12415
12416
12417
12418
12419
12420
12421
12422
12423
12424
12425
12426
12427
12428
12429
12430
12431
12432
12433
12434
12435
12436
12437
12438
12439
12440
12441
12442
12443
12444
12445
12446
12447
12448
12449
12450
12451
12452
12453
12454
12455
12456
12457
12458
12459
12460   { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
12461 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
12462 hardcode_action=
12463 if test -n "$hardcode_libdir_flag_spec" ||
12464    test -n "$runpath_var" ||
12465    test "X$hardcode_automatic" = "Xyes" ; then
12466
12467   # We can hardcode non-existent directories.
12468   if test "$hardcode_direct" != no &&
12469      # If the only mechanism to avoid hardcoding is shlibpath_var, we
12470      # have to relink, otherwise we might link with an installed library
12471      # when we should be linking with a yet-to-be-installed one
12472      ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
12473      test "$hardcode_minus_L" != no; then
12474     # Linking always hardcodes the temporary library directory.
12475     hardcode_action=relink
12476   else
12477     # We can link without hardcoding, and we can hardcode nonexisting dirs.
12478     hardcode_action=immediate
12479   fi
12480 else
12481   # We cannot hardcode anything, or else we can only hardcode existing
12482   # directories.
12483   hardcode_action=unsupported
12484 fi
12485 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
12486 $as_echo "$hardcode_action" >&6; }
12487
12488 if test "$hardcode_action" = relink ||
12489    test "$inherit_rpath" = yes; then
12490   # Fast installation is not supported
12491   enable_fast_install=no
12492 elif test "$shlibpath_overrides_runpath" = yes ||
12493      test "$enable_shared" = no; then
12494   # Fast installation is not necessary
12495   enable_fast_install=needless
12496 fi
12497
12498
12499
12500
12501
12502
12503   if test "x$enable_dlopen" != xyes; then
12504   enable_dlopen=unknown
12505   enable_dlopen_self=unknown
12506   enable_dlopen_self_static=unknown
12507 else
12508   lt_cv_dlopen=no
12509   lt_cv_dlopen_libs=
12510
12511   case $host_os in
12512   beos*)
12513     lt_cv_dlopen="load_add_on"
12514     lt_cv_dlopen_libs=
12515     lt_cv_dlopen_self=yes
12516     ;;
12517
12518   mingw* | pw32* | cegcc*)
12519     lt_cv_dlopen="LoadLibrary"
12520     lt_cv_dlopen_libs=
12521     ;;
12522
12523   cygwin*)
12524     lt_cv_dlopen="dlopen"
12525     lt_cv_dlopen_libs=
12526     ;;
12527
12528   darwin*)
12529   # if libdl is installed we need to link against it
12530     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
12531 $as_echo_n "checking for dlopen in -ldl... " >&6; }
12532 if ${ac_cv_lib_dl_dlopen+:} false; then :
12533   $as_echo_n "(cached) " >&6
12534 else
12535   ac_check_lib_save_LIBS=$LIBS
12536 LIBS="-ldl  $LIBS"
12537 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12538 /* end confdefs.h.  */
12539
12540 /* Override any GCC internal prototype to avoid an error.
12541    Use char because int might match the return type of a GCC
12542    builtin and then its argument prototype would still apply.  */
12543 #ifdef __cplusplus
12544 extern "C"
12545 #endif
12546 char dlopen ();
12547 int
12548 main ()
12549 {
12550 return dlopen ();
12551   ;
12552   return 0;
12553 }
12554 _ACEOF
12555 if ac_fn_c_try_link "$LINENO"; then :
12556   ac_cv_lib_dl_dlopen=yes
12557 else
12558   ac_cv_lib_dl_dlopen=no
12559 fi
12560 rm -f core conftest.err conftest.$ac_objext \
12561     conftest$ac_exeext conftest.$ac_ext
12562 LIBS=$ac_check_lib_save_LIBS
12563 fi
12564 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
12565 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
12566 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
12567   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
12568 else
12569
12570     lt_cv_dlopen="dyld"
12571     lt_cv_dlopen_libs=
12572     lt_cv_dlopen_self=yes
12573
12574 fi
12575
12576     ;;
12577
12578   *)
12579     ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
12580 if test "x$ac_cv_func_shl_load" = xyes; then :
12581   lt_cv_dlopen="shl_load"
12582 else
12583   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
12584 $as_echo_n "checking for shl_load in -ldld... " >&6; }
12585 if ${ac_cv_lib_dld_shl_load+:} false; then :
12586   $as_echo_n "(cached) " >&6
12587 else
12588   ac_check_lib_save_LIBS=$LIBS
12589 LIBS="-ldld  $LIBS"
12590 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12591 /* end confdefs.h.  */
12592
12593 /* Override any GCC internal prototype to avoid an error.
12594    Use char because int might match the return type of a GCC
12595    builtin and then its argument prototype would still apply.  */
12596 #ifdef __cplusplus
12597 extern "C"
12598 #endif
12599 char shl_load ();
12600 int
12601 main ()
12602 {
12603 return shl_load ();
12604   ;
12605   return 0;
12606 }
12607 _ACEOF
12608 if ac_fn_c_try_link "$LINENO"; then :
12609   ac_cv_lib_dld_shl_load=yes
12610 else
12611   ac_cv_lib_dld_shl_load=no
12612 fi
12613 rm -f core conftest.err conftest.$ac_objext \
12614     conftest$ac_exeext conftest.$ac_ext
12615 LIBS=$ac_check_lib_save_LIBS
12616 fi
12617 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
12618 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
12619 if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
12620   lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
12621 else
12622   ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
12623 if test "x$ac_cv_func_dlopen" = xyes; then :
12624   lt_cv_dlopen="dlopen"
12625 else
12626   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
12627 $as_echo_n "checking for dlopen in -ldl... " >&6; }
12628 if ${ac_cv_lib_dl_dlopen+:} false; then :
12629   $as_echo_n "(cached) " >&6
12630 else
12631   ac_check_lib_save_LIBS=$LIBS
12632 LIBS="-ldl  $LIBS"
12633 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12634 /* end confdefs.h.  */
12635
12636 /* Override any GCC internal prototype to avoid an error.
12637    Use char because int might match the return type of a GCC
12638    builtin and then its argument prototype would still apply.  */
12639 #ifdef __cplusplus
12640 extern "C"
12641 #endif
12642 char dlopen ();
12643 int
12644 main ()
12645 {
12646 return dlopen ();
12647   ;
12648   return 0;
12649 }
12650 _ACEOF
12651 if ac_fn_c_try_link "$LINENO"; then :
12652   ac_cv_lib_dl_dlopen=yes
12653 else
12654   ac_cv_lib_dl_dlopen=no
12655 fi
12656 rm -f core conftest.err conftest.$ac_objext \
12657     conftest$ac_exeext conftest.$ac_ext
12658 LIBS=$ac_check_lib_save_LIBS
12659 fi
12660 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
12661 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
12662 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
12663   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
12664 else
12665   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
12666 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
12667 if ${ac_cv_lib_svld_dlopen+:} false; then :
12668   $as_echo_n "(cached) " >&6
12669 else
12670   ac_check_lib_save_LIBS=$LIBS
12671 LIBS="-lsvld  $LIBS"
12672 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12673 /* end confdefs.h.  */
12674
12675 /* Override any GCC internal prototype to avoid an error.
12676    Use char because int might match the return type of a GCC
12677    builtin and then its argument prototype would still apply.  */
12678 #ifdef __cplusplus
12679 extern "C"
12680 #endif
12681 char dlopen ();
12682 int
12683 main ()
12684 {
12685 return dlopen ();
12686   ;
12687   return 0;
12688 }
12689 _ACEOF
12690 if ac_fn_c_try_link "$LINENO"; then :
12691   ac_cv_lib_svld_dlopen=yes
12692 else
12693   ac_cv_lib_svld_dlopen=no
12694 fi
12695 rm -f core conftest.err conftest.$ac_objext \
12696     conftest$ac_exeext conftest.$ac_ext
12697 LIBS=$ac_check_lib_save_LIBS
12698 fi
12699 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
12700 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
12701 if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
12702   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
12703 else
12704   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
12705 $as_echo_n "checking for dld_link in -ldld... " >&6; }
12706 if ${ac_cv_lib_dld_dld_link+:} false; then :
12707   $as_echo_n "(cached) " >&6
12708 else
12709   ac_check_lib_save_LIBS=$LIBS
12710 LIBS="-ldld  $LIBS"
12711 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12712 /* end confdefs.h.  */
12713
12714 /* Override any GCC internal prototype to avoid an error.
12715    Use char because int might match the return type of a GCC
12716    builtin and then its argument prototype would still apply.  */
12717 #ifdef __cplusplus
12718 extern "C"
12719 #endif
12720 char dld_link ();
12721 int
12722 main ()
12723 {
12724 return dld_link ();
12725   ;
12726   return 0;
12727 }
12728 _ACEOF
12729 if ac_fn_c_try_link "$LINENO"; then :
12730   ac_cv_lib_dld_dld_link=yes
12731 else
12732   ac_cv_lib_dld_dld_link=no
12733 fi
12734 rm -f core conftest.err conftest.$ac_objext \
12735     conftest$ac_exeext conftest.$ac_ext
12736 LIBS=$ac_check_lib_save_LIBS
12737 fi
12738 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
12739 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
12740 if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
12741   lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
12742 fi
12743
12744
12745 fi
12746
12747
12748 fi
12749
12750
12751 fi
12752
12753
12754 fi
12755
12756
12757 fi
12758
12759     ;;
12760   esac
12761
12762   if test "x$lt_cv_dlopen" != xno; then
12763     enable_dlopen=yes
12764   else
12765     enable_dlopen=no
12766   fi
12767
12768   case $lt_cv_dlopen in
12769   dlopen)
12770     save_CPPFLAGS="$CPPFLAGS"
12771     test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
12772
12773     save_LDFLAGS="$LDFLAGS"
12774     wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
12775
12776     save_LIBS="$LIBS"
12777     LIBS="$lt_cv_dlopen_libs $LIBS"
12778
12779     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
12780 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
12781 if ${lt_cv_dlopen_self+:} false; then :
12782   $as_echo_n "(cached) " >&6
12783 else
12784           if test "$cross_compiling" = yes; then :
12785   lt_cv_dlopen_self=cross
12786 else
12787   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12788   lt_status=$lt_dlunknown
12789   cat > conftest.$ac_ext <<_LT_EOF
12790 #line $LINENO "configure"
12791 #include "confdefs.h"
12792
12793 #if HAVE_DLFCN_H
12794 #include <dlfcn.h>
12795 #endif
12796
12797 #include <stdio.h>
12798
12799 #ifdef RTLD_GLOBAL
12800 #  define LT_DLGLOBAL           RTLD_GLOBAL
12801 #else
12802 #  ifdef DL_GLOBAL
12803 #    define LT_DLGLOBAL         DL_GLOBAL
12804 #  else
12805 #    define LT_DLGLOBAL         0
12806 #  endif
12807 #endif
12808
12809 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12810    find out it does not work in some platform. */
12811 #ifndef LT_DLLAZY_OR_NOW
12812 #  ifdef RTLD_LAZY
12813 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
12814 #  else
12815 #    ifdef DL_LAZY
12816 #      define LT_DLLAZY_OR_NOW          DL_LAZY
12817 #    else
12818 #      ifdef RTLD_NOW
12819 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
12820 #      else
12821 #        ifdef DL_NOW
12822 #          define LT_DLLAZY_OR_NOW      DL_NOW
12823 #        else
12824 #          define LT_DLLAZY_OR_NOW      0
12825 #        endif
12826 #      endif
12827 #    endif
12828 #  endif
12829 #endif
12830
12831 /* When -fvisbility=hidden is used, assume the code has been annotated
12832    correspondingly for the symbols needed.  */
12833 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
12834 int fnord () __attribute__((visibility("default")));
12835 #endif
12836
12837 int fnord () { return 42; }
12838 int main ()
12839 {
12840   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12841   int status = $lt_dlunknown;
12842
12843   if (self)
12844     {
12845       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
12846       else
12847         {
12848           if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
12849           else puts (dlerror ());
12850         }
12851       /* dlclose (self); */
12852     }
12853   else
12854     puts (dlerror ());
12855
12856   return status;
12857 }
12858 _LT_EOF
12859   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12860   (eval $ac_link) 2>&5
12861   ac_status=$?
12862   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12863   test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
12864     (./conftest; exit; ) >&5 2>/dev/null
12865     lt_status=$?
12866     case x$lt_status in
12867       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
12868       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
12869       x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
12870     esac
12871   else :
12872     # compilation failed
12873     lt_cv_dlopen_self=no
12874   fi
12875 fi
12876 rm -fr conftest*
12877
12878
12879 fi
12880 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
12881 $as_echo "$lt_cv_dlopen_self" >&6; }
12882
12883     if test "x$lt_cv_dlopen_self" = xyes; then
12884       wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
12885       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
12886 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
12887 if ${lt_cv_dlopen_self_static+:} false; then :
12888   $as_echo_n "(cached) " >&6
12889 else
12890           if test "$cross_compiling" = yes; then :
12891   lt_cv_dlopen_self_static=cross
12892 else
12893   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12894   lt_status=$lt_dlunknown
12895   cat > conftest.$ac_ext <<_LT_EOF
12896 #line $LINENO "configure"
12897 #include "confdefs.h"
12898
12899 #if HAVE_DLFCN_H
12900 #include <dlfcn.h>
12901 #endif
12902
12903 #include <stdio.h>
12904
12905 #ifdef RTLD_GLOBAL
12906 #  define LT_DLGLOBAL           RTLD_GLOBAL
12907 #else
12908 #  ifdef DL_GLOBAL
12909 #    define LT_DLGLOBAL         DL_GLOBAL
12910 #  else
12911 #    define LT_DLGLOBAL         0
12912 #  endif
12913 #endif
12914
12915 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12916    find out it does not work in some platform. */
12917 #ifndef LT_DLLAZY_OR_NOW
12918 #  ifdef RTLD_LAZY
12919 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
12920 #  else
12921 #    ifdef DL_LAZY
12922 #      define LT_DLLAZY_OR_NOW          DL_LAZY
12923 #    else
12924 #      ifdef RTLD_NOW
12925 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
12926 #      else
12927 #        ifdef DL_NOW
12928 #          define LT_DLLAZY_OR_NOW      DL_NOW
12929 #        else
12930 #          define LT_DLLAZY_OR_NOW      0
12931 #        endif
12932 #      endif
12933 #    endif
12934 #  endif
12935 #endif
12936
12937 /* When -fvisbility=hidden is used, assume the code has been annotated
12938    correspondingly for the symbols needed.  */
12939 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
12940 int fnord () __attribute__((visibility("default")));
12941 #endif
12942
12943 int fnord () { return 42; }
12944 int main ()
12945 {
12946   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12947   int status = $lt_dlunknown;
12948
12949   if (self)
12950     {
12951       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
12952       else
12953         {
12954           if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
12955           else puts (dlerror ());
12956         }
12957       /* dlclose (self); */
12958     }
12959   else
12960     puts (dlerror ());
12961
12962   return status;
12963 }
12964 _LT_EOF
12965   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12966   (eval $ac_link) 2>&5
12967   ac_status=$?
12968   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12969   test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
12970     (./conftest; exit; ) >&5 2>/dev/null
12971     lt_status=$?
12972     case x$lt_status in
12973       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
12974       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
12975       x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
12976     esac
12977   else :
12978     # compilation failed
12979     lt_cv_dlopen_self_static=no
12980   fi
12981 fi
12982 rm -fr conftest*
12983
12984
12985 fi
12986 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
12987 $as_echo "$lt_cv_dlopen_self_static" >&6; }
12988     fi
12989
12990     CPPFLAGS="$save_CPPFLAGS"
12991     LDFLAGS="$save_LDFLAGS"
12992     LIBS="$save_LIBS"
12993     ;;
12994   esac
12995
12996   case $lt_cv_dlopen_self in
12997   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
12998   *) enable_dlopen_self=unknown ;;
12999   esac
13000
13001   case $lt_cv_dlopen_self_static in
13002   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
13003   *) enable_dlopen_self_static=unknown ;;
13004   esac
13005 fi
13006
13007
13008
13009
13010
13011
13012
13013
13014
13015
13016
13017
13018
13019
13020
13021
13022
13023 striplib=
13024 old_striplib=
13025 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
13026 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
13027 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
13028   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
13029   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
13030   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13031 $as_echo "yes" >&6; }
13032 else
13033 # FIXME - insert some real tests, host_os isn't really good enough
13034   case $host_os in
13035   darwin*)
13036     if test -n "$STRIP" ; then
13037       striplib="$STRIP -x"
13038       old_striplib="$STRIP -S"
13039       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13040 $as_echo "yes" >&6; }
13041     else
13042       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13043 $as_echo "no" >&6; }
13044     fi
13045     ;;
13046   *)
13047     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13048 $as_echo "no" >&6; }
13049     ;;
13050   esac
13051 fi
13052
13053
13054
13055
13056
13057
13058
13059
13060
13061
13062
13063
13064   # Report which library types will actually be built
13065   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
13066 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
13067   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
13068 $as_echo "$can_build_shared" >&6; }
13069
13070   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
13071 $as_echo_n "checking whether to build shared libraries... " >&6; }
13072   test "$can_build_shared" = "no" && enable_shared=no
13073
13074   # On AIX, shared libraries and static libraries use the same namespace, and
13075   # are all built from PIC.
13076   case $host_os in
13077   aix3*)
13078     test "$enable_shared" = yes && enable_static=no
13079     if test -n "$RANLIB"; then
13080       archive_cmds="$archive_cmds~\$RANLIB \$lib"
13081       postinstall_cmds='$RANLIB $lib'
13082     fi
13083     ;;
13084
13085   aix[4-9]*)
13086     if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
13087       test "$enable_shared" = yes && enable_static=no
13088     fi
13089     ;;
13090   esac
13091   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
13092 $as_echo "$enable_shared" >&6; }
13093
13094   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
13095 $as_echo_n "checking whether to build static libraries... " >&6; }
13096   # Make sure either enable_shared or enable_static is yes.
13097   test "$enable_shared" = yes || enable_static=yes
13098   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
13099 $as_echo "$enable_static" >&6; }
13100
13101
13102
13103
13104 fi
13105 ac_ext=c
13106 ac_cpp='$CPP $CPPFLAGS'
13107 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13108 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13109 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13110
13111 CC="$lt_save_CC"
13112
13113       if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
13114     ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
13115     (test "X$CXX" != "Xg++"))) ; then
13116   ac_ext=cpp
13117 ac_cpp='$CXXCPP $CPPFLAGS'
13118 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13119 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13120 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
13121 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
13122 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
13123 if test -z "$CXXCPP"; then
13124   if ${ac_cv_prog_CXXCPP+:} false; then :
13125   $as_echo_n "(cached) " >&6
13126 else
13127       # Double quotes because CXXCPP needs to be expanded
13128     for CXXCPP in "$CXX -E" "/lib/cpp"
13129     do
13130       ac_preproc_ok=false
13131 for ac_cxx_preproc_warn_flag in '' yes
13132 do
13133   # Use a header file that comes with gcc, so configuring glibc
13134   # with a fresh cross-compiler works.
13135   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13136   # <limits.h> exists even on freestanding compilers.
13137   # On the NeXT, cc -E runs the code through the compiler's parser,
13138   # not just through cpp. "Syntax error" is here to catch this case.
13139   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13140 /* end confdefs.h.  */
13141 #ifdef __STDC__
13142 # include <limits.h>
13143 #else
13144 # include <assert.h>
13145 #endif
13146                      Syntax error
13147 _ACEOF
13148 if ac_fn_cxx_try_cpp "$LINENO"; then :
13149
13150 else
13151   # Broken: fails on valid input.
13152 continue
13153 fi
13154 rm -f conftest.err conftest.i conftest.$ac_ext
13155
13156   # OK, works on sane cases.  Now check whether nonexistent headers
13157   # can be detected and how.
13158   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13159 /* end confdefs.h.  */
13160 #include <ac_nonexistent.h>
13161 _ACEOF
13162 if ac_fn_cxx_try_cpp "$LINENO"; then :
13163   # Broken: success on invalid input.
13164 continue
13165 else
13166   # Passes both tests.
13167 ac_preproc_ok=:
13168 break
13169 fi
13170 rm -f conftest.err conftest.i conftest.$ac_ext
13171
13172 done
13173 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
13174 rm -f conftest.i conftest.err conftest.$ac_ext
13175 if $ac_preproc_ok; then :
13176   break
13177 fi
13178
13179     done
13180     ac_cv_prog_CXXCPP=$CXXCPP
13181
13182 fi
13183   CXXCPP=$ac_cv_prog_CXXCPP
13184 else
13185   ac_cv_prog_CXXCPP=$CXXCPP
13186 fi
13187 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
13188 $as_echo "$CXXCPP" >&6; }
13189 ac_preproc_ok=false
13190 for ac_cxx_preproc_warn_flag in '' yes
13191 do
13192   # Use a header file that comes with gcc, so configuring glibc
13193   # with a fresh cross-compiler works.
13194   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13195   # <limits.h> exists even on freestanding compilers.
13196   # On the NeXT, cc -E runs the code through the compiler's parser,
13197   # not just through cpp. "Syntax error" is here to catch this case.
13198   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13199 /* end confdefs.h.  */
13200 #ifdef __STDC__
13201 # include <limits.h>
13202 #else
13203 # include <assert.h>
13204 #endif
13205                      Syntax error
13206 _ACEOF
13207 if ac_fn_cxx_try_cpp "$LINENO"; then :
13208
13209 else
13210   # Broken: fails on valid input.
13211 continue
13212 fi
13213 rm -f conftest.err conftest.i conftest.$ac_ext
13214
13215   # OK, works on sane cases.  Now check whether nonexistent headers
13216   # can be detected and how.
13217   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13218 /* end confdefs.h.  */
13219 #include <ac_nonexistent.h>
13220 _ACEOF
13221 if ac_fn_cxx_try_cpp "$LINENO"; then :
13222   # Broken: success on invalid input.
13223 continue
13224 else
13225   # Passes both tests.
13226 ac_preproc_ok=:
13227 break
13228 fi
13229 rm -f conftest.err conftest.i conftest.$ac_ext
13230
13231 done
13232 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
13233 rm -f conftest.i conftest.err conftest.$ac_ext
13234 if $ac_preproc_ok; then :
13235
13236 else
13237   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
13238 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
13239 as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check
13240 See \`config.log' for more details" "$LINENO" 5; }
13241 fi
13242
13243 ac_ext=c
13244 ac_cpp='$CPP $CPPFLAGS'
13245 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13246 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13247 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13248
13249 else
13250   _lt_caught_CXX_error=yes
13251 fi
13252
13253 ac_ext=cpp
13254 ac_cpp='$CXXCPP $CPPFLAGS'
13255 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13256 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13257 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
13258
13259 archive_cmds_need_lc_CXX=no
13260 allow_undefined_flag_CXX=
13261 always_export_symbols_CXX=no
13262 archive_expsym_cmds_CXX=
13263 compiler_needs_object_CXX=no
13264 export_dynamic_flag_spec_CXX=
13265 hardcode_direct_CXX=no
13266 hardcode_direct_absolute_CXX=no
13267 hardcode_libdir_flag_spec_CXX=
13268 hardcode_libdir_flag_spec_ld_CXX=
13269 hardcode_libdir_separator_CXX=
13270 hardcode_minus_L_CXX=no
13271 hardcode_shlibpath_var_CXX=unsupported
13272 hardcode_automatic_CXX=no
13273 inherit_rpath_CXX=no
13274 module_cmds_CXX=
13275 module_expsym_cmds_CXX=
13276 link_all_deplibs_CXX=unknown
13277 old_archive_cmds_CXX=$old_archive_cmds
13278 reload_flag_CXX=$reload_flag
13279 reload_cmds_CXX=$reload_cmds
13280 no_undefined_flag_CXX=
13281 whole_archive_flag_spec_CXX=
13282 enable_shared_with_static_runtimes_CXX=no
13283
13284 # Source file extension for C++ test sources.
13285 ac_ext=cpp
13286
13287 # Object file extension for compiled C++ test sources.
13288 objext=o
13289 objext_CXX=$objext
13290
13291 # No sense in running all these tests if we already determined that
13292 # the CXX compiler isn't working.  Some variables (like enable_shared)
13293 # are currently assumed to apply to all compilers on this platform,
13294 # and will be corrupted by setting them based on a non-working compiler.
13295 if test "$_lt_caught_CXX_error" != yes; then
13296   # Code to be used in simple compile tests
13297   lt_simple_compile_test_code="int some_variable = 0;"
13298
13299   # Code to be used in simple link tests
13300   lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
13301
13302   # ltmain only uses $CC for tagged configurations so make sure $CC is set.
13303
13304
13305
13306
13307
13308
13309 # If no C compiler was specified, use CC.
13310 LTCC=${LTCC-"$CC"}
13311
13312 # If no C compiler flags were specified, use CFLAGS.
13313 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
13314
13315 # Allow CC to be a program name with arguments.
13316 compiler=$CC
13317
13318
13319   # save warnings/boilerplate of simple test code
13320   ac_outfile=conftest.$ac_objext
13321 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
13322 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
13323 _lt_compiler_boilerplate=`cat conftest.err`
13324 $RM conftest*
13325
13326   ac_outfile=conftest.$ac_objext
13327 echo "$lt_simple_link_test_code" >conftest.$ac_ext
13328 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
13329 _lt_linker_boilerplate=`cat conftest.err`
13330 $RM -r conftest*
13331
13332
13333   # Allow CC to be a program name with arguments.
13334   lt_save_CC=$CC
13335   lt_save_CFLAGS=$CFLAGS
13336   lt_save_LD=$LD
13337   lt_save_GCC=$GCC
13338   GCC=$GXX
13339   lt_save_with_gnu_ld=$with_gnu_ld
13340   lt_save_path_LD=$lt_cv_path_LD
13341   if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
13342     lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
13343   else
13344     $as_unset lt_cv_prog_gnu_ld
13345   fi
13346   if test -n "${lt_cv_path_LDCXX+set}"; then
13347     lt_cv_path_LD=$lt_cv_path_LDCXX
13348   else
13349     $as_unset lt_cv_path_LD
13350   fi
13351   test -z "${LDCXX+set}" || LD=$LDCXX
13352   CC=${CXX-"c++"}
13353   CFLAGS=$CXXFLAGS
13354   compiler=$CC
13355   compiler_CXX=$CC
13356   for cc_temp in $compiler""; do
13357   case $cc_temp in
13358     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
13359     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
13360     \-*) ;;
13361     *) break;;
13362   esac
13363 done
13364 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
13365
13366
13367   if test -n "$compiler"; then
13368     # We don't want -fno-exception when compiling C++ code, so set the
13369     # no_builtin_flag separately
13370     if test "$GXX" = yes; then
13371       lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
13372     else
13373       lt_prog_compiler_no_builtin_flag_CXX=
13374     fi
13375
13376     if test "$GXX" = yes; then
13377       # Set up default GNU C++ configuration
13378
13379
13380
13381 # Check whether --with-gnu-ld was given.
13382 if test "${with_gnu_ld+set}" = set; then :
13383   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
13384 else
13385   with_gnu_ld=no
13386 fi
13387
13388 ac_prog=ld
13389 if test "$GCC" = yes; then
13390   # Check if gcc -print-prog-name=ld gives a path.
13391   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
13392 $as_echo_n "checking for ld used by $CC... " >&6; }
13393   case $host in
13394   *-*-mingw*)
13395     # gcc leaves a trailing carriage return which upsets mingw
13396     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
13397   *)
13398     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
13399   esac
13400   case $ac_prog in
13401     # Accept absolute paths.
13402     [\\/]* | ?:[\\/]*)
13403       re_direlt='/[^/][^/]*/\.\./'
13404       # Canonicalize the pathname of ld
13405       ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
13406       while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
13407         ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
13408       done
13409       test -z "$LD" && LD="$ac_prog"
13410       ;;
13411   "")
13412     # If it fails, then pretend we aren't using GCC.
13413     ac_prog=ld
13414     ;;
13415   *)
13416     # If it is relative, then search for the first ld in PATH.
13417     with_gnu_ld=unknown
13418     ;;
13419   esac
13420 elif test "$with_gnu_ld" = yes; then
13421   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
13422 $as_echo_n "checking for GNU ld... " >&6; }
13423 else
13424   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
13425 $as_echo_n "checking for non-GNU ld... " >&6; }
13426 fi
13427 if ${lt_cv_path_LD+:} false; then :
13428   $as_echo_n "(cached) " >&6
13429 else
13430   if test -z "$LD"; then
13431   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
13432   for ac_dir in $PATH; do
13433     IFS="$lt_save_ifs"
13434     test -z "$ac_dir" && ac_dir=.
13435     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
13436       lt_cv_path_LD="$ac_dir/$ac_prog"
13437       # Check to see if the program is GNU ld.  I'd rather use --version,
13438       # but apparently some variants of GNU ld only accept -v.
13439       # Break only if it was the GNU/non-GNU ld that we prefer.
13440       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
13441       *GNU* | *'with BFD'*)
13442         test "$with_gnu_ld" != no && break
13443         ;;
13444       *)
13445         test "$with_gnu_ld" != yes && break
13446         ;;
13447       esac
13448     fi
13449   done
13450   IFS="$lt_save_ifs"
13451 else
13452   lt_cv_path_LD="$LD" # Let the user override the test with a path.
13453 fi
13454 fi
13455
13456 LD="$lt_cv_path_LD"
13457 if test -n "$LD"; then
13458   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
13459 $as_echo "$LD" >&6; }
13460 else
13461   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13462 $as_echo "no" >&6; }
13463 fi
13464 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
13465 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
13466 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
13467 if ${lt_cv_prog_gnu_ld+:} false; then :
13468   $as_echo_n "(cached) " >&6
13469 else
13470   # I'd rather use --version here, but apparently some GNU lds only accept -v.
13471 case `$LD -v 2>&1 </dev/null` in
13472 *GNU* | *'with BFD'*)
13473   lt_cv_prog_gnu_ld=yes
13474   ;;
13475 *)
13476   lt_cv_prog_gnu_ld=no
13477   ;;
13478 esac
13479 fi
13480 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
13481 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
13482 with_gnu_ld=$lt_cv_prog_gnu_ld
13483
13484
13485
13486
13487
13488
13489
13490       # Check if GNU C++ uses GNU ld as the underlying linker, since the
13491       # archiving commands below assume that GNU ld is being used.
13492       if test "$with_gnu_ld" = yes; then
13493         archive_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
13494         archive_expsym_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13495
13496         hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13497         export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13498
13499         # If archive_cmds runs LD, not CC, wlarc should be empty
13500         # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
13501         #     investigate it a little bit more. (MM)
13502         wlarc='${wl}'
13503
13504         # ancient GNU ld didn't support --whole-archive et. al.
13505         if eval "`$CC -print-prog-name=ld` --help 2>&1" |
13506           $GREP 'no-whole-archive' > /dev/null; then
13507           whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
13508         else
13509           whole_archive_flag_spec_CXX=
13510         fi
13511       else
13512         with_gnu_ld=no
13513         wlarc=
13514
13515         # A generic and very simple default shared library creation
13516         # command for GNU C++ for the case where it uses the native
13517         # linker, instead of GNU ld.  If possible, this setting should
13518         # overridden to take advantage of the native linker features on
13519         # the platform it is being used on.
13520         archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
13521       fi
13522
13523       # Commands to make compiler produce verbose output that lists
13524       # what "hidden" libraries, object files and flags are used when
13525       # linking a shared library.
13526       output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
13527
13528     else
13529       GXX=no
13530       with_gnu_ld=no
13531       wlarc=
13532     fi
13533
13534     # PORTME: fill in a description of your system's C++ link characteristics
13535     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
13536 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
13537     ld_shlibs_CXX=yes
13538     case $host_os in
13539       aix3*)
13540         # FIXME: insert proper C++ library support
13541         ld_shlibs_CXX=no
13542         ;;
13543       aix[4-9]*)
13544         if test "$host_cpu" = ia64; then
13545           # On IA64, the linker does run time linking by default, so we don't
13546           # have to do anything special.
13547           aix_use_runtimelinking=no
13548           exp_sym_flag='-Bexport'
13549           no_entry_flag=""
13550         else
13551           aix_use_runtimelinking=no
13552
13553           # Test if we are trying to use run time linking or normal
13554           # AIX style linking. If -brtl is somewhere in LDFLAGS, we
13555           # need to do runtime linking.
13556           case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
13557             for ld_flag in $LDFLAGS; do
13558               case $ld_flag in
13559               *-brtl*)
13560                 aix_use_runtimelinking=yes
13561                 break
13562                 ;;
13563               esac
13564             done
13565             ;;
13566           esac
13567
13568           exp_sym_flag='-bexport'
13569           no_entry_flag='-bnoentry'
13570         fi
13571
13572         # When large executables or shared objects are built, AIX ld can
13573         # have problems creating the table of contents.  If linking a library
13574         # or program results in "error TOC overflow" add -mminimal-toc to
13575         # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
13576         # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
13577
13578         archive_cmds_CXX=''
13579         hardcode_direct_CXX=yes
13580         hardcode_direct_absolute_CXX=yes
13581         hardcode_libdir_separator_CXX=':'
13582         link_all_deplibs_CXX=yes
13583         file_list_spec_CXX='${wl}-f,'
13584
13585         if test "$GXX" = yes; then
13586           case $host_os in aix4.[012]|aix4.[012].*)
13587           # We only want to do this on AIX 4.2 and lower, the check
13588           # below for broken collect2 doesn't work under 4.3+
13589           collect2name=`${CC} -print-prog-name=collect2`
13590           if test -f "$collect2name" &&
13591              strings "$collect2name" | $GREP resolve_lib_name >/dev/null
13592           then
13593             # We have reworked collect2
13594             :
13595           else
13596             # We have old collect2
13597             hardcode_direct_CXX=unsupported
13598             # It fails to find uninstalled libraries when the uninstalled
13599             # path is not listed in the libpath.  Setting hardcode_minus_L
13600             # to unsupported forces relinking
13601             hardcode_minus_L_CXX=yes
13602             hardcode_libdir_flag_spec_CXX='-L$libdir'
13603             hardcode_libdir_separator_CXX=
13604           fi
13605           esac
13606           shared_flag='-shared'
13607           if test "$aix_use_runtimelinking" = yes; then
13608             shared_flag="$shared_flag "'${wl}-G'
13609           fi
13610         else
13611           # not using gcc
13612           if test "$host_cpu" = ia64; then
13613           # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
13614           # chokes on -Wl,-G. The following line is correct:
13615           shared_flag='-G'
13616           else
13617             if test "$aix_use_runtimelinking" = yes; then
13618               shared_flag='${wl}-G'
13619             else
13620               shared_flag='${wl}-bM:SRE'
13621             fi
13622           fi
13623         fi
13624
13625         export_dynamic_flag_spec_CXX='${wl}-bexpall'
13626         # It seems that -bexpall does not export symbols beginning with
13627         # underscore (_), so it is better to generate a list of symbols to
13628         # export.
13629         always_export_symbols_CXX=yes
13630         if test "$aix_use_runtimelinking" = yes; then
13631           # Warning - without using the other runtime loading flags (-brtl),
13632           # -berok will link without error, but may produce a broken library.
13633           allow_undefined_flag_CXX='-berok'
13634           # Determine the default libpath from the value encoded in an empty
13635           # executable.
13636           if test "${lt_cv_aix_libpath+set}" = set; then
13637   aix_libpath=$lt_cv_aix_libpath
13638 else
13639   if ${lt_cv_aix_libpath__CXX+:} false; then :
13640   $as_echo_n "(cached) " >&6
13641 else
13642   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13643 /* end confdefs.h.  */
13644
13645 int
13646 main ()
13647 {
13648
13649   ;
13650   return 0;
13651 }
13652 _ACEOF
13653 if ac_fn_cxx_try_link "$LINENO"; then :
13654
13655   lt_aix_libpath_sed='
13656       /Import File Strings/,/^$/ {
13657           /^0/ {
13658               s/^0  *\([^ ]*\) *$/\1/
13659               p
13660           }
13661       }'
13662   lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13663   # Check for a 64-bit object if we didn't find anything.
13664   if test -z "$lt_cv_aix_libpath__CXX"; then
13665     lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13666   fi
13667 fi
13668 rm -f core conftest.err conftest.$ac_objext \
13669     conftest$ac_exeext conftest.$ac_ext
13670   if test -z "$lt_cv_aix_libpath__CXX"; then
13671     lt_cv_aix_libpath__CXX="/usr/lib:/lib"
13672   fi
13673
13674 fi
13675
13676   aix_libpath=$lt_cv_aix_libpath__CXX
13677 fi
13678
13679           hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
13680
13681           archive_expsym_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then func_echo_all "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
13682         else
13683           if test "$host_cpu" = ia64; then
13684             hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
13685             allow_undefined_flag_CXX="-z nodefs"
13686             archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols"
13687           else
13688             # Determine the default libpath from the value encoded in an
13689             # empty executable.
13690             if test "${lt_cv_aix_libpath+set}" = set; then
13691   aix_libpath=$lt_cv_aix_libpath
13692 else
13693   if ${lt_cv_aix_libpath__CXX+:} false; then :
13694   $as_echo_n "(cached) " >&6
13695 else
13696   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13697 /* end confdefs.h.  */
13698
13699 int
13700 main ()
13701 {
13702
13703   ;
13704   return 0;
13705 }
13706 _ACEOF
13707 if ac_fn_cxx_try_link "$LINENO"; then :
13708
13709   lt_aix_libpath_sed='
13710       /Import File Strings/,/^$/ {
13711           /^0/ {
13712               s/^0  *\([^ ]*\) *$/\1/
13713               p
13714           }
13715       }'
13716   lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13717   # Check for a 64-bit object if we didn't find anything.
13718   if test -z "$lt_cv_aix_libpath__CXX"; then
13719     lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13720   fi
13721 fi
13722 rm -f core conftest.err conftest.$ac_objext \
13723     conftest$ac_exeext conftest.$ac_ext
13724   if test -z "$lt_cv_aix_libpath__CXX"; then
13725     lt_cv_aix_libpath__CXX="/usr/lib:/lib"
13726   fi
13727
13728 fi
13729
13730   aix_libpath=$lt_cv_aix_libpath__CXX
13731 fi
13732
13733             hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
13734             # Warning - without using the other run time loading flags,
13735             # -berok will link without error, but may produce a broken library.
13736             no_undefined_flag_CXX=' ${wl}-bernotok'
13737             allow_undefined_flag_CXX=' ${wl}-berok'
13738             if test "$with_gnu_ld" = yes; then
13739               # We only use this code for GNU lds that support --whole-archive.
13740               whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
13741             else
13742               # Exported symbols can be pulled into shared objects from archives
13743               whole_archive_flag_spec_CXX='$convenience'
13744             fi
13745             archive_cmds_need_lc_CXX=yes
13746             # This is similar to how AIX traditionally builds its shared
13747             # libraries.
13748             archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
13749           fi
13750         fi
13751         ;;
13752
13753       beos*)
13754         if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
13755           allow_undefined_flag_CXX=unsupported
13756           # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
13757           # support --undefined.  This deserves some investigation.  FIXME
13758           archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13759         else
13760           ld_shlibs_CXX=no
13761         fi
13762         ;;
13763
13764       chorus*)
13765         case $cc_basename in
13766           *)
13767           # FIXME: insert proper C++ library support
13768           ld_shlibs_CXX=no
13769           ;;
13770         esac
13771         ;;
13772
13773       cygwin* | mingw* | pw32* | cegcc*)
13774         case $GXX,$cc_basename in
13775         ,cl* | no,cl*)
13776           # Native MSVC
13777           # hardcode_libdir_flag_spec is actually meaningless, as there is
13778           # no search path for DLLs.
13779           hardcode_libdir_flag_spec_CXX=' '
13780           allow_undefined_flag_CXX=unsupported
13781           always_export_symbols_CXX=yes
13782           file_list_spec_CXX='@'
13783           # Tell ltmain to make .lib files, not .a files.
13784           libext=lib
13785           # Tell ltmain to make .dll files, not .so files.
13786           shrext_cmds=".dll"
13787           # FIXME: Setting linknames here is a bad hack.
13788           archive_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
13789           archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
13790               $SED -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
13791             else
13792               $SED -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
13793             fi~
13794             $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
13795             linknames='
13796           # The linker will not automatically build a static lib if we build a DLL.
13797           # _LT_TAGVAR(old_archive_from_new_cmds, CXX)='true'
13798           enable_shared_with_static_runtimes_CXX=yes
13799           # Don't use ranlib
13800           old_postinstall_cmds_CXX='chmod 644 $oldlib'
13801           postlink_cmds_CXX='lt_outputfile="@OUTPUT@"~
13802             lt_tool_outputfile="@TOOL_OUTPUT@"~
13803             case $lt_outputfile in
13804               *.exe|*.EXE) ;;
13805               *)
13806                 lt_outputfile="$lt_outputfile.exe"
13807                 lt_tool_outputfile="$lt_tool_outputfile.exe"
13808                 ;;
13809             esac~
13810             func_to_tool_file "$lt_outputfile"~
13811             if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
13812               $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
13813               $RM "$lt_outputfile.manifest";
13814             fi'
13815           ;;
13816         *)
13817           # g++
13818           # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
13819           # as there is no search path for DLLs.
13820           hardcode_libdir_flag_spec_CXX='-L$libdir'
13821           export_dynamic_flag_spec_CXX='${wl}--export-all-symbols'
13822           allow_undefined_flag_CXX=unsupported
13823           always_export_symbols_CXX=no
13824           enable_shared_with_static_runtimes_CXX=yes
13825
13826           if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
13827             archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
13828             # If the export-symbols file already is a .def file (1st line
13829             # is EXPORTS), use it as is; otherwise, prepend...
13830             archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
13831               cp $export_symbols $output_objdir/$soname.def;
13832             else
13833               echo EXPORTS > $output_objdir/$soname.def;
13834               cat $export_symbols >> $output_objdir/$soname.def;
13835             fi~
13836             $CC -shared -nostdlib $output_objdir/$soname.def $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
13837           else
13838             ld_shlibs_CXX=no
13839           fi
13840           ;;
13841         esac
13842         ;;
13843       darwin* | rhapsody*)
13844
13845
13846   archive_cmds_need_lc_CXX=no
13847   hardcode_direct_CXX=no
13848   hardcode_automatic_CXX=yes
13849   hardcode_shlibpath_var_CXX=unsupported
13850   if test "$lt_cv_ld_force_load" = "yes"; then
13851     whole_archive_flag_spec_CXX='`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience ${wl}-force_load,$conv\"; done; func_echo_all \"$new_convenience\"`'
13852   else
13853     whole_archive_flag_spec_CXX=''
13854   fi
13855   link_all_deplibs_CXX=yes
13856   allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
13857   case $cc_basename in
13858      ifort*) _lt_dar_can_shared=yes ;;
13859      *) _lt_dar_can_shared=$GCC ;;
13860   esac
13861   if test "$_lt_dar_can_shared" = "yes"; then
13862     output_verbose_link_cmd=func_echo_all
13863     archive_cmds_CXX="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
13864     module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
13865     archive_expsym_cmds_CXX="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring ${_lt_dar_single_mod}${_lt_dar_export_syms}${_lt_dsymutil}"
13866     module_expsym_cmds_CXX="sed -e 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dar_export_syms}${_lt_dsymutil}"
13867        if test "$lt_cv_apple_cc_single_mod" != "yes"; then
13868       archive_cmds_CXX="\$CC -r -keep_private_externs -nostdlib -o \${lib}-master.o \$libobjs~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \${lib}-master.o \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring${_lt_dsymutil}"
13869       archive_expsym_cmds_CXX="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -r -keep_private_externs -nostdlib -o \${lib}-master.o \$libobjs~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \${lib}-master.o \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring${_lt_dar_export_syms}${_lt_dsymutil}"
13870     fi
13871
13872   else
13873   ld_shlibs_CXX=no
13874   fi
13875
13876         ;;
13877
13878       dgux*)
13879         case $cc_basename in
13880           ec++*)
13881             # FIXME: insert proper C++ library support
13882             ld_shlibs_CXX=no
13883             ;;
13884           ghcx*)
13885             # Green Hills C++ Compiler
13886             # FIXME: insert proper C++ library support
13887             ld_shlibs_CXX=no
13888             ;;
13889           *)
13890             # FIXME: insert proper C++ library support
13891             ld_shlibs_CXX=no
13892             ;;
13893         esac
13894         ;;
13895
13896       freebsd[12]*)
13897         # C++ shared libraries reported to be fairly broken before
13898         # switch to ELF
13899         ld_shlibs_CXX=no
13900         ;;
13901
13902       freebsd-elf*)
13903         archive_cmds_need_lc_CXX=no
13904         ;;
13905
13906       freebsd* | dragonfly*)
13907         # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
13908         # conventions
13909         ld_shlibs_CXX=yes
13910         ;;
13911
13912       gnu*)
13913         ;;
13914
13915       haiku*)
13916         archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13917         link_all_deplibs_CXX=yes
13918         ;;
13919
13920       hpux9*)
13921         hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
13922         hardcode_libdir_separator_CXX=:
13923         export_dynamic_flag_spec_CXX='${wl}-E'
13924         hardcode_direct_CXX=yes
13925         hardcode_minus_L_CXX=yes # Not in the search PATH,
13926                                              # but as the default
13927                                              # location of the library.
13928
13929         case $cc_basename in
13930           CC*)
13931             # FIXME: insert proper C++ library support
13932             ld_shlibs_CXX=no
13933             ;;
13934           aCC*)
13935             archive_cmds_CXX='$RM $output_objdir/$soname~$CC -b ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
13936             # Commands to make compiler produce verbose output that lists
13937             # what "hidden" libraries, object files and flags are used when
13938             # linking a shared library.
13939             #
13940             # There doesn't appear to be a way to prevent this compiler from
13941             # explicitly linking system object files so we need to strip them
13942             # from the output so that they don't get included in the library
13943             # dependencies.
13944             output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | $EGREP "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"'
13945             ;;
13946           *)
13947             if test "$GXX" = yes; then
13948               archive_cmds_CXX='$RM $output_objdir/$soname~$CC -shared -nostdlib $pic_flag ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
13949             else
13950               # FIXME: insert proper C++ library support
13951               ld_shlibs_CXX=no
13952             fi
13953             ;;
13954         esac
13955         ;;
13956
13957       hpux10*|hpux11*)
13958         if test $with_gnu_ld = no; then
13959           hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
13960           hardcode_libdir_separator_CXX=:
13961
13962           case $host_cpu in
13963             hppa*64*|ia64*)
13964               ;;
13965             *)
13966               export_dynamic_flag_spec_CXX='${wl}-E'
13967               ;;
13968           esac
13969         fi
13970         case $host_cpu in
13971           hppa*64*|ia64*)
13972             hardcode_direct_CXX=no
13973             hardcode_shlibpath_var_CXX=no
13974             ;;
13975           *)
13976             hardcode_direct_CXX=yes
13977             hardcode_direct_absolute_CXX=yes
13978             hardcode_minus_L_CXX=yes # Not in the search PATH,
13979                                                  # but as the default
13980                                                  # location of the library.
13981             ;;
13982         esac
13983
13984         case $cc_basename in
13985           CC*)
13986             # FIXME: insert proper C++ library support
13987             ld_shlibs_CXX=no
13988             ;;
13989           aCC*)
13990             case $host_cpu in
13991               hppa*64*)
13992                 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13993                 ;;
13994               ia64*)
13995                 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13996                 ;;
13997               *)
13998                 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13999                 ;;
14000             esac
14001             # Commands to make compiler produce verbose output that lists
14002             # what "hidden" libraries, object files and flags are used when
14003             # linking a shared library.
14004             #
14005             # There doesn't appear to be a way to prevent this compiler from
14006             # explicitly linking system object files so we need to strip them
14007             # from the output so that they don't get included in the library
14008             # dependencies.
14009             output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | $GREP "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"'
14010             ;;
14011           *)
14012             if test "$GXX" = yes; then
14013               if test $with_gnu_ld = no; then
14014                 case $host_cpu in
14015                   hppa*64*)
14016                     archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14017                     ;;
14018                   ia64*)
14019                     archive_cmds_CXX='$CC -shared -nostdlib $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14020                     ;;
14021                   *)
14022                     archive_cmds_CXX='$CC -shared -nostdlib $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14023                     ;;
14024                 esac
14025               fi
14026             else
14027               # FIXME: insert proper C++ library support
14028               ld_shlibs_CXX=no
14029             fi
14030             ;;
14031         esac
14032         ;;
14033
14034       interix[3-9]*)
14035         hardcode_direct_CXX=no
14036         hardcode_shlibpath_var_CXX=no
14037         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
14038         export_dynamic_flag_spec_CXX='${wl}-E'
14039         # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
14040         # Instead, shared libraries are loaded at an image base (0x10000000 by
14041         # default) and relocated if they conflict, which is a slow very memory
14042         # consuming and fragmenting process.  To avoid this, we pick a random,
14043         # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
14044         # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
14045         archive_cmds_CXX='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
14046         archive_expsym_cmds_CXX='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
14047         ;;
14048       irix5* | irix6*)
14049         case $cc_basename in
14050           CC*)
14051             # SGI C++
14052             archive_cmds_CXX='$CC -shared -all -multigot $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
14053
14054             # Archives containing C++ object files must be created using
14055             # "CC -ar", where "CC" is the IRIX C++ compiler.  This is
14056             # necessary to make sure instantiated templates are included
14057             # in the archive.
14058             old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
14059             ;;
14060           *)
14061             if test "$GXX" = yes; then
14062               if test "$with_gnu_ld" = no; then
14063                 archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
14064               else
14065                 archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` -o $lib'
14066               fi
14067             fi
14068             link_all_deplibs_CXX=yes
14069             ;;
14070         esac
14071         hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
14072         hardcode_libdir_separator_CXX=:
14073         inherit_rpath_CXX=yes
14074         ;;
14075
14076       linux* | k*bsd*-gnu | kopensolaris*-gnu)
14077         case $cc_basename in
14078           KCC*)
14079             # Kuck and Associates, Inc. (KAI) C++ Compiler
14080
14081             # KCC will only create a shared library if the output file
14082             # ends with ".so" (or ".sl" for HP-UX), so rename the library
14083             # to its proper name (with version) after linking.
14084             archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
14085             archive_expsym_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib ${wl}-retain-symbols-file,$export_symbols; mv \$templib $lib'
14086             # Commands to make compiler produce verbose output that lists
14087             # what "hidden" libraries, object files and flags are used when
14088             # linking a shared library.
14089             #
14090             # There doesn't appear to be a way to prevent this compiler from
14091             # explicitly linking system object files so we need to strip them
14092             # from the output so that they don't get included in the library
14093             # dependencies.
14094             output_verbose_link_cmd='templist=`$CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1 | $GREP "ld"`; rm -f libconftest$shared_ext; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"'
14095
14096             hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
14097             export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
14098
14099             # Archives containing C++ object files must be created using
14100             # "CC -Bstatic", where "CC" is the KAI C++ compiler.
14101             old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
14102             ;;
14103           icpc* | ecpc* )
14104             # Intel C++
14105             with_gnu_ld=yes
14106             # version 8.0 and above of icpc choke on multiply defined symbols
14107             # if we add $predep_objects and $postdep_objects, however 7.1 and
14108             # earlier do not add the objects themselves.
14109             case `$CC -V 2>&1` in
14110               *"Version 7."*)
14111                 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
14112                 archive_expsym_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14113                 ;;
14114               *)  # Version 8.0 or newer
14115                 tmp_idyn=
14116                 case $host_cpu in
14117                   ia64*) tmp_idyn=' -i_dynamic';;
14118                 esac
14119                 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14120                 archive_expsym_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14121                 ;;
14122             esac
14123             archive_cmds_need_lc_CXX=no
14124             hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
14125             export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
14126             whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
14127             ;;
14128           pgCC* | pgcpp*)
14129             # Portland Group C++ compiler
14130             case `$CC -V` in
14131             *pgCC\ [1-5].* | *pgcpp\ [1-5].*)
14132               prelink_cmds_CXX='tpldir=Template.dir~
14133                 rm -rf $tpldir~
14134                 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
14135                 compile_command="$compile_command `find $tpldir -name \*.o | sort | $NL2SP`"'
14136               old_archive_cmds_CXX='tpldir=Template.dir~
14137                 rm -rf $tpldir~
14138                 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
14139                 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | sort | $NL2SP`~
14140                 $RANLIB $oldlib'
14141               archive_cmds_CXX='tpldir=Template.dir~
14142                 rm -rf $tpldir~
14143                 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
14144                 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
14145               archive_expsym_cmds_CXX='tpldir=Template.dir~
14146                 rm -rf $tpldir~
14147                 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
14148                 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib'
14149               ;;
14150             *) # Version 6 and above use weak symbols
14151               archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
14152               archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib'
14153               ;;
14154             esac
14155
14156             hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
14157             export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
14158             whole_archive_flag_spec_CXX='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
14159             ;;
14160           cxx*)
14161             # Compaq C++
14162             archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
14163             archive_expsym_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname  -o $lib ${wl}-retain-symbols-file $wl$export_symbols'
14164
14165             runpath_var=LD_RUN_PATH
14166             hardcode_libdir_flag_spec_CXX='-rpath $libdir'
14167             hardcode_libdir_separator_CXX=:
14168
14169             # Commands to make compiler produce verbose output that lists
14170             # what "hidden" libraries, object files and flags are used when
14171             # linking a shared library.
14172             #
14173             # There doesn't appear to be a way to prevent this compiler from
14174             # explicitly linking system object files so we need to strip them
14175             # from the output so that they don't get included in the library
14176             # dependencies.
14177             output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld"`; templist=`func_echo_all "$templist" | $SED "s/\(^.*ld.*\)\( .*ld .*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "X$list" | $Xsed'
14178             ;;
14179           xl* | mpixl* | bgxl*)
14180             # IBM XL 8.0 on PPC, with GNU ld
14181             hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
14182             export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
14183             archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14184             if test "x$supports_anon_versioning" = xyes; then
14185               archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
14186                 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
14187                 echo "local: *; };" >> $output_objdir/$libname.ver~
14188                 $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
14189             fi
14190             ;;
14191           *)
14192             case `$CC -V 2>&1 | sed 5q` in
14193             *Sun\ C*)
14194               # Sun C++ 5.9
14195               no_undefined_flag_CXX=' -zdefs'
14196               archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14197               archive_expsym_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file ${wl}$export_symbols'
14198               hardcode_libdir_flag_spec_CXX='-R$libdir'
14199               whole_archive_flag_spec_CXX='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
14200               compiler_needs_object_CXX=yes
14201
14202               # Not sure whether something based on
14203               # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
14204               # would be better.
14205               output_verbose_link_cmd='func_echo_all'
14206
14207               # Archives containing C++ object files must be created using
14208               # "CC -xar", where "CC" is the Sun C++ compiler.  This is
14209               # necessary to make sure instantiated templates are included
14210               # in the archive.
14211               old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
14212               ;;
14213             esac
14214             ;;
14215         esac
14216         ;;
14217
14218       lynxos*)
14219         # FIXME: insert proper C++ library support
14220         ld_shlibs_CXX=no
14221         ;;
14222
14223       m88k*)
14224         # FIXME: insert proper C++ library support
14225         ld_shlibs_CXX=no
14226         ;;
14227
14228       mvs*)
14229         case $cc_basename in
14230           cxx*)
14231             # FIXME: insert proper C++ library support
14232             ld_shlibs_CXX=no
14233             ;;
14234           *)
14235             # FIXME: insert proper C++ library support
14236             ld_shlibs_CXX=no
14237             ;;
14238         esac
14239         ;;
14240
14241       netbsd*)
14242         if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
14243           archive_cmds_CXX='$LD -Bshareable  -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
14244           wlarc=
14245           hardcode_libdir_flag_spec_CXX='-R$libdir'
14246           hardcode_direct_CXX=yes
14247           hardcode_shlibpath_var_CXX=no
14248         fi
14249         # Workaround some broken pre-1.5 toolchains
14250         output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
14251         ;;
14252
14253       *nto* | *qnx*)
14254         ld_shlibs_CXX=yes
14255         ;;
14256
14257       openbsd2*)
14258         # C++ shared libraries are fairly broken
14259         ld_shlibs_CXX=no
14260         ;;
14261
14262       openbsd*)
14263         if test -f /usr/libexec/ld.so; then
14264           hardcode_direct_CXX=yes
14265           hardcode_shlibpath_var_CXX=no
14266           hardcode_direct_absolute_CXX=yes
14267           archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
14268           hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
14269           if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14270             archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
14271             export_dynamic_flag_spec_CXX='${wl}-E'
14272             whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
14273           fi
14274           output_verbose_link_cmd=func_echo_all
14275         else
14276           ld_shlibs_CXX=no
14277         fi
14278         ;;
14279
14280       osf3* | osf4* | osf5*)
14281         case $cc_basename in
14282           KCC*)
14283             # Kuck and Associates, Inc. (KAI) C++ Compiler
14284
14285             # KCC will only create a shared library if the output file
14286             # ends with ".so" (or ".sl" for HP-UX), so rename the library
14287             # to its proper name (with version) after linking.
14288             archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo "$lib" | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
14289
14290             hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
14291             hardcode_libdir_separator_CXX=:
14292
14293             # Archives containing C++ object files must be created using
14294             # the KAI C++ compiler.
14295             case $host in
14296               osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
14297               *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
14298             esac
14299             ;;
14300           RCC*)
14301             # Rational C++ 2.4.1
14302             # FIXME: insert proper C++ library support
14303             ld_shlibs_CXX=no
14304             ;;
14305           cxx*)
14306             case $host in
14307               osf3*)
14308                 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
14309                 archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $soname `test -n "$verstring" && func_echo_all "${wl}-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
14310                 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
14311                 ;;
14312               *)
14313                 allow_undefined_flag_CXX=' -expect_unresolved \*'
14314                 archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
14315                 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
14316                   echo "-hidden">> $lib.exp~
14317                   $CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname ${wl}-input ${wl}$lib.exp  `test -n "$verstring" && $ECHO "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib~
14318                   $RM $lib.exp'
14319                 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
14320                 ;;
14321             esac
14322
14323             hardcode_libdir_separator_CXX=:
14324
14325             # Commands to make compiler produce verbose output that lists
14326             # what "hidden" libraries, object files and flags are used when
14327             # linking a shared library.
14328             #
14329             # There doesn't appear to be a way to prevent this compiler from
14330             # explicitly linking system object files so we need to strip them
14331             # from the output so that they don't get included in the library
14332             # dependencies.
14333             output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld" | $GREP -v "ld:"`; templist=`func_echo_all "$templist" | $SED "s/\(^.*ld.*\)\( .*ld.*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"'
14334             ;;
14335           *)
14336             if test "$GXX" = yes && test "$with_gnu_ld" = no; then
14337               allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
14338               case $host in
14339                 osf3*)
14340                   archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
14341                   ;;
14342                 *)
14343                   archive_cmds_CXX='$CC -shared $pic_flag -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
14344                   ;;
14345               esac
14346
14347               hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
14348               hardcode_libdir_separator_CXX=:
14349
14350               # Commands to make compiler produce verbose output that lists
14351               # what "hidden" libraries, object files and flags are used when
14352               # linking a shared library.
14353               output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
14354
14355             else
14356               # FIXME: insert proper C++ library support
14357               ld_shlibs_CXX=no
14358             fi
14359             ;;
14360         esac
14361         ;;
14362
14363       psos*)
14364         # FIXME: insert proper C++ library support
14365         ld_shlibs_CXX=no
14366         ;;
14367
14368       sunos4*)
14369         case $cc_basename in
14370           CC*)
14371             # Sun C++ 4.x
14372             # FIXME: insert proper C++ library support
14373             ld_shlibs_CXX=no
14374             ;;
14375           lcc*)
14376             # Lucid
14377             # FIXME: insert proper C++ library support
14378             ld_shlibs_CXX=no
14379             ;;
14380           *)
14381             # FIXME: insert proper C++ library support
14382             ld_shlibs_CXX=no
14383             ;;
14384         esac
14385         ;;
14386
14387       solaris*)
14388         case $cc_basename in
14389           CC* | sunCC*)
14390             # Sun C++ 4.2, 5.x and Centerline C++
14391             archive_cmds_need_lc_CXX=yes
14392             no_undefined_flag_CXX=' -zdefs'
14393             archive_cmds_CXX='$CC -G${allow_undefined_flag}  -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14394             archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
14395               $CC -G${allow_undefined_flag} ${wl}-M ${wl}$lib.exp -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
14396
14397             hardcode_libdir_flag_spec_CXX='-R$libdir'
14398             hardcode_shlibpath_var_CXX=no
14399             case $host_os in
14400               solaris2.[0-5] | solaris2.[0-5].*) ;;
14401               *)
14402                 # The compiler driver will combine and reorder linker options,
14403                 # but understands `-z linker_flag'.
14404                 # Supported since Solaris 2.6 (maybe 2.5.1?)
14405                 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
14406                 ;;
14407             esac
14408             link_all_deplibs_CXX=yes
14409
14410             output_verbose_link_cmd='func_echo_all'
14411
14412             # Archives containing C++ object files must be created using
14413             # "CC -xar", where "CC" is the Sun C++ compiler.  This is
14414             # necessary to make sure instantiated templates are included
14415             # in the archive.
14416             old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
14417             ;;
14418           gcx*)
14419             # Green Hills C++ Compiler
14420             archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
14421
14422             # The C++ compiler must be used to create the archive.
14423             old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
14424             ;;
14425           *)
14426             # GNU C++ compiler with Solaris linker
14427             if test "$GXX" = yes && test "$with_gnu_ld" = no; then
14428               no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
14429               if $CC --version | $GREP -v '^2\.7' > /dev/null; then
14430                 archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
14431                 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
14432                   $CC -shared $pic_flag -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
14433
14434                 # Commands to make compiler produce verbose output that lists
14435                 # what "hidden" libraries, object files and flags are used when
14436                 # linking a shared library.
14437                 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
14438               else
14439                 # g++ 2.7 appears to require `-G' NOT `-shared' on this
14440                 # platform.
14441                 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
14442                 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
14443                   $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
14444
14445                 # Commands to make compiler produce verbose output that lists
14446                 # what "hidden" libraries, object files and flags are used when
14447                 # linking a shared library.
14448                 output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
14449               fi
14450
14451               hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
14452               case $host_os in
14453                 solaris2.[0-5] | solaris2.[0-5].*) ;;
14454                 *)
14455                   whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
14456                   ;;
14457               esac
14458             fi
14459             ;;
14460         esac
14461         ;;
14462
14463     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
14464       no_undefined_flag_CXX='${wl}-z,text'
14465       archive_cmds_need_lc_CXX=no
14466       hardcode_shlibpath_var_CXX=no
14467       runpath_var='LD_RUN_PATH'
14468
14469       case $cc_basename in
14470         CC*)
14471           archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14472           archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14473           ;;
14474         *)
14475           archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14476           archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14477           ;;
14478       esac
14479       ;;
14480
14481       sysv5* | sco3.2v5* | sco5v6*)
14482         # Note: We can NOT use -z defs as we might desire, because we do not
14483         # link with -lc, and that would cause any symbols used from libc to
14484         # always be unresolved, which means just about no library would
14485         # ever link correctly.  If we're not using GNU ld we use -z text
14486         # though, which does catch some bad symbols but isn't as heavy-handed
14487         # as -z defs.
14488         no_undefined_flag_CXX='${wl}-z,text'
14489         allow_undefined_flag_CXX='${wl}-z,nodefs'
14490         archive_cmds_need_lc_CXX=no
14491         hardcode_shlibpath_var_CXX=no
14492         hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir'
14493         hardcode_libdir_separator_CXX=':'
14494         link_all_deplibs_CXX=yes
14495         export_dynamic_flag_spec_CXX='${wl}-Bexport'
14496         runpath_var='LD_RUN_PATH'
14497
14498         case $cc_basename in
14499           CC*)
14500             archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14501             archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14502             old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~
14503               '"$old_archive_cmds_CXX"
14504             reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~
14505               '"$reload_cmds_CXX"
14506             ;;
14507           *)
14508             archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14509             archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14510             ;;
14511         esac
14512       ;;
14513
14514       tandem*)
14515         case $cc_basename in
14516           NCC*)
14517             # NonStop-UX NCC 3.20
14518             # FIXME: insert proper C++ library support
14519             ld_shlibs_CXX=no
14520             ;;
14521           *)
14522             # FIXME: insert proper C++ library support
14523             ld_shlibs_CXX=no
14524             ;;
14525         esac
14526         ;;
14527
14528       vxworks*)
14529         # FIXME: insert proper C++ library support
14530         ld_shlibs_CXX=no
14531         ;;
14532
14533       *)
14534         # FIXME: insert proper C++ library support
14535         ld_shlibs_CXX=no
14536         ;;
14537     esac
14538
14539     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
14540 $as_echo "$ld_shlibs_CXX" >&6; }
14541     test "$ld_shlibs_CXX" = no && can_build_shared=no
14542
14543     GCC_CXX="$GXX"
14544     LD_CXX="$LD"
14545
14546     ## CAVEAT EMPTOR:
14547     ## There is no encapsulation within the following macros, do not change
14548     ## the running order or otherwise move them around unless you know exactly
14549     ## what you are doing...
14550     # Dependencies to place before and after the object being linked:
14551 predep_objects_CXX=
14552 postdep_objects_CXX=
14553 predeps_CXX=
14554 postdeps_CXX=
14555 compiler_lib_search_path_CXX=
14556
14557 cat > conftest.$ac_ext <<_LT_EOF
14558 class Foo
14559 {
14560 public:
14561   Foo (void) { a = 0; }
14562 private:
14563   int a;
14564 };
14565 _LT_EOF
14566
14567
14568 _lt_libdeps_save_CFLAGS=$CFLAGS
14569 case "$CC $CFLAGS " in #(
14570 *\ -flto*\ *) CFLAGS="$CFLAGS -fno-lto" ;;
14571 *\ -fwhopr*\ *) CFLAGS="$CFLAGS -fno-whopr" ;;
14572 esac
14573
14574 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
14575   (eval $ac_compile) 2>&5
14576   ac_status=$?
14577   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14578   test $ac_status = 0; }; then
14579   # Parse the compiler output and extract the necessary
14580   # objects, libraries and library flags.
14581
14582   # Sentinel used to keep track of whether or not we are before
14583   # the conftest object file.
14584   pre_test_object_deps_done=no
14585
14586   for p in `eval "$output_verbose_link_cmd"`; do
14587     case ${prev}${p} in
14588
14589     -L* | -R* | -l*)
14590        # Some compilers place space between "-{L,R}" and the path.
14591        # Remove the space.
14592        if test $p = "-L" ||
14593           test $p = "-R"; then
14594          prev=$p
14595          continue
14596        fi
14597
14598        # Expand the sysroot to ease extracting the directories later.
14599        if test -z "$prev"; then
14600          case $p in
14601          -L*) func_stripname_cnf '-L' '' "$p"; prev=-L; p=$func_stripname_result ;;
14602          -R*) func_stripname_cnf '-R' '' "$p"; prev=-R; p=$func_stripname_result ;;
14603          -l*) func_stripname_cnf '-l' '' "$p"; prev=-l; p=$func_stripname_result ;;
14604          esac
14605        fi
14606        case $p in
14607        =*) func_stripname_cnf '=' '' "$p"; p=$lt_sysroot$func_stripname_result ;;
14608        esac
14609        if test "$pre_test_object_deps_done" = no; then
14610          case ${prev} in
14611          -L | -R)
14612            # Internal compiler library paths should come after those
14613            # provided the user.  The postdeps already come after the
14614            # user supplied libs so there is no need to process them.
14615            if test -z "$compiler_lib_search_path_CXX"; then
14616              compiler_lib_search_path_CXX="${prev}${p}"
14617            else
14618              compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
14619            fi
14620            ;;
14621          # The "-l" case would never come before the object being
14622          # linked, so don't bother handling this case.
14623          esac
14624        else
14625          if test -z "$postdeps_CXX"; then
14626            postdeps_CXX="${prev}${p}"
14627          else
14628            postdeps_CXX="${postdeps_CXX} ${prev}${p}"
14629          fi
14630        fi
14631        prev=
14632        ;;
14633
14634     *.lto.$objext) ;; # Ignore GCC LTO objects
14635     *.$objext)
14636        # This assumes that the test object file only shows up
14637        # once in the compiler output.
14638        if test "$p" = "conftest.$objext"; then
14639          pre_test_object_deps_done=yes
14640          continue
14641        fi
14642
14643        if test "$pre_test_object_deps_done" = no; then
14644          if test -z "$predep_objects_CXX"; then
14645            predep_objects_CXX="$p"
14646          else
14647            predep_objects_CXX="$predep_objects_CXX $p"
14648          fi
14649        else
14650          if test -z "$postdep_objects_CXX"; then
14651            postdep_objects_CXX="$p"
14652          else
14653            postdep_objects_CXX="$postdep_objects_CXX $p"
14654          fi
14655        fi
14656        ;;
14657
14658     *) ;; # Ignore the rest.
14659
14660     esac
14661   done
14662
14663   # Clean up.
14664   rm -f a.out a.exe
14665 else
14666   echo "libtool.m4: error: problem compiling CXX test program"
14667 fi
14668
14669 $RM -f confest.$objext
14670 CFLAGS=$_lt_libdeps_save_CFLAGS
14671
14672 # PORTME: override above test on systems where it is broken
14673 case $host_os in
14674 interix[3-9]*)
14675   # Interix 3.5 installs completely hosed .la files for C++, so rather than
14676   # hack all around it, let's just trust "g++" to DTRT.
14677   predep_objects_CXX=
14678   postdep_objects_CXX=
14679   postdeps_CXX=
14680   ;;
14681
14682 linux*)
14683   case `$CC -V 2>&1 | sed 5q` in
14684   *Sun\ C*)
14685     # Sun C++ 5.9
14686
14687     # The more standards-conforming stlport4 library is
14688     # incompatible with the Cstd library. Avoid specifying
14689     # it if it's in CXXFLAGS. Ignore libCrun as
14690     # -library=stlport4 depends on it.
14691     case " $CXX $CXXFLAGS " in
14692     *" -library=stlport4 "*)
14693       solaris_use_stlport4=yes
14694       ;;
14695     esac
14696
14697     if test "$solaris_use_stlport4" != yes; then
14698       postdeps_CXX='-library=Cstd -library=Crun'
14699     fi
14700     ;;
14701   esac
14702   ;;
14703
14704 solaris*)
14705   case $cc_basename in
14706   CC* | sunCC*)
14707     # The more standards-conforming stlport4 library is
14708     # incompatible with the Cstd library. Avoid specifying
14709     # it if it's in CXXFLAGS. Ignore libCrun as
14710     # -library=stlport4 depends on it.
14711     case " $CXX $CXXFLAGS " in
14712     *" -library=stlport4 "*)
14713       solaris_use_stlport4=yes
14714       ;;
14715     esac
14716
14717     # Adding this requires a known-good setup of shared libraries for
14718     # Sun compiler versions before 5.6, else PIC objects from an old
14719     # archive will be linked into the output, leading to subtle bugs.
14720     if test "$solaris_use_stlport4" != yes; then
14721       postdeps_CXX='-library=Cstd -library=Crun'
14722     fi
14723     ;;
14724   esac
14725   ;;
14726 esac
14727
14728
14729 case " $postdeps_CXX " in
14730 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
14731 esac
14732  compiler_lib_search_dirs_CXX=
14733 if test -n "${compiler_lib_search_path_CXX}"; then
14734  compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
14735 fi
14736
14737
14738
14739
14740
14741
14742
14743
14744
14745
14746
14747
14748
14749
14750
14751
14752
14753
14754
14755
14756
14757
14758
14759
14760
14761
14762
14763
14764
14765
14766
14767     lt_prog_compiler_wl_CXX=
14768 lt_prog_compiler_pic_CXX=
14769 lt_prog_compiler_static_CXX=
14770
14771
14772   # C++ specific cases for pic, static, wl, etc.
14773   if test "$GXX" = yes; then
14774     lt_prog_compiler_wl_CXX='-Wl,'
14775     lt_prog_compiler_static_CXX='-static'
14776
14777     case $host_os in
14778     aix*)
14779       # All AIX code is PIC.
14780       if test "$host_cpu" = ia64; then
14781         # AIX 5 now supports IA64 processor
14782         lt_prog_compiler_static_CXX='-Bstatic'
14783       fi
14784       ;;
14785
14786     amigaos*)
14787       case $host_cpu in
14788       powerpc)
14789             # see comment about AmigaOS4 .so support
14790             lt_prog_compiler_pic_CXX='-fPIC'
14791         ;;
14792       m68k)
14793             # FIXME: we need at least 68020 code to build shared libraries, but
14794             # adding the `-m68020' flag to GCC prevents building anything better,
14795             # like `-m68040'.
14796             lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
14797         ;;
14798       esac
14799       ;;
14800
14801     beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
14802       # PIC is the default for these OSes.
14803       ;;
14804     mingw* | cygwin* | os2* | pw32* | cegcc*)
14805       # This hack is so that the source file can tell whether it is being
14806       # built for inclusion in a dll (and should export symbols for example).
14807       # Although the cygwin gcc ignores -fPIC, still need this for old-style
14808       # (--disable-auto-import) libraries
14809       lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
14810       ;;
14811     darwin* | rhapsody*)
14812       # PIC is the default on this platform
14813       # Common symbols not allowed in MH_DYLIB files
14814       lt_prog_compiler_pic_CXX='-fno-common'
14815       ;;
14816     *djgpp*)
14817       # DJGPP does not support shared libraries at all
14818       lt_prog_compiler_pic_CXX=
14819       ;;
14820     haiku*)
14821       # PIC is the default for Haiku.
14822       # The "-static" flag exists, but is broken.
14823       lt_prog_compiler_static_CXX=
14824       ;;
14825     interix[3-9]*)
14826       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
14827       # Instead, we relocate shared libraries at runtime.
14828       ;;
14829     sysv4*MP*)
14830       if test -d /usr/nec; then
14831         lt_prog_compiler_pic_CXX=-Kconform_pic
14832       fi
14833       ;;
14834     hpux*)
14835       # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
14836       # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
14837       # sets the default TLS model and affects inlining.
14838       case $host_cpu in
14839       hppa*64*)
14840         ;;
14841       *)
14842         lt_prog_compiler_pic_CXX='-fPIC'
14843         ;;
14844       esac
14845       ;;
14846     *qnx* | *nto*)
14847       # QNX uses GNU C++, but need to define -shared option too, otherwise
14848       # it will coredump.
14849       lt_prog_compiler_pic_CXX='-fPIC -shared'
14850       ;;
14851     *)
14852       lt_prog_compiler_pic_CXX='-fPIC'
14853       ;;
14854     esac
14855   else
14856     case $host_os in
14857       aix[4-9]*)
14858         # All AIX code is PIC.
14859         if test "$host_cpu" = ia64; then
14860           # AIX 5 now supports IA64 processor
14861           lt_prog_compiler_static_CXX='-Bstatic'
14862         else
14863           lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
14864         fi
14865         ;;
14866       chorus*)
14867         case $cc_basename in
14868         cxch68*)
14869           # Green Hills C++ Compiler
14870           # _LT_TAGVAR(lt_prog_compiler_static, CXX)="--no_auto_instantiation -u __main -u __premain -u _abort -r $COOL_DIR/lib/libOrb.a $MVME_DIR/lib/CC/libC.a $MVME_DIR/lib/classix/libcx.s.a"
14871           ;;
14872         esac
14873         ;;
14874       mingw* | cygwin* | os2* | pw32* | cegcc*)
14875         # This hack is so that the source file can tell whether it is being
14876         # built for inclusion in a dll (and should export symbols for example).
14877         lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
14878         ;;
14879       dgux*)
14880         case $cc_basename in
14881           ec++*)
14882             lt_prog_compiler_pic_CXX='-KPIC'
14883             ;;
14884           ghcx*)
14885             # Green Hills C++ Compiler
14886             lt_prog_compiler_pic_CXX='-pic'
14887             ;;
14888           *)
14889             ;;
14890         esac
14891         ;;
14892       freebsd* | dragonfly*)
14893         # FreeBSD uses GNU C++
14894         ;;
14895       hpux9* | hpux10* | hpux11*)
14896         case $cc_basename in
14897           CC*)
14898             lt_prog_compiler_wl_CXX='-Wl,'
14899             lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
14900             if test "$host_cpu" != ia64; then
14901               lt_prog_compiler_pic_CXX='+Z'
14902             fi
14903             ;;
14904           aCC*)
14905             lt_prog_compiler_wl_CXX='-Wl,'
14906             lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
14907             case $host_cpu in
14908             hppa*64*|ia64*)
14909               # +Z the default
14910               ;;
14911             *)
14912               lt_prog_compiler_pic_CXX='+Z'
14913               ;;
14914             esac
14915             ;;
14916           *)
14917             ;;
14918         esac
14919         ;;
14920       interix*)
14921         # This is c89, which is MS Visual C++ (no shared libs)
14922         # Anyone wants to do a port?
14923         ;;
14924       irix5* | irix6* | nonstopux*)
14925         case $cc_basename in
14926           CC*)
14927             lt_prog_compiler_wl_CXX='-Wl,'
14928             lt_prog_compiler_static_CXX='-non_shared'
14929             # CC pic flag -KPIC is the default.
14930             ;;
14931           *)
14932             ;;
14933         esac
14934         ;;
14935       linux* | k*bsd*-gnu | kopensolaris*-gnu)
14936         case $cc_basename in
14937           KCC*)
14938             # KAI C++ Compiler
14939             lt_prog_compiler_wl_CXX='--backend -Wl,'
14940             lt_prog_compiler_pic_CXX='-fPIC'
14941             ;;
14942           ecpc* )
14943             # old Intel C++ for x86_64 which still supported -KPIC.
14944             lt_prog_compiler_wl_CXX='-Wl,'
14945             lt_prog_compiler_pic_CXX='-KPIC'
14946             lt_prog_compiler_static_CXX='-static'
14947             ;;
14948           icpc* )
14949             # Intel C++, used to be incompatible with GCC.
14950             # ICC 10 doesn't accept -KPIC any more.
14951             lt_prog_compiler_wl_CXX='-Wl,'
14952             lt_prog_compiler_pic_CXX='-fPIC'
14953             lt_prog_compiler_static_CXX='-static'
14954             ;;
14955           pgCC* | pgcpp*)
14956             # Portland Group C++ compiler
14957             lt_prog_compiler_wl_CXX='-Wl,'
14958             lt_prog_compiler_pic_CXX='-fpic'
14959             lt_prog_compiler_static_CXX='-Bstatic'
14960             ;;
14961           cxx*)
14962             # Compaq C++
14963             # Make sure the PIC flag is empty.  It appears that all Alpha
14964             # Linux and Compaq Tru64 Unix objects are PIC.
14965             lt_prog_compiler_pic_CXX=
14966             lt_prog_compiler_static_CXX='-non_shared'
14967             ;;
14968           xlc* | xlC* | bgxl[cC]* | mpixl[cC]*)
14969             # IBM XL 8.0, 9.0 on PPC and BlueGene
14970             lt_prog_compiler_wl_CXX='-Wl,'
14971             lt_prog_compiler_pic_CXX='-qpic'
14972             lt_prog_compiler_static_CXX='-qstaticlink'
14973             ;;
14974           *)
14975             case `$CC -V 2>&1 | sed 5q` in
14976             *Sun\ C*)
14977               # Sun C++ 5.9
14978               lt_prog_compiler_pic_CXX='-KPIC'
14979               lt_prog_compiler_static_CXX='-Bstatic'
14980               lt_prog_compiler_wl_CXX='-Qoption ld '
14981               ;;
14982             esac
14983             ;;
14984         esac
14985         ;;
14986       lynxos*)
14987         ;;
14988       m88k*)
14989         ;;
14990       mvs*)
14991         case $cc_basename in
14992           cxx*)
14993             lt_prog_compiler_pic_CXX='-W c,exportall'
14994             ;;
14995           *)
14996             ;;
14997         esac
14998         ;;
14999       netbsd*)
15000         ;;
15001       *qnx* | *nto*)
15002         # QNX uses GNU C++, but need to define -shared option too, otherwise
15003         # it will coredump.
15004         lt_prog_compiler_pic_CXX='-fPIC -shared'
15005         ;;
15006       osf3* | osf4* | osf5*)
15007         case $cc_basename in
15008           KCC*)
15009             lt_prog_compiler_wl_CXX='--backend -Wl,'
15010             ;;
15011           RCC*)
15012             # Rational C++ 2.4.1
15013             lt_prog_compiler_pic_CXX='-pic'
15014             ;;
15015           cxx*)
15016             # Digital/Compaq C++
15017             lt_prog_compiler_wl_CXX='-Wl,'
15018             # Make sure the PIC flag is empty.  It appears that all Alpha
15019             # Linux and Compaq Tru64 Unix objects are PIC.
15020             lt_prog_compiler_pic_CXX=
15021             lt_prog_compiler_static_CXX='-non_shared'
15022             ;;
15023           *)
15024             ;;
15025         esac
15026         ;;
15027       psos*)
15028         ;;
15029       solaris*)
15030         case $cc_basename in
15031           CC* | sunCC*)
15032             # Sun C++ 4.2, 5.x and Centerline C++
15033             lt_prog_compiler_pic_CXX='-KPIC'
15034             lt_prog_compiler_static_CXX='-Bstatic'
15035             lt_prog_compiler_wl_CXX='-Qoption ld '
15036             ;;
15037           gcx*)
15038             # Green Hills C++ Compiler
15039             lt_prog_compiler_pic_CXX='-PIC'
15040             ;;
15041           *)
15042             ;;
15043         esac
15044         ;;
15045       sunos4*)
15046         case $cc_basename in
15047           CC*)
15048             # Sun C++ 4.x
15049             lt_prog_compiler_pic_CXX='-pic'
15050             lt_prog_compiler_static_CXX='-Bstatic'
15051             ;;
15052           lcc*)
15053             # Lucid
15054             lt_prog_compiler_pic_CXX='-pic'
15055             ;;
15056           *)
15057             ;;
15058         esac
15059         ;;
15060       sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
15061         case $cc_basename in
15062           CC*)
15063             lt_prog_compiler_wl_CXX='-Wl,'
15064             lt_prog_compiler_pic_CXX='-KPIC'
15065             lt_prog_compiler_static_CXX='-Bstatic'
15066             ;;
15067         esac
15068         ;;
15069       tandem*)
15070         case $cc_basename in
15071           NCC*)
15072             # NonStop-UX NCC 3.20
15073             lt_prog_compiler_pic_CXX='-KPIC'
15074             ;;
15075           *)
15076             ;;
15077         esac
15078         ;;
15079       vxworks*)
15080         ;;
15081       *)
15082         lt_prog_compiler_can_build_shared_CXX=no
15083         ;;
15084     esac
15085   fi
15086
15087 case $host_os in
15088   # For platforms which do not support PIC, -DPIC is meaningless:
15089   *djgpp*)
15090     lt_prog_compiler_pic_CXX=
15091     ;;
15092   *)
15093     lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
15094     ;;
15095 esac
15096
15097 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
15098 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
15099 if ${lt_cv_prog_compiler_pic_CXX+:} false; then :
15100   $as_echo_n "(cached) " >&6
15101 else
15102   lt_cv_prog_compiler_pic_CXX=$lt_prog_compiler_pic_CXX
15103 fi
15104 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_CXX" >&5
15105 $as_echo "$lt_cv_prog_compiler_pic_CXX" >&6; }
15106 lt_prog_compiler_pic_CXX=$lt_cv_prog_compiler_pic_CXX
15107
15108 #
15109 # Check to make sure the PIC flag actually works.
15110 #
15111 if test -n "$lt_prog_compiler_pic_CXX"; then
15112   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
15113 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
15114 if ${lt_cv_prog_compiler_pic_works_CXX+:} false; then :
15115   $as_echo_n "(cached) " >&6
15116 else
15117   lt_cv_prog_compiler_pic_works_CXX=no
15118    ac_outfile=conftest.$ac_objext
15119    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15120    lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
15121    # Insert the option either (1) after the last *FLAGS variable, or
15122    # (2) before a word containing "conftest.", or (3) at the end.
15123    # Note that $ac_compile itself does not contain backslashes and begins
15124    # with a dollar sign (not a hyphen), so the echo should work correctly.
15125    # The option is referenced via a variable to avoid confusing sed.
15126    lt_compile=`echo "$ac_compile" | $SED \
15127    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15128    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15129    -e 's:$: $lt_compiler_flag:'`
15130    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
15131    (eval "$lt_compile" 2>conftest.err)
15132    ac_status=$?
15133    cat conftest.err >&5
15134    echo "$as_me:$LINENO: \$? = $ac_status" >&5
15135    if (exit $ac_status) && test -s "$ac_outfile"; then
15136      # The compiler can only warn and ignore the option if not recognized
15137      # So say no if there are warnings other than the usual output.
15138      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
15139      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15140      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
15141        lt_cv_prog_compiler_pic_works_CXX=yes
15142      fi
15143    fi
15144    $RM conftest*
15145
15146 fi
15147 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
15148 $as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
15149
15150 if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
15151     case $lt_prog_compiler_pic_CXX in
15152      "" | " "*) ;;
15153      *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
15154      esac
15155 else
15156     lt_prog_compiler_pic_CXX=
15157      lt_prog_compiler_can_build_shared_CXX=no
15158 fi
15159
15160 fi
15161
15162
15163
15164
15165
15166 #
15167 # Check to make sure the static flag actually works.
15168 #
15169 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
15170 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
15171 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
15172 if ${lt_cv_prog_compiler_static_works_CXX+:} false; then :
15173   $as_echo_n "(cached) " >&6
15174 else
15175   lt_cv_prog_compiler_static_works_CXX=no
15176    save_LDFLAGS="$LDFLAGS"
15177    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
15178    echo "$lt_simple_link_test_code" > conftest.$ac_ext
15179    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
15180      # The linker can only warn and ignore the option if not recognized
15181      # So say no if there are warnings
15182      if test -s conftest.err; then
15183        # Append any errors to the config.log.
15184        cat conftest.err 1>&5
15185        $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
15186        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15187        if diff conftest.exp conftest.er2 >/dev/null; then
15188          lt_cv_prog_compiler_static_works_CXX=yes
15189        fi
15190      else
15191        lt_cv_prog_compiler_static_works_CXX=yes
15192      fi
15193    fi
15194    $RM -r conftest*
15195    LDFLAGS="$save_LDFLAGS"
15196
15197 fi
15198 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
15199 $as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
15200
15201 if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
15202     :
15203 else
15204     lt_prog_compiler_static_CXX=
15205 fi
15206
15207
15208
15209
15210     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
15211 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
15212 if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
15213   $as_echo_n "(cached) " >&6
15214 else
15215   lt_cv_prog_compiler_c_o_CXX=no
15216    $RM -r conftest 2>/dev/null
15217    mkdir conftest
15218    cd conftest
15219    mkdir out
15220    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15221
15222    lt_compiler_flag="-o out/conftest2.$ac_objext"
15223    # Insert the option either (1) after the last *FLAGS variable, or
15224    # (2) before a word containing "conftest.", or (3) at the end.
15225    # Note that $ac_compile itself does not contain backslashes and begins
15226    # with a dollar sign (not a hyphen), so the echo should work correctly.
15227    lt_compile=`echo "$ac_compile" | $SED \
15228    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15229    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15230    -e 's:$: $lt_compiler_flag:'`
15231    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
15232    (eval "$lt_compile" 2>out/conftest.err)
15233    ac_status=$?
15234    cat out/conftest.err >&5
15235    echo "$as_me:$LINENO: \$? = $ac_status" >&5
15236    if (exit $ac_status) && test -s out/conftest2.$ac_objext
15237    then
15238      # The compiler can only warn and ignore the option if not recognized
15239      # So say no if there are warnings
15240      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
15241      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
15242      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
15243        lt_cv_prog_compiler_c_o_CXX=yes
15244      fi
15245    fi
15246    chmod u+w . 2>&5
15247    $RM conftest*
15248    # SGI C++ compiler will create directory out/ii_files/ for
15249    # template instantiation
15250    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
15251    $RM out/* && rmdir out
15252    cd ..
15253    $RM -r conftest
15254    $RM conftest*
15255
15256 fi
15257 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
15258 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
15259
15260
15261
15262     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
15263 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
15264 if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
15265   $as_echo_n "(cached) " >&6
15266 else
15267   lt_cv_prog_compiler_c_o_CXX=no
15268    $RM -r conftest 2>/dev/null
15269    mkdir conftest
15270    cd conftest
15271    mkdir out
15272    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15273
15274    lt_compiler_flag="-o out/conftest2.$ac_objext"
15275    # Insert the option either (1) after the last *FLAGS variable, or
15276    # (2) before a word containing "conftest.", or (3) at the end.
15277    # Note that $ac_compile itself does not contain backslashes and begins
15278    # with a dollar sign (not a hyphen), so the echo should work correctly.
15279    lt_compile=`echo "$ac_compile" | $SED \
15280    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15281    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15282    -e 's:$: $lt_compiler_flag:'`
15283    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
15284    (eval "$lt_compile" 2>out/conftest.err)
15285    ac_status=$?
15286    cat out/conftest.err >&5
15287    echo "$as_me:$LINENO: \$? = $ac_status" >&5
15288    if (exit $ac_status) && test -s out/conftest2.$ac_objext
15289    then
15290      # The compiler can only warn and ignore the option if not recognized
15291      # So say no if there are warnings
15292      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
15293      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
15294      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
15295        lt_cv_prog_compiler_c_o_CXX=yes
15296      fi
15297    fi
15298    chmod u+w . 2>&5
15299    $RM conftest*
15300    # SGI C++ compiler will create directory out/ii_files/ for
15301    # template instantiation
15302    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
15303    $RM out/* && rmdir out
15304    cd ..
15305    $RM -r conftest
15306    $RM conftest*
15307
15308 fi
15309 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
15310 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
15311
15312
15313
15314
15315 hard_links="nottested"
15316 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
15317   # do not overwrite the value of need_locks provided by the user
15318   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
15319 $as_echo_n "checking if we can lock with hard links... " >&6; }
15320   hard_links=yes
15321   $RM conftest*
15322   ln conftest.a conftest.b 2>/dev/null && hard_links=no
15323   touch conftest.a
15324   ln conftest.a conftest.b 2>&5 || hard_links=no
15325   ln conftest.a conftest.b 2>/dev/null && hard_links=no
15326   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
15327 $as_echo "$hard_links" >&6; }
15328   if test "$hard_links" = no; then
15329     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
15330 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
15331     need_locks=warn
15332   fi
15333 else
15334   need_locks=no
15335 fi
15336
15337
15338
15339     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
15340 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
15341
15342   export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
15343   exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
15344   case $host_os in
15345   aix[4-9]*)
15346     # If we're using GNU nm, then we don't want the "-C" option.
15347     # -C means demangle to AIX nm, but means don't demangle with GNU nm
15348     # Also, AIX nm treats weak defined symbols like other global defined
15349     # symbols, whereas GNU nm marks them as "W".
15350     if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
15351       export_symbols_cmds_CXX='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
15352     else
15353       export_symbols_cmds_CXX='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
15354     fi
15355     ;;
15356   pw32*)
15357     export_symbols_cmds_CXX="$ltdll_cmds"
15358     ;;
15359   cygwin* | mingw* | cegcc*)
15360     case $cc_basename in
15361     cl*) ;;
15362     *)
15363       export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/;s/^.*[ ]__nm__\([^ ]*\)[ ][^ ]*/\1 DATA/;/^I[ ]/d;/^[AITW][ ]/s/.* //'\'' | sort | uniq > $export_symbols'
15364       exclude_expsyms_CXX='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
15365       ;;
15366     esac
15367     ;;
15368   *)
15369     export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
15370     ;;
15371   esac
15372
15373 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
15374 $as_echo "$ld_shlibs_CXX" >&6; }
15375 test "$ld_shlibs_CXX" = no && can_build_shared=no
15376
15377 with_gnu_ld_CXX=$with_gnu_ld
15378
15379
15380
15381
15382
15383
15384 #
15385 # Do we need to explicitly link libc?
15386 #
15387 case "x$archive_cmds_need_lc_CXX" in
15388 x|xyes)
15389   # Assume -lc should be added
15390   archive_cmds_need_lc_CXX=yes
15391
15392   if test "$enable_shared" = yes && test "$GCC" = yes; then
15393     case $archive_cmds_CXX in
15394     *'~'*)
15395       # FIXME: we may have to deal with multi-command sequences.
15396       ;;
15397     '$CC '*)
15398       # Test whether the compiler implicitly links with -lc since on some
15399       # systems, -lgcc has to come before -lc. If gcc already passes -lc
15400       # to ld, don't add -lc before -lgcc.
15401       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
15402 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
15403 if ${lt_cv_archive_cmds_need_lc_CXX+:} false; then :
15404   $as_echo_n "(cached) " >&6
15405 else
15406   $RM conftest*
15407         echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15408
15409         if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
15410   (eval $ac_compile) 2>&5
15411   ac_status=$?
15412   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15413   test $ac_status = 0; } 2>conftest.err; then
15414           soname=conftest
15415           lib=conftest
15416           libobjs=conftest.$ac_objext
15417           deplibs=
15418           wl=$lt_prog_compiler_wl_CXX
15419           pic_flag=$lt_prog_compiler_pic_CXX
15420           compiler_flags=-v
15421           linker_flags=-v
15422           verstring=
15423           output_objdir=.
15424           libname=conftest
15425           lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
15426           allow_undefined_flag_CXX=
15427           if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
15428   (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
15429   ac_status=$?
15430   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15431   test $ac_status = 0; }
15432           then
15433             lt_cv_archive_cmds_need_lc_CXX=no
15434           else
15435             lt_cv_archive_cmds_need_lc_CXX=yes
15436           fi
15437           allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
15438         else
15439           cat conftest.err 1>&5
15440         fi
15441         $RM conftest*
15442
15443 fi
15444 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5
15445 $as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; }
15446       archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX
15447       ;;
15448     esac
15449   fi
15450   ;;
15451 esac
15452
15453
15454
15455
15456
15457
15458
15459
15460
15461
15462
15463
15464
15465
15466
15467
15468
15469
15470
15471
15472
15473
15474
15475
15476
15477
15478
15479
15480
15481
15482
15483
15484
15485
15486
15487
15488
15489
15490
15491
15492
15493
15494
15495
15496
15497
15498
15499
15500
15501
15502
15503
15504
15505
15506
15507
15508
15509
15510
15511
15512
15513
15514
15515
15516     { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
15517 $as_echo_n "checking dynamic linker characteristics... " >&6; }
15518
15519 library_names_spec=
15520 libname_spec='lib$name'
15521 soname_spec=
15522 shrext_cmds=".so"
15523 postinstall_cmds=
15524 postuninstall_cmds=
15525 finish_cmds=
15526 finish_eval=
15527 shlibpath_var=
15528 shlibpath_overrides_runpath=unknown
15529 version_type=none
15530 dynamic_linker="$host_os ld.so"
15531 sys_lib_dlsearch_path_spec="/lib /usr/lib"
15532 need_lib_prefix=unknown
15533 hardcode_into_libs=no
15534
15535 # when you set need_version to no, make sure it does not cause -set_version
15536 # flags to be left without arguments
15537 need_version=unknown
15538
15539 case $host_os in
15540 aix3*)
15541   version_type=linux
15542   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
15543   shlibpath_var=LIBPATH
15544
15545   # AIX 3 has no versioning support, so we append a major version to the name.
15546   soname_spec='${libname}${release}${shared_ext}$major'
15547   ;;
15548
15549 aix[4-9]*)
15550   version_type=linux
15551   need_lib_prefix=no
15552   need_version=no
15553   hardcode_into_libs=yes
15554   if test "$host_cpu" = ia64; then
15555     # AIX 5 supports IA64
15556     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
15557     shlibpath_var=LD_LIBRARY_PATH
15558   else
15559     # With GCC up to 2.95.x, collect2 would create an import file
15560     # for dependence libraries.  The import file would start with
15561     # the line `#! .'.  This would cause the generated library to
15562     # depend on `.', always an invalid library.  This was fixed in
15563     # development snapshots of GCC prior to 3.0.
15564     case $host_os in
15565       aix4 | aix4.[01] | aix4.[01].*)
15566       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
15567            echo ' yes '
15568            echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
15569         :
15570       else
15571         can_build_shared=no
15572       fi
15573       ;;
15574     esac
15575     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
15576     # soname into executable. Probably we can add versioning support to
15577     # collect2, so additional links can be useful in future.
15578     if test "$aix_use_runtimelinking" = yes; then
15579       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
15580       # instead of lib<name>.a to let people know that these are not
15581       # typical AIX shared libraries.
15582       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15583     else
15584       # We preserve .a as extension for shared libraries through AIX4.2
15585       # and later when we are not doing run time linking.
15586       library_names_spec='${libname}${release}.a $libname.a'
15587       soname_spec='${libname}${release}${shared_ext}$major'
15588     fi
15589     shlibpath_var=LIBPATH
15590   fi
15591   ;;
15592
15593 amigaos*)
15594   case $host_cpu in
15595   powerpc)
15596     # Since July 2007 AmigaOS4 officially supports .so libraries.
15597     # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
15598     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15599     ;;
15600   m68k)
15601     library_names_spec='$libname.ixlibrary $libname.a'
15602     # Create ${libname}_ixlibrary.a entries in /sys/libs.
15603     finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
15604     ;;
15605   esac
15606   ;;
15607
15608 beos*)
15609   library_names_spec='${libname}${shared_ext}'
15610   dynamic_linker="$host_os ld.so"
15611   shlibpath_var=LIBRARY_PATH
15612   ;;
15613
15614 bsdi[45]*)
15615   version_type=linux
15616   need_version=no
15617   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15618   soname_spec='${libname}${release}${shared_ext}$major'
15619   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
15620   shlibpath_var=LD_LIBRARY_PATH
15621   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
15622   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
15623   # the default ld.so.conf also contains /usr/contrib/lib and
15624   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
15625   # libtool to hard-code these into programs
15626   ;;
15627
15628 cygwin* | mingw* | pw32* | cegcc*)
15629   version_type=windows
15630   shrext_cmds=".dll"
15631   need_version=no
15632   need_lib_prefix=no
15633
15634   case $GCC,$cc_basename in
15635   yes,*)
15636     # gcc
15637     library_names_spec='$libname.dll.a'
15638     # DLL is installed to $(libdir)/../bin by postinstall_cmds
15639     postinstall_cmds='base_file=`basename \${file}`~
15640       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
15641       dldir=$destdir/`dirname \$dlpath`~
15642       test -d \$dldir || mkdir -p \$dldir~
15643       $install_prog $dir/$dlname \$dldir/$dlname~
15644       chmod a+x \$dldir/$dlname~
15645       if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
15646         eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
15647       fi'
15648     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
15649       dlpath=$dir/\$dldll~
15650        $RM \$dlpath'
15651     shlibpath_overrides_runpath=yes
15652
15653     case $host_os in
15654     cygwin*)
15655       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
15656       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15657
15658       ;;
15659     mingw* | cegcc*)
15660       # MinGW DLLs use traditional 'lib' prefix
15661       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15662       ;;
15663     pw32*)
15664       # pw32 DLLs use 'pw' prefix rather than 'lib'
15665       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15666       ;;
15667     esac
15668     dynamic_linker='Win32 ld.exe'
15669     ;;
15670
15671   *,cl*)
15672     # Native MSVC
15673     libname_spec='$name'
15674     soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15675     library_names_spec='${libname}.dll.lib'
15676
15677     case $build_os in
15678     mingw*)
15679       sys_lib_search_path_spec=
15680       lt_save_ifs=$IFS
15681       IFS=';'
15682       for lt_path in $LIB
15683       do
15684         IFS=$lt_save_ifs
15685         # Let DOS variable expansion print the short 8.3 style file name.
15686         lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
15687         sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
15688       done
15689       IFS=$lt_save_ifs
15690       # Convert to MSYS style.
15691       sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
15692       ;;
15693     cygwin*)
15694       # Convert to unix form, then to dos form, then back to unix form
15695       # but this time dos style (no spaces!) so that the unix form looks
15696       # like /cygdrive/c/PROGRA~1:/cygdr...
15697       sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
15698       sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
15699       sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
15700       ;;
15701     *)
15702       sys_lib_search_path_spec="$LIB"
15703       if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
15704         # It is most probably a Windows format PATH.
15705         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
15706       else
15707         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
15708       fi
15709       # FIXME: find the short name or the path components, as spaces are
15710       # common. (e.g. "Program Files" -> "PROGRA~1")
15711       ;;
15712     esac
15713
15714     # DLL is installed to $(libdir)/../bin by postinstall_cmds
15715     postinstall_cmds='base_file=`basename \${file}`~
15716       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
15717       dldir=$destdir/`dirname \$dlpath`~
15718       test -d \$dldir || mkdir -p \$dldir~
15719       $install_prog $dir/$dlname \$dldir/$dlname'
15720     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
15721       dlpath=$dir/\$dldll~
15722        $RM \$dlpath'
15723     shlibpath_overrides_runpath=yes
15724     dynamic_linker='Win32 link.exe'
15725     ;;
15726
15727   *)
15728     # Assume MSVC wrapper
15729     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
15730     dynamic_linker='Win32 ld.exe'
15731     ;;
15732   esac
15733   # FIXME: first we should search . and the directory the executable is in
15734   shlibpath_var=PATH
15735   ;;
15736
15737 darwin* | rhapsody*)
15738   dynamic_linker="$host_os dyld"
15739   version_type=darwin
15740   need_lib_prefix=no
15741   need_version=no
15742   library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
15743   soname_spec='${libname}${release}${major}$shared_ext'
15744   shlibpath_overrides_runpath=yes
15745   shlibpath_var=DYLD_LIBRARY_PATH
15746   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
15747
15748   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
15749   ;;
15750
15751 dgux*)
15752   version_type=linux
15753   need_lib_prefix=no
15754   need_version=no
15755   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
15756   soname_spec='${libname}${release}${shared_ext}$major'
15757   shlibpath_var=LD_LIBRARY_PATH
15758   ;;
15759
15760 freebsd1*)
15761   dynamic_linker=no
15762   ;;
15763
15764 freebsd* | dragonfly*)
15765   # DragonFly does not have aout.  When/if they implement a new
15766   # versioning mechanism, adjust this.
15767   if test -x /usr/bin/objformat; then
15768     objformat=`/usr/bin/objformat`
15769   else
15770     case $host_os in
15771     freebsd[123]*) objformat=aout ;;
15772     *) objformat=elf ;;
15773     esac
15774   fi
15775   version_type=freebsd-$objformat
15776   case $version_type in
15777     freebsd-elf*)
15778       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15779       need_version=no
15780       need_lib_prefix=no
15781       ;;
15782     freebsd-*)
15783       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
15784       need_version=yes
15785       ;;
15786   esac
15787   shlibpath_var=LD_LIBRARY_PATH
15788   case $host_os in
15789   freebsd2*)
15790     shlibpath_overrides_runpath=yes
15791     ;;
15792   freebsd3.[01]* | freebsdelf3.[01]*)
15793     shlibpath_overrides_runpath=yes
15794     hardcode_into_libs=yes
15795     ;;
15796   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
15797   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
15798     shlibpath_overrides_runpath=no
15799     hardcode_into_libs=yes
15800     ;;
15801   *) # from 4.6 on, and DragonFly
15802     shlibpath_overrides_runpath=yes
15803     hardcode_into_libs=yes
15804     ;;
15805   esac
15806   ;;
15807
15808 gnu*)
15809   version_type=linux
15810   need_lib_prefix=no
15811   need_version=no
15812   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
15813   soname_spec='${libname}${release}${shared_ext}$major'
15814   shlibpath_var=LD_LIBRARY_PATH
15815   hardcode_into_libs=yes
15816   ;;
15817
15818 haiku*)
15819   version_type=linux
15820   need_lib_prefix=no
15821   need_version=no
15822   dynamic_linker="$host_os runtime_loader"
15823   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
15824   soname_spec='${libname}${release}${shared_ext}$major'
15825   shlibpath_var=LIBRARY_PATH
15826   shlibpath_overrides_runpath=yes
15827   sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
15828   hardcode_into_libs=yes
15829   ;;
15830
15831 hpux9* | hpux10* | hpux11*)
15832   # Give a soname corresponding to the major version so that dld.sl refuses to
15833   # link against other versions.
15834   version_type=sunos
15835   need_lib_prefix=no
15836   need_version=no
15837   case $host_cpu in
15838   ia64*)
15839     shrext_cmds='.so'
15840     hardcode_into_libs=yes
15841     dynamic_linker="$host_os dld.so"
15842     shlibpath_var=LD_LIBRARY_PATH
15843     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15844     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15845     soname_spec='${libname}${release}${shared_ext}$major'
15846     if test "X$HPUX_IA64_MODE" = X32; then
15847       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
15848     else
15849       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
15850     fi
15851     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15852     ;;
15853   hppa*64*)
15854     shrext_cmds='.sl'
15855     hardcode_into_libs=yes
15856     dynamic_linker="$host_os dld.sl"
15857     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
15858     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15859     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15860     soname_spec='${libname}${release}${shared_ext}$major'
15861     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
15862     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15863     ;;
15864   *)
15865     shrext_cmds='.sl'
15866     dynamic_linker="$host_os dld.sl"
15867     shlibpath_var=SHLIB_PATH
15868     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
15869     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15870     soname_spec='${libname}${release}${shared_ext}$major'
15871     ;;
15872   esac
15873   # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
15874   postinstall_cmds='chmod 555 $lib'
15875   # or fails outright, so override atomically:
15876   install_override_mode=555
15877   ;;
15878
15879 interix[3-9]*)
15880   version_type=linux
15881   need_lib_prefix=no
15882   need_version=no
15883   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15884   soname_spec='${libname}${release}${shared_ext}$major'
15885   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
15886   shlibpath_var=LD_LIBRARY_PATH
15887   shlibpath_overrides_runpath=no
15888   hardcode_into_libs=yes
15889   ;;
15890
15891 irix5* | irix6* | nonstopux*)
15892   case $host_os in
15893     nonstopux*) version_type=nonstopux ;;
15894     *)
15895         if test "$lt_cv_prog_gnu_ld" = yes; then
15896                 version_type=linux
15897         else
15898                 version_type=irix
15899         fi ;;
15900   esac
15901   need_lib_prefix=no
15902   need_version=no
15903   soname_spec='${libname}${release}${shared_ext}$major'
15904   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
15905   case $host_os in
15906   irix5* | nonstopux*)
15907     libsuff= shlibsuff=
15908     ;;
15909   *)
15910     case $LD in # libtool.m4 will add one of these switches to LD
15911     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
15912       libsuff= shlibsuff= libmagic=32-bit;;
15913     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
15914       libsuff=32 shlibsuff=N32 libmagic=N32;;
15915     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
15916       libsuff=64 shlibsuff=64 libmagic=64-bit;;
15917     *) libsuff= shlibsuff= libmagic=never-match;;
15918     esac
15919     ;;
15920   esac
15921   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
15922   shlibpath_overrides_runpath=no
15923   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
15924   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
15925   hardcode_into_libs=yes
15926   ;;
15927
15928 # No shared lib support for Linux oldld, aout, or coff.
15929 linux*oldld* | linux*aout* | linux*coff*)
15930   dynamic_linker=no
15931   ;;
15932
15933 # This must be Linux ELF.
15934 linux* | k*bsd*-gnu | kopensolaris*-gnu)
15935   version_type=linux
15936   need_lib_prefix=no
15937   need_version=no
15938   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15939   soname_spec='${libname}${release}${shared_ext}$major'
15940   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
15941   shlibpath_var=LD_LIBRARY_PATH
15942   shlibpath_overrides_runpath=no
15943
15944   # Some binutils ld are patched to set DT_RUNPATH
15945   if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
15946   $as_echo_n "(cached) " >&6
15947 else
15948   lt_cv_shlibpath_overrides_runpath=no
15949     save_LDFLAGS=$LDFLAGS
15950     save_libdir=$libdir
15951     eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
15952          LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
15953     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15954 /* end confdefs.h.  */
15955
15956 int
15957 main ()
15958 {
15959
15960   ;
15961   return 0;
15962 }
15963 _ACEOF
15964 if ac_fn_cxx_try_link "$LINENO"; then :
15965   if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
15966   lt_cv_shlibpath_overrides_runpath=yes
15967 fi
15968 fi
15969 rm -f core conftest.err conftest.$ac_objext \
15970     conftest$ac_exeext conftest.$ac_ext
15971     LDFLAGS=$save_LDFLAGS
15972     libdir=$save_libdir
15973
15974 fi
15975
15976   shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
15977
15978   # This implies no fast_install, which is unacceptable.
15979   # Some rework will be needed to allow for fast_install
15980   # before this can be enabled.
15981   hardcode_into_libs=yes
15982
15983   # Append ld.so.conf contents to the search path
15984   if test -f /etc/ld.so.conf; then
15985     lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[       ]*hwcap[        ]/d;s/[:,      ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;s/"//g;/^$/d' | tr '\n' ' '`
15986     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
15987   fi
15988
15989   # We used to test for /lib/ld.so.1 and disable shared libraries on
15990   # powerpc, because MkLinux only supported shared libraries with the
15991   # GNU dynamic linker.  Since this was broken with cross compilers,
15992   # most powerpc-linux boxes support dynamic linking these days and
15993   # people can always --disable-shared, the test was removed, and we
15994   # assume the GNU/Linux dynamic linker is in use.
15995   dynamic_linker='GNU/Linux ld.so'
15996   ;;
15997
15998 netbsd*)
15999   version_type=sunos
16000   need_lib_prefix=no
16001   need_version=no
16002   if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
16003     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16004     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16005     dynamic_linker='NetBSD (a.out) ld.so'
16006   else
16007     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16008     soname_spec='${libname}${release}${shared_ext}$major'
16009     dynamic_linker='NetBSD ld.elf_so'
16010   fi
16011   shlibpath_var=LD_LIBRARY_PATH
16012   shlibpath_overrides_runpath=yes
16013   hardcode_into_libs=yes
16014   ;;
16015
16016 newsos6)
16017   version_type=linux
16018   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16019   shlibpath_var=LD_LIBRARY_PATH
16020   shlibpath_overrides_runpath=yes
16021   ;;
16022
16023 *nto* | *qnx*)
16024   version_type=qnx
16025   need_lib_prefix=no
16026   need_version=no
16027   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16028   soname_spec='${libname}${release}${shared_ext}$major'
16029   shlibpath_var=LD_LIBRARY_PATH
16030   shlibpath_overrides_runpath=no
16031   hardcode_into_libs=yes
16032   dynamic_linker='ldqnx.so'
16033   ;;
16034
16035 openbsd*)
16036   version_type=sunos
16037   sys_lib_dlsearch_path_spec="/usr/lib"
16038   need_lib_prefix=no
16039   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
16040   case $host_os in
16041     openbsd3.3 | openbsd3.3.*)  need_version=yes ;;
16042     *)                          need_version=no  ;;
16043   esac
16044   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16045   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16046   shlibpath_var=LD_LIBRARY_PATH
16047   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16048     case $host_os in
16049       openbsd2.[89] | openbsd2.[89].*)
16050         shlibpath_overrides_runpath=no
16051         ;;
16052       *)
16053         shlibpath_overrides_runpath=yes
16054         ;;
16055       esac
16056   else
16057     shlibpath_overrides_runpath=yes
16058   fi
16059   ;;
16060
16061 os2*)
16062   libname_spec='$name'
16063   shrext_cmds=".dll"
16064   need_lib_prefix=no
16065   library_names_spec='$libname${shared_ext} $libname.a'
16066   dynamic_linker='OS/2 ld.exe'
16067   shlibpath_var=LIBPATH
16068   ;;
16069
16070 osf3* | osf4* | osf5*)
16071   version_type=osf
16072   need_lib_prefix=no
16073   need_version=no
16074   soname_spec='${libname}${release}${shared_ext}$major'
16075   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16076   shlibpath_var=LD_LIBRARY_PATH
16077   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
16078   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
16079   ;;
16080
16081 rdos*)
16082   dynamic_linker=no
16083   ;;
16084
16085 solaris*)
16086   version_type=linux
16087   need_lib_prefix=no
16088   need_version=no
16089   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16090   soname_spec='${libname}${release}${shared_ext}$major'
16091   shlibpath_var=LD_LIBRARY_PATH
16092   shlibpath_overrides_runpath=yes
16093   hardcode_into_libs=yes
16094   # ldd complains unless libraries are executable
16095   postinstall_cmds='chmod +x $lib'
16096   ;;
16097
16098 sunos4*)
16099   version_type=sunos
16100   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16101   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
16102   shlibpath_var=LD_LIBRARY_PATH
16103   shlibpath_overrides_runpath=yes
16104   if test "$with_gnu_ld" = yes; then
16105     need_lib_prefix=no
16106   fi
16107   need_version=yes
16108   ;;
16109
16110 sysv4 | sysv4.3*)
16111   version_type=linux
16112   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16113   soname_spec='${libname}${release}${shared_ext}$major'
16114   shlibpath_var=LD_LIBRARY_PATH
16115   case $host_vendor in
16116     sni)
16117       shlibpath_overrides_runpath=no
16118       need_lib_prefix=no
16119       runpath_var=LD_RUN_PATH
16120       ;;
16121     siemens)
16122       need_lib_prefix=no
16123       ;;
16124     motorola)
16125       need_lib_prefix=no
16126       need_version=no
16127       shlibpath_overrides_runpath=no
16128       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
16129       ;;
16130   esac
16131   ;;
16132
16133 sysv4*MP*)
16134   if test -d /usr/nec ;then
16135     version_type=linux
16136     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
16137     soname_spec='$libname${shared_ext}.$major'
16138     shlibpath_var=LD_LIBRARY_PATH
16139   fi
16140   ;;
16141
16142 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
16143   version_type=freebsd-elf
16144   need_lib_prefix=no
16145   need_version=no
16146   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16147   soname_spec='${libname}${release}${shared_ext}$major'
16148   shlibpath_var=LD_LIBRARY_PATH
16149   shlibpath_overrides_runpath=yes
16150   hardcode_into_libs=yes
16151   if test "$with_gnu_ld" = yes; then
16152     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
16153   else
16154     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
16155     case $host_os in
16156       sco3.2v5*)
16157         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
16158         ;;
16159     esac
16160   fi
16161   sys_lib_dlsearch_path_spec='/usr/lib'
16162   ;;
16163
16164 tpf*)
16165   # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
16166   version_type=linux
16167   need_lib_prefix=no
16168   need_version=no
16169   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16170   shlibpath_var=LD_LIBRARY_PATH
16171   shlibpath_overrides_runpath=no
16172   hardcode_into_libs=yes
16173   ;;
16174
16175 uts4*)
16176   version_type=linux
16177   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16178   soname_spec='${libname}${release}${shared_ext}$major'
16179   shlibpath_var=LD_LIBRARY_PATH
16180   ;;
16181
16182 *)
16183   dynamic_linker=no
16184   ;;
16185 esac
16186 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
16187 $as_echo "$dynamic_linker" >&6; }
16188 test "$dynamic_linker" = no && can_build_shared=no
16189
16190 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
16191 if test "$GCC" = yes; then
16192   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
16193 fi
16194
16195 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
16196   sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
16197 fi
16198 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
16199   sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
16200 fi
16201
16202
16203
16204
16205
16206
16207
16208
16209
16210
16211
16212
16213
16214
16215
16216
16217
16218
16219
16220
16221
16222
16223
16224
16225
16226
16227
16228
16229
16230
16231
16232
16233
16234
16235
16236
16237
16238
16239     { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
16240 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
16241 hardcode_action_CXX=
16242 if test -n "$hardcode_libdir_flag_spec_CXX" ||
16243    test -n "$runpath_var_CXX" ||
16244    test "X$hardcode_automatic_CXX" = "Xyes" ; then
16245
16246   # We can hardcode non-existent directories.
16247   if test "$hardcode_direct_CXX" != no &&
16248      # If the only mechanism to avoid hardcoding is shlibpath_var, we
16249      # have to relink, otherwise we might link with an installed library
16250      # when we should be linking with a yet-to-be-installed one
16251      ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
16252      test "$hardcode_minus_L_CXX" != no; then
16253     # Linking always hardcodes the temporary library directory.
16254     hardcode_action_CXX=relink
16255   else
16256     # We can link without hardcoding, and we can hardcode nonexisting dirs.
16257     hardcode_action_CXX=immediate
16258   fi
16259 else
16260   # We cannot hardcode anything, or else we can only hardcode existing
16261   # directories.
16262   hardcode_action_CXX=unsupported
16263 fi
16264 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
16265 $as_echo "$hardcode_action_CXX" >&6; }
16266
16267 if test "$hardcode_action_CXX" = relink ||
16268    test "$inherit_rpath_CXX" = yes; then
16269   # Fast installation is not supported
16270   enable_fast_install=no
16271 elif test "$shlibpath_overrides_runpath" = yes ||
16272      test "$enable_shared" = no; then
16273   # Fast installation is not necessary
16274   enable_fast_install=needless
16275 fi
16276
16277
16278
16279
16280
16281
16282
16283   fi # test -n "$compiler"
16284
16285   CC=$lt_save_CC
16286   CFLAGS=$lt_save_CFLAGS
16287   LDCXX=$LD
16288   LD=$lt_save_LD
16289   GCC=$lt_save_GCC
16290   with_gnu_ld=$lt_save_with_gnu_ld
16291   lt_cv_path_LDCXX=$lt_cv_path_LD
16292   lt_cv_path_LD=$lt_save_path_LD
16293   lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
16294   lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
16295 fi # test "$_lt_caught_CXX_error" != yes
16296
16297 ac_ext=c
16298 ac_cpp='$CPP $CPPFLAGS'
16299 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16300 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16301 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16302
16303
16304
16305
16306
16307
16308
16309
16310
16311
16312
16313
16314
16315         ac_config_commands="$ac_config_commands libtool"
16316
16317
16318
16319
16320 # Only expand once:
16321
16322
16323
16324 LT_DLLOADERS=
16325
16326
16327 ac_ext=c
16328 ac_cpp='$CPP $CPPFLAGS'
16329 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16330 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16331 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16332
16333
16334 LIBADD_DLOPEN=
16335 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5
16336 $as_echo_n "checking for library containing dlopen... " >&6; }
16337 if ${ac_cv_search_dlopen+:} false; then :
16338   $as_echo_n "(cached) " >&6
16339 else
16340   ac_func_search_save_LIBS=$LIBS
16341 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16342 /* end confdefs.h.  */
16343
16344 /* Override any GCC internal prototype to avoid an error.
16345    Use char because int might match the return type of a GCC
16346    builtin and then its argument prototype would still apply.  */
16347 #ifdef __cplusplus
16348 extern "C"
16349 #endif
16350 char dlopen ();
16351 int
16352 main ()
16353 {
16354 return dlopen ();
16355   ;
16356   return 0;
16357 }
16358 _ACEOF
16359 for ac_lib in '' dl; do
16360   if test -z "$ac_lib"; then
16361     ac_res="none required"
16362   else
16363     ac_res=-l$ac_lib
16364     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
16365   fi
16366   if ac_fn_c_try_link "$LINENO"; then :
16367   ac_cv_search_dlopen=$ac_res
16368 fi
16369 rm -f core conftest.err conftest.$ac_objext \
16370     conftest$ac_exeext
16371   if ${ac_cv_search_dlopen+:} false; then :
16372   break
16373 fi
16374 done
16375 if ${ac_cv_search_dlopen+:} false; then :
16376
16377 else
16378   ac_cv_search_dlopen=no
16379 fi
16380 rm conftest.$ac_ext
16381 LIBS=$ac_func_search_save_LIBS
16382 fi
16383 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5
16384 $as_echo "$ac_cv_search_dlopen" >&6; }
16385 ac_res=$ac_cv_search_dlopen
16386 if test "$ac_res" != no; then :
16387   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
16388
16389 $as_echo "#define HAVE_LIBDL 1" >>confdefs.h
16390
16391         if test "$ac_cv_search_dlopen" != "none required" ; then
16392           LIBADD_DLOPEN="-ldl"
16393         fi
16394         libltdl_cv_lib_dl_dlopen="yes"
16395         LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dlopen.la"
16396 else
16397   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16398 /* end confdefs.h.  */
16399 #if HAVE_DLFCN_H
16400 #  include <dlfcn.h>
16401 #endif
16402
16403 int
16404 main ()
16405 {
16406 dlopen(0, 0);
16407   ;
16408   return 0;
16409 }
16410 _ACEOF
16411 if ac_fn_c_try_link "$LINENO"; then :
16412
16413 $as_echo "#define HAVE_LIBDL 1" >>confdefs.h
16414
16415             libltdl_cv_func_dlopen="yes"
16416             LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dlopen.la"
16417 else
16418   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
16419 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
16420 if ${ac_cv_lib_svld_dlopen+:} false; then :
16421   $as_echo_n "(cached) " >&6
16422 else
16423   ac_check_lib_save_LIBS=$LIBS
16424 LIBS="-lsvld  $LIBS"
16425 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16426 /* end confdefs.h.  */
16427
16428 /* Override any GCC internal prototype to avoid an error.
16429    Use char because int might match the return type of a GCC
16430    builtin and then its argument prototype would still apply.  */
16431 #ifdef __cplusplus
16432 extern "C"
16433 #endif
16434 char dlopen ();
16435 int
16436 main ()
16437 {
16438 return dlopen ();
16439   ;
16440   return 0;
16441 }
16442 _ACEOF
16443 if ac_fn_c_try_link "$LINENO"; then :
16444   ac_cv_lib_svld_dlopen=yes
16445 else
16446   ac_cv_lib_svld_dlopen=no
16447 fi
16448 rm -f core conftest.err conftest.$ac_objext \
16449     conftest$ac_exeext conftest.$ac_ext
16450 LIBS=$ac_check_lib_save_LIBS
16451 fi
16452 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
16453 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
16454 if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
16455
16456 $as_echo "#define HAVE_LIBDL 1" >>confdefs.h
16457
16458                 LIBADD_DLOPEN="-lsvld" libltdl_cv_func_dlopen="yes"
16459                 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dlopen.la"
16460 fi
16461
16462 fi
16463 rm -f core conftest.err conftest.$ac_objext \
16464     conftest$ac_exeext conftest.$ac_ext
16465 fi
16466
16467 if test x"$libltdl_cv_func_dlopen" = xyes || test x"$libltdl_cv_lib_dl_dlopen" = xyes
16468 then
16469   lt_save_LIBS="$LIBS"
16470   LIBS="$LIBS $LIBADD_DLOPEN"
16471   for ac_func in dlerror
16472 do :
16473   ac_fn_c_check_func "$LINENO" "dlerror" "ac_cv_func_dlerror"
16474 if test "x$ac_cv_func_dlerror" = xyes; then :
16475   cat >>confdefs.h <<_ACEOF
16476 #define HAVE_DLERROR 1
16477 _ACEOF
16478
16479 fi
16480 done
16481
16482   LIBS="$lt_save_LIBS"
16483 fi
16484
16485
16486 LIBADD_SHL_LOAD=
16487 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
16488 if test "x$ac_cv_func_shl_load" = xyes; then :
16489
16490 $as_echo "#define HAVE_SHL_LOAD 1" >>confdefs.h
16491
16492         LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}shl_load.la"
16493 else
16494   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
16495 $as_echo_n "checking for shl_load in -ldld... " >&6; }
16496 if ${ac_cv_lib_dld_shl_load+:} false; then :
16497   $as_echo_n "(cached) " >&6
16498 else
16499   ac_check_lib_save_LIBS=$LIBS
16500 LIBS="-ldld  $LIBS"
16501 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16502 /* end confdefs.h.  */
16503
16504 /* Override any GCC internal prototype to avoid an error.
16505    Use char because int might match the return type of a GCC
16506    builtin and then its argument prototype would still apply.  */
16507 #ifdef __cplusplus
16508 extern "C"
16509 #endif
16510 char shl_load ();
16511 int
16512 main ()
16513 {
16514 return shl_load ();
16515   ;
16516   return 0;
16517 }
16518 _ACEOF
16519 if ac_fn_c_try_link "$LINENO"; then :
16520   ac_cv_lib_dld_shl_load=yes
16521 else
16522   ac_cv_lib_dld_shl_load=no
16523 fi
16524 rm -f core conftest.err conftest.$ac_objext \
16525     conftest$ac_exeext conftest.$ac_ext
16526 LIBS=$ac_check_lib_save_LIBS
16527 fi
16528 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
16529 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
16530 if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
16531
16532 $as_echo "#define HAVE_SHL_LOAD 1" >>confdefs.h
16533
16534             LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}shl_load.la"
16535             LIBADD_SHL_LOAD="-ldld"
16536 fi
16537
16538 fi
16539
16540
16541
16542 case $host_os in
16543 darwin[1567].*)
16544 # We only want this for pre-Mac OS X 10.4.
16545   ac_fn_c_check_func "$LINENO" "_dyld_func_lookup" "ac_cv_func__dyld_func_lookup"
16546 if test "x$ac_cv_func__dyld_func_lookup" = xyes; then :
16547
16548 $as_echo "#define HAVE_DYLD 1" >>confdefs.h
16549
16550         LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dyld.la"
16551 fi
16552
16553   ;;
16554 beos*)
16555   LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}load_add_on.la"
16556   ;;
16557 cygwin* | mingw* | os2* | pw32*)
16558   ac_fn_c_check_decl "$LINENO" "cygwin_conv_path" "ac_cv_have_decl_cygwin_conv_path" "#include <sys/cygwin.h>
16559 "
16560 if test "x$ac_cv_have_decl_cygwin_conv_path" = xyes; then :
16561   ac_have_decl=1
16562 else
16563   ac_have_decl=0
16564 fi
16565
16566 cat >>confdefs.h <<_ACEOF
16567 #define HAVE_DECL_CYGWIN_CONV_PATH $ac_have_decl
16568 _ACEOF
16569
16570   LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}loadlibrary.la"
16571   ;;
16572 esac
16573
16574 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
16575 $as_echo_n "checking for dld_link in -ldld... " >&6; }
16576 if ${ac_cv_lib_dld_dld_link+:} false; then :
16577   $as_echo_n "(cached) " >&6
16578 else
16579   ac_check_lib_save_LIBS=$LIBS
16580 LIBS="-ldld  $LIBS"
16581 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16582 /* end confdefs.h.  */
16583
16584 /* Override any GCC internal prototype to avoid an error.
16585    Use char because int might match the return type of a GCC
16586    builtin and then its argument prototype would still apply.  */
16587 #ifdef __cplusplus
16588 extern "C"
16589 #endif
16590 char dld_link ();
16591 int
16592 main ()
16593 {
16594 return dld_link ();
16595   ;
16596   return 0;
16597 }
16598 _ACEOF
16599 if ac_fn_c_try_link "$LINENO"; then :
16600   ac_cv_lib_dld_dld_link=yes
16601 else
16602   ac_cv_lib_dld_dld_link=no
16603 fi
16604 rm -f core conftest.err conftest.$ac_objext \
16605     conftest$ac_exeext conftest.$ac_ext
16606 LIBS=$ac_check_lib_save_LIBS
16607 fi
16608 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
16609 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
16610 if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
16611
16612 $as_echo "#define HAVE_DLD 1" >>confdefs.h
16613
16614                 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dld_link.la"
16615 fi
16616
16617
16618
16619
16620 LT_DLPREOPEN=
16621 if test -n "$LT_DLLOADERS"
16622 then
16623   for lt_loader in $LT_DLLOADERS; do
16624     LT_DLPREOPEN="$LT_DLPREOPEN-dlpreopen $lt_loader "
16625   done
16626
16627 $as_echo "#define HAVE_LIBDLLOADER 1" >>confdefs.h
16628
16629 fi
16630
16631
16632 LIBADD_DL="$LIBADD_DLOPEN $LIBADD_SHL_LOAD"
16633
16634
16635 ac_ext=c
16636 ac_cpp='$CPP $CPPFLAGS'
16637 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16638 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16639 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16640
16641
16642
16643
16644 if test x$use_libtool != xno; then
16645    DEFAULT_OBJECT_TYPE=".lo"
16646    DEFAULT_ARCHIVE_TYPE=".la"
16647    DEFAULT_SHARED_OBJECT_TYPE=".la"
16648    LIBTOOL="\$(LIBTOOL)"
16649    LIBTOOL_INSTALL_TARGET="libtool-install"
16650    LIBTOOL_UNINSTALL_TARGET="libtool-uninstall"
16651    LIBTOOL_CLEAN_TARGET="libtool-clean"
16652    QMAKE_LIBTOOL="${BUILD_DIR}/libtool"
16653    FD_PLUGIN_DIR="src/plugins/fd"
16654    have_plugins=yes
16655 else
16656    DEFAULT_OBJECT_TYPE=".o"
16657    DEFAULT_ARCHIVE_TYPE=".a"
16658    DEFAULT_SHARED_OBJECT_TYPE=".so"
16659    LIBTOOL="# \$(LIBTOOL)"
16660    LIBTOOL_INSTALL_TARGET=""
16661    LIBTOOL_UNINSTALL_TARGET=""
16662    LIBTOOL_CLEAN_TARGET=""
16663    QMAKE_LIBTOOL="# ${BUILD_DIR}/libtool"
16664    FD_PLUGIN_DIR=""
16665    have_plugins=no
16666 fi
16667
16668
16669
16670
16671
16672
16673
16674
16675
16676
16677
16678 # Check whether --enable-includes was given.
16679 if test "${enable_includes+set}" = set; then :
16680   enableval=$enable_includes;
16681        if test x$enableval = xyes; then
16682           install_includes=yes
16683        fi
16684
16685
16686 fi
16687
16688
16689
16690 if test x$use_libtool != xno -a x$install_includes = xyes; then
16691    INCLUDE_INSTALL_TARGET="install-includes"
16692    INCLUDE_UNINSTALL_TARGET="uninstall-includes"
16693 else
16694    INCLUDE_INSTALL_TARGET=""
16695    INCLUDE_UNINSTALL_TARGET=""
16696 fi
16697
16698
16699
16700
16701
16702 case $host_os in
16703   *cygwin* ) CYGWIN=yes;;
16704          * ) CYGWIN=no;;
16705 esac
16706
16707 if test $HAVE_UNAME=yes -a x`uname -s` = xSunOS
16708 then
16709
16710
16711 if $TRUEPRG; then
16712   HAVE_SUN_OS_TRUE=
16713   HAVE_SUN_OS_FALSE='#'
16714 else
16715   HAVE_SUN_OS_TRUE='#'
16716   HAVE_SUN_OS_FALSE=
16717 fi
16718         $as_echo "#define HAVE_SUN_OS 1" >>confdefs.h
16719
16720 else
16721
16722
16723 if $FALSEPRG; then
16724   HAVE_SUN_OS_TRUE=
16725   HAVE_SUN_OS_FALSE='#'
16726 else
16727   HAVE_SUN_OS_TRUE='#'
16728   HAVE_SUN_OS_FALSE=
16729 fi
16730 fi
16731
16732 if test $HAVE_UNAME=yes -a x`uname -s` = xGNU
16733 then
16734
16735
16736 if $TRUEPRG; then
16737   HAVE_HURD_OS_TRUE=
16738   HAVE_HURD_OS_FALSE='#'
16739 else
16740   HAVE_HURD_OS_TRUE='#'
16741   HAVE_HURD_OS_FALSE=
16742 fi
16743         $as_echo "#define HAVE_HURD_OS 1" >>confdefs.h
16744
16745 else
16746
16747
16748 if $FALSEPRG; then
16749   HAVE_HURD_OS_TRUE=
16750   HAVE_HURD_OS_FALSE='#'
16751 else
16752   HAVE_HURD_OS_TRUE='#'
16753   HAVE_HURD_OS_FALSE=
16754 fi
16755 fi
16756
16757 if test $HAVE_UNAME=yes -a x`uname -s` = xOSF1
16758 then
16759
16760
16761 if $TRUEPRG; then
16762   HAVE_OSF1_OS_TRUE=
16763   HAVE_OSF1_OS_FALSE='#'
16764 else
16765   HAVE_OSF1_OS_TRUE='#'
16766   HAVE_OSF1_OS_FALSE=
16767 fi
16768         $as_echo "#define HAVE_OSF1_OS 1" >>confdefs.h
16769
16770 else
16771
16772
16773 if $FALSEPRG; then
16774   HAVE_OSF1_OS_TRUE=
16775   HAVE_OSF1_OS_FALSE='#'
16776 else
16777   HAVE_OSF1_OS_TRUE='#'
16778   HAVE_OSF1_OS_FALSE=
16779 fi
16780 fi
16781
16782 if test $HAVE_UNAME=yes -a x`uname -s` = xAIX
16783 then
16784
16785
16786 if $TRUEPRG; then
16787   HAVE_AIX_OS_TRUE=
16788   HAVE_AIX_OS_FALSE='#'
16789 else
16790   HAVE_AIX_OS_TRUE='#'
16791   HAVE_AIX_OS_FALSE=
16792 fi
16793         $as_echo "#define HAVE_AIX_OS 1" >>confdefs.h
16794
16795 else
16796
16797
16798 if $FALSEPRG; then
16799   HAVE_AIX_OS_TRUE=
16800   HAVE_AIX_OS_FALSE='#'
16801 else
16802   HAVE_AIX_OS_TRUE='#'
16803   HAVE_AIX_OS_FALSE=
16804 fi
16805 fi
16806
16807 if test $HAVE_UNAME=yes -a x`uname -s` = xHP-UX
16808 then
16809
16810
16811 if $TRUEPRG; then
16812   HAVE_HPUX_OS_TRUE=
16813   HAVE_HPUX_OS_FALSE='#'
16814 else
16815   HAVE_HPUX_OS_TRUE='#'
16816   HAVE_HPUX_OS_FALSE=
16817 fi
16818         $as_echo "#define HAVE_HPUX_OS 1" >>confdefs.h
16819
16820 else
16821
16822
16823 if $FALSEPRG; then
16824   HAVE_HPUX_OS_TRUE=
16825   HAVE_HPUX_OS_FALSE='#'
16826 else
16827   HAVE_HPUX_OS_TRUE='#'
16828   HAVE_HPUX_OS_FALSE=
16829 fi
16830 fi
16831
16832 if test $HAVE_UNAME=yes -a x`uname -s` = xLinux
16833 then
16834
16835
16836 if $TRUEPRG; then
16837   HAVE_LINUX_OS_TRUE=
16838   HAVE_LINUX_OS_FALSE='#'
16839 else
16840   HAVE_LINUX_OS_TRUE='#'
16841   HAVE_LINUX_OS_FALSE=
16842 fi
16843         $as_echo "#define HAVE_LINUX_OS 1" >>confdefs.h
16844
16845 else
16846
16847
16848 if $FALSEPRG; then
16849   HAVE_LINUX_OS_TRUE=
16850   HAVE_LINUX_OS_FALSE='#'
16851 else
16852   HAVE_LINUX_OS_TRUE='#'
16853   HAVE_LINUX_OS_FALSE=
16854 fi
16855 fi
16856
16857 if test $HAVE_UNAME=yes -a x`uname -s` = xFreeBSD
16858 then
16859
16860
16861 if $TRUEPRG; then
16862   HAVE_FREEBSD_OS_TRUE=
16863   HAVE_FREEBSD_OS_FALSE='#'
16864 else
16865   HAVE_FREEBSD_OS_TRUE='#'
16866   HAVE_FREEBSD_OS_FALSE=
16867 fi
16868         $as_echo "#define HAVE_FREEBSD_OS 1" >>confdefs.h
16869
16870 else
16871
16872
16873 if $FALSEPRG; then
16874   HAVE_FREEBSD_OS_TRUE=
16875   HAVE_FREEBSD_OS_FALSE='#'
16876 else
16877   HAVE_FREEBSD_OS_TRUE='#'
16878   HAVE_FREEBSD_OS_FALSE=
16879 fi
16880 fi
16881
16882 if test $HAVE_UNAME=yes -a x`uname -s` = xNetBSD
16883 then
16884
16885
16886 if $TRUEPRG; then
16887   HAVE_NETBSD_OS_TRUE=
16888   HAVE_NETBSD_OS_FALSE='#'
16889 else
16890   HAVE_NETBSD_OS_TRUE='#'
16891   HAVE_NETBSD_OS_FALSE=
16892 fi
16893         $as_echo "#define HAVE_NETBSD_OS 1" >>confdefs.h
16894
16895 else
16896
16897
16898 if $FALSEPRG; then
16899   HAVE_NETBSD_OS_TRUE=
16900   HAVE_NETBSD_OS_FALSE='#'
16901 else
16902   HAVE_NETBSD_OS_TRUE='#'
16903   HAVE_NETBSD_OS_FALSE=
16904 fi
16905 fi
16906
16907 if test $HAVE_UNAME=yes -a x`uname -s` = xOpenBSD
16908 then
16909
16910
16911 if $TRUEPRG; then
16912   HAVE_OPENBSD_OS_TRUE=
16913   HAVE_OPENBSD_OS_FALSE='#'
16914 else
16915   HAVE_OPENBSD_OS_TRUE='#'
16916   HAVE_OPENBSD_OS_FALSE=
16917 fi
16918         $as_echo "#define HAVE_OPENBSD_OS 1" >>confdefs.h
16919
16920 else
16921
16922
16923 if $FALSEPRG; then
16924   HAVE_OPENBSD_OS_TRUE=
16925   HAVE_OPENBSD_OS_FALSE='#'
16926 else
16927   HAVE_OPENBSD_OS_TRUE='#'
16928   HAVE_OPENBSD_OS_FALSE=
16929 fi
16930 fi
16931
16932 if test $HAVE_UNAME=yes -a x`uname -s` = xBSD/OS
16933 then
16934
16935
16936 if $TRUEPRG; then
16937   HAVE_BSDI_OS_TRUE=
16938   HAVE_BSDI_OS_FALSE='#'
16939 else
16940   HAVE_BSDI_OS_TRUE='#'
16941   HAVE_BSDI_OS_FALSE=
16942 fi
16943         $as_echo "#define HAVE_BSDI_OS 1" >>confdefs.h
16944
16945 else
16946
16947
16948 if $FALSEPRG; then
16949   HAVE_BSDI_OS_TRUE=
16950   HAVE_BSDI_OS_FALSE='#'
16951 else
16952   HAVE_BSDI_OS_TRUE='#'
16953   HAVE_BSDI_OS_FALSE=
16954 fi
16955 fi
16956
16957 if test $HAVE_UNAME=yes -a x`uname -s` = xSGI
16958 then
16959
16960
16961 if $TRUEPRG; then
16962   HAVE_SGI_OS_TRUE=
16963   HAVE_SGI_OS_FALSE='#'
16964 else
16965   HAVE_SGI_OS_TRUE='#'
16966   HAVE_SGI_OS_FALSE=
16967 fi
16968         $as_echo "#define HAVE_SGI_OS 1" >>confdefs.h
16969
16970 else
16971
16972
16973 if $FALSEPRG; then
16974   HAVE_SGI_OS_TRUE=
16975   HAVE_SGI_OS_FALSE='#'
16976 else
16977   HAVE_SGI_OS_TRUE='#'
16978   HAVE_SGI_OS_FALSE=
16979 fi
16980 fi
16981
16982 if test $HAVE_UNAME=yes -a x`uname -s` = xIRIX -o x`uname -s` = xIRIX64
16983 then
16984
16985
16986 if $TRUEPRG; then
16987   HAVE_IRIX_OS_TRUE=
16988   HAVE_IRIX_OS_FALSE='#'
16989 else
16990   HAVE_IRIX_OS_TRUE='#'
16991   HAVE_IRIX_OS_FALSE=
16992 fi
16993         $as_echo "#define HAVE_IRIX_OS 1" >>confdefs.h
16994
16995 else
16996
16997
16998 if $FALSEPRG; then
16999   HAVE_IRIX_OS_TRUE=
17000   HAVE_IRIX_OS_FALSE='#'
17001 else
17002   HAVE_IRIX_OS_TRUE='#'
17003   HAVE_IRIX_OS_FALSE=
17004 fi
17005 fi
17006
17007 if test $HAVE_UNAME=yes -a x`uname -s` = xDarwin
17008 then
17009
17010
17011 if $TRUEPRG; then
17012   HAVE_DARWIN_OS_TRUE=
17013   HAVE_DARWIN_OS_FALSE='#'
17014 else
17015   HAVE_DARWIN_OS_TRUE='#'
17016   HAVE_DARWIN_OS_FALSE=
17017 fi
17018     $as_echo "#define HAVE_DARWIN_OS 1" >>confdefs.h
17019
17020 else
17021
17022
17023 if $FALSEPRG; then
17024   HAVE_DARWIN_OS_TRUE=
17025   HAVE_DARWIN_OS_FALSE='#'
17026 else
17027   HAVE_DARWIN_OS_TRUE='#'
17028   HAVE_DARWIN_OS_FALSE=
17029 fi
17030 fi
17031
17032
17033 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Operating System Distribution" >&5
17034 $as_echo_n "checking for Operating System Distribution... " >&6; }
17035 if test "x$DISTNAME" != "x"
17036 then
17037         echo "distname set to $DISTNAME"
17038 elif test $HAVE_UNAME=yes -a x`uname -s` = xOSF1
17039 then
17040         DISTNAME=alpha
17041 elif test $HAVE_UNAME=yes -a x`uname -s` = xAIX
17042 then
17043         DISTNAME=aix
17044 elif test $HAVE_UNAME=yes -a x`uname -s` = xHP-UX
17045 then
17046         DISTNAME=hpux
17047 elif test $HAVE_UNAME=yes -a x`uname -s` = xSunOS
17048 then
17049         DISTNAME=solaris
17050 elif test $HAVE_UNAME=yes -a x`uname -s` = xGNU
17051 then
17052         DISTNAME=hurd
17053 elif test $HAVE_UNAME=yes -a x`uname -s` = xFreeBSD
17054 then
17055         DISTNAME=freebsd
17056 elif test $HAVE_UNAME=yes -a x`uname -s` = xNetBSD
17057 then
17058         DISTNAME=netbsd
17059 elif test $HAVE_UNAME=yes -a x`uname -s` = xOpenBSD
17060 then
17061         DISTNAME=openbsd
17062 elif test $HAVE_UNAME=yes -a x`uname -s` = xIRIX
17063 then
17064         DISTNAME=irix
17065 elif test $HAVE_UNAME=yes -a x`uname -s` = xBSD/OS
17066 then
17067         DISTNAME=bsdi
17068 elif test -f /etc/SuSE-release
17069 then
17070         DISTNAME=suse
17071 elif test -d /etc/SuSEconfig
17072 then
17073         DISTNAME=suse5
17074 elif test -f /etc/mandrake-release
17075 then
17076         DISTNAME=mandrake
17077 elif test -f /etc/whitebox-release
17078 then
17079        DISTNAME=redhat
17080 elif test -f /etc/redhat-release
17081 then
17082         DISTNAME=redhat
17083 elif test -f /etc/gentoo-release
17084 then
17085         DISTNAME=gentoo
17086 elif test -f /etc/debian_version
17087 then
17088         DISTNAME=debian
17089 elif test -f /etc/slackware-version
17090 then
17091         DISTNAME=slackware
17092 elif test x$host_vendor = xapple
17093 then
17094     DISTNAME=osx
17095 elif test $HAVE_UNAME=yes -a x`uname -s` = xDarwin
17096 then
17097     DISTNAME=darwin
17098 elif test -f /etc/engarde-version
17099 then
17100         DISTNAME=engarde
17101 elif test -f /etc/arch-release
17102 then
17103         DISTNAME=archlinux
17104 elif test "$CYGWIN" = yes
17105 then
17106         DISTNAME=cygwin
17107         $as_echo "#define HAVE_CYGWIN 1" >>confdefs.h
17108
17109 else
17110         DISTNAME=unknown
17111 fi
17112 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
17113 $as_echo "done" >&6; }
17114
17115
17116 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
17117 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
17118 set x ${MAKE-make}
17119 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
17120 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
17121   $as_echo_n "(cached) " >&6
17122 else
17123   cat >conftest.make <<\_ACEOF
17124 SHELL = /bin/sh
17125 all:
17126         @echo '@@@%%%=$(MAKE)=@@@%%%'
17127 _ACEOF
17128 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
17129 case `${MAKE-make} -f conftest.make 2>/dev/null` in
17130   *@@@%%%=?*=@@@%%%*)
17131     eval ac_cv_prog_make_${ac_make}_set=yes;;
17132   *)
17133     eval ac_cv_prog_make_${ac_make}_set=no;;
17134 esac
17135 rm -f conftest.make
17136 fi
17137 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
17138   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17139 $as_echo "yes" >&6; }
17140   SET_MAKE=
17141 else
17142   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17143 $as_echo "no" >&6; }
17144   SET_MAKE="MAKE=${MAKE-make}"
17145 fi
17146
17147
17148
17149         MKINSTALLDIRS=
17150   if test -n "$ac_aux_dir"; then
17151     case "$ac_aux_dir" in
17152       /*) MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs" ;;
17153       *) MKINSTALLDIRS="\$(top_builddir)/$ac_aux_dir/mkinstalldirs" ;;
17154     esac
17155   fi
17156   if test -z "$MKINSTALLDIRS"; then
17157     MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs"
17158   fi
17159
17160
17161
17162   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
17163 $as_echo_n "checking whether NLS is requested... " >&6; }
17164     # Check whether --enable-nls was given.
17165 if test "${enable_nls+set}" = set; then :
17166   enableval=$enable_nls; USE_NLS=$enableval
17167 else
17168   USE_NLS=yes
17169 fi
17170
17171   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
17172 $as_echo "$USE_NLS" >&6; }
17173
17174
17175
17176
17177
17178
17179 # Prepare PATH_SEPARATOR.
17180 # The user is always right.
17181 if test "${PATH_SEPARATOR+set}" != set; then
17182   echo "#! /bin/sh" >conf$$.sh
17183   echo  "exit 0"   >>conf$$.sh
17184   chmod +x conf$$.sh
17185   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
17186     PATH_SEPARATOR=';'
17187   else
17188     PATH_SEPARATOR=:
17189   fi
17190   rm -f conf$$.sh
17191 fi
17192
17193 # Find out how to test for executable files. Don't use a zero-byte file,
17194 # as systems may use methods other than mode bits to determine executability.
17195 cat >conf$$.file <<_ASEOF
17196 #! /bin/sh
17197 exit 0
17198 _ASEOF
17199 chmod +x conf$$.file
17200 if test -x conf$$.file >/dev/null 2>&1; then
17201   ac_executable_p="test -x"
17202 else
17203   ac_executable_p="test -f"
17204 fi
17205 rm -f conf$$.file
17206
17207 # Extract the first word of "msgfmt", so it can be a program name with args.
17208 set dummy msgfmt; ac_word=$2
17209 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17210 $as_echo_n "checking for $ac_word... " >&6; }
17211 if ${ac_cv_path_MSGFMT+:} false; then :
17212   $as_echo_n "(cached) " >&6
17213 else
17214   case "$MSGFMT" in
17215   [\\/]* | ?:[\\/]*)
17216     ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
17217     ;;
17218   *)
17219     ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
17220     for ac_dir in $PATH; do
17221       IFS="$ac_save_IFS"
17222       test -z "$ac_dir" && ac_dir=.
17223       for ac_exec_ext in '' $ac_executable_extensions; do
17224         if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
17225           echo "$as_me: trying $ac_dir/$ac_word..." >&5
17226           if $ac_dir/$ac_word --statistics /dev/null >&5 2>&1 &&
17227      (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
17228             ac_cv_path_MSGFMT="$ac_dir/$ac_word$ac_exec_ext"
17229             break 2
17230           fi
17231         fi
17232       done
17233     done
17234     IFS="$ac_save_IFS"
17235   test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
17236     ;;
17237 esac
17238 fi
17239 MSGFMT="$ac_cv_path_MSGFMT"
17240 if test "$MSGFMT" != ":"; then
17241   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGFMT" >&5
17242 $as_echo "$MSGFMT" >&6; }
17243 else
17244   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17245 $as_echo "no" >&6; }
17246 fi
17247
17248   # Extract the first word of "gmsgfmt", so it can be a program name with args.
17249 set dummy gmsgfmt; ac_word=$2
17250 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17251 $as_echo_n "checking for $ac_word... " >&6; }
17252 if ${ac_cv_path_GMSGFMT+:} false; then :
17253   $as_echo_n "(cached) " >&6
17254 else
17255   case $GMSGFMT in
17256   [\\/]* | ?:[\\/]*)
17257   ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
17258   ;;
17259   *)
17260   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17261 for as_dir in $PATH
17262 do
17263   IFS=$as_save_IFS
17264   test -z "$as_dir" && as_dir=.
17265     for ac_exec_ext in '' $ac_executable_extensions; do
17266   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
17267     ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
17268     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17269     break 2
17270   fi
17271 done
17272   done
17273 IFS=$as_save_IFS
17274
17275   test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
17276   ;;
17277 esac
17278 fi
17279 GMSGFMT=$ac_cv_path_GMSGFMT
17280 if test -n "$GMSGFMT"; then
17281   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GMSGFMT" >&5
17282 $as_echo "$GMSGFMT" >&6; }
17283 else
17284   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17285 $as_echo "no" >&6; }
17286 fi
17287
17288
17289
17290
17291 # Prepare PATH_SEPARATOR.
17292 # The user is always right.
17293 if test "${PATH_SEPARATOR+set}" != set; then
17294   echo "#! /bin/sh" >conf$$.sh
17295   echo  "exit 0"   >>conf$$.sh
17296   chmod +x conf$$.sh
17297   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
17298     PATH_SEPARATOR=';'
17299   else
17300     PATH_SEPARATOR=:
17301   fi
17302   rm -f conf$$.sh
17303 fi
17304
17305 # Find out how to test for executable files. Don't use a zero-byte file,
17306 # as systems may use methods other than mode bits to determine executability.
17307 cat >conf$$.file <<_ASEOF
17308 #! /bin/sh
17309 exit 0
17310 _ASEOF
17311 chmod +x conf$$.file
17312 if test -x conf$$.file >/dev/null 2>&1; then
17313   ac_executable_p="test -x"
17314 else
17315   ac_executable_p="test -f"
17316 fi
17317 rm -f conf$$.file
17318
17319 # Extract the first word of "xgettext", so it can be a program name with args.
17320 set dummy xgettext; ac_word=$2
17321 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17322 $as_echo_n "checking for $ac_word... " >&6; }
17323 if ${ac_cv_path_XGETTEXT+:} false; then :
17324   $as_echo_n "(cached) " >&6
17325 else
17326   case "$XGETTEXT" in
17327   [\\/]* | ?:[\\/]*)
17328     ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
17329     ;;
17330   *)
17331     ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
17332     for ac_dir in $PATH; do
17333       IFS="$ac_save_IFS"
17334       test -z "$ac_dir" && ac_dir=.
17335       for ac_exec_ext in '' $ac_executable_extensions; do
17336         if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
17337           echo "$as_me: trying $ac_dir/$ac_word..." >&5
17338           if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >&5 2>&1 &&
17339      (if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
17340             ac_cv_path_XGETTEXT="$ac_dir/$ac_word$ac_exec_ext"
17341             break 2
17342           fi
17343         fi
17344       done
17345     done
17346     IFS="$ac_save_IFS"
17347   test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
17348     ;;
17349 esac
17350 fi
17351 XGETTEXT="$ac_cv_path_XGETTEXT"
17352 if test "$XGETTEXT" != ":"; then
17353   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XGETTEXT" >&5
17354 $as_echo "$XGETTEXT" >&6; }
17355 else
17356   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17357 $as_echo "no" >&6; }
17358 fi
17359
17360     rm -f messages.po
17361
17362
17363 # Prepare PATH_SEPARATOR.
17364 # The user is always right.
17365 if test "${PATH_SEPARATOR+set}" != set; then
17366   echo "#! /bin/sh" >conf$$.sh
17367   echo  "exit 0"   >>conf$$.sh
17368   chmod +x conf$$.sh
17369   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
17370     PATH_SEPARATOR=';'
17371   else
17372     PATH_SEPARATOR=:
17373   fi
17374   rm -f conf$$.sh
17375 fi
17376
17377 # Find out how to test for executable files. Don't use a zero-byte file,
17378 # as systems may use methods other than mode bits to determine executability.
17379 cat >conf$$.file <<_ASEOF
17380 #! /bin/sh
17381 exit 0
17382 _ASEOF
17383 chmod +x conf$$.file
17384 if test -x conf$$.file >/dev/null 2>&1; then
17385   ac_executable_p="test -x"
17386 else
17387   ac_executable_p="test -f"
17388 fi
17389 rm -f conf$$.file
17390
17391 # Extract the first word of "msgmerge", so it can be a program name with args.
17392 set dummy msgmerge; ac_word=$2
17393 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17394 $as_echo_n "checking for $ac_word... " >&6; }
17395 if ${ac_cv_path_MSGMERGE+:} false; then :
17396   $as_echo_n "(cached) " >&6
17397 else
17398   case "$MSGMERGE" in
17399   [\\/]* | ?:[\\/]*)
17400     ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path.
17401     ;;
17402   *)
17403     ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
17404     for ac_dir in $PATH; do
17405       IFS="$ac_save_IFS"
17406       test -z "$ac_dir" && ac_dir=.
17407       for ac_exec_ext in '' $ac_executable_extensions; do
17408         if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
17409           echo "$as_me: trying $ac_dir/$ac_word..." >&5
17410           if $ac_dir/$ac_word --update -q /dev/null /dev/null >&5 2>&1; then
17411             ac_cv_path_MSGMERGE="$ac_dir/$ac_word$ac_exec_ext"
17412             break 2
17413           fi
17414         fi
17415       done
17416     done
17417     IFS="$ac_save_IFS"
17418   test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":"
17419     ;;
17420 esac
17421 fi
17422 MSGMERGE="$ac_cv_path_MSGMERGE"
17423 if test "$MSGMERGE" != ":"; then
17424   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGMERGE" >&5
17425 $as_echo "$MSGMERGE" >&6; }
17426 else
17427   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17428 $as_echo "no" >&6; }
17429 fi
17430
17431
17432       if test "$GMSGFMT" != ":"; then
17433             if $GMSGFMT --statistics /dev/null >/dev/null 2>&1 &&
17434        (if $GMSGFMT --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
17435       : ;
17436     else
17437       GMSGFMT=`echo "$GMSGFMT" | sed -e 's,^.*/,,'`
17438       { $as_echo "$as_me:${as_lineno-$LINENO}: result: found $GMSGFMT program is not GNU msgfmt; ignore it" >&5
17439 $as_echo "found $GMSGFMT program is not GNU msgfmt; ignore it" >&6; }
17440       GMSGFMT=":"
17441     fi
17442   fi
17443
17444       if test "$XGETTEXT" != ":"; then
17445             if $XGETTEXT --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 &&
17446        (if $XGETTEXT --omit-header --copyright-holder= --msgid-bugs-address= /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
17447       : ;
17448     else
17449       { $as_echo "$as_me:${as_lineno-$LINENO}: result: found xgettext program is not GNU xgettext; ignore it" >&5
17450 $as_echo "found xgettext program is not GNU xgettext; ignore it" >&6; }
17451       XGETTEXT=":"
17452     fi
17453         rm -f messages.po
17454   fi
17455
17456   ac_config_commands="$ac_config_commands default-1"
17457
17458
17459
17460       if test "X$prefix" = "XNONE"; then
17461     acl_final_prefix="$ac_default_prefix"
17462   else
17463     acl_final_prefix="$prefix"
17464   fi
17465   if test "X$exec_prefix" = "XNONE"; then
17466     acl_final_exec_prefix='${prefix}'
17467   else
17468     acl_final_exec_prefix="$exec_prefix"
17469   fi
17470   acl_save_prefix="$prefix"
17471   prefix="$acl_final_prefix"
17472   eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
17473   prefix="$acl_save_prefix"
17474
17475
17476 # Check whether --with-gnu-ld was given.
17477 if test "${with_gnu_ld+set}" = set; then :
17478   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
17479 else
17480   with_gnu_ld=no
17481 fi
17482
17483 # Prepare PATH_SEPARATOR.
17484 # The user is always right.
17485 if test "${PATH_SEPARATOR+set}" != set; then
17486   echo "#! /bin/sh" >conf$$.sh
17487   echo  "exit 0"   >>conf$$.sh
17488   chmod +x conf$$.sh
17489   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
17490     PATH_SEPARATOR=';'
17491   else
17492     PATH_SEPARATOR=:
17493   fi
17494   rm -f conf$$.sh
17495 fi
17496 ac_prog=ld
17497 if test "$GCC" = yes; then
17498   # Check if gcc -print-prog-name=ld gives a path.
17499   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by GCC" >&5
17500 $as_echo_n "checking for ld used by GCC... " >&6; }
17501   case $host in
17502   *-*-mingw*)
17503     # gcc leaves a trailing carriage return which upsets mingw
17504     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
17505   *)
17506     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
17507   esac
17508   case $ac_prog in
17509     # Accept absolute paths.
17510     [\\/]* | [A-Za-z]:[\\/]*)
17511       re_direlt='/[^/][^/]*/\.\./'
17512       # Canonicalize the path of ld
17513       ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
17514       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
17515         ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
17516       done
17517       test -z "$LD" && LD="$ac_prog"
17518       ;;
17519   "")
17520     # If it fails, then pretend we aren't using GCC.
17521     ac_prog=ld
17522     ;;
17523   *)
17524     # If it is relative, then search for the first ld in PATH.
17525     with_gnu_ld=unknown
17526     ;;
17527   esac
17528 elif test "$with_gnu_ld" = yes; then
17529   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
17530 $as_echo_n "checking for GNU ld... " >&6; }
17531 else
17532   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
17533 $as_echo_n "checking for non-GNU ld... " >&6; }
17534 fi
17535 if ${acl_cv_path_LD+:} false; then :
17536   $as_echo_n "(cached) " >&6
17537 else
17538   if test -z "$LD"; then
17539   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
17540   for ac_dir in $PATH; do
17541     test -z "$ac_dir" && ac_dir=.
17542     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
17543       acl_cv_path_LD="$ac_dir/$ac_prog"
17544       # Check to see if the program is GNU ld.  I'd rather use --version,
17545       # but apparently some GNU ld's only accept -v.
17546       # Break only if it was the GNU/non-GNU ld that we prefer.
17547       case `"$acl_cv_path_LD" -v 2>&1 < /dev/null` in
17548       *GNU* | *'with BFD'*)
17549         test "$with_gnu_ld" != no && break ;;
17550       *)
17551         test "$with_gnu_ld" != yes && break ;;
17552       esac
17553     fi
17554   done
17555   IFS="$ac_save_ifs"
17556 else
17557   acl_cv_path_LD="$LD" # Let the user override the test with a path.
17558 fi
17559 fi
17560
17561 LD="$acl_cv_path_LD"
17562 if test -n "$LD"; then
17563   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
17564 $as_echo "$LD" >&6; }
17565 else
17566   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17567 $as_echo "no" >&6; }
17568 fi
17569 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
17570 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
17571 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
17572 if ${acl_cv_prog_gnu_ld+:} false; then :
17573   $as_echo_n "(cached) " >&6
17574 else
17575   # I'd rather use --version here, but apparently some GNU ld's only accept -v.
17576 case `$LD -v 2>&1 </dev/null` in
17577 *GNU* | *'with BFD'*)
17578   acl_cv_prog_gnu_ld=yes ;;
17579 *)
17580   acl_cv_prog_gnu_ld=no ;;
17581 esac
17582 fi
17583 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_prog_gnu_ld" >&5
17584 $as_echo "$acl_cv_prog_gnu_ld" >&6; }
17585 with_gnu_ld=$acl_cv_prog_gnu_ld
17586
17587
17588
17589
17590                                                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shared library run path origin" >&5
17591 $as_echo_n "checking for shared library run path origin... " >&6; }
17592 if ${acl_cv_rpath+:} false; then :
17593   $as_echo_n "(cached) " >&6
17594 else
17595
17596     CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
17597     ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
17598     . ./conftest.sh
17599     rm -f ./conftest.sh
17600     acl_cv_rpath=done
17601
17602 fi
17603 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_rpath" >&5
17604 $as_echo "$acl_cv_rpath" >&6; }
17605   wl="$acl_cv_wl"
17606   libext="$acl_cv_libext"
17607   shlibext="$acl_cv_shlibext"
17608   hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
17609   hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
17610   hardcode_direct="$acl_cv_hardcode_direct"
17611   hardcode_minus_L="$acl_cv_hardcode_minus_L"
17612     # Check whether --enable-rpath was given.
17613 if test "${enable_rpath+set}" = set; then :
17614   enableval=$enable_rpath; :
17615 else
17616   enable_rpath=yes
17617 fi
17618
17619
17620
17621
17622
17623
17624
17625
17626     use_additional=yes
17627
17628   acl_save_prefix="$prefix"
17629   prefix="$acl_final_prefix"
17630   acl_save_exec_prefix="$exec_prefix"
17631   exec_prefix="$acl_final_exec_prefix"
17632
17633     eval additional_includedir=\"$includedir\"
17634     eval additional_libdir=\"$libdir\"
17635
17636   exec_prefix="$acl_save_exec_prefix"
17637   prefix="$acl_save_prefix"
17638
17639
17640 # Check whether --with-libiconv-prefix was given.
17641 if test "${with_libiconv_prefix+set}" = set; then :
17642   withval=$with_libiconv_prefix;
17643     if test "X$withval" = "Xno"; then
17644       use_additional=no
17645     else
17646       if test "X$withval" = "X"; then
17647
17648   acl_save_prefix="$prefix"
17649   prefix="$acl_final_prefix"
17650   acl_save_exec_prefix="$exec_prefix"
17651   exec_prefix="$acl_final_exec_prefix"
17652
17653           eval additional_includedir=\"$includedir\"
17654           eval additional_libdir=\"$libdir\"
17655
17656   exec_prefix="$acl_save_exec_prefix"
17657   prefix="$acl_save_prefix"
17658
17659       else
17660         additional_includedir="$withval/include"
17661         additional_libdir="$withval/lib"
17662       fi
17663     fi
17664
17665 fi
17666
17667       LIBICONV=
17668   LTLIBICONV=
17669   INCICONV=
17670   rpathdirs=
17671   ltrpathdirs=
17672   names_already_handled=
17673   names_next_round='iconv '
17674   while test -n "$names_next_round"; do
17675     names_this_round="$names_next_round"
17676     names_next_round=
17677     for name in $names_this_round; do
17678       already_handled=
17679       for n in $names_already_handled; do
17680         if test "$n" = "$name"; then
17681           already_handled=yes
17682           break
17683         fi
17684       done
17685       if test -z "$already_handled"; then
17686         names_already_handled="$names_already_handled $name"
17687                         uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
17688         eval value=\"\$HAVE_LIB$uppername\"
17689         if test -n "$value"; then
17690           if test "$value" = yes; then
17691             eval value=\"\$LIB$uppername\"
17692             test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
17693             eval value=\"\$LTLIB$uppername\"
17694             test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
17695           else
17696                                     :
17697           fi
17698         else
17699                               found_dir=
17700           found_la=
17701           found_so=
17702           found_a=
17703           if test $use_additional = yes; then
17704             if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
17705               found_dir="$additional_libdir"
17706               found_so="$additional_libdir/lib$name.$shlibext"
17707               if test -f "$additional_libdir/lib$name.la"; then
17708                 found_la="$additional_libdir/lib$name.la"
17709               fi
17710             else
17711               if test -f "$additional_libdir/lib$name.$libext"; then
17712                 found_dir="$additional_libdir"
17713                 found_a="$additional_libdir/lib$name.$libext"
17714                 if test -f "$additional_libdir/lib$name.la"; then
17715                   found_la="$additional_libdir/lib$name.la"
17716                 fi
17717               fi
17718             fi
17719           fi
17720           if test "X$found_dir" = "X"; then
17721             for x in $LDFLAGS $LTLIBICONV; do
17722
17723   acl_save_prefix="$prefix"
17724   prefix="$acl_final_prefix"
17725   acl_save_exec_prefix="$exec_prefix"
17726   exec_prefix="$acl_final_exec_prefix"
17727   eval x=\"$x\"
17728   exec_prefix="$acl_save_exec_prefix"
17729   prefix="$acl_save_prefix"
17730
17731               case "$x" in
17732                 -L*)
17733                   dir=`echo "X$x" | sed -e 's/^X-L//'`
17734                   if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
17735                     found_dir="$dir"
17736                     found_so="$dir/lib$name.$shlibext"
17737                     if test -f "$dir/lib$name.la"; then
17738                       found_la="$dir/lib$name.la"
17739                     fi
17740                   else
17741                     if test -f "$dir/lib$name.$libext"; then
17742                       found_dir="$dir"
17743                       found_a="$dir/lib$name.$libext"
17744                       if test -f "$dir/lib$name.la"; then
17745                         found_la="$dir/lib$name.la"
17746                       fi
17747                     fi
17748                   fi
17749                   ;;
17750               esac
17751               if test "X$found_dir" != "X"; then
17752                 break
17753               fi
17754             done
17755           fi
17756           if test "X$found_dir" != "X"; then
17757                         LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
17758             if test "X$found_so" != "X"; then
17759                                                         if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
17760                                 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
17761               else
17762                                                                                 haveit=
17763                 for x in $ltrpathdirs; do
17764                   if test "X$x" = "X$found_dir"; then
17765                     haveit=yes
17766                     break
17767                   fi
17768                 done
17769                 if test -z "$haveit"; then
17770                   ltrpathdirs="$ltrpathdirs $found_dir"
17771                 fi
17772                                 if test "$hardcode_direct" = yes; then
17773                                                       LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
17774                 else
17775                   if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
17776                                                             LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
17777                                                             haveit=
17778                     for x in $rpathdirs; do
17779                       if test "X$x" = "X$found_dir"; then
17780                         haveit=yes
17781                         break
17782                       fi
17783                     done
17784                     if test -z "$haveit"; then
17785                       rpathdirs="$rpathdirs $found_dir"
17786                     fi
17787                   else
17788                                                                                 haveit=
17789                     for x in $LDFLAGS $LIBICONV; do
17790
17791   acl_save_prefix="$prefix"
17792   prefix="$acl_final_prefix"
17793   acl_save_exec_prefix="$exec_prefix"
17794   exec_prefix="$acl_final_exec_prefix"
17795   eval x=\"$x\"
17796   exec_prefix="$acl_save_exec_prefix"
17797   prefix="$acl_save_prefix"
17798
17799                       if test "X$x" = "X-L$found_dir"; then
17800                         haveit=yes
17801                         break
17802                       fi
17803                     done
17804                     if test -z "$haveit"; then
17805                       LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
17806                     fi
17807                     if test "$hardcode_minus_L" != no; then
17808                                                                                         LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
17809                     else
17810                                                                                                                                                                                 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
17811                     fi
17812                   fi
17813                 fi
17814               fi
17815             else
17816               if test "X$found_a" != "X"; then
17817                                 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
17818               else
17819                                                 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
17820               fi
17821             fi
17822                         additional_includedir=
17823             case "$found_dir" in
17824               */lib | */lib/)
17825                 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
17826                 additional_includedir="$basedir/include"
17827                 ;;
17828             esac
17829             if test "X$additional_includedir" != "X"; then
17830                                                                                                                 if test "X$additional_includedir" != "X/usr/include"; then
17831                 haveit=
17832                 if test "X$additional_includedir" = "X/usr/local/include"; then
17833                   if test -n "$GCC"; then
17834                     case $host_os in
17835                       linux* | gnu* | k*bsd*-gnu) haveit=yes;;
17836                     esac
17837                   fi
17838                 fi
17839                 if test -z "$haveit"; then
17840                   for x in $CPPFLAGS $INCICONV; do
17841
17842   acl_save_prefix="$prefix"
17843   prefix="$acl_final_prefix"
17844   acl_save_exec_prefix="$exec_prefix"
17845   exec_prefix="$acl_final_exec_prefix"
17846   eval x=\"$x\"
17847   exec_prefix="$acl_save_exec_prefix"
17848   prefix="$acl_save_prefix"
17849
17850                     if test "X$x" = "X-I$additional_includedir"; then
17851                       haveit=yes
17852                       break
17853                     fi
17854                   done
17855                   if test -z "$haveit"; then
17856                     if test -d "$additional_includedir"; then
17857                                             INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
17858                     fi
17859                   fi
17860                 fi
17861               fi
17862             fi
17863                         if test -n "$found_la"; then
17864                                                         save_libdir="$libdir"
17865               case "$found_la" in
17866                 */* | *\\*) . "$found_la" ;;
17867                 *) . "./$found_la" ;;
17868               esac
17869               libdir="$save_libdir"
17870                             for dep in $dependency_libs; do
17871                 case "$dep" in
17872                   -L*)
17873                     additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
17874                                                                                                                                                                 if test "X$additional_libdir" != "X/usr/lib"; then
17875                       haveit=
17876                       if test "X$additional_libdir" = "X/usr/local/lib"; then
17877                         if test -n "$GCC"; then
17878                           case $host_os in
17879                             linux* | gnu* | k*bsd*-gnu) haveit=yes;;
17880                           esac
17881                         fi
17882                       fi
17883                       if test -z "$haveit"; then
17884                         haveit=
17885                         for x in $LDFLAGS $LIBICONV; do
17886
17887   acl_save_prefix="$prefix"
17888   prefix="$acl_final_prefix"
17889   acl_save_exec_prefix="$exec_prefix"
17890   exec_prefix="$acl_final_exec_prefix"
17891   eval x=\"$x\"
17892   exec_prefix="$acl_save_exec_prefix"
17893   prefix="$acl_save_prefix"
17894
17895                           if test "X$x" = "X-L$additional_libdir"; then
17896                             haveit=yes
17897                             break
17898                           fi
17899                         done
17900                         if test -z "$haveit"; then
17901                           if test -d "$additional_libdir"; then
17902                                                         LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
17903                           fi
17904                         fi
17905                         haveit=
17906                         for x in $LDFLAGS $LTLIBICONV; do
17907
17908   acl_save_prefix="$prefix"
17909   prefix="$acl_final_prefix"
17910   acl_save_exec_prefix="$exec_prefix"
17911   exec_prefix="$acl_final_exec_prefix"
17912   eval x=\"$x\"
17913   exec_prefix="$acl_save_exec_prefix"
17914   prefix="$acl_save_prefix"
17915
17916                           if test "X$x" = "X-L$additional_libdir"; then
17917                             haveit=yes
17918                             break
17919                           fi
17920                         done
17921                         if test -z "$haveit"; then
17922                           if test -d "$additional_libdir"; then
17923                                                         LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
17924                           fi
17925                         fi
17926                       fi
17927                     fi
17928                     ;;
17929                   -R*)
17930                     dir=`echo "X$dep" | sed -e 's/^X-R//'`
17931                     if test "$enable_rpath" != no; then
17932                                                                   haveit=
17933                       for x in $rpathdirs; do
17934                         if test "X$x" = "X$dir"; then
17935                           haveit=yes
17936                           break
17937                         fi
17938                       done
17939                       if test -z "$haveit"; then
17940                         rpathdirs="$rpathdirs $dir"
17941                       fi
17942                                                                   haveit=
17943                       for x in $ltrpathdirs; do
17944                         if test "X$x" = "X$dir"; then
17945                           haveit=yes
17946                           break
17947                         fi
17948                       done
17949                       if test -z "$haveit"; then
17950                         ltrpathdirs="$ltrpathdirs $dir"
17951                       fi
17952                     fi
17953                     ;;
17954                   -l*)
17955                                         names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
17956                     ;;
17957                   *.la)
17958                                                                                 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
17959                     ;;
17960                   *)
17961                                         LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
17962                     LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
17963                     ;;
17964                 esac
17965               done
17966             fi
17967           else
17968                                                             LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
17969             LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
17970           fi
17971         fi
17972       fi
17973     done
17974   done
17975   if test "X$rpathdirs" != "X"; then
17976     if test -n "$hardcode_libdir_separator"; then
17977                         alldirs=
17978       for found_dir in $rpathdirs; do
17979         alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
17980       done
17981             acl_save_libdir="$libdir"
17982       libdir="$alldirs"
17983       eval flag=\"$hardcode_libdir_flag_spec\"
17984       libdir="$acl_save_libdir"
17985       LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
17986     else
17987             for found_dir in $rpathdirs; do
17988         acl_save_libdir="$libdir"
17989         libdir="$found_dir"
17990         eval flag=\"$hardcode_libdir_flag_spec\"
17991         libdir="$acl_save_libdir"
17992         LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
17993       done
17994     fi
17995   fi
17996   if test "X$ltrpathdirs" != "X"; then
17997             for found_dir in $ltrpathdirs; do
17998       LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
17999     done
18000   fi
18001
18002
18003
18004
18005
18006
18007
18008
18009
18010
18011
18012
18013
18014
18015
18016
18017
18018
18019     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFPreferencesCopyAppValue" >&5
18020 $as_echo_n "checking for CFPreferencesCopyAppValue... " >&6; }
18021 if ${gt_cv_func_CFPreferencesCopyAppValue+:} false; then :
18022   $as_echo_n "(cached) " >&6
18023 else
18024   gt_save_CPPFLAGS="$CPPFLAGS"
18025      CPPFLAGS="$CPPFLAGS -I/System/Library/Frameworks/CoreFoundation.framework/Headers"
18026      gt_save_LIBS="$LIBS"
18027      LIBS="$LIBS -framework CoreFoundation"
18028      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18029 /* end confdefs.h.  */
18030 #include <CFPreferences.h>
18031 int
18032 main ()
18033 {
18034 CFPreferencesCopyAppValue(NULL, NULL)
18035   ;
18036   return 0;
18037 }
18038 _ACEOF
18039 if ac_fn_c_try_link "$LINENO"; then :
18040   gt_cv_func_CFPreferencesCopyAppValue=yes
18041 else
18042   gt_cv_func_CFPreferencesCopyAppValue=no
18043 fi
18044 rm -f core conftest.err conftest.$ac_objext \
18045     conftest$ac_exeext conftest.$ac_ext
18046      CPPFLAGS="$gt_save_CPPFLAGS"
18047      LIBS="$gt_save_LIBS"
18048 fi
18049 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFPreferencesCopyAppValue" >&5
18050 $as_echo "$gt_cv_func_CFPreferencesCopyAppValue" >&6; }
18051   if test $gt_cv_func_CFPreferencesCopyAppValue = yes; then
18052
18053 $as_echo "#define HAVE_CFPREFERENCESCOPYAPPVALUE 1" >>confdefs.h
18054
18055   fi
18056     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFLocaleCopyCurrent" >&5
18057 $as_echo_n "checking for CFLocaleCopyCurrent... " >&6; }
18058 if ${gt_cv_func_CFLocaleCopyCurrent+:} false; then :
18059   $as_echo_n "(cached) " >&6
18060 else
18061   gt_save_CPPFLAGS="$CPPFLAGS"
18062      CPPFLAGS="$CPPFLAGS -I/System/Library/Frameworks/CoreFoundation.framework/Headers"
18063      gt_save_LIBS="$LIBS"
18064      LIBS="$LIBS -framework CoreFoundation"
18065      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18066 /* end confdefs.h.  */
18067 #include <CFLocale.h>
18068 int
18069 main ()
18070 {
18071 CFLocaleCopyCurrent();
18072   ;
18073   return 0;
18074 }
18075 _ACEOF
18076 if ac_fn_c_try_link "$LINENO"; then :
18077   gt_cv_func_CFLocaleCopyCurrent=yes
18078 else
18079   gt_cv_func_CFLocaleCopyCurrent=no
18080 fi
18081 rm -f core conftest.err conftest.$ac_objext \
18082     conftest$ac_exeext conftest.$ac_ext
18083      CPPFLAGS="$gt_save_CPPFLAGS"
18084      LIBS="$gt_save_LIBS"
18085 fi
18086 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFLocaleCopyCurrent" >&5
18087 $as_echo "$gt_cv_func_CFLocaleCopyCurrent" >&6; }
18088   if test $gt_cv_func_CFLocaleCopyCurrent = yes; then
18089
18090 $as_echo "#define HAVE_CFLOCALECOPYCURRENT 1" >>confdefs.h
18091
18092   fi
18093   INTL_MACOSX_LIBS=
18094   if test $gt_cv_func_CFPreferencesCopyAppValue = yes || test $gt_cv_func_CFLocaleCopyCurrent = yes; then
18095     INTL_MACOSX_LIBS="-Wl,-framework -Wl,CoreFoundation"
18096   fi
18097
18098
18099
18100
18101   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
18102 $as_echo_n "checking whether NLS is requested... " >&6; }
18103     # Check whether --enable-nls was given.
18104 if test "${enable_nls+set}" = set; then :
18105   enableval=$enable_nls; USE_NLS=$enableval
18106 else
18107   USE_NLS=yes
18108 fi
18109
18110   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
18111 $as_echo "$USE_NLS" >&6; }
18112
18113
18114
18115
18116   LIBINTL=
18117   LTLIBINTL=
18118   POSUB=
18119
18120     if test "$USE_NLS" = "yes"; then
18121     gt_use_preinstalled_gnugettext=no
18122
18123
18124
18125
18126
18127
18128         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libc" >&5
18129 $as_echo_n "checking for GNU gettext in libc... " >&6; }
18130 if ${gt_cv_func_gnugettext1_libc+:} false; then :
18131   $as_echo_n "(cached) " >&6
18132 else
18133   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18134 /* end confdefs.h.  */
18135 #include <libintl.h>
18136 extern int _nl_msg_cat_cntr;
18137 extern int *_nl_domain_bindings;
18138 int
18139 main ()
18140 {
18141 bindtextdomain ("", "");
18142 return * gettext ("") + _nl_msg_cat_cntr + *_nl_domain_bindings
18143   ;
18144   return 0;
18145 }
18146 _ACEOF
18147 if ac_fn_c_try_link "$LINENO"; then :
18148   gt_cv_func_gnugettext1_libc=yes
18149 else
18150   gt_cv_func_gnugettext1_libc=no
18151 fi
18152 rm -f core conftest.err conftest.$ac_objext \
18153     conftest$ac_exeext conftest.$ac_ext
18154 fi
18155 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_gnugettext1_libc" >&5
18156 $as_echo "$gt_cv_func_gnugettext1_libc" >&6; }
18157
18158         if test "$gt_cv_func_gnugettext1_libc" != "yes"; then
18159
18160
18161
18162
18163
18164           am_save_CPPFLAGS="$CPPFLAGS"
18165
18166   for element in $INCICONV; do
18167     haveit=
18168     for x in $CPPFLAGS; do
18169
18170   acl_save_prefix="$prefix"
18171   prefix="$acl_final_prefix"
18172   acl_save_exec_prefix="$exec_prefix"
18173   exec_prefix="$acl_final_exec_prefix"
18174   eval x=\"$x\"
18175   exec_prefix="$acl_save_exec_prefix"
18176   prefix="$acl_save_prefix"
18177
18178       if test "X$x" = "X$element"; then
18179         haveit=yes
18180         break
18181       fi
18182     done
18183     if test -z "$haveit"; then
18184       CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
18185     fi
18186   done
18187
18188
18189   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5
18190 $as_echo_n "checking for iconv... " >&6; }
18191 if ${am_cv_func_iconv+:} false; then :
18192   $as_echo_n "(cached) " >&6
18193 else
18194
18195     am_cv_func_iconv="no, consider installing GNU libiconv"
18196     am_cv_lib_iconv=no
18197     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18198 /* end confdefs.h.  */
18199 #include <stdlib.h>
18200 #include <iconv.h>
18201 int
18202 main ()
18203 {
18204 iconv_t cd = iconv_open("","");
18205        iconv(cd,NULL,NULL,NULL,NULL);
18206        iconv_close(cd);
18207   ;
18208   return 0;
18209 }
18210 _ACEOF
18211 if ac_fn_c_try_link "$LINENO"; then :
18212   am_cv_func_iconv=yes
18213 fi
18214 rm -f core conftest.err conftest.$ac_objext \
18215     conftest$ac_exeext conftest.$ac_ext
18216     if test "$am_cv_func_iconv" != yes; then
18217       am_save_LIBS="$LIBS"
18218       LIBS="$LIBS $LIBICONV"
18219       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18220 /* end confdefs.h.  */
18221 #include <stdlib.h>
18222 #include <iconv.h>
18223 int
18224 main ()
18225 {
18226 iconv_t cd = iconv_open("","");
18227          iconv(cd,NULL,NULL,NULL,NULL);
18228          iconv_close(cd);
18229   ;
18230   return 0;
18231 }
18232 _ACEOF
18233 if ac_fn_c_try_link "$LINENO"; then :
18234   am_cv_lib_iconv=yes
18235         am_cv_func_iconv=yes
18236 fi
18237 rm -f core conftest.err conftest.$ac_objext \
18238     conftest$ac_exeext conftest.$ac_ext
18239       LIBS="$am_save_LIBS"
18240     fi
18241
18242 fi
18243 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5
18244 $as_echo "$am_cv_func_iconv" >&6; }
18245   if test "$am_cv_func_iconv" = yes; then
18246
18247 $as_echo "#define HAVE_ICONV 1" >>confdefs.h
18248
18249   fi
18250   if test "$am_cv_lib_iconv" = yes; then
18251     { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libiconv" >&5
18252 $as_echo_n "checking how to link with libiconv... " >&6; }
18253     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBICONV" >&5
18254 $as_echo "$LIBICONV" >&6; }
18255   else
18256             CPPFLAGS="$am_save_CPPFLAGS"
18257     LIBICONV=
18258     LTLIBICONV=
18259   fi
18260
18261
18262
18263
18264
18265
18266     use_additional=yes
18267
18268   acl_save_prefix="$prefix"
18269   prefix="$acl_final_prefix"
18270   acl_save_exec_prefix="$exec_prefix"
18271   exec_prefix="$acl_final_exec_prefix"
18272
18273     eval additional_includedir=\"$includedir\"
18274     eval additional_libdir=\"$libdir\"
18275
18276   exec_prefix="$acl_save_exec_prefix"
18277   prefix="$acl_save_prefix"
18278
18279
18280 # Check whether --with-libintl-prefix was given.
18281 if test "${with_libintl_prefix+set}" = set; then :
18282   withval=$with_libintl_prefix;
18283     if test "X$withval" = "Xno"; then
18284       use_additional=no
18285     else
18286       if test "X$withval" = "X"; then
18287
18288   acl_save_prefix="$prefix"
18289   prefix="$acl_final_prefix"
18290   acl_save_exec_prefix="$exec_prefix"
18291   exec_prefix="$acl_final_exec_prefix"
18292
18293           eval additional_includedir=\"$includedir\"
18294           eval additional_libdir=\"$libdir\"
18295
18296   exec_prefix="$acl_save_exec_prefix"
18297   prefix="$acl_save_prefix"
18298
18299       else
18300         additional_includedir="$withval/include"
18301         additional_libdir="$withval/lib"
18302       fi
18303     fi
18304
18305 fi
18306
18307       LIBINTL=
18308   LTLIBINTL=
18309   INCINTL=
18310   rpathdirs=
18311   ltrpathdirs=
18312   names_already_handled=
18313   names_next_round='intl '
18314   while test -n "$names_next_round"; do
18315     names_this_round="$names_next_round"
18316     names_next_round=
18317     for name in $names_this_round; do
18318       already_handled=
18319       for n in $names_already_handled; do
18320         if test "$n" = "$name"; then
18321           already_handled=yes
18322           break
18323         fi
18324       done
18325       if test -z "$already_handled"; then
18326         names_already_handled="$names_already_handled $name"
18327                         uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
18328         eval value=\"\$HAVE_LIB$uppername\"
18329         if test -n "$value"; then
18330           if test "$value" = yes; then
18331             eval value=\"\$LIB$uppername\"
18332             test -z "$value" || LIBINTL="${LIBINTL}${LIBINTL:+ }$value"
18333             eval value=\"\$LTLIB$uppername\"
18334             test -z "$value" || LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$value"
18335           else
18336                                     :
18337           fi
18338         else
18339                               found_dir=
18340           found_la=
18341           found_so=
18342           found_a=
18343           if test $use_additional = yes; then
18344             if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
18345               found_dir="$additional_libdir"
18346               found_so="$additional_libdir/lib$name.$shlibext"
18347               if test -f "$additional_libdir/lib$name.la"; then
18348                 found_la="$additional_libdir/lib$name.la"
18349               fi
18350             else
18351               if test -f "$additional_libdir/lib$name.$libext"; then
18352                 found_dir="$additional_libdir"
18353                 found_a="$additional_libdir/lib$name.$libext"
18354                 if test -f "$additional_libdir/lib$name.la"; then
18355                   found_la="$additional_libdir/lib$name.la"
18356                 fi
18357               fi
18358             fi
18359           fi
18360           if test "X$found_dir" = "X"; then
18361             for x in $LDFLAGS $LTLIBINTL; do
18362
18363   acl_save_prefix="$prefix"
18364   prefix="$acl_final_prefix"
18365   acl_save_exec_prefix="$exec_prefix"
18366   exec_prefix="$acl_final_exec_prefix"
18367   eval x=\"$x\"
18368   exec_prefix="$acl_save_exec_prefix"
18369   prefix="$acl_save_prefix"
18370
18371               case "$x" in
18372                 -L*)
18373                   dir=`echo "X$x" | sed -e 's/^X-L//'`
18374                   if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
18375                     found_dir="$dir"
18376                     found_so="$dir/lib$name.$shlibext"
18377                     if test -f "$dir/lib$name.la"; then
18378                       found_la="$dir/lib$name.la"
18379                     fi
18380                   else
18381                     if test -f "$dir/lib$name.$libext"; then
18382                       found_dir="$dir"
18383                       found_a="$dir/lib$name.$libext"
18384                       if test -f "$dir/lib$name.la"; then
18385                         found_la="$dir/lib$name.la"
18386                       fi
18387                     fi
18388                   fi
18389                   ;;
18390               esac
18391               if test "X$found_dir" != "X"; then
18392                 break
18393               fi
18394             done
18395           fi
18396           if test "X$found_dir" != "X"; then
18397                         LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$found_dir -l$name"
18398             if test "X$found_so" != "X"; then
18399                                                         if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
18400                                 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
18401               else
18402                                                                                 haveit=
18403                 for x in $ltrpathdirs; do
18404                   if test "X$x" = "X$found_dir"; then
18405                     haveit=yes
18406                     break
18407                   fi
18408                 done
18409                 if test -z "$haveit"; then
18410                   ltrpathdirs="$ltrpathdirs $found_dir"
18411                 fi
18412                                 if test "$hardcode_direct" = yes; then
18413                                                       LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
18414                 else
18415                   if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
18416                                                             LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
18417                                                             haveit=
18418                     for x in $rpathdirs; do
18419                       if test "X$x" = "X$found_dir"; then
18420                         haveit=yes
18421                         break
18422                       fi
18423                     done
18424                     if test -z "$haveit"; then
18425                       rpathdirs="$rpathdirs $found_dir"
18426                     fi
18427                   else
18428                                                                                 haveit=
18429                     for x in $LDFLAGS $LIBINTL; do
18430
18431   acl_save_prefix="$prefix"
18432   prefix="$acl_final_prefix"
18433   acl_save_exec_prefix="$exec_prefix"
18434   exec_prefix="$acl_final_exec_prefix"
18435   eval x=\"$x\"
18436   exec_prefix="$acl_save_exec_prefix"
18437   prefix="$acl_save_prefix"
18438
18439                       if test "X$x" = "X-L$found_dir"; then
18440                         haveit=yes
18441                         break
18442                       fi
18443                     done
18444                     if test -z "$haveit"; then
18445                       LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir"
18446                     fi
18447                     if test "$hardcode_minus_L" != no; then
18448                                                                                         LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
18449                     else
18450                                                                                                                                                                                 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
18451                     fi
18452                   fi
18453                 fi
18454               fi
18455             else
18456               if test "X$found_a" != "X"; then
18457                                 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_a"
18458               else
18459                                                 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir -l$name"
18460               fi
18461             fi
18462                         additional_includedir=
18463             case "$found_dir" in
18464               */lib | */lib/)
18465                 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
18466                 additional_includedir="$basedir/include"
18467                 ;;
18468             esac
18469             if test "X$additional_includedir" != "X"; then
18470                                                                                                                 if test "X$additional_includedir" != "X/usr/include"; then
18471                 haveit=
18472                 if test "X$additional_includedir" = "X/usr/local/include"; then
18473                   if test -n "$GCC"; then
18474                     case $host_os in
18475                       linux* | gnu* | k*bsd*-gnu) haveit=yes;;
18476                     esac
18477                   fi
18478                 fi
18479                 if test -z "$haveit"; then
18480                   for x in $CPPFLAGS $INCINTL; do
18481
18482   acl_save_prefix="$prefix"
18483   prefix="$acl_final_prefix"
18484   acl_save_exec_prefix="$exec_prefix"
18485   exec_prefix="$acl_final_exec_prefix"
18486   eval x=\"$x\"
18487   exec_prefix="$acl_save_exec_prefix"
18488   prefix="$acl_save_prefix"
18489
18490                     if test "X$x" = "X-I$additional_includedir"; then
18491                       haveit=yes
18492                       break
18493                     fi
18494                   done
18495                   if test -z "$haveit"; then
18496                     if test -d "$additional_includedir"; then
18497                                             INCINTL="${INCINTL}${INCINTL:+ }-I$additional_includedir"
18498                     fi
18499                   fi
18500                 fi
18501               fi
18502             fi
18503                         if test -n "$found_la"; then
18504                                                         save_libdir="$libdir"
18505               case "$found_la" in
18506                 */* | *\\*) . "$found_la" ;;
18507                 *) . "./$found_la" ;;
18508               esac
18509               libdir="$save_libdir"
18510                             for dep in $dependency_libs; do
18511                 case "$dep" in
18512                   -L*)
18513                     additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
18514                                                                                                                                                                 if test "X$additional_libdir" != "X/usr/lib"; then
18515                       haveit=
18516                       if test "X$additional_libdir" = "X/usr/local/lib"; then
18517                         if test -n "$GCC"; then
18518                           case $host_os in
18519                             linux* | gnu* | k*bsd*-gnu) haveit=yes;;
18520                           esac
18521                         fi
18522                       fi
18523                       if test -z "$haveit"; then
18524                         haveit=
18525                         for x in $LDFLAGS $LIBINTL; do
18526
18527   acl_save_prefix="$prefix"
18528   prefix="$acl_final_prefix"
18529   acl_save_exec_prefix="$exec_prefix"
18530   exec_prefix="$acl_final_exec_prefix"
18531   eval x=\"$x\"
18532   exec_prefix="$acl_save_exec_prefix"
18533   prefix="$acl_save_prefix"
18534
18535                           if test "X$x" = "X-L$additional_libdir"; then
18536                             haveit=yes
18537                             break
18538                           fi
18539                         done
18540                         if test -z "$haveit"; then
18541                           if test -d "$additional_libdir"; then
18542                                                         LIBINTL="${LIBINTL}${LIBINTL:+ }-L$additional_libdir"
18543                           fi
18544                         fi
18545                         haveit=
18546                         for x in $LDFLAGS $LTLIBINTL; do
18547
18548   acl_save_prefix="$prefix"
18549   prefix="$acl_final_prefix"
18550   acl_save_exec_prefix="$exec_prefix"
18551   exec_prefix="$acl_final_exec_prefix"
18552   eval x=\"$x\"
18553   exec_prefix="$acl_save_exec_prefix"
18554   prefix="$acl_save_prefix"
18555
18556                           if test "X$x" = "X-L$additional_libdir"; then
18557                             haveit=yes
18558                             break
18559                           fi
18560                         done
18561                         if test -z "$haveit"; then
18562                           if test -d "$additional_libdir"; then
18563                                                         LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$additional_libdir"
18564                           fi
18565                         fi
18566                       fi
18567                     fi
18568                     ;;
18569                   -R*)
18570                     dir=`echo "X$dep" | sed -e 's/^X-R//'`
18571                     if test "$enable_rpath" != no; then
18572                                                                   haveit=
18573                       for x in $rpathdirs; do
18574                         if test "X$x" = "X$dir"; then
18575                           haveit=yes
18576                           break
18577                         fi
18578                       done
18579                       if test -z "$haveit"; then
18580                         rpathdirs="$rpathdirs $dir"
18581                       fi
18582                                                                   haveit=
18583                       for x in $ltrpathdirs; do
18584                         if test "X$x" = "X$dir"; then
18585                           haveit=yes
18586                           break
18587                         fi
18588                       done
18589                       if test -z "$haveit"; then
18590                         ltrpathdirs="$ltrpathdirs $dir"
18591                       fi
18592                     fi
18593                     ;;
18594                   -l*)
18595                                         names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
18596                     ;;
18597                   *.la)
18598                                                                                 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
18599                     ;;
18600                   *)
18601                                         LIBINTL="${LIBINTL}${LIBINTL:+ }$dep"
18602                     LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$dep"
18603                     ;;
18604                 esac
18605               done
18606             fi
18607           else
18608                                                             LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
18609             LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-l$name"
18610           fi
18611         fi
18612       fi
18613     done
18614   done
18615   if test "X$rpathdirs" != "X"; then
18616     if test -n "$hardcode_libdir_separator"; then
18617                         alldirs=
18618       for found_dir in $rpathdirs; do
18619         alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
18620       done
18621             acl_save_libdir="$libdir"
18622       libdir="$alldirs"
18623       eval flag=\"$hardcode_libdir_flag_spec\"
18624       libdir="$acl_save_libdir"
18625       LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
18626     else
18627             for found_dir in $rpathdirs; do
18628         acl_save_libdir="$libdir"
18629         libdir="$found_dir"
18630         eval flag=\"$hardcode_libdir_flag_spec\"
18631         libdir="$acl_save_libdir"
18632         LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
18633       done
18634     fi
18635   fi
18636   if test "X$ltrpathdirs" != "X"; then
18637             for found_dir in $ltrpathdirs; do
18638       LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-R$found_dir"
18639     done
18640   fi
18641
18642           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libintl" >&5
18643 $as_echo_n "checking for GNU gettext in libintl... " >&6; }
18644 if ${gt_cv_func_gnugettext1_libintl+:} false; then :
18645   $as_echo_n "(cached) " >&6
18646 else
18647   gt_save_CPPFLAGS="$CPPFLAGS"
18648             CPPFLAGS="$CPPFLAGS $INCINTL"
18649             gt_save_LIBS="$LIBS"
18650             LIBS="$LIBS $LIBINTL"
18651                         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18652 /* end confdefs.h.  */
18653 #include <libintl.h>
18654 extern int _nl_msg_cat_cntr;
18655 extern
18656 #ifdef __cplusplus
18657 "C"
18658 #endif
18659 const char *_nl_expand_alias (const char *);
18660 int
18661 main ()
18662 {
18663 bindtextdomain ("", "");
18664 return * gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias ("")
18665   ;
18666   return 0;
18667 }
18668 _ACEOF
18669 if ac_fn_c_try_link "$LINENO"; then :
18670   gt_cv_func_gnugettext1_libintl=yes
18671 else
18672   gt_cv_func_gnugettext1_libintl=no
18673 fi
18674 rm -f core conftest.err conftest.$ac_objext \
18675     conftest$ac_exeext conftest.$ac_ext
18676                         if test "$gt_cv_func_gnugettext1_libintl" != yes && test -n "$LIBICONV"; then
18677               LIBS="$LIBS $LIBICONV"
18678               cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18679 /* end confdefs.h.  */
18680 #include <libintl.h>
18681 extern int _nl_msg_cat_cntr;
18682 extern
18683 #ifdef __cplusplus
18684 "C"
18685 #endif
18686 const char *_nl_expand_alias (const char *);
18687 int
18688 main ()
18689 {
18690 bindtextdomain ("", "");
18691 return * gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias ("")
18692   ;
18693   return 0;
18694 }
18695 _ACEOF
18696 if ac_fn_c_try_link "$LINENO"; then :
18697   LIBINTL="$LIBINTL $LIBICONV"
18698                 LTLIBINTL="$LTLIBINTL $LTLIBICONV"
18699                 gt_cv_func_gnugettext1_libintl=yes
18700
18701 fi
18702 rm -f core conftest.err conftest.$ac_objext \
18703     conftest$ac_exeext conftest.$ac_ext
18704             fi
18705             CPPFLAGS="$gt_save_CPPFLAGS"
18706             LIBS="$gt_save_LIBS"
18707 fi
18708 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_gnugettext1_libintl" >&5
18709 $as_echo "$gt_cv_func_gnugettext1_libintl" >&6; }
18710         fi
18711
18712                                         if test "$gt_cv_func_gnugettext1_libc" = "yes" \
18713            || { test "$gt_cv_func_gnugettext1_libintl" = "yes" \
18714                 && test "$PACKAGE" != gettext-runtime \
18715                 && test "$PACKAGE" != gettext-tools; }; then
18716           gt_use_preinstalled_gnugettext=yes
18717         else
18718                     LIBINTL=
18719           LTLIBINTL=
18720           INCINTL=
18721         fi
18722
18723
18724
18725     if test -n "$INTL_MACOSX_LIBS"; then
18726       if test "$gt_use_preinstalled_gnugettext" = "yes" \
18727          || test "$nls_cv_use_gnu_gettext" = "yes"; then
18728                 LIBINTL="$LIBINTL $INTL_MACOSX_LIBS"
18729         LTLIBINTL="$LTLIBINTL $INTL_MACOSX_LIBS"
18730       fi
18731     fi
18732
18733     if test "$gt_use_preinstalled_gnugettext" = "yes" \
18734        || test "$nls_cv_use_gnu_gettext" = "yes"; then
18735
18736 $as_echo "#define ENABLE_NLS 1" >>confdefs.h
18737
18738     else
18739       USE_NLS=no
18740     fi
18741   fi
18742
18743   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use NLS" >&5
18744 $as_echo_n "checking whether to use NLS... " >&6; }
18745   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
18746 $as_echo "$USE_NLS" >&6; }
18747   if test "$USE_NLS" = "yes"; then
18748     { $as_echo "$as_me:${as_lineno-$LINENO}: checking where the gettext function comes from" >&5
18749 $as_echo_n "checking where the gettext function comes from... " >&6; }
18750     if test "$gt_use_preinstalled_gnugettext" = "yes"; then
18751       if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
18752         gt_source="external libintl"
18753       else
18754         gt_source="libc"
18755       fi
18756     else
18757       gt_source="included intl directory"
18758     fi
18759     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_source" >&5
18760 $as_echo "$gt_source" >&6; }
18761   fi
18762
18763   if test "$USE_NLS" = "yes"; then
18764
18765     if test "$gt_use_preinstalled_gnugettext" = "yes"; then
18766       if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
18767         { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libintl" >&5
18768 $as_echo_n "checking how to link with libintl... " >&6; }
18769         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBINTL" >&5
18770 $as_echo "$LIBINTL" >&6; }
18771
18772   for element in $INCINTL; do
18773     haveit=
18774     for x in $CPPFLAGS; do
18775
18776   acl_save_prefix="$prefix"
18777   prefix="$acl_final_prefix"
18778   acl_save_exec_prefix="$exec_prefix"
18779   exec_prefix="$acl_final_exec_prefix"
18780   eval x=\"$x\"
18781   exec_prefix="$acl_save_exec_prefix"
18782   prefix="$acl_save_prefix"
18783
18784       if test "X$x" = "X$element"; then
18785         haveit=yes
18786         break
18787       fi
18788     done
18789     if test -z "$haveit"; then
18790       CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
18791     fi
18792   done
18793
18794       fi
18795
18796
18797 $as_echo "#define HAVE_GETTEXT 1" >>confdefs.h
18798
18799
18800 $as_echo "#define HAVE_DCGETTEXT 1" >>confdefs.h
18801
18802     fi
18803
18804         POSUB=po
18805   fi
18806
18807
18808
18809     INTLLIBS="$LIBINTL"
18810
18811
18812
18813
18814
18815
18816
18817 os_name=`uname -s 2>/dev/null`
18818 if test x${prefix} = xNONE ; then
18819    if test `eval echo ${sysconfdir}` = NONE/etc ; then
18820       sysconfdir=/etc/bacula
18821    fi
18822
18823    if test `eval echo ${libdir}` = NONE/lib ; then
18824       case ${os_name} in
18825       Linux)
18826          os_processor=`uname -p 2>/dev/null`
18827          case ${os_processor} in
18828          x86_64)
18829             libdir=/usr/lib64
18830             ;;
18831          *)
18832             libdir=/usr/lib
18833             ;;
18834          esac
18835          ;;
18836       *)
18837          libdir=/usr/lib
18838          ;;
18839       esac
18840    fi
18841
18842    if test `eval echo ${includedir}` = NONE/include ; then
18843       includedir=/usr/include
18844    fi
18845
18846    if test `eval echo ${datarootdir}` = NONE/share ; then
18847       datarootdir=/usr/share
18848    fi
18849    prefix=
18850 fi
18851
18852 if test x${exec_prefix} = xNONE ; then
18853    exec_prefix=${prefix}
18854 fi
18855
18856 sysconfdir=`eval echo ${sysconfdir}`
18857 datarootdir=`eval echo ${datarootdir}`
18858 docdir=`eval echo ${docdir}`
18859 htmldir=`eval echo ${htmldir}`
18860 libdir=`eval echo ${libdir}`
18861 includedir=`eval echo ${includedir}`
18862 localedir=`eval echo ${datarootdir}/locale`
18863 cat >>confdefs.h <<_ACEOF
18864 #define SYSCONFDIR "$sysconfdir"
18865 _ACEOF
18866
18867 cat >>confdefs.h <<_ACEOF
18868 #define LOCALEDIR "$localedir"
18869 _ACEOF
18870
18871
18872 if test x$sbindir = x'${exec_prefix}/sbin' ; then
18873    sbindir=${exec_prefix}/sbin
18874 fi
18875 sbindir=`eval echo ${sbindir}`
18876
18877 if test x$mandir = x'${prefix}/man' ; then
18878    mandir=/usr/share/man
18879 fi
18880
18881 if test x$htmldir = x'/usr/share/doc/bacula/' ; then
18882    htmldir=`eval echo ${docdir}html`
18883 fi
18884
18885 if test x$docdir = x'/usr/share/doc/' ; then
18886    docdir=`eval echo ${docdir}bacula`
18887 fi
18888
18889
18890 for ac_prog in msgfmt
18891 do
18892   # Extract the first word of "$ac_prog", so it can be a program name with args.
18893 set dummy $ac_prog; ac_word=$2
18894 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18895 $as_echo_n "checking for $ac_word... " >&6; }
18896 if ${ac_cv_path_MSGFMT+:} false; then :
18897   $as_echo_n "(cached) " >&6
18898 else
18899   case $MSGFMT in
18900   [\\/]* | ?:[\\/]*)
18901   ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
18902   ;;
18903   *)
18904   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18905 for as_dir in $PATH
18906 do
18907   IFS=$as_save_IFS
18908   test -z "$as_dir" && as_dir=.
18909     for ac_exec_ext in '' $ac_executable_extensions; do
18910   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
18911     ac_cv_path_MSGFMT="$as_dir/$ac_word$ac_exec_ext"
18912     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18913     break 2
18914   fi
18915 done
18916   done
18917 IFS=$as_save_IFS
18918
18919   ;;
18920 esac
18921 fi
18922 MSGFMT=$ac_cv_path_MSGFMT
18923 if test -n "$MSGFMT"; then
18924   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGFMT" >&5
18925 $as_echo "$MSGFMT" >&6; }
18926 else
18927   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18928 $as_echo "no" >&6; }
18929 fi
18930
18931
18932   test -n "$MSGFMT" && break
18933 done
18934 test -n "$MSGFMT" || MSGFMT="no"
18935
18936 if test "$MSGFMT" = "no"
18937 then
18938    echo 'msgfmt program not found, disabling NLS !'
18939    USE_NLS=no
18940    USE_INCLUDED_LIBINTL=no
18941 #else
18942
18943     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C Library 2 or newer" >&5
18944 $as_echo_n "checking whether we are using the GNU C Library 2 or newer... " >&6; }
18945 if ${ac_cv_gnu_library_2+:} false; then :
18946   $as_echo_n "(cached) " >&6
18947 else
18948   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18949 /* end confdefs.h.  */
18950
18951 #include <features.h>
18952 #ifdef __GNU_LIBRARY__
18953  #if (__GLIBC__ >= 2)
18954   Lucky GNU user
18955  #endif
18956 #endif
18957
18958 _ACEOF
18959 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
18960   $EGREP "Lucky GNU user" >/dev/null 2>&1; then :
18961   ac_cv_gnu_library_2=yes
18962 else
18963   ac_cv_gnu_library_2=no
18964 fi
18965 rm -f conftest*
18966
18967
18968
18969 fi
18970 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_gnu_library_2" >&5
18971 $as_echo "$ac_cv_gnu_library_2" >&6; }
18972
18973     GLIBC2="$ac_cv_gnu_library_2"
18974
18975
18976 if test -n "$ac_tool_prefix"; then
18977   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
18978 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
18979 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18980 $as_echo_n "checking for $ac_word... " >&6; }
18981 if ${ac_cv_prog_RANLIB+:} false; then :
18982   $as_echo_n "(cached) " >&6
18983 else
18984   if test -n "$RANLIB"; then
18985   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
18986 else
18987 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18988 for as_dir in $PATH
18989 do
18990   IFS=$as_save_IFS
18991   test -z "$as_dir" && as_dir=.
18992     for ac_exec_ext in '' $ac_executable_extensions; do
18993   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
18994     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
18995     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18996     break 2
18997   fi
18998 done
18999   done
19000 IFS=$as_save_IFS
19001
19002 fi
19003 fi
19004 RANLIB=$ac_cv_prog_RANLIB
19005 if test -n "$RANLIB"; then
19006   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
19007 $as_echo "$RANLIB" >&6; }
19008 else
19009   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19010 $as_echo "no" >&6; }
19011 fi
19012
19013
19014 fi
19015 if test -z "$ac_cv_prog_RANLIB"; then
19016   ac_ct_RANLIB=$RANLIB
19017   # Extract the first word of "ranlib", so it can be a program name with args.
19018 set dummy ranlib; ac_word=$2
19019 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19020 $as_echo_n "checking for $ac_word... " >&6; }
19021 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
19022   $as_echo_n "(cached) " >&6
19023 else
19024   if test -n "$ac_ct_RANLIB"; then
19025   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
19026 else
19027 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19028 for as_dir in $PATH
19029 do
19030   IFS=$as_save_IFS
19031   test -z "$as_dir" && as_dir=.
19032     for ac_exec_ext in '' $ac_executable_extensions; do
19033   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
19034     ac_cv_prog_ac_ct_RANLIB="ranlib"
19035     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
19036     break 2
19037   fi
19038 done
19039   done
19040 IFS=$as_save_IFS
19041
19042 fi
19043 fi
19044 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
19045 if test -n "$ac_ct_RANLIB"; then
19046   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
19047 $as_echo "$ac_ct_RANLIB" >&6; }
19048 else
19049   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19050 $as_echo "no" >&6; }
19051 fi
19052
19053   if test "x$ac_ct_RANLIB" = x; then
19054     RANLIB=":"
19055   else
19056     case $cross_compiling:$ac_tool_warned in
19057 yes:)
19058 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
19059 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
19060 ac_tool_warned=yes ;;
19061 esac
19062     RANLIB=$ac_ct_RANLIB
19063   fi
19064 else
19065   RANLIB="$ac_cv_prog_RANLIB"
19066 fi
19067
19068
19069         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for strerror in -lcposix" >&5
19070 $as_echo_n "checking for strerror in -lcposix... " >&6; }
19071 if ${ac_cv_lib_cposix_strerror+:} false; then :
19072   $as_echo_n "(cached) " >&6
19073 else
19074   ac_check_lib_save_LIBS=$LIBS
19075 LIBS="-lcposix  $LIBS"
19076 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19077 /* end confdefs.h.  */
19078
19079 /* Override any GCC internal prototype to avoid an error.
19080    Use char because int might match the return type of a GCC
19081    builtin and then its argument prototype would still apply.  */
19082 #ifdef __cplusplus
19083 extern "C"
19084 #endif
19085 char strerror ();
19086 int
19087 main ()
19088 {
19089 return strerror ();
19090   ;
19091   return 0;
19092 }
19093 _ACEOF
19094 if ac_fn_c_try_link "$LINENO"; then :
19095   ac_cv_lib_cposix_strerror=yes
19096 else
19097   ac_cv_lib_cposix_strerror=no
19098 fi
19099 rm -f core conftest.err conftest.$ac_objext \
19100     conftest$ac_exeext conftest.$ac_ext
19101 LIBS=$ac_check_lib_save_LIBS
19102 fi
19103 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_cposix_strerror" >&5
19104 $as_echo "$ac_cv_lib_cposix_strerror" >&6; }
19105 if test "x$ac_cv_lib_cposix_strerror" = xyes; then :
19106   LIBS="$LIBS -lcposix"
19107 fi
19108
19109
19110
19111 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
19112 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
19113 if ${ac_cv_c_const+:} false; then :
19114   $as_echo_n "(cached) " >&6
19115 else
19116   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19117 /* end confdefs.h.  */
19118
19119 int
19120 main ()
19121 {
19122 /* FIXME: Include the comments suggested by Paul. */
19123 #ifndef __cplusplus
19124   /* Ultrix mips cc rejects this.  */
19125   typedef int charset[2];
19126   const charset cs;
19127   /* SunOS 4.1.1 cc rejects this.  */
19128   char const *const *pcpcc;
19129   char **ppc;
19130   /* NEC SVR4.0.2 mips cc rejects this.  */
19131   struct point {int x, y;};
19132   static struct point const zero = {0,0};
19133   /* AIX XL C 1.02.0.0 rejects this.
19134      It does not let you subtract one const X* pointer from another in
19135      an arm of an if-expression whose if-part is not a constant
19136      expression */
19137   const char *g = "string";
19138   pcpcc = &g + (g ? g-g : 0);
19139   /* HPUX 7.0 cc rejects these. */
19140   ++pcpcc;
19141   ppc = (char**) pcpcc;
19142   pcpcc = (char const *const *) ppc;
19143   { /* SCO 3.2v4 cc rejects this.  */
19144     char *t;
19145     char const *s = 0 ? (char *) 0 : (char const *) 0;
19146
19147     *t++ = 0;
19148     if (s) return 0;
19149   }
19150   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
19151     int x[] = {25, 17};
19152     const int *foo = &x[0];
19153     ++foo;
19154   }
19155   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
19156     typedef const int *iptr;
19157     iptr p = 0;
19158     ++p;
19159   }
19160   { /* AIX XL C 1.02.0.0 rejects this saying
19161        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
19162     struct s { int j; const int *ap[3]; };
19163     struct s *b; b->j = 5;
19164   }
19165   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
19166     const int foo = 10;
19167     if (!foo) return 0;
19168   }
19169   return !cs[0] && !zero.x;
19170 #endif
19171
19172   ;
19173   return 0;
19174 }
19175 _ACEOF
19176 if ac_fn_c_try_compile "$LINENO"; then :
19177   ac_cv_c_const=yes
19178 else
19179   ac_cv_c_const=no
19180 fi
19181 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19182 fi
19183 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
19184 $as_echo "$ac_cv_c_const" >&6; }
19185 if test $ac_cv_c_const = no; then
19186
19187 $as_echo "#define const /**/" >>confdefs.h
19188
19189 fi
19190
19191
19192   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for signed" >&5
19193 $as_echo_n "checking for signed... " >&6; }
19194 if ${bh_cv_c_signed+:} false; then :
19195   $as_echo_n "(cached) " >&6
19196 else
19197   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19198 /* end confdefs.h.  */
19199
19200 int
19201 main ()
19202 {
19203 signed char x;
19204   ;
19205   return 0;
19206 }
19207 _ACEOF
19208 if ac_fn_c_try_compile "$LINENO"; then :
19209   bh_cv_c_signed=yes
19210 else
19211   bh_cv_c_signed=no
19212 fi
19213 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19214 fi
19215 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bh_cv_c_signed" >&5
19216 $as_echo "$bh_cv_c_signed" >&6; }
19217   if test $bh_cv_c_signed = no; then
19218
19219 $as_echo "#define signed /**/" >>confdefs.h
19220
19221   fi
19222
19223 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
19224 $as_echo_n "checking for inline... " >&6; }
19225 if ${ac_cv_c_inline+:} false; then :
19226   $as_echo_n "(cached) " >&6
19227 else
19228   ac_cv_c_inline=no
19229 for ac_kw in inline __inline__ __inline; do
19230   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19231 /* end confdefs.h.  */
19232 #ifndef __cplusplus
19233 typedef int foo_t;
19234 static $ac_kw foo_t static_foo () {return 0; }
19235 $ac_kw foo_t foo () {return 0; }
19236 #endif
19237
19238 _ACEOF
19239 if ac_fn_c_try_compile "$LINENO"; then :
19240   ac_cv_c_inline=$ac_kw
19241 fi
19242 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19243   test "$ac_cv_c_inline" != no && break
19244 done
19245
19246 fi
19247 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
19248 $as_echo "$ac_cv_c_inline" >&6; }
19249
19250 case $ac_cv_c_inline in
19251   inline | yes) ;;
19252   *)
19253     case $ac_cv_c_inline in
19254       no) ac_val=;;
19255       *) ac_val=$ac_cv_c_inline;;
19256     esac
19257     cat >>confdefs.h <<_ACEOF
19258 #ifndef __cplusplus
19259 #define inline $ac_val
19260 #endif
19261 _ACEOF
19262     ;;
19263 esac
19264
19265 ac_fn_c_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default"
19266 if test "x$ac_cv_type_off_t" = xyes; then :
19267
19268 else
19269
19270 cat >>confdefs.h <<_ACEOF
19271 #define off_t long int
19272 _ACEOF
19273
19274 fi
19275
19276 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
19277 if test "x$ac_cv_type_size_t" = xyes; then :
19278
19279 else
19280
19281 cat >>confdefs.h <<_ACEOF
19282 #define size_t unsigned int
19283 _ACEOF
19284
19285 fi
19286
19287
19288   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long" >&5
19289 $as_echo_n "checking for long long... " >&6; }
19290 if ${ac_cv_type_long_long+:} false; then :
19291   $as_echo_n "(cached) " >&6
19292 else
19293   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19294 /* end confdefs.h.  */
19295 long long ll = 1LL; int i = 63;
19296 int
19297 main ()
19298 {
19299 long long llmax = (long long) -1;
19300      return ll << i | ll >> i | llmax / ll | llmax % ll;
19301   ;
19302   return 0;
19303 }
19304 _ACEOF
19305 if ac_fn_c_try_link "$LINENO"; then :
19306   ac_cv_type_long_long=yes
19307 else
19308   ac_cv_type_long_long=no
19309 fi
19310 rm -f core conftest.err conftest.$ac_objext \
19311     conftest$ac_exeext conftest.$ac_ext
19312 fi
19313 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_long" >&5
19314 $as_echo "$ac_cv_type_long_long" >&6; }
19315   if test $ac_cv_type_long_long = yes; then
19316
19317 $as_echo "#define HAVE_LONG_LONG 1" >>confdefs.h
19318
19319   fi
19320
19321
19322   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long double" >&5
19323 $as_echo_n "checking for long double... " >&6; }
19324 if ${gt_cv_c_long_double+:} false; then :
19325   $as_echo_n "(cached) " >&6
19326 else
19327   if test "$GCC" = yes; then
19328        gt_cv_c_long_double=yes
19329      else
19330        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19331 /* end confdefs.h.  */
19332
19333          /* The Stardent Vistra knows sizeof(long double), but does not support it.  */
19334          long double foo = 0.0;
19335          /* On Ultrix 4.3 cc, long double is 4 and double is 8.  */
19336          int array [2*(sizeof(long double) >= sizeof(double)) - 1];
19337
19338 int
19339 main ()
19340 {
19341
19342   ;
19343   return 0;
19344 }
19345 _ACEOF
19346 if ac_fn_c_try_compile "$LINENO"; then :
19347   gt_cv_c_long_double=yes
19348 else
19349   gt_cv_c_long_double=no
19350 fi
19351 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19352      fi
19353 fi
19354 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_long_double" >&5
19355 $as_echo "$gt_cv_c_long_double" >&6; }
19356   if test $gt_cv_c_long_double = yes; then
19357
19358 $as_echo "#define HAVE_LONG_DOUBLE 1" >>confdefs.h
19359
19360   fi
19361
19362
19363   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wchar_t" >&5
19364 $as_echo_n "checking for wchar_t... " >&6; }
19365 if ${gt_cv_c_wchar_t+:} false; then :
19366   $as_echo_n "(cached) " >&6
19367 else
19368   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19369 /* end confdefs.h.  */
19370 #include <stddef.h>
19371        wchar_t foo = (wchar_t)'\0';
19372 int
19373 main ()
19374 {
19375
19376   ;
19377   return 0;
19378 }
19379 _ACEOF
19380 if ac_fn_c_try_compile "$LINENO"; then :
19381   gt_cv_c_wchar_t=yes
19382 else
19383   gt_cv_c_wchar_t=no
19384 fi
19385 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19386 fi
19387 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_wchar_t" >&5
19388 $as_echo "$gt_cv_c_wchar_t" >&6; }
19389   if test $gt_cv_c_wchar_t = yes; then
19390
19391 $as_echo "#define HAVE_WCHAR_T 1" >>confdefs.h
19392
19393   fi
19394
19395
19396   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wint_t" >&5
19397 $as_echo_n "checking for wint_t... " >&6; }
19398 if ${gt_cv_c_wint_t+:} false; then :
19399   $as_echo_n "(cached) " >&6
19400 else
19401   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19402 /* end confdefs.h.  */
19403 #include <wchar.h>
19404        wint_t foo = (wchar_t)'\0';
19405 int
19406 main ()
19407 {
19408
19409   ;
19410   return 0;
19411 }
19412 _ACEOF
19413 if ac_fn_c_try_compile "$LINENO"; then :
19414   gt_cv_c_wint_t=yes
19415 else
19416   gt_cv_c_wint_t=no
19417 fi
19418 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19419 fi
19420 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_wint_t" >&5
19421 $as_echo "$gt_cv_c_wint_t" >&6; }
19422   if test $gt_cv_c_wint_t = yes; then
19423
19424 $as_echo "#define HAVE_WINT_T 1" >>confdefs.h
19425
19426   fi
19427
19428
19429   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inttypes.h" >&5
19430 $as_echo_n "checking for inttypes.h... " >&6; }
19431 if ${gl_cv_header_inttypes_h+:} false; then :
19432   $as_echo_n "(cached) " >&6
19433 else
19434   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19435 /* end confdefs.h.  */
19436 #include <sys/types.h>
19437 #include <inttypes.h>
19438 int
19439 main ()
19440 {
19441 uintmax_t i = (uintmax_t) -1;
19442   ;
19443   return 0;
19444 }
19445 _ACEOF
19446 if ac_fn_c_try_compile "$LINENO"; then :
19447   gl_cv_header_inttypes_h=yes
19448 else
19449   gl_cv_header_inttypes_h=no
19450 fi
19451 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19452 fi
19453 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_inttypes_h" >&5
19454 $as_echo "$gl_cv_header_inttypes_h" >&6; }
19455   if test $gl_cv_header_inttypes_h = yes; then
19456
19457 cat >>confdefs.h <<_ACEOF
19458 #define HAVE_INTTYPES_H_WITH_UINTMAX 1
19459 _ACEOF
19460
19461   fi
19462
19463
19464   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdint.h" >&5
19465 $as_echo_n "checking for stdint.h... " >&6; }
19466 if ${gl_cv_header_stdint_h+:} false; then :
19467   $as_echo_n "(cached) " >&6
19468 else
19469   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19470 /* end confdefs.h.  */
19471 #include <sys/types.h>
19472 #include <stdint.h>
19473 int
19474 main ()
19475 {
19476 uintmax_t i = (uintmax_t) -1;
19477   ;
19478   return 0;
19479 }
19480 _ACEOF
19481 if ac_fn_c_try_compile "$LINENO"; then :
19482   gl_cv_header_stdint_h=yes
19483 else
19484   gl_cv_header_stdint_h=no
19485 fi
19486 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19487 fi
19488 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_stdint_h" >&5
19489 $as_echo "$gl_cv_header_stdint_h" >&6; }
19490   if test $gl_cv_header_stdint_h = yes; then
19491
19492 cat >>confdefs.h <<_ACEOF
19493 #define HAVE_STDINT_H_WITH_UINTMAX 1
19494 _ACEOF
19495
19496   fi
19497
19498
19499
19500
19501   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for intmax_t" >&5
19502 $as_echo_n "checking for intmax_t... " >&6; }
19503 if ${gt_cv_c_intmax_t+:} false; then :
19504   $as_echo_n "(cached) " >&6
19505 else
19506   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19507 /* end confdefs.h.  */
19508
19509 #include <stddef.h>
19510 #include <stdlib.h>
19511 #if HAVE_STDINT_H_WITH_UINTMAX
19512 #include <stdint.h>
19513 #endif
19514 #if HAVE_INTTYPES_H_WITH_UINTMAX
19515 #include <inttypes.h>
19516 #endif
19517
19518 int
19519 main ()
19520 {
19521 intmax_t x = -1;
19522   ;
19523   return 0;
19524 }
19525 _ACEOF
19526 if ac_fn_c_try_compile "$LINENO"; then :
19527   gt_cv_c_intmax_t=yes
19528 else
19529   gt_cv_c_intmax_t=no
19530 fi
19531 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19532 fi
19533 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_intmax_t" >&5
19534 $as_echo "$gt_cv_c_intmax_t" >&6; }
19535   if test $gt_cv_c_intmax_t = yes; then
19536
19537 $as_echo "#define HAVE_INTMAX_T 1" >>confdefs.h
19538
19539   fi
19540
19541
19542
19543   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether printf() supports POSIX/XSI format strings" >&5
19544 $as_echo_n "checking whether printf() supports POSIX/XSI format strings... " >&6; }
19545 if ${gt_cv_func_printf_posix+:} false; then :
19546   $as_echo_n "(cached) " >&6
19547 else
19548
19549       if test "$cross_compiling" = yes; then :
19550
19551         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19552 /* end confdefs.h.  */
19553
19554 #if defined __NetBSD__ || defined _MSC_VER || defined __MINGW32__ || defined __CYGWIN__
19555   notposix
19556 #endif
19557
19558 _ACEOF
19559 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19560   $EGREP "notposix" >/dev/null 2>&1; then :
19561   gt_cv_func_printf_posix="guessing no"
19562 else
19563   gt_cv_func_printf_posix="guessing yes"
19564 fi
19565 rm -f conftest*
19566
19567
19568 else
19569   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19570 /* end confdefs.h.  */
19571
19572 #include <stdio.h>
19573 #include <string.h>
19574 /* The string "%2$d %1$d", with dollar characters protected from the shell's
19575    dollar expansion (possibly an autoconf bug).  */
19576 static char format[] = { '%', '2', '$', 'd', ' ', '%', '1', '$', 'd', '\0' };
19577 static char buf[100];
19578 int main ()
19579 {
19580   sprintf (buf, format, 33, 55);
19581   return (strcmp (buf, "55 33") != 0);
19582 }
19583 _ACEOF
19584 if ac_fn_c_try_run "$LINENO"; then :
19585   gt_cv_func_printf_posix=yes
19586 else
19587   gt_cv_func_printf_posix=no
19588 fi
19589 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
19590   conftest.$ac_objext conftest.beam conftest.$ac_ext
19591 fi
19592
19593
19594 fi
19595 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_printf_posix" >&5
19596 $as_echo "$gt_cv_func_printf_posix" >&6; }
19597   case $gt_cv_func_printf_posix in
19598     *yes)
19599
19600 $as_echo "#define HAVE_POSIX_PRINTF 1" >>confdefs.h
19601
19602       ;;
19603   esac
19604
19605 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
19606 # for constant arguments.  Useless!
19607 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5
19608 $as_echo_n "checking for working alloca.h... " >&6; }
19609 if ${ac_cv_working_alloca_h+:} false; then :
19610   $as_echo_n "(cached) " >&6
19611 else
19612   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19613 /* end confdefs.h.  */
19614 #include <alloca.h>
19615 int
19616 main ()
19617 {
19618 char *p = (char *) alloca (2 * sizeof (int));
19619                           if (p) return 0;
19620   ;
19621   return 0;
19622 }
19623 _ACEOF
19624 if ac_fn_c_try_link "$LINENO"; then :
19625   ac_cv_working_alloca_h=yes
19626 else
19627   ac_cv_working_alloca_h=no
19628 fi
19629 rm -f core conftest.err conftest.$ac_objext \
19630     conftest$ac_exeext conftest.$ac_ext
19631 fi
19632 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5
19633 $as_echo "$ac_cv_working_alloca_h" >&6; }
19634 if test $ac_cv_working_alloca_h = yes; then
19635
19636 $as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h
19637
19638 fi
19639
19640 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5
19641 $as_echo_n "checking for alloca... " >&6; }
19642 if ${ac_cv_func_alloca_works+:} false; then :
19643   $as_echo_n "(cached) " >&6
19644 else
19645   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19646 /* end confdefs.h.  */
19647 #ifdef __GNUC__
19648 # define alloca __builtin_alloca
19649 #else
19650 # ifdef _MSC_VER
19651 #  include <malloc.h>
19652 #  define alloca _alloca
19653 # else
19654 #  ifdef HAVE_ALLOCA_H
19655 #   include <alloca.h>
19656 #  else
19657 #   ifdef _AIX
19658  #pragma alloca
19659 #   else
19660 #    ifndef alloca /* predefined by HP cc +Olibcalls */
19661 void *alloca (size_t);
19662 #    endif
19663 #   endif
19664 #  endif
19665 # endif
19666 #endif
19667
19668 int
19669 main ()
19670 {
19671 char *p = (char *) alloca (1);
19672                                     if (p) return 0;
19673   ;
19674   return 0;
19675 }
19676 _ACEOF
19677 if ac_fn_c_try_link "$LINENO"; then :
19678   ac_cv_func_alloca_works=yes
19679 else
19680   ac_cv_func_alloca_works=no
19681 fi
19682 rm -f core conftest.err conftest.$ac_objext \
19683     conftest$ac_exeext conftest.$ac_ext
19684 fi
19685 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5
19686 $as_echo "$ac_cv_func_alloca_works" >&6; }
19687
19688 if test $ac_cv_func_alloca_works = yes; then
19689
19690 $as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
19691
19692 else
19693   # The SVR3 libPW and SVR4 libucb both contain incompatible functions
19694 # that cause trouble.  Some versions do not even contain alloca or
19695 # contain a buggy version.  If you still want to use their alloca,
19696 # use ar to extract alloca.o from them instead of compiling alloca.c.
19697
19698 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
19699
19700 $as_echo "#define C_ALLOCA 1" >>confdefs.h
19701
19702
19703 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether \`alloca.c' needs Cray hooks" >&5
19704 $as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; }
19705 if ${ac_cv_os_cray+:} false; then :
19706   $as_echo_n "(cached) " >&6
19707 else
19708   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19709 /* end confdefs.h.  */
19710 #if defined CRAY && ! defined CRAY2
19711 webecray
19712 #else
19713 wenotbecray
19714 #endif
19715
19716 _ACEOF
19717 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19718   $EGREP "webecray" >/dev/null 2>&1; then :
19719   ac_cv_os_cray=yes
19720 else
19721   ac_cv_os_cray=no
19722 fi
19723 rm -f conftest*
19724
19725 fi
19726 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5
19727 $as_echo "$ac_cv_os_cray" >&6; }
19728 if test $ac_cv_os_cray = yes; then
19729   for ac_func in _getb67 GETB67 getb67; do
19730     as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
19731 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
19732 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
19733
19734 cat >>confdefs.h <<_ACEOF
19735 #define CRAY_STACKSEG_END $ac_func
19736 _ACEOF
19737
19738     break
19739 fi
19740
19741   done
19742 fi
19743
19744 { $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5
19745 $as_echo_n "checking stack direction for C alloca... " >&6; }
19746 if ${ac_cv_c_stack_direction+:} false; then :
19747   $as_echo_n "(cached) " >&6
19748 else
19749   if test "$cross_compiling" = yes; then :
19750   ac_cv_c_stack_direction=0
19751 else
19752   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19753 /* end confdefs.h.  */
19754 $ac_includes_default
19755 int
19756 find_stack_direction ()
19757 {
19758   static char *addr = 0;
19759   auto char dummy;
19760   if (addr == 0)
19761     {
19762       addr = &dummy;
19763       return find_stack_direction ();
19764     }
19765   else
19766     return (&dummy > addr) ? 1 : -1;
19767 }
19768
19769 int
19770 main ()
19771 {
19772   return find_stack_direction () < 0;
19773 }
19774 _ACEOF
19775 if ac_fn_c_try_run "$LINENO"; then :
19776   ac_cv_c_stack_direction=1
19777 else
19778   ac_cv_c_stack_direction=-1
19779 fi
19780 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
19781   conftest.$ac_objext conftest.beam conftest.$ac_ext
19782 fi
19783
19784 fi
19785 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5
19786 $as_echo "$ac_cv_c_stack_direction" >&6; }
19787 cat >>confdefs.h <<_ACEOF
19788 #define STACK_DIRECTION $ac_cv_c_stack_direction
19789 _ACEOF
19790
19791
19792 fi
19793
19794
19795
19796
19797   for ac_header in $ac_header_list
19798 do :
19799   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
19800 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
19801 "
19802 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
19803   cat >>confdefs.h <<_ACEOF
19804 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
19805 _ACEOF
19806
19807 fi
19808
19809 done
19810
19811
19812
19813
19814
19815
19816
19817
19818 for ac_func in getpagesize
19819 do :
19820   ac_fn_c_check_func "$LINENO" "getpagesize" "ac_cv_func_getpagesize"
19821 if test "x$ac_cv_func_getpagesize" = xyes; then :
19822   cat >>confdefs.h <<_ACEOF
19823 #define HAVE_GETPAGESIZE 1
19824 _ACEOF
19825
19826 fi
19827 done
19828
19829 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap" >&5
19830 $as_echo_n "checking for working mmap... " >&6; }
19831 if ${ac_cv_func_mmap_fixed_mapped+:} false; then :
19832   $as_echo_n "(cached) " >&6
19833 else
19834   if test "$cross_compiling" = yes; then :
19835   ac_cv_func_mmap_fixed_mapped=no
19836 else
19837   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19838 /* end confdefs.h.  */
19839 $ac_includes_default
19840 /* malloc might have been renamed as rpl_malloc. */
19841 #undef malloc
19842
19843 /* Thanks to Mike Haertel and Jim Avera for this test.
19844    Here is a matrix of mmap possibilities:
19845         mmap private not fixed
19846         mmap private fixed at somewhere currently unmapped
19847         mmap private fixed at somewhere already mapped
19848         mmap shared not fixed
19849         mmap shared fixed at somewhere currently unmapped
19850         mmap shared fixed at somewhere already mapped
19851    For private mappings, we should verify that changes cannot be read()
19852    back from the file, nor mmap's back from the file at a different
19853    address.  (There have been systems where private was not correctly
19854    implemented like the infamous i386 svr4.0, and systems where the
19855    VM page cache was not coherent with the file system buffer cache
19856    like early versions of FreeBSD and possibly contemporary NetBSD.)
19857    For shared mappings, we should conversely verify that changes get
19858    propagated back to all the places they're supposed to be.
19859
19860    Grep wants private fixed already mapped.
19861    The main things grep needs to know about mmap are:
19862    * does it exist and is it safe to write into the mmap'd area
19863    * how to use it (BSD variants)  */
19864
19865 #include <fcntl.h>
19866 #include <sys/mman.h>
19867
19868 #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
19869 char *malloc ();
19870 #endif
19871
19872 /* This mess was copied from the GNU getpagesize.h.  */
19873 #ifndef HAVE_GETPAGESIZE
19874 # ifdef _SC_PAGESIZE
19875 #  define getpagesize() sysconf(_SC_PAGESIZE)
19876 # else /* no _SC_PAGESIZE */
19877 #  ifdef HAVE_SYS_PARAM_H
19878 #   include <sys/param.h>
19879 #   ifdef EXEC_PAGESIZE
19880 #    define getpagesize() EXEC_PAGESIZE
19881 #   else /* no EXEC_PAGESIZE */
19882 #    ifdef NBPG
19883 #     define getpagesize() NBPG * CLSIZE
19884 #     ifndef CLSIZE
19885 #      define CLSIZE 1
19886 #     endif /* no CLSIZE */
19887 #    else /* no NBPG */
19888 #     ifdef NBPC
19889 #      define getpagesize() NBPC
19890 #     else /* no NBPC */
19891 #      ifdef PAGESIZE
19892 #       define getpagesize() PAGESIZE
19893 #      endif /* PAGESIZE */
19894 #     endif /* no NBPC */
19895 #    endif /* no NBPG */
19896 #   endif /* no EXEC_PAGESIZE */
19897 #  else /* no HAVE_SYS_PARAM_H */
19898 #   define getpagesize() 8192   /* punt totally */
19899 #  endif /* no HAVE_SYS_PARAM_H */
19900 # endif /* no _SC_PAGESIZE */
19901
19902 #endif /* no HAVE_GETPAGESIZE */
19903
19904 int
19905 main ()
19906 {
19907   char *data, *data2, *data3;
19908   const char *cdata2;
19909   int i, pagesize;
19910   int fd, fd2;
19911
19912   pagesize = getpagesize ();
19913
19914   /* First, make a file with some known garbage in it. */
19915   data = (char *) malloc (pagesize);
19916   if (!data)
19917     return 1;
19918   for (i = 0; i < pagesize; ++i)
19919     *(data + i) = rand ();
19920   umask (0);
19921   fd = creat ("conftest.mmap", 0600);
19922   if (fd < 0)
19923     return 2;
19924   if (write (fd, data, pagesize) != pagesize)
19925     return 3;
19926   close (fd);
19927
19928   /* Next, check that the tail of a page is zero-filled.  File must have
19929      non-zero length, otherwise we risk SIGBUS for entire page.  */
19930   fd2 = open ("conftest.txt", O_RDWR | O_CREAT | O_TRUNC, 0600);
19931   if (fd2 < 0)
19932     return 4;
19933   cdata2 = "";
19934   if (write (fd2, cdata2, 1) != 1)
19935     return 5;
19936   data2 = (char *) mmap (0, pagesize, PROT_READ | PROT_WRITE, MAP_SHARED, fd2, 0L);
19937   if (data2 == MAP_FAILED)
19938     return 6;
19939   for (i = 0; i < pagesize; ++i)
19940     if (*(data2 + i))
19941       return 7;
19942   close (fd2);
19943   if (munmap (data2, pagesize))
19944     return 8;
19945
19946   /* Next, try to mmap the file at a fixed address which already has
19947      something else allocated at it.  If we can, also make sure that
19948      we see the same garbage.  */
19949   fd = open ("conftest.mmap", O_RDWR);
19950   if (fd < 0)
19951     return 9;
19952   if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
19953                      MAP_PRIVATE | MAP_FIXED, fd, 0L))
19954     return 10;
19955   for (i = 0; i < pagesize; ++i)
19956     if (*(data + i) != *(data2 + i))
19957       return 11;
19958
19959   /* Finally, make sure that changes to the mapped area do not
19960      percolate back to the file as seen by read().  (This is a bug on
19961      some variants of i386 svr4.0.)  */
19962   for (i = 0; i < pagesize; ++i)
19963     *(data2 + i) = *(data2 + i) + 1;
19964   data3 = (char *) malloc (pagesize);
19965   if (!data3)
19966     return 12;
19967   if (read (fd, data3, pagesize) != pagesize)
19968     return 13;
19969   for (i = 0; i < pagesize; ++i)
19970     if (*(data + i) != *(data3 + i))
19971       return 14;
19972   close (fd);
19973   return 0;
19974 }
19975 _ACEOF
19976 if ac_fn_c_try_run "$LINENO"; then :
19977   ac_cv_func_mmap_fixed_mapped=yes
19978 else
19979   ac_cv_func_mmap_fixed_mapped=no
19980 fi
19981 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
19982   conftest.$ac_objext conftest.beam conftest.$ac_ext
19983 fi
19984
19985 fi
19986 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_fixed_mapped" >&5
19987 $as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; }
19988 if test $ac_cv_func_mmap_fixed_mapped = yes; then
19989
19990 $as_echo "#define HAVE_MMAP 1" >>confdefs.h
19991
19992 fi
19993 rm -f conftest.mmap conftest.txt
19994
19995
19996     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C Library 2.1 or newer" >&5
19997 $as_echo_n "checking whether we are using the GNU C Library 2.1 or newer... " >&6; }
19998 if ${ac_cv_gnu_library_2_1+:} false; then :
19999   $as_echo_n "(cached) " >&6
20000 else
20001   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20002 /* end confdefs.h.  */
20003
20004 #include <features.h>
20005 #ifdef __GNU_LIBRARY__
20006  #if (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 1) || (__GLIBC__ > 2)
20007   Lucky GNU user
20008  #endif
20009 #endif
20010
20011 _ACEOF
20012 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20013   $EGREP "Lucky GNU user" >/dev/null 2>&1; then :
20014   ac_cv_gnu_library_2_1=yes
20015 else
20016   ac_cv_gnu_library_2_1=no
20017 fi
20018 rm -f conftest*
20019
20020
20021
20022 fi
20023 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_gnu_library_2_1" >&5
20024 $as_echo "$ac_cv_gnu_library_2_1" >&6; }
20025
20026     GLIBC21="$ac_cv_gnu_library_2_1"
20027
20028
20029
20030
20031   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether integer division by zero raises SIGFPE" >&5
20032 $as_echo_n "checking whether integer division by zero raises SIGFPE... " >&6; }
20033 if ${gt_cv_int_divbyzero_sigfpe+:} false; then :
20034   $as_echo_n "(cached) " >&6
20035 else
20036
20037       if test "$cross_compiling" = yes; then :
20038
20039           # Guess based on the CPU.
20040           case "$host_cpu" in
20041             alpha* | i3456786 | m68k | s390*)
20042               gt_cv_int_divbyzero_sigfpe="guessing yes";;
20043             *)
20044               gt_cv_int_divbyzero_sigfpe="guessing no";;
20045           esac
20046
20047 else
20048   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20049 /* end confdefs.h.  */
20050
20051 #include <stdlib.h>
20052 #include <signal.h>
20053
20054 static void
20055 #ifdef __cplusplus
20056 sigfpe_handler (int sig)
20057 #else
20058 sigfpe_handler (sig) int sig;
20059 #endif
20060 {
20061   /* Exit with code 0 if SIGFPE, with code 1 if any other signal.  */
20062   exit (sig != SIGFPE);
20063 }
20064
20065 int x = 1;
20066 int y = 0;
20067 int z;
20068 int nan;
20069
20070 int main ()
20071 {
20072   signal (SIGFPE, sigfpe_handler);
20073 /* IRIX and AIX (when "xlc -qcheck" is used) yield signal SIGTRAP.  */
20074 #if (defined (__sgi) || defined (_AIX)) && defined (SIGTRAP)
20075   signal (SIGTRAP, sigfpe_handler);
20076 #endif
20077 /* Linux/SPARC yields signal SIGILL.  */
20078 #if defined (__sparc__) && defined (__linux__)
20079   signal (SIGILL, sigfpe_handler);
20080 #endif
20081
20082   z = x / y;
20083   nan = y / y;
20084   exit (1);
20085 }
20086
20087 _ACEOF
20088 if ac_fn_c_try_run "$LINENO"; then :
20089   gt_cv_int_divbyzero_sigfpe=yes
20090 else
20091   gt_cv_int_divbyzero_sigfpe=no
20092 fi
20093 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
20094   conftest.$ac_objext conftest.beam conftest.$ac_ext
20095 fi
20096
20097
20098 fi
20099 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_int_divbyzero_sigfpe" >&5
20100 $as_echo "$gt_cv_int_divbyzero_sigfpe" >&6; }
20101   case "$gt_cv_int_divbyzero_sigfpe" in
20102     *yes) value=1;;
20103     *) value=0;;
20104   esac
20105
20106 cat >>confdefs.h <<_ACEOF
20107 #define INTDIV0_RAISES_SIGFPE $value
20108 _ACEOF
20109
20110
20111
20112   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned long long" >&5
20113 $as_echo_n "checking for unsigned long long... " >&6; }
20114 if ${ac_cv_type_unsigned_long_long+:} false; then :
20115   $as_echo_n "(cached) " >&6
20116 else
20117   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20118 /* end confdefs.h.  */
20119 unsigned long long ull = 1ULL; int i = 63;
20120 int
20121 main ()
20122 {
20123 unsigned long long ullmax = (unsigned long long) -1;
20124      return ull << i | ull >> i | ullmax / ull | ullmax % ull;
20125   ;
20126   return 0;
20127 }
20128 _ACEOF
20129 if ac_fn_c_try_link "$LINENO"; then :
20130   ac_cv_type_unsigned_long_long=yes
20131 else
20132   ac_cv_type_unsigned_long_long=no
20133 fi
20134 rm -f core conftest.err conftest.$ac_objext \
20135     conftest$ac_exeext conftest.$ac_ext
20136 fi
20137 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_unsigned_long_long" >&5
20138 $as_echo "$ac_cv_type_unsigned_long_long" >&6; }
20139   if test $ac_cv_type_unsigned_long_long = yes; then
20140
20141 $as_echo "#define HAVE_UNSIGNED_LONG_LONG 1" >>confdefs.h
20142
20143   fi
20144
20145
20146
20147
20148   if test $gl_cv_header_inttypes_h = no && test $gl_cv_header_stdint_h = no; then
20149
20150     test $ac_cv_type_unsigned_long_long = yes \
20151       && ac_type='unsigned long long' \
20152       || ac_type='unsigned long'
20153
20154 cat >>confdefs.h <<_ACEOF
20155 #define uintmax_t $ac_type
20156 _ACEOF
20157
20158   else
20159
20160 $as_echo "#define HAVE_UINTMAX_T 1" >>confdefs.h
20161
20162   fi
20163
20164
20165   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inttypes.h" >&5
20166 $as_echo_n "checking for inttypes.h... " >&6; }
20167 if ${gt_cv_header_inttypes_h+:} false; then :
20168   $as_echo_n "(cached) " >&6
20169 else
20170
20171     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20172 /* end confdefs.h.  */
20173 #include <sys/types.h>
20174 #include <inttypes.h>
20175 int
20176 main ()
20177 {
20178
20179   ;
20180   return 0;
20181 }
20182 _ACEOF
20183 if ac_fn_c_try_compile "$LINENO"; then :
20184   gt_cv_header_inttypes_h=yes
20185 else
20186   gt_cv_header_inttypes_h=no
20187 fi
20188 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20189
20190 fi
20191 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_header_inttypes_h" >&5
20192 $as_echo "$gt_cv_header_inttypes_h" >&6; }
20193   if test $gt_cv_header_inttypes_h = yes; then
20194
20195 cat >>confdefs.h <<_ACEOF
20196 #define HAVE_INTTYPES_H 1
20197 _ACEOF
20198
20199   fi
20200
20201
20202
20203   if test $gt_cv_header_inttypes_h = yes; then
20204     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the inttypes.h PRIxNN macros are broken" >&5
20205 $as_echo_n "checking whether the inttypes.h PRIxNN macros are broken... " >&6; }
20206 if ${gt_cv_inttypes_pri_broken+:} false; then :
20207   $as_echo_n "(cached) " >&6
20208 else
20209
20210         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20211 /* end confdefs.h.  */
20212 #include <inttypes.h>
20213 #ifdef PRId32
20214 char *p = PRId32;
20215 #endif
20216
20217 int
20218 main ()
20219 {
20220
20221   ;
20222   return 0;
20223 }
20224 _ACEOF
20225 if ac_fn_c_try_compile "$LINENO"; then :
20226   gt_cv_inttypes_pri_broken=no
20227 else
20228   gt_cv_inttypes_pri_broken=yes
20229 fi
20230 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20231
20232 fi
20233 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_inttypes_pri_broken" >&5
20234 $as_echo "$gt_cv_inttypes_pri_broken" >&6; }
20235   fi
20236   if test "$gt_cv_inttypes_pri_broken" = yes; then
20237
20238 cat >>confdefs.h <<_ACEOF
20239 #define PRI_MACROS_BROKEN 1
20240 _ACEOF
20241
20242   fi
20243
20244
20245   for ac_header in stdint.h
20246 do :
20247   ac_fn_c_check_header_mongrel "$LINENO" "stdint.h" "ac_cv_header_stdint_h" "$ac_includes_default"
20248 if test "x$ac_cv_header_stdint_h" = xyes; then :
20249   cat >>confdefs.h <<_ACEOF
20250 #define HAVE_STDINT_H 1
20251 _ACEOF
20252
20253 fi
20254
20255 done
20256
20257     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SIZE_MAX" >&5
20258 $as_echo_n "checking for SIZE_MAX... " >&6; }
20259   result=
20260   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20261 /* end confdefs.h.  */
20262
20263 #include <limits.h>
20264 #if HAVE_STDINT_H
20265 #include <stdint.h>
20266 #endif
20267 #ifdef SIZE_MAX
20268 Found it
20269 #endif
20270
20271 _ACEOF
20272 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20273   $EGREP "Found it" >/dev/null 2>&1; then :
20274   result=yes
20275 fi
20276 rm -f conftest*
20277
20278   if test -z "$result"; then
20279                     if ac_fn_c_compute_int "$LINENO" "~(size_t)0 / 10" "res_hi"        "#include <stddef.h>"; then :
20280
20281 else
20282   result=?
20283 fi
20284
20285
20286     if ac_fn_c_compute_int "$LINENO" "~(size_t)0 % 10" "res_lo"        "#include <stddef.h>"; then :
20287
20288 else
20289   result=?
20290 fi
20291
20292
20293     if ac_fn_c_compute_int "$LINENO" "sizeof (size_t) <= sizeof (unsigned int)" "fits_in_uint"        "#include <stddef.h>"; then :
20294
20295 else
20296   result=?
20297 fi
20298
20299
20300     if test "$fits_in_uint" = 1; then
20301                   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20302 /* end confdefs.h.  */
20303 #include <stddef.h>
20304         extern size_t foo;
20305         extern unsigned long foo;
20306
20307 int
20308 main ()
20309 {
20310
20311   ;
20312   return 0;
20313 }
20314 _ACEOF
20315 if ac_fn_c_try_compile "$LINENO"; then :
20316   fits_in_uint=0
20317 fi
20318 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20319     fi
20320     if test -z "$result"; then
20321       if test "$fits_in_uint" = 1; then
20322         result="$res_hi$res_lo"U
20323       else
20324         result="$res_hi$res_lo"UL
20325       fi
20326     else
20327             result='~(size_t)0'
20328     fi
20329   fi
20330   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $result" >&5
20331 $as_echo "$result" >&6; }
20332   if test "$result" != yes; then
20333
20334 cat >>confdefs.h <<_ACEOF
20335 #define SIZE_MAX $result
20336 _ACEOF
20337
20338   fi
20339
20340
20341
20342
20343   for ac_header in stdint.h
20344 do :
20345   ac_fn_c_check_header_mongrel "$LINENO" "stdint.h" "ac_cv_header_stdint_h" "$ac_includes_default"
20346 if test "x$ac_cv_header_stdint_h" = xyes; then :
20347   cat >>confdefs.h <<_ACEOF
20348 #define HAVE_STDINT_H 1
20349 _ACEOF
20350
20351 fi
20352
20353 done
20354
20355
20356
20357
20358
20359
20360
20361
20362   ac_fn_c_check_type "$LINENO" "ptrdiff_t" "ac_cv_type_ptrdiff_t" "$ac_includes_default"
20363 if test "x$ac_cv_type_ptrdiff_t" = xyes; then :
20364
20365 else
20366
20367 $as_echo "#define ptrdiff_t long" >>confdefs.h
20368
20369
20370 fi
20371
20372   for ac_header in argz.h limits.h locale.h nl_types.h malloc.h stddef.h \
20373 stdlib.h string.h unistd.h sys/param.h
20374 do :
20375   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
20376 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
20377 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
20378   cat >>confdefs.h <<_ACEOF
20379 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
20380 _ACEOF
20381
20382 fi
20383
20384 done
20385
20386   for ac_func in asprintf fwprintf getcwd getegid geteuid getgid getuid \
20387 mempcpy munmap putenv setenv setlocale snprintf stpcpy strcasecmp strdup \
20388 strtoul tsearch wcslen __argz_count __argz_stringify __argz_next \
20389 __fsetlocking
20390 do :
20391   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
20392 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
20393 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
20394   cat >>confdefs.h <<_ACEOF
20395 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
20396 _ACEOF
20397
20398 fi
20399 done
20400
20401
20402
20403   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether _snprintf is declared" >&5
20404 $as_echo_n "checking whether _snprintf is declared... " >&6; }
20405 if ${ac_cv_have_decl__snprintf+:} false; then :
20406   $as_echo_n "(cached) " >&6
20407 else
20408   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20409 /* end confdefs.h.  */
20410 #include <stdio.h>
20411 int
20412 main ()
20413 {
20414
20415 #ifndef _snprintf
20416   char *p = (char *) _snprintf;
20417 #endif
20418
20419   ;
20420   return 0;
20421 }
20422 _ACEOF
20423 if ac_fn_c_try_compile "$LINENO"; then :
20424   ac_cv_have_decl__snprintf=yes
20425 else
20426   ac_cv_have_decl__snprintf=no
20427 fi
20428 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20429 fi
20430 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_decl__snprintf" >&5
20431 $as_echo "$ac_cv_have_decl__snprintf" >&6; }
20432   if test $ac_cv_have_decl__snprintf = yes; then
20433     gt_value=1
20434   else
20435     gt_value=0
20436   fi
20437
20438 cat >>confdefs.h <<_ACEOF
20439 #define HAVE_DECL__SNPRINTF $gt_value
20440 _ACEOF
20441
20442
20443
20444   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether _snwprintf is declared" >&5
20445 $as_echo_n "checking whether _snwprintf is declared... " >&6; }
20446 if ${ac_cv_have_decl__snwprintf+:} false; then :
20447   $as_echo_n "(cached) " >&6
20448 else
20449   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20450 /* end confdefs.h.  */
20451 #include <stdio.h>
20452 int
20453 main ()
20454 {
20455
20456 #ifndef _snwprintf
20457   char *p = (char *) _snwprintf;
20458 #endif
20459
20460   ;
20461   return 0;
20462 }
20463 _ACEOF
20464 if ac_fn_c_try_compile "$LINENO"; then :
20465   ac_cv_have_decl__snwprintf=yes
20466 else
20467   ac_cv_have_decl__snwprintf=no
20468 fi
20469 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20470 fi
20471 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_decl__snwprintf" >&5
20472 $as_echo "$ac_cv_have_decl__snwprintf" >&6; }
20473   if test $ac_cv_have_decl__snwprintf = yes; then
20474     gt_value=1
20475   else
20476     gt_value=0
20477   fi
20478
20479 cat >>confdefs.h <<_ACEOF
20480 #define HAVE_DECL__SNWPRINTF $gt_value
20481 _ACEOF
20482
20483
20484
20485
20486   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether feof_unlocked is declared" >&5
20487 $as_echo_n "checking whether feof_unlocked is declared... " >&6; }
20488 if ${ac_cv_have_decl_feof_unlocked+:} false; then :
20489   $as_echo_n "(cached) " >&6
20490 else
20491   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20492 /* end confdefs.h.  */
20493 #include <stdio.h>
20494 int
20495 main ()
20496 {
20497
20498 #ifndef feof_unlocked
20499   char *p = (char *) feof_unlocked;
20500 #endif
20501
20502   ;
20503   return 0;
20504 }
20505 _ACEOF
20506 if ac_fn_c_try_compile "$LINENO"; then :
20507   ac_cv_have_decl_feof_unlocked=yes
20508 else
20509   ac_cv_have_decl_feof_unlocked=no
20510 fi
20511 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20512 fi
20513 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_decl_feof_unlocked" >&5
20514 $as_echo "$ac_cv_have_decl_feof_unlocked" >&6; }
20515   if test $ac_cv_have_decl_feof_unlocked = yes; then
20516     gt_value=1
20517   else
20518     gt_value=0
20519   fi
20520
20521 cat >>confdefs.h <<_ACEOF
20522 #define HAVE_DECL_FEOF_UNLOCKED $gt_value
20523 _ACEOF
20524
20525
20526
20527   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether fgets_unlocked is declared" >&5
20528 $as_echo_n "checking whether fgets_unlocked is declared... " >&6; }
20529 if ${ac_cv_have_decl_fgets_unlocked+:} false; then :
20530   $as_echo_n "(cached) " >&6
20531 else
20532   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20533 /* end confdefs.h.  */
20534 #include <stdio.h>
20535 int
20536 main ()
20537 {
20538
20539 #ifndef fgets_unlocked
20540   char *p = (char *) fgets_unlocked;
20541 #endif
20542
20543   ;
20544   return 0;
20545 }
20546 _ACEOF
20547 if ac_fn_c_try_compile "$LINENO"; then :
20548   ac_cv_have_decl_fgets_unlocked=yes
20549 else
20550   ac_cv_have_decl_fgets_unlocked=no
20551 fi
20552 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20553 fi
20554 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_decl_fgets_unlocked" >&5
20555 $as_echo "$ac_cv_have_decl_fgets_unlocked" >&6; }
20556   if test $ac_cv_have_decl_fgets_unlocked = yes; then
20557     gt_value=1
20558   else
20559     gt_value=0
20560   fi
20561
20562 cat >>confdefs.h <<_ACEOF
20563 #define HAVE_DECL_FGETS_UNLOCKED $gt_value
20564 _ACEOF
20565
20566
20567
20568   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether getc_unlocked is declared" >&5
20569 $as_echo_n "checking whether getc_unlocked is declared... " >&6; }
20570 if ${ac_cv_have_decl_getc_unlocked+:} false; then :
20571   $as_echo_n "(cached) " >&6
20572 else
20573   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20574 /* end confdefs.h.  */
20575 #include <stdio.h>
20576 int
20577 main ()
20578 {
20579
20580 #ifndef getc_unlocked
20581   char *p = (char *) getc_unlocked;
20582 #endif
20583
20584   ;
20585   return 0;
20586 }
20587 _ACEOF
20588 if ac_fn_c_try_compile "$LINENO"; then :
20589   ac_cv_have_decl_getc_unlocked=yes
20590 else
20591   ac_cv_have_decl_getc_unlocked=no
20592 fi
20593 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20594 fi
20595 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_decl_getc_unlocked" >&5
20596 $as_echo "$ac_cv_have_decl_getc_unlocked" >&6; }
20597   if test $ac_cv_have_decl_getc_unlocked = yes; then
20598     gt_value=1
20599   else
20600     gt_value=0
20601   fi
20602
20603 cat >>confdefs.h <<_ACEOF
20604 #define HAVE_DECL_GETC_UNLOCKED $gt_value
20605 _ACEOF
20606
20607
20608
20609   case $gt_cv_func_printf_posix in
20610     *yes) HAVE_POSIX_PRINTF=1 ;;
20611     *) HAVE_POSIX_PRINTF=0 ;;
20612   esac
20613
20614   if test "$ac_cv_func_asprintf" = yes; then
20615     HAVE_ASPRINTF=1
20616   else
20617     HAVE_ASPRINTF=0
20618   fi
20619
20620   if test "$ac_cv_func_snprintf" = yes; then
20621     HAVE_SNPRINTF=1
20622   else
20623     HAVE_SNPRINTF=0
20624   fi
20625
20626   if test "$ac_cv_func_wprintf" = yes; then
20627     HAVE_WPRINTF=1
20628   else
20629     HAVE_WPRINTF=0
20630   fi
20631
20632
20633
20634
20635
20636
20637
20638           am_save_CPPFLAGS="$CPPFLAGS"
20639
20640   for element in $INCICONV; do
20641     haveit=
20642     for x in $CPPFLAGS; do
20643
20644   acl_save_prefix="$prefix"
20645   prefix="$acl_final_prefix"
20646   acl_save_exec_prefix="$exec_prefix"
20647   exec_prefix="$acl_final_exec_prefix"
20648   eval x=\"$x\"
20649   exec_prefix="$acl_save_exec_prefix"
20650   prefix="$acl_save_prefix"
20651
20652       if test "X$x" = "X$element"; then
20653         haveit=yes
20654         break
20655       fi
20656     done
20657     if test -z "$haveit"; then
20658       CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
20659     fi
20660   done
20661
20662
20663   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5
20664 $as_echo_n "checking for iconv... " >&6; }
20665 if ${am_cv_func_iconv+:} false; then :
20666   $as_echo_n "(cached) " >&6
20667 else
20668
20669     am_cv_func_iconv="no, consider installing GNU libiconv"
20670     am_cv_lib_iconv=no
20671     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20672 /* end confdefs.h.  */
20673 #include <stdlib.h>
20674 #include <iconv.h>
20675 int
20676 main ()
20677 {
20678 iconv_t cd = iconv_open("","");
20679        iconv(cd,NULL,NULL,NULL,NULL);
20680        iconv_close(cd);
20681   ;
20682   return 0;
20683 }
20684 _ACEOF
20685 if ac_fn_c_try_link "$LINENO"; then :
20686   am_cv_func_iconv=yes
20687 fi
20688 rm -f core conftest.err conftest.$ac_objext \
20689     conftest$ac_exeext conftest.$ac_ext
20690     if test "$am_cv_func_iconv" != yes; then
20691       am_save_LIBS="$LIBS"
20692       LIBS="$LIBS $LIBICONV"
20693       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20694 /* end confdefs.h.  */
20695 #include <stdlib.h>
20696 #include <iconv.h>
20697 int
20698 main ()
20699 {
20700 iconv_t cd = iconv_open("","");
20701          iconv(cd,NULL,NULL,NULL,NULL);
20702          iconv_close(cd);
20703   ;
20704   return 0;
20705 }
20706 _ACEOF
20707 if ac_fn_c_try_link "$LINENO"; then :
20708   am_cv_lib_iconv=yes
20709         am_cv_func_iconv=yes
20710 fi
20711 rm -f core conftest.err conftest.$ac_objext \
20712     conftest$ac_exeext conftest.$ac_ext
20713       LIBS="$am_save_LIBS"
20714     fi
20715
20716 fi
20717 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5
20718 $as_echo "$am_cv_func_iconv" >&6; }
20719   if test "$am_cv_func_iconv" = yes; then
20720
20721 $as_echo "#define HAVE_ICONV 1" >>confdefs.h
20722
20723   fi
20724   if test "$am_cv_lib_iconv" = yes; then
20725     { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libiconv" >&5
20726 $as_echo_n "checking how to link with libiconv... " >&6; }
20727     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBICONV" >&5
20728 $as_echo "$LIBICONV" >&6; }
20729   else
20730             CPPFLAGS="$am_save_CPPFLAGS"
20731     LIBICONV=
20732     LTLIBICONV=
20733   fi
20734
20735
20736
20737   if test "$am_cv_func_iconv" = yes; then
20738     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv declaration" >&5
20739 $as_echo_n "checking for iconv declaration... " >&6; }
20740     if ${am_cv_proto_iconv+:} false; then :
20741   $as_echo_n "(cached) " >&6
20742 else
20743
20744       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20745 /* end confdefs.h.  */
20746
20747 #include <stdlib.h>
20748 #include <iconv.h>
20749 extern
20750 #ifdef __cplusplus
20751 "C"
20752 #endif
20753 #if defined(__STDC__) || defined(__cplusplus)
20754 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
20755 #else
20756 size_t iconv();
20757 #endif
20758
20759 int
20760 main ()
20761 {
20762
20763   ;
20764   return 0;
20765 }
20766 _ACEOF
20767 if ac_fn_c_try_compile "$LINENO"; then :
20768   am_cv_proto_iconv_arg1=""
20769 else
20770   am_cv_proto_iconv_arg1="const"
20771 fi
20772 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20773       am_cv_proto_iconv="extern size_t iconv (iconv_t cd, $am_cv_proto_iconv_arg1 char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);"
20774 fi
20775
20776     am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
20777     { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${ac_t:-
20778          }$am_cv_proto_iconv" >&5
20779 $as_echo "${ac_t:-
20780          }$am_cv_proto_iconv" >&6; }
20781
20782 cat >>confdefs.h <<_ACEOF
20783 #define ICONV_CONST $am_cv_proto_iconv_arg1
20784 _ACEOF
20785
20786   fi
20787
20788
20789   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nl_langinfo and CODESET" >&5
20790 $as_echo_n "checking for nl_langinfo and CODESET... " >&6; }
20791 if ${am_cv_langinfo_codeset+:} false; then :
20792   $as_echo_n "(cached) " >&6
20793 else
20794   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20795 /* end confdefs.h.  */
20796 #include <langinfo.h>
20797 int
20798 main ()
20799 {
20800 char* cs = nl_langinfo(CODESET);
20801   ;
20802   return 0;
20803 }
20804 _ACEOF
20805 if ac_fn_c_try_link "$LINENO"; then :
20806   am_cv_langinfo_codeset=yes
20807 else
20808   am_cv_langinfo_codeset=no
20809 fi
20810 rm -f core conftest.err conftest.$ac_objext \
20811     conftest$ac_exeext conftest.$ac_ext
20812
20813 fi
20814 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_langinfo_codeset" >&5
20815 $as_echo "$am_cv_langinfo_codeset" >&6; }
20816   if test $am_cv_langinfo_codeset = yes; then
20817
20818 $as_echo "#define HAVE_LANGINFO_CODESET 1" >>confdefs.h
20819
20820   fi
20821
20822   if test $ac_cv_header_locale_h = yes; then
20823
20824   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LC_MESSAGES" >&5
20825 $as_echo_n "checking for LC_MESSAGES... " >&6; }
20826 if ${gt_cv_val_LC_MESSAGES+:} false; then :
20827   $as_echo_n "(cached) " >&6
20828 else
20829   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20830 /* end confdefs.h.  */
20831 #include <locale.h>
20832 int
20833 main ()
20834 {
20835 return LC_MESSAGES
20836   ;
20837   return 0;
20838 }
20839 _ACEOF
20840 if ac_fn_c_try_link "$LINENO"; then :
20841   gt_cv_val_LC_MESSAGES=yes
20842 else
20843   gt_cv_val_LC_MESSAGES=no
20844 fi
20845 rm -f core conftest.err conftest.$ac_objext \
20846     conftest$ac_exeext conftest.$ac_ext
20847 fi
20848 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_val_LC_MESSAGES" >&5
20849 $as_echo "$gt_cv_val_LC_MESSAGES" >&6; }
20850   if test $gt_cv_val_LC_MESSAGES = yes; then
20851
20852 $as_echo "#define HAVE_LC_MESSAGES 1" >>confdefs.h
20853
20854   fi
20855
20856   fi
20857
20858   if test -n "$INTL_MACOSX_LIBS"; then
20859     CPPFLAGS="$CPPFLAGS -I/System/Library/Frameworks/CoreFoundation.framework/Headers"
20860   fi
20861
20862                       for ac_prog in bison
20863 do
20864   # Extract the first word of "$ac_prog", so it can be a program name with args.
20865 set dummy $ac_prog; ac_word=$2
20866 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
20867 $as_echo_n "checking for $ac_word... " >&6; }
20868 if ${ac_cv_prog_INTLBISON+:} false; then :
20869   $as_echo_n "(cached) " >&6
20870 else
20871   if test -n "$INTLBISON"; then
20872   ac_cv_prog_INTLBISON="$INTLBISON" # Let the user override the test.
20873 else
20874 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20875 for as_dir in $PATH
20876 do
20877   IFS=$as_save_IFS
20878   test -z "$as_dir" && as_dir=.
20879     for ac_exec_ext in '' $ac_executable_extensions; do
20880   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
20881     ac_cv_prog_INTLBISON="$ac_prog"
20882     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
20883     break 2
20884   fi
20885 done
20886   done
20887 IFS=$as_save_IFS
20888
20889 fi
20890 fi
20891 INTLBISON=$ac_cv_prog_INTLBISON
20892 if test -n "$INTLBISON"; then
20893   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INTLBISON" >&5
20894 $as_echo "$INTLBISON" >&6; }
20895 else
20896   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20897 $as_echo "no" >&6; }
20898 fi
20899
20900
20901   test -n "$INTLBISON" && break
20902 done
20903
20904   if test -z "$INTLBISON"; then
20905     ac_verc_fail=yes
20906   else
20907         { $as_echo "$as_me:${as_lineno-$LINENO}: checking version of bison" >&5
20908 $as_echo_n "checking version of bison... " >&6; }
20909     ac_prog_version=`$INTLBISON --version 2>&1 | sed -n 's/^.*GNU Bison.* \([0-9]*\.[0-9.]*\).*$/\1/p'`
20910     case $ac_prog_version in
20911       '') ac_prog_version="v. ?.??, bad"; ac_verc_fail=yes;;
20912       1.2[6-9]* | 1.[3-9][0-9]* | [2-9].*)
20913          ac_prog_version="$ac_prog_version, ok"; ac_verc_fail=no;;
20914       *) ac_prog_version="$ac_prog_version, bad"; ac_verc_fail=yes;;
20915     esac
20916     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_prog_version" >&5
20917 $as_echo "$ac_prog_version" >&6; }
20918   fi
20919   if test $ac_verc_fail = yes; then
20920     INTLBISON=:
20921   fi
20922
20923
20924
20925
20926
20927
20928
20929
20930
20931
20932
20933
20934
20935
20936
20937
20938     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFPreferencesCopyAppValue" >&5
20939 $as_echo_n "checking for CFPreferencesCopyAppValue... " >&6; }
20940 if ${gt_cv_func_CFPreferencesCopyAppValue+:} false; then :
20941   $as_echo_n "(cached) " >&6
20942 else
20943   gt_save_CPPFLAGS="$CPPFLAGS"
20944      CPPFLAGS="$CPPFLAGS -I/System/Library/Frameworks/CoreFoundation.framework/Headers"
20945      gt_save_LIBS="$LIBS"
20946      LIBS="$LIBS -framework CoreFoundation"
20947      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20948 /* end confdefs.h.  */
20949 #include <CFPreferences.h>
20950 int
20951 main ()
20952 {
20953 CFPreferencesCopyAppValue(NULL, NULL)
20954   ;
20955   return 0;
20956 }
20957 _ACEOF
20958 if ac_fn_c_try_link "$LINENO"; then :
20959   gt_cv_func_CFPreferencesCopyAppValue=yes
20960 else
20961   gt_cv_func_CFPreferencesCopyAppValue=no
20962 fi
20963 rm -f core conftest.err conftest.$ac_objext \
20964     conftest$ac_exeext conftest.$ac_ext
20965      CPPFLAGS="$gt_save_CPPFLAGS"
20966      LIBS="$gt_save_LIBS"
20967 fi
20968 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFPreferencesCopyAppValue" >&5
20969 $as_echo "$gt_cv_func_CFPreferencesCopyAppValue" >&6; }
20970   if test $gt_cv_func_CFPreferencesCopyAppValue = yes; then
20971
20972 $as_echo "#define HAVE_CFPREFERENCESCOPYAPPVALUE 1" >>confdefs.h
20973
20974   fi
20975     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFLocaleCopyCurrent" >&5
20976 $as_echo_n "checking for CFLocaleCopyCurrent... " >&6; }
20977 if ${gt_cv_func_CFLocaleCopyCurrent+:} false; then :
20978   $as_echo_n "(cached) " >&6
20979 else
20980   gt_save_CPPFLAGS="$CPPFLAGS"
20981      CPPFLAGS="$CPPFLAGS -I/System/Library/Frameworks/CoreFoundation.framework/Headers"
20982      gt_save_LIBS="$LIBS"
20983      LIBS="$LIBS -framework CoreFoundation"
20984      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20985 /* end confdefs.h.  */
20986 #include <CFLocale.h>
20987 int
20988 main ()
20989 {
20990 CFLocaleCopyCurrent();
20991   ;
20992   return 0;
20993 }
20994 _ACEOF
20995 if ac_fn_c_try_link "$LINENO"; then :
20996   gt_cv_func_CFLocaleCopyCurrent=yes
20997 else
20998   gt_cv_func_CFLocaleCopyCurrent=no
20999 fi
21000 rm -f core conftest.err conftest.$ac_objext \
21001     conftest$ac_exeext conftest.$ac_ext
21002      CPPFLAGS="$gt_save_CPPFLAGS"
21003      LIBS="$gt_save_LIBS"
21004 fi
21005 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFLocaleCopyCurrent" >&5
21006 $as_echo "$gt_cv_func_CFLocaleCopyCurrent" >&6; }
21007   if test $gt_cv_func_CFLocaleCopyCurrent = yes; then
21008
21009 $as_echo "#define HAVE_CFLOCALECOPYCURRENT 1" >>confdefs.h
21010
21011   fi
21012   INTL_MACOSX_LIBS=
21013   if test $gt_cv_func_CFPreferencesCopyAppValue = yes || test $gt_cv_func_CFLocaleCopyCurrent = yes; then
21014     INTL_MACOSX_LIBS="-Wl,-framework -Wl,CoreFoundation"
21015   fi
21016
21017
21018
21019
21020   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
21021 $as_echo_n "checking whether NLS is requested... " >&6; }
21022     # Check whether --enable-nls was given.
21023 if test "${enable_nls+set}" = set; then :
21024   enableval=$enable_nls; USE_NLS=$enableval
21025 else
21026   USE_NLS=yes
21027 fi
21028
21029   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
21030 $as_echo "$USE_NLS" >&6; }
21031
21032
21033
21034
21035     BUILD_INCLUDED_LIBINTL=no
21036     USE_INCLUDED_LIBINTL=no
21037
21038   LIBINTL=
21039   LTLIBINTL=
21040   POSUB=
21041
21042     if test "$USE_NLS" = "yes"; then
21043     gt_use_preinstalled_gnugettext=no
21044
21045       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether included gettext is requested" >&5
21046 $as_echo_n "checking whether included gettext is requested... " >&6; }
21047
21048 # Check whether --with-included-gettext was given.
21049 if test "${with_included_gettext+set}" = set; then :
21050   withval=$with_included_gettext; nls_cv_force_use_gnu_gettext=$withval
21051 else
21052   nls_cv_force_use_gnu_gettext=no
21053 fi
21054
21055       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $nls_cv_force_use_gnu_gettext" >&5
21056 $as_echo "$nls_cv_force_use_gnu_gettext" >&6; }
21057
21058       nls_cv_use_gnu_gettext="$nls_cv_force_use_gnu_gettext"
21059       if test "$nls_cv_force_use_gnu_gettext" != "yes"; then
21060
21061
21062
21063
21064
21065
21066         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libc" >&5
21067 $as_echo_n "checking for GNU gettext in libc... " >&6; }
21068 if ${gt_cv_func_gnugettext1_libc+:} false; then :
21069   $as_echo_n "(cached) " >&6
21070 else
21071   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21072 /* end confdefs.h.  */
21073 #include <libintl.h>
21074 extern int _nl_msg_cat_cntr;
21075 extern int *_nl_domain_bindings;
21076 int
21077 main ()
21078 {
21079 bindtextdomain ("", "");
21080 return * gettext ("") + _nl_msg_cat_cntr + *_nl_domain_bindings
21081   ;
21082   return 0;
21083 }
21084 _ACEOF
21085 if ac_fn_c_try_link "$LINENO"; then :
21086   gt_cv_func_gnugettext1_libc=yes
21087 else
21088   gt_cv_func_gnugettext1_libc=no
21089 fi
21090 rm -f core conftest.err conftest.$ac_objext \
21091     conftest$ac_exeext conftest.$ac_ext
21092 fi
21093 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_gnugettext1_libc" >&5
21094 $as_echo "$gt_cv_func_gnugettext1_libc" >&6; }
21095
21096         if test "$gt_cv_func_gnugettext1_libc" != "yes"; then
21097
21098
21099
21100     use_additional=yes
21101
21102   acl_save_prefix="$prefix"
21103   prefix="$acl_final_prefix"
21104   acl_save_exec_prefix="$exec_prefix"
21105   exec_prefix="$acl_final_exec_prefix"
21106
21107     eval additional_includedir=\"$includedir\"
21108     eval additional_libdir=\"$libdir\"
21109
21110   exec_prefix="$acl_save_exec_prefix"
21111   prefix="$acl_save_prefix"
21112
21113
21114 # Check whether --with-libintl-prefix was given.
21115 if test "${with_libintl_prefix+set}" = set; then :
21116   withval=$with_libintl_prefix;
21117     if test "X$withval" = "Xno"; then
21118       use_additional=no
21119     else
21120       if test "X$withval" = "X"; then
21121
21122   acl_save_prefix="$prefix"
21123   prefix="$acl_final_prefix"
21124   acl_save_exec_prefix="$exec_prefix"
21125   exec_prefix="$acl_final_exec_prefix"
21126
21127           eval additional_includedir=\"$includedir\"
21128           eval additional_libdir=\"$libdir\"
21129
21130   exec_prefix="$acl_save_exec_prefix"
21131   prefix="$acl_save_prefix"
21132
21133       else
21134         additional_includedir="$withval/include"
21135         additional_libdir="$withval/lib"
21136       fi
21137     fi
21138
21139 fi
21140
21141       LIBINTL=
21142   LTLIBINTL=
21143   INCINTL=
21144   rpathdirs=
21145   ltrpathdirs=
21146   names_already_handled=
21147   names_next_round='intl '
21148   while test -n "$names_next_round"; do
21149     names_this_round="$names_next_round"
21150     names_next_round=
21151     for name in $names_this_round; do
21152       already_handled=
21153       for n in $names_already_handled; do
21154         if test "$n" = "$name"; then
21155           already_handled=yes
21156           break
21157         fi
21158       done
21159       if test -z "$already_handled"; then
21160         names_already_handled="$names_already_handled $name"
21161                         uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
21162         eval value=\"\$HAVE_LIB$uppername\"
21163         if test -n "$value"; then
21164           if test "$value" = yes; then
21165             eval value=\"\$LIB$uppername\"
21166             test -z "$value" || LIBINTL="${LIBINTL}${LIBINTL:+ }$value"
21167             eval value=\"\$LTLIB$uppername\"
21168             test -z "$value" || LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$value"
21169           else
21170                                     :
21171           fi
21172         else
21173                               found_dir=
21174           found_la=
21175           found_so=
21176           found_a=
21177           if test $use_additional = yes; then
21178             if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
21179               found_dir="$additional_libdir"
21180               found_so="$additional_libdir/lib$name.$shlibext"
21181               if test -f "$additional_libdir/lib$name.la"; then
21182                 found_la="$additional_libdir/lib$name.la"
21183               fi
21184             else
21185               if test -f "$additional_libdir/lib$name.$libext"; then
21186                 found_dir="$additional_libdir"
21187                 found_a="$additional_libdir/lib$name.$libext"
21188                 if test -f "$additional_libdir/lib$name.la"; then
21189                   found_la="$additional_libdir/lib$name.la"
21190                 fi
21191               fi
21192             fi
21193           fi
21194           if test "X$found_dir" = "X"; then
21195             for x in $LDFLAGS $LTLIBINTL; do
21196
21197   acl_save_prefix="$prefix"
21198   prefix="$acl_final_prefix"
21199   acl_save_exec_prefix="$exec_prefix"
21200   exec_prefix="$acl_final_exec_prefix"
21201   eval x=\"$x\"
21202   exec_prefix="$acl_save_exec_prefix"
21203   prefix="$acl_save_prefix"
21204
21205               case "$x" in
21206                 -L*)
21207                   dir=`echo "X$x" | sed -e 's/^X-L//'`
21208                   if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
21209                     found_dir="$dir"
21210                     found_so="$dir/lib$name.$shlibext"
21211                     if test -f "$dir/lib$name.la"; then
21212                       found_la="$dir/lib$name.la"
21213                     fi
21214                   else
21215                     if test -f "$dir/lib$name.$libext"; then
21216                       found_dir="$dir"
21217                       found_a="$dir/lib$name.$libext"
21218                       if test -f "$dir/lib$name.la"; then
21219                         found_la="$dir/lib$name.la"
21220                       fi
21221                     fi
21222                   fi
21223                   ;;
21224               esac
21225               if test "X$found_dir" != "X"; then
21226                 break
21227               fi
21228             done
21229           fi
21230           if test "X$found_dir" != "X"; then
21231                         LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$found_dir -l$name"
21232             if test "X$found_so" != "X"; then
21233                                                         if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
21234                                 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
21235               else
21236                                                                                 haveit=
21237                 for x in $ltrpathdirs; do
21238                   if test "X$x" = "X$found_dir"; then
21239                     haveit=yes
21240                     break
21241                   fi
21242                 done
21243                 if test -z "$haveit"; then
21244                   ltrpathdirs="$ltrpathdirs $found_dir"
21245                 fi
21246                                 if test "$hardcode_direct" = yes; then
21247                                                       LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
21248                 else
21249                   if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
21250                                                             LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
21251                                                             haveit=
21252                     for x in $rpathdirs; do
21253                       if test "X$x" = "X$found_dir"; then
21254                         haveit=yes
21255                         break
21256                       fi
21257                     done
21258                     if test -z "$haveit"; then
21259                       rpathdirs="$rpathdirs $found_dir"
21260                     fi
21261                   else
21262                                                                                 haveit=
21263                     for x in $LDFLAGS $LIBINTL; do
21264
21265   acl_save_prefix="$prefix"
21266   prefix="$acl_final_prefix"
21267   acl_save_exec_prefix="$exec_prefix"
21268   exec_prefix="$acl_final_exec_prefix"
21269   eval x=\"$x\"
21270   exec_prefix="$acl_save_exec_prefix"
21271   prefix="$acl_save_prefix"
21272
21273                       if test "X$x" = "X-L$found_dir"; then
21274                         haveit=yes
21275                         break
21276                       fi
21277                     done
21278                     if test -z "$haveit"; then
21279                       LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir"
21280                     fi
21281                     if test "$hardcode_minus_L" != no; then
21282                                                                                         LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
21283                     else
21284                                                                                                                                                                                 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
21285                     fi
21286                   fi
21287                 fi
21288               fi
21289             else
21290               if test "X$found_a" != "X"; then
21291                                 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_a"
21292               else
21293                                                 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir -l$name"
21294               fi
21295             fi
21296                         additional_includedir=
21297             case "$found_dir" in
21298               */lib | */lib/)
21299                 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
21300                 additional_includedir="$basedir/include"
21301                 ;;
21302             esac
21303             if test "X$additional_includedir" != "X"; then
21304                                                                                                                 if test "X$additional_includedir" != "X/usr/include"; then
21305                 haveit=
21306                 if test "X$additional_includedir" = "X/usr/local/include"; then
21307                   if test -n "$GCC"; then
21308                     case $host_os in
21309                       linux* | gnu* | k*bsd*-gnu) haveit=yes;;
21310                     esac
21311                   fi
21312                 fi
21313                 if test -z "$haveit"; then
21314                   for x in $CPPFLAGS $INCINTL; do
21315
21316   acl_save_prefix="$prefix"
21317   prefix="$acl_final_prefix"
21318   acl_save_exec_prefix="$exec_prefix"
21319   exec_prefix="$acl_final_exec_prefix"
21320   eval x=\"$x\"
21321   exec_prefix="$acl_save_exec_prefix"
21322   prefix="$acl_save_prefix"
21323
21324                     if test "X$x" = "X-I$additional_includedir"; then
21325                       haveit=yes
21326                       break
21327                     fi
21328                   done
21329                   if test -z "$haveit"; then
21330                     if test -d "$additional_includedir"; then
21331                                             INCINTL="${INCINTL}${INCINTL:+ }-I$additional_includedir"
21332                     fi
21333                   fi
21334                 fi
21335               fi
21336             fi
21337                         if test -n "$found_la"; then
21338                                                         save_libdir="$libdir"
21339               case "$found_la" in
21340                 */* | *\\*) . "$found_la" ;;
21341                 *) . "./$found_la" ;;
21342               esac
21343               libdir="$save_libdir"
21344                             for dep in $dependency_libs; do
21345                 case "$dep" in
21346                   -L*)
21347                     additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
21348                                                                                                                                                                 if test "X$additional_libdir" != "X/usr/lib"; then
21349                       haveit=
21350                       if test "X$additional_libdir" = "X/usr/local/lib"; then
21351                         if test -n "$GCC"; then
21352                           case $host_os in
21353                             linux* | gnu* | k*bsd*-gnu) haveit=yes;;
21354                           esac
21355                         fi
21356                       fi
21357                       if test -z "$haveit"; then
21358                         haveit=
21359                         for x in $LDFLAGS $LIBINTL; do
21360
21361   acl_save_prefix="$prefix"
21362   prefix="$acl_final_prefix"
21363   acl_save_exec_prefix="$exec_prefix"
21364   exec_prefix="$acl_final_exec_prefix"
21365   eval x=\"$x\"
21366   exec_prefix="$acl_save_exec_prefix"
21367   prefix="$acl_save_prefix"
21368
21369                           if test "X$x" = "X-L$additional_libdir"; then
21370                             haveit=yes
21371                             break
21372                           fi
21373                         done
21374                         if test -z "$haveit"; then
21375                           if test -d "$additional_libdir"; then
21376                                                         LIBINTL="${LIBINTL}${LIBINTL:+ }-L$additional_libdir"
21377                           fi
21378                         fi
21379                         haveit=
21380                         for x in $LDFLAGS $LTLIBINTL; do
21381
21382   acl_save_prefix="$prefix"
21383   prefix="$acl_final_prefix"
21384   acl_save_exec_prefix="$exec_prefix"
21385   exec_prefix="$acl_final_exec_prefix"
21386   eval x=\"$x\"
21387   exec_prefix="$acl_save_exec_prefix"
21388   prefix="$acl_save_prefix"
21389
21390                           if test "X$x" = "X-L$additional_libdir"; then
21391                             haveit=yes
21392                             break
21393                           fi
21394                         done
21395                         if test -z "$haveit"; then
21396                           if test -d "$additional_libdir"; then
21397                                                         LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$additional_libdir"
21398                           fi
21399                         fi
21400                       fi
21401                     fi
21402                     ;;
21403                   -R*)
21404                     dir=`echo "X$dep" | sed -e 's/^X-R//'`
21405                     if test "$enable_rpath" != no; then
21406                                                                   haveit=
21407                       for x in $rpathdirs; do
21408                         if test "X$x" = "X$dir"; then
21409                           haveit=yes
21410                           break
21411                         fi
21412                       done
21413                       if test -z "$haveit"; then
21414                         rpathdirs="$rpathdirs $dir"
21415                       fi
21416                                                                   haveit=
21417                       for x in $ltrpathdirs; do
21418                         if test "X$x" = "X$dir"; then
21419                           haveit=yes
21420                           break
21421                         fi
21422                       done
21423                       if test -z "$haveit"; then
21424                         ltrpathdirs="$ltrpathdirs $dir"
21425                       fi
21426                     fi
21427                     ;;
21428                   -l*)
21429                                         names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
21430                     ;;
21431                   *.la)
21432                                                                                 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
21433                     ;;
21434                   *)
21435                                         LIBINTL="${LIBINTL}${LIBINTL:+ }$dep"
21436                     LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$dep"
21437                     ;;
21438                 esac
21439               done
21440             fi
21441           else
21442                                                             LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
21443             LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-l$name"
21444           fi
21445         fi
21446       fi
21447     done
21448   done
21449   if test "X$rpathdirs" != "X"; then
21450     if test -n "$hardcode_libdir_separator"; then
21451                         alldirs=
21452       for found_dir in $rpathdirs; do
21453         alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
21454       done
21455             acl_save_libdir="$libdir"
21456       libdir="$alldirs"
21457       eval flag=\"$hardcode_libdir_flag_spec\"
21458       libdir="$acl_save_libdir"
21459       LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
21460     else
21461             for found_dir in $rpathdirs; do
21462         acl_save_libdir="$libdir"
21463         libdir="$found_dir"
21464         eval flag=\"$hardcode_libdir_flag_spec\"
21465         libdir="$acl_save_libdir"
21466         LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
21467       done
21468     fi
21469   fi
21470   if test "X$ltrpathdirs" != "X"; then
21471             for found_dir in $ltrpathdirs; do
21472       LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-R$found_dir"
21473     done
21474   fi
21475
21476           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libintl" >&5
21477 $as_echo_n "checking for GNU gettext in libintl... " >&6; }
21478 if ${gt_cv_func_gnugettext1_libintl+:} false; then :
21479   $as_echo_n "(cached) " >&6
21480 else
21481   gt_save_CPPFLAGS="$CPPFLAGS"
21482             CPPFLAGS="$CPPFLAGS $INCINTL"
21483             gt_save_LIBS="$LIBS"
21484             LIBS="$LIBS $LIBINTL"
21485                         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21486 /* end confdefs.h.  */
21487 #include <libintl.h>
21488 extern int _nl_msg_cat_cntr;
21489 extern
21490 #ifdef __cplusplus
21491 "C"
21492 #endif
21493 const char *_nl_expand_alias (const char *);
21494 int
21495 main ()
21496 {
21497 bindtextdomain ("", "");
21498 return * gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias ("")
21499   ;
21500   return 0;
21501 }
21502 _ACEOF
21503 if ac_fn_c_try_link "$LINENO"; then :
21504   gt_cv_func_gnugettext1_libintl=yes
21505 else
21506   gt_cv_func_gnugettext1_libintl=no
21507 fi
21508 rm -f core conftest.err conftest.$ac_objext \
21509     conftest$ac_exeext conftest.$ac_ext
21510                         if test "$gt_cv_func_gnugettext1_libintl" != yes && test -n "$LIBICONV"; then
21511               LIBS="$LIBS $LIBICONV"
21512               cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21513 /* end confdefs.h.  */
21514 #include <libintl.h>
21515 extern int _nl_msg_cat_cntr;
21516 extern
21517 #ifdef __cplusplus
21518 "C"
21519 #endif
21520 const char *_nl_expand_alias (const char *);
21521 int
21522 main ()
21523 {
21524 bindtextdomain ("", "");
21525 return * gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias ("")
21526   ;
21527   return 0;
21528 }
21529 _ACEOF
21530 if ac_fn_c_try_link "$LINENO"; then :
21531   LIBINTL="$LIBINTL $LIBICONV"
21532                 LTLIBINTL="$LTLIBINTL $LTLIBICONV"
21533                 gt_cv_func_gnugettext1_libintl=yes
21534
21535 fi
21536 rm -f core conftest.err conftest.$ac_objext \
21537     conftest$ac_exeext conftest.$ac_ext
21538             fi
21539             CPPFLAGS="$gt_save_CPPFLAGS"
21540             LIBS="$gt_save_LIBS"
21541 fi
21542 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_gnugettext1_libintl" >&5
21543 $as_echo "$gt_cv_func_gnugettext1_libintl" >&6; }
21544         fi
21545
21546                                         if test "$gt_cv_func_gnugettext1_libc" = "yes" \
21547            || { test "$gt_cv_func_gnugettext1_libintl" = "yes" \
21548                 && test "$PACKAGE" != gettext-runtime \
21549                 && test "$PACKAGE" != gettext-tools; }; then
21550           gt_use_preinstalled_gnugettext=yes
21551         else
21552                     LIBINTL=
21553           LTLIBINTL=
21554           INCINTL=
21555         fi
21556
21557
21558         if test "$gt_use_preinstalled_gnugettext" != "yes"; then
21559                               nls_cv_use_gnu_gettext=yes
21560         fi
21561       fi
21562
21563       if test "$nls_cv_use_gnu_gettext" = "yes"; then
21564                 BUILD_INCLUDED_LIBINTL=yes
21565         USE_INCLUDED_LIBINTL=yes
21566         LIBINTL="\${top_builddir}/intl/libintl.a $LIBICONV"
21567         LTLIBINTL="\${top_builddir}/intl/libintl.a $LTLIBICONV"
21568         LIBS=`echo " $LIBS " | sed -e 's/ -lintl / /' -e 's/^ //' -e 's/ $//'`
21569       fi
21570
21571       CATOBJEXT=
21572       if test "$gt_use_preinstalled_gnugettext" = "yes" \
21573          || test "$nls_cv_use_gnu_gettext" = "yes"; then
21574                 CATOBJEXT=.gmo
21575       fi
21576
21577
21578     if test -n "$INTL_MACOSX_LIBS"; then
21579       if test "$gt_use_preinstalled_gnugettext" = "yes" \
21580          || test "$nls_cv_use_gnu_gettext" = "yes"; then
21581                 LIBINTL="$LIBINTL $INTL_MACOSX_LIBS"
21582         LTLIBINTL="$LTLIBINTL $INTL_MACOSX_LIBS"
21583       fi
21584     fi
21585
21586     if test "$gt_use_preinstalled_gnugettext" = "yes" \
21587        || test "$nls_cv_use_gnu_gettext" = "yes"; then
21588
21589 $as_echo "#define ENABLE_NLS 1" >>confdefs.h
21590
21591     else
21592       USE_NLS=no
21593     fi
21594   fi
21595
21596   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use NLS" >&5
21597 $as_echo_n "checking whether to use NLS... " >&6; }
21598   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
21599 $as_echo "$USE_NLS" >&6; }
21600   if test "$USE_NLS" = "yes"; then
21601     { $as_echo "$as_me:${as_lineno-$LINENO}: checking where the gettext function comes from" >&5
21602 $as_echo_n "checking where the gettext function comes from... " >&6; }
21603     if test "$gt_use_preinstalled_gnugettext" = "yes"; then
21604       if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
21605         gt_source="external libintl"
21606       else
21607         gt_source="libc"
21608       fi
21609     else
21610       gt_source="included intl directory"
21611     fi
21612     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_source" >&5
21613 $as_echo "$gt_source" >&6; }
21614   fi
21615
21616   if test "$USE_NLS" = "yes"; then
21617
21618     if test "$gt_use_preinstalled_gnugettext" = "yes"; then
21619       if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
21620         { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libintl" >&5
21621 $as_echo_n "checking how to link with libintl... " >&6; }
21622         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBINTL" >&5
21623 $as_echo "$LIBINTL" >&6; }
21624
21625   for element in $INCINTL; do
21626     haveit=
21627     for x in $CPPFLAGS; do
21628
21629   acl_save_prefix="$prefix"
21630   prefix="$acl_final_prefix"
21631   acl_save_exec_prefix="$exec_prefix"
21632   exec_prefix="$acl_final_exec_prefix"
21633   eval x=\"$x\"
21634   exec_prefix="$acl_save_exec_prefix"
21635   prefix="$acl_save_prefix"
21636
21637       if test "X$x" = "X$element"; then
21638         haveit=yes
21639         break
21640       fi
21641     done
21642     if test -z "$haveit"; then
21643       CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
21644     fi
21645   done
21646
21647       fi
21648
21649
21650 $as_echo "#define HAVE_GETTEXT 1" >>confdefs.h
21651
21652
21653 $as_echo "#define HAVE_DCGETTEXT 1" >>confdefs.h
21654
21655     fi
21656
21657         POSUB=po
21658   fi
21659
21660
21661             if test "$PACKAGE" = gettext-runtime || test "$PACKAGE" = gettext-tools; then
21662       BUILD_INCLUDED_LIBINTL=yes
21663     fi
21664
21665
21666
21667
21668
21669         nls_cv_header_intl=
21670     nls_cv_header_libgt=
21671
21672         DATADIRNAME=share
21673
21674
21675         INSTOBJEXT=.mo
21676
21677
21678         GENCAT=gencat
21679
21680
21681         INTLOBJS=
21682     if test "$USE_INCLUDED_LIBINTL" = yes; then
21683       INTLOBJS="\$(GETTOBJS)"
21684     fi
21685
21686
21687         INTL_LIBTOOL_SUFFIX_PREFIX=
21688
21689
21690
21691     INTLLIBS="$LIBINTL"
21692
21693
21694
21695
21696
21697
21698 fi
21699
21700 support_smartalloc=yes
21701 support_readline=yes
21702 support_lzo=yes
21703 support_conio=yes
21704 support_bat=no
21705 support_tls=no
21706 support_crypto=no
21707 support_static_tools=no
21708 support_static_fd=no
21709 support_static_sd=no
21710 support_static_dir=no
21711 support_static_cons=no
21712 support_python=no
21713 build_client_only=no
21714 build_dird=yes
21715 build_stored=yes
21716 db_backends=""
21717 batch_insert_db_backends=""
21718 support_lockmgr=no
21719
21720
21721 # Check whether --enable-bat was given.
21722 if test "${enable_bat+set}" = set; then :
21723   enableval=$enable_bat;
21724        if test x$enableval = xyes; then
21725
21726 $as_echo "#define HAVE_BAT 1" >>confdefs.h
21727
21728           support_bat=yes
21729        fi
21730
21731
21732 fi
21733
21734
21735 BAT_DIR=
21736 if test x$support_bat = xyes; then
21737    abc=`$PKGCONFIG --atleast-version=4.2 QtGui`
21738    pkg=$?
21739    if test $pkg = 0; then
21740       BAT_DIR=src/qt-console
21741    else
21742       as_fn_error $? "Unable to find Qt4 installation needed by bat" "$LINENO" 5
21743    fi
21744 fi
21745
21746 got_qwt=no
21747 QWT_INC=
21748 QWT_LDFLAGS=
21749 QWT_LIB=
21750 QWT=
21751 no_qwt=no
21752
21753
21754
21755
21756
21757
21758
21759
21760
21761 # Check whether --enable-smartalloc was given.
21762 if test "${enable_smartalloc+set}" = set; then :
21763   enableval=$enable_smartalloc;
21764        if test x$enableval = xno; then
21765           support_smartalloc=no
21766        fi
21767
21768
21769 fi
21770
21771
21772 if test x$support_smartalloc = xyes; then
21773
21774 $as_echo "#define SMARTALLOC 1" >>confdefs.h
21775
21776 fi
21777
21778 # Check whether --enable-lockmgr was given.
21779 if test "${enable_lockmgr+set}" = set; then :
21780   enableval=$enable_lockmgr;
21781        if test x$enableval = xyes; then
21782           support_lockmgr=yes
21783        fi
21784
21785
21786 fi
21787
21788
21789 if test x$support_lockmgr = xyes; then
21790
21791 $as_echo "#define _USE_LOCKMGR 1" >>confdefs.h
21792
21793 fi
21794
21795
21796 # Check whether --enable-static-tools was given.
21797 if test "${enable_static_tools+set}" = set; then :
21798   enableval=$enable_static_tools;
21799        if test x$enableval = xyes; then
21800           if test x$use_libtool = xyes; then
21801              as_fn_error $? "Libtool is enabled, not compatible with static tools,
21802   please rerun configure with --disable-libtool" "$LINENO" 5
21803           fi
21804           support_static_tools=yes
21805        fi
21806
21807
21808 fi
21809
21810
21811 TTOOL_LDFLAGS=
21812 if test x$support_static_tools = xyes; then
21813    TTOOL_LDFLAGS="-static"
21814 fi
21815
21816
21817 # Check whether --enable-static-fd was given.
21818 if test "${enable_static_fd+set}" = set; then :
21819   enableval=$enable_static_fd;
21820        if test x$enableval = xyes; then
21821           if test x$use_libtool = xyes; then
21822              as_fn_error $? "Libtool is enabled, not compatible with static tools,
21823   please rerun configure with --disable-libtool" "$LINENO" 5
21824           fi
21825           support_static_fd=yes
21826        fi
21827
21828
21829 fi
21830
21831
21832 STATIC_FD=
21833 if test x$support_static_fd = xyes; then
21834    STATIC_FD="static-bacula-fd"
21835 fi
21836
21837
21838 # Check whether --enable-static-sd was given.
21839 if test "${enable_static_sd+set}" = set; then :
21840   enableval=$enable_static_sd;
21841        if test x$enableval = xyes; then
21842           if test x$use_libtool = xyes; then
21843              as_fn_error $? "Libtool is enabled, not compatible with static tools,
21844   please rerun configure with --disable-libtool" "$LINENO" 5
21845           fi
21846           support_static_sd=yes
21847        fi
21848
21849
21850 fi
21851
21852
21853 STATIC_SD=
21854 if test x$support_static_sd = xyes; then
21855    STATIC_SD="static-bacula-sd"
21856 fi
21857
21858
21859 # Check whether --enable-static-dir was given.
21860 if test "${enable_static_dir+set}" = set; then :
21861   enableval=$enable_static_dir;
21862        if test x$enableval = xyes; then
21863           if test x$use_libtool = xyes; then
21864              as_fn_error $? "Libtool is enabled, not compatible with static tools,
21865   please rerun configure with --disable-libtool" "$LINENO" 5
21866           fi
21867           support_static_dir=yes
21868        fi
21869
21870
21871 fi
21872
21873
21874 STATIC_DIR=
21875 if test x$support_static_dir = xyes; then
21876    STATIC_DIR="static-bacula-dir"
21877 fi
21878
21879
21880 # Check whether --enable-static-cons was given.
21881 if test "${enable_static_cons+set}" = set; then :
21882   enableval=$enable_static_cons;
21883        if test x$enableval = xyes; then
21884           if test x$use_libtool = xyes; then
21885              as_fn_error $? "Libtool is enabled, not compatible with static tools,
21886   please rerun configure with --disable-libtool" "$LINENO" 5
21887           fi
21888           support_static_cons=yes
21889        fi
21890
21891
21892 fi
21893
21894
21895 STATIC_CONS=
21896 if test x$support_static_cons = xyes; then
21897    STATIC_CONS="static-bconsole"
21898 fi
21899
21900
21901 # Check whether --enable-client-only was given.
21902 if test "${enable_client_only+set}" = set; then :
21903   enableval=$enable_client_only;
21904        if test x$enableval = xyes; then
21905           build_client_only=yes
21906           db_backends="None"
21907           DB_BACKENDS="none"
21908        fi
21909
21910
21911 fi
21912
21913 if test x$build_client_only = xno; then
21914    ALL_DIRS="subdirs"
21915 else
21916    ALL_DIRS=""
21917 fi
21918
21919
21920 # Check whether --enable-build-dird was given.
21921 if test "${enable_build_dird+set}" = set; then :
21922   enableval=$enable_build_dird;
21923        if test x$enableval = xno; then
21924           build_dird=no
21925        fi
21926
21927
21928 fi
21929
21930 if test x$build_dird = xyes; then
21931    DIRD_DIR="src/dird"
21932    DIR_TOOLS="DIRTOOLS"
21933 else
21934    DIRD_DIR=""
21935    DIR_TOOLS="NODIRTOOLS"
21936 fi
21937
21938
21939
21940 # Check whether --enable-build-stored was given.
21941 if test "${enable_build_stored+set}" = set; then :
21942   enableval=$enable_build_stored;
21943       if test x$enableval = xno; then
21944          build_stored=no
21945       fi
21946
21947
21948 fi
21949
21950 if test x$build_stored = xyes; then
21951    STORED_DIR="src/stored"
21952 else
21953    STORED_DIR=""
21954 fi
21955
21956
21957 # Check whether --enable-conio was given.
21958 if test "${enable_conio+set}" = set; then :
21959   enableval=$enable_conio;
21960        if test x$enableval = xno; then
21961           support_conio=no
21962        fi
21963
21964
21965 fi
21966
21967
21968
21969 support_ipv6=yes
21970 # Check whether --enable-ipv6 was given.
21971 if test "${enable_ipv6+set}" = set; then :
21972   enableval=$enable_ipv6;
21973        if test x$enableval = xno; then
21974           support_ipv6=no
21975        fi
21976
21977
21978 fi
21979
21980
21981 if test x$support_ipv6 = xyes; then
21982     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21983 /* end confdefs.h.  */
21984  #include <sys/types.h>
21985 #include <sys/socket.h>
21986 #include <netinet/in.h>
21987 int
21988 main ()
21989 {
21990 struct sockaddr_in6 s; struct in6_addr t=in6addr_any; int i=AF_INET6; s; t.s6_addr[0] = 0;
21991   ;
21992   return 0;
21993 }
21994 _ACEOF
21995 if ac_fn_c_try_link "$LINENO"; then :
21996   support_ipv6=yes
21997 else
21998   support_ipv6=no
21999 fi
22000 rm -f core conftest.err conftest.$ac_objext \
22001     conftest$ac_exeext conftest.$ac_ext
22002 fi
22003
22004 if test x$support_ipv6 = xyes; then
22005
22006 $as_echo "#define HAVE_IPV6 1" >>confdefs.h
22007
22008 fi
22009
22010 TERM_LIB=""
22011 ac_fn_c_check_header_mongrel "$LINENO" "curses.h" "ac_cv_header_curses_h" "$ac_includes_default"
22012 if test "x$ac_cv_header_curses_h" = xyes; then :
22013
22014     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tgetent in -ltinfo" >&5
22015 $as_echo_n "checking for tgetent in -ltinfo... " >&6; }
22016 if ${ac_cv_lib_tinfo_tgetent+:} false; then :
22017   $as_echo_n "(cached) " >&6
22018 else
22019   ac_check_lib_save_LIBS=$LIBS
22020 LIBS="-ltinfo  $LIBS"
22021 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22022 /* end confdefs.h.  */
22023
22024 /* Override any GCC internal prototype to avoid an error.
22025    Use char because int might match the return type of a GCC
22026    builtin and then its argument prototype would still apply.  */
22027 #ifdef __cplusplus
22028 extern "C"
22029 #endif
22030 char tgetent ();
22031 int
22032 main ()
22033 {
22034 return tgetent ();
22035   ;
22036   return 0;
22037 }
22038 _ACEOF
22039 if ac_fn_c_try_link "$LINENO"; then :
22040   ac_cv_lib_tinfo_tgetent=yes
22041 else
22042   ac_cv_lib_tinfo_tgetent=no
22043 fi
22044 rm -f core conftest.err conftest.$ac_objext \
22045     conftest$ac_exeext conftest.$ac_ext
22046 LIBS=$ac_check_lib_save_LIBS
22047 fi
22048 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tinfo_tgetent" >&5
22049 $as_echo "$ac_cv_lib_tinfo_tgetent" >&6; }
22050 if test "x$ac_cv_lib_tinfo_tgetent" = xyes; then :
22051    TERM_LIB="-ltinfo"
22052 else
22053
22054       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tgetent in -lncurses" >&5
22055 $as_echo_n "checking for tgetent in -lncurses... " >&6; }
22056 if ${ac_cv_lib_ncurses_tgetent+:} false; then :
22057   $as_echo_n "(cached) " >&6
22058 else
22059   ac_check_lib_save_LIBS=$LIBS
22060 LIBS="-lncurses  $LIBS"
22061 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22062 /* end confdefs.h.  */
22063
22064 /* Override any GCC internal prototype to avoid an error.
22065    Use char because int might match the return type of a GCC
22066    builtin and then its argument prototype would still apply.  */
22067 #ifdef __cplusplus
22068 extern "C"
22069 #endif
22070 char tgetent ();
22071 int
22072 main ()
22073 {
22074 return tgetent ();
22075   ;
22076   return 0;
22077 }
22078 _ACEOF
22079 if ac_fn_c_try_link "$LINENO"; then :
22080   ac_cv_lib_ncurses_tgetent=yes
22081 else
22082   ac_cv_lib_ncurses_tgetent=no
22083 fi
22084 rm -f core conftest.err conftest.$ac_objext \
22085     conftest$ac_exeext conftest.$ac_ext
22086 LIBS=$ac_check_lib_save_LIBS
22087 fi
22088 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ncurses_tgetent" >&5
22089 $as_echo "$ac_cv_lib_ncurses_tgetent" >&6; }
22090 if test "x$ac_cv_lib_ncurses_tgetent" = xyes; then :
22091    TERM_LIB="-lncurses"
22092 else
22093
22094         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tgetent in -ltermcap" >&5
22095 $as_echo_n "checking for tgetent in -ltermcap... " >&6; }
22096 if ${ac_cv_lib_termcap_tgetent+:} false; then :
22097   $as_echo_n "(cached) " >&6
22098 else
22099   ac_check_lib_save_LIBS=$LIBS
22100 LIBS="-ltermcap  $LIBS"
22101 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22102 /* end confdefs.h.  */
22103
22104 /* Override any GCC internal prototype to avoid an error.
22105    Use char because int might match the return type of a GCC
22106    builtin and then its argument prototype would still apply.  */
22107 #ifdef __cplusplus
22108 extern "C"
22109 #endif
22110 char tgetent ();
22111 int
22112 main ()
22113 {
22114 return tgetent ();
22115   ;
22116   return 0;
22117 }
22118 _ACEOF
22119 if ac_fn_c_try_link "$LINENO"; then :
22120   ac_cv_lib_termcap_tgetent=yes
22121 else
22122   ac_cv_lib_termcap_tgetent=no
22123 fi
22124 rm -f core conftest.err conftest.$ac_objext \
22125     conftest$ac_exeext conftest.$ac_ext
22126 LIBS=$ac_check_lib_save_LIBS
22127 fi
22128 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_termcap_tgetent" >&5
22129 $as_echo "$ac_cv_lib_termcap_tgetent" >&6; }
22130 if test "x$ac_cv_lib_termcap_tgetent" = xyes; then :
22131    TERM_LIB="-ltermcap"
22132 fi
22133
22134
22135 fi
22136
22137
22138 fi
22139
22140
22141 else
22142     for ac_header in curses.h
22143 do :
22144   ac_fn_c_check_header_mongrel "$LINENO" "curses.h" "ac_cv_header_curses_h" "$ac_includes_default"
22145 if test "x$ac_cv_header_curses_h" = xyes; then :
22146   cat >>confdefs.h <<_ACEOF
22147 #define HAVE_CURSES_H 1
22148 _ACEOF
22149
22150 fi
22151
22152 done
22153
22154      ac_fn_c_check_header_mongrel "$LINENO" "term.h" "ac_cv_header_term_h" "$ac_includes_default"
22155 if test "x$ac_cv_header_term_h" = xyes; then :
22156    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tgetent in -lcurses" >&5
22157 $as_echo_n "checking for tgetent in -lcurses... " >&6; }
22158 if ${ac_cv_lib_curses_tgetent+:} false; then :
22159   $as_echo_n "(cached) " >&6
22160 else
22161   ac_check_lib_save_LIBS=$LIBS
22162 LIBS="-lcurses  $LIBS"
22163 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22164 /* end confdefs.h.  */
22165
22166 /* Override any GCC internal prototype to avoid an error.
22167    Use char because int might match the return type of a GCC
22168    builtin and then its argument prototype would still apply.  */
22169 #ifdef __cplusplus
22170 extern "C"
22171 #endif
22172 char tgetent ();
22173 int
22174 main ()
22175 {
22176 return tgetent ();
22177   ;
22178   return 0;
22179 }
22180 _ACEOF
22181 if ac_fn_c_try_link "$LINENO"; then :
22182   ac_cv_lib_curses_tgetent=yes
22183 else
22184   ac_cv_lib_curses_tgetent=no
22185 fi
22186 rm -f core conftest.err conftest.$ac_objext \
22187     conftest$ac_exeext conftest.$ac_ext
22188 LIBS=$ac_check_lib_save_LIBS
22189 fi
22190 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_curses_tgetent" >&5
22191 $as_echo "$ac_cv_lib_curses_tgetent" >&6; }
22192 if test "x$ac_cv_lib_curses_tgetent" = xyes; then :
22193    TERM_LIB="-lcurses"
22194 fi
22195
22196
22197 fi
22198
22199
22200
22201 fi
22202
22203
22204
22205
22206 got_conio="no"
22207 if test x$support_conio = xyes; then
22208    if test x$TERM_LIB != x; then
22209       CONS_LIBS=$TERM_LIB
22210       CONS_OBJ="conio.o"
22211       CONS_SRC="conio.c"
22212       got_conio="yes"
22213       support_readline=no
22214
22215 $as_echo "#define HAVE_CONIO 1" >>confdefs.h
22216
22217    else
22218       echo " "; echo "Required libraries not found. CONIO turned off ..."; echo " "
22219    fi
22220 fi
22221
22222
22223 # Check whether --enable-readline was given.
22224 if test "${enable_readline+set}" = set; then :
22225   enableval=$enable_readline;
22226        if test x$enableval = xno; then
22227           support_readline=no
22228        fi
22229
22230
22231 fi
22232
22233
22234 got_readline="no"
22235 READLINE_SRC=
22236 if test x$support_readline = xyes; then
22237
22238 # Check whether --with-readline was given.
22239 if test "${with_readline+set}" = set; then :
22240   withval=$with_readline;
22241           case "$with_readline" in
22242           no)
22243              :
22244              ;;
22245           yes|*)
22246              if test -f ${with_readline}/readline.h; then
22247                 CONS_INC="-I${with_readline}"
22248                 CONS_LDFLAGS="-L$with_readline"
22249              elif test -f ${with_readline}/include/readline/readline.h; then
22250                 CONS_INC="-I${with_readline}/include/readline"
22251                 CONS_LDFLAGS="-L${with_readline}/lib"
22252                 with_readline="${with_readline}/include/readline"
22253              else
22254                 with_readline="/usr/include/readline"
22255              fi
22256
22257              as_ac_Header=`$as_echo "ac_cv_header_${with_readline}/readline.h" | $as_tr_sh`
22258 ac_fn_c_check_header_mongrel "$LINENO" "${with_readline}/readline.h" "$as_ac_Header" "$ac_includes_default"
22259 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
22260
22261
22262 $as_echo "#define HAVE_READLINE 1" >>confdefs.h
22263
22264                     CONS_LIBS="-lreadline -lhistory ${TERM_LIB}"
22265                     got_readline="yes"
22266
22267 else
22268
22269                     echo " "
22270                     echo "readline.h not found. readline turned off ..."
22271                     echo " "
22272
22273
22274 fi
22275
22276
22277              ;;
22278           esac
22279
22280 else
22281
22282                  ac_fn_c_check_header_mongrel "$LINENO" "/usr/include/readline/readline.h" "ac_cv_header__usr_include_readline_readline_h" "$ac_includes_default"
22283 if test "x$ac_cv_header__usr_include_readline_readline_h" = xyes; then :
22284
22285
22286 $as_echo "#define HAVE_READLINE 1" >>confdefs.h
22287
22288                 got_readline="yes"
22289                 CONS_INC="-I/usr/include/readline"
22290                 CONS_LIBS="-lreadline ${TERM_LIB}"
22291
22292 else
22293
22294                                 as_ac_Header=`$as_echo "ac_cv_header_${TOP_DIR}/depkgs/readline/readline.h" | $as_tr_sh`
22295 ac_fn_c_check_header_mongrel "$LINENO" "${TOP_DIR}/depkgs/readline/readline.h" "$as_ac_Header" "$ac_includes_default"
22296 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
22297
22298
22299 $as_echo "#define HAVE_READLINE 1" >>confdefs.h
22300
22301                         got_readline="yes"
22302                         CONS_INC="-I${TOP_DIR}/depkgs/readline"
22303                         CONS_LIBS="-lreadline -lhistory ${TERM_LIB}"
22304                         CONS_LDFLAGS="-L${TOP_DIR}/depkgs/readline"
22305                         PRTREADLINE_SRC="${TOP_DIR}/depkgs/readline"
22306
22307 else
22308
22309                         echo " "
22310                         echo "readline.h not found. readline turned off ..."
22311                         echo " "
22312
22313
22314 fi
22315
22316
22317
22318
22319 fi
22320
22321
22322
22323
22324 fi
22325
22326 fi
22327
22328
22329
22330
22331
22332
22333
22334
22335 MAKE_SHELL=/bin/sh
22336
22337 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat file-mode macros are broken" >&5
22338 $as_echo_n "checking whether stat file-mode macros are broken... " >&6; }
22339 if ${ac_cv_header_stat_broken+:} false; then :
22340   $as_echo_n "(cached) " >&6
22341 else
22342   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22343 /* end confdefs.h.  */
22344 #include <sys/types.h>
22345 #include <sys/stat.h>
22346
22347 #if defined S_ISBLK && defined S_IFDIR
22348 extern char c1[S_ISBLK (S_IFDIR) ? -1 : 1];
22349 #endif
22350
22351 #if defined S_ISBLK && defined S_IFCHR
22352 extern char c2[S_ISBLK (S_IFCHR) ? -1 : 1];
22353 #endif
22354
22355 #if defined S_ISLNK && defined S_IFREG
22356 extern char c3[S_ISLNK (S_IFREG) ? -1 : 1];
22357 #endif
22358
22359 #if defined S_ISSOCK && defined S_IFREG
22360 extern char c4[S_ISSOCK (S_IFREG) ? -1 : 1];
22361 #endif
22362
22363 _ACEOF
22364 if ac_fn_c_try_compile "$LINENO"; then :
22365   ac_cv_header_stat_broken=no
22366 else
22367   ac_cv_header_stat_broken=yes
22368 fi
22369 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22370 fi
22371 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stat_broken" >&5
22372 $as_echo "$ac_cv_header_stat_broken" >&6; }
22373 if test $ac_cv_header_stat_broken = yes; then
22374
22375 $as_echo "#define STAT_MACROS_BROKEN 1" >>confdefs.h
22376
22377 fi
22378
22379 ac_header_dirent=no
22380 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
22381   as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
22382 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_hdr that defines DIR" >&5
22383 $as_echo_n "checking for $ac_hdr that defines DIR... " >&6; }
22384 if eval \${$as_ac_Header+:} false; then :
22385   $as_echo_n "(cached) " >&6
22386 else
22387   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22388 /* end confdefs.h.  */
22389 #include <sys/types.h>
22390 #include <$ac_hdr>
22391
22392 int
22393 main ()
22394 {
22395 if ((DIR *) 0)
22396 return 0;
22397   ;
22398   return 0;
22399 }
22400 _ACEOF
22401 if ac_fn_c_try_compile "$LINENO"; then :
22402   eval "$as_ac_Header=yes"
22403 else
22404   eval "$as_ac_Header=no"
22405 fi
22406 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22407 fi
22408 eval ac_res=\$$as_ac_Header
22409                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
22410 $as_echo "$ac_res" >&6; }
22411 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
22412   cat >>confdefs.h <<_ACEOF
22413 #define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
22414 _ACEOF
22415
22416 ac_header_dirent=$ac_hdr; break
22417 fi
22418
22419 done
22420 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
22421 if test $ac_header_dirent = dirent.h; then
22422   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
22423 $as_echo_n "checking for library containing opendir... " >&6; }
22424 if ${ac_cv_search_opendir+:} false; then :
22425   $as_echo_n "(cached) " >&6
22426 else
22427   ac_func_search_save_LIBS=$LIBS
22428 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22429 /* end confdefs.h.  */
22430
22431 /* Override any GCC internal prototype to avoid an error.
22432    Use char because int might match the return type of a GCC
22433    builtin and then its argument prototype would still apply.  */
22434 #ifdef __cplusplus
22435 extern "C"
22436 #endif
22437 char opendir ();
22438 int
22439 main ()
22440 {
22441 return opendir ();
22442   ;
22443   return 0;
22444 }
22445 _ACEOF
22446 for ac_lib in '' dir; do
22447   if test -z "$ac_lib"; then
22448     ac_res="none required"
22449   else
22450     ac_res=-l$ac_lib
22451     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
22452   fi
22453   if ac_fn_c_try_link "$LINENO"; then :
22454   ac_cv_search_opendir=$ac_res
22455 fi
22456 rm -f core conftest.err conftest.$ac_objext \
22457     conftest$ac_exeext
22458   if ${ac_cv_search_opendir+:} false; then :
22459   break
22460 fi
22461 done
22462 if ${ac_cv_search_opendir+:} false; then :
22463
22464 else
22465   ac_cv_search_opendir=no
22466 fi
22467 rm conftest.$ac_ext
22468 LIBS=$ac_func_search_save_LIBS
22469 fi
22470 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
22471 $as_echo "$ac_cv_search_opendir" >&6; }
22472 ac_res=$ac_cv_search_opendir
22473 if test "$ac_res" != no; then :
22474   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
22475
22476 fi
22477
22478 else
22479   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
22480 $as_echo_n "checking for library containing opendir... " >&6; }
22481 if ${ac_cv_search_opendir+:} false; then :
22482   $as_echo_n "(cached) " >&6
22483 else
22484   ac_func_search_save_LIBS=$LIBS
22485 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22486 /* end confdefs.h.  */
22487
22488 /* Override any GCC internal prototype to avoid an error.
22489    Use char because int might match the return type of a GCC
22490    builtin and then its argument prototype would still apply.  */
22491 #ifdef __cplusplus
22492 extern "C"
22493 #endif
22494 char opendir ();
22495 int
22496 main ()
22497 {
22498 return opendir ();
22499   ;
22500   return 0;
22501 }
22502 _ACEOF
22503 for ac_lib in '' x; do
22504   if test -z "$ac_lib"; then
22505     ac_res="none required"
22506   else
22507     ac_res=-l$ac_lib
22508     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
22509   fi
22510   if ac_fn_c_try_link "$LINENO"; then :
22511   ac_cv_search_opendir=$ac_res
22512 fi
22513 rm -f core conftest.err conftest.$ac_objext \
22514     conftest$ac_exeext
22515   if ${ac_cv_search_opendir+:} false; then :
22516   break
22517 fi
22518 done
22519 if ${ac_cv_search_opendir+:} false; then :
22520
22521 else
22522   ac_cv_search_opendir=no
22523 fi
22524 rm conftest.$ac_ext
22525 LIBS=$ac_func_search_save_LIBS
22526 fi
22527 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
22528 $as_echo "$ac_cv_search_opendir" >&6; }
22529 ac_res=$ac_cv_search_opendir
22530 if test "$ac_res" != no; then :
22531   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
22532
22533 fi
22534
22535 fi
22536
22537 for ac_func in strcasecmp select setenv putenv tcgetattr
22538 do :
22539   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
22540 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
22541 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
22542   cat >>confdefs.h <<_ACEOF
22543 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
22544 _ACEOF
22545
22546 fi
22547 done
22548
22549 for ac_func in lstat lchown lchmod futimes fchmod fchown
22550 do :
22551   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
22552 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
22553 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
22554   cat >>confdefs.h <<_ACEOF
22555 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
22556 _ACEOF
22557
22558 fi
22559 done
22560
22561 for ac_func in nanosleep nl_langinfo
22562 do :
22563   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
22564 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
22565 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
22566   cat >>confdefs.h <<_ACEOF
22567 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
22568 _ACEOF
22569
22570 fi
22571 done
22572
22573 for ac_header in varargs.h
22574 do :
22575   ac_fn_c_check_header_mongrel "$LINENO" "varargs.h" "ac_cv_header_varargs_h" "$ac_includes_default"
22576 if test "x$ac_cv_header_varargs_h" = xyes; then :
22577   cat >>confdefs.h <<_ACEOF
22578 #define HAVE_VARARGS_H 1
22579 _ACEOF
22580
22581 fi
22582
22583 done
22584
22585
22586
22587 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Python support" >&5
22588 $as_echo_n "checking for Python support... " >&6; }
22589
22590 # Check whether --with-python was given.
22591 if test "${with_python+set}" = set; then :
22592   withval=$with_python;
22593        PYTHON_INCDIR=
22594        PYTHON_LIBS=
22595        if test "$withval" != "no"; then
22596           if test "$withval" = "yes"; then
22597              if test -e /usr/bin/python-config ; then
22598                 PYTHON_INCDIR=`/usr/bin/python-config --includes`
22599                 PYTHON_LIBS=`/usr/bin/python-config --libs`
22600              else
22601                 for python_root in /usr /usr/local /usr/sfw; do
22602                    for ver in python2.2 python2.3 python2.4 python2.5 python2.6 python2.7 python3; do
22603                       if test -f $python_root/include/${ver}/Python.h; then
22604                          PYTHON_INCDIR=-I$python_root/include/${ver}
22605                          if test -d $python_root/lib64/${ver}/config; then
22606                             PYTHON_LIBS="-L$python_root/lib64/${ver}/config -l${ver}"
22607                          else
22608                             PYTHON_LIBS="-L$python_root/lib/${ver}/config -l${ver}"
22609                          fi
22610                          break
22611                       fi
22612                    done
22613                 done
22614
22615                 if test x$PYTHON_INCDIR = x; then
22616                    if test -f $prefix/include/Python.h; then
22617                       PYTHON_INCDIR=-I$prefix/include
22618                       if test -d $prefix/lib64/config; then
22619                          PYTHON_LIBS="-L$prefix/lib64/config -lpython"
22620                       else
22621                          PYTHON_LIBS="-L$prefix/lib/config -lpython"
22622                       fi
22623                    else
22624                       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22625 $as_echo "no" >&6; }
22626                       as_fn_error $? "Unable to find Python.h in standard locations" "$LINENO" 5
22627                    fi
22628                 fi
22629              fi
22630           else
22631              if test -e $withval/bin/python-config ; then
22632                 PYTHON_INCDIR=`$withval/bin/python-config --includes`
22633                 PYTHON_LIBS=`$withval/bin/python-config --libs`
22634              elif test -f $withval/Python.h; then
22635                 PYTHON_INCDIR=-I$withval
22636                 PYTHON_LIBS="-L$withval/config -lpython"
22637              elif test -f $withval/include/Python.h; then
22638                 PYTHON_INCDIR=-I$withval/include
22639                 if test -d $withval/lib64/config; then
22640                    PYTHON_LIBS="-L$withval/lib64/config -lpython"
22641                 else
22642                    PYTHON_LIBS="-L$withval/lib/config -lpython"
22643                 fi
22644              elif test -f $withval/include/python/Python.h; then
22645                 PYTHON_INCDIR=-I$withval/include/python
22646                 if test -d $withval/lib64/python/config; then
22647                    PYTHON_LIBS="-L$withval/lib64/python/config -lpython"
22648                 else
22649                    PYTHON_LIBS="-L$withval/lib/python/config -lpython"
22650                 fi
22651              else
22652                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22653 $as_echo "no" >&6; }
22654                 as_fn_error $? "Invalid Python directory $withval - unable to find Python.h under $withval" "$LINENO" 5
22655              fi
22656           fi
22657
22658           $as_echo "#define HAVE_PYTHON 1" >>confdefs.h
22659
22660           { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22661 $as_echo "yes" >&6; }
22662           support_python=yes
22663           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for more Python libs" >&5
22664 $as_echo "$as_me: checking for more Python libs" >&6;}
22665           saved_LIBS="$LIBS"; LIBS=
22666           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing shm_open" >&5
22667 $as_echo_n "checking for library containing shm_open... " >&6; }
22668 if ${ac_cv_search_shm_open+:} false; then :
22669   $as_echo_n "(cached) " >&6
22670 else
22671   ac_func_search_save_LIBS=$LIBS
22672 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22673 /* end confdefs.h.  */
22674
22675 /* Override any GCC internal prototype to avoid an error.
22676    Use char because int might match the return type of a GCC
22677    builtin and then its argument prototype would still apply.  */
22678 #ifdef __cplusplus
22679 extern "C"
22680 #endif
22681 char shm_open ();
22682 int
22683 main ()
22684 {
22685 return shm_open ();
22686   ;
22687   return 0;
22688 }
22689 _ACEOF
22690 for ac_lib in '' rt; do
22691   if test -z "$ac_lib"; then
22692     ac_res="none required"
22693   else
22694     ac_res=-l$ac_lib
22695     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
22696   fi
22697   if ac_fn_c_try_link "$LINENO"; then :
22698   ac_cv_search_shm_open=$ac_res
22699 fi
22700 rm -f core conftest.err conftest.$ac_objext \
22701     conftest$ac_exeext
22702   if ${ac_cv_search_shm_open+:} false; then :
22703   break
22704 fi
22705 done
22706 if ${ac_cv_search_shm_open+:} false; then :
22707
22708 else
22709   ac_cv_search_shm_open=no
22710 fi
22711 rm conftest.$ac_ext
22712 LIBS=$ac_func_search_save_LIBS
22713 fi
22714 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_shm_open" >&5
22715 $as_echo "$ac_cv_search_shm_open" >&6; }
22716 ac_res=$ac_cv_search_shm_open
22717 if test "$ac_res" != no; then :
22718   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
22719
22720 fi
22721
22722           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for openpty in -lutil" >&5
22723 $as_echo_n "checking for openpty in -lutil... " >&6; }
22724 if ${ac_cv_lib_util_openpty+:} false; then :
22725   $as_echo_n "(cached) " >&6
22726 else
22727   ac_check_lib_save_LIBS=$LIBS
22728 LIBS="-lutil  $LIBS"
22729 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22730 /* end confdefs.h.  */
22731
22732 /* Override any GCC internal prototype to avoid an error.
22733    Use char because int might match the return type of a GCC
22734    builtin and then its argument prototype would still apply.  */
22735 #ifdef __cplusplus
22736 extern "C"
22737 #endif
22738 char openpty ();
22739 int
22740 main ()
22741 {
22742 return openpty ();
22743   ;
22744   return 0;
22745 }
22746 _ACEOF
22747 if ac_fn_c_try_link "$LINENO"; then :
22748   ac_cv_lib_util_openpty=yes
22749 else
22750   ac_cv_lib_util_openpty=no
22751 fi
22752 rm -f core conftest.err conftest.$ac_objext \
22753     conftest$ac_exeext conftest.$ac_ext
22754 LIBS=$ac_check_lib_save_LIBS
22755 fi
22756 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_util_openpty" >&5
22757 $as_echo "$ac_cv_lib_util_openpty" >&6; }
22758 if test "x$ac_cv_lib_util_openpty" = xyes; then :
22759   cat >>confdefs.h <<_ACEOF
22760 #define HAVE_LIBUTIL 1
22761 _ACEOF
22762
22763   LIBS="-lutil $LIBS"
22764
22765 fi
22766
22767           PYTHON_LIBS="$PYTHON_LIBS $LIBS"
22768           LIBS="$saved_LIBS"
22769        else
22770           { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22771 $as_echo "no" >&6; }
22772        fi
22773
22774 else
22775
22776        { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22777 $as_echo "no" >&6; }
22778
22779
22780 fi
22781
22782
22783
22784
22785 ac_fn_c_check_func "$LINENO" "socket" "ac_cv_func_socket"
22786 if test "x$ac_cv_func_socket" = xyes; then :
22787   { $as_echo "$as_me:${as_lineno-$LINENO}: result: using libc's socket" >&5
22788 $as_echo "using libc's socket" >&6; }
22789 else
22790   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socket in -lxnet" >&5
22791 $as_echo_n "checking for socket in -lxnet... " >&6; }
22792 if ${ac_cv_lib_xnet_socket+:} false; then :
22793   $as_echo_n "(cached) " >&6
22794 else
22795   ac_check_lib_save_LIBS=$LIBS
22796 LIBS="-lxnet  $LIBS"
22797 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22798 /* end confdefs.h.  */
22799
22800 /* Override any GCC internal prototype to avoid an error.
22801    Use char because int might match the return type of a GCC
22802    builtin and then its argument prototype would still apply.  */
22803 #ifdef __cplusplus
22804 extern "C"
22805 #endif
22806 char socket ();
22807 int
22808 main ()
22809 {
22810 return socket ();
22811   ;
22812   return 0;
22813 }
22814 _ACEOF
22815 if ac_fn_c_try_link "$LINENO"; then :
22816   ac_cv_lib_xnet_socket=yes
22817 else
22818   ac_cv_lib_xnet_socket=no
22819 fi
22820 rm -f core conftest.err conftest.$ac_objext \
22821     conftest$ac_exeext conftest.$ac_ext
22822 LIBS=$ac_check_lib_save_LIBS
22823 fi
22824 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_xnet_socket" >&5
22825 $as_echo "$ac_cv_lib_xnet_socket" >&6; }
22826 if test "x$ac_cv_lib_xnet_socket" = xyes; then :
22827   cat >>confdefs.h <<_ACEOF
22828 #define HAVE_LIBXNET 1
22829 _ACEOF
22830
22831   LIBS="-lxnet $LIBS"
22832
22833 fi
22834
22835     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socket in -lsocket" >&5
22836 $as_echo_n "checking for socket in -lsocket... " >&6; }
22837 if ${ac_cv_lib_socket_socket+:} false; then :
22838   $as_echo_n "(cached) " >&6
22839 else
22840   ac_check_lib_save_LIBS=$LIBS
22841 LIBS="-lsocket  $LIBS"
22842 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22843 /* end confdefs.h.  */
22844
22845 /* Override any GCC internal prototype to avoid an error.
22846    Use char because int might match the return type of a GCC
22847    builtin and then its argument prototype would still apply.  */
22848 #ifdef __cplusplus
22849 extern "C"
22850 #endif
22851 char socket ();
22852 int
22853 main ()
22854 {
22855 return socket ();
22856   ;
22857   return 0;
22858 }
22859 _ACEOF
22860 if ac_fn_c_try_link "$LINENO"; then :
22861   ac_cv_lib_socket_socket=yes
22862 else
22863   ac_cv_lib_socket_socket=no
22864 fi
22865 rm -f core conftest.err conftest.$ac_objext \
22866     conftest$ac_exeext conftest.$ac_ext
22867 LIBS=$ac_check_lib_save_LIBS
22868 fi
22869 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_socket" >&5
22870 $as_echo "$ac_cv_lib_socket_socket" >&6; }
22871 if test "x$ac_cv_lib_socket_socket" = xyes; then :
22872   cat >>confdefs.h <<_ACEOF
22873 #define HAVE_LIBSOCKET 1
22874 _ACEOF
22875
22876   LIBS="-lsocket $LIBS"
22877
22878 fi
22879
22880     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socket in -linet" >&5
22881 $as_echo_n "checking for socket in -linet... " >&6; }
22882 if ${ac_cv_lib_inet_socket+:} false; then :
22883   $as_echo_n "(cached) " >&6
22884 else
22885   ac_check_lib_save_LIBS=$LIBS
22886 LIBS="-linet  $LIBS"
22887 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22888 /* end confdefs.h.  */
22889
22890 /* Override any GCC internal prototype to avoid an error.
22891    Use char because int might match the return type of a GCC
22892    builtin and then its argument prototype would still apply.  */
22893 #ifdef __cplusplus
22894 extern "C"
22895 #endif
22896 char socket ();
22897 int
22898 main ()
22899 {
22900 return socket ();
22901   ;
22902   return 0;
22903 }
22904 _ACEOF
22905 if ac_fn_c_try_link "$LINENO"; then :
22906   ac_cv_lib_inet_socket=yes
22907 else
22908   ac_cv_lib_inet_socket=no
22909 fi
22910 rm -f core conftest.err conftest.$ac_objext \
22911     conftest$ac_exeext conftest.$ac_ext
22912 LIBS=$ac_check_lib_save_LIBS
22913 fi
22914 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_inet_socket" >&5
22915 $as_echo "$ac_cv_lib_inet_socket" >&6; }
22916 if test "x$ac_cv_lib_inet_socket" = xyes; then :
22917   cat >>confdefs.h <<_ACEOF
22918 #define HAVE_LIBINET 1
22919 _ACEOF
22920
22921   LIBS="-linet $LIBS"
22922
22923 fi
22924
22925 fi
22926
22927
22928 TCPW_MSG="no"
22929 WRAPLIBS=""
22930
22931 # Check whether --with-tcp-wrappers was given.
22932 if test "${with_tcp_wrappers+set}" = set; then :
22933   withval=$with_tcp_wrappers;
22934        if test "x$withval" != "xno" ; then
22935           saved_LIBS="$LIBS"
22936           LIBS="$saved_LIBS -lwrap"
22937           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing nanosleep" >&5
22938 $as_echo_n "checking for library containing nanosleep... " >&6; }
22939 if ${ac_cv_search_nanosleep+:} false; then :
22940   $as_echo_n "(cached) " >&6
22941 else
22942   ac_func_search_save_LIBS=$LIBS
22943 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22944 /* end confdefs.h.  */
22945
22946 /* Override any GCC internal prototype to avoid an error.
22947    Use char because int might match the return type of a GCC
22948    builtin and then its argument prototype would still apply.  */
22949 #ifdef __cplusplus
22950 extern "C"
22951 #endif
22952 char nanosleep ();
22953 int
22954 main ()
22955 {
22956 return nanosleep ();
22957   ;
22958   return 0;
22959 }
22960 _ACEOF
22961 for ac_lib in '' rt; do
22962   if test -z "$ac_lib"; then
22963     ac_res="none required"
22964   else
22965     ac_res=-l$ac_lib
22966     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
22967   fi
22968   if ac_fn_c_try_link "$LINENO"; then :
22969   ac_cv_search_nanosleep=$ac_res
22970 fi
22971 rm -f core conftest.err conftest.$ac_objext \
22972     conftest$ac_exeext
22973   if ${ac_cv_search_nanosleep+:} false; then :
22974   break
22975 fi
22976 done
22977 if ${ac_cv_search_nanosleep+:} false; then :
22978
22979 else
22980   ac_cv_search_nanosleep=no
22981 fi
22982 rm conftest.$ac_ext
22983 LIBS=$ac_func_search_save_LIBS
22984 fi
22985 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_nanosleep" >&5
22986 $as_echo "$ac_cv_search_nanosleep" >&6; }
22987 ac_res=$ac_cv_search_nanosleep
22988 if test "$ac_res" != no; then :
22989   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
22990
22991 fi
22992
22993           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libwrap" >&5
22994 $as_echo_n "checking for libwrap... " >&6; }
22995           cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22996 /* end confdefs.h.  */
22997
22998                #include <sys/types.h>
22999                #include <tcpd.h>
23000                int deny_severity = 0;
23001                int allow_severity = 0;
23002                struct request_info *req;
23003
23004 int
23005 main ()
23006 {
23007
23008                 hosts_access(req);
23009
23010   ;
23011   return 0;
23012 }
23013 _ACEOF
23014 if ac_fn_c_try_link "$LINENO"; then :
23015
23016                  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
23017 $as_echo "yes" >&6; }
23018
23019 $as_echo "#define HAVE_LIBWRAP 1" >>confdefs.h
23020
23021                  TCPW_MSG="yes"
23022                  LIBS="$saved_LIBS"
23023                  WRAPLIBS="-lwrap"
23024
23025 else
23026
23027                  LIBS="$saved_LIBS -lwrap -lnsl"
23028                  WRAPLIBS="$saved_LIBS -lwrap -lnsl"
23029                  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23030 /* end confdefs.h.  */
23031
23032                        #include <sys/types.h>
23033                        #include <tcpd.h>
23034                        int deny_severity = 0;
23035                        int allow_severity = 0;
23036                        struct request_info *req;
23037
23038 int
23039 main ()
23040 {
23041
23042                        hosts_access(req);
23043
23044   ;
23045   return 0;
23046 }
23047 _ACEOF
23048 if ac_fn_c_try_link "$LINENO"; then :
23049
23050                       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
23051 $as_echo "yes" >&6; }
23052
23053 $as_echo "#define HAVE_LIBWRAP 1" >>confdefs.h
23054
23055                       TCPW_MSG="yes"
23056                       LIBS="$saved_LIBS"
23057                       WRAPLIBS="-lwrap"
23058
23059 else
23060
23061                       as_fn_error $? "*** libwrap missing" "$LINENO" 5
23062
23063
23064 fi
23065 rm -f core conftest.err conftest.$ac_objext \
23066     conftest$ac_exeext conftest.$ac_ext
23067
23068
23069 fi
23070 rm -f core conftest.err conftest.$ac_objext \
23071     conftest$ac_exeext conftest.$ac_ext
23072        fi
23073
23074
23075 fi
23076
23077
23078
23079 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OpenSSL" >&5
23080 $as_echo_n "checking for OpenSSL... " >&6; }
23081
23082 # Check whether --with-openssl was given.
23083 if test "${with_openssl+set}" = set; then :
23084   withval=$with_openssl;
23085         with_openssl_directory=${withval}
23086
23087
23088 fi
23089
23090
23091 if test "x$with_openssl_directory" != "xno"; then
23092    OPENSSL_LIBS="-lssl -lcrypto"
23093    OPENSSL_INC=""
23094
23095    if test "x$with_openssl_directory" != "xyes" && test x"${with_openssl_directory}" != "x"; then
23096       #
23097       # Make sure the $with_openssl_directory also makes sense
23098       #
23099       if test -d "$with_openssl_directory/lib" -a -d "$with_openssl_directory/include"; then
23100          OPENSSL_LIBS="-L$with_openssl_directory/lib $OPENSSL_LIBS"
23101          OPENSSL_INC="-I$with_openssl_directory/include $OPENSSL_INC"
23102       fi
23103    fi
23104
23105    saved_LIBS="${LIBS}"
23106    saved_CFLAGS="${CFLAGS}"
23107    LIBS="${saved_LIBS} ${OPENSSL_LIBS}"
23108    CFLAGS="${saved_CFLAGS} ${OPENSSL_INC}"
23109
23110    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23111 /* end confdefs.h.  */
23112
23113           #include <openssl/ssl.h>
23114
23115 int
23116 main ()
23117 {
23118
23119            CRYPTO_set_id_callback(NULL);
23120
23121   ;
23122   return 0;
23123 }
23124 _ACEOF
23125 if ac_fn_c_try_link "$LINENO"; then :
23126
23127           support_tls="yes"
23128           support_crypto="yes"
23129
23130 else
23131
23132           support_tls="no"
23133           support_crypto="no"
23134
23135
23136 fi
23137 rm -f core conftest.err conftest.$ac_objext \
23138     conftest$ac_exeext conftest.$ac_ext
23139
23140    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23141 /* end confdefs.h.  */
23142
23143           #include <openssl/evp.h>
23144
23145 int
23146 main ()
23147 {
23148
23149           EVP_sha512();
23150
23151   ;
23152   return 0;
23153 }
23154 _ACEOF
23155 if ac_fn_c_try_link "$LINENO"; then :
23156
23157           ac_cv_openssl_sha2="yes"
23158
23159 else
23160
23161           ac_cv_openssl_sha2="no"
23162
23163
23164 fi
23165 rm -f core conftest.err conftest.$ac_objext \
23166     conftest$ac_exeext conftest.$ac_ext
23167
23168                cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23169 /* end confdefs.h.  */
23170
23171           #include <openssl/evp.h>
23172
23173 int
23174 main ()
23175 {
23176
23177           EVP_aes_192_cbc();
23178
23179   ;
23180   return 0;
23181 }
23182 _ACEOF
23183 if ac_fn_c_try_link "$LINENO"; then :
23184
23185           ac_cv_openssl_export="no"
23186
23187 else
23188
23189           ac_cv_openssl_export="yes"
23190
23191
23192 fi
23193 rm -f core conftest.err conftest.$ac_objext \
23194     conftest$ac_exeext conftest.$ac_ext
23195
23196    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $support_tls" >&5
23197 $as_echo "$support_tls" >&6; }
23198    if test "$support_tls" = "yes"; then
23199
23200 $as_echo "#define HAVE_OPENSSL 1" >>confdefs.h
23201
23202
23203 $as_echo "#define HAVE_TLS 1" >>confdefs.h
23204
23205
23206 $as_echo "#define HAVE_CRYPTO 1" >>confdefs.h
23207
23208    fi
23209
23210    if test "$ac_cv_openssl_sha2" = "yes"; then
23211
23212 $as_echo "#define HAVE_SHA2 1" >>confdefs.h
23213
23214    fi
23215
23216    if test "$ac_cv_openssl_export" = "yes"; then
23217
23218 $as_echo "#define HAVE_OPENSSL_EXPORT_LIBRARY 1" >>confdefs.h
23219
23220    fi
23221
23222    if test "$support_crypto" = "yes"; then
23223       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EVP_PKEY_encrypt_old in -lcrypto" >&5
23224 $as_echo_n "checking for EVP_PKEY_encrypt_old in -lcrypto... " >&6; }
23225 if ${ac_cv_lib_crypto_EVP_PKEY_encrypt_old+:} false; then :
23226   $as_echo_n "(cached) " >&6
23227 else
23228   ac_check_lib_save_LIBS=$LIBS
23229 LIBS="-lcrypto  $LIBS"
23230 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23231 /* end confdefs.h.  */
23232
23233 /* Override any GCC internal prototype to avoid an error.
23234    Use char because int might match the return type of a GCC
23235    builtin and then its argument prototype would still apply.  */
23236 #ifdef __cplusplus
23237 extern "C"
23238 #endif
23239 char EVP_PKEY_encrypt_old ();
23240 int
23241 main ()
23242 {
23243 return EVP_PKEY_encrypt_old ();
23244   ;
23245   return 0;
23246 }
23247 _ACEOF
23248 if ac_fn_c_try_link "$LINENO"; then :
23249   ac_cv_lib_crypto_EVP_PKEY_encrypt_old=yes
23250 else
23251   ac_cv_lib_crypto_EVP_PKEY_encrypt_old=no
23252 fi
23253 rm -f core conftest.err conftest.$ac_objext \
23254     conftest$ac_exeext conftest.$ac_ext
23255 LIBS=$ac_check_lib_save_LIBS
23256 fi
23257 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypto_EVP_PKEY_encrypt_old" >&5
23258 $as_echo "$ac_cv_lib_crypto_EVP_PKEY_encrypt_old" >&6; }
23259 if test "x$ac_cv_lib_crypto_EVP_PKEY_encrypt_old" = xyes; then :
23260
23261 $as_echo "#define HAVE_OPENSSLv1 1" >>confdefs.h
23262
23263 fi
23264
23265    fi
23266
23267    LIBS="${saved_LIBS}"
23268    CFLAGS="${saved_CFLAGS}"
23269 else
23270    support_tls="no"
23271    support_crypto="no"
23272    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $support_tls" >&5
23273 $as_echo "$support_tls" >&6; }
23274 fi
23275
23276 if test "$support_tls" = "no" -o "$support_crypto" = "no"; then
23277    OPENSSL_LIBS=""
23278    OPENSSL_INC=""
23279 fi
23280
23281
23282
23283
23284 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5
23285 $as_echo_n "checking for library containing dlopen... " >&6; }
23286 if ${ac_cv_search_dlopen+:} false; then :
23287   $as_echo_n "(cached) " >&6
23288 else
23289   ac_func_search_save_LIBS=$LIBS
23290 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23291 /* end confdefs.h.  */
23292
23293 /* Override any GCC internal prototype to avoid an error.
23294    Use char because int might match the return type of a GCC
23295    builtin and then its argument prototype would still apply.  */
23296 #ifdef __cplusplus
23297 extern "C"
23298 #endif
23299 char dlopen ();
23300 int
23301 main ()
23302 {
23303 return dlopen ();
23304   ;
23305   return 0;
23306 }
23307 _ACEOF
23308 for ac_lib in '' dl; do
23309   if test -z "$ac_lib"; then
23310     ac_res="none required"
23311   else
23312     ac_res=-l$ac_lib
23313     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
23314   fi
23315   if ac_fn_c_try_link "$LINENO"; then :
23316   ac_cv_search_dlopen=$ac_res
23317 fi
23318 rm -f core conftest.err conftest.$ac_objext \
23319     conftest$ac_exeext
23320   if ${ac_cv_search_dlopen+:} false; then :
23321   break
23322 fi
23323 done
23324 if ${ac_cv_search_dlopen+:} false; then :
23325
23326 else
23327   ac_cv_search_dlopen=no
23328 fi
23329 rm conftest.$ac_ext
23330 LIBS=$ac_func_search_save_LIBS
23331 fi
23332 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5
23333 $as_echo "$ac_cv_search_dlopen" >&6; }
23334 ac_res=$ac_cv_search_dlopen
23335 if test "$ac_res" != no; then :
23336   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
23337
23338 fi
23339
23340
23341 working_dir=`eval echo /opt/bacula/working`
23342
23343 # Check whether --with-working-dir was given.
23344 if test "${with_working_dir+set}" = set; then :
23345   withval=$with_working_dir;
23346        if test "x$withval" != "xno" ; then
23347          working_dir=$withval
23348        fi
23349
23350
23351 fi
23352
23353
23354
23355
23356 archivedir=/tmp
23357
23358 # Check whether --with-archivedir was given.
23359 if test "${with_archivedir+set}" = set; then :
23360   withval=$with_archivedir;
23361        if test "x$withval" != "xno" ; then
23362           archivedir=$withval
23363        fi
23364
23365
23366 fi
23367
23368
23369
23370
23371 basename=`hostname`
23372
23373 # Check whether --with-basename was given.
23374 if test "${with_basename+set}" = set; then :
23375   withval=$with_basename;
23376        if test "x$withval" != "xno" ; then
23377           basename=$withval
23378        fi
23379
23380
23381 fi
23382
23383
23384
23385
23386 hostname=`uname -n | cut -d '.' -f 1`
23387 if test x${hostname} = x ; then
23388   hostname="localhost"
23389 fi
23390 ping -c 1 $hostname 2>/dev/null 1>/dev/null
23391 if test ! $? = 0; then
23392   hostname="localhost"
23393 fi
23394
23395 # Check whether --with-hostname was given.
23396 if test "${with_hostname+set}" = set; then :
23397   withval=$with_hostname;
23398        if test "x$withval" != "xno" ; then
23399          hostname=$withval
23400        fi
23401
23402
23403 fi
23404
23405
23406
23407
23408
23409 scriptdir=`eval echo ${sysconfdir}`
23410
23411 # Check whether --with-scriptdir was given.
23412 if test "${with_scriptdir+set}" = set; then :
23413   withval=$with_scriptdir;
23414        if test "x$withval" != "xno" ; then
23415           scriptdir=$withval
23416        fi
23417
23418
23419 fi
23420
23421
23422
23423
23424
23425 bsrdir=`eval echo /opt/bacula/bsr`
23426
23427 # Check whether --with-bsrdir was given.
23428 if test "${with_bsrdir+set}" = set; then :
23429   withval=$with_bsrdir;
23430        if test "x$withval" != "xno" ; then
23431           bsrdir=$withval
23432        fi
23433
23434
23435 fi
23436
23437
23438
23439
23440 logdir=`eval echo /opt/bacula/log`
23441
23442 # Check whether --with-logdir was given.
23443 if test "${with_logdir+set}" = set; then :
23444   withval=$with_logdir;
23445        if test "x$withval" != "xno" ; then
23446           logdir=$withval
23447        fi
23448
23449
23450 fi
23451
23452
23453
23454
23455
23456 # ------------------------------------------
23457 # Where to place plugindir (plugin files)
23458 # ------------------------------------------
23459 plugindir=`eval echo ${libdir}`
23460
23461 # Check whether --with-plugindir was given.
23462 if test "${with_plugindir+set}" = set; then :
23463   withval=$with_plugindir;
23464        if test "x$withval" != "xno" ; then
23465           plugindir=$withval
23466        fi
23467
23468
23469 fi
23470
23471
23472
23473
23474 dump_email=root@localhost
23475
23476 # Check whether --with-dump-email was given.
23477 if test "${with_dump_email+set}" = set; then :
23478   withval=$with_dump_email;
23479        if test "x$withval" != "xno" ; then
23480           dump_email=$withval
23481        fi
23482
23483
23484 fi
23485
23486
23487
23488
23489 job_email=root@localhost
23490
23491 # Check whether --with-job-email was given.
23492 if test "${with_job_email+set}" = set; then :
23493   withval=$with_job_email;
23494        if test "x$withval" != "xno" ; then
23495           job_email=$withval
23496        fi
23497
23498
23499 fi
23500
23501
23502
23503
23504 smtp_host=localhost
23505
23506 # Check whether --with-smtp_host was given.
23507 if test "${with_smtp_host+set}" = set; then :
23508   withval=$with_smtp_host;
23509        if test "x$withval" != "xno" ; then
23510           smtp_host=$withval
23511        fi
23512
23513
23514 fi
23515
23516
23517
23518
23519 piddir=/var/run
23520
23521 # Check whether --with-pid-dir was given.
23522 if test "${with_pid_dir+set}" = set; then :
23523   withval=$with_pid_dir;
23524        if test "x$withval" != "xno" ; then
23525           piddir=$withval
23526        fi
23527
23528
23529 fi
23530
23531
23532 cat >>confdefs.h <<_ACEOF
23533 #define _PATH_BACULA_PIDDIR "$piddir"
23534 _ACEOF
23535
23536
23537
23538 subsysdir=/var/run/subsys
23539 if test -d /var/run/subsys; then
23540    subsysdir=/var/run/subsys
23541 elif test -d /var/lock/subsys; then
23542    subsysdir=/var/lock/subsys
23543 else
23544    subsysdir=/var/run/subsys
23545 fi
23546
23547 # Check whether --with-subsys-dir was given.
23548 if test "${with_subsys_dir+set}" = set; then :
23549   withval=$with_subsys_dir;
23550        if test "x$withval" != "xno" ; then
23551           subsysdir=$withval
23552        fi
23553
23554
23555 fi
23556
23557
23558
23559
23560 baseport=9101
23561
23562 # Check whether --with-baseport was given.
23563 if test "${with_baseport+set}" = set; then :
23564   withval=$with_baseport;
23565        if test "x$withval" != "xno" ; then
23566           baseport=$withval
23567        fi
23568
23569
23570 fi
23571
23572
23573
23574 dir_port=`expr $baseport`
23575 fd_port=`expr $baseport + 1`
23576 sd_port=`expr $fd_port + 1`
23577
23578
23579
23580
23581
23582 dir_password=
23583
23584 # Check whether --with-dir-password was given.
23585 if test "${with_dir_password+set}" = set; then :
23586   withval=$with_dir_password;
23587        if test "x$withval" != "xno" ; then
23588           dir_password=$withval
23589        fi
23590
23591
23592 fi
23593
23594
23595 if test "x$dir_password" = "x" ; then
23596    if test "x$OPENSSL" = "xnone" ; then
23597       key=`autoconf/randpass 33`
23598    else
23599       key=`openssl rand -base64 33`
23600    fi
23601    dir_password=$key
23602 fi
23603
23604 fd_password=
23605
23606 # Check whether --with-fd-password was given.
23607 if test "${with_fd_password+set}" = set; then :
23608   withval=$with_fd_password;
23609        if test "x$withval" != "xno" ; then
23610           fd_password=$withval
23611        fi
23612
23613
23614 fi
23615
23616
23617 if test "x$fd_password" = "x" ; then
23618    if test "x$OPENSSL" = "xnone" ; then
23619       key=`autoconf/randpass 37`
23620    else
23621       key=`openssl rand -base64 33`
23622    fi
23623    fd_password=$key
23624 fi
23625
23626 sd_password=
23627
23628 # Check whether --with-sd-password was given.
23629 if test "${with_sd_password+set}" = set; then :
23630   withval=$with_sd_password;
23631        if test "x$withval" != "xno" ; then
23632           sd_password=$withval
23633        fi
23634
23635
23636 fi
23637
23638
23639 if test "x$sd_password" = "x" ; then
23640    if test "x$OPENSSL" = "xnone" ; then
23641       key=`autoconf/randpass 41`
23642    else
23643       key=`openssl rand -base64 33`
23644    fi
23645    sd_password=$key
23646 fi
23647
23648 mon_dir_password=
23649
23650 # Check whether --with-mon-dir-password was given.
23651 if test "${with_mon_dir_password+set}" = set; then :
23652   withval=$with_mon_dir_password;
23653        if test "x$withval" != "xno" ; then
23654           mon_dir_password=$withval
23655        fi
23656
23657
23658 fi
23659
23660
23661 if test "x$mon_dir_password" = "x" ; then
23662    if test "x$OPENSSL" = "xnone" ; then
23663       key=`autoconf/randpass 33`
23664    else
23665       key=`openssl rand -base64 33`
23666    fi
23667    mon_dir_password=$key
23668 fi
23669
23670 mon_fd_password=
23671
23672 # Check whether --with-mon-fd-password was given.
23673 if test "${with_mon_fd_password+set}" = set; then :
23674   withval=$with_mon_fd_password;
23675        if test "x$withval" != "xno" ; then
23676           mon_fd_password=$withval
23677        fi
23678
23679
23680 fi
23681
23682
23683 if test "x$mon_fd_password" = "x" ; then
23684    if test "x$OPENSSL" = "xnone" ; then
23685       key=`autoconf/randpass 37`
23686    else
23687       key=`openssl rand -base64 33`
23688    fi
23689    mon_fd_password=$key
23690 fi
23691
23692 mon_sd_password=
23693
23694 # Check whether --with-mon-sd-password was given.
23695 if test "${with_mon_sd_password+set}" = set; then :
23696   withval=$with_mon_sd_password;
23697        if test "x$withval" != "xno" ; then
23698           mon_sd_password=$withval
23699        fi
23700
23701
23702 fi
23703
23704
23705 if test "x$mon_sd_password" = "x" ; then
23706    if test "x$OPENSSL" = "xnone" ; then
23707       key=`autoconf/randpass 41`
23708    else
23709       key=`openssl rand -base64 33`
23710    fi
23711    mon_sd_password=$key
23712 fi
23713
23714
23715
23716
23717
23718
23719
23720
23721 db_name=bacula
23722
23723 # Check whether --with-db_name was given.
23724 if test "${with_db_name+set}" = set; then :
23725   withval=$with_db_name;
23726        if test "x$withval" != "x" ; then
23727           db_name=$withval
23728        fi
23729
23730
23731 fi
23732
23733
23734
23735 db_user=bacula
23736
23737 # Check whether --with-db_user was given.
23738 if test "${with_db_user+set}" = set; then :
23739   withval=$with_db_user;
23740        if test "x$withval" != "x" ; then
23741           db_user=$withval
23742        fi
23743
23744
23745 fi
23746
23747
23748
23749 db_password=
23750
23751 # Check whether --with-db_password was given.
23752 if test "${with_db_password+set}" = set; then :
23753   withval=$with_db_password;
23754        if test "x$withval" != "x" ; then
23755           db_password=$withval
23756        fi
23757
23758
23759 fi
23760
23761
23762
23763 db_port=" "
23764
23765 # Check whether --with-db_port was given.
23766 if test "${with_db_port+set}" = set; then :
23767   withval=$with_db_port;
23768        if test "x$withval" != "x" ; then
23769           db_port=$withval
23770        fi
23771
23772
23773 fi
23774
23775
23776
23777 #
23778 # Handle users and groups for each daemon
23779 #
23780 dir_user=
23781
23782 # Check whether --with-dir_user was given.
23783 if test "${with_dir_user+set}" = set; then :
23784   withval=$with_dir_user;
23785        if test "x$withval" != "x" ; then
23786            dir_user=$withval
23787        fi
23788
23789
23790 fi
23791
23792
23793 dir_group=
23794
23795 # Check whether --with-dir_group was given.
23796 if test "${with_dir_group+set}" = set; then :
23797   withval=$with_dir_group;
23798        if test "x$withval" != "x" ; then
23799           dir_group=$withval
23800        fi
23801
23802
23803 fi
23804
23805
23806 sd_user=
23807
23808 # Check whether --with-sd_user was given.
23809 if test "${with_sd_user+set}" = set; then :
23810   withval=$with_sd_user;
23811        if test "x$withval" != "x" ; then
23812           sd_user=$withval
23813        fi
23814
23815
23816 fi
23817
23818
23819 sd_group=
23820
23821 # Check whether --with-sd_group was given.
23822 if test "${with_sd_group+set}" = set; then :
23823   withval=$with_sd_group;
23824        if test "x$withval" != "x" ; then
23825           sd_group=$withval
23826        fi
23827
23828
23829 fi
23830
23831
23832 fd_user=
23833
23834 # Check whether --with-fd_user was given.
23835 if test "${with_fd_user+set}" = set; then :
23836   withval=$with_fd_user;
23837        if test "x$withval" != "x" ; then
23838           fd_user=$withval
23839        fi
23840
23841
23842 fi
23843
23844
23845 fd_group=
23846
23847 # Check whether --with-fd_group was given.
23848 if test "${with_fd_group+set}" = set; then :
23849   withval=$with_fd_group;
23850        if test "x$withval" != "x" ; then
23851           fd_group=$withval
23852        fi
23853
23854
23855 fi
23856
23857
23858
23859
23860
23861
23862
23863
23864
23865 SBINPERM=0750
23866
23867 # Check whether --with-sbin-perm was given.
23868 if test "${with_sbin_perm+set}" = set; then :
23869   withval=$with_sbin_perm;
23870        if test "x$withval" != "x" ; then
23871           SBINPERM=$withval
23872        fi
23873
23874
23875 fi
23876
23877
23878
23879
23880 support_batch_insert=yes
23881 # Check whether --enable-batch-insert was given.
23882 if test "${enable_batch_insert+set}" = set; then :
23883   enableval=$enable_batch_insert;
23884        if test x$enableval = xno; then
23885           support_batch_insert=no
23886        fi
23887
23888
23889 fi
23890
23891
23892 if test x$support_batch_insert = xyes; then
23893
23894 $as_echo "#define USE_BATCH_FILE_INSERT 1" >>confdefs.h
23895
23896 fi
23897
23898
23899 uncomment_dbi="#"
23900
23901
23902 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PostgreSQL support" >&5
23903 $as_echo_n "checking for PostgreSQL support... " >&6; }
23904
23905 # Check whether --with-postgresql was given.
23906 if test "${with_postgresql+set}" = set; then :
23907   withval=$with_postgresql;
23908   if test "$withval" != "no"; then
23909       if test "$withval" = "yes"; then
23910           PG_CONFIG=`which pg_config 2>/dev/null`
23911           if test -n "$PG_CONFIG"; then
23912               POSTGRESQL_INCDIR=`"$PG_CONFIG" --includedir`
23913               POSTGRESQL_LIBDIR=`"$PG_CONFIG" --libdir`
23914               POSTGRESQL_BINDIR=`"$PG_CONFIG" --bindir`
23915           elif test -f /usr/local/include/libpq-fe.h; then
23916               POSTGRESQL_INCDIR=/usr/local/include
23917               if test -d /usr/local/lib64; then
23918                  POSTGRESQL_LIBDIR=/usr/local/lib64
23919               else
23920                  POSTGRESQL_LIBDIR=/usr/local/lib
23921               fi
23922               POSTGRESQL_BINDIR=/usr/local/bin
23923           elif test -f /usr/include/libpq-fe.h; then
23924               POSTGRESQL_INCDIR=/usr/include
23925               if test -d /usr/lib64; then
23926                  POSTGRESQL_LIBDIR=/usr/lib64
23927               else
23928                  POSTGRESQL_LIBDIR=/usr/lib
23929               fi
23930               POSTGRESQL_BINDIR=/usr/bin
23931           elif test -f /usr/include/pgsql/libpq-fe.h; then
23932               POSTGRESQL_INCDIR=/usr/include/pgsql
23933               if test -d /usr/lib64/pgsql; then
23934                  POSTGRESQL_LIBDIR=/usr/lib64/pgsql
23935               else
23936                  POSTGRESQL_LIBDIR=/usr/lib/pgsql
23937               fi
23938               POSTGRESQL_BINDIR=/usr/bin
23939           elif test -f /usr/include/postgresql/libpq-fe.h; then
23940               POSTGRESQL_INCDIR=/usr/include/postgresql
23941               if test -d /usr/lib64/postgresql; then
23942                  POSTGRESQL_LIBDIR=/usr/lib64/postgresql
23943               else
23944                  POSTGRESQL_LIBDIR=/usr/lib/postgresql
23945               fi
23946               POSTGRESQL_BINDIR=/usr/bin
23947           else
23948               { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23949 $as_echo "no" >&6; }
23950               as_fn_error $? "Unable to find libpq-fe.h in standard locations" "$LINENO" 5
23951           fi
23952       elif test -f $withval/include/libpq-fe.h; then
23953           POSTGRESQL_INCDIR=$withval/include
23954           POSTGRESQL_LIBDIR=$withval/lib
23955           POSTGRESQL_BINDIR=$withval/bin
23956       elif test -f $withval/include/postgresql/libpq-fe.h; then
23957           POSTGRESQL_INCDIR=$withval/include/postgresql
23958           if test -d $withval/lib64; then
23959               POSTGRESQL_LIBDIR=$withval/lib64
23960           else
23961               POSTGRESQL_LIBDIR=$withval/lib
23962           fi
23963           POSTGRESQL_BINDIR=$withval/bin
23964       else
23965           { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23966 $as_echo "no" >&6; }
23967           as_fn_error $? "Invalid PostgreSQL directory $withval - unable to find libpq-fe.h under $withval" "$LINENO" 5
23968       fi
23969
23970 $as_echo "#define HAVE_POSTGRESQL 1" >>confdefs.h
23971
23972      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
23973 $as_echo "yes" >&6; }
23974
23975      POSTGRESQL_INCLUDE=-I$POSTGRESQL_INCDIR
23976      if test x$use_libtool != xno; then
23977         POSTGRESQL_LIBS="-R $POSTGRESQL_LIBDIR -L$POSTGRESQL_LIBDIR -lpq"
23978      else
23979         POSTGRESQL_LIBS="-L$POSTGRESQL_LIBDIR -lpq"
23980      fi
23981      ac_fn_c_check_func "$LINENO" "crypt" "ac_cv_func_crypt"
23982 if test "x$ac_cv_func_crypt" = xyes; then :
23983
23984 else
23985   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for crypt in -lcrypt" >&5
23986 $as_echo_n "checking for crypt in -lcrypt... " >&6; }
23987 if ${ac_cv_lib_crypt_crypt+:} false; then :
23988   $as_echo_n "(cached) " >&6
23989 else
23990   ac_check_lib_save_LIBS=$LIBS
23991 LIBS="-lcrypt  $LIBS"
23992 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23993 /* end confdefs.h.  */
23994
23995 /* Override any GCC internal prototype to avoid an error.
23996    Use char because int might match the return type of a GCC
23997    builtin and then its argument prototype would still apply.  */
23998 #ifdef __cplusplus
23999 extern "C"
24000 #endif
24001 char crypt ();
24002 int
24003 main ()
24004 {
24005 return crypt ();
24006   ;
24007   return 0;
24008 }
24009 _ACEOF
24010 if ac_fn_c_try_link "$LINENO"; then :
24011   ac_cv_lib_crypt_crypt=yes
24012 else
24013   ac_cv_lib_crypt_crypt=no
24014 fi
24015 rm -f core conftest.err conftest.$ac_objext \
24016     conftest$ac_exeext conftest.$ac_ext
24017 LIBS=$ac_check_lib_save_LIBS
24018 fi
24019 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypt_crypt" >&5
24020 $as_echo "$ac_cv_lib_crypt_crypt" >&6; }
24021 if test "x$ac_cv_lib_crypt_crypt" = xyes; then :
24022   POSTGRESQL_LIBS="$POSTGRESQL_LIBS -lcrypt"
24023 fi
24024
24025 fi
24026
24027      POSTGRESQL_LIB=$POSTGRESQL_LIBDIR/libpq.a
24028      DB_LIBS="${DB_LIBS} ${POSTGRESQL_LIBS}"
24029
24030      if test -z "${db_backends}"; then
24031          db_backends="PostgreSQL"
24032      else
24033          db_backends="${db_backends} PostgreSQL"
24034      fi
24035      if test -z "${DB_BACKENDS}"; then
24036          DB_BACKENDS="postgresql"
24037      else
24038          DB_BACKENDS="${DB_BACKENDS} postgresql"
24039      fi
24040
24041                     if test "x$support_batch_insert" = "xyes"; then
24042                   saved_LDFLAGS="${LDFLAGS}"
24043          LDFLAGS="${saved_LDFLAGS} -L$POSTGRESQL_LIBDIR"
24044          saved_LIBS="${LIBS}"
24045          if test "x$ac_cv_lib_crypt_crypt" = "xyes" ; then
24046             LIBS="${saved_LIBS} -lcrypt"
24047          fi
24048
24049          { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PQisthreadsafe in -lpq" >&5
24050 $as_echo_n "checking for PQisthreadsafe in -lpq... " >&6; }
24051 if ${ac_cv_lib_pq_PQisthreadsafe+:} false; then :
24052   $as_echo_n "(cached) " >&6
24053 else
24054   ac_check_lib_save_LIBS=$LIBS
24055 LIBS="-lpq  $LIBS"
24056 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24057 /* end confdefs.h.  */
24058
24059 /* Override any GCC internal prototype to avoid an error.
24060    Use char because int might match the return type of a GCC
24061    builtin and then its argument prototype would still apply.  */
24062 #ifdef __cplusplus
24063 extern "C"
24064 #endif
24065 char PQisthreadsafe ();
24066 int
24067 main ()
24068 {
24069 return PQisthreadsafe ();
24070   ;
24071   return 0;
24072 }
24073 _ACEOF
24074 if ac_fn_c_try_link "$LINENO"; then :
24075   ac_cv_lib_pq_PQisthreadsafe=yes
24076 else
24077   ac_cv_lib_pq_PQisthreadsafe=no
24078 fi
24079 rm -f core conftest.err conftest.$ac_objext \
24080     conftest$ac_exeext conftest.$ac_ext
24081 LIBS=$ac_check_lib_save_LIBS
24082 fi
24083 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pq_PQisthreadsafe" >&5
24084 $as_echo "$ac_cv_lib_pq_PQisthreadsafe" >&6; }
24085 if test "x$ac_cv_lib_pq_PQisthreadsafe" = xyes; then :
24086
24087 $as_echo "#define HAVE_PQISTHREADSAFE 1" >>confdefs.h
24088
24089 fi
24090
24091          { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PQputCopyData in -lpq" >&5
24092 $as_echo_n "checking for PQputCopyData in -lpq... " >&6; }
24093 if ${ac_cv_lib_pq_PQputCopyData+:} false; then :
24094   $as_echo_n "(cached) " >&6
24095 else
24096   ac_check_lib_save_LIBS=$LIBS
24097 LIBS="-lpq  $LIBS"
24098 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24099 /* end confdefs.h.  */
24100
24101 /* Override any GCC internal prototype to avoid an error.
24102    Use char because int might match the return type of a GCC
24103    builtin and then its argument prototype would still apply.  */
24104 #ifdef __cplusplus
24105 extern "C"
24106 #endif
24107 char PQputCopyData ();
24108 int
24109 main ()
24110 {
24111 return PQputCopyData ();
24112   ;
24113   return 0;
24114 }
24115 _ACEOF
24116 if ac_fn_c_try_link "$LINENO"; then :
24117   ac_cv_lib_pq_PQputCopyData=yes
24118 else
24119   ac_cv_lib_pq_PQputCopyData=no
24120 fi
24121 rm -f core conftest.err conftest.$ac_objext \
24122     conftest$ac_exeext conftest.$ac_ext
24123 LIBS=$ac_check_lib_save_LIBS
24124 fi
24125 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pq_PQputCopyData" >&5
24126 $as_echo "$ac_cv_lib_pq_PQputCopyData" >&6; }
24127 if test "x$ac_cv_lib_pq_PQputCopyData" = xyes; then :
24128
24129 $as_echo "#define HAVE_PQ_COPY 1" >>confdefs.h
24130
24131 fi
24132
24133          if test "x$ac_cv_lib_pq_PQputCopyData" = "xyes"; then
24134              if test $support_batch_insert = yes ; then
24135
24136 $as_echo "#define HAVE_POSTGRESQL_BATCH_FILE_INSERT 1" >>confdefs.h
24137
24138                  if test -z "${batch_insert_db_backends}"; then
24139                      batch_insert_db_backends="PostgreSQL"
24140                  else
24141                      batch_insert_db_backends="${batch_insert_db_backends} PostgreSQL"
24142                  fi
24143              fi
24144          fi
24145
24146          if test x$ac_cv_lib_pq_PQisthreadsafe != xyes -a x$support_batch_insert = xyes
24147          then
24148              echo "WARNING: Your PostgreSQL client library is too old to detect "
24149              echo "if it was compiled with --enable-thread-safety, consider to "
24150              echo "upgrade it in order to avoid problems with Batch insert mode"
24151          fi
24152
24153                   LDFLAGS="${saved_LDFLAGS}"
24154          LIBS="${saved_LIBS}"
24155      fi
24156   else
24157      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24158 $as_echo "no" >&6; }
24159   fi
24160
24161 else
24162
24163   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24164 $as_echo "no" >&6; }
24165
24166 fi
24167
24168
24169
24170
24171
24172
24173
24174
24175 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MySQL support" >&5
24176 $as_echo_n "checking for MySQL support... " >&6; }
24177
24178 # Check whether --with-mysql was given.
24179 if test "${with_mysql+set}" = set; then :
24180   withval=$with_mysql;
24181   if test "$withval" != "no"; then
24182         if test "$withval" = "yes"; then
24183 #
24184 # This code is very broken on older systems
24185 #
24186 #           MYSQL_CONFIG=`which mysql_config 2>/dev/null`
24187 #           if test "x${MYSQL_CONFIG}" != x; then
24188 #              MYSQL_BINDIR="${MYSQL_CONFIG%/*}"
24189 #              ${MYSQL_CONFIG} --variable=pkglibdir > /dev/null 2>&1
24190 #              if test $? = 0 ; then
24191 #                 MYSQL_LIBDIR=`${MYSQL_CONFIG} --variable=pkglibdir`
24192 #                 MYSQL_INCDIR=`${MYSQL_CONFIG} --variable=pkgincludedir`
24193 #              else
24194 #                 MYSQL_LIBDIR=`${MYSQL_CONFIG} --libs | sed -e 's/.*-L//' -e 's/ .*//'`
24195 #                 MYSQL_INCDIR=`${MYSQL_CONFIG} --include | sed -e 's/-I//'`
24196 #              fi
24197 #           elif test -f /usr/local/mysql/include/mysql/mysql.h; then
24198            if test -f /usr/local/mysql/include/mysql/mysql.h; then
24199               MYSQL_INCDIR=/usr/local/mysql/include/mysql
24200               if test -f /usr/local/mysql/lib64/mysql/libmysqlclient_r.a \
24201                       -o -f /usr/local/mysql/lib64/mysql/libmysqlclient_r.so; then
24202                  MYSQL_LIBDIR=/usr/local/mysql/lib64/mysql
24203               else
24204                  MYSQL_LIBDIR=/usr/local/mysql/lib/mysql
24205               fi
24206               MYSQL_BINDIR=/usr/local/mysql/bin
24207            elif test -f /usr/include/mysql/mysql.h; then
24208               MYSQL_INCDIR=/usr/include/mysql
24209               if test -f /usr/lib64/mysql/libmysqlclient_r.a \
24210                       -o -f /usr/lib64/mysql/libmysqlclient_r.so; then
24211                  MYSQL_LIBDIR=/usr/lib64/mysql
24212               elif test -f /usr/lib64/libmysqlclient_r.a \
24213                         -o -f /usr/lib64/libmysqlclient_r.so; then
24214                  MYSQL_LIBDIR=/usr/lib64
24215               elif test -f /usr/lib/x86_64-linux-gnu/libmysqlclient_r.a \
24216                         -o -f /usr/lib/x86_64-linux-gnu/libmysqlclient_r.so; then
24217                  MYSQL_LIBDIR=/usr/lib/x86_64-linux-gnu
24218               elif test -f /usr/lib/mysql/libmysqlclient_r.a \
24219                         -o -f /usr/lib/mysql/libmysqlclient_r.so; then
24220                  MYSQL_LIBDIR=/usr/lib/mysql
24221               else
24222                  MYSQL_LIBDIR=/usr/lib
24223               fi
24224               MYSQL_BINDIR=/usr/bin
24225            elif test -f /usr/include/mysql.h; then
24226               MYSQL_INCDIR=/usr/include
24227               if test -f /usr/lib64/libmysqlclient_r.a \
24228                       -o -f /usr/lib64/libmysqlclient_r.so; then
24229                  MYSQL_LIBDIR=/usr/lib64
24230               else
24231                  MYSQL_LIBDIR=/usr/lib
24232               fi
24233               MYSQL_BINDIR=/usr/bin
24234            elif test -f /usr/local/include/mysql/mysql.h; then
24235               MYSQL_INCDIR=/usr/local/include/mysql
24236               if test -f /usr/local/lib64/mysql/libmysqlclient_r.a \
24237                       -o -f /usr/local/lib64/mysql/libmysqlclient_r.so; then
24238                  MYSQL_LIBDIR=/usr/local/lib64/mysql
24239               else
24240                  MYSQL_LIBDIR=/usr/local/lib/mysql
24241               fi
24242               MYSQL_BINDIR=/usr/local/bin
24243            elif test -f /usr/local/include/mysql.h; then
24244               MYSQL_INCDIR=/usr/local/include
24245               if test -f /usr/local/lib64/libmysqlclient_r.a \
24246                       -o -f /usr/local/lib64/libmysqlclient_r.so; then
24247                  MYSQL_LIBDIR=/usr/local/lib64
24248               else
24249                  MYSQL_LIBDIR=/usr/local/lib
24250               fi
24251               MYSQL_BINDIR=/usr/local/bin
24252            else
24253               { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24254 $as_echo "no" >&6; }
24255               as_fn_error $? "Unable to find mysql.h in standard locations" "$LINENO" 5
24256            fi
24257         else
24258            if test -f $withval/include/mysql/mysql.h; then
24259               MYSQL_INCDIR=$withval/include/mysql
24260               if test -f $withval/lib64/mysql/libmysqlclient_r.a \
24261                    -o -f $withval/lib64/mysql/libmysqlclient_r.so; then
24262                  MYSQL_LIBDIR=$withval/lib64/mysql
24263               elif test -f $withval/lib64/libmysqlclient_r.a \
24264                    -o -f $withval/lib64/libmysqlclient_r.so; then
24265                  MYSQL_LIBDIR=$withval/lib64
24266               elif test -f $withval/lib/libmysqlclient_r.a \
24267                    -o -f $withval/lib/libmysqlclient_r.so; then
24268                  MYSQL_LIBDIR=$withval/lib
24269               else
24270                  MYSQL_LIBDIR=$withval/lib/mysql
24271               fi
24272               MYSQL_BINDIR=$withval/bin
24273            elif test -f $withval/include/mysql.h; then
24274               MYSQL_INCDIR=$withval/include
24275               if test -f $withval/lib64/libmysqlclient_r.a \
24276                    -o -f $withval/lib64/libmysqlclient_r.so; then
24277                  MYSQL_LIBDIR=$withval/lib64
24278               else
24279                  MYSQL_LIBDIR=$withval/lib
24280               fi
24281               MYSQL_BINDIR=$withval/bin
24282            else
24283               { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24284 $as_echo "no" >&6; }
24285               as_fn_error $? "Invalid MySQL directory $withval - unable to find mysql.h under $withval" "$LINENO" 5
24286            fi
24287         fi
24288      MYSQL_INCLUDE=-I$MYSQL_INCDIR
24289      if test -f $MYSQL_LIBDIR/libmysqlclient_r.a \
24290           -o -f $MYSQL_LIBDIR/libmysqlclient_r.so; then
24291         if test x$use_libtool != xno; then
24292            MYSQL_LIBS="-R $MYSQL_LIBDIR -L$MYSQL_LIBDIR -lmysqlclient_r -lz"
24293         else
24294            MYSQL_LIBS="-L$MYSQL_LIBDIR -lmysqlclient_r -lz"
24295         fi
24296         DB_LIBS="${DB_LIBS} ${MYSQL_LIBS}"
24297      fi
24298      MYSQL_LIB=$MYSQL_LIBDIR/libmysqlclient_r.a
24299
24300
24301 $as_echo "#define HAVE_MYSQL 1" >>confdefs.h
24302
24303      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
24304 $as_echo "yes" >&6; }
24305
24306      if test -z "${db_backends}" ; then
24307          db_backends="MySQL"
24308      else
24309          db_backends="${db_backends} MySQL"
24310      fi
24311      if test -z "${DB_BACKENDS}" ; then
24312          DB_BACKENDS="mysql"
24313      else
24314          DB_BACKENDS="${DB_BACKENDS} mysql"
24315      fi
24316
24317                     if test "x$support_batch_insert" = "xyes"; then
24318                   saved_LDFLAGS="${LDFLAGS}"
24319          LDFLAGS="${saved_LDFLAGS} -L$MYSQL_LIBDIR"
24320          saved_LIBS="${LIBS}"
24321          LIBS="${saved_LIBS} -lz"
24322
24323          { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mysql_thread_safe in -lmysqlclient_r" >&5
24324 $as_echo_n "checking for mysql_thread_safe in -lmysqlclient_r... " >&6; }
24325 if ${ac_cv_lib_mysqlclient_r_mysql_thread_safe+:} false; then :
24326   $as_echo_n "(cached) " >&6
24327 else
24328   ac_check_lib_save_LIBS=$LIBS
24329 LIBS="-lmysqlclient_r  $LIBS"
24330 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24331 /* end confdefs.h.  */
24332
24333 /* Override any GCC internal prototype to avoid an error.
24334    Use char because int might match the return type of a GCC
24335    builtin and then its argument prototype would still apply.  */
24336 #ifdef __cplusplus
24337 extern "C"
24338 #endif
24339 char mysql_thread_safe ();
24340 int
24341 main ()
24342 {
24343 return mysql_thread_safe ();
24344   ;
24345   return 0;
24346 }
24347 _ACEOF
24348 if ac_fn_c_try_link "$LINENO"; then :
24349   ac_cv_lib_mysqlclient_r_mysql_thread_safe=yes
24350 else
24351   ac_cv_lib_mysqlclient_r_mysql_thread_safe=no
24352 fi
24353 rm -f core conftest.err conftest.$ac_objext \
24354     conftest$ac_exeext conftest.$ac_ext
24355 LIBS=$ac_check_lib_save_LIBS
24356 fi
24357 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mysqlclient_r_mysql_thread_safe" >&5
24358 $as_echo "$ac_cv_lib_mysqlclient_r_mysql_thread_safe" >&6; }
24359 if test "x$ac_cv_lib_mysqlclient_r_mysql_thread_safe" = xyes; then :
24360
24361 $as_echo "#define HAVE_MYSQL_THREAD_SAFE 1" >>confdefs.h
24362
24363 fi
24364
24365          if test "x$ac_cv_lib_mysqlclient_r_mysql_thread_safe" = "xyes"; then
24366              if test -z "${batch_insert_db_backends}"; then
24367                  batch_insert_db_backends="MySQL"
24368              else
24369                  batch_insert_db_backends="${batch_insert_db_backends} MySQL"
24370              fi
24371          fi
24372
24373                   LDFLAGS="${saved_LDFLAGS}"
24374          LIBS="${saved_LIBS}"
24375      fi
24376   else
24377      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24378 $as_echo "no" >&6; }
24379   fi
24380
24381 else
24382
24383   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24384 $as_echo "no" >&6; }
24385
24386 fi
24387
24388
24389 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MySQL embedded support" >&5
24390 $as_echo_n "checking for MySQL embedded support... " >&6; }
24391
24392 # Check whether --with-embedded-mysql was given.
24393 if test "${with_embedded_mysql+set}" = set; then :
24394   withval=$with_embedded_mysql;
24395   if test "$withval" != "no"; then
24396         if test "$withval" = "yes"; then
24397                 if test -f /usr/local/mysql/include/mysql/mysql.h; then
24398                         MYSQL_INCDIR=/usr/local/mysql/include/mysql
24399                         if test -d /usr/local/mysql/lib64/mysql; then
24400                                 MYSQL_LIBDIR=/usr/local/mysql/lib64/mysql
24401                         else
24402                                 MYSQL_LIBDIR=/usr/local/mysql/lib/mysql
24403                         fi
24404                         MYSQL_BINDIR=/usr/local/mysql/bin
24405                 elif test -f /usr/include/mysql/mysql.h; then
24406                         MYSQL_INCDIR=/usr/include/mysql
24407                         if test -d /usr/lib64/mysql; then
24408                                 MYSQL_LIBDIR=/usr/lib64/mysql
24409                         else
24410                                 MYSQL_LIBDIR=/usr/lib/mysql
24411                         fi
24412                         MYSQL_BINDIR=/usr/bin
24413                 elif test -f /usr/include/mysql.h; then
24414                         MYSQL_INCDIR=/usr/include
24415                         if test -d /usr/lib64; then
24416                                 MYSQL_LIBDIR=/usr/lib64
24417                         else
24418                                 MYSQL_LIBDIR=/usr/lib
24419                         fi
24420                         MYSQL_BINDIR=/usr/bin
24421                 elif test -f /usr/local/include/mysql/mysql.h; then
24422                         MYSQL_INCDIR=/usr/local/include/mysql
24423                         if test -d /usr/local/lib64/mysql; then
24424                                 MYSQL_LIBDIR=/usr/local/lib64/mysql
24425                         else
24426                                 MYSQL_LIBDIR=/usr/local/lib/mysql
24427                         fi
24428                         MYSQL_BINDIR=/usr/local/bin
24429                 elif test -f /usr/local/include/mysql.h; then
24430                         MYSQL_INCDIR=/usr/local/include
24431                         if test -d /usr/local/lib64; then
24432                                 MYSQL_LIBDIR=/usr/local/lib64
24433                         else
24434                                 MYSQL_LIBDIR=/usr/local/lib
24435                         fi
24436                         MYSQL_BINDIR=/usr/local/bin
24437                 else
24438                    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24439 $as_echo "no" >&6; }
24440                    as_fn_error $? "Unable to find mysql.h in standard locations" "$LINENO" 5
24441                 fi
24442         else
24443                 if test -f $withval/include/mysql/mysql.h; then
24444                         MYSQL_INCDIR=$withval/include/mysql
24445                         if test -d $withval/lib64/mysql; then
24446                                 MYSQL_LIBDIR=$withval/lib64/mysql
24447                         else
24448                                 MYSQL_LIBDIR=$withval/lib/mysql
24449                         fi
24450                         MYSQL_BINDIR=$withval/bin
24451                 elif test -f $withval/include/mysql.h; then
24452                         MYSQL_INCDIR=$withval/include
24453                         if test -d $withval/lib64; then
24454                                 MYSQL_LIBDIR=$withval/lib64
24455                         else
24456                                 MYSQL_LIBDIR=$withval/lib
24457                         fi
24458                         MYSQL_BINDIR=$withval/bin
24459                 else
24460                    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24461 $as_echo "no" >&6; }
24462                    as_fn_error $? "Invalid MySQL directory $withval - unable to find mysql.h under $withval" "$LINENO" 5
24463                 fi
24464         fi
24465      MYSQL_INCLUDE=-I$MYSQL_INCDIR
24466      if test x$use_libtool != xno; then
24467         MYSQL_LIBS="-R $MYSQL_LIBDIR -L$MYSQL_LIBDIR -lmysqld -lz -lm -lcrypt"
24468      else
24469         MYSQL_LIBS="-L$MYSQL_LIBDIR -lmysqld -lz -lm -lcrypt"
24470      fi
24471      MYSQL_LIB=$MYSQL_LIBDIR/libmysqld.a
24472      DB_LIBS="${DB_LIBS} ${MYSQL_LIBS}"
24473
24474
24475 $as_echo "#define HAVE_MYSQL 1" >>confdefs.h
24476
24477
24478 $as_echo "#define HAVE_EMBEDDED_MYSQL 1" >>confdefs.h
24479
24480      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
24481 $as_echo "yes" >&6; }
24482
24483      if test -z "${db_backends}"; then
24484          db_backends="MySQL"
24485      else
24486          db_backends="${db_backends} MySQL"
24487      fi
24488      if test -z "${DB_BACKENDS}"; then
24489          DB_BACKENDS="mysql"
24490      else
24491          DB_BACKENDS="${DB_BACKENDS} mysql"
24492      fi
24493
24494                     if test "x$support_batch_insert" = "xyes"; then
24495                   saved_LDFLAGS="${LDFLAGS}"
24496          LDFLAGS="${saved_LDFLAGS} -L$MYSQL_LIBDIR"
24497          saved_LIBS="${LIBS}"
24498          LIBS="${saved_LIBS} -lz -lm -lcrypt"
24499
24500          { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mysql_thread_safe in -lmysqlclient_r" >&5
24501 $as_echo_n "checking for mysql_thread_safe in -lmysqlclient_r... " >&6; }
24502 if ${ac_cv_lib_mysqlclient_r_mysql_thread_safe+:} false; then :
24503   $as_echo_n "(cached) " >&6
24504 else
24505   ac_check_lib_save_LIBS=$LIBS
24506 LIBS="-lmysqlclient_r  $LIBS"
24507 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24508 /* end confdefs.h.  */
24509
24510 /* Override any GCC internal prototype to avoid an error.
24511    Use char because int might match the return type of a GCC
24512    builtin and then its argument prototype would still apply.  */
24513 #ifdef __cplusplus
24514 extern "C"
24515 #endif
24516 char mysql_thread_safe ();
24517 int
24518 main ()
24519 {
24520 return mysql_thread_safe ();
24521   ;
24522   return 0;
24523 }
24524 _ACEOF
24525 if ac_fn_c_try_link "$LINENO"; then :
24526   ac_cv_lib_mysqlclient_r_mysql_thread_safe=yes
24527 else
24528   ac_cv_lib_mysqlclient_r_mysql_thread_safe=no
24529 fi
24530 rm -f core conftest.err conftest.$ac_objext \
24531     conftest$ac_exeext conftest.$ac_ext
24532 LIBS=$ac_check_lib_save_LIBS
24533 fi
24534 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mysqlclient_r_mysql_thread_safe" >&5
24535 $as_echo "$ac_cv_lib_mysqlclient_r_mysql_thread_safe" >&6; }
24536 if test "x$ac_cv_lib_mysqlclient_r_mysql_thread_safe" = xyes; then :
24537
24538 $as_echo "#define HAVE_MYSQL_THREAD_SAFE 1" >>confdefs.h
24539
24540 fi
24541
24542          if test "x$ac_cv_lib_mysqlclient_r_mysql_thread_safe" = "xyes"; then
24543              if test -z "${batch_insert_db_backends}"; then
24544                  batch_insert_db_backends="MySQL"
24545              else
24546                  batch_insert_db_backends="${batch_insert_db_backends} MySQL"
24547              fi
24548          fi
24549
24550                   LDFLAGS="${saved_LDFLAGS}"
24551          LIBS="${saved_LIBS}"
24552      fi
24553   else
24554      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24555 $as_echo "no" >&6; }
24556   fi
24557
24558 else
24559
24560   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24561 $as_echo "no" >&6; }
24562
24563 fi
24564
24565
24566
24567
24568
24569
24570
24571
24572
24573 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SQLite3 support" >&5
24574 $as_echo_n "checking for SQLite3 support... " >&6; }
24575
24576 # Check whether --with-sqlite3 was given.
24577 if test "${with_sqlite3+set}" = set; then :
24578   withval=$with_sqlite3;
24579   if test "$withval" != "no"; then
24580      if test "$withval" = "yes"; then
24581         if test -f /usr/local/include/sqlite3.h; then
24582            SQLITE_INCDIR=/usr/local/include
24583            if test -d /usr/local/lib64; then
24584               SQLITE_LIBDIR=/usr/local/lib64
24585            else
24586               SQLITE_LIBDIR=/usr/local/lib
24587            fi
24588            SQLITE_BINDIR=/usr/local/bin
24589         elif test -f /usr/include/sqlite3.h; then
24590            SQLITE_INCDIR=/usr/include
24591            if test -d /usr/lib64; then
24592               SQLITE_LIBDIR=/usr/lib64
24593            else
24594               SQLITE_LIBDIR=/usr/lib
24595            fi
24596            SQLITE_BINDIR=/usr/bin
24597         elif test -f $prefix/include/sqlite3.h; then
24598            SQLITE_INCDIR=$prefix/include
24599            if test -d $prefix/lib64; then
24600               SQLITE_LIBDIR=$prefix/lib64
24601            else
24602               SQLITE_LIBDIR=$prefix/lib
24603            fi
24604            SQLITE_BINDIR=$prefix/bin
24605         else
24606            { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24607 $as_echo "no" >&6; }
24608            as_fn_error $? "Unable to find sqlite3.h in standard locations" "$LINENO" 5
24609         fi
24610      else
24611         if test -f $withval/sqlite3.h; then
24612            SQLITE_INCDIR=$withval
24613            SQLITE_LIBDIR=$withval
24614            SQLITE_BINDIR=$withval
24615         elif test -f $withval/include/sqlite3.h; then
24616            SQLITE_INCDIR=$withval/include
24617            if test -d $withval/lib64; then
24618               SQLITE_LIBDIR=$withval/lib64
24619            else
24620               SQLITE_LIBDIR=$withval/lib
24621            fi
24622            SQLITE_BINDIR=$withval/bin
24623         else
24624            { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24625 $as_echo "no" >&6; }
24626            as_fn_error $? "Invalid SQLite3 directory $withval - unable to find sqlite3.h under $withval" "$LINENO" 5
24627         fi
24628      fi
24629      SQLITE_INCLUDE=-I$SQLITE_INCDIR
24630      if test x$use_libtool != xno; then
24631         SQLITE_LIBS="-R $SQLITE_LIBDIR -L$SQLITE_LIBDIR -lsqlite3"
24632      else
24633         SQLITE_LIBS="-L$SQLITE_LIBDIR -lsqlite3"
24634      fi
24635      SQLITE_LIB=$SQLITE_LIBDIR/libsqlite3.a
24636      DB_LIBS="${DB_LIBS} ${SQLITE_LIBS}"
24637
24638
24639 $as_echo "#define HAVE_SQLITE3 1" >>confdefs.h
24640
24641      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
24642 $as_echo "yes" >&6; }
24643
24644      if test -z "${db_backends}"; then
24645          db_backends="SQLite3"
24646      else
24647          db_backends="${db_backends} SQLite3"
24648      fi
24649      if test -z "${DB_BACKENDS}"; then
24650          DB_BACKENDS="sqlite3"
24651      else
24652          DB_BACKENDS="${DB_BACKENDS} sqlite3"
24653      fi
24654
24655                     if test "x$support_batch_insert" = "xyes"; then
24656                   saved_LDFLAGS="${LDFLAGS}"
24657          LDFLAGS="${saved_LDFLAGS} -L$SQLITE_LIBDIR"
24658
24659          { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sqlite3_threadsafe in -lsqlite3" >&5
24660 $as_echo_n "checking for sqlite3_threadsafe in -lsqlite3... " >&6; }
24661 if ${ac_cv_lib_sqlite3_sqlite3_threadsafe+:} false; then :
24662   $as_echo_n "(cached) " >&6
24663 else
24664   ac_check_lib_save_LIBS=$LIBS
24665 LIBS="-lsqlite3  $LIBS"
24666 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24667 /* end confdefs.h.  */
24668
24669 /* Override any GCC internal prototype to avoid an error.
24670    Use char because int might match the return type of a GCC
24671    builtin and then its argument prototype would still apply.  */
24672 #ifdef __cplusplus
24673 extern "C"
24674 #endif
24675 char sqlite3_threadsafe ();
24676 int
24677 main ()
24678 {
24679 return sqlite3_threadsafe ();
24680   ;
24681   return 0;
24682 }
24683 _ACEOF
24684 if ac_fn_c_try_link "$LINENO"; then :
24685   ac_cv_lib_sqlite3_sqlite3_threadsafe=yes
24686 else
24687   ac_cv_lib_sqlite3_sqlite3_threadsafe=no
24688 fi
24689 rm -f core conftest.err conftest.$ac_objext \
24690     conftest$ac_exeext conftest.$ac_ext
24691 LIBS=$ac_check_lib_save_LIBS
24692 fi
24693 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_sqlite3_sqlite3_threadsafe" >&5
24694 $as_echo "$ac_cv_lib_sqlite3_sqlite3_threadsafe" >&6; }
24695 if test "x$ac_cv_lib_sqlite3_sqlite3_threadsafe" = xyes; then :
24696
24697 $as_echo "#define HAVE_SQLITE3_THREADSAFE 1" >>confdefs.h
24698
24699 fi
24700
24701          if test "x$ac_cv_lib_sqlite3_sqlite3_threadsafe" = "xyes"; then
24702              if test -z "${batch_insert_db_backends}"; then
24703                  batch_insert_db_backends="SQLite3"
24704              else
24705                  batch_insert_db_backends="${batch_insert_db_backends} SQLite3"
24706              fi
24707          fi
24708
24709                   LDFLAGS="${saved_LDFLAGS}"
24710      fi
24711   else
24712      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24713 $as_echo "no" >&6; }
24714   fi
24715
24716 else
24717
24718   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24719 $as_echo "no" >&6; }
24720
24721 fi
24722
24723
24724
24725
24726
24727
24728
24729 if test -z "${batch_insert_db_backends}"; then
24730    batch_insert_db_backends="None"
24731 fi
24732
24733 if test "x${db_backends}" = "x" ; then
24734    echo " "
24735    echo " "
24736    echo "You have not specified either --enable-client-only or one of the"
24737    echo "supported databases: MySQL, PostgreSQL, or SQLite3."
24738    echo "This is not permitted. Please reconfigure."
24739    echo " "
24740    echo "Aborting the configuration ..."
24741    echo " "
24742    echo " "
24743    exit 1
24744 fi
24745
24746 case `echo $DB_BACKENDS | wc -w | sed -e 's/^ *//'` in
24747    1)
24748       DEFAULT_DB_TYPE="${DB_BACKENDS}"
24749       if test x$use_libtool = xno; then
24750          SHARED_CATALOG_TARGETS=""
24751       else
24752          SHARED_CATALOG_TARGETS="libbaccats-${DEFAULT_DB_TYPE}.la"
24753       fi
24754       ;;
24755    *)
24756                         DEFAULT_DB_TYPE=`echo ${DB_BACKENDS} | cut -d' ' -f1`
24757
24758                         if test x$use_libtool = xno; then
24759          echo " "
24760          echo " "
24761          echo "You have specified two or more of the"
24762          echo "supported databases: MySQL, PostgreSQL, or SQLite3."
24763          echo "This is not permitted when not using libtool Please reconfigure."
24764          echo " "
24765          echo "Aborting the configuration ..."
24766          echo " "
24767          echo " "
24768          exit 1
24769       fi
24770
24771       SHARED_CATALOG_TARGETS=""
24772       for db_type in ${DB_BACKENDS}
24773       do
24774          if test -z "${SHARED_CATALOG_TARGETS}"; then
24775             SHARED_CATALOG_TARGETS="libbaccats-${db_type}.la"
24776          else
24777             SHARED_CATALOG_TARGETS="${SHARED_CATALOG_TARGETS} libbaccats-${db_type}.la"
24778          fi
24779       done
24780       ;;
24781 esac
24782
24783 if test x$use_libtool = xyes; then
24784    DB_LIBS=""
24785 fi
24786
24787
24788
24789
24790
24791
24792
24793 $as_echo "#define PROTOTYPES 1" >>confdefs.h
24794
24795
24796 if test -z "$CFLAGS" -o "$CFLAGS" = "-g -O2"; then
24797    if test -z "$CCOPTS"; then
24798       CCOPTS='-g -O2 -Wall'
24799    fi
24800    CFLAGS="$CCOPTS"
24801 fi
24802
24803
24804
24805 largefile_support="no"
24806
24807    # Check whether --enable-largefile was given.
24808 if test "${enable_largefile+set}" = set; then :
24809   enableval=$enable_largefile;
24810 fi
24811
24812    if test "$enable_largefile" != no; then
24813      if test -n "$ac_tool_prefix"; then
24814   # Extract the first word of "${ac_tool_prefix}getconf", so it can be a program name with args.
24815 set dummy ${ac_tool_prefix}getconf; ac_word=$2
24816 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
24817 $as_echo_n "checking for $ac_word... " >&6; }
24818 if ${ac_cv_prog_GETCONF+:} false; then :
24819   $as_echo_n "(cached) " >&6
24820 else
24821   if test -n "$GETCONF"; then
24822   ac_cv_prog_GETCONF="$GETCONF" # Let the user override the test.
24823 else
24824 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24825 for as_dir in $PATH
24826 do
24827   IFS=$as_save_IFS
24828   test -z "$as_dir" && as_dir=.
24829     for ac_exec_ext in '' $ac_executable_extensions; do
24830   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
24831     ac_cv_prog_GETCONF="${ac_tool_prefix}getconf"
24832     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
24833     break 2
24834   fi
24835 done
24836   done
24837 IFS=$as_save_IFS
24838
24839 fi
24840 fi
24841 GETCONF=$ac_cv_prog_GETCONF
24842 if test -n "$GETCONF"; then
24843   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GETCONF" >&5
24844 $as_echo "$GETCONF" >&6; }
24845 else
24846   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24847 $as_echo "no" >&6; }
24848 fi
24849
24850
24851 fi
24852 if test -z "$ac_cv_prog_GETCONF"; then
24853   ac_ct_GETCONF=$GETCONF
24854   # Extract the first word of "getconf", so it can be a program name with args.
24855 set dummy getconf; ac_word=$2
24856 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
24857 $as_echo_n "checking for $ac_word... " >&6; }
24858 if ${ac_cv_prog_ac_ct_GETCONF+:} false; then :
24859   $as_echo_n "(cached) " >&6
24860 else
24861   if test -n "$ac_ct_GETCONF"; then
24862   ac_cv_prog_ac_ct_GETCONF="$ac_ct_GETCONF" # Let the user override the test.
24863 else
24864 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24865 for as_dir in $PATH
24866 do
24867   IFS=$as_save_IFS
24868   test -z "$as_dir" && as_dir=.
24869     for ac_exec_ext in '' $ac_executable_extensions; do
24870   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
24871     ac_cv_prog_ac_ct_GETCONF="getconf"
24872     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
24873     break 2
24874   fi
24875 done
24876   done
24877 IFS=$as_save_IFS
24878
24879 fi
24880 fi
24881 ac_ct_GETCONF=$ac_cv_prog_ac_ct_GETCONF
24882 if test -n "$ac_ct_GETCONF"; then
24883   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GETCONF" >&5
24884 $as_echo "$ac_ct_GETCONF" >&6; }
24885 else
24886   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24887 $as_echo "no" >&6; }
24888 fi
24889
24890   if test "x$ac_ct_GETCONF" = x; then
24891     GETCONF=""
24892   else
24893     case $cross_compiling:$ac_tool_warned in
24894 yes:)
24895 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
24896 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
24897 ac_tool_warned=yes ;;
24898 esac
24899     GETCONF=$ac_ct_GETCONF
24900   fi
24901 else
24902   GETCONF="$ac_cv_prog_GETCONF"
24903 fi
24904
24905      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFLAGS value to request large file support" >&5
24906 $as_echo_n "checking for CFLAGS value to request large file support... " >&6; }
24907 if ${ac_cv_sys_largefile_CFLAGS+:} false; then :
24908   $as_echo_n "(cached) " >&6
24909 else
24910   ac_cv_sys_largefile_CFLAGS=`($GETCONF LFS_CFLAGS) 2>/dev/null` || {
24911         ac_cv_sys_largefile_CFLAGS=no
24912         case "$host_os" in
24913            # IRIX 6.2 and later require cc -n32.
24914            irix6.[2-9]* | irix6.1[0-9]* | irix[7-9].* | irix[1-9][0-9]*)
24915              if test "$GCC" != yes; then
24916                ac_cv_sys_largefile_CFLAGS=-n32
24917              fi
24918              ac_save_CC="$CC"
24919              CC="$CC $ac_cv_sys_largefile_CFLAGS"
24920              cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24921 /* end confdefs.h.  */
24922
24923 int
24924 main ()
24925 {
24926
24927   ;
24928   return 0;
24929 }
24930 _ACEOF
24931 if ac_fn_c_try_link "$LINENO"; then :
24932
24933 else
24934   ac_cv_sys_largefile_CFLAGS=no
24935 fi
24936 rm -f core conftest.err conftest.$ac_objext \
24937     conftest$ac_exeext conftest.$ac_ext
24938              CC="$ac_save_CC"
24939            esac
24940       }
24941 fi
24942 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CFLAGS" >&5
24943 $as_echo "$ac_cv_sys_largefile_CFLAGS" >&6; }
24944      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LDFLAGS value to request large file support" >&5
24945 $as_echo_n "checking for LDFLAGS value to request large file support... " >&6; }
24946 if ${ac_cv_sys_largefile_LDFLAGS+:} false; then :
24947   $as_echo_n "(cached) " >&6
24948 else
24949   ac_cv_sys_largefile_LDFLAGS=`($GETCONF LFS_LDFLAGS) 2>/dev/null` || {
24950         ac_cv_sys_largefile_LDFLAGS=no
24951
24952       }
24953 fi
24954 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_LDFLAGS" >&5
24955 $as_echo "$ac_cv_sys_largefile_LDFLAGS" >&6; }
24956      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LIBS value to request large file support" >&5
24957 $as_echo_n "checking for LIBS value to request large file support... " >&6; }
24958 if ${ac_cv_sys_largefile_LIBS+:} false; then :
24959   $as_echo_n "(cached) " >&6
24960 else
24961   ac_cv_sys_largefile_LIBS=`($GETCONF LFS_LIBS) 2>/dev/null` || {
24962         ac_cv_sys_largefile_LIBS=no
24963
24964       }
24965 fi
24966 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_LIBS" >&5
24967 $as_echo "$ac_cv_sys_largefile_LIBS" >&6; }
24968
24969      for ac_flag in $ac_cv_sys_largefile_CFLAGS no; do
24970        case "$ac_flag" in
24971        no) ;;
24972        -D_FILE_OFFSET_BITS=*) ;;
24973        -D_LARGEFILE_SOURCE | -D_LARGEFILE_SOURCE=*) ;;
24974        -D_LARGE_FILES | -D_LARGE_FILES=*) ;;
24975        -D?* | -I?*)
24976          case "$ac_flag" in
24977    no) ;;
24978    ?*)
24979      case "$CPPFLAGS" in
24980      '') CPPFLAGS="$ac_flag" ;;
24981      *) CPPFLAGS=$CPPFLAGS' '"$ac_flag" ;;
24982      esac ;;
24983    esac ;;
24984        *)
24985          case "$ac_flag" in
24986    no) ;;
24987    ?*)
24988      case "$CFLAGS" in
24989      '') CFLAGS="$ac_flag" ;;
24990      *) CFLAGS=$CFLAGS' '"$ac_flag" ;;
24991      esac ;;
24992    esac ;;
24993        esac
24994      done
24995      case "$ac_cv_sys_largefile_LDFLAGS" in
24996    no) ;;
24997    ?*)
24998      case "$LDFLAGS" in
24999      '') LDFLAGS="$ac_cv_sys_largefile_LDFLAGS" ;;
25000      *) LDFLAGS=$LDFLAGS' '"$ac_cv_sys_largefile_LDFLAGS" ;;
25001      esac ;;
25002    esac
25003      case "$ac_cv_sys_largefile_LIBS" in
25004    no) ;;
25005    ?*)
25006      case "$LIBS" in
25007      '') LIBS="$ac_cv_sys_largefile_LIBS" ;;
25008      *) LIBS=$LIBS' '"$ac_cv_sys_largefile_LIBS" ;;
25009      esac ;;
25010    esac
25011      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS" >&5
25012 $as_echo_n "checking for _FILE_OFFSET_BITS... " >&6; }
25013 if ${ac_cv_sys_file_offset_bits+:} false; then :
25014   $as_echo_n "(cached) " >&6
25015 else
25016   ac_cv_sys_file_offset_bits=no
25017       ac_cv_sys_file_offset_bits=64
25018       for ac_flag in $ac_cv_sys_largefile_CFLAGS no; do
25019         case "$ac_flag" in
25020         -D_FILE_OFFSET_BITS)
25021           ac_cv_sys_file_offset_bits=1 ;;
25022         -D_FILE_OFFSET_BITS=*)
25023           ac_cv_sys_file_offset_bits=`expr " $ac_flag" : '[^=]*=\(.*\)'` ;;
25024         esac
25025       done
25026
25027 fi
25028 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
25029 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
25030    if test "$ac_cv_sys_file_offset_bits" != no; then
25031
25032 cat >>confdefs.h <<_ACEOF
25033 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
25034 _ACEOF
25035
25036    fi
25037      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGEFILE_SOURCE" >&5
25038 $as_echo_n "checking for _LARGEFILE_SOURCE... " >&6; }
25039 if ${ac_cv_sys_largefile_source+:} false; then :
25040   $as_echo_n "(cached) " >&6
25041 else
25042   ac_cv_sys_largefile_source=no
25043       ac_cv_sys_largefile_source=1
25044       for ac_flag in $ac_cv_sys_largefile_CFLAGS no; do
25045         case "$ac_flag" in
25046         -D_LARGEFILE_SOURCE)
25047           ac_cv_sys_largefile_source=1 ;;
25048         -D_LARGEFILE_SOURCE=*)
25049           ac_cv_sys_largefile_source=`expr " $ac_flag" : '[^=]*=\(.*\)'` ;;
25050         esac
25051       done
25052
25053 fi
25054 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_source" >&5
25055 $as_echo "$ac_cv_sys_largefile_source" >&6; }
25056    if test "$ac_cv_sys_largefile_source" != no; then
25057
25058 cat >>confdefs.h <<_ACEOF
25059 #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
25060 _ACEOF
25061
25062    fi
25063      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES" >&5
25064 $as_echo_n "checking for _LARGE_FILES... " >&6; }
25065 if ${ac_cv_sys_large_files+:} false; then :
25066   $as_echo_n "(cached) " >&6
25067 else
25068   ac_cv_sys_large_files=no
25069       ac_cv_sys_large_files=1
25070       for ac_flag in $ac_cv_sys_largefile_CFLAGS no; do
25071         case "$ac_flag" in
25072         -D_LARGE_FILES)
25073           ac_cv_sys_large_files=1 ;;
25074         -D_LARGE_FILES=*)
25075           ac_cv_sys_large_files=`expr " $ac_flag" : '[^=]*=\(.*\)'` ;;
25076         esac
25077       done
25078
25079 fi
25080 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
25081 $as_echo "$ac_cv_sys_large_files" >&6; }
25082    if test "$ac_cv_sys_large_files" != no; then
25083
25084 cat >>confdefs.h <<_ACEOF
25085 #define _LARGE_FILES $ac_cv_sys_large_files
25086 _ACEOF
25087
25088    fi
25089    fi
25090
25091
25092 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for X" >&5
25093 $as_echo_n "checking for X... " >&6; }
25094
25095
25096 # Check whether --with-x was given.
25097 if test "${with_x+set}" = set; then :
25098   withval=$with_x;
25099 fi
25100
25101 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
25102 if test "x$with_x" = xno; then
25103   # The user explicitly disabled X.
25104   have_x=disabled
25105 else
25106   case $x_includes,$x_libraries in #(
25107     *\'*) as_fn_error $? "cannot use X directory names containing '" "$LINENO" 5;; #(
25108     *,NONE | NONE,*) if ${ac_cv_have_x+:} false; then :
25109   $as_echo_n "(cached) " >&6
25110 else
25111   # One or both of the vars are not set, and there is no cached value.
25112 ac_x_includes=no ac_x_libraries=no
25113 rm -f -r conftest.dir
25114 if mkdir conftest.dir; then
25115   cd conftest.dir
25116   cat >Imakefile <<'_ACEOF'
25117 incroot:
25118         @echo incroot='${INCROOT}'
25119 usrlibdir:
25120         @echo usrlibdir='${USRLIBDIR}'
25121 libdir:
25122         @echo libdir='${LIBDIR}'
25123 _ACEOF
25124   if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
25125     # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
25126     for ac_var in incroot usrlibdir libdir; do
25127       eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
25128     done
25129     # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
25130     for ac_extension in a so sl dylib la dll; do
25131       if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
25132          test -f "$ac_im_libdir/libX11.$ac_extension"; then
25133         ac_im_usrlibdir=$ac_im_libdir; break
25134       fi
25135     done
25136     # Screen out bogus values from the imake configuration.  They are
25137     # bogus both because they are the default anyway, and because
25138     # using them would break gcc on systems where it needs fixed includes.
25139     case $ac_im_incroot in
25140         /usr/include) ac_x_includes= ;;
25141         *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
25142     esac
25143     case $ac_im_usrlibdir in
25144         /usr/lib | /usr/lib64 | /lib | /lib64) ;;
25145         *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
25146     esac
25147   fi
25148   cd ..
25149   rm -f -r conftest.dir
25150 fi
25151
25152 # Standard set of common directories for X headers.
25153 # Check X11 before X11Rn because it is often a symlink to the current release.
25154 ac_x_header_dirs='
25155 /usr/X11/include
25156 /usr/X11R7/include
25157 /usr/X11R6/include
25158 /usr/X11R5/include
25159 /usr/X11R4/include
25160
25161 /usr/include/X11
25162 /usr/include/X11R7
25163 /usr/include/X11R6
25164 /usr/include/X11R5
25165 /usr/include/X11R4
25166
25167 /usr/local/X11/include
25168 /usr/local/X11R7/include
25169 /usr/local/X11R6/include
25170 /usr/local/X11R5/include
25171 /usr/local/X11R4/include
25172
25173 /usr/local/include/X11
25174 /usr/local/include/X11R7
25175 /usr/local/include/X11R6
25176 /usr/local/include/X11R5
25177 /usr/local/include/X11R4
25178
25179 /usr/X386/include
25180 /usr/x386/include
25181 /usr/XFree86/include/X11
25182
25183 /usr/include
25184 /usr/local/include
25185 /usr/unsupported/include
25186 /usr/athena/include
25187 /usr/local/x11r5/include
25188 /usr/lpp/Xamples/include
25189
25190 /usr/openwin/include
25191 /usr/openwin/share/include'
25192
25193 if test "$ac_x_includes" = no; then
25194   # Guess where to find include files, by looking for Xlib.h.
25195   # First, try using that file with no special directory specified.
25196   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25197 /* end confdefs.h.  */
25198 #include <X11/Xlib.h>
25199 _ACEOF
25200 if ac_fn_c_try_cpp "$LINENO"; then :
25201   # We can compile using X headers with no special include directory.
25202 ac_x_includes=
25203 else
25204   for ac_dir in $ac_x_header_dirs; do
25205   if test -r "$ac_dir/X11/Xlib.h"; then
25206     ac_x_includes=$ac_dir
25207     break
25208   fi
25209 done
25210 fi
25211 rm -f conftest.err conftest.i conftest.$ac_ext
25212 fi # $ac_x_includes = no
25213
25214 if test "$ac_x_libraries" = no; then
25215   # Check for the libraries.
25216   # See if we find them without any special options.
25217   # Don't add to $LIBS permanently.
25218   ac_save_LIBS=$LIBS
25219   LIBS="-lX11 $LIBS"
25220   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25221 /* end confdefs.h.  */
25222 #include <X11/Xlib.h>
25223 int
25224 main ()
25225 {
25226 XrmInitialize ()
25227   ;
25228   return 0;
25229 }
25230 _ACEOF
25231 if ac_fn_c_try_link "$LINENO"; then :
25232   LIBS=$ac_save_LIBS
25233 # We can link X programs with no special library path.
25234 ac_x_libraries=
25235 else
25236   LIBS=$ac_save_LIBS
25237 for ac_dir in `$as_echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
25238 do
25239   # Don't even attempt the hair of trying to link an X program!
25240   for ac_extension in a so sl dylib la dll; do
25241     if test -r "$ac_dir/libX11.$ac_extension"; then
25242       ac_x_libraries=$ac_dir
25243       break 2
25244     fi
25245   done
25246 done
25247 fi
25248 rm -f core conftest.err conftest.$ac_objext \
25249     conftest$ac_exeext conftest.$ac_ext
25250 fi # $ac_x_libraries = no
25251
25252 case $ac_x_includes,$ac_x_libraries in #(
25253   no,* | *,no | *\'*)
25254     # Didn't find X, or a directory has "'" in its name.
25255     ac_cv_have_x="have_x=no";; #(
25256   *)
25257     # Record where we found X for the cache.
25258     ac_cv_have_x="have_x=yes\
25259         ac_x_includes='$ac_x_includes'\
25260         ac_x_libraries='$ac_x_libraries'"
25261 esac
25262 fi
25263 ;; #(
25264     *) have_x=yes;;
25265   esac
25266   eval "$ac_cv_have_x"
25267 fi # $with_x != no
25268
25269 if test "$have_x" != yes; then
25270   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_x" >&5
25271 $as_echo "$have_x" >&6; }
25272   no_x=yes
25273 else
25274   # If each of the values was on the command line, it overrides each guess.
25275   test "x$x_includes" = xNONE && x_includes=$ac_x_includes
25276   test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
25277   # Update the cache value to reflect the command line values.
25278   ac_cv_have_x="have_x=yes\
25279         ac_x_includes='$x_includes'\
25280         ac_x_libraries='$x_libraries'"
25281   { $as_echo "$as_me:${as_lineno-$LINENO}: result: libraries $x_libraries, headers $x_includes" >&5
25282 $as_echo "libraries $x_libraries, headers $x_includes" >&6; }
25283 fi
25284
25285 if test "$no_x" = yes; then
25286   # Not all programs may use this symbol, but it does not hurt to define it.
25287
25288 $as_echo "#define X_DISPLAY_MISSING 1" >>confdefs.h
25289
25290   X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
25291 else
25292   if test -n "$x_includes"; then
25293     X_CFLAGS="$X_CFLAGS -I$x_includes"
25294   fi
25295
25296   # It would also be nice to do this for all -L options, not just this one.
25297   if test -n "$x_libraries"; then
25298     X_LIBS="$X_LIBS -L$x_libraries"
25299     # For Solaris; some versions of Sun CC require a space after -R and
25300     # others require no space.  Words are not sufficient . . . .
25301     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -R must be followed by a space" >&5
25302 $as_echo_n "checking whether -R must be followed by a space... " >&6; }
25303     ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
25304     ac_xsave_c_werror_flag=$ac_c_werror_flag
25305     ac_c_werror_flag=yes
25306     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25307 /* end confdefs.h.  */
25308
25309 int
25310 main ()
25311 {
25312
25313   ;
25314   return 0;
25315 }
25316 _ACEOF
25317 if ac_fn_c_try_link "$LINENO"; then :
25318   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25319 $as_echo "no" >&6; }
25320        X_LIBS="$X_LIBS -R$x_libraries"
25321 else
25322   LIBS="$ac_xsave_LIBS -R $x_libraries"
25323        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25324 /* end confdefs.h.  */
25325
25326 int
25327 main ()
25328 {
25329
25330   ;
25331   return 0;
25332 }
25333 _ACEOF
25334 if ac_fn_c_try_link "$LINENO"; then :
25335   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
25336 $as_echo "yes" >&6; }
25337           X_LIBS="$X_LIBS -R $x_libraries"
25338 else
25339   { $as_echo "$as_me:${as_lineno-$LINENO}: result: neither works" >&5
25340 $as_echo "neither works" >&6; }
25341 fi
25342 rm -f core conftest.err conftest.$ac_objext \
25343     conftest$ac_exeext conftest.$ac_ext
25344 fi
25345 rm -f core conftest.err conftest.$ac_objext \
25346     conftest$ac_exeext conftest.$ac_ext
25347     ac_c_werror_flag=$ac_xsave_c_werror_flag
25348     LIBS=$ac_xsave_LIBS
25349   fi
25350
25351   # Check for system-dependent libraries X programs must link with.
25352   # Do this before checking for the system-independent R6 libraries
25353   # (-lICE), since we may need -lsocket or whatever for X linking.
25354
25355   if test "$ISC" = yes; then
25356     X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
25357   else
25358     # Martyn Johnson says this is needed for Ultrix, if the X
25359     # libraries were built with DECnet support.  And Karl Berry says
25360     # the Alpha needs dnet_stub (dnet does not exist).
25361     ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
25362     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25363 /* end confdefs.h.  */
25364
25365 /* Override any GCC internal prototype to avoid an error.
25366    Use char because int might match the return type of a GCC
25367    builtin and then its argument prototype would still apply.  */
25368 #ifdef __cplusplus
25369 extern "C"
25370 #endif
25371 char XOpenDisplay ();
25372 int
25373 main ()
25374 {
25375 return XOpenDisplay ();
25376   ;
25377   return 0;
25378 }
25379 _ACEOF
25380 if ac_fn_c_try_link "$LINENO"; then :
25381
25382 else
25383   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet" >&5
25384 $as_echo_n "checking for dnet_ntoa in -ldnet... " >&6; }
25385 if ${ac_cv_lib_dnet_dnet_ntoa+:} false; then :
25386   $as_echo_n "(cached) " >&6
25387 else
25388   ac_check_lib_save_LIBS=$LIBS
25389 LIBS="-ldnet  $LIBS"
25390 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25391 /* end confdefs.h.  */
25392
25393 /* Override any GCC internal prototype to avoid an error.
25394    Use char because int might match the return type of a GCC
25395    builtin and then its argument prototype would still apply.  */
25396 #ifdef __cplusplus
25397 extern "C"
25398 #endif
25399 char dnet_ntoa ();
25400 int
25401 main ()
25402 {
25403 return dnet_ntoa ();
25404   ;
25405   return 0;
25406 }
25407 _ACEOF
25408 if ac_fn_c_try_link "$LINENO"; then :
25409   ac_cv_lib_dnet_dnet_ntoa=yes
25410 else
25411   ac_cv_lib_dnet_dnet_ntoa=no
25412 fi
25413 rm -f core conftest.err conftest.$ac_objext \
25414     conftest$ac_exeext conftest.$ac_ext
25415 LIBS=$ac_check_lib_save_LIBS
25416 fi
25417 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
25418 $as_echo "$ac_cv_lib_dnet_dnet_ntoa" >&6; }
25419 if test "x$ac_cv_lib_dnet_dnet_ntoa" = xyes; then :
25420   X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
25421 fi
25422
25423     if test $ac_cv_lib_dnet_dnet_ntoa = no; then
25424       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet_stub" >&5
25425 $as_echo_n "checking for dnet_ntoa in -ldnet_stub... " >&6; }
25426 if ${ac_cv_lib_dnet_stub_dnet_ntoa+:} false; then :
25427   $as_echo_n "(cached) " >&6
25428 else
25429   ac_check_lib_save_LIBS=$LIBS
25430 LIBS="-ldnet_stub  $LIBS"
25431 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25432 /* end confdefs.h.  */
25433
25434 /* Override any GCC internal prototype to avoid an error.
25435    Use char because int might match the return type of a GCC
25436    builtin and then its argument prototype would still apply.  */
25437 #ifdef __cplusplus
25438 extern "C"
25439 #endif
25440 char dnet_ntoa ();
25441 int
25442 main ()
25443 {
25444 return dnet_ntoa ();
25445   ;
25446   return 0;
25447 }
25448 _ACEOF
25449 if ac_fn_c_try_link "$LINENO"; then :
25450   ac_cv_lib_dnet_stub_dnet_ntoa=yes
25451 else
25452   ac_cv_lib_dnet_stub_dnet_ntoa=no
25453 fi
25454 rm -f core conftest.err conftest.$ac_objext \
25455     conftest$ac_exeext conftest.$ac_ext
25456 LIBS=$ac_check_lib_save_LIBS
25457 fi
25458 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
25459 $as_echo "$ac_cv_lib_dnet_stub_dnet_ntoa" >&6; }
25460 if test "x$ac_cv_lib_dnet_stub_dnet_ntoa" = xyes; then :
25461   X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
25462 fi
25463
25464     fi
25465 fi
25466 rm -f core conftest.err conftest.$ac_objext \
25467     conftest$ac_exeext conftest.$ac_ext
25468     LIBS="$ac_xsave_LIBS"
25469
25470     # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
25471     # to get the SysV transport functions.
25472     # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
25473     # needs -lnsl.
25474     # The nsl library prevents programs from opening the X display
25475     # on Irix 5.2, according to T.E. Dickey.
25476     # The functions gethostbyname, getservbyname, and inet_addr are
25477     # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
25478     ac_fn_c_check_func "$LINENO" "gethostbyname" "ac_cv_func_gethostbyname"
25479 if test "x$ac_cv_func_gethostbyname" = xyes; then :
25480
25481 fi
25482
25483     if test $ac_cv_func_gethostbyname = no; then
25484       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lnsl" >&5
25485 $as_echo_n "checking for gethostbyname in -lnsl... " >&6; }
25486 if ${ac_cv_lib_nsl_gethostbyname+:} false; then :
25487   $as_echo_n "(cached) " >&6
25488 else
25489   ac_check_lib_save_LIBS=$LIBS
25490 LIBS="-lnsl  $LIBS"
25491 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25492 /* end confdefs.h.  */
25493
25494 /* Override any GCC internal prototype to avoid an error.
25495    Use char because int might match the return type of a GCC
25496    builtin and then its argument prototype would still apply.  */
25497 #ifdef __cplusplus
25498 extern "C"
25499 #endif
25500 char gethostbyname ();
25501 int
25502 main ()
25503 {
25504 return gethostbyname ();
25505   ;
25506   return 0;
25507 }
25508 _ACEOF
25509 if ac_fn_c_try_link "$LINENO"; then :
25510   ac_cv_lib_nsl_gethostbyname=yes
25511 else
25512   ac_cv_lib_nsl_gethostbyname=no
25513 fi
25514 rm -f core conftest.err conftest.$ac_objext \
25515     conftest$ac_exeext conftest.$ac_ext
25516 LIBS=$ac_check_lib_save_LIBS
25517 fi
25518 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_gethostbyname" >&5
25519 $as_echo "$ac_cv_lib_nsl_gethostbyname" >&6; }
25520 if test "x$ac_cv_lib_nsl_gethostbyname" = xyes; then :
25521   X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
25522 fi
25523
25524       if test $ac_cv_lib_nsl_gethostbyname = no; then
25525         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lbsd" >&5
25526 $as_echo_n "checking for gethostbyname in -lbsd... " >&6; }
25527 if ${ac_cv_lib_bsd_gethostbyname+:} false; then :
25528   $as_echo_n "(cached) " >&6
25529 else
25530   ac_check_lib_save_LIBS=$LIBS
25531 LIBS="-lbsd  $LIBS"
25532 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25533 /* end confdefs.h.  */
25534
25535 /* Override any GCC internal prototype to avoid an error.
25536    Use char because int might match the return type of a GCC
25537    builtin and then its argument prototype would still apply.  */
25538 #ifdef __cplusplus
25539 extern "C"
25540 #endif
25541 char gethostbyname ();
25542 int
25543 main ()
25544 {
25545 return gethostbyname ();
25546   ;
25547   return 0;
25548 }
25549 _ACEOF
25550 if ac_fn_c_try_link "$LINENO"; then :
25551   ac_cv_lib_bsd_gethostbyname=yes
25552 else
25553   ac_cv_lib_bsd_gethostbyname=no
25554 fi
25555 rm -f core conftest.err conftest.$ac_objext \
25556     conftest$ac_exeext conftest.$ac_ext
25557 LIBS=$ac_check_lib_save_LIBS
25558 fi
25559 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bsd_gethostbyname" >&5
25560 $as_echo "$ac_cv_lib_bsd_gethostbyname" >&6; }
25561 if test "x$ac_cv_lib_bsd_gethostbyname" = xyes; then :
25562   X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
25563 fi
25564
25565       fi
25566     fi
25567
25568     # lieder@skyler.mavd.honeywell.com says without -lsocket,
25569     # socket/setsockopt and other routines are undefined under SCO ODT
25570     # 2.0.  But -lsocket is broken on IRIX 5.2 (and is not necessary
25571     # on later versions), says Simon Leinen: it contains gethostby*
25572     # variants that don't use the name server (or something).  -lsocket
25573     # must be given before -lnsl if both are needed.  We assume that
25574     # if connect needs -lnsl, so does gethostbyname.
25575     ac_fn_c_check_func "$LINENO" "connect" "ac_cv_func_connect"
25576 if test "x$ac_cv_func_connect" = xyes; then :
25577
25578 fi
25579
25580     if test $ac_cv_func_connect = no; then
25581       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for connect in -lsocket" >&5
25582 $as_echo_n "checking for connect in -lsocket... " >&6; }
25583 if ${ac_cv_lib_socket_connect+:} false; then :
25584   $as_echo_n "(cached) " >&6
25585 else
25586   ac_check_lib_save_LIBS=$LIBS
25587 LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
25588 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25589 /* end confdefs.h.  */
25590
25591 /* Override any GCC internal prototype to avoid an error.
25592    Use char because int might match the return type of a GCC
25593    builtin and then its argument prototype would still apply.  */
25594 #ifdef __cplusplus
25595 extern "C"
25596 #endif
25597 char connect ();
25598 int
25599 main ()
25600 {
25601 return connect ();
25602   ;
25603   return 0;
25604 }
25605 _ACEOF
25606 if ac_fn_c_try_link "$LINENO"; then :
25607   ac_cv_lib_socket_connect=yes
25608 else
25609   ac_cv_lib_socket_connect=no
25610 fi
25611 rm -f core conftest.err conftest.$ac_objext \
25612     conftest$ac_exeext conftest.$ac_ext
25613 LIBS=$ac_check_lib_save_LIBS
25614 fi
25615 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_connect" >&5
25616 $as_echo "$ac_cv_lib_socket_connect" >&6; }
25617 if test "x$ac_cv_lib_socket_connect" = xyes; then :
25618   X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
25619 fi
25620
25621     fi
25622
25623     # Guillermo Gomez says -lposix is necessary on A/UX.
25624     ac_fn_c_check_func "$LINENO" "remove" "ac_cv_func_remove"
25625 if test "x$ac_cv_func_remove" = xyes; then :
25626
25627 fi
25628
25629     if test $ac_cv_func_remove = no; then
25630       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for remove in -lposix" >&5
25631 $as_echo_n "checking for remove in -lposix... " >&6; }
25632 if ${ac_cv_lib_posix_remove+:} false; then :
25633   $as_echo_n "(cached) " >&6
25634 else
25635   ac_check_lib_save_LIBS=$LIBS
25636 LIBS="-lposix  $LIBS"
25637 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25638 /* end confdefs.h.  */
25639
25640 /* Override any GCC internal prototype to avoid an error.
25641    Use char because int might match the return type of a GCC
25642    builtin and then its argument prototype would still apply.  */
25643 #ifdef __cplusplus
25644 extern "C"
25645 #endif
25646 char remove ();
25647 int
25648 main ()
25649 {
25650 return remove ();
25651   ;
25652   return 0;
25653 }
25654 _ACEOF
25655 if ac_fn_c_try_link "$LINENO"; then :
25656   ac_cv_lib_posix_remove=yes
25657 else
25658   ac_cv_lib_posix_remove=no
25659 fi
25660 rm -f core conftest.err conftest.$ac_objext \
25661     conftest$ac_exeext conftest.$ac_ext
25662 LIBS=$ac_check_lib_save_LIBS
25663 fi
25664 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_posix_remove" >&5
25665 $as_echo "$ac_cv_lib_posix_remove" >&6; }
25666 if test "x$ac_cv_lib_posix_remove" = xyes; then :
25667   X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
25668 fi
25669
25670     fi
25671
25672     # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
25673     ac_fn_c_check_func "$LINENO" "shmat" "ac_cv_func_shmat"
25674 if test "x$ac_cv_func_shmat" = xyes; then :
25675
25676 fi
25677
25678     if test $ac_cv_func_shmat = no; then
25679       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shmat in -lipc" >&5
25680 $as_echo_n "checking for shmat in -lipc... " >&6; }
25681 if ${ac_cv_lib_ipc_shmat+:} false; then :
25682   $as_echo_n "(cached) " >&6
25683 else
25684   ac_check_lib_save_LIBS=$LIBS
25685 LIBS="-lipc  $LIBS"
25686 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25687 /* end confdefs.h.  */
25688
25689 /* Override any GCC internal prototype to avoid an error.
25690    Use char because int might match the return type of a GCC
25691    builtin and then its argument prototype would still apply.  */
25692 #ifdef __cplusplus
25693 extern "C"
25694 #endif
25695 char shmat ();
25696 int
25697 main ()
25698 {
25699 return shmat ();
25700   ;
25701   return 0;
25702 }
25703 _ACEOF
25704 if ac_fn_c_try_link "$LINENO"; then :
25705   ac_cv_lib_ipc_shmat=yes
25706 else
25707   ac_cv_lib_ipc_shmat=no
25708 fi
25709 rm -f core conftest.err conftest.$ac_objext \
25710     conftest$ac_exeext conftest.$ac_ext
25711 LIBS=$ac_check_lib_save_LIBS
25712 fi
25713 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ipc_shmat" >&5
25714 $as_echo "$ac_cv_lib_ipc_shmat" >&6; }
25715 if test "x$ac_cv_lib_ipc_shmat" = xyes; then :
25716   X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
25717 fi
25718
25719     fi
25720   fi
25721
25722   # Check for libraries that X11R6 Xt/Xaw programs need.
25723   ac_save_LDFLAGS=$LDFLAGS
25724   test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
25725   # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
25726   # check for ICE first), but we must link in the order -lSM -lICE or
25727   # we get undefined symbols.  So assume we have SM if we have ICE.
25728   # These have to be linked with before -lX11, unlike the other
25729   # libraries we check for below, so use a different variable.
25730   # John Interrante, Karl Berry
25731   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for IceConnectionNumber in -lICE" >&5
25732 $as_echo_n "checking for IceConnectionNumber in -lICE... " >&6; }
25733 if ${ac_cv_lib_ICE_IceConnectionNumber+:} false; then :
25734   $as_echo_n "(cached) " >&6
25735 else
25736   ac_check_lib_save_LIBS=$LIBS
25737 LIBS="-lICE $X_EXTRA_LIBS $LIBS"
25738 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25739 /* end confdefs.h.  */
25740
25741 /* Override any GCC internal prototype to avoid an error.
25742    Use char because int might match the return type of a GCC
25743    builtin and then its argument prototype would still apply.  */
25744 #ifdef __cplusplus
25745 extern "C"
25746 #endif
25747 char IceConnectionNumber ();
25748 int
25749 main ()
25750 {
25751 return IceConnectionNumber ();
25752   ;
25753   return 0;
25754 }
25755 _ACEOF
25756 if ac_fn_c_try_link "$LINENO"; then :
25757   ac_cv_lib_ICE_IceConnectionNumber=yes
25758 else
25759   ac_cv_lib_ICE_IceConnectionNumber=no
25760 fi
25761 rm -f core conftest.err conftest.$ac_objext \
25762     conftest$ac_exeext conftest.$ac_ext
25763 LIBS=$ac_check_lib_save_LIBS
25764 fi
25765 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
25766 $as_echo "$ac_cv_lib_ICE_IceConnectionNumber" >&6; }
25767 if test "x$ac_cv_lib_ICE_IceConnectionNumber" = xyes; then :
25768   X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
25769 fi
25770
25771   LDFLAGS=$ac_save_LDFLAGS
25772
25773 fi
25774
25775
25776 for ac_header in \
25777    assert.h \
25778    fcntl.h \
25779    grp.h \
25780    pwd.h \
25781    libc.h \
25782    limits.h \
25783    stdarg.h \
25784    stdlib.h \
25785    stdint.h \
25786    inttypes.h \
25787    string.h \
25788    strings.h \
25789    termios.h \
25790    termcap.h \
25791    term.h \
25792    unistd.h \
25793    sys/bitypes.h \
25794    sys/byteorder.h \
25795    sys/ioctl.h \
25796    sys/select.h \
25797    sys/socket.h \
25798    sys/sockio.h \
25799    sys/stat.h \
25800    sys/time.h \
25801    sys/types.h \
25802    arpa/nameser.h \
25803    mtio.h \
25804    sys/mtio.h \
25805    sys/tape.h \
25806    regex.h \
25807
25808 do :
25809   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
25810 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
25811 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
25812   cat >>confdefs.h <<_ACEOF
25813 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
25814 _ACEOF
25815
25816 fi
25817
25818 done
25819
25820 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
25821 $as_echo_n "checking for ANSI C header files... " >&6; }
25822 if ${ac_cv_header_stdc+:} false; then :
25823   $as_echo_n "(cached) " >&6
25824 else
25825   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25826 /* end confdefs.h.  */
25827 #include <stdlib.h>
25828 #include <stdarg.h>
25829 #include <string.h>
25830 #include <float.h>
25831
25832 int
25833 main ()
25834 {
25835
25836   ;
25837   return 0;
25838 }
25839 _ACEOF
25840 if ac_fn_c_try_compile "$LINENO"; then :
25841   ac_cv_header_stdc=yes
25842 else
25843   ac_cv_header_stdc=no
25844 fi
25845 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25846
25847 if test $ac_cv_header_stdc = yes; then
25848   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
25849   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25850 /* end confdefs.h.  */
25851 #include <string.h>
25852
25853 _ACEOF
25854 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
25855   $EGREP "memchr" >/dev/null 2>&1; then :
25856
25857 else
25858   ac_cv_header_stdc=no
25859 fi
25860 rm -f conftest*
25861
25862 fi
25863
25864 if test $ac_cv_header_stdc = yes; then
25865   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
25866   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25867 /* end confdefs.h.  */
25868 #include <stdlib.h>
25869
25870 _ACEOF
25871 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
25872   $EGREP "free" >/dev/null 2>&1; then :
25873
25874 else
25875   ac_cv_header_stdc=no
25876 fi
25877 rm -f conftest*
25878
25879 fi
25880
25881 if test $ac_cv_header_stdc = yes; then
25882   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
25883   if test "$cross_compiling" = yes; then :
25884   :
25885 else
25886   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25887 /* end confdefs.h.  */
25888 #include <ctype.h>
25889 #include <stdlib.h>
25890 #if ((' ' & 0x0FF) == 0x020)
25891 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
25892 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
25893 #else
25894 # define ISLOWER(c) \
25895                    (('a' <= (c) && (c) <= 'i') \
25896                      || ('j' <= (c) && (c) <= 'r') \
25897                      || ('s' <= (c) && (c) <= 'z'))
25898 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
25899 #endif
25900
25901 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
25902 int
25903 main ()
25904 {
25905   int i;
25906   for (i = 0; i < 256; i++)
25907     if (XOR (islower (i), ISLOWER (i))
25908         || toupper (i) != TOUPPER (i))
25909       return 2;
25910   return 0;
25911 }
25912 _ACEOF
25913 if ac_fn_c_try_run "$LINENO"; then :
25914
25915 else
25916   ac_cv_header_stdc=no
25917 fi
25918 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
25919   conftest.$ac_objext conftest.beam conftest.$ac_ext
25920 fi
25921
25922 fi
25923 fi
25924 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
25925 $as_echo "$ac_cv_header_stdc" >&6; }
25926 if test $ac_cv_header_stdc = yes; then
25927
25928 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
25929
25930 fi
25931
25932 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether sys/types.h defines makedev" >&5
25933 $as_echo_n "checking whether sys/types.h defines makedev... " >&6; }
25934 if ${ac_cv_header_sys_types_h_makedev+:} false; then :
25935   $as_echo_n "(cached) " >&6
25936 else
25937   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25938 /* end confdefs.h.  */
25939 #include <sys/types.h>
25940 int
25941 main ()
25942 {
25943 return makedev(0, 0);
25944   ;
25945   return 0;
25946 }
25947 _ACEOF
25948 if ac_fn_c_try_link "$LINENO"; then :
25949   ac_cv_header_sys_types_h_makedev=yes
25950 else
25951   ac_cv_header_sys_types_h_makedev=no
25952 fi
25953 rm -f core conftest.err conftest.$ac_objext \
25954     conftest$ac_exeext conftest.$ac_ext
25955
25956 fi
25957 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_types_h_makedev" >&5
25958 $as_echo "$ac_cv_header_sys_types_h_makedev" >&6; }
25959
25960 if test $ac_cv_header_sys_types_h_makedev = no; then
25961 ac_fn_c_check_header_mongrel "$LINENO" "sys/mkdev.h" "ac_cv_header_sys_mkdev_h" "$ac_includes_default"
25962 if test "x$ac_cv_header_sys_mkdev_h" = xyes; then :
25963
25964 $as_echo "#define MAJOR_IN_MKDEV 1" >>confdefs.h
25965
25966 fi
25967
25968
25969
25970   if test $ac_cv_header_sys_mkdev_h = no; then
25971     ac_fn_c_check_header_mongrel "$LINENO" "sys/sysmacros.h" "ac_cv_header_sys_sysmacros_h" "$ac_includes_default"
25972 if test "x$ac_cv_header_sys_sysmacros_h" = xyes; then :
25973
25974 $as_echo "#define MAJOR_IN_SYSMACROS 1" >>confdefs.h
25975
25976 fi
25977
25978
25979   fi
25980 fi
25981
25982 ac_header_dirent=no
25983 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
25984   as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
25985 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_hdr that defines DIR" >&5
25986 $as_echo_n "checking for $ac_hdr that defines DIR... " >&6; }
25987 if eval \${$as_ac_Header+:} false; then :
25988   $as_echo_n "(cached) " >&6
25989 else
25990   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25991 /* end confdefs.h.  */
25992 #include <sys/types.h>
25993 #include <$ac_hdr>
25994
25995 int
25996 main ()
25997 {
25998 if ((DIR *) 0)
25999 return 0;
26000   ;
26001   return 0;
26002 }
26003 _ACEOF
26004 if ac_fn_c_try_compile "$LINENO"; then :
26005   eval "$as_ac_Header=yes"
26006 else
26007   eval "$as_ac_Header=no"
26008 fi
26009 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26010 fi
26011 eval ac_res=\$$as_ac_Header
26012                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
26013 $as_echo "$ac_res" >&6; }
26014 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
26015   cat >>confdefs.h <<_ACEOF
26016 #define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
26017 _ACEOF
26018
26019 ac_header_dirent=$ac_hdr; break
26020 fi
26021
26022 done
26023 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
26024 if test $ac_header_dirent = dirent.h; then
26025   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
26026 $as_echo_n "checking for library containing opendir... " >&6; }
26027 if ${ac_cv_search_opendir+:} false; then :
26028   $as_echo_n "(cached) " >&6
26029 else
26030   ac_func_search_save_LIBS=$LIBS
26031 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26032 /* end confdefs.h.  */
26033
26034 /* Override any GCC internal prototype to avoid an error.
26035    Use char because int might match the return type of a GCC
26036    builtin and then its argument prototype would still apply.  */
26037 #ifdef __cplusplus
26038 extern "C"
26039 #endif
26040 char opendir ();
26041 int
26042 main ()
26043 {
26044 return opendir ();
26045   ;
26046   return 0;
26047 }
26048 _ACEOF
26049 for ac_lib in '' dir; do
26050   if test -z "$ac_lib"; then
26051     ac_res="none required"
26052   else
26053     ac_res=-l$ac_lib
26054     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
26055   fi
26056   if ac_fn_c_try_link "$LINENO"; then :
26057   ac_cv_search_opendir=$ac_res
26058 fi
26059 rm -f core conftest.err conftest.$ac_objext \
26060     conftest$ac_exeext
26061   if ${ac_cv_search_opendir+:} false; then :
26062   break
26063 fi
26064 done
26065 if ${ac_cv_search_opendir+:} false; then :
26066
26067 else
26068   ac_cv_search_opendir=no
26069 fi
26070 rm conftest.$ac_ext
26071 LIBS=$ac_func_search_save_LIBS
26072 fi
26073 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
26074 $as_echo "$ac_cv_search_opendir" >&6; }
26075 ac_res=$ac_cv_search_opendir
26076 if test "$ac_res" != no; then :
26077   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
26078
26079 fi
26080
26081 else
26082   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
26083 $as_echo_n "checking for library containing opendir... " >&6; }
26084 if ${ac_cv_search_opendir+:} false; then :
26085   $as_echo_n "(cached) " >&6
26086 else
26087   ac_func_search_save_LIBS=$LIBS
26088 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26089 /* end confdefs.h.  */
26090
26091 /* Override any GCC internal prototype to avoid an error.
26092    Use char because int might match the return type of a GCC
26093    builtin and then its argument prototype would still apply.  */
26094 #ifdef __cplusplus
26095 extern "C"
26096 #endif
26097 char opendir ();
26098 int
26099 main ()
26100 {
26101 return opendir ();
26102   ;
26103   return 0;
26104 }
26105 _ACEOF
26106 for ac_lib in '' x; do
26107   if test -z "$ac_lib"; then
26108     ac_res="none required"
26109   else
26110     ac_res=-l$ac_lib
26111     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
26112   fi
26113   if ac_fn_c_try_link "$LINENO"; then :
26114   ac_cv_search_opendir=$ac_res
26115 fi
26116 rm -f core conftest.err conftest.$ac_objext \
26117     conftest$ac_exeext
26118   if ${ac_cv_search_opendir+:} false; then :
26119   break
26120 fi
26121 done
26122 if ${ac_cv_search_opendir+:} false; then :
26123
26124 else
26125   ac_cv_search_opendir=no
26126 fi
26127 rm conftest.$ac_ext
26128 LIBS=$ac_func_search_save_LIBS
26129 fi
26130 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
26131 $as_echo "$ac_cv_search_opendir" >&6; }
26132 ac_res=$ac_cv_search_opendir
26133 if test "$ac_res" != no; then :
26134   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
26135
26136 fi
26137
26138 fi
26139
26140 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat file-mode macros are broken" >&5
26141 $as_echo_n "checking whether stat file-mode macros are broken... " >&6; }
26142 if ${ac_cv_header_stat_broken+:} false; then :
26143   $as_echo_n "(cached) " >&6
26144 else
26145   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26146 /* end confdefs.h.  */
26147 #include <sys/types.h>
26148 #include <sys/stat.h>
26149
26150 #if defined S_ISBLK && defined S_IFDIR
26151 extern char c1[S_ISBLK (S_IFDIR) ? -1 : 1];
26152 #endif
26153
26154 #if defined S_ISBLK && defined S_IFCHR
26155 extern char c2[S_ISBLK (S_IFCHR) ? -1 : 1];
26156 #endif
26157
26158 #if defined S_ISLNK && defined S_IFREG
26159 extern char c3[S_ISLNK (S_IFREG) ? -1 : 1];
26160 #endif
26161
26162 #if defined S_ISSOCK && defined S_IFREG
26163 extern char c4[S_ISSOCK (S_IFREG) ? -1 : 1];
26164 #endif
26165
26166 _ACEOF
26167 if ac_fn_c_try_compile "$LINENO"; then :
26168   ac_cv_header_stat_broken=no
26169 else
26170   ac_cv_header_stat_broken=yes
26171 fi
26172 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26173 fi
26174 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stat_broken" >&5
26175 $as_echo "$ac_cv_header_stat_broken" >&6; }
26176 if test $ac_cv_header_stat_broken = yes; then
26177
26178 $as_echo "#define STAT_MACROS_BROKEN 1" >>confdefs.h
26179
26180 fi
26181
26182 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sys/wait.h that is POSIX.1 compatible" >&5
26183 $as_echo_n "checking for sys/wait.h that is POSIX.1 compatible... " >&6; }
26184 if ${ac_cv_header_sys_wait_h+:} false; then :
26185   $as_echo_n "(cached) " >&6
26186 else
26187   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26188 /* end confdefs.h.  */
26189 #include <sys/types.h>
26190 #include <sys/wait.h>
26191 #ifndef WEXITSTATUS
26192 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
26193 #endif
26194 #ifndef WIFEXITED
26195 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
26196 #endif
26197
26198 int
26199 main ()
26200 {
26201   int s;
26202   wait (&s);
26203   s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
26204   ;
26205   return 0;
26206 }
26207 _ACEOF
26208 if ac_fn_c_try_compile "$LINENO"; then :
26209   ac_cv_header_sys_wait_h=yes
26210 else
26211   ac_cv_header_sys_wait_h=no
26212 fi
26213 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26214 fi
26215 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_wait_h" >&5
26216 $as_echo "$ac_cv_header_sys_wait_h" >&6; }
26217 if test $ac_cv_header_sys_wait_h = yes; then
26218
26219 $as_echo "#define HAVE_SYS_WAIT_H 1" >>confdefs.h
26220
26221 fi
26222
26223 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
26224 $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
26225 if ${ac_cv_header_time+:} false; then :
26226   $as_echo_n "(cached) " >&6
26227 else
26228   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26229 /* end confdefs.h.  */
26230 #include <sys/types.h>
26231 #include <sys/time.h>
26232 #include <time.h>
26233
26234 int
26235 main ()
26236 {
26237 if ((struct tm *) 0)
26238 return 0;
26239   ;
26240   return 0;
26241 }
26242 _ACEOF
26243 if ac_fn_c_try_compile "$LINENO"; then :
26244   ac_cv_header_time=yes
26245 else
26246   ac_cv_header_time=no
26247 fi
26248 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26249 fi
26250 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
26251 $as_echo "$ac_cv_header_time" >&6; }
26252 if test $ac_cv_header_time = yes; then
26253
26254 $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
26255
26256 fi
26257
26258 ac_fn_c_check_member "$LINENO" "struct stat" "st_blksize" "ac_cv_member_struct_stat_st_blksize" "$ac_includes_default"
26259 if test "x$ac_cv_member_struct_stat_st_blksize" = xyes; then :
26260
26261 cat >>confdefs.h <<_ACEOF
26262 #define HAVE_STRUCT_STAT_ST_BLKSIZE 1
26263 _ACEOF
26264
26265
26266 $as_echo "#define HAVE_ST_BLKSIZE 1" >>confdefs.h
26267
26268 fi
26269
26270
26271 ac_fn_c_check_member "$LINENO" "struct stat" "st_blocks" "ac_cv_member_struct_stat_st_blocks" "$ac_includes_default"
26272 if test "x$ac_cv_member_struct_stat_st_blocks" = xyes; then :
26273
26274 cat >>confdefs.h <<_ACEOF
26275 #define HAVE_STRUCT_STAT_ST_BLOCKS 1
26276 _ACEOF
26277
26278
26279 $as_echo "#define HAVE_ST_BLOCKS 1" >>confdefs.h
26280
26281 else
26282   case " $LIBOBJS " in
26283   *" fileblocks.$ac_objext "* ) ;;
26284   *) LIBOBJS="$LIBOBJS fileblocks.$ac_objext"
26285  ;;
26286 esac
26287
26288 fi
26289
26290
26291 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct tm is in sys/time.h or time.h" >&5
26292 $as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
26293 if ${ac_cv_struct_tm+:} false; then :
26294   $as_echo_n "(cached) " >&6
26295 else
26296   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26297 /* end confdefs.h.  */
26298 #include <sys/types.h>
26299 #include <time.h>
26300
26301 int
26302 main ()
26303 {
26304 struct tm tm;
26305                                      int *p = &tm.tm_sec;
26306                                      return !p;
26307   ;
26308   return 0;
26309 }
26310 _ACEOF
26311 if ac_fn_c_try_compile "$LINENO"; then :
26312   ac_cv_struct_tm=time.h
26313 else
26314   ac_cv_struct_tm=sys/time.h
26315 fi
26316 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26317 fi
26318 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm" >&5
26319 $as_echo "$ac_cv_struct_tm" >&6; }
26320 if test $ac_cv_struct_tm = sys/time.h; then
26321
26322 $as_echo "#define TM_IN_SYS_TIME 1" >>confdefs.h
26323
26324 fi
26325
26326 ac_fn_c_check_member "$LINENO" "struct tm" "tm_zone" "ac_cv_member_struct_tm_tm_zone" "#include <sys/types.h>
26327 #include <$ac_cv_struct_tm>
26328
26329 "
26330 if test "x$ac_cv_member_struct_tm_tm_zone" = xyes; then :
26331
26332 cat >>confdefs.h <<_ACEOF
26333 #define HAVE_STRUCT_TM_TM_ZONE 1
26334 _ACEOF
26335
26336
26337 fi
26338
26339 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
26340
26341 $as_echo "#define HAVE_TM_ZONE 1" >>confdefs.h
26342
26343 else
26344   ac_fn_c_check_decl "$LINENO" "tzname" "ac_cv_have_decl_tzname" "#include <time.h>
26345 "
26346 if test "x$ac_cv_have_decl_tzname" = xyes; then :
26347   ac_have_decl=1
26348 else
26349   ac_have_decl=0
26350 fi
26351
26352 cat >>confdefs.h <<_ACEOF
26353 #define HAVE_DECL_TZNAME $ac_have_decl
26354 _ACEOF
26355
26356   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tzname" >&5
26357 $as_echo_n "checking for tzname... " >&6; }
26358 if ${ac_cv_var_tzname+:} false; then :
26359   $as_echo_n "(cached) " >&6
26360 else
26361   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26362 /* end confdefs.h.  */
26363 #include <time.h>
26364 #if !HAVE_DECL_TZNAME
26365 extern char *tzname[];
26366 #endif
26367
26368 int
26369 main ()
26370 {
26371 return tzname[0][0];
26372   ;
26373   return 0;
26374 }
26375 _ACEOF
26376 if ac_fn_c_try_link "$LINENO"; then :
26377   ac_cv_var_tzname=yes
26378 else
26379   ac_cv_var_tzname=no
26380 fi
26381 rm -f core conftest.err conftest.$ac_objext \
26382     conftest$ac_exeext conftest.$ac_ext
26383 fi
26384 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_var_tzname" >&5
26385 $as_echo "$ac_cv_var_tzname" >&6; }
26386   if test $ac_cv_var_tzname = yes; then
26387
26388 $as_echo "#define HAVE_TZNAME 1" >>confdefs.h
26389
26390   fi
26391 fi
26392
26393
26394 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for utime.h" >&5
26395 $as_echo_n "checking for utime.h... " >&6; }
26396 if ${ba_cv_header_utime_h+:} false; then :
26397   $as_echo_n "(cached) " >&6
26398 else
26399
26400        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26401 /* end confdefs.h.  */
26402
26403               #include <sys/types.h>
26404               #include <utime.h>
26405
26406 int
26407 main ()
26408 {
26409
26410               struct utimbuf foo
26411
26412   ;
26413   return 0;
26414 }
26415 _ACEOF
26416 if ac_fn_c_try_compile "$LINENO"; then :
26417
26418               ba_cv_header_utime_h=yes
26419
26420 else
26421
26422               ba_cv_header_utime_h=no
26423
26424
26425 fi
26426 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26427
26428
26429 fi
26430 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ba_cv_header_utime_h" >&5
26431 $as_echo "$ba_cv_header_utime_h" >&6; }
26432 test $ba_cv_header_utime_h = yes &&
26433 $as_echo "#define HAVE_UTIME_H 1" >>confdefs.h
26434
26435
26436 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socklen_t" >&5
26437 $as_echo_n "checking for socklen_t... " >&6; }
26438 if ${ba_cv_header_socklen_t+:} false; then :
26439   $as_echo_n "(cached) " >&6
26440 else
26441
26442        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26443 /* end confdefs.h.  */
26444
26445               #include <sys/types.h>
26446               #include <sys/socket.h>
26447
26448 int
26449 main ()
26450 {
26451
26452               socklen_t x
26453
26454   ;
26455   return 0;
26456 }
26457 _ACEOF
26458 if ac_fn_c_try_compile "$LINENO"; then :
26459
26460              ba_cv_header_socklen_t=yes
26461
26462 else
26463
26464              ba_cv_header_socklen_t=no
26465
26466
26467 fi
26468 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26469
26470
26471 fi
26472 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ba_cv_header_socklen_t" >&5
26473 $as_echo "$ba_cv_header_socklen_t" >&6; }
26474 test $ba_cv_header_socklen_t = yes &&
26475 $as_echo "#define HAVE_SOCKLEN_T 1" >>confdefs.h
26476
26477
26478 ac_ext=cpp
26479 ac_cpp='$CXXCPP $CPPFLAGS'
26480 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26481 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26482 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
26483
26484 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ioctl_req_t" >&5
26485 $as_echo_n "checking for ioctl_req_t... " >&6; }
26486 if ${ba_cv_header_ioctl_req_t+:} false; then :
26487   $as_echo_n "(cached) " >&6
26488 else
26489
26490        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26491 /* end confdefs.h.  */
26492
26493               #include <unistd.h>
26494               #include <sys/types.h>
26495               #include <sys/ioctl.h>
26496
26497 int
26498 main ()
26499 {
26500
26501               int (*d_ioctl)(int fd, unsigned long int request, ...);
26502               d_ioctl = ::ioctl;
26503
26504   ;
26505   return 0;
26506 }
26507 _ACEOF
26508 if ac_fn_cxx_try_compile "$LINENO"; then :
26509
26510              ba_cv_header_ioctl_req_t=yes
26511
26512 else
26513
26514              ba_cv_header_ioctl_req_t=no
26515
26516
26517 fi
26518 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26519
26520
26521 fi
26522 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ba_cv_header_ioctl_req_t" >&5
26523 $as_echo "$ba_cv_header_ioctl_req_t" >&6; }
26524 test $ba_cv_header_ioctl_req_t = yes &&
26525 $as_echo "#define HAVE_IOCTL_ULINT_REQUEST 1" >>confdefs.h
26526
26527
26528 ac_ext=c
26529 ac_cpp='$CPP $CPPFLAGS'
26530 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26531 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26532 ac_compiler_gnu=$ac_cv_c_compiler_gnu
26533
26534
26535 ac_ext=cpp
26536 ac_cpp='$CXXCPP $CPPFLAGS'
26537 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26538 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26539 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
26540
26541 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for typeof" >&5
26542 $as_echo_n "checking for typeof... " >&6; }
26543 if ${ba_cv_have_typeof+:} false; then :
26544   $as_echo_n "(cached) " >&6
26545 else
26546
26547        if test "$cross_compiling" = yes; then :
26548
26549               ba_cv_have_typeof=no
26550
26551
26552 else
26553   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26554 /* end confdefs.h.  */
26555
26556               main(){char *a = 0; a = (typeof a)a;}
26557
26558 _ACEOF
26559 if ac_fn_cxx_try_run "$LINENO"; then :
26560
26561               ba_cv_have_typeof=yes
26562
26563 else
26564
26565               ba_cv_have_typeof=no
26566
26567 fi
26568 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
26569   conftest.$ac_objext conftest.beam conftest.$ac_ext
26570 fi
26571
26572
26573
26574 fi
26575 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ba_cv_have_typeof" >&5
26576 $as_echo "$ba_cv_have_typeof" >&6; }
26577 test $ba_cv_have_typeof = yes &&
26578 $as_echo "#define HAVE_TYPEOF 1" >>confdefs.h
26579
26580 ac_ext=c
26581 ac_cpp='$CPP $CPPFLAGS'
26582 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26583 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26584 ac_compiler_gnu=$ac_cv_c_compiler_gnu
26585
26586
26587 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
26588 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
26589 if ${ac_cv_c_const+:} false; then :
26590   $as_echo_n "(cached) " >&6
26591 else
26592   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26593 /* end confdefs.h.  */
26594
26595 int
26596 main ()
26597 {
26598 /* FIXME: Include the comments suggested by Paul. */
26599 #ifndef __cplusplus
26600   /* Ultrix mips cc rejects this.  */
26601   typedef int charset[2];
26602   const charset cs;
26603   /* SunOS 4.1.1 cc rejects this.  */
26604   char const *const *pcpcc;
26605   char **ppc;
26606   /* NEC SVR4.0.2 mips cc rejects this.  */
26607   struct point {int x, y;};
26608   static struct point const zero = {0,0};
26609   /* AIX XL C 1.02.0.0 rejects this.
26610      It does not let you subtract one const X* pointer from another in
26611      an arm of an if-expression whose if-part is not a constant
26612      expression */
26613   const char *g = "string";
26614   pcpcc = &g + (g ? g-g : 0);
26615   /* HPUX 7.0 cc rejects these. */
26616   ++pcpcc;
26617   ppc = (char**) pcpcc;
26618   pcpcc = (char const *const *) ppc;
26619   { /* SCO 3.2v4 cc rejects this.  */
26620     char *t;
26621     char const *s = 0 ? (char *) 0 : (char const *) 0;
26622
26623     *t++ = 0;
26624     if (s) return 0;
26625   }
26626   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
26627     int x[] = {25, 17};
26628     const int *foo = &x[0];
26629     ++foo;
26630   }
26631   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
26632     typedef const int *iptr;
26633     iptr p = 0;
26634     ++p;
26635   }
26636   { /* AIX XL C 1.02.0.0 rejects this saying
26637        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
26638     struct s { int j; const int *ap[3]; };
26639     struct s *b; b->j = 5;
26640   }
26641   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
26642     const int foo = 10;
26643     if (!foo) return 0;
26644   }
26645   return !cs[0] && !zero.x;
26646 #endif
26647
26648   ;
26649   return 0;
26650 }
26651 _ACEOF
26652 if ac_fn_c_try_compile "$LINENO"; then :
26653   ac_cv_c_const=yes
26654 else
26655   ac_cv_c_const=no
26656 fi
26657 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26658 fi
26659 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
26660 $as_echo "$ac_cv_c_const" >&6; }
26661 if test $ac_cv_c_const = no; then
26662
26663 $as_echo "#define const /**/" >>confdefs.h
26664
26665 fi
26666
26667
26668  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
26669 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
26670 if ${ac_cv_c_bigendian+:} false; then :
26671   $as_echo_n "(cached) " >&6
26672 else
26673   ac_cv_c_bigendian=unknown
26674     # See if we're dealing with a universal compiler.
26675     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26676 /* end confdefs.h.  */
26677 #ifndef __APPLE_CC__
26678                not a universal capable compiler
26679              #endif
26680              typedef int dummy;
26681
26682 _ACEOF
26683 if ac_fn_c_try_compile "$LINENO"; then :
26684
26685         # Check for potential -arch flags.  It is not universal unless
26686         # there are at least two -arch flags with different values.
26687         ac_arch=
26688         ac_prev=
26689         for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
26690          if test -n "$ac_prev"; then
26691            case $ac_word in
26692              i?86 | x86_64 | ppc | ppc64)
26693                if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
26694                  ac_arch=$ac_word
26695                else
26696                  ac_cv_c_bigendian=universal
26697                  break
26698                fi
26699                ;;
26700            esac
26701            ac_prev=
26702          elif test "x$ac_word" = "x-arch"; then
26703            ac_prev=arch
26704          fi
26705        done
26706 fi
26707 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26708     if test $ac_cv_c_bigendian = unknown; then
26709       # See if sys/param.h defines the BYTE_ORDER macro.
26710       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26711 /* end confdefs.h.  */
26712 #include <sys/types.h>
26713              #include <sys/param.h>
26714
26715 int
26716 main ()
26717 {
26718 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
26719                      && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
26720                      && LITTLE_ENDIAN)
26721               bogus endian macros
26722              #endif
26723
26724   ;
26725   return 0;
26726 }
26727 _ACEOF
26728 if ac_fn_c_try_compile "$LINENO"; then :
26729   # It does; now see whether it defined to BIG_ENDIAN or not.
26730          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26731 /* end confdefs.h.  */
26732 #include <sys/types.h>
26733                 #include <sys/param.h>
26734
26735 int
26736 main ()
26737 {
26738 #if BYTE_ORDER != BIG_ENDIAN
26739                  not big endian
26740                 #endif
26741
26742   ;
26743   return 0;
26744 }
26745 _ACEOF
26746 if ac_fn_c_try_compile "$LINENO"; then :
26747   ac_cv_c_bigendian=yes
26748 else
26749   ac_cv_c_bigendian=no
26750 fi
26751 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26752 fi
26753 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26754     fi
26755     if test $ac_cv_c_bigendian = unknown; then
26756       # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
26757       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26758 /* end confdefs.h.  */
26759 #include <limits.h>
26760
26761 int
26762 main ()
26763 {
26764 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
26765               bogus endian macros
26766              #endif
26767
26768   ;
26769   return 0;
26770 }
26771 _ACEOF
26772 if ac_fn_c_try_compile "$LINENO"; then :
26773   # It does; now see whether it defined to _BIG_ENDIAN or not.
26774          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26775 /* end confdefs.h.  */
26776 #include <limits.h>
26777
26778 int
26779 main ()
26780 {
26781 #ifndef _BIG_ENDIAN
26782                  not big endian
26783                 #endif
26784
26785   ;
26786   return 0;
26787 }
26788 _ACEOF
26789 if ac_fn_c_try_compile "$LINENO"; then :
26790   ac_cv_c_bigendian=yes
26791 else
26792   ac_cv_c_bigendian=no
26793 fi
26794 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26795 fi
26796 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26797     fi
26798     if test $ac_cv_c_bigendian = unknown; then
26799       # Compile a test program.
26800       if test "$cross_compiling" = yes; then :
26801   # Try to guess by grepping values from an object file.
26802          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26803 /* end confdefs.h.  */
26804 short int ascii_mm[] =
26805                   { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
26806                 short int ascii_ii[] =
26807                   { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
26808                 int use_ascii (int i) {
26809                   return ascii_mm[i] + ascii_ii[i];
26810                 }
26811                 short int ebcdic_ii[] =
26812                   { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
26813                 short int ebcdic_mm[] =
26814                   { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
26815                 int use_ebcdic (int i) {
26816                   return ebcdic_mm[i] + ebcdic_ii[i];
26817                 }
26818                 extern int foo;
26819
26820 int
26821 main ()
26822 {
26823 return use_ascii (foo) == use_ebcdic (foo);
26824   ;
26825   return 0;
26826 }
26827 _ACEOF
26828 if ac_fn_c_try_compile "$LINENO"; then :
26829   if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
26830               ac_cv_c_bigendian=yes
26831             fi
26832             if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
26833               if test "$ac_cv_c_bigendian" = unknown; then
26834                 ac_cv_c_bigendian=no
26835               else
26836                 # finding both strings is unlikely to happen, but who knows?
26837                 ac_cv_c_bigendian=unknown
26838               fi
26839             fi
26840 fi
26841 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26842 else
26843   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26844 /* end confdefs.h.  */
26845 $ac_includes_default
26846 int
26847 main ()
26848 {
26849
26850              /* Are we little or big endian?  From Harbison&Steele.  */
26851              union
26852              {
26853                long int l;
26854                char c[sizeof (long int)];
26855              } u;
26856              u.l = 1;
26857              return u.c[sizeof (long int) - 1] == 1;
26858
26859   ;
26860   return 0;
26861 }
26862 _ACEOF
26863 if ac_fn_c_try_run "$LINENO"; then :
26864   ac_cv_c_bigendian=no
26865 else
26866   ac_cv_c_bigendian=yes
26867 fi
26868 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
26869   conftest.$ac_objext conftest.beam conftest.$ac_ext
26870 fi
26871
26872     fi
26873 fi
26874 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
26875 $as_echo "$ac_cv_c_bigendian" >&6; }
26876  case $ac_cv_c_bigendian in #(
26877    yes)
26878
26879 $as_echo "#define HAVE_BIG_ENDIAN 1" >>confdefs.h
26880 ;; #(
26881    no)
26882
26883 $as_echo "#define HAVE_LITTLE_ENDIAN 1" >>confdefs.h
26884  ;; #(
26885    universal)
26886
26887 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
26888
26889      ;; #(
26890    *)
26891      as_fn_error $? "unknown endianness
26892  presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
26893  esac
26894
26895
26896 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to get filesystem type" >&5
26897 $as_echo_n "checking how to get filesystem type... " >&6; }
26898 fstype=no
26899 # The order of these tests is important.
26900 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26901 /* end confdefs.h.  */
26902
26903        #include <sys/statvfs.h>
26904        #include <sys/fstyp.h>
26905
26906 _ACEOF
26907 if ac_fn_c_try_cpp "$LINENO"; then :
26908   $as_echo "#define FSTYPE_STATVFS 1" >>confdefs.h
26909  fstype=SVR4
26910
26911 fi
26912 rm -f conftest.err conftest.i conftest.$ac_ext
26913 if test $fstype = no; then
26914    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26915 /* end confdefs.h.  */
26916
26917           #include <sys/statfs.h>
26918           #include <sys/fstyp.h>
26919
26920 _ACEOF
26921 if ac_fn_c_try_cpp "$LINENO"; then :
26922   $as_echo "#define FSTYPE_USG_STATFS 1" >>confdefs.h
26923  fstype=SVR3
26924
26925 fi
26926 rm -f conftest.err conftest.i conftest.$ac_ext
26927 fi
26928 if test $fstype = no; then
26929    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26930 /* end confdefs.h.  */
26931
26932           #include <sys/statfs.h>
26933           #include <sys/vmount.h>
26934
26935 _ACEOF
26936 if ac_fn_c_try_cpp "$LINENO"; then :
26937   $as_echo "#define FSTYPE_AIX_STATFS 1" >>confdefs.h
26938  fstype=AIX
26939
26940 fi
26941 rm -f conftest.err conftest.i conftest.$ac_ext
26942 fi
26943 if test $fstype = no; then
26944    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26945 /* end confdefs.h.  */
26946
26947           #include <mntent.h>
26948
26949 _ACEOF
26950 if ac_fn_c_try_cpp "$LINENO"; then :
26951   $as_echo "#define FSTYPE_MNTENT 1" >>confdefs.h
26952  fstype=4.3BSD
26953
26954 fi
26955 rm -f conftest.err conftest.i conftest.$ac_ext
26956 fi
26957 if test $fstype = no; then
26958    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26959 /* end confdefs.h.  */
26960 #include <sys/mount.h>
26961
26962 _ACEOF
26963 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
26964   $EGREP "f_type;" >/dev/null 2>&1; then :
26965   $as_echo "#define FSTYPE_STATFS 1" >>confdefs.h
26966  fstype=4.4BSD/OSF1
26967 fi
26968 rm -f conftest*
26969
26970 fi
26971 if test $fstype = no; then
26972    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26973 /* end confdefs.h.  */
26974
26975           #include <sys/mount.h>
26976           #include <sys/fs_types.h>
26977
26978 _ACEOF
26979 if ac_fn_c_try_cpp "$LINENO"; then :
26980   $as_echo "#define FSTYPE_GETMNT 1" >>confdefs.h
26981  fstype=Ultrix
26982
26983 fi
26984 rm -f conftest.err conftest.i conftest.$ac_ext
26985 fi
26986 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $fstype" >&5
26987 $as_echo "$fstype" >&6; }
26988
26989 ac_fn_c_check_header_mongrel "$LINENO" "sys/statvfs.h" "ac_cv_header_sys_statvfs_h" "$ac_includes_default"
26990 if test "x$ac_cv_header_sys_statvfs_h" = xyes; then :
26991
26992 $as_echo "#define HAVE_SYS_STATVFS_H 1" >>confdefs.h
26993
26994 fi
26995
26996
26997
26998 ac_ext=cpp
26999 ac_cpp='$CXXCPP $CPPFLAGS'
27000 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
27001 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
27002 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
27003
27004 for ac_func in backtrace
27005 do :
27006   ac_fn_cxx_check_func "$LINENO" "backtrace" "ac_cv_func_backtrace"
27007 if test "x$ac_cv_func_backtrace" = xyes; then :
27008   cat >>confdefs.h <<_ACEOF
27009 #define HAVE_BACKTRACE 1
27010 _ACEOF
27011
27012 fi
27013 done
27014
27015 ac_ext=c
27016 ac_cpp='$CPP $CPPFLAGS'
27017 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
27018 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
27019 ac_compiler_gnu=$ac_cv_c_compiler_gnu
27020
27021
27022 { $as_echo "$as_me:${as_lineno-$LINENO}: checking return type of signal handlers" >&5
27023 $as_echo_n "checking return type of signal handlers... " >&6; }
27024 if ${ac_cv_type_signal+:} false; then :
27025   $as_echo_n "(cached) " >&6
27026 else
27027   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27028 /* end confdefs.h.  */
27029 #include <sys/types.h>
27030 #include <signal.h>
27031
27032 int
27033 main ()
27034 {
27035 return *(signal (0, 0)) (0) == 1;
27036   ;
27037   return 0;
27038 }
27039 _ACEOF
27040 if ac_fn_c_try_compile "$LINENO"; then :
27041   ac_cv_type_signal=int
27042 else
27043   ac_cv_type_signal=void
27044 fi
27045 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27046 fi
27047 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_signal" >&5
27048 $as_echo "$ac_cv_type_signal" >&6; }
27049
27050 cat >>confdefs.h <<_ACEOF
27051 #define RETSIGTYPE $ac_cv_type_signal
27052 _ACEOF
27053
27054
27055
27056   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for type of signal functions" >&5
27057 $as_echo_n "checking for type of signal functions... " >&6; }
27058   if ${bash_cv_signal_vintage+:} false; then :
27059   $as_echo_n "(cached) " >&6
27060 else
27061
27062     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27063 /* end confdefs.h.  */
27064 #include <signal.h>
27065 int
27066 main ()
27067 {
27068
27069       sigset_t ss;
27070       struct sigaction sa;
27071       sigemptyset(&ss); sigsuspend(&ss);
27072       sigaction(SIGINT, &sa, (struct sigaction *) 0);
27073       sigprocmask(SIG_BLOCK, &ss, (sigset_t *) 0);
27074
27075   ;
27076   return 0;
27077 }
27078 _ACEOF
27079 if ac_fn_c_try_link "$LINENO"; then :
27080   bash_cv_signal_vintage="posix"
27081 else
27082
27083       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27084 /* end confdefs.h.  */
27085 #include <signal.h>
27086 int
27087 main ()
27088 {
27089
27090           int mask = sigmask(SIGINT);
27091           sigsetmask(mask); sigblock(mask); sigpause(mask);
27092
27093   ;
27094   return 0;
27095 }
27096 _ACEOF
27097 if ac_fn_c_try_link "$LINENO"; then :
27098   bash_cv_signal_vintage="4.2bsd"
27099 else
27100
27101         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27102 /* end confdefs.h.  */
27103
27104           #include <signal.h>
27105           RETSIGTYPE foo() { }
27106 int
27107 main ()
27108 {
27109
27110                   int mask = sigmask(SIGINT);
27111                   sigset(SIGINT, foo); sigrelse(SIGINT);
27112                   sighold(SIGINT); sigpause(SIGINT);
27113
27114   ;
27115   return 0;
27116 }
27117 _ACEOF
27118 if ac_fn_c_try_link "$LINENO"; then :
27119   bash_cv_signal_vintage="svr3"
27120 else
27121   bash_cv_signal_vintage="v7"
27122
27123 fi
27124 rm -f core conftest.err conftest.$ac_objext \
27125     conftest$ac_exeext conftest.$ac_ext
27126
27127 fi
27128 rm -f core conftest.err conftest.$ac_objext \
27129     conftest$ac_exeext conftest.$ac_ext
27130
27131 fi
27132 rm -f core conftest.err conftest.$ac_objext \
27133     conftest$ac_exeext conftest.$ac_ext
27134
27135 fi
27136
27137   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bash_cv_signal_vintage" >&5
27138 $as_echo "$bash_cv_signal_vintage" >&6; }
27139   if test "$bash_cv_signal_vintage" = "posix"; then
27140     $as_echo "#define HAVE_POSIX_SIGNALS 1" >>confdefs.h
27141
27142   elif test "$bash_cv_signal_vintage" = "4.2bsd"; then
27143     $as_echo "#define HAVE_BSD_SIGNALS 1" >>confdefs.h
27144
27145   elif test "$bash_cv_signal_vintage" = "svr3"; then
27146     $as_echo "#define HAVE_USG_SIGHOLD 1" >>confdefs.h
27147
27148   fi
27149
27150 ac_fn_c_check_type "$LINENO" "mode_t" "ac_cv_type_mode_t" "$ac_includes_default"
27151 if test "x$ac_cv_type_mode_t" = xyes; then :
27152
27153 else
27154
27155 cat >>confdefs.h <<_ACEOF
27156 #define mode_t int
27157 _ACEOF
27158
27159 fi
27160
27161 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uid_t in sys/types.h" >&5
27162 $as_echo_n "checking for uid_t in sys/types.h... " >&6; }
27163 if ${ac_cv_type_uid_t+:} false; then :
27164   $as_echo_n "(cached) " >&6
27165 else
27166   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27167 /* end confdefs.h.  */
27168 #include <sys/types.h>
27169
27170 _ACEOF
27171 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
27172   $EGREP "uid_t" >/dev/null 2>&1; then :
27173   ac_cv_type_uid_t=yes
27174 else
27175   ac_cv_type_uid_t=no
27176 fi
27177 rm -f conftest*
27178
27179 fi
27180 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_uid_t" >&5
27181 $as_echo "$ac_cv_type_uid_t" >&6; }
27182 if test $ac_cv_type_uid_t = no; then
27183
27184 $as_echo "#define uid_t int" >>confdefs.h
27185
27186
27187 $as_echo "#define gid_t int" >>confdefs.h
27188
27189 fi
27190
27191 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
27192 if test "x$ac_cv_type_size_t" = xyes; then :
27193
27194 else
27195
27196 cat >>confdefs.h <<_ACEOF
27197 #define size_t unsigned int
27198 _ACEOF
27199
27200 fi
27201
27202 ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
27203 if test "x$ac_cv_type_pid_t" = xyes; then :
27204
27205 else
27206
27207 cat >>confdefs.h <<_ACEOF
27208 #define pid_t int
27209 _ACEOF
27210
27211 fi
27212
27213 ac_fn_c_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default"
27214 if test "x$ac_cv_type_off_t" = xyes; then :
27215
27216 else
27217
27218 cat >>confdefs.h <<_ACEOF
27219 #define off_t long int
27220 _ACEOF
27221
27222 fi
27223
27224
27225   ac_fn_c_check_type "$LINENO" "intptr_t" "ac_cv_type_intptr_t" "$ac_includes_default"
27226 if test "x$ac_cv_type_intptr_t" = xyes; then :
27227
27228 $as_echo "#define HAVE_INTPTR_T 1" >>confdefs.h
27229
27230 else
27231   for ac_type in 'int' 'long int' 'long long int'; do
27232        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27233 /* end confdefs.h.  */
27234 $ac_includes_default
27235 int
27236 main ()
27237 {
27238 static int test_array [1 - 2 * !(sizeof (void *) <= sizeof ($ac_type))];
27239 test_array [0] = 0
27240
27241   ;
27242   return 0;
27243 }
27244 _ACEOF
27245 if ac_fn_c_try_compile "$LINENO"; then :
27246
27247 cat >>confdefs.h <<_ACEOF
27248 #define intptr_t $ac_type
27249 _ACEOF
27250
27251           ac_type=
27252 fi
27253 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27254        test -z "$ac_type" && break
27255      done
27256 fi
27257
27258
27259
27260   ac_fn_c_check_type "$LINENO" "uintptr_t" "ac_cv_type_uintptr_t" "$ac_includes_default"
27261 if test "x$ac_cv_type_uintptr_t" = xyes; then :
27262
27263 $as_echo "#define HAVE_UINTPTR_T 1" >>confdefs.h
27264
27265 else
27266   for ac_type in 'unsigned int' 'unsigned long int' \
27267         'unsigned long long int'; do
27268        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27269 /* end confdefs.h.  */
27270 $ac_includes_default
27271 int
27272 main ()
27273 {
27274 static int test_array [1 - 2 * !(sizeof (void *) <= sizeof ($ac_type))];
27275 test_array [0] = 0
27276
27277   ;
27278   return 0;
27279 }
27280 _ACEOF
27281 if ac_fn_c_try_compile "$LINENO"; then :
27282
27283 cat >>confdefs.h <<_ACEOF
27284 #define uintptr_t $ac_type
27285 _ACEOF
27286
27287           ac_type=
27288 fi
27289 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27290        test -z "$ac_type" && break
27291      done
27292 fi
27293
27294
27295 ac_fn_c_check_type "$LINENO" "ino_t" "ac_cv_type_ino_t" "$ac_includes_default"
27296 if test "x$ac_cv_type_ino_t" = xyes; then :
27297
27298 else
27299
27300 cat >>confdefs.h <<_ACEOF
27301 #define ino_t unsigned long
27302 _ACEOF
27303
27304 fi
27305
27306 ac_fn_c_check_type "$LINENO" "dev_t" "ac_cv_type_dev_t" "$ac_includes_default"
27307 if test "x$ac_cv_type_dev_t" = xyes; then :
27308
27309 else
27310
27311 cat >>confdefs.h <<_ACEOF
27312 #define dev_t unsigned long
27313 _ACEOF
27314
27315 fi
27316
27317 ac_fn_c_check_type "$LINENO" "daddr_t" "ac_cv_type_daddr_t" "$ac_includes_default"
27318 if test "x$ac_cv_type_daddr_t" = xyes; then :
27319
27320 else
27321
27322 cat >>confdefs.h <<_ACEOF
27323 #define daddr_t long
27324 _ACEOF
27325
27326 fi
27327
27328 ac_fn_c_check_type "$LINENO" "major_t" "ac_cv_type_major_t" "$ac_includes_default"
27329 if test "x$ac_cv_type_major_t" = xyes; then :
27330
27331 else
27332
27333 cat >>confdefs.h <<_ACEOF
27334 #define major_t int
27335 _ACEOF
27336
27337 fi
27338
27339 ac_fn_c_check_type "$LINENO" "minor_t" "ac_cv_type_minor_t" "$ac_includes_default"
27340 if test "x$ac_cv_type_minor_t" = xyes; then :
27341
27342 else
27343
27344 cat >>confdefs.h <<_ACEOF
27345 #define minor_t int
27346 _ACEOF
27347
27348 fi
27349
27350 ac_fn_c_check_type "$LINENO" "ssize_t" "ac_cv_type_ssize_t" "$ac_includes_default"
27351 if test "x$ac_cv_type_ssize_t" = xyes; then :
27352
27353 else
27354
27355 cat >>confdefs.h <<_ACEOF
27356 #define ssize_t int
27357 _ACEOF
27358
27359 fi
27360
27361 ac_fn_c_check_member "$LINENO" "struct stat" "st_blocks" "ac_cv_member_struct_stat_st_blocks" "$ac_includes_default"
27362 if test "x$ac_cv_member_struct_stat_st_blocks" = xyes; then :
27363
27364 cat >>confdefs.h <<_ACEOF
27365 #define HAVE_STRUCT_STAT_ST_BLOCKS 1
27366 _ACEOF
27367
27368
27369 $as_echo "#define HAVE_ST_BLOCKS 1" >>confdefs.h
27370
27371 else
27372   case " $LIBOBJS " in
27373   *" fileblocks.$ac_objext "* ) ;;
27374   *) LIBOBJS="$LIBOBJS fileblocks.$ac_objext"
27375  ;;
27376 esac
27377
27378 fi
27379
27380
27381 ac_fn_c_check_member "$LINENO" "struct stat" "st_rdev" "ac_cv_member_struct_stat_st_rdev" "$ac_includes_default"
27382 if test "x$ac_cv_member_struct_stat_st_rdev" = xyes; then :
27383
27384 cat >>confdefs.h <<_ACEOF
27385 #define HAVE_STRUCT_STAT_ST_RDEV 1
27386 _ACEOF
27387
27388
27389 $as_echo "#define HAVE_ST_RDEV 1" >>confdefs.h
27390
27391 fi
27392
27393
27394 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct tm is in sys/time.h or time.h" >&5
27395 $as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
27396 if ${ac_cv_struct_tm+:} false; then :
27397   $as_echo_n "(cached) " >&6
27398 else
27399   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27400 /* end confdefs.h.  */
27401 #include <sys/types.h>
27402 #include <time.h>
27403
27404 int
27405 main ()
27406 {
27407 struct tm tm;
27408                                      int *p = &tm.tm_sec;
27409                                      return !p;
27410   ;
27411   return 0;
27412 }
27413 _ACEOF
27414 if ac_fn_c_try_compile "$LINENO"; then :
27415   ac_cv_struct_tm=time.h
27416 else
27417   ac_cv_struct_tm=sys/time.h
27418 fi
27419 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27420 fi
27421 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm" >&5
27422 $as_echo "$ac_cv_struct_tm" >&6; }
27423 if test $ac_cv_struct_tm = sys/time.h; then
27424
27425 $as_echo "#define TM_IN_SYS_TIME 1" >>confdefs.h
27426
27427 fi
27428
27429 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
27430 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
27431 if ${ac_cv_c_const+:} false; then :
27432   $as_echo_n "(cached) " >&6
27433 else
27434   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27435 /* end confdefs.h.  */
27436
27437 int
27438 main ()
27439 {
27440 /* FIXME: Include the comments suggested by Paul. */
27441 #ifndef __cplusplus
27442   /* Ultrix mips cc rejects this.  */
27443   typedef int charset[2];
27444   const charset cs;
27445   /* SunOS 4.1.1 cc rejects this.  */
27446   char const *const *pcpcc;
27447   char **ppc;
27448   /* NEC SVR4.0.2 mips cc rejects this.  */
27449   struct point {int x, y;};
27450   static struct point const zero = {0,0};
27451   /* AIX XL C 1.02.0.0 rejects this.
27452      It does not let you subtract one const X* pointer from another in
27453      an arm of an if-expression whose if-part is not a constant
27454      expression */
27455   const char *g = "string";
27456   pcpcc = &g + (g ? g-g : 0);
27457   /* HPUX 7.0 cc rejects these. */
27458   ++pcpcc;
27459   ppc = (char**) pcpcc;
27460   pcpcc = (char const *const *) ppc;
27461   { /* SCO 3.2v4 cc rejects this.  */
27462     char *t;
27463     char const *s = 0 ? (char *) 0 : (char const *) 0;
27464
27465     *t++ = 0;
27466     if (s) return 0;
27467   }
27468   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
27469     int x[] = {25, 17};
27470     const int *foo = &x[0];
27471     ++foo;
27472   }
27473   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
27474     typedef const int *iptr;
27475     iptr p = 0;
27476     ++p;
27477   }
27478   { /* AIX XL C 1.02.0.0 rejects this saying
27479        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
27480     struct s { int j; const int *ap[3]; };
27481     struct s *b; b->j = 5;
27482   }
27483   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
27484     const int foo = 10;
27485     if (!foo) return 0;
27486   }
27487   return !cs[0] && !zero.x;
27488 #endif
27489
27490   ;
27491   return 0;
27492 }
27493 _ACEOF
27494 if ac_fn_c_try_compile "$LINENO"; then :
27495   ac_cv_c_const=yes
27496 else
27497   ac_cv_c_const=no
27498 fi
27499 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27500 fi
27501 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
27502 $as_echo "$ac_cv_c_const" >&6; }
27503 if test $ac_cv_c_const = no; then
27504
27505 $as_echo "#define const /**/" >>confdefs.h
27506
27507 fi
27508
27509
27510 # The cast to long int works around a bug in the HP C Compiler
27511 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
27512 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
27513 # This bug is HP SR number 8606223364.
27514 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of char" >&5
27515 $as_echo_n "checking size of char... " >&6; }
27516 if ${ac_cv_sizeof_char+:} false; then :
27517   $as_echo_n "(cached) " >&6
27518 else
27519   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (char))" "ac_cv_sizeof_char"        "$ac_includes_default"; then :
27520
27521 else
27522   if test "$ac_cv_type_char" = yes; then
27523      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
27524 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
27525 as_fn_error 77 "cannot compute sizeof (char)
27526 See \`config.log' for more details" "$LINENO" 5; }
27527    else
27528      ac_cv_sizeof_char=0
27529    fi
27530 fi
27531
27532 fi
27533 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_char" >&5
27534 $as_echo "$ac_cv_sizeof_char" >&6; }
27535
27536
27537
27538 cat >>confdefs.h <<_ACEOF
27539 #define SIZEOF_CHAR $ac_cv_sizeof_char
27540 _ACEOF
27541
27542
27543 # The cast to long int works around a bug in the HP C Compiler
27544 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
27545 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
27546 # This bug is HP SR number 8606223364.
27547 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of short int" >&5
27548 $as_echo_n "checking size of short int... " >&6; }
27549 if ${ac_cv_sizeof_short_int+:} false; then :
27550   $as_echo_n "(cached) " >&6
27551 else
27552   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (short int))" "ac_cv_sizeof_short_int"        "$ac_includes_default"; then :
27553
27554 else
27555   if test "$ac_cv_type_short_int" = yes; then
27556      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
27557 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
27558 as_fn_error 77 "cannot compute sizeof (short int)
27559 See \`config.log' for more details" "$LINENO" 5; }
27560    else
27561      ac_cv_sizeof_short_int=0
27562    fi
27563 fi
27564
27565 fi
27566 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_short_int" >&5
27567 $as_echo "$ac_cv_sizeof_short_int" >&6; }
27568
27569
27570
27571 cat >>confdefs.h <<_ACEOF
27572 #define SIZEOF_SHORT_INT $ac_cv_sizeof_short_int
27573 _ACEOF
27574
27575
27576 # The cast to long int works around a bug in the HP C Compiler
27577 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
27578 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
27579 # This bug is HP SR number 8606223364.
27580 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5
27581 $as_echo_n "checking size of int... " >&6; }
27582 if ${ac_cv_sizeof_int+:} false; then :
27583   $as_echo_n "(cached) " >&6
27584 else
27585   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int"        "$ac_includes_default"; then :
27586
27587 else
27588   if test "$ac_cv_type_int" = yes; then
27589      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
27590 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
27591 as_fn_error 77 "cannot compute sizeof (int)
27592 See \`config.log' for more details" "$LINENO" 5; }
27593    else
27594      ac_cv_sizeof_int=0
27595    fi
27596 fi
27597
27598 fi
27599 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5
27600 $as_echo "$ac_cv_sizeof_int" >&6; }
27601
27602
27603
27604 cat >>confdefs.h <<_ACEOF
27605 #define SIZEOF_INT $ac_cv_sizeof_int
27606 _ACEOF
27607
27608
27609 # The cast to long int works around a bug in the HP C Compiler
27610 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
27611 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
27612 # This bug is HP SR number 8606223364.
27613 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long int" >&5
27614 $as_echo_n "checking size of long int... " >&6; }
27615 if ${ac_cv_sizeof_long_int+:} false; then :
27616   $as_echo_n "(cached) " >&6
27617 else
27618   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long int))" "ac_cv_sizeof_long_int"        "$ac_includes_default"; then :
27619
27620 else
27621   if test "$ac_cv_type_long_int" = yes; then
27622      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
27623 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
27624 as_fn_error 77 "cannot compute sizeof (long int)
27625 See \`config.log' for more details" "$LINENO" 5; }
27626    else
27627      ac_cv_sizeof_long_int=0
27628    fi
27629 fi
27630
27631 fi
27632 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_int" >&5
27633 $as_echo "$ac_cv_sizeof_long_int" >&6; }
27634
27635
27636
27637 cat >>confdefs.h <<_ACEOF
27638 #define SIZEOF_LONG_INT $ac_cv_sizeof_long_int
27639 _ACEOF
27640
27641
27642 # The cast to long int works around a bug in the HP C Compiler
27643 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
27644 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
27645 # This bug is HP SR number 8606223364.
27646 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long long int" >&5
27647 $as_echo_n "checking size of long long int... " >&6; }
27648 if ${ac_cv_sizeof_long_long_int+:} false; then :
27649   $as_echo_n "(cached) " >&6
27650 else
27651   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long long int))" "ac_cv_sizeof_long_long_int"        "$ac_includes_default"; then :
27652
27653 else
27654   if test "$ac_cv_type_long_long_int" = yes; then
27655      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
27656 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
27657 as_fn_error 77 "cannot compute sizeof (long long int)
27658 See \`config.log' for more details" "$LINENO" 5; }
27659    else
27660      ac_cv_sizeof_long_long_int=0
27661    fi
27662 fi
27663
27664 fi
27665 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_long_int" >&5
27666 $as_echo "$ac_cv_sizeof_long_long_int" >&6; }
27667
27668
27669
27670 cat >>confdefs.h <<_ACEOF
27671 #define SIZEOF_LONG_LONG_INT $ac_cv_sizeof_long_long_int
27672 _ACEOF
27673
27674
27675 # The cast to long int works around a bug in the HP C Compiler
27676 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
27677 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
27678 # This bug is HP SR number 8606223364.
27679 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int *" >&5
27680 $as_echo_n "checking size of int *... " >&6; }
27681 if ${ac_cv_sizeof_int_p+:} false; then :
27682   $as_echo_n "(cached) " >&6
27683 else
27684   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int *))" "ac_cv_sizeof_int_p"        "$ac_includes_default"; then :
27685
27686 else
27687   if test "$ac_cv_type_int_p" = yes; then
27688      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
27689 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
27690 as_fn_error 77 "cannot compute sizeof (int *)
27691 See \`config.log' for more details" "$LINENO" 5; }
27692    else
27693      ac_cv_sizeof_int_p=0
27694    fi
27695 fi
27696
27697 fi
27698 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int_p" >&5
27699 $as_echo "$ac_cv_sizeof_int_p" >&6; }
27700
27701
27702
27703 cat >>confdefs.h <<_ACEOF
27704 #define SIZEOF_INT_P $ac_cv_sizeof_int_p
27705 _ACEOF
27706
27707
27708
27709 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for u_int type" >&5
27710 $as_echo_n "checking for u_int type... " >&6; }
27711 if ${ac_cv_have_u_int+:} false; then :
27712   $as_echo_n "(cached) " >&6
27713 else
27714
27715        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27716 /* end confdefs.h.  */
27717
27718               #include <sys/types.h>
27719
27720 int
27721 main ()
27722 {
27723
27724               u_int a; a = 1;
27725
27726   ;
27727   return 0;
27728 }
27729 _ACEOF
27730 if ac_fn_c_try_compile "$LINENO"; then :
27731
27732               ac_cv_have_u_int="yes"
27733
27734 else
27735
27736               ac_cv_have_u_int="no"
27737
27738
27739 fi
27740 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27741
27742
27743 fi
27744 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_u_int" >&5
27745 $as_echo "$ac_cv_have_u_int" >&6; }
27746 if test "x$ac_cv_have_u_int" = "xyes" ; then
27747    $as_echo "#define HAVE_U_INT 1" >>confdefs.h
27748
27749    have_u_int=1
27750 fi
27751
27752 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for intmax_t type" >&5
27753 $as_echo_n "checking for intmax_t type... " >&6; }
27754 if ${ac_cv_have_intmax_t+:} false; then :
27755   $as_echo_n "(cached) " >&6
27756 else
27757
27758        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27759 /* end confdefs.h.  */
27760
27761               #include <sys/types.h>
27762
27763 int
27764 main ()
27765 {
27766
27767               intmax_t a; a = 1;
27768
27769   ;
27770   return 0;
27771 }
27772 _ACEOF
27773 if ac_fn_c_try_compile "$LINENO"; then :
27774
27775               ac_cv_have_intmax_t="yes"
27776
27777 else
27778
27779               cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27780 /* end confdefs.h.  */
27781
27782                      #include <stdint.h>
27783
27784 int
27785 main ()
27786 {
27787
27788                      intmax_t a; a = 1;
27789
27790   ;
27791   return 0;
27792 }
27793 _ACEOF
27794 if ac_fn_c_try_compile "$LINENO"; then :
27795
27796                      ac_cv_have_intmax_t="yes"
27797
27798 else
27799
27800                      ac_cv_have_intmax_t="no"
27801
27802
27803 fi
27804 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27805
27806
27807 fi
27808 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27809
27810
27811 fi
27812 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_intmax_t" >&5
27813 $as_echo "$ac_cv_have_intmax_t" >&6; }
27814 if test "x$ac_cv_have_intmax_t" = "xyes" ; then
27815    $as_echo "#define HAVE_INTMAX_T 1" >>confdefs.h
27816
27817    have_intmax_t=1
27818 fi
27819
27820 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for u_intmax_t type" >&5
27821 $as_echo_n "checking for u_intmax_t type... " >&6; }
27822 if ${ac_cv_have_u_intmax_t+:} false; then :
27823   $as_echo_n "(cached) " >&6
27824 else
27825
27826        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27827 /* end confdefs.h.  */
27828
27829               #include <sys/types.h>
27830
27831 int
27832 main ()
27833 {
27834
27835               u_intmax_t a; a = 1;
27836
27837   ;
27838   return 0;
27839 }
27840 _ACEOF
27841 if ac_fn_c_try_compile "$LINENO"; then :
27842
27843               ac_cv_have_u_intmax_t="yes"
27844
27845 else
27846
27847               cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27848 /* end confdefs.h.  */
27849
27850                      #include <stdint.h>
27851
27852 int
27853 main ()
27854 {
27855
27856                     u_intmax_t a; a = 1;
27857
27858   ;
27859   return 0;
27860 }
27861 _ACEOF
27862 if ac_fn_c_try_compile "$LINENO"; then :
27863
27864                     ac_cv_have_u_intmax_t="yes"
27865
27866 else
27867
27868                     ac_cv_have_u_intmax_t="no"
27869
27870
27871 fi
27872 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27873
27874
27875 fi
27876 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27877
27878
27879 fi
27880 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_u_intmax_t" >&5
27881 $as_echo "$ac_cv_have_u_intmax_t" >&6; }
27882 if test "x$ac_cv_have_u_intmax_t" = "xyes" ; then
27883    $as_echo "#define HAVE_U_INTMAX_T 1" >>confdefs.h
27884
27885    have_u_intmax_t=1
27886 fi
27887
27888 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for intXX_t types" >&5
27889 $as_echo_n "checking for intXX_t types... " >&6; }
27890 if ${ac_cv_have_intxx_t+:} false; then :
27891   $as_echo_n "(cached) " >&6
27892 else
27893
27894        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27895 /* end confdefs.h.  */
27896
27897               #include <sys/types.h>
27898
27899 int
27900 main ()
27901 {
27902
27903               int8_t a; int16_t b; int32_t c; a = b = c = 1;
27904
27905   ;
27906   return 0;
27907 }
27908 _ACEOF
27909 if ac_fn_c_try_compile "$LINENO"; then :
27910
27911               ac_cv_have_intxx_t="yes"
27912
27913 else
27914
27915               ac_cv_have_intxx_t="no"
27916
27917
27918 fi
27919 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27920
27921
27922 fi
27923 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_intxx_t" >&5
27924 $as_echo "$ac_cv_have_intxx_t" >&6; }
27925 if test "x$ac_cv_have_intxx_t" = "xyes" ; then
27926    $as_echo "#define HAVE_INTXX_T 1" >>confdefs.h
27927
27928    have_intxx_t=1
27929 fi
27930
27931 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for int64_t type" >&5
27932 $as_echo_n "checking for int64_t type... " >&6; }
27933 if ${ac_cv_have_int64_t+:} false; then :
27934   $as_echo_n "(cached) " >&6
27935 else
27936
27937        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27938 /* end confdefs.h.  */
27939
27940               #include <sys/types.h>
27941
27942 int
27943 main ()
27944 {
27945
27946               int64_t a; a = 1;
27947
27948   ;
27949   return 0;
27950 }
27951 _ACEOF
27952 if ac_fn_c_try_compile "$LINENO"; then :
27953
27954               ac_cv_have_int64_t="yes"
27955
27956 else
27957
27958               ac_cv_have_int64_t="no"
27959
27960
27961 fi
27962 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27963
27964
27965 fi
27966 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_int64_t" >&5
27967 $as_echo "$ac_cv_have_int64_t" >&6; }
27968 if test "x$ac_cv_have_int64_t" = "xyes" ; then
27969    $as_echo "#define HAVE_INT64_T 1" >>confdefs.h
27970
27971    have_int64_t=1
27972 fi
27973
27974 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for u_intXX_t types" >&5
27975 $as_echo_n "checking for u_intXX_t types... " >&6; }
27976 if ${ac_cv_have_u_intxx_t+:} false; then :
27977   $as_echo_n "(cached) " >&6
27978 else
27979
27980        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27981 /* end confdefs.h.  */
27982
27983               #include <sys/types.h>
27984
27985 int
27986 main ()
27987 {
27988
27989               u_int8_t a; u_int16_t b; u_int32_t c; a = b = c = 1;
27990
27991   ;
27992   return 0;
27993 }
27994 _ACEOF
27995 if ac_fn_c_try_compile "$LINENO"; then :
27996
27997              ac_cv_have_u_intxx_t="yes"
27998
27999 else
28000
28001              ac_cv_have_u_intxx_t="no"
28002
28003
28004 fi
28005 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28006
28007
28008 fi
28009 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_u_intxx_t" >&5
28010 $as_echo "$ac_cv_have_u_intxx_t" >&6; }
28011 if test "x$ac_cv_have_u_intxx_t" = "xyes" ; then
28012    $as_echo "#define HAVE_U_INTXX_T 1" >>confdefs.h
28013
28014    have_u_intxx_t=1
28015 fi
28016
28017 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for u_int64_t types" >&5
28018 $as_echo_n "checking for u_int64_t types... " >&6; }
28019 if ${ac_cv_have_u_int64_t+:} false; then :
28020   $as_echo_n "(cached) " >&6
28021 else
28022
28023        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28024 /* end confdefs.h.  */
28025
28026               #include <sys/types.h>
28027
28028 int
28029 main ()
28030 {
28031
28032               u_int64_t a; a = 1;
28033
28034   ;
28035   return 0;
28036 }
28037 _ACEOF
28038 if ac_fn_c_try_compile "$LINENO"; then :
28039
28040              ac_cv_have_u_int64_t="yes"
28041
28042 else
28043
28044              ac_cv_have_u_int64_t="no"
28045
28046
28047 fi
28048 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28049
28050
28051 fi
28052 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_u_int64_t" >&5
28053 $as_echo "$ac_cv_have_u_int64_t" >&6; }
28054 if test "x$ac_cv_have_u_int64_t" = "xyes" ; then
28055    $as_echo "#define HAVE_U_INT64_T 1" >>confdefs.h
28056
28057    have_u_int64_t=1
28058 fi
28059
28060 if (test -z "$have_u_intxx_t" || test -z "$have_intxx_t" && \
28061     test "x$ac_cv_header_sys_bitypes_h" = "xyes")
28062 then
28063    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for intXX_t and u_intXX_t types in sys/bitypes.h" >&5
28064 $as_echo_n "checking for intXX_t and u_intXX_t types in sys/bitypes.h... " >&6; }
28065    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28066 /* end confdefs.h.  */
28067
28068           #include <sys/bitypes.h>
28069
28070 int
28071 main ()
28072 {
28073
28074           int8_t a; int16_t b; int32_t c;
28075           u_int8_t e; u_int16_t f; u_int32_t g;
28076           a = b = c = e = f = g = 1;
28077
28078   ;
28079   return 0;
28080 }
28081 _ACEOF
28082 if ac_fn_c_try_compile "$LINENO"; then :
28083
28084           $as_echo "#define HAVE_U_INTXX_T 1" >>confdefs.h
28085
28086           $as_echo "#define HAVE_INTXX_T 1" >>confdefs.h
28087
28088           $as_echo "#define HAVE_SYS_BITYPES_H 1" >>confdefs.h
28089
28090           { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28091 $as_echo "yes" >&6; }
28092
28093 else
28094
28095           { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28096 $as_echo "no" >&6; }
28097
28098
28099 fi
28100 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28101 fi
28102
28103 if test -z "$have_u_intxx_t" ; then
28104    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uintXX_t types" >&5
28105 $as_echo_n "checking for uintXX_t types... " >&6; }
28106 if ${ac_cv_have_uintxx_t+:} false; then :
28107   $as_echo_n "(cached) " >&6
28108 else
28109
28110           cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28111 /* end confdefs.h.  */
28112
28113                  #include <sys/types.h>
28114
28115 int
28116 main ()
28117 {
28118
28119                  uint8_t a; uint16_t b;
28120                  uint32_t c; a = b = c = 1;
28121
28122   ;
28123   return 0;
28124 }
28125 _ACEOF
28126 if ac_fn_c_try_compile "$LINENO"; then :
28127
28128                 ac_cv_have_uintxx_t="yes"
28129
28130 else
28131
28132                 ac_cv_have_uintxx_t="no"
28133
28134
28135 fi
28136 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28137
28138
28139 fi
28140 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_uintxx_t" >&5
28141 $as_echo "$ac_cv_have_uintxx_t" >&6; }
28142    if test "x$ac_cv_have_uintxx_t" = "xyes" ; then
28143       $as_echo "#define HAVE_UINTXX_T 1" >>confdefs.h
28144
28145    fi
28146 fi
28147
28148 if (test -z "$have_u_int64_t" || test -z "$have_int64_t" && \
28149     test "x$ac_cv_header_sys_bitypes_h" = "xyes")
28150 then
28151    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for int64_t and u_int64_t types in sys/bitypes.h" >&5
28152 $as_echo_n "checking for int64_t and u_int64_t types in sys/bitypes.h... " >&6; }
28153    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28154 /* end confdefs.h.  */
28155
28156           #include <sys/bitypes.h>
28157
28158 int
28159 main ()
28160 {
28161
28162           int64_t a; u_int64_t b;
28163           a = b = 1;
28164
28165   ;
28166   return 0;
28167 }
28168 _ACEOF
28169 if ac_fn_c_try_compile "$LINENO"; then :
28170
28171           $as_echo "#define HAVE_U_INT64_T 1" >>confdefs.h
28172
28173           $as_echo "#define HAVE_INT64_T 1" >>confdefs.h
28174
28175           { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28176 $as_echo "yes" >&6; }
28177
28178 else
28179
28180           { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28181 $as_echo "no" >&6; }
28182
28183
28184 fi
28185 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28186 fi
28187
28188 if (test -z "$have_uintxx_t" && \
28189     test "x$ac_cv_header_sys_bitypes_h" = "xyes")
28190 then
28191    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uintXX_t types in sys/bitypes.h" >&5
28192 $as_echo_n "checking for uintXX_t types in sys/bitypes.h... " >&6; }
28193    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28194 /* end confdefs.h.  */
28195
28196           #include <sys/bitypes.h>
28197
28198 int
28199 main ()
28200 {
28201
28202           uint8_t a; uint16_t b;
28203           uint32_t c; a = b = c = 1;
28204
28205   ;
28206   return 0;
28207 }
28208 _ACEOF
28209 if ac_fn_c_try_compile "$LINENO"; then :
28210
28211           $as_echo "#define HAVE_UINTXX_T 1" >>confdefs.h
28212
28213           { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28214 $as_echo "yes" >&6; }
28215
28216 else
28217
28218           { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28219 $as_echo "no" >&6; }
28220
28221
28222 fi
28223 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28224 fi
28225
28226 for ac_func in \
28227    fork \
28228    getcwd \
28229    gethostname \
28230    getpid \
28231    gettimeofday \
28232    setpgid \
28233    setpgrp \
28234    setsid \
28235    signal \
28236    strerror \
28237    strncmp \
28238    strncpy \
28239    vfprintf \
28240
28241 do :
28242   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
28243 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
28244 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
28245   cat >>confdefs.h <<_ACEOF
28246 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
28247 _ACEOF
28248
28249 else
28250   echo 'configure: cannot find needed function.'; exit 1
28251
28252 fi
28253 done
28254
28255
28256 ac_fn_c_check_decl "$LINENO" "F_CLOSEM" "ac_cv_have_decl_F_CLOSEM" "#include <fcntl.h>
28257
28258 "
28259 if test "x$ac_cv_have_decl_F_CLOSEM" = xyes; then :
28260
28261 $as_echo "#define HAVE_FCNTL_F_CLOSEM 1" >>confdefs.h
28262
28263 fi
28264
28265
28266 ac_fn_c_check_func "$LINENO" "closefrom" "ac_cv_func_closefrom"
28267 if test "x$ac_cv_func_closefrom" = xyes; then :
28268
28269 $as_echo "#define HAVE_CLOSEFROM 1" >>confdefs.h
28270
28271 fi
28272
28273 for ac_func in getpagesize
28274 do :
28275   ac_fn_c_check_func "$LINENO" "getpagesize" "ac_cv_func_getpagesize"
28276 if test "x$ac_cv_func_getpagesize" = xyes; then :
28277   cat >>confdefs.h <<_ACEOF
28278 #define HAVE_GETPAGESIZE 1
28279 _ACEOF
28280
28281 $as_echo "#define HAVE_GETPAGESIZE 1" >>confdefs.h
28282
28283 fi
28284 done
28285
28286 for ac_func in malloc_trim
28287 do :
28288   ac_fn_c_check_func "$LINENO" "malloc_trim" "ac_cv_func_malloc_trim"
28289 if test "x$ac_cv_func_malloc_trim" = xyes; then :
28290   cat >>confdefs.h <<_ACEOF
28291 #define HAVE_MALLOC_TRIM 1
28292 _ACEOF
28293
28294 $as_echo "#define HAVE_MALLOC_TRIM 1" >>confdefs.h
28295
28296 fi
28297 done
28298
28299
28300 for ac_func in fchdir
28301 do :
28302   ac_fn_c_check_func "$LINENO" "fchdir" "ac_cv_func_fchdir"
28303 if test "x$ac_cv_func_fchdir" = xyes; then :
28304   cat >>confdefs.h <<_ACEOF
28305 #define HAVE_FCHDIR 1
28306 _ACEOF
28307  $as_echo "#define HAVE_FCHDIR 1" >>confdefs.h
28308
28309 fi
28310 done
28311
28312 for ac_func in strtoll
28313 do :
28314   ac_fn_c_check_func "$LINENO" "strtoll" "ac_cv_func_strtoll"
28315 if test "x$ac_cv_func_strtoll" = xyes; then :
28316   cat >>confdefs.h <<_ACEOF
28317 #define HAVE_STRTOLL 1
28318 _ACEOF
28319  $as_echo "#define HAVE_STRTOLL 1" >>confdefs.h
28320
28321 fi
28322 done
28323
28324 for ac_func in posix_fadvise
28325 do :
28326   ac_fn_c_check_func "$LINENO" "posix_fadvise" "ac_cv_func_posix_fadvise"
28327 if test "x$ac_cv_func_posix_fadvise" = xyes; then :
28328   cat >>confdefs.h <<_ACEOF
28329 #define HAVE_POSIX_FADVISE 1
28330 _ACEOF
28331
28332 fi
28333 done
28334
28335 for ac_func in fdatasync
28336 do :
28337   ac_fn_c_check_func "$LINENO" "fdatasync" "ac_cv_func_fdatasync"
28338 if test "x$ac_cv_func_fdatasync" = xyes; then :
28339   cat >>confdefs.h <<_ACEOF
28340 #define HAVE_FDATASYNC 1
28341 _ACEOF
28342
28343 fi
28344 done
28345
28346
28347 for ac_func in chflags
28348 do :
28349   ac_fn_c_check_func "$LINENO" "chflags" "ac_cv_func_chflags"
28350 if test "x$ac_cv_func_chflags" = xyes; then :
28351   cat >>confdefs.h <<_ACEOF
28352 #define HAVE_CHFLAGS 1
28353 _ACEOF
28354
28355 fi
28356 done
28357
28358
28359 for ac_func in snprintf vsnprintf gethostid fseeko
28360 do :
28361   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
28362 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
28363 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
28364   cat >>confdefs.h <<_ACEOF
28365 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
28366 _ACEOF
28367
28368 fi
28369 done
28370
28371
28372 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for va_copy" >&5
28373 $as_echo_n "checking for va_copy... " >&6; }
28374 if ${ba_cv_va_copy+:} false; then :
28375   $as_echo_n "(cached) " >&6
28376 else
28377
28378        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28379 /* end confdefs.h.  */
28380
28381               #include <stdarg.h>
28382               void use_va_copy(va_list args){va_list args2; va_copy(args2,args); va_end(args2);}
28383               void call_use_va_copy(int junk,...){va_list args; va_start(args,junk); use_va_copy(args); va_end(args);}
28384
28385 int
28386 main ()
28387 {
28388
28389               call_use_va_copy(1,2,3)
28390
28391   ;
28392   return 0;
28393 }
28394 _ACEOF
28395 if ac_fn_c_try_link "$LINENO"; then :
28396
28397               ba_cv_va_copy=yes
28398
28399 else
28400
28401               ba_cv_va_copy=no
28402
28403
28404 fi
28405 rm -f core conftest.err conftest.$ac_objext \
28406     conftest$ac_exeext conftest.$ac_ext
28407
28408
28409 fi
28410 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ba_cv_va_copy" >&5
28411 $as_echo "$ba_cv_va_copy" >&6; }
28412 test $ba_cv_va_copy = yes &&
28413 $as_echo "#define HAVE_VA_COPY 1" >>confdefs.h
28414
28415
28416 for ac_func in localtime_r readdir_r strerror_r gethostbyname_r
28417 do :
28418   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
28419 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
28420 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
28421   cat >>confdefs.h <<_ACEOF
28422 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
28423 _ACEOF
28424
28425 fi
28426 done
28427
28428
28429 # If resolver functions are not in libc check for -lnsl or -lresolv.
28430 ac_fn_c_check_func "$LINENO" "gethostbyname_r" "ac_cv_func_gethostbyname_r"
28431 if test "x$ac_cv_func_gethostbyname_r" = xyes; then :
28432   { $as_echo "$as_me:${as_lineno-$LINENO}: result: using libc's resolver" >&5
28433 $as_echo "using libc's resolver" >&6; }
28434 else
28435   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname_r in -lnsl" >&5
28436 $as_echo_n "checking for gethostbyname_r in -lnsl... " >&6; }
28437 if ${ac_cv_lib_nsl_gethostbyname_r+:} false; then :
28438   $as_echo_n "(cached) " >&6
28439 else
28440   ac_check_lib_save_LIBS=$LIBS
28441 LIBS="-lnsl  $LIBS"
28442 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28443 /* end confdefs.h.  */
28444
28445 /* Override any GCC internal prototype to avoid an error.
28446    Use char because int might match the return type of a GCC
28447    builtin and then its argument prototype would still apply.  */
28448 #ifdef __cplusplus
28449 extern "C"
28450 #endif
28451 char gethostbyname_r ();
28452 int
28453 main ()
28454 {
28455 return gethostbyname_r ();
28456   ;
28457   return 0;
28458 }
28459 _ACEOF
28460 if ac_fn_c_try_link "$LINENO"; then :
28461   ac_cv_lib_nsl_gethostbyname_r=yes
28462 else
28463   ac_cv_lib_nsl_gethostbyname_r=no
28464 fi
28465 rm -f core conftest.err conftest.$ac_objext \
28466     conftest$ac_exeext conftest.$ac_ext
28467 LIBS=$ac_check_lib_save_LIBS
28468 fi
28469 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_gethostbyname_r" >&5
28470 $as_echo "$ac_cv_lib_nsl_gethostbyname_r" >&6; }
28471 if test "x$ac_cv_lib_nsl_gethostbyname_r" = xyes; then :
28472   cat >>confdefs.h <<_ACEOF
28473 #define HAVE_LIBNSL 1
28474 _ACEOF
28475
28476   LIBS="-lnsl $LIBS"
28477
28478 fi
28479
28480     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname_r in -lresolv" >&5
28481 $as_echo_n "checking for gethostbyname_r in -lresolv... " >&6; }
28482 if ${ac_cv_lib_resolv_gethostbyname_r+:} false; then :
28483   $as_echo_n "(cached) " >&6
28484 else
28485   ac_check_lib_save_LIBS=$LIBS
28486 LIBS="-lresolv  $LIBS"
28487 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28488 /* end confdefs.h.  */
28489
28490 /* Override any GCC internal prototype to avoid an error.
28491    Use char because int might match the return type of a GCC
28492    builtin and then its argument prototype would still apply.  */
28493 #ifdef __cplusplus
28494 extern "C"
28495 #endif
28496 char gethostbyname_r ();
28497 int
28498 main ()
28499 {
28500 return gethostbyname_r ();
28501   ;
28502   return 0;
28503 }
28504 _ACEOF
28505 if ac_fn_c_try_link "$LINENO"; then :
28506   ac_cv_lib_resolv_gethostbyname_r=yes
28507 else
28508   ac_cv_lib_resolv_gethostbyname_r=no
28509 fi
28510 rm -f core conftest.err conftest.$ac_objext \
28511     conftest$ac_exeext conftest.$ac_ext
28512 LIBS=$ac_check_lib_save_LIBS
28513 fi
28514 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_resolv_gethostbyname_r" >&5
28515 $as_echo "$ac_cv_lib_resolv_gethostbyname_r" >&6; }
28516 if test "x$ac_cv_lib_resolv_gethostbyname_r" = xyes; then :
28517   cat >>confdefs.h <<_ACEOF
28518 #define HAVE_LIBRESOLV 1
28519 _ACEOF
28520
28521   LIBS="-lresolv $LIBS"
28522
28523 fi
28524
28525 fi
28526
28527
28528 for ac_func in inet_pton
28529 do :
28530   ac_fn_c_check_func "$LINENO" "inet_pton" "ac_cv_func_inet_pton"
28531 if test "x$ac_cv_func_inet_pton" = xyes; then :
28532   cat >>confdefs.h <<_ACEOF
28533 #define HAVE_INET_PTON 1
28534 _ACEOF
28535  $as_echo "#define HAVE_INET_PTON 1" >>confdefs.h
28536
28537 fi
28538 done
28539
28540 for ac_func in inet_ntop
28541 do :
28542   ac_fn_c_check_func "$LINENO" "inet_ntop" "ac_cv_func_inet_ntop"
28543 if test "x$ac_cv_func_inet_ntop" = xyes; then :
28544   cat >>confdefs.h <<_ACEOF
28545 #define HAVE_INET_NTOP 1
28546 _ACEOF
28547  $as_echo "#define HAVE_INET_NTOP 1" >>confdefs.h
28548
28549 fi
28550 done
28551
28552 for ac_func in gethostbyname2
28553 do :
28554   ac_fn_c_check_func "$LINENO" "gethostbyname2" "ac_cv_func_gethostbyname2"
28555 if test "x$ac_cv_func_gethostbyname2" = xyes; then :
28556   cat >>confdefs.h <<_ACEOF
28557 #define HAVE_GETHOSTBYNAME2 1
28558 _ACEOF
28559  $as_echo "#define HAVE_GETHOSTBYNAME2 1" >>confdefs.h
28560
28561 fi
28562 done
28563
28564 for ac_func in getnameinfo
28565 do :
28566   ac_fn_c_check_func "$LINENO" "getnameinfo" "ac_cv_func_getnameinfo"
28567 if test "x$ac_cv_func_getnameinfo" = xyes; then :
28568   cat >>confdefs.h <<_ACEOF
28569 #define HAVE_GETNAMEINFO 1
28570 _ACEOF
28571  $as_echo "#define HAVE_GETNAMEINFO 1" >>confdefs.h
28572
28573 fi
28574 done
28575
28576
28577
28578 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct sockaddr has a sa_len field" >&5
28579 $as_echo_n "checking for struct sockaddr has a sa_len field... " >&6; }
28580 if ${ac_cv_struct_sockaddr_sa_len+:} false; then :
28581   $as_echo_n "(cached) " >&6
28582 else
28583
28584        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28585 /* end confdefs.h.  */
28586
28587               #include <sys/socket.h>
28588
28589 int
28590 main ()
28591 {
28592
28593               struct sockaddr s; s.sa_len;
28594
28595   ;
28596   return 0;
28597 }
28598 _ACEOF
28599 if ac_fn_c_try_compile "$LINENO"; then :
28600
28601              ac_cv_struct_sockaddr_sa_len=yes
28602
28603 else
28604   ac_cv_struct_sockaddr_sa_len=no
28605
28606
28607 fi
28608 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28609
28610
28611 fi
28612 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_sockaddr_sa_len" >&5
28613 $as_echo "$ac_cv_struct_sockaddr_sa_len" >&6; }
28614
28615 if test $ac_cv_struct_sockaddr_sa_len = yes; then
28616
28617 $as_echo "#define HAVE_SA_LEN 1" >>confdefs.h
28618
28619 fi
28620
28621 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working getaddrinfo" >&5
28622 $as_echo_n "checking for working getaddrinfo... " >&6; }
28623 if ${ac_cv_working_getaddrinfo+:} false; then :
28624   $as_echo_n "(cached) " >&6
28625 else
28626
28627        if test "$cross_compiling" = yes; then :
28628
28629               ac_cv_working_getaddrinfo="yes"
28630
28631
28632 else
28633   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28634 /* end confdefs.h.  */
28635
28636               #include <netdb.h>
28637               #include <string.h>
28638               #include <sys/types.h>
28639               #include <sys/socket.h>
28640
28641               void main(void) {
28642                   struct addrinfo hints, *ai;
28643                   int error;
28644
28645                   memset(&hints, 0, sizeof(hints));
28646                   hints.ai_family = AF_UNSPEC;
28647                   hints.ai_socktype = SOCK_STREAM;
28648                   error = getaddrinfo("127.0.0.1", NULL, &hints, &ai);
28649                   if (error) {
28650                       exit(1);
28651                   }
28652                   if (ai->ai_addr->sa_family != AF_INET) {
28653                       exit(1);
28654                   }
28655                   exit(0);
28656               }
28657
28658 _ACEOF
28659 if ac_fn_c_try_run "$LINENO"; then :
28660
28661               ac_cv_working_getaddrinfo="yes"
28662
28663 else
28664
28665               ac_cv_working_getaddrinfo="no"
28666
28667 fi
28668 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
28669   conftest.$ac_objext conftest.beam conftest.$ac_ext
28670 fi
28671
28672
28673
28674 fi
28675 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_getaddrinfo" >&5
28676 $as_echo "$ac_cv_working_getaddrinfo" >&6; }
28677 ac_fn_c_check_func "$LINENO" "gai_strerror" "ac_cv_func_gai_strerror"
28678 if test "x$ac_cv_func_gai_strerror" = xyes; then :
28679
28680 $as_echo "#define HAVE_GAI_STRERROR 1" >>confdefs.h
28681
28682 fi
28683
28684
28685 if test "$ac_cv_working_getaddrinfo" = "yes"; then
28686   if test "$ac_cv_func_gai_strerror" != "yes"; then
28687     ac_cv_working_getaddrinfo="no"
28688   else
28689
28690 $as_echo "#define HAVE_GETADDRINFO 1" >>confdefs.h
28691
28692   fi
28693 fi
28694
28695 for ac_func in strftime
28696 do :
28697   ac_fn_c_check_func "$LINENO" "strftime" "ac_cv_func_strftime"
28698 if test "x$ac_cv_func_strftime" = xyes; then :
28699   cat >>confdefs.h <<_ACEOF
28700 #define HAVE_STRFTIME 1
28701 _ACEOF
28702
28703 else
28704   # strftime is in -lintl on SCO UNIX.
28705 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for strftime in -lintl" >&5
28706 $as_echo_n "checking for strftime in -lintl... " >&6; }
28707 if ${ac_cv_lib_intl_strftime+:} false; then :
28708   $as_echo_n "(cached) " >&6
28709 else
28710   ac_check_lib_save_LIBS=$LIBS
28711 LIBS="-lintl  $LIBS"
28712 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28713 /* end confdefs.h.  */
28714
28715 /* Override any GCC internal prototype to avoid an error.
28716    Use char because int might match the return type of a GCC
28717    builtin and then its argument prototype would still apply.  */
28718 #ifdef __cplusplus
28719 extern "C"
28720 #endif
28721 char strftime ();
28722 int
28723 main ()
28724 {
28725 return strftime ();
28726   ;
28727   return 0;
28728 }
28729 _ACEOF
28730 if ac_fn_c_try_link "$LINENO"; then :
28731   ac_cv_lib_intl_strftime=yes
28732 else
28733   ac_cv_lib_intl_strftime=no
28734 fi
28735 rm -f core conftest.err conftest.$ac_objext \
28736     conftest$ac_exeext conftest.$ac_ext
28737 LIBS=$ac_check_lib_save_LIBS
28738 fi
28739 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_intl_strftime" >&5
28740 $as_echo "$ac_cv_lib_intl_strftime" >&6; }
28741 if test "x$ac_cv_lib_intl_strftime" = xyes; then :
28742   $as_echo "#define HAVE_STRFTIME 1" >>confdefs.h
28743
28744 LIBS="-lintl $LIBS"
28745 fi
28746
28747 fi
28748 done
28749
28750 for ac_func in vprintf
28751 do :
28752   ac_fn_c_check_func "$LINENO" "vprintf" "ac_cv_func_vprintf"
28753 if test "x$ac_cv_func_vprintf" = xyes; then :
28754   cat >>confdefs.h <<_ACEOF
28755 #define HAVE_VPRINTF 1
28756 _ACEOF
28757
28758 ac_fn_c_check_func "$LINENO" "_doprnt" "ac_cv_func__doprnt"
28759 if test "x$ac_cv_func__doprnt" = xyes; then :
28760
28761 $as_echo "#define HAVE_DOPRNT 1" >>confdefs.h
28762
28763 fi
28764
28765 fi
28766 done
28767
28768
28769 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
28770 # for constant arguments.  Useless!
28771 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5
28772 $as_echo_n "checking for working alloca.h... " >&6; }
28773 if ${ac_cv_working_alloca_h+:} false; then :
28774   $as_echo_n "(cached) " >&6
28775 else
28776   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28777 /* end confdefs.h.  */
28778 #include <alloca.h>
28779 int
28780 main ()
28781 {
28782 char *p = (char *) alloca (2 * sizeof (int));
28783                           if (p) return 0;
28784   ;
28785   return 0;
28786 }
28787 _ACEOF
28788 if ac_fn_c_try_link "$LINENO"; then :
28789   ac_cv_working_alloca_h=yes
28790 else
28791   ac_cv_working_alloca_h=no
28792 fi
28793 rm -f core conftest.err conftest.$ac_objext \
28794     conftest$ac_exeext conftest.$ac_ext
28795 fi
28796 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5
28797 $as_echo "$ac_cv_working_alloca_h" >&6; }
28798 if test $ac_cv_working_alloca_h = yes; then
28799
28800 $as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h
28801
28802 fi
28803
28804 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5
28805 $as_echo_n "checking for alloca... " >&6; }
28806 if ${ac_cv_func_alloca_works+:} false; then :
28807   $as_echo_n "(cached) " >&6
28808 else
28809   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28810 /* end confdefs.h.  */
28811 #ifdef __GNUC__
28812 # define alloca __builtin_alloca
28813 #else
28814 # ifdef _MSC_VER
28815 #  include <malloc.h>
28816 #  define alloca _alloca
28817 # else
28818 #  ifdef HAVE_ALLOCA_H
28819 #   include <alloca.h>
28820 #  else
28821 #   ifdef _AIX
28822  #pragma alloca
28823 #   else
28824 #    ifndef alloca /* predefined by HP cc +Olibcalls */
28825 void *alloca (size_t);
28826 #    endif
28827 #   endif
28828 #  endif
28829 # endif
28830 #endif
28831
28832 int
28833 main ()
28834 {
28835 char *p = (char *) alloca (1);
28836                                     if (p) return 0;
28837   ;
28838   return 0;
28839 }
28840 _ACEOF
28841 if ac_fn_c_try_link "$LINENO"; then :
28842   ac_cv_func_alloca_works=yes
28843 else
28844   ac_cv_func_alloca_works=no
28845 fi
28846 rm -f core conftest.err conftest.$ac_objext \
28847     conftest$ac_exeext conftest.$ac_ext
28848 fi
28849 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5
28850 $as_echo "$ac_cv_func_alloca_works" >&6; }
28851
28852 if test $ac_cv_func_alloca_works = yes; then
28853
28854 $as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
28855
28856 else
28857   # The SVR3 libPW and SVR4 libucb both contain incompatible functions
28858 # that cause trouble.  Some versions do not even contain alloca or
28859 # contain a buggy version.  If you still want to use their alloca,
28860 # use ar to extract alloca.o from them instead of compiling alloca.c.
28861
28862 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
28863
28864 $as_echo "#define C_ALLOCA 1" >>confdefs.h
28865
28866
28867 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether \`alloca.c' needs Cray hooks" >&5
28868 $as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; }
28869 if ${ac_cv_os_cray+:} false; then :
28870   $as_echo_n "(cached) " >&6
28871 else
28872   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28873 /* end confdefs.h.  */
28874 #if defined CRAY && ! defined CRAY2
28875 webecray
28876 #else
28877 wenotbecray
28878 #endif
28879
28880 _ACEOF
28881 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
28882   $EGREP "webecray" >/dev/null 2>&1; then :
28883   ac_cv_os_cray=yes
28884 else
28885   ac_cv_os_cray=no
28886 fi
28887 rm -f conftest*
28888
28889 fi
28890 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5
28891 $as_echo "$ac_cv_os_cray" >&6; }
28892 if test $ac_cv_os_cray = yes; then
28893   for ac_func in _getb67 GETB67 getb67; do
28894     as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
28895 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
28896 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
28897
28898 cat >>confdefs.h <<_ACEOF
28899 #define CRAY_STACKSEG_END $ac_func
28900 _ACEOF
28901
28902     break
28903 fi
28904
28905   done
28906 fi
28907
28908 { $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5
28909 $as_echo_n "checking stack direction for C alloca... " >&6; }
28910 if ${ac_cv_c_stack_direction+:} false; then :
28911   $as_echo_n "(cached) " >&6
28912 else
28913   if test "$cross_compiling" = yes; then :
28914   ac_cv_c_stack_direction=0
28915 else
28916   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28917 /* end confdefs.h.  */
28918 $ac_includes_default
28919 int
28920 find_stack_direction ()
28921 {
28922   static char *addr = 0;
28923   auto char dummy;
28924   if (addr == 0)
28925     {
28926       addr = &dummy;
28927       return find_stack_direction ();
28928     }
28929   else
28930     return (&dummy > addr) ? 1 : -1;
28931 }
28932
28933 int
28934 main ()
28935 {
28936   return find_stack_direction () < 0;
28937 }
28938 _ACEOF
28939 if ac_fn_c_try_run "$LINENO"; then :
28940   ac_cv_c_stack_direction=1
28941 else
28942   ac_cv_c_stack_direction=-1
28943 fi
28944 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
28945   conftest.$ac_objext conftest.beam conftest.$ac_ext
28946 fi
28947
28948 fi
28949 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5
28950 $as_echo "$ac_cv_c_stack_direction" >&6; }
28951 cat >>confdefs.h <<_ACEOF
28952 #define STACK_DIRECTION $ac_cv_c_stack_direction
28953 _ACEOF
28954
28955
28956 fi
28957
28958 # getmntent is in the standard C library on UNICOS, in -lsun on Irix 4,
28959 # -lseq on Dynix/PTX, -lgen on Unixware.
28960 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing getmntent" >&5
28961 $as_echo_n "checking for library containing getmntent... " >&6; }
28962 if ${ac_cv_search_getmntent+:} false; then :
28963   $as_echo_n "(cached) " >&6
28964 else
28965   ac_func_search_save_LIBS=$LIBS
28966 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28967 /* end confdefs.h.  */
28968
28969 /* Override any GCC internal prototype to avoid an error.
28970    Use char because int might match the return type of a GCC
28971    builtin and then its argument prototype would still apply.  */
28972 #ifdef __cplusplus
28973 extern "C"
28974 #endif
28975 char getmntent ();
28976 int
28977 main ()
28978 {
28979 return getmntent ();
28980   ;
28981   return 0;
28982 }
28983 _ACEOF
28984 for ac_lib in '' sun seq gen; do
28985   if test -z "$ac_lib"; then
28986     ac_res="none required"
28987   else
28988     ac_res=-l$ac_lib
28989     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
28990   fi
28991   if ac_fn_c_try_link "$LINENO"; then :
28992   ac_cv_search_getmntent=$ac_res
28993 fi
28994 rm -f core conftest.err conftest.$ac_objext \
28995     conftest$ac_exeext
28996   if ${ac_cv_search_getmntent+:} false; then :
28997   break
28998 fi
28999 done
29000 if ${ac_cv_search_getmntent+:} false; then :
29001
29002 else
29003   ac_cv_search_getmntent=no
29004 fi
29005 rm conftest.$ac_ext
29006 LIBS=$ac_func_search_save_LIBS
29007 fi
29008 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_getmntent" >&5
29009 $as_echo "$ac_cv_search_getmntent" >&6; }
29010 ac_res=$ac_cv_search_getmntent
29011 if test "$ac_res" != no; then :
29012   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
29013   ac_cv_func_getmntent=yes
29014
29015 $as_echo "#define HAVE_GETMNTENT 1" >>confdefs.h
29016
29017 else
29018   ac_cv_func_getmntent=no
29019 fi
29020
29021
29022 for ac_func in getmntinfo
29023 do :
29024   ac_fn_c_check_func "$LINENO" "getmntinfo" "ac_cv_func_getmntinfo"
29025 if test "x$ac_cv_func_getmntinfo" = xyes; then :
29026   cat >>confdefs.h <<_ACEOF
29027 #define HAVE_GETMNTINFO 1
29028 _ACEOF
29029  $as_echo "#define HAVE_GETMNTINFO 1" >>confdefs.h
29030
29031 fi
29032 done
29033
29034 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether closedir returns void" >&5
29035 $as_echo_n "checking whether closedir returns void... " >&6; }
29036 if ${ac_cv_func_closedir_void+:} false; then :
29037   $as_echo_n "(cached) " >&6
29038 else
29039   if test "$cross_compiling" = yes; then :
29040   ac_cv_func_closedir_void=yes
29041 else
29042   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29043 /* end confdefs.h.  */
29044 $ac_includes_default
29045 #include <$ac_header_dirent>
29046 #ifndef __cplusplus
29047 int closedir ();
29048 #endif
29049
29050 int
29051 main ()
29052 {
29053 return closedir (opendir (".")) != 0;
29054   ;
29055   return 0;
29056 }
29057 _ACEOF
29058 if ac_fn_c_try_run "$LINENO"; then :
29059   ac_cv_func_closedir_void=no
29060 else
29061   ac_cv_func_closedir_void=yes
29062 fi
29063 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
29064   conftest.$ac_objext conftest.beam conftest.$ac_ext
29065 fi
29066
29067 fi
29068 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_closedir_void" >&5
29069 $as_echo "$ac_cv_func_closedir_void" >&6; }
29070 if test $ac_cv_func_closedir_void = yes; then
29071
29072 $as_echo "#define CLOSEDIR_VOID 1" >>confdefs.h
29073
29074 fi
29075
29076 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether setpgrp takes no argument" >&5
29077 $as_echo_n "checking whether setpgrp takes no argument... " >&6; }
29078 if ${ac_cv_func_setpgrp_void+:} false; then :
29079   $as_echo_n "(cached) " >&6
29080 else
29081   if test "$cross_compiling" = yes; then :
29082   as_fn_error $? "cannot check setpgrp when cross compiling" "$LINENO" 5
29083 else
29084   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29085 /* end confdefs.h.  */
29086 $ac_includes_default
29087 int
29088 main ()
29089 {
29090 /* If this system has a BSD-style setpgrp which takes arguments,
29091   setpgrp(1, 1) will fail with ESRCH and return -1, in that case
29092   exit successfully. */
29093   return setpgrp (1,1) != -1;
29094   ;
29095   return 0;
29096 }
29097 _ACEOF
29098 if ac_fn_c_try_run "$LINENO"; then :
29099   ac_cv_func_setpgrp_void=no
29100 else
29101   ac_cv_func_setpgrp_void=yes
29102 fi
29103 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
29104   conftest.$ac_objext conftest.beam conftest.$ac_ext
29105 fi
29106
29107 fi
29108 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_setpgrp_void" >&5
29109 $as_echo "$ac_cv_func_setpgrp_void" >&6; }
29110 if test $ac_cv_func_setpgrp_void = yes; then
29111
29112 $as_echo "#define SETPGRP_VOID 1" >>confdefs.h
29113
29114 fi
29115             # AC_FUNC_FNMATCH    dnl use local version
29116
29117 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gettext in -lintl" >&5
29118 $as_echo_n "checking for gettext in -lintl... " >&6; }
29119 if ${ac_cv_lib_intl_gettext+:} false; then :
29120   $as_echo_n "(cached) " >&6
29121 else
29122   ac_check_lib_save_LIBS=$LIBS
29123 LIBS="-lintl  $LIBS"
29124 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29125 /* end confdefs.h.  */
29126
29127 /* Override any GCC internal prototype to avoid an error.
29128    Use char because int might match the return type of a GCC
29129    builtin and then its argument prototype would still apply.  */
29130 #ifdef __cplusplus
29131 extern "C"
29132 #endif
29133 char gettext ();
29134 int
29135 main ()
29136 {
29137 return gettext ();
29138   ;
29139   return 0;
29140 }
29141 _ACEOF
29142 if ac_fn_c_try_link "$LINENO"; then :
29143   ac_cv_lib_intl_gettext=yes
29144 else
29145   ac_cv_lib_intl_gettext=no
29146 fi
29147 rm -f core conftest.err conftest.$ac_objext \
29148     conftest$ac_exeext conftest.$ac_ext
29149 LIBS=$ac_check_lib_save_LIBS
29150 fi
29151 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_intl_gettext" >&5
29152 $as_echo "$ac_cv_lib_intl_gettext" >&6; }
29153 if test "x$ac_cv_lib_intl_gettext" = xyes; then :
29154   LIBS="$LIBS -lintl"
29155 fi
29156
29157
29158 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getpwnam in -lsun" >&5
29159 $as_echo_n "checking for getpwnam in -lsun... " >&6; }
29160 if ${ac_cv_lib_sun_getpwnam+:} false; then :
29161   $as_echo_n "(cached) " >&6
29162 else
29163   ac_check_lib_save_LIBS=$LIBS
29164 LIBS="-lsun  $LIBS"
29165 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29166 /* end confdefs.h.  */
29167
29168 /* Override any GCC internal prototype to avoid an error.
29169    Use char because int might match the return type of a GCC
29170    builtin and then its argument prototype would still apply.  */
29171 #ifdef __cplusplus
29172 extern "C"
29173 #endif
29174 char getpwnam ();
29175 int
29176 main ()
29177 {
29178 return getpwnam ();
29179   ;
29180   return 0;
29181 }
29182 _ACEOF
29183 if ac_fn_c_try_link "$LINENO"; then :
29184   ac_cv_lib_sun_getpwnam=yes
29185 else
29186   ac_cv_lib_sun_getpwnam=no
29187 fi
29188 rm -f core conftest.err conftest.$ac_objext \
29189     conftest$ac_exeext conftest.$ac_ext
29190 LIBS=$ac_check_lib_save_LIBS
29191 fi
29192 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_sun_getpwnam" >&5
29193 $as_echo "$ac_cv_lib_sun_getpwnam" >&6; }
29194 if test "x$ac_cv_lib_sun_getpwnam" = xyes; then :
29195   cat >>confdefs.h <<_ACEOF
29196 #define HAVE_LIBSUN 1
29197 _ACEOF
29198
29199   LIBS="-lsun $LIBS"
29200
29201 fi
29202
29203
29204 for ac_header in zlib.h
29205 do :
29206   ac_fn_c_check_header_mongrel "$LINENO" "zlib.h" "ac_cv_header_zlib_h" "$ac_includes_default"
29207 if test "x$ac_cv_header_zlib_h" = xyes; then :
29208   cat >>confdefs.h <<_ACEOF
29209 #define HAVE_ZLIB_H 1
29210 _ACEOF
29211
29212 fi
29213
29214 done
29215
29216 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for deflate in -lz" >&5
29217 $as_echo_n "checking for deflate in -lz... " >&6; }
29218 if ${ac_cv_lib_z_deflate+:} false; then :
29219   $as_echo_n "(cached) " >&6
29220 else
29221   ac_check_lib_save_LIBS=$LIBS
29222 LIBS="-lz  $LIBS"
29223 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29224 /* end confdefs.h.  */
29225
29226 /* Override any GCC internal prototype to avoid an error.
29227    Use char because int might match the return type of a GCC
29228    builtin and then its argument prototype would still apply.  */
29229 #ifdef __cplusplus
29230 extern "C"
29231 #endif
29232 char deflate ();
29233 int
29234 main ()
29235 {
29236 return deflate ();
29237   ;
29238   return 0;
29239 }
29240 _ACEOF
29241 if ac_fn_c_try_link "$LINENO"; then :
29242   ac_cv_lib_z_deflate=yes
29243 else
29244   ac_cv_lib_z_deflate=no
29245 fi
29246 rm -f core conftest.err conftest.$ac_objext \
29247     conftest$ac_exeext conftest.$ac_ext
29248 LIBS=$ac_check_lib_save_LIBS
29249 fi
29250 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_deflate" >&5
29251 $as_echo "$ac_cv_lib_z_deflate" >&6; }
29252 if test "x$ac_cv_lib_z_deflate" = xyes; then :
29253   ZLIBS="-lz"
29254 fi
29255
29256 have_zlib=no
29257 if test x$ZLIBS = x-lz; then
29258    $as_echo "#define HAVE_LIBZ 1" >>confdefs.h
29259
29260    have_zlib=yes
29261 fi
29262
29263
29264 AFS_CFLAGS=""
29265 AFS_LIBS=""
29266 support_afs=auto
29267 # Check whether --enable-afs was given.
29268 if test "${enable_afs+set}" = set; then :
29269   enableval=$enable_afs;
29270        if test x$enableval = xyes; then
29271           support_afs=yes
29272        elif test x$enableval = xno; then
29273           support_afs=no
29274        fi
29275
29276
29277 fi
29278
29279
29280 have_afs=no
29281 if test x$support_afs = xyes -o x$support_afs = xauto; then
29282
29283 # Check whether --with-afsdir was given.
29284 if test "${with_afsdir+set}" = set; then :
29285   withval=$with_afsdir; with_afsdir=$withval
29286
29287 fi
29288
29289
29290             if test x$with_afsdir = x; then
29291       for root in /usr /usr/local; do
29292          if test -d ${root}/include/afs/ ; then
29293             with_afsdir=${root}
29294             break
29295          fi
29296          if test -d ${root}/include/openafs/afs/ ; then
29297             with_afsdir=${root}
29298             break
29299          fi
29300       done
29301    fi
29302
29303    if test -d ${with_afsdir}/include/afs/ ; then
29304       AFS_CFLAGS="-I${with_afsdir}/include"
29305    else
29306       if test -d ${with_afsdir}/include/openafs/afs/ ; then
29307          AFS_CFLAGS="-I${with_afsdir}/include/openafs"
29308       fi
29309    fi
29310
29311    saved_CFLAGS="${CFLAGS}"
29312    saved_CPPFLAGS="${CPPFLAGS}"
29313    CFLAGS="${AFS_CFLAGS} ${saved_CFLAGS}"
29314    CPPFLAGS="${AFS_CFLAGS} ${saved_CPPFLAGS}"
29315
29316    for ac_header in afs/afsint.h
29317 do :
29318   ac_fn_c_check_header_mongrel "$LINENO" "afs/afsint.h" "ac_cv_header_afs_afsint_h" "$ac_includes_default"
29319 if test "x$ac_cv_header_afs_afsint_h" = xyes; then :
29320   cat >>confdefs.h <<_ACEOF
29321 #define HAVE_AFS_AFSINT_H 1
29322 _ACEOF
29323
29324 fi
29325
29326 done
29327
29328    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29329 /* end confdefs.h.  */
29330
29331           #include <afs/afsint.h>
29332           #include <afs/venus.h>
29333
29334 _ACEOF
29335 if ac_fn_c_try_cpp "$LINENO"; then :
29336
29337 $as_echo "#define HAVE_AFS_VENUS_H 1" >>confdefs.h
29338
29339
29340 fi
29341 rm -f conftest.err conftest.i conftest.$ac_ext
29342
29343    CFLAGS="${saved_CFLAGS}"
29344    CPPFLAGS="${saved_CPPFLAGS}"
29345
29346             { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pioctl in AFS libsys" >&5
29347 $as_echo_n "checking for pioctl in AFS libsys... " >&6; }
29348    for dir in ${with_afsdir}/lib \
29349               ${with_afsdir}/lib/afs \
29350               ${with_afsdir}/lib/openafs \
29351               ${with_afsdir}/lib64 \
29352               ${with_afsdir}/lib64/afs \
29353               ${with_afsdir}/lib64/openafs
29354    do
29355       for arch_type in .a .so
29356       do
29357          A=`test -f ${dir}/libsys${arch_type} && nm ${dir}/libsys${arch_type} 2>/dev/null | grep pioctl`
29358          pkg=$?
29359          if test $pkg = 0; then
29360             have_afs=yes
29361             AFS_LIBS="-L${dir} -lsys -lrx -llwp ${dir}/util${arch_type}"
29362             break
29363          fi
29364       done
29365    done
29366
29367    if test $have_afs = yes; then
29368       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29369 $as_echo "yes" >&6; }
29370    else
29371       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29372 $as_echo "no" >&6; }
29373    fi
29374
29375    if test x$support_afs = xyes -a $have_afs != yes; then
29376       as_fn_error $? "afs support explicitly enabled but no supported afs implementation found,
29377   please either load the afs libraries or rerun configure without --enable-afs" "$LINENO" 5
29378    else
29379       if test $have_afs = yes; then
29380
29381 $as_echo "#define HAVE_AFS 1" >>confdefs.h
29382
29383
29384 $as_echo "#define HAVE_AFS_ACL 1" >>confdefs.h
29385
29386       fi
29387    fi
29388 fi
29389
29390
29391
29392
29393 # Check whether --enable-lzo was given.
29394 if test "${enable_lzo+set}" = set; then :
29395   enableval=$enable_lzo;
29396        if test x$enableval = xno; then
29397           support_lzo=no
29398        fi
29399
29400
29401 fi
29402
29403
29404 LZO_INC=
29405 LZO_LIBS=
29406 LZO_LDFLAGS=
29407
29408 have_lzo="no"
29409 if test x$support_lzo = xyes; then
29410
29411 # Check whether --with-lzo was given.
29412 if test "${with_lzo+set}" = set; then :
29413   withval=$with_lzo;
29414           case "$with_lzo" in
29415           no)
29416              :
29417              ;;
29418           yes|*)
29419              if test -f ${with_lzo}/include/lzo/lzoconf.h; then
29420                 LZO_INC="-I${with_lzo}/include"
29421                 LZO_LDFLAGS="-L${with_lzo}/lib"
29422                 with_lzo="${with_lzo}/include"
29423              else
29424                 with_lzo="/usr/include"
29425              fi
29426
29427              as_ac_Header=`$as_echo "ac_cv_header_${with_lzo}/lzo/lzoconf.h" | $as_tr_sh`
29428 ac_fn_c_check_header_mongrel "$LINENO" "${with_lzo}/lzo/lzoconf.h" "$as_ac_Header" "$ac_includes_default"
29429 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
29430
29431
29432 $as_echo "#define HAVE_LZO 1" >>confdefs.h
29433
29434                     LZO_LIBS="${LZO_LDFLAGS} -lzo2"
29435                     have_lzo="yes"
29436
29437 else
29438
29439                     echo " "
29440                     echo "lzoconf.h not found. lzo turned off ..."
29441                     echo " "
29442
29443
29444 fi
29445
29446
29447              ;;
29448           esac
29449
29450 else
29451
29452          ac_fn_c_check_header_mongrel "$LINENO" "lzo/lzoconf.h" "ac_cv_header_lzo_lzoconf_h" "$ac_includes_default"
29453 if test "x$ac_cv_header_lzo_lzoconf_h" = xyes; then :
29454
29455             ac_fn_c_check_header_mongrel "$LINENO" "lzo/lzo1x.h" "ac_cv_header_lzo_lzo1x_h" "$ac_includes_default"
29456 if test "x$ac_cv_header_lzo_lzo1x_h" = xyes; then :
29457
29458                { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lzo1x_1_compress in -llzo2" >&5
29459 $as_echo_n "checking for lzo1x_1_compress in -llzo2... " >&6; }
29460 if ${ac_cv_lib_lzo2_lzo1x_1_compress+:} false; then :
29461   $as_echo_n "(cached) " >&6
29462 else
29463   ac_check_lib_save_LIBS=$LIBS
29464 LIBS="-llzo2  $LIBS"
29465 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29466 /* end confdefs.h.  */
29467
29468 /* Override any GCC internal prototype to avoid an error.
29469    Use char because int might match the return type of a GCC
29470    builtin and then its argument prototype would still apply.  */
29471 #ifdef __cplusplus
29472 extern "C"
29473 #endif
29474 char lzo1x_1_compress ();
29475 int
29476 main ()
29477 {
29478 return lzo1x_1_compress ();
29479   ;
29480   return 0;
29481 }
29482 _ACEOF
29483 if ac_fn_c_try_link "$LINENO"; then :
29484   ac_cv_lib_lzo2_lzo1x_1_compress=yes
29485 else
29486   ac_cv_lib_lzo2_lzo1x_1_compress=no
29487 fi
29488 rm -f core conftest.err conftest.$ac_objext \
29489     conftest$ac_exeext conftest.$ac_ext
29490 LIBS=$ac_check_lib_save_LIBS
29491 fi
29492 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lzo2_lzo1x_1_compress" >&5
29493 $as_echo "$ac_cv_lib_lzo2_lzo1x_1_compress" >&6; }
29494 if test "x$ac_cv_lib_lzo2_lzo1x_1_compress" = xyes; then :
29495
29496                  LZO_LIBS="-llzo2"
29497
29498 $as_echo "#define HAVE_LZO 1" >>confdefs.h
29499
29500                  have_lzo=yes
29501
29502 fi
29503
29504
29505 fi
29506
29507
29508
29509 fi
29510
29511
29512
29513 fi
29514
29515 fi
29516
29517
29518
29519
29520
29521 support_acl=auto
29522 # Check whether --enable-acl was given.
29523 if test "${enable_acl+set}" = set; then :
29524   enableval=$enable_acl;
29525        if test x$enableval = xyes; then
29526           support_acl=yes
29527        elif test x$enableval = xno; then
29528           support_acl=no
29529        fi
29530
29531
29532 fi
29533
29534
29535 have_acl=no
29536 have_extended_acl=no
29537 if test x$support_acl = xyes -o x$support_acl = xauto; then
29538    ac_fn_c_check_header_mongrel "$LINENO" "sys/acl.h" "ac_cv_header_sys_acl_h" "$ac_includes_default"
29539 if test "x$ac_cv_header_sys_acl_h" = xyes; then :
29540
29541 $as_echo "#define HAVE_SYS_ACL_H 1" >>confdefs.h
29542
29543 fi
29544
29545
29546
29547             ac_fn_c_check_func "$LINENO" "acl_get_file" "ac_cv_func_acl_get_file"
29548 if test "x$ac_cv_func_acl_get_file" = xyes; then :
29549
29550           have_acl=yes
29551
29552
29553 fi
29554
29555
29556             if test $have_acl = no; then
29557       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for acl_get_file in -lacl" >&5
29558 $as_echo_n "checking for acl_get_file in -lacl... " >&6; }
29559 if ${ac_cv_lib_acl_acl_get_file+:} false; then :
29560   $as_echo_n "(cached) " >&6
29561 else
29562   ac_check_lib_save_LIBS=$LIBS
29563 LIBS="-lacl  $LIBS"
29564 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29565 /* end confdefs.h.  */
29566
29567 /* Override any GCC internal prototype to avoid an error.
29568    Use char because int might match the return type of a GCC
29569    builtin and then its argument prototype would still apply.  */
29570 #ifdef __cplusplus
29571 extern "C"
29572 #endif
29573 char acl_get_file ();
29574 int
29575 main ()
29576 {
29577 return acl_get_file ();
29578   ;
29579   return 0;
29580 }
29581 _ACEOF
29582 if ac_fn_c_try_link "$LINENO"; then :
29583   ac_cv_lib_acl_acl_get_file=yes
29584 else
29585   ac_cv_lib_acl_acl_get_file=no
29586 fi
29587 rm -f core conftest.err conftest.$ac_objext \
29588     conftest$ac_exeext conftest.$ac_ext
29589 LIBS=$ac_check_lib_save_LIBS
29590 fi
29591 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_acl_acl_get_file" >&5
29592 $as_echo "$ac_cv_lib_acl_acl_get_file" >&6; }
29593 if test "x$ac_cv_lib_acl_acl_get_file" = xyes; then :
29594
29595              have_acl=yes
29596              if test $have_afs = yes; then
29597                                                                 if test -d /usr/lib64/; then
29598                    FDLIBS="-L/usr/lib64 -lacl $FDLIBS"
29599                 else
29600                    FDLIBS="-L/usr/lib -lacl $FDLIBS"
29601                 fi
29602              else
29603                 FDLIBS="-lacl $FDLIBS"
29604              fi
29605
29606
29607 fi
29608
29609    fi
29610
29611                if test $have_acl = no -a \
29612            x${HAVE_OSF1_OS_TRUE} = x; then
29613       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for acl_get_file in -lpacl" >&5
29614 $as_echo_n "checking for acl_get_file in -lpacl... " >&6; }
29615 if ${ac_cv_lib_pacl_acl_get_file+:} false; then :
29616   $as_echo_n "(cached) " >&6
29617 else
29618   ac_check_lib_save_LIBS=$LIBS
29619 LIBS="-lpacl  $LIBS"
29620 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29621 /* end confdefs.h.  */
29622
29623 /* Override any GCC internal prototype to avoid an error.
29624    Use char because int might match the return type of a GCC
29625    builtin and then its argument prototype would still apply.  */
29626 #ifdef __cplusplus
29627 extern "C"
29628 #endif
29629 char acl_get_file ();
29630 int
29631 main ()
29632 {
29633 return acl_get_file ();
29634   ;
29635   return 0;
29636 }
29637 _ACEOF
29638 if ac_fn_c_try_link "$LINENO"; then :
29639   ac_cv_lib_pacl_acl_get_file=yes
29640 else
29641   ac_cv_lib_pacl_acl_get_file=no
29642 fi
29643 rm -f core conftest.err conftest.$ac_objext \
29644     conftest$ac_exeext conftest.$ac_ext
29645 LIBS=$ac_check_lib_save_LIBS
29646 fi
29647 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pacl_acl_get_file" >&5
29648 $as_echo "$ac_cv_lib_pacl_acl_get_file" >&6; }
29649 if test "x$ac_cv_lib_pacl_acl_get_file" = xyes; then :
29650
29651              have_acl=yes
29652              FDLIBS="-lpacl $FDLIBS"
29653
29654
29655 fi
29656
29657
29658       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ACL_TYPE_DEFAULT_DIR in acl.h include file" >&5
29659 $as_echo_n "checking for ACL_TYPE_DEFAULT_DIR in acl.h include file... " >&6; }
29660       grep ACL_TYPE_DEFAULT_DIR /usr/include/sys/acl.h > /dev/null 2>&1
29661       if test $? = 0; then
29662
29663 $as_echo "#define HAVE_ACL_TYPE_DEFAULT_DIR 1" >>confdefs.h
29664
29665          { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29666 $as_echo "yes" >&6; }
29667       else
29668          { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29669 $as_echo "no" >&6; }
29670       fi
29671    fi
29672
29673             if test $have_acl = yes -a \
29674            x${HAVE_DARWIN_OS_TRUE} = x; then
29675       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ACL_TYPE_EXTENDED in acl.h include file" >&5
29676 $as_echo_n "checking for ACL_TYPE_EXTENDED in acl.h include file... " >&6; }
29677       grep ACL_TYPE_EXTENDED /usr/include/sys/acl.h > /dev/null 2>&1
29678       if test $? = 0; then
29679
29680 $as_echo "#define HAVE_ACL_TYPE_EXTENDED 1" >>confdefs.h
29681
29682          { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29683 $as_echo "yes" >&6; }
29684       else
29685          { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29686 $as_echo "no" >&6; }
29687       fi
29688    fi
29689
29690             if test $have_acl = yes -a \
29691            x${HAVE_FREEBSD_OS_TRUE} = x; then
29692       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ACL_TYPE_NFS4 in acl.h include file" >&5
29693 $as_echo_n "checking for ACL_TYPE_NFS4 in acl.h include file... " >&6; }
29694       grep ACL_TYPE_NFS4 /usr/include/sys/acl.h > /dev/null 2>&1
29695       if test $? = 0; then
29696
29697 $as_echo "#define HAVE_ACL_TYPE_NFS4 1" >>confdefs.h
29698
29699          { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29700 $as_echo "yes" >&6; }
29701       else
29702          { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29703 $as_echo "no" >&6; }
29704       fi
29705    fi
29706
29707             if test $have_acl = no -a \
29708            x${HAVE_SUN_OS_TRUE} = x; then
29709       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for acltotext in -lsec" >&5
29710 $as_echo_n "checking for acltotext in -lsec... " >&6; }
29711 if ${ac_cv_lib_sec_acltotext+:} false; then :
29712   $as_echo_n "(cached) " >&6
29713 else
29714   ac_check_lib_save_LIBS=$LIBS
29715 LIBS="-lsec  $LIBS"
29716 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29717 /* end confdefs.h.  */
29718
29719 /* Override any GCC internal prototype to avoid an error.
29720    Use char because int might match the return type of a GCC
29721    builtin and then its argument prototype would still apply.  */
29722 #ifdef __cplusplus
29723 extern "C"
29724 #endif
29725 char acltotext ();
29726 int
29727 main ()
29728 {
29729 return acltotext ();
29730   ;
29731   return 0;
29732 }
29733 _ACEOF
29734 if ac_fn_c_try_link "$LINENO"; then :
29735   ac_cv_lib_sec_acltotext=yes
29736 else
29737   ac_cv_lib_sec_acltotext=no
29738 fi
29739 rm -f core conftest.err conftest.$ac_objext \
29740     conftest$ac_exeext conftest.$ac_ext
29741 LIBS=$ac_check_lib_save_LIBS
29742 fi
29743 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_sec_acltotext" >&5
29744 $as_echo "$ac_cv_lib_sec_acltotext" >&6; }
29745 if test "x$ac_cv_lib_sec_acltotext" = xyes; then :
29746
29747              have_acl=yes
29748              FDLIBS="-lsec $FDLIBS"
29749
29750              { $as_echo "$as_me:${as_lineno-$LINENO}: checking for acl_totext in -lsec" >&5
29751 $as_echo_n "checking for acl_totext in -lsec... " >&6; }
29752 if ${ac_cv_lib_sec_acl_totext+:} false; then :
29753   $as_echo_n "(cached) " >&6
29754 else
29755   ac_check_lib_save_LIBS=$LIBS
29756 LIBS="-lsec  $LIBS"
29757 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29758 /* end confdefs.h.  */
29759
29760 /* Override any GCC internal prototype to avoid an error.
29761    Use char because int might match the return type of a GCC
29762    builtin and then its argument prototype would still apply.  */
29763 #ifdef __cplusplus
29764 extern "C"
29765 #endif
29766 char acl_totext ();
29767 int
29768 main ()
29769 {
29770 return acl_totext ();
29771   ;
29772   return 0;
29773 }
29774 _ACEOF
29775 if ac_fn_c_try_link "$LINENO"; then :
29776   ac_cv_lib_sec_acl_totext=yes
29777 else
29778   ac_cv_lib_sec_acl_totext=no
29779 fi
29780 rm -f core conftest.err conftest.$ac_objext \
29781     conftest$ac_exeext conftest.$ac_ext
29782 LIBS=$ac_check_lib_save_LIBS
29783 fi
29784 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_sec_acl_totext" >&5
29785 $as_echo "$ac_cv_lib_sec_acl_totext" >&6; }
29786 if test "x$ac_cv_lib_sec_acl_totext" = xyes; then :
29787
29788                     have_extended_acl=yes
29789
29790
29791 fi
29792
29793
29794
29795 fi
29796
29797    fi
29798
29799             if test $have_acl = no -a \
29800            x${HAVE_AIX_OS_TRUE} = x; then
29801       ac_fn_c_check_func "$LINENO" "acl_get" "ac_cv_func_acl_get"
29802 if test "x$ac_cv_func_acl_get" = xyes; then :
29803
29804              have_acl=yes
29805
29806              ac_fn_c_check_func "$LINENO" "aclx_get" "ac_cv_func_aclx_get"
29807 if test "x$ac_cv_func_aclx_get" = xyes; then :
29808
29809                     have_extended_acl=yes
29810
29811
29812 fi
29813
29814
29815
29816 fi
29817
29818    fi
29819
29820    if test x$support_acl = xyes -a $have_acl != yes; then
29821       as_fn_error $? "acl support explicitly enabled but no supported acl implementation found,
29822   please either load the acl libraries or rerun configure without --enable-acl" "$LINENO" 5
29823    else
29824       if test $have_acl = yes; then
29825
29826 $as_echo "#define HAVE_ACL 1" >>confdefs.h
29827
29828       fi
29829
29830       if test $have_extended_acl = yes; then
29831
29832 $as_echo "#define HAVE_EXTENDED_ACL 1" >>confdefs.h
29833
29834       fi
29835    fi
29836 fi
29837
29838 support_xattr=auto
29839 # Check whether --enable-xattr was given.
29840 if test "${enable_xattr+set}" = set; then :
29841   enableval=$enable_xattr;
29842        if test x$enableval = xyes; then
29843           support_xattr=yes
29844        elif test x$enableval = xno; then
29845           support_xattr=no
29846        fi
29847
29848
29849 fi
29850
29851
29852 have_xattr=no
29853 if test x$support_xattr = xyes -o x$support_xattr = xauto; then
29854                if test x${HAVE_FREEBSD_OS_TRUE} = x -o \
29855            x${HAVE_NETBSD_OS_TRUE} = x -o \
29856            x${HAVE_OPENBSD_OS_TRUE} = x; then
29857       ac_fn_c_check_header_mongrel "$LINENO" "sys/extattr.h" "ac_cv_header_sys_extattr_h" "$ac_includes_default"
29858 if test "x$ac_cv_header_sys_extattr_h" = xyes; then :
29859
29860 $as_echo "#define HAVE_SYS_EXTATTR_H 1" >>confdefs.h
29861
29862 fi
29863
29864
29865       ac_fn_c_check_header_mongrel "$LINENO" "libutil.h" "ac_cv_header_libutil_h" "$ac_includes_default"
29866 if test "x$ac_cv_header_libutil_h" = xyes; then :
29867
29868 $as_echo "#define HAVE_LIBUTIL_H 1" >>confdefs.h
29869
29870 fi
29871
29872
29873       for ac_func in extattr_get_link extattr_set_link extattr_list_link
29874 do :
29875   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
29876 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
29877 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
29878   cat >>confdefs.h <<_ACEOF
29879 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
29880 _ACEOF
29881
29882              have_xattr=yes
29883
29884 $as_echo "#define HAVE_EXTATTR_GET_LINK 1" >>confdefs.h
29885
29886
29887 $as_echo "#define HAVE_EXTATTR_SET_LINK 1" >>confdefs.h
29888
29889
29890 $as_echo "#define HAVE_EXTATTR_LIST_LINK 1" >>confdefs.h
29891
29892
29893
29894 fi
29895 done
29896
29897
29898       if test $have_xattr = no; then
29899          for ac_func in extattr_get_file extattr_set_file extattr_list_file
29900 do :
29901   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
29902 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
29903 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
29904   cat >>confdefs.h <<_ACEOF
29905 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
29906 _ACEOF
29907
29908                 have_xattr=yes
29909
29910 $as_echo "#define HAVE_EXTATTR_GET_FILE 1" >>confdefs.h
29911
29912
29913 $as_echo "#define HAVE_EXTATTR_SET_FILE 1" >>confdefs.h
29914
29915
29916 $as_echo "#define HAVE_EXTATTR_LIST_FILE 1" >>confdefs.h
29917
29918
29919
29920 fi
29921 done
29922
29923       fi
29924
29925       if test $have_xattr = yes; then
29926          have_extattr_string_in_libc=no
29927          for ac_func in extattr_namespace_to_string extattr_string_to_namespace
29928 do :
29929   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
29930 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
29931 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
29932   cat >>confdefs.h <<_ACEOF
29933 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
29934 _ACEOF
29935
29936                 have_extattr_string_in_libc=yes
29937
29938 $as_echo "#define HAVE_EXTATTR_NAMESPACE_TO_STRING 1" >>confdefs.h
29939
29940
29941 $as_echo "#define HAVE_EXTATTR_STRING_TO_NAMESPACE 1" >>confdefs.h
29942
29943
29944
29945 fi
29946 done
29947
29948
29949                                  if test $have_extattr_string_in_libc = no; then
29950             { $as_echo "$as_me:${as_lineno-$LINENO}: checking for extattr_namespace_to_string extattr_string_to_namespace in -lutil" >&5
29951 $as_echo_n "checking for extattr_namespace_to_string extattr_string_to_namespace in -lutil... " >&6; }
29952 if ${ac_cv_lib_util_extattr_namespace_to_string_extattr_string_to_namespace+:} false; then :
29953   $as_echo_n "(cached) " >&6
29954 else
29955   ac_check_lib_save_LIBS=$LIBS
29956 LIBS="-lutil  $LIBS"
29957 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29958 /* end confdefs.h.  */
29959
29960 /* Override any GCC internal prototype to avoid an error.
29961    Use char because int might match the return type of a GCC
29962    builtin and then its argument prototype would still apply.  */
29963 #ifdef __cplusplus
29964 extern "C"
29965 #endif
29966 char extattr_namespace_to_string extattr_string_to_namespace ();
29967 int
29968 main ()
29969 {
29970 return extattr_namespace_to_string extattr_string_to_namespace ();
29971   ;
29972   return 0;
29973 }
29974 _ACEOF
29975 if ac_fn_c_try_link "$LINENO"; then :
29976   ac_cv_lib_util_extattr_namespace_to_string_extattr_string_to_namespace=yes
29977 else
29978   ac_cv_lib_util_extattr_namespace_to_string_extattr_string_to_namespace=no
29979 fi
29980 rm -f core conftest.err conftest.$ac_objext \
29981     conftest$ac_exeext conftest.$ac_ext
29982 LIBS=$ac_check_lib_save_LIBS
29983 fi
29984 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_util_extattr_namespace_to_string_extattr_string_to_namespace" >&5
29985 $as_echo "$ac_cv_lib_util_extattr_namespace_to_string_extattr_string_to_namespace" >&6; }
29986 if test "x$ac_cv_lib_util_extattr_namespace_to_string_extattr_string_to_namespace" = xyes; then :
29987
29988
29989 $as_echo "#define HAVE_EXTATTR_NAMESPACE_TO_STRING 1" >>confdefs.h
29990
29991
29992 $as_echo "#define HAVE_EXTATTR_STRING_TO_NAMESPACE 1" >>confdefs.h
29993
29994                    FDLIBS="-lutil $FDLIBS"
29995
29996
29997 fi
29998
29999          fi
30000       fi
30001    fi
30002
30003                if test $have_xattr = no -a \
30004            x${HAVE_AIX_OS_TRUE} = x; then
30005       ac_fn_c_check_header_mongrel "$LINENO" "sys/ea.h" "ac_cv_header_sys_ea_h" "$ac_includes_default"
30006 if test "x$ac_cv_header_sys_ea_h" = xyes; then :
30007
30008 $as_echo "#define HAVE_SYS_EA_H 1" >>confdefs.h
30009
30010 fi
30011
30012
30013       for ac_func in llistea lgetea lsetea
30014 do :
30015   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
30016 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
30017 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
30018   cat >>confdefs.h <<_ACEOF
30019 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
30020 _ACEOF
30021
30022              have_xattr=yes
30023
30024 $as_echo "#define HAVE_LLISTEA 1" >>confdefs.h
30025
30026
30027 $as_echo "#define HAVE_LGETEA 1" >>confdefs.h
30028
30029
30030 $as_echo "#define HAVE_LSETEA 1" >>confdefs.h
30031
30032
30033
30034 fi
30035 done
30036
30037
30038       if test $have_xattr = no; then
30039          for ac_func in listea getea setea
30040 do :
30041   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
30042 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
30043 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
30044   cat >>confdefs.h <<_ACEOF
30045 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
30046 _ACEOF
30047
30048                 have_xattr=yes
30049
30050 $as_echo "#define HAVE_LISTEA 1" >>confdefs.h
30051
30052
30053 $as_echo "#define HAVE_GETEA 1" >>confdefs.h
30054
30055
30056 $as_echo "#define HAVE_SETEA 1" >>confdefs.h
30057
30058
30059
30060 fi
30061 done
30062
30063       fi
30064    fi
30065
30066                if test $have_xattr = no -a \
30067            x${HAVE_OSF1_OS_TRUE} = x; then
30068       ac_fn_c_check_header_mongrel "$LINENO" "sys/proplist.h" "ac_cv_header_sys_proplist_h" "$ac_includes_default"
30069 if test "x$ac_cv_header_sys_proplist_h" = xyes; then :
30070
30071 $as_echo "#define HAVE_SYS_PROPLIST_H 1" >>confdefs.h
30072
30073 fi
30074
30075
30076       for ac_func in getproplist get_proplist_entry sizeof_proplist_entry add_proplist_entry setproplist
30077 do :
30078   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
30079 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
30080 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
30081   cat >>confdefs.h <<_ACEOF
30082 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
30083 _ACEOF
30084
30085              have_xattr=yes
30086
30087 $as_echo "#define HAVE_GETPROPLIST 1" >>confdefs.h
30088
30089
30090 $as_echo "#define HAVE_GET_PROPLIST_ENTRY 1" >>confdefs.h
30091
30092
30093 $as_echo "#define HAVE_SIZEOF_PROPLIST_ENTRY 1" >>confdefs.h
30094
30095
30096 $as_echo "#define HAVE_ADD_PROPLIST_ENTRY 1" >>confdefs.h
30097
30098
30099 $as_echo "#define HAVE_SETPROPLIST 1" >>confdefs.h
30100
30101
30102
30103 fi
30104 done
30105
30106    fi
30107
30108                if test $have_xattr = no -a \
30109            x${HAVE_SUN_OS_TRUE} = x; then
30110       ac_fn_c_check_header_mongrel "$LINENO" "sys/attr.h" "ac_cv_header_sys_attr_h" "$ac_includes_default"
30111 if test "x$ac_cv_header_sys_attr_h" = xyes; then :
30112
30113 $as_echo "#define HAVE_SYS_ATTR_H 1" >>confdefs.h
30114
30115 fi
30116
30117
30118       ac_fn_c_check_header_mongrel "$LINENO" "sys/nvpair.h" "ac_cv_header_sys_nvpair_h" "$ac_includes_default"
30119 if test "x$ac_cv_header_sys_nvpair_h" = xyes; then :
30120
30121 $as_echo "#define HAVE_SYS_NVPAIR_H 1" >>confdefs.h
30122
30123 fi
30124
30125
30126       ac_fn_c_check_header_mongrel "$LINENO" "attr.h" "ac_cv_header_attr_h" "$ac_includes_default"
30127 if test "x$ac_cv_header_attr_h" = xyes; then :
30128
30129 $as_echo "#define HAVE_ATTR_H 1" >>confdefs.h
30130
30131 fi
30132
30133
30134
30135       for ac_func in openat fstatat unlinkat fchownat futimesat
30136 do :
30137   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
30138 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
30139 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
30140   cat >>confdefs.h <<_ACEOF
30141 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
30142 _ACEOF
30143
30144              have_xattr=yes
30145
30146 $as_echo "#define HAVE_OPENAT 1" >>confdefs.h
30147
30148
30149 $as_echo "#define HAVE_FSTATAT 1" >>confdefs.h
30150
30151
30152 $as_echo "#define HAVE_UNLINKAT 1" >>confdefs.h
30153
30154
30155 $as_echo "#define HAVE_FCHOWNAT 1" >>confdefs.h
30156
30157
30158 $as_echo "#define HAVE_FUTIMESAT 1" >>confdefs.h
30159
30160
30161
30162 fi
30163 done
30164
30165
30166       if test $have_xattr = yes; then
30167          { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nvlist_next_nvpair in -lnvpair" >&5
30168 $as_echo_n "checking for nvlist_next_nvpair in -lnvpair... " >&6; }
30169 if ${ac_cv_lib_nvpair_nvlist_next_nvpair+:} false; then :
30170   $as_echo_n "(cached) " >&6
30171 else
30172   ac_check_lib_save_LIBS=$LIBS
30173 LIBS="-lnvpair  $LIBS"
30174 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30175 /* end confdefs.h.  */
30176
30177 /* Override any GCC internal prototype to avoid an error.
30178    Use char because int might match the return type of a GCC
30179    builtin and then its argument prototype would still apply.  */
30180 #ifdef __cplusplus
30181 extern "C"
30182 #endif
30183 char nvlist_next_nvpair ();
30184 int
30185 main ()
30186 {
30187 return nvlist_next_nvpair ();
30188   ;
30189   return 0;
30190 }
30191 _ACEOF
30192 if ac_fn_c_try_link "$LINENO"; then :
30193   ac_cv_lib_nvpair_nvlist_next_nvpair=yes
30194 else
30195   ac_cv_lib_nvpair_nvlist_next_nvpair=no
30196 fi
30197 rm -f core conftest.err conftest.$ac_objext \
30198     conftest$ac_exeext conftest.$ac_ext
30199 LIBS=$ac_check_lib_save_LIBS
30200 fi
30201 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nvpair_nvlist_next_nvpair" >&5
30202 $as_echo "$ac_cv_lib_nvpair_nvlist_next_nvpair" >&6; }
30203 if test "x$ac_cv_lib_nvpair_nvlist_next_nvpair" = xyes; then :
30204
30205
30206 $as_echo "#define HAVE_NVLIST_NEXT_NVPAIR 1" >>confdefs.h
30207
30208                 FDLIBS="-lnvpair $FDLIBS"
30209
30210
30211 fi
30212
30213       fi
30214    fi
30215
30216             if test $have_xattr = no; then
30217       ac_fn_c_check_header_mongrel "$LINENO" "sys/xattr.h" "ac_cv_header_sys_xattr_h" "$ac_includes_default"
30218 if test "x$ac_cv_header_sys_xattr_h" = xyes; then :
30219
30220 $as_echo "#define HAVE_SYS_XATTR_H 1" >>confdefs.h
30221
30222 fi
30223
30224
30225       for ac_func in llistxattr lgetxattr lsetxattr
30226 do :
30227   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
30228 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
30229 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
30230   cat >>confdefs.h <<_ACEOF
30231 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
30232 _ACEOF
30233
30234              have_xattr=yes
30235
30236 $as_echo "#define HAVE_LLISTXATTR 1" >>confdefs.h
30237
30238
30239 $as_echo "#define HAVE_LGETXATTR 1" >>confdefs.h
30240
30241
30242 $as_echo "#define HAVE_LSETXATTR 1" >>confdefs.h
30243
30244
30245
30246 fi
30247 done
30248
30249
30250       if test $have_xattr = no; then
30251          for ac_func in listxattr getxattr setxattr
30252 do :
30253   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
30254 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
30255 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
30256   cat >>confdefs.h <<_ACEOF
30257 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
30258 _ACEOF
30259
30260                 have_xattr=yes
30261
30262 $as_echo "#define HAVE_LISTXATTR 1" >>confdefs.h
30263
30264
30265 $as_echo "#define HAVE_GETXATTR 1" >>confdefs.h
30266
30267
30268 $as_echo "#define HAVE_SETXATTR 1" >>confdefs.h
30269
30270
30271
30272 fi
30273 done
30274
30275       fi
30276    fi
30277
30278    if test x$support_xattr = xyes -a $have_xattr != yes; then
30279       as_fn_error $? "xattr support explicitly enabled but no supported xattr implementation found,
30280   please either load the xattr libraries or rerun configure without --enable-xattr" "$LINENO" 5
30281    else
30282       if test $have_xattr = yes; then
30283
30284 $as_echo "#define HAVE_XATTR 1" >>confdefs.h
30285
30286       fi
30287    fi
30288 fi
30289
30290 PTHREAD_LIB=""
30291 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_create in -lpthread" >&5
30292 $as_echo_n "checking for pthread_create in -lpthread... " >&6; }
30293 if ${ac_cv_lib_pthread_pthread_create+:} false; then :
30294   $as_echo_n "(cached) " >&6
30295 else
30296   ac_check_lib_save_LIBS=$LIBS
30297 LIBS="-lpthread  $LIBS"
30298 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30299 /* end confdefs.h.  */
30300
30301 /* Override any GCC internal prototype to avoid an error.
30302    Use char because int might match the return type of a GCC
30303    builtin and then its argument prototype would still apply.  */
30304 #ifdef __cplusplus
30305 extern "C"
30306 #endif
30307 char pthread_create ();
30308 int
30309 main ()
30310 {
30311 return pthread_create ();
30312   ;
30313   return 0;
30314 }
30315 _ACEOF
30316 if ac_fn_c_try_link "$LINENO"; then :
30317   ac_cv_lib_pthread_pthread_create=yes
30318 else
30319   ac_cv_lib_pthread_pthread_create=no
30320 fi
30321 rm -f core conftest.err conftest.$ac_objext \
30322     conftest$ac_exeext conftest.$ac_ext
30323 LIBS=$ac_check_lib_save_LIBS
30324 fi
30325 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_pthread_create" >&5
30326 $as_echo "$ac_cv_lib_pthread_pthread_create" >&6; }
30327 if test "x$ac_cv_lib_pthread_pthread_create" = xyes; then :
30328   PTHREAD_LIB="-lpthread"
30329 else
30330
30331        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_create in -lpthreads" >&5
30332 $as_echo_n "checking for pthread_create in -lpthreads... " >&6; }
30333 if ${ac_cv_lib_pthreads_pthread_create+:} false; then :
30334   $as_echo_n "(cached) " >&6
30335 else
30336   ac_check_lib_save_LIBS=$LIBS
30337 LIBS="-lpthreads  $LIBS"
30338 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30339 /* end confdefs.h.  */
30340
30341 /* Override any GCC internal prototype to avoid an error.
30342    Use char because int might match the return type of a GCC
30343    builtin and then its argument prototype would still apply.  */
30344 #ifdef __cplusplus
30345 extern "C"
30346 #endif
30347 char pthread_create ();
30348 int
30349 main ()
30350 {
30351 return pthread_create ();
30352   ;
30353   return 0;
30354 }
30355 _ACEOF
30356 if ac_fn_c_try_link "$LINENO"; then :
30357   ac_cv_lib_pthreads_pthread_create=yes
30358 else
30359   ac_cv_lib_pthreads_pthread_create=no
30360 fi
30361 rm -f core conftest.err conftest.$ac_objext \
30362     conftest$ac_exeext conftest.$ac_ext
30363 LIBS=$ac_check_lib_save_LIBS
30364 fi
30365 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthreads_pthread_create" >&5
30366 $as_echo "$ac_cv_lib_pthreads_pthread_create" >&6; }
30367 if test "x$ac_cv_lib_pthreads_pthread_create" = xyes; then :
30368   PTHREAD_LIB="-lpthreads"
30369 else
30370
30371               { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_create in -lc_r" >&5
30372 $as_echo_n "checking for pthread_create in -lc_r... " >&6; }
30373 if ${ac_cv_lib_c_r_pthread_create+:} false; then :
30374   $as_echo_n "(cached) " >&6
30375 else
30376   ac_check_lib_save_LIBS=$LIBS
30377 LIBS="-lc_r  $LIBS"
30378 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30379 /* end confdefs.h.  */
30380
30381 /* Override any GCC internal prototype to avoid an error.
30382    Use char because int might match the return type of a GCC
30383    builtin and then its argument prototype would still apply.  */
30384 #ifdef __cplusplus
30385 extern "C"
30386 #endif
30387 char pthread_create ();
30388 int
30389 main ()
30390 {
30391 return pthread_create ();
30392   ;
30393   return 0;
30394 }
30395 _ACEOF
30396 if ac_fn_c_try_link "$LINENO"; then :
30397   ac_cv_lib_c_r_pthread_create=yes
30398 else
30399   ac_cv_lib_c_r_pthread_create=no
30400 fi
30401 rm -f core conftest.err conftest.$ac_objext \
30402     conftest$ac_exeext conftest.$ac_ext
30403 LIBS=$ac_check_lib_save_LIBS
30404 fi
30405 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_r_pthread_create" >&5
30406 $as_echo "$ac_cv_lib_c_r_pthread_create" >&6; }
30407 if test "x$ac_cv_lib_c_r_pthread_create" = xyes; then :
30408   PTHREAD_LIB="-lc_r"
30409 else
30410
30411                      ac_fn_c_check_func "$LINENO" "pthread_create" "ac_cv_func_pthread_create"
30412 if test "x$ac_cv_func_pthread_create" = xyes; then :
30413
30414 fi
30415
30416
30417
30418 fi
30419
30420
30421
30422 fi
30423
30424
30425
30426 fi
30427
30428
30429 for ac_header in sys/prctl.h sys/capability.h
30430 do :
30431   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
30432 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
30433 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
30434   cat >>confdefs.h <<_ACEOF
30435 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
30436 _ACEOF
30437
30438 fi
30439
30440 done
30441
30442 for ac_func in prctl setreuid
30443 do :
30444   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
30445 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
30446 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
30447   cat >>confdefs.h <<_ACEOF
30448 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
30449 _ACEOF
30450
30451 fi
30452 done
30453
30454 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cap_set_proc in -lcap" >&5
30455 $as_echo_n "checking for cap_set_proc in -lcap... " >&6; }
30456 if ${ac_cv_lib_cap_cap_set_proc+:} false; then :
30457   $as_echo_n "(cached) " >&6
30458 else
30459   ac_check_lib_save_LIBS=$LIBS
30460 LIBS="-lcap  $LIBS"
30461 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30462 /* end confdefs.h.  */
30463
30464 /* Override any GCC internal prototype to avoid an error.
30465    Use char because int might match the return type of a GCC
30466    builtin and then its argument prototype would still apply.  */
30467 #ifdef __cplusplus
30468 extern "C"
30469 #endif
30470 char cap_set_proc ();
30471 int
30472 main ()
30473 {
30474 return cap_set_proc ();
30475   ;
30476   return 0;
30477 }
30478 _ACEOF
30479 if ac_fn_c_try_link "$LINENO"; then :
30480   ac_cv_lib_cap_cap_set_proc=yes
30481 else
30482   ac_cv_lib_cap_cap_set_proc=no
30483 fi
30484 rm -f core conftest.err conftest.$ac_objext \
30485     conftest$ac_exeext conftest.$ac_ext
30486 LIBS=$ac_check_lib_save_LIBS
30487 fi
30488 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_cap_cap_set_proc" >&5
30489 $as_echo "$ac_cv_lib_cap_cap_set_proc" >&6; }
30490 if test "x$ac_cv_lib_cap_cap_set_proc" = xyes; then :
30491   CAP_LIBS="-lcap"
30492 else
30493   CAP_LIBS=
30494 fi
30495
30496 if test x$CAP_LIBS = x-lcap; then
30497
30498 $as_echo "#define HAVE_LIBCAP 1" >>confdefs.h
30499
30500 fi
30501
30502
30503
30504 $as_echo "#define FDLIBS 1" >>confdefs.h
30505
30506
30507 CFLAGS=${CFLAGS--O}
30508
30509 if test x$have_gcc = xyes ; then
30510    CPPFLAGS="$CPPFLAGS -fno-strict-aliasing -fno-exceptions -fno-rtti"
30511    CFLAGS="$CFLAGS -fno-strict-aliasing -fno-exceptions -fno-rtti"
30512 fi
30513 LDFLAGS=${LDFLAGS--O}
30514 CPPFLAGS="$CPPFLAGS"
30515 CFLAGS="$CFLAGS"
30516
30517
30518
30519
30520
30521
30522
30523
30524
30525
30526
30527
30528
30529
30530
30531 OBJLIST=
30532
30533
30534 lld="lld"
30535 llu="llu"
30536
30537 WCFLAGS=
30538 WLDFLAGS=
30539
30540 PFILES="platforms/Makefile"
30541 PSCMD="ps -e"
30542 MACOSX=
30543 COMPRESS_MANPAGES=yes
30544
30545 case "$DISTNAME" in
30546 aix)
30547    DISTVER=`uname -r`
30548    PSCMD="ps -e -o pid,comm"
30549    PFILES="${PFILES} \
30550       platforms/aix/Makefile"
30551    TAPEDRIVE="/dev/rmt0.1"
30552   ;;
30553 alpha)
30554    DISTVER=`uname -r`
30555    PTHREAD_LIB="-lpthread -lexc"
30556    if test "${CC}" = "gcc" ; then
30557       lld="lld"
30558       llu="llu"
30559    else
30560       lld="ld"
30561       llu="lu"
30562    fi
30563    TAPEDRIVE="/dev/nrmt0"
30564   ;;
30565 bsdi)
30566    DISTVER=`uname -a |awk '{print $3}'`
30567    TAPEDRIVE="/dev/nrmt0"
30568    PTHREAD_LIB="-pthread"
30569    CFLAGS="${CFLAGS} -pthread"
30570    PSCMD="ps -ax -o pid,command"
30571    lld="qd"
30572    llu="qu"
30573    PFILES="${PFILES} \
30574        platforms/bsdi/Makefile \
30575        platforms/bsdi/bacula-fd \
30576        platforms/bsdi/bacula-sd \
30577        platforms/bsdi/bacula-dir"
30578    largefile_support="yes"
30579   ;;
30580 darwin)
30581    DISTVER=`uname -r`
30582    TAPEDRIVE="/dev/nst0"
30583    PSCMD="ps -e -o pid,command"
30584    MACOSX=macosx
30585    PFILES="${PFILES} \
30586       platforms/darwin/Makefile"
30587   ;;
30588 osx)
30589    DISTVER=`uname -r`
30590    TAPEDRIVE="/dev/nst0"
30591    PSCMD="ps -e -o pid,command"
30592    MACOSX=macosx
30593    PFILES="${PFILES} \
30594       platforms/osx/Makefile"
30595   ;;
30596 debian)
30597    if `test -f /etc/apt/sources.list && grep -q ubuntu /etc/apt/sources.list`; then
30598       DISTNAME="ubuntu"
30599    fi
30600    DISTVER=`cat /etc/debian_version`
30601    if test -f /etc/lsb-release ; then
30602       . /etc/lsb-release
30603       if test "x$DISTRIB_ID" != "x" ; then
30604          DISTNAME=$DISTRIB_ID
30605       fi
30606       if test "x$DISTRIB_RELEASE" != "x" ; then
30607          DISTVER=$DISTRIB_RELEASE
30608       fi
30609    fi
30610    if test "$DISTNAME" = "Ubuntu" ; then
30611       DISTNAME="ubuntu"
30612    fi
30613    TAPEDRIVE="/dev/nst0"
30614    PSCMD="ps -e -o pid,command"
30615    if test "$DISTNAME" = "ubuntu" ; then
30616       PFILES="${PFILES} \
30617          platforms/ubuntu/Makefile \
30618          platforms/ubuntu/bacula-fd \
30619          platforms/ubuntu/bacula-sd \
30620          platforms/ubuntu/bacula-dir"
30621    else
30622       PFILES="${PFILES} \
30623          platforms/debian/Makefile \
30624          platforms/debian/bacula-fd \
30625          platforms/debian/bacula-sd \
30626          platforms/debian/bacula-dir"
30627    fi
30628   ;;
30629 freebsd)
30630    DISTVER=`uname -a |awk '{print $3}'`
30631    VER=`echo $DISTVER | cut -c 1`
30632    if test x$VER = x4 ; then
30633       PTHREAD_LIB="${PTHREAD_LIBS:--pthread}"
30634       CFLAGS="${CFLAGS} ${PTHREAD_CFLAGS:--pthread}"
30635    fi
30636    lld="qd"
30637    llu="qu"
30638    TAPEDRIVE="/dev/nrsa0"
30639    PSCMD="ps -ax -o pid,command"
30640    PFILES="${PFILES} \
30641        platforms/freebsd/Makefile \
30642        platforms/freebsd/bacula-fd \
30643        platforms/freebsd/bacula-sd \
30644        platforms/freebsd/bacula-dir"
30645    largefile_support="yes"
30646   ;;
30647 hurd)
30648    DISTVER=`uname -r`
30649    TAPEDRIVE="/dev/nst0"
30650    PSCMD="ps -e -o pid,command"
30651    PFILES="${PFILES} \
30652        platforms/hurd/Makefile \
30653        platforms/hurd/bacula-fd \
30654        platforms/hurd/bacula-sd \
30655        platforms/hurd/bacula-dir"
30656   ;;
30657 hpux)
30658    PSCMD="UNIX95=1; ps -e -o pid,comm"
30659    CFLAGS="${CFLAGS} -D_XOPEN_SOURCE_EXTENDED=1"
30660    DISTVER=`uname -r`
30661    TAPEDRIVE="/dev/rmt/0hnb"
30662    PTHREAD_LIB="-lpthread"
30663    $as_echo "#define _INCLUDE_LONGLONG 1" >>confdefs.h
30664
30665   ;;
30666 irix)
30667    DISTVER=`uname -r`
30668    TAPEDRIVE="/dev/rmt/0cbn"
30669    PSCMD="ps -e -o pid,comm"
30670    PFILES="${PFILES} \
30671        platforms/irix/Makefile \
30672        platforms/irix/bacula-fd \
30673        platforms/irix/bacula-sd \
30674        platforms/irix/bacula-dir"
30675   ;;
30676 netbsd)
30677    DISTVER=`uname -a |awk '{print $3}'`
30678    lld="qd"
30679    llu="qu"
30680    TAPEDRIVE="/dev/nrst0"
30681    PSCMD="ps -ax -o pid,command"
30682    PTHREAD_LIB="-pthread"
30683    CFLAGS="${CFLAGS} -pthread"
30684   ;;
30685 openbsd)
30686    DISTVER=`uname -a |awk '{print $3}'`
30687    lld="qd"
30688    llu="qu"
30689    TAPEDRIVE="/dev/nrst0"
30690    PSCMD="ps -ax -o pid,command"
30691    PTHREAD_LIB="-pthread"
30692    CFLAGS="${CFLAGS} -pthread"
30693    PFILES="${PFILES} \
30694        platforms/openbsd/Makefile \
30695        platforms/openbsd/bacula-fd \
30696        platforms/openbsd/bacula-sd \
30697        platforms/openbsd/bacula-dir"
30698   ;;
30699 redhat)
30700    if test -f /etc/whitebox-release ; then
30701       f=/etc/whitebox-release
30702    else
30703       f=/etc/redhat-release
30704    fi
30705    if test `cat $f | grep release |\
30706          cut -f 3 -d ' '`x = "Enterprise"x ; then
30707       DISTVER="Enterprise "`cat $f | grep release |\
30708           cut -f 6 -d ' '`
30709    else
30710        DISTVER=`cat /etc/redhat-release | grep release |\
30711            cut -f 5 -d ' '`
30712    fi
30713    TAPEDRIVE="/dev/nst0"
30714    PSCMD="ps -e -o pid,command"
30715    PFILES="${PFILES} \
30716        platforms/redhat/Makefile \
30717        platforms/redhat/bacula-fd \
30718        platforms/redhat/bacula-sd \
30719        platforms/redhat/bacula-dir
30720        "
30721   ;;
30722 mandrake)
30723    DISTVER=`cat /etc/mandrake-release | grep release |\
30724       cut -f 5 -d ' '`
30725    TAPEDRIVE="/dev/nst0"
30726    PSCMD="ps -e -o pid,command"
30727    PFILES="${PFILES} \
30728        platforms/mandrake/Makefile \
30729        platforms/mandrake/bacula-fd \
30730        platforms/mandrake/bacula-sd \
30731        platforms/mandrake/bacula-dir \
30732        "
30733   ;;
30734 gentoo)
30735    DISTVER=`awk '/version / {print $5}' < /etc/gentoo-release`
30736    TAPEDRIVE="/dev/nst0"
30737    PSCMD="ps -e -o pid,command"
30738    PFILES="${PFILES} \
30739        platforms/gentoo/Makefile \
30740     platforms/gentoo/bacula-init \
30741        platforms/gentoo/bacula-fd \
30742        platforms/gentoo/bacula-sd \
30743        platforms/gentoo/bacula-dir"
30744   ;;
30745 slackware)
30746    DISTVER=`cat /etc/slackware-version`
30747    TAPEDRIVE="/dev/nst0"
30748    PSCMD="ps -e -o pid,command"
30749    PFILES="${PFILES} \
30750        platforms/slackware/Makefile \
30751        platforms/slackware/rc.bacula-fd \
30752        platforms/slackware/rc.bacula-sd \
30753        platforms/slackware/rc.bacula-dir\
30754        platforms/slackware/functions.bacula"
30755   ;;
30756 solaris)
30757    DISTVER=`uname -r`
30758    TAPEDRIVE="/dev/rmt/0cbn"
30759    PSCMD="ps -e -o pid,comm"
30760    PFILES="${PFILES} \
30761        platforms/solaris/Makefile \
30762        platforms/solaris/bacula-fd \
30763        platforms/solaris/bacula-sd \
30764        platforms/solaris/bacula-dir"
30765    COMPRESS_MANPAGES=
30766    case ${DISTVER} in
30767    5.5|5.6)
30768       $as_echo "#define HAVE_OLD_SOCKOPT 1" >>confdefs.h
30769
30770       $as_echo "#define USE_THR_SETCONCURRENCY 1" >>confdefs.h
30771
30772       ;;
30773    5.7|5.8)
30774       $as_echo "#define USE_THR_SETCONCURRENCY 1" >>confdefs.h
30775
30776       ;;
30777    *)
30778       ;;
30779    esac
30780    LIBS="$LIBS -lresolv -lrt"
30781   ;;
30782 suse)
30783    DISTVER=`cat /etc/SuSE-release |grep VERSION|\
30784        cut -f 3 -d ' '`
30785    TAPEDRIVE="/dev/nst0"
30786    PSCMD="ps -e -o pid,command"
30787    PFILES="${PFILES} \
30788        platforms/suse/Makefile \
30789        platforms/suse/bacula-fd \
30790        platforms/suse/bacula-sd \
30791        platforms/suse/bacula-dir \
30792        platforms/suse/bacula"
30793   ;;
30794 suse5)
30795    DISTNAME=suse
30796    DISTVER=5.x
30797    TAPEDRIVE="/dev/nst0"
30798    PSCMD="ps -e -o pid,command"
30799    PFILES="${PFILES} \
30800        platforms/suse/Makefile \
30801        platforms/suse/bacula-fd \
30802        platforms/suse/bacula-sd \
30803        platforms/suse/bacula-dir"
30804   ;;
30805 unknown)
30806    DISTVER=unknown
30807    TAPEDRIVE="/dev/nst0"
30808   ;;
30809 *)
30810   echo " === Something went wrong. Unknown DISTNAME $DISTNAME ==="
30811   ;;
30812 esac
30813
30814 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for systemd support" >&5
30815 $as_echo_n "checking for systemd support... " >&6; }
30816
30817 # Check whether --with-systemd was given.
30818 if test "${with_systemd+set}" = set; then :
30819   withval=$with_systemd;
30820        if test "$withval" != "no"; then
30821            if test "$withval" = "yes"; then
30822                SYSTEMD_UNITDIR="`systemctl show | grep UnitPath | cut -d " " -f2`"
30823            else
30824                SYSTEMD_UNITDIR="${withval}"
30825            fi
30826
30827            PFILES="${PFILES} \
30828                    platforms/systemd/Makefile \
30829                    platforms/systemd/bacula.conf \
30830                    platforms/systemd/bacula-dir.service \
30831                    platforms/systemd/bacula-fd.service \
30832                    platforms/systemd/bacula-sd.service"
30833
30834 $as_echo "#define HAVE_SYSTEMD 1" >>confdefs.h
30835
30836            { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30837 $as_echo "yes" >&6; }
30838            support_systemd="yes"
30839        else
30840            { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30841 $as_echo "no" >&6; }
30842            support_systemd="no"
30843        fi
30844
30845 else
30846
30847        support_systemd="no"
30848        { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30849 $as_echo "no" >&6; }
30850
30851
30852 fi
30853
30854
30855
30856
30857
30858 LIBS="$PTHREAD_LIB $LIBS"
30859
30860 cat >>confdefs.h <<_ACEOF
30861 #define lld "$lld"
30862 _ACEOF
30863
30864 cat >>confdefs.h <<_ACEOF
30865 #define llu "$llu"
30866 _ACEOF
30867
30868
30869
30870
30871
30872
30873
30874
30875 MCOMMON=./autoconf/Make.common
30876
30877
30878 if test "x${subsysdir}" = "x${sbindir}" ; then
30879    echo " "
30880    echo " "
30881    echo "You have set both --sbindir and --with-subsys-dir"
30882    echo "  equal to: ${subsysdir} "
30883    echo "This is not permitted. Please reconfigure."
30884    echo " "
30885    echo "Aborting configuration ..."
30886    echo " "
30887    echo " "
30888    exit 1
30889 fi
30890
30891 ac_config_files="$ac_config_files autoconf/Make.common Makefile manpages/Makefile scripts/btraceback scripts/bconsole scripts/bacula scripts/bacula-ctl-dir scripts/bacula-ctl-fd scripts/bacula-ctl-sd scripts/devel_bacula scripts/Makefile scripts/logrotate scripts/mtx-changer scripts/disk-changer scripts/dvd-handler scripts/dvd-simulator scripts/logwatch/Makefile scripts/logwatch/logfile.bacula.conf scripts/bat.desktop scripts/bat.desktop.xsu scripts/bat.desktop.consolehelper scripts/bat.console_apps src/Makefile src/host.h src/console/Makefile src/console/bconsole.conf src/qt-console/bat.conf src/qt-console/bat.pro src/qt-console/bat.pro.mingw32 src/qt-console/install_conf_file src/dird/Makefile src/dird/bacula-dir.conf src/lib/Makefile src/stored/Makefile src/stored/bacula-sd.conf src/filed/Makefile src/filed/bacula-fd.conf src/cats/Makefile src/cats/make_catalog_backup.pl src/cats/make_catalog_backup src/cats/delete_catalog_backup src/cats/create_postgresql_database src/cats/update_postgresql_tables src/cats/make_postgresql_tables src/cats/grant_postgresql_privileges src/cats/drop_postgresql_tables src/cats/drop_postgresql_database src/cats/create_mysql_database src/cats/update_mysql_tables src/cats/make_mysql_tables src/cats/grant_mysql_privileges src/cats/drop_mysql_tables src/cats/drop_mysql_database src/cats/create_sqlite3_database src/cats/update_sqlite3_tables src/cats/make_sqlite3_tables src/cats/grant_sqlite3_privileges src/cats/drop_sqlite3_tables src/cats/drop_sqlite3_database src/cats/sqlite src/cats/mysql src/cats/create_bacula_database src/cats/update_bacula_tables src/cats/grant_bacula_privileges src/cats/make_bacula_tables src/cats/drop_bacula_tables src/cats/drop_bacula_database src/cats/install-default-backend src/findlib/Makefile src/tools/Makefile src/plugins/fd/Makefile src/plugins/sd/Makefile src/plugins/dir/Makefile po/Makefile.in updatedb/update_mysql_tables_9_to_10 updatedb/update_sqlite3_tables_9_to_10 updatedb/update_postgresql_tables_9_to_10 updatedb/update_mysql_tables_10_to_11 updatedb/update_sqlite3_tables_10_to_11 updatedb/update_postgresql_tables_10_to_11 updatedb/update_mysql_tables_11_to_12 updatedb/update_sqlite3_tables_11_to_12 updatedb/update_postgresql_tables_11_to_12 examples/nagios/check_bacula/Makefile platforms/rpms/redhat/bacula.spec platforms/rpms/redhat/bacula-bat.spec platforms/rpms/redhat/bacula-docs.spec platforms/rpms/redhat/bacula-mtx.spec platforms/rpms/suse/bacula.spec platforms/rpms/suse/bacula-bat.spec platforms/rpms/suse/bacula-docs.spec platforms/rpms/suse/bacula-mtx.spec $PFILES"
30892
30893 ac_config_commands="$ac_config_commands default"
30894
30895 cat >confcache <<\_ACEOF
30896 # This file is a shell script that caches the results of configure
30897 # tests run on this system so they can be shared between configure
30898 # scripts and configure runs, see configure's option --config-cache.
30899 # It is not useful on other systems.  If it contains results you don't
30900 # want to keep, you may remove or edit it.
30901 #
30902 # config.status only pays attention to the cache file if you give it
30903 # the --recheck option to rerun configure.
30904 #
30905 # `ac_cv_env_foo' variables (set or unset) will be overridden when
30906 # loading this file, other *unset* `ac_cv_foo' will be assigned the
30907 # following values.
30908
30909 _ACEOF
30910
30911 # The following way of writing the cache mishandles newlines in values,
30912 # but we know of no workaround that is simple, portable, and efficient.
30913 # So, we kill variables containing newlines.
30914 # Ultrix sh set writes to stderr and can't be redirected directly,
30915 # and sets the high bit in the cache file unless we assign to the vars.
30916 (
30917   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
30918     eval ac_val=\$$ac_var
30919     case $ac_val in #(
30920     *${as_nl}*)
30921       case $ac_var in #(
30922       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
30923 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
30924       esac
30925       case $ac_var in #(
30926       _ | IFS | as_nl) ;; #(
30927       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
30928       *) { eval $ac_var=; unset $ac_var;} ;;
30929       esac ;;
30930     esac
30931   done
30932
30933   (set) 2>&1 |
30934     case $as_nl`(ac_space=' '; set) 2>&1` in #(
30935     *${as_nl}ac_space=\ *)
30936       # `set' does not quote correctly, so add quotes: double-quote
30937       # substitution turns \\\\ into \\, and sed turns \\ into \.
30938       sed -n \
30939         "s/'/'\\\\''/g;
30940           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
30941       ;; #(
30942     *)
30943       # `set' quotes correctly as required by POSIX, so do not add quotes.
30944       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
30945       ;;
30946     esac |
30947     sort
30948 ) |
30949   sed '
30950      /^ac_cv_env_/b end
30951      t clear
30952      :clear
30953      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
30954      t end
30955      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
30956      :end' >>confcache
30957 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
30958   if test -w "$cache_file"; then
30959     if test "x$cache_file" != "x/dev/null"; then
30960       { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
30961 $as_echo "$as_me: updating cache $cache_file" >&6;}
30962       if test ! -f "$cache_file" || test -h "$cache_file"; then
30963         cat confcache >"$cache_file"
30964       else
30965         case $cache_file in #(
30966         */* | ?:*)
30967           mv -f confcache "$cache_file"$$ &&
30968           mv -f "$cache_file"$$ "$cache_file" ;; #(
30969         *)
30970           mv -f confcache "$cache_file" ;;
30971         esac
30972       fi
30973     fi
30974   else
30975     { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
30976 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
30977   fi
30978 fi
30979 rm -f confcache
30980
30981 test "x$prefix" = xNONE && prefix=$ac_default_prefix
30982 # Let make expand exec_prefix.
30983 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
30984
30985 DEFS=-DHAVE_CONFIG_H
30986
30987 ac_libobjs=
30988 ac_ltlibobjs=
30989 U=
30990 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
30991   # 1. Remove the extension, and $U if already installed.
30992   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
30993   ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
30994   # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
30995   #    will be set to the directory where LIBOBJS objects are built.
30996   as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
30997   as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
30998 done
30999 LIBOBJS=$ac_libobjs
31000
31001 LTLIBOBJS=$ac_ltlibobjs
31002
31003
31004
31005
31006 : "${CONFIG_STATUS=./config.status}"
31007 ac_write_fail=0
31008 ac_clean_files_save=$ac_clean_files
31009 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
31010 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
31011 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
31012 as_write_fail=0
31013 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
31014 #! $SHELL
31015 # Generated by $as_me.
31016 # Run this file to recreate the current configuration.
31017 # Compiler output produced by configure, useful for debugging
31018 # configure, is in config.log if it exists.
31019
31020 debug=false
31021 ac_cs_recheck=false
31022 ac_cs_silent=false
31023
31024 SHELL=\${CONFIG_SHELL-$SHELL}
31025 export SHELL
31026 _ASEOF
31027 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
31028 ## -------------------- ##
31029 ## M4sh Initialization. ##
31030 ## -------------------- ##
31031
31032 # Be more Bourne compatible
31033 DUALCASE=1; export DUALCASE # for MKS sh
31034 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
31035   emulate sh
31036   NULLCMD=:
31037   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
31038   # is contrary to our usage.  Disable this feature.
31039   alias -g '${1+"$@"}'='"$@"'
31040   setopt NO_GLOB_SUBST
31041 else
31042   case `(set -o) 2>/dev/null` in #(
31043   *posix*) :
31044     set -o posix ;; #(
31045   *) :
31046      ;;
31047 esac
31048 fi
31049
31050
31051 as_nl='
31052 '
31053 export as_nl
31054 # Printing a long string crashes Solaris 7 /usr/bin/printf.
31055 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
31056 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
31057 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
31058 # Prefer a ksh shell builtin over an external printf program on Solaris,
31059 # but without wasting forks for bash or zsh.
31060 if test -z "$BASH_VERSION$ZSH_VERSION" \
31061     && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
31062   as_echo='print -r --'
31063   as_echo_n='print -rn --'
31064 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
31065   as_echo='printf %s\n'
31066   as_echo_n='printf %s'
31067 else
31068   if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
31069     as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
31070     as_echo_n='/usr/ucb/echo -n'
31071   else
31072     as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
31073     as_echo_n_body='eval
31074       arg=$1;
31075       case $arg in #(
31076       *"$as_nl"*)
31077         expr "X$arg" : "X\\(.*\\)$as_nl";
31078         arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
31079       esac;
31080       expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
31081     '
31082     export as_echo_n_body
31083     as_echo_n='sh -c $as_echo_n_body as_echo'
31084   fi
31085   export as_echo_body
31086   as_echo='sh -c $as_echo_body as_echo'
31087 fi
31088
31089 # The user is always right.
31090 if test "${PATH_SEPARATOR+set}" != set; then
31091   PATH_SEPARATOR=:
31092   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
31093     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
31094       PATH_SEPARATOR=';'
31095   }
31096 fi
31097
31098
31099 # IFS
31100 # We need space, tab and new line, in precisely that order.  Quoting is
31101 # there to prevent editors from complaining about space-tab.
31102 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
31103 # splitting by setting IFS to empty value.)
31104 IFS=" ""        $as_nl"
31105
31106 # Find who we are.  Look in the path if we contain no directory separator.
31107 as_myself=
31108 case $0 in #((
31109   *[\\/]* ) as_myself=$0 ;;
31110   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31111 for as_dir in $PATH
31112 do
31113   IFS=$as_save_IFS
31114   test -z "$as_dir" && as_dir=.
31115     test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
31116   done
31117 IFS=$as_save_IFS
31118
31119      ;;
31120 esac
31121 # We did not find ourselves, most probably we were run as `sh COMMAND'
31122 # in which case we are not to be found in the path.
31123 if test "x$as_myself" = x; then
31124   as_myself=$0
31125 fi
31126 if test ! -f "$as_myself"; then
31127   $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
31128   exit 1
31129 fi
31130
31131 # Unset variables that we do not need and which cause bugs (e.g. in
31132 # pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
31133 # suppresses any "Segmentation fault" message there.  '((' could
31134 # trigger a bug in pdksh 5.2.14.
31135 for as_var in BASH_ENV ENV MAIL MAILPATH
31136 do eval test x\${$as_var+set} = xset \
31137   && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
31138 done
31139 PS1='$ '
31140 PS2='> '
31141 PS4='+ '
31142
31143 # NLS nuisances.
31144 LC_ALL=C
31145 export LC_ALL
31146 LANGUAGE=C
31147 export LANGUAGE
31148
31149 # CDPATH.
31150 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
31151
31152
31153 # as_fn_error STATUS ERROR [LINENO LOG_FD]
31154 # ----------------------------------------
31155 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
31156 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
31157 # script with STATUS, using 1 if that was 0.
31158 as_fn_error ()
31159 {
31160   as_status=$1; test $as_status -eq 0 && as_status=1
31161   if test "$4"; then
31162     as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
31163     $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
31164   fi
31165   $as_echo "$as_me: error: $2" >&2
31166   as_fn_exit $as_status
31167 } # as_fn_error
31168
31169
31170 # as_fn_set_status STATUS
31171 # -----------------------
31172 # Set $? to STATUS, without forking.
31173 as_fn_set_status ()
31174 {
31175   return $1
31176 } # as_fn_set_status
31177
31178 # as_fn_exit STATUS
31179 # -----------------
31180 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
31181 as_fn_exit ()
31182 {
31183   set +e
31184   as_fn_set_status $1
31185   exit $1
31186 } # as_fn_exit
31187
31188 # as_fn_unset VAR
31189 # ---------------
31190 # Portably unset VAR.
31191 as_fn_unset ()
31192 {
31193   { eval $1=; unset $1;}
31194 }
31195 as_unset=as_fn_unset
31196 # as_fn_append VAR VALUE
31197 # ----------------------
31198 # Append the text in VALUE to the end of the definition contained in VAR. Take
31199 # advantage of any shell optimizations that allow amortized linear growth over
31200 # repeated appends, instead of the typical quadratic growth present in naive
31201 # implementations.
31202 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
31203   eval 'as_fn_append ()
31204   {
31205     eval $1+=\$2
31206   }'
31207 else
31208   as_fn_append ()
31209   {
31210     eval $1=\$$1\$2
31211   }
31212 fi # as_fn_append
31213
31214 # as_fn_arith ARG...
31215 # ------------------
31216 # Perform arithmetic evaluation on the ARGs, and store the result in the
31217 # global $as_val. Take advantage of shells that can avoid forks. The arguments
31218 # must be portable across $(()) and expr.
31219 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
31220   eval 'as_fn_arith ()
31221   {
31222     as_val=$(( $* ))
31223   }'
31224 else
31225   as_fn_arith ()
31226   {
31227     as_val=`expr "$@" || test $? -eq 1`
31228   }
31229 fi # as_fn_arith
31230
31231
31232 if expr a : '\(a\)' >/dev/null 2>&1 &&
31233    test "X`expr 00001 : '.*\(...\)'`" = X001; then
31234   as_expr=expr
31235 else
31236   as_expr=false
31237 fi
31238
31239 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
31240   as_basename=basename
31241 else
31242   as_basename=false
31243 fi
31244
31245 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
31246   as_dirname=dirname
31247 else
31248   as_dirname=false
31249 fi
31250
31251 as_me=`$as_basename -- "$0" ||
31252 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
31253          X"$0" : 'X\(//\)$' \| \
31254          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
31255 $as_echo X/"$0" |
31256     sed '/^.*\/\([^/][^/]*\)\/*$/{
31257             s//\1/
31258             q
31259           }
31260           /^X\/\(\/\/\)$/{
31261             s//\1/
31262             q
31263           }
31264           /^X\/\(\/\).*/{
31265             s//\1/
31266             q
31267           }
31268           s/.*/./; q'`
31269
31270 # Avoid depending upon Character Ranges.
31271 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
31272 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
31273 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
31274 as_cr_digits='0123456789'
31275 as_cr_alnum=$as_cr_Letters$as_cr_digits
31276
31277 ECHO_C= ECHO_N= ECHO_T=
31278 case `echo -n x` in #(((((
31279 -n*)
31280   case `echo 'xy\c'` in
31281   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
31282   xy)  ECHO_C='\c';;
31283   *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
31284        ECHO_T=' ';;
31285   esac;;
31286 *)
31287   ECHO_N='-n';;
31288 esac
31289
31290 rm -f conf$$ conf$$.exe conf$$.file
31291 if test -d conf$$.dir; then
31292   rm -f conf$$.dir/conf$$.file
31293 else
31294   rm -f conf$$.dir
31295   mkdir conf$$.dir 2>/dev/null
31296 fi
31297 if (echo >conf$$.file) 2>/dev/null; then
31298   if ln -s conf$$.file conf$$ 2>/dev/null; then
31299     as_ln_s='ln -s'
31300     # ... but there are two gotchas:
31301     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
31302     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
31303     # In both cases, we have to default to `cp -p'.
31304     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
31305       as_ln_s='cp -p'
31306   elif ln conf$$.file conf$$ 2>/dev/null; then
31307     as_ln_s=ln
31308   else
31309     as_ln_s='cp -p'
31310   fi
31311 else
31312   as_ln_s='cp -p'
31313 fi
31314 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
31315 rmdir conf$$.dir 2>/dev/null
31316
31317
31318 # as_fn_mkdir_p
31319 # -------------
31320 # Create "$as_dir" as a directory, including parents if necessary.
31321 as_fn_mkdir_p ()
31322 {
31323
31324   case $as_dir in #(
31325   -*) as_dir=./$as_dir;;
31326   esac
31327   test -d "$as_dir" || eval $as_mkdir_p || {
31328     as_dirs=
31329     while :; do
31330       case $as_dir in #(
31331       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
31332       *) as_qdir=$as_dir;;
31333       esac
31334       as_dirs="'$as_qdir' $as_dirs"
31335       as_dir=`$as_dirname -- "$as_dir" ||
31336 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
31337          X"$as_dir" : 'X\(//\)[^/]' \| \
31338          X"$as_dir" : 'X\(//\)$' \| \
31339          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
31340 $as_echo X"$as_dir" |
31341     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
31342             s//\1/
31343             q
31344           }
31345           /^X\(\/\/\)[^/].*/{
31346             s//\1/
31347             q
31348           }
31349           /^X\(\/\/\)$/{
31350             s//\1/
31351             q
31352           }
31353           /^X\(\/\).*/{
31354             s//\1/
31355             q
31356           }
31357           s/.*/./; q'`
31358       test -d "$as_dir" && break
31359     done
31360     test -z "$as_dirs" || eval "mkdir $as_dirs"
31361   } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
31362
31363
31364 } # as_fn_mkdir_p
31365 if mkdir -p . 2>/dev/null; then
31366   as_mkdir_p='mkdir -p "$as_dir"'
31367 else
31368   test -d ./-p && rmdir ./-p
31369   as_mkdir_p=false
31370 fi
31371
31372 if test -x / >/dev/null 2>&1; then
31373   as_test_x='test -x'
31374 else
31375   if ls -dL / >/dev/null 2>&1; then
31376     as_ls_L_option=L
31377   else
31378     as_ls_L_option=
31379   fi
31380   as_test_x='
31381     eval sh -c '\''
31382       if test -d "$1"; then
31383         test -d "$1/.";
31384       else
31385         case $1 in #(
31386         -*)set "./$1";;
31387         esac;
31388         case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
31389         ???[sx]*):;;*)false;;esac;fi
31390     '\'' sh
31391   '
31392 fi
31393 as_executable_p=$as_test_x
31394
31395 # Sed expression to map a string onto a valid CPP name.
31396 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
31397
31398 # Sed expression to map a string onto a valid variable name.
31399 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
31400
31401
31402 exec 6>&1
31403 ## ----------------------------------- ##
31404 ## Main body of $CONFIG_STATUS script. ##
31405 ## ----------------------------------- ##
31406 _ASEOF
31407 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
31408
31409 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
31410 # Save the log message, to keep $0 and so on meaningful, and to
31411 # report actual input values of CONFIG_FILES etc. instead of their
31412 # values after options handling.
31413 ac_log="
31414 This file was extended by bacula $as_me 7.0.0, which was
31415 generated by GNU Autoconf 2.68.  Invocation command line was
31416
31417   CONFIG_FILES    = $CONFIG_FILES
31418   CONFIG_HEADERS  = $CONFIG_HEADERS
31419   CONFIG_LINKS    = $CONFIG_LINKS
31420   CONFIG_COMMANDS = $CONFIG_COMMANDS
31421   $ $0 $@
31422
31423 on `(hostname || uname -n) 2>/dev/null | sed 1q`
31424 "
31425
31426 _ACEOF
31427
31428 case $ac_config_files in *"
31429 "*) set x $ac_config_files; shift; ac_config_files=$*;;
31430 esac
31431
31432 case $ac_config_headers in *"
31433 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
31434 esac
31435
31436
31437 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
31438 # Files that config.status was made for.
31439 config_files="$ac_config_files"
31440 config_headers="$ac_config_headers"
31441 config_commands="$ac_config_commands"
31442
31443 _ACEOF
31444
31445 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
31446 ac_cs_usage="\
31447 \`$as_me' instantiates files and other configuration actions
31448 from templates according to the current configuration.  Unless the files
31449 and actions are specified as TAGs, all are instantiated by default.
31450
31451 Usage: $0 [OPTION]... [TAG]...
31452
31453   -h, --help       print this help, then exit
31454   -V, --version    print version number and configuration settings, then exit
31455       --config     print configuration, then exit
31456   -q, --quiet, --silent
31457                    do not print progress messages
31458   -d, --debug      don't remove temporary files
31459       --recheck    update $as_me by reconfiguring in the same conditions
31460       --file=FILE[:TEMPLATE]
31461                    instantiate the configuration file FILE
31462       --header=FILE[:TEMPLATE]
31463                    instantiate the configuration header FILE
31464
31465 Configuration files:
31466 $config_files
31467
31468 Configuration headers:
31469 $config_headers
31470
31471 Configuration commands:
31472 $config_commands
31473
31474 Report bugs to the package provider."
31475
31476 _ACEOF
31477 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
31478 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
31479 ac_cs_version="\\
31480 bacula config.status 7.0.0
31481 configured by $0, generated by GNU Autoconf 2.68,
31482   with options \\"\$ac_cs_config\\"
31483
31484 Copyright (C) 2010 Free Software Foundation, Inc.
31485 This config.status script is free software; the Free Software Foundation
31486 gives unlimited permission to copy, distribute and modify it."
31487
31488 ac_pwd='$ac_pwd'
31489 srcdir='$srcdir'
31490 INSTALL='$INSTALL'
31491 AWK='$AWK'
31492 test -n "\$AWK" || AWK=awk
31493 _ACEOF
31494
31495 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
31496 # The default lists apply if the user does not specify any file.
31497 ac_need_defaults=:
31498 while test $# != 0
31499 do
31500   case $1 in
31501   --*=?*)
31502     ac_option=`expr "X$1" : 'X\([^=]*\)='`
31503     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
31504     ac_shift=:
31505     ;;
31506   --*=)
31507     ac_option=`expr "X$1" : 'X\([^=]*\)='`
31508     ac_optarg=
31509     ac_shift=:
31510     ;;
31511   *)
31512     ac_option=$1
31513     ac_optarg=$2
31514     ac_shift=shift
31515     ;;
31516   esac
31517
31518   case $ac_option in
31519   # Handling of the options.
31520   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
31521     ac_cs_recheck=: ;;
31522   --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
31523     $as_echo "$ac_cs_version"; exit ;;
31524   --config | --confi | --conf | --con | --co | --c )
31525     $as_echo "$ac_cs_config"; exit ;;
31526   --debug | --debu | --deb | --de | --d | -d )
31527     debug=: ;;
31528   --file | --fil | --fi | --f )
31529     $ac_shift
31530     case $ac_optarg in
31531     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
31532     '') as_fn_error $? "missing file argument" ;;
31533     esac
31534     as_fn_append CONFIG_FILES " '$ac_optarg'"
31535     ac_need_defaults=false;;
31536   --header | --heade | --head | --hea )
31537     $ac_shift
31538     case $ac_optarg in
31539     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
31540     esac
31541     as_fn_append CONFIG_HEADERS " '$ac_optarg'"
31542     ac_need_defaults=false;;
31543   --he | --h)
31544     # Conflict between --help and --header
31545     as_fn_error $? "ambiguous option: \`$1'
31546 Try \`$0 --help' for more information.";;
31547   --help | --hel | -h )
31548     $as_echo "$ac_cs_usage"; exit ;;
31549   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
31550   | -silent | --silent | --silen | --sile | --sil | --si | --s)
31551     ac_cs_silent=: ;;
31552
31553   # This is an error.
31554   -*) as_fn_error $? "unrecognized option: \`$1'
31555 Try \`$0 --help' for more information." ;;
31556
31557   *) as_fn_append ac_config_targets " $1"
31558      ac_need_defaults=false ;;
31559
31560   esac
31561   shift
31562 done
31563
31564 ac_configure_extra_args=
31565
31566 if $ac_cs_silent; then
31567   exec 6>/dev/null
31568   ac_configure_extra_args="$ac_configure_extra_args --silent"
31569 fi
31570
31571 _ACEOF
31572 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
31573 if \$ac_cs_recheck; then
31574   set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
31575   shift
31576   \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
31577   CONFIG_SHELL='$SHELL'
31578   export CONFIG_SHELL
31579   exec "\$@"
31580 fi
31581
31582 _ACEOF
31583 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
31584 exec 5>>config.log
31585 {
31586   echo
31587   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
31588 ## Running $as_me. ##
31589 _ASBOX
31590   $as_echo "$ac_log"
31591 } >&5
31592
31593 _ACEOF
31594 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
31595 #
31596 # INIT-COMMANDS
31597 #
31598
31599
31600 # The HP-UX ksh and POSIX shell print the target directory to stdout
31601 # if CDPATH is set.
31602 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
31603
31604 sed_quote_subst='$sed_quote_subst'
31605 double_quote_subst='$double_quote_subst'
31606 delay_variable_subst='$delay_variable_subst'
31607 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
31608 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
31609 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
31610 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
31611 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
31612 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
31613 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
31614 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
31615 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
31616 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
31617 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
31618 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
31619 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
31620 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
31621 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
31622 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
31623 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
31624 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
31625 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
31626 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
31627 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
31628 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
31629 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
31630 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
31631 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
31632 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
31633 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
31634 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
31635 lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
31636 lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
31637 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
31638 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
31639 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
31640 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
31641 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
31642 file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
31643 want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
31644 DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
31645 sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
31646 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
31647 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
31648 archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
31649 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
31650 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
31651 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
31652 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
31653 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
31654 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
31655 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
31656 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
31657 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
31658 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
31659 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
31660 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
31661 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
31662 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address_lib_prefix" | $SED "$delay_single_quote_subst"`'
31663 nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
31664 lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
31665 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
31666 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
31667 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
31668 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
31669 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
31670 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
31671 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
31672 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
31673 MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
31674 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
31675 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
31676 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
31677 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
31678 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
31679 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
31680 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
31681 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
31682 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
31683 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
31684 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
31685 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
31686 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
31687 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
31688 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
31689 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
31690 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
31691 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
31692 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
31693 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
31694 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
31695 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
31696 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
31697 hardcode_libdir_flag_spec_ld='`$ECHO "$hardcode_libdir_flag_spec_ld" | $SED "$delay_single_quote_subst"`'
31698 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
31699 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
31700 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
31701 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
31702 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
31703 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
31704 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
31705 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
31706 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
31707 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
31708 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
31709 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
31710 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
31711 postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
31712 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
31713 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
31714 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
31715 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
31716 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
31717 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
31718 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
31719 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
31720 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
31721 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
31722 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
31723 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
31724 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
31725 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
31726 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
31727 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
31728 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
31729 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
31730 sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
31731 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
31732 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
31733 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
31734 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
31735 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
31736 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
31737 compiler_lib_search_dirs='`$ECHO "$compiler_lib_search_dirs" | $SED "$delay_single_quote_subst"`'
31738 predep_objects='`$ECHO "$predep_objects" | $SED "$delay_single_quote_subst"`'
31739 postdep_objects='`$ECHO "$postdep_objects" | $SED "$delay_single_quote_subst"`'
31740 predeps='`$ECHO "$predeps" | $SED "$delay_single_quote_subst"`'
31741 postdeps='`$ECHO "$postdeps" | $SED "$delay_single_quote_subst"`'
31742 compiler_lib_search_path='`$ECHO "$compiler_lib_search_path" | $SED "$delay_single_quote_subst"`'
31743 LD_CXX='`$ECHO "$LD_CXX" | $SED "$delay_single_quote_subst"`'
31744 reload_flag_CXX='`$ECHO "$reload_flag_CXX" | $SED "$delay_single_quote_subst"`'
31745 reload_cmds_CXX='`$ECHO "$reload_cmds_CXX" | $SED "$delay_single_quote_subst"`'
31746 old_archive_cmds_CXX='`$ECHO "$old_archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
31747 compiler_CXX='`$ECHO "$compiler_CXX" | $SED "$delay_single_quote_subst"`'
31748 GCC_CXX='`$ECHO "$GCC_CXX" | $SED "$delay_single_quote_subst"`'
31749 lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "$lt_prog_compiler_no_builtin_flag_CXX" | $SED "$delay_single_quote_subst"`'
31750 lt_prog_compiler_pic_CXX='`$ECHO "$lt_prog_compiler_pic_CXX" | $SED "$delay_single_quote_subst"`'
31751 lt_prog_compiler_wl_CXX='`$ECHO "$lt_prog_compiler_wl_CXX" | $SED "$delay_single_quote_subst"`'
31752 lt_prog_compiler_static_CXX='`$ECHO "$lt_prog_compiler_static_CXX" | $SED "$delay_single_quote_subst"`'
31753 lt_cv_prog_compiler_c_o_CXX='`$ECHO "$lt_cv_prog_compiler_c_o_CXX" | $SED "$delay_single_quote_subst"`'
31754 archive_cmds_need_lc_CXX='`$ECHO "$archive_cmds_need_lc_CXX" | $SED "$delay_single_quote_subst"`'
31755 enable_shared_with_static_runtimes_CXX='`$ECHO "$enable_shared_with_static_runtimes_CXX" | $SED "$delay_single_quote_subst"`'
31756 export_dynamic_flag_spec_CXX='`$ECHO "$export_dynamic_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
31757 whole_archive_flag_spec_CXX='`$ECHO "$whole_archive_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
31758 compiler_needs_object_CXX='`$ECHO "$compiler_needs_object_CXX" | $SED "$delay_single_quote_subst"`'
31759 old_archive_from_new_cmds_CXX='`$ECHO "$old_archive_from_new_cmds_CXX" | $SED "$delay_single_quote_subst"`'
31760 old_archive_from_expsyms_cmds_CXX='`$ECHO "$old_archive_from_expsyms_cmds_CXX" | $SED "$delay_single_quote_subst"`'
31761 archive_cmds_CXX='`$ECHO "$archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
31762 archive_expsym_cmds_CXX='`$ECHO "$archive_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
31763 module_cmds_CXX='`$ECHO "$module_cmds_CXX" | $SED "$delay_single_quote_subst"`'
31764 module_expsym_cmds_CXX='`$ECHO "$module_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
31765 with_gnu_ld_CXX='`$ECHO "$with_gnu_ld_CXX" | $SED "$delay_single_quote_subst"`'
31766 allow_undefined_flag_CXX='`$ECHO "$allow_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
31767 no_undefined_flag_CXX='`$ECHO "$no_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
31768 hardcode_libdir_flag_spec_CXX='`$ECHO "$hardcode_libdir_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
31769 hardcode_libdir_flag_spec_ld_CXX='`$ECHO "$hardcode_libdir_flag_spec_ld_CXX" | $SED "$delay_single_quote_subst"`'
31770 hardcode_libdir_separator_CXX='`$ECHO "$hardcode_libdir_separator_CXX" | $SED "$delay_single_quote_subst"`'
31771 hardcode_direct_CXX='`$ECHO "$hardcode_direct_CXX" | $SED "$delay_single_quote_subst"`'
31772 hardcode_direct_absolute_CXX='`$ECHO "$hardcode_direct_absolute_CXX" | $SED "$delay_single_quote_subst"`'
31773 hardcode_minus_L_CXX='`$ECHO "$hardcode_minus_L_CXX" | $SED "$delay_single_quote_subst"`'
31774 hardcode_shlibpath_var_CXX='`$ECHO "$hardcode_shlibpath_var_CXX" | $SED "$delay_single_quote_subst"`'
31775 hardcode_automatic_CXX='`$ECHO "$hardcode_automatic_CXX" | $SED "$delay_single_quote_subst"`'
31776 inherit_rpath_CXX='`$ECHO "$inherit_rpath_CXX" | $SED "$delay_single_quote_subst"`'
31777 link_all_deplibs_CXX='`$ECHO "$link_all_deplibs_CXX" | $SED "$delay_single_quote_subst"`'
31778 always_export_symbols_CXX='`$ECHO "$always_export_symbols_CXX" | $SED "$delay_single_quote_subst"`'
31779 export_symbols_cmds_CXX='`$ECHO "$export_symbols_cmds_CXX" | $SED "$delay_single_quote_subst"`'
31780 exclude_expsyms_CXX='`$ECHO "$exclude_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
31781 include_expsyms_CXX='`$ECHO "$include_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
31782 prelink_cmds_CXX='`$ECHO "$prelink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
31783 postlink_cmds_CXX='`$ECHO "$postlink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
31784 file_list_spec_CXX='`$ECHO "$file_list_spec_CXX" | $SED "$delay_single_quote_subst"`'
31785 hardcode_action_CXX='`$ECHO "$hardcode_action_CXX" | $SED "$delay_single_quote_subst"`'
31786 compiler_lib_search_dirs_CXX='`$ECHO "$compiler_lib_search_dirs_CXX" | $SED "$delay_single_quote_subst"`'
31787 predep_objects_CXX='`$ECHO "$predep_objects_CXX" | $SED "$delay_single_quote_subst"`'
31788 postdep_objects_CXX='`$ECHO "$postdep_objects_CXX" | $SED "$delay_single_quote_subst"`'
31789 predeps_CXX='`$ECHO "$predeps_CXX" | $SED "$delay_single_quote_subst"`'
31790 postdeps_CXX='`$ECHO "$postdeps_CXX" | $SED "$delay_single_quote_subst"`'
31791 compiler_lib_search_path_CXX='`$ECHO "$compiler_lib_search_path_CXX" | $SED "$delay_single_quote_subst"`'
31792
31793 LTCC='$LTCC'
31794 LTCFLAGS='$LTCFLAGS'
31795 compiler='$compiler_DEFAULT'
31796
31797 # A function that is used when there is no print builtin or printf.
31798 func_fallback_echo ()
31799 {
31800   eval 'cat <<_LTECHO_EOF
31801 \$1
31802 _LTECHO_EOF'
31803 }
31804
31805 # Quote evaled strings.
31806 for var in SHELL \
31807 ECHO \
31808 SED \
31809 GREP \
31810 EGREP \
31811 FGREP \
31812 LD \
31813 NM \
31814 LN_S \
31815 lt_SP2NL \
31816 lt_NL2SP \
31817 reload_flag \
31818 OBJDUMP \
31819 deplibs_check_method \
31820 file_magic_cmd \
31821 file_magic_glob \
31822 want_nocaseglob \
31823 DLLTOOL \
31824 sharedlib_from_linklib_cmd \
31825 AR \
31826 AR_FLAGS \
31827 archiver_list_spec \
31828 STRIP \
31829 RANLIB \
31830 CC \
31831 CFLAGS \
31832 compiler \
31833 lt_cv_sys_global_symbol_pipe \
31834 lt_cv_sys_global_symbol_to_cdecl \
31835 lt_cv_sys_global_symbol_to_c_name_address \
31836 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
31837 nm_file_list_spec \
31838 lt_prog_compiler_no_builtin_flag \
31839 lt_prog_compiler_pic \
31840 lt_prog_compiler_wl \
31841 lt_prog_compiler_static \
31842 lt_cv_prog_compiler_c_o \
31843 need_locks \
31844 MANIFEST_TOOL \
31845 DSYMUTIL \
31846 NMEDIT \
31847 LIPO \
31848 OTOOL \
31849 OTOOL64 \
31850 shrext_cmds \
31851 export_dynamic_flag_spec \
31852 whole_archive_flag_spec \
31853 compiler_needs_object \
31854 with_gnu_ld \
31855 allow_undefined_flag \
31856 no_undefined_flag \
31857 hardcode_libdir_flag_spec \
31858 hardcode_libdir_flag_spec_ld \
31859 hardcode_libdir_separator \
31860 exclude_expsyms \
31861 include_expsyms \
31862 file_list_spec \
31863 variables_saved_for_relink \
31864 libname_spec \
31865 library_names_spec \
31866 soname_spec \
31867 install_override_mode \
31868 finish_eval \
31869 old_striplib \
31870 striplib \
31871 compiler_lib_search_dirs \
31872 predep_objects \
31873 postdep_objects \
31874 predeps \
31875 postdeps \
31876 compiler_lib_search_path \
31877 LD_CXX \
31878 reload_flag_CXX \
31879 compiler_CXX \
31880 lt_prog_compiler_no_builtin_flag_CXX \
31881 lt_prog_compiler_pic_CXX \
31882 lt_prog_compiler_wl_CXX \
31883 lt_prog_compiler_static_CXX \
31884 lt_cv_prog_compiler_c_o_CXX \
31885 export_dynamic_flag_spec_CXX \
31886 whole_archive_flag_spec_CXX \
31887 compiler_needs_object_CXX \
31888 with_gnu_ld_CXX \
31889 allow_undefined_flag_CXX \
31890 no_undefined_flag_CXX \
31891 hardcode_libdir_flag_spec_CXX \
31892 hardcode_libdir_flag_spec_ld_CXX \
31893 hardcode_libdir_separator_CXX \
31894 exclude_expsyms_CXX \
31895 include_expsyms_CXX \
31896 file_list_spec_CXX \
31897 compiler_lib_search_dirs_CXX \
31898 predep_objects_CXX \
31899 postdep_objects_CXX \
31900 predeps_CXX \
31901 postdeps_CXX \
31902 compiler_lib_search_path_CXX; do
31903     case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
31904     *[\\\\\\\`\\"\\\$]*)
31905       eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
31906       ;;
31907     *)
31908       eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
31909       ;;
31910     esac
31911 done
31912
31913 # Double-quote double-evaled strings.
31914 for var in reload_cmds \
31915 old_postinstall_cmds \
31916 old_postuninstall_cmds \
31917 old_archive_cmds \
31918 extract_expsyms_cmds \
31919 old_archive_from_new_cmds \
31920 old_archive_from_expsyms_cmds \
31921 archive_cmds \
31922 archive_expsym_cmds \
31923 module_cmds \
31924 module_expsym_cmds \
31925 export_symbols_cmds \
31926 prelink_cmds \
31927 postlink_cmds \
31928 postinstall_cmds \
31929 postuninstall_cmds \
31930 finish_cmds \
31931 sys_lib_search_path_spec \
31932 sys_lib_dlsearch_path_spec \
31933 reload_cmds_CXX \
31934 old_archive_cmds_CXX \
31935 old_archive_from_new_cmds_CXX \
31936 old_archive_from_expsyms_cmds_CXX \
31937 archive_cmds_CXX \
31938 archive_expsym_cmds_CXX \
31939 module_cmds_CXX \
31940 module_expsym_cmds_CXX \
31941 export_symbols_cmds_CXX \
31942 prelink_cmds_CXX \
31943 postlink_cmds_CXX; do
31944     case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
31945     *[\\\\\\\`\\"\\\$]*)
31946       eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
31947       ;;
31948     *)
31949       eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
31950       ;;
31951     esac
31952 done
31953
31954 ac_aux_dir='$ac_aux_dir'
31955 xsi_shell='$xsi_shell'
31956 lt_shell_append='$lt_shell_append'
31957
31958 # See if we are running on zsh, and set the options which allow our
31959 # commands through without removal of \ escapes INIT.
31960 if test -n "\${ZSH_VERSION+set}" ; then
31961    setopt NO_GLOB_SUBST
31962 fi
31963
31964
31965     PACKAGE='$PACKAGE'
31966     VERSION='$VERSION'
31967     TIMESTAMP='$TIMESTAMP'
31968     RM='$RM'
31969     ofile='$ofile'
31970
31971
31972
31973
31974
31975 # Capture the value of obsolete ALL_LINGUAS because we need it to compute
31976     # POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES, CATALOGS. But hide it
31977     # from automake.
31978     eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"'
31979     # Capture the value of LINGUAS because we need it to compute CATALOGS.
31980     LINGUAS="${LINGUAS-%UNSET%}"
31981
31982
31983 _ACEOF
31984
31985 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
31986
31987 # Handling of arguments.
31988 for ac_config_target in $ac_config_targets
31989 do
31990   case $ac_config_target in
31991     "src/config.h") CONFIG_HEADERS="$CONFIG_HEADERS src/config.h:autoconf/config.h.in" ;;
31992     "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
31993     "default-1") CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
31994     "autoconf/Make.common") CONFIG_FILES="$CONFIG_FILES autoconf/Make.common" ;;
31995     "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
31996     "manpages/Makefile") CONFIG_FILES="$CONFIG_FILES manpages/Makefile" ;;
31997     "scripts/btraceback") CONFIG_FILES="$CONFIG_FILES scripts/btraceback" ;;
31998     "scripts/bconsole") CONFIG_FILES="$CONFIG_FILES scripts/bconsole" ;;
31999     "scripts/bacula") CONFIG_FILES="$CONFIG_FILES scripts/bacula" ;;
32000     "scripts/bacula-ctl-dir") CONFIG_FILES="$CONFIG_FILES scripts/bacula-ctl-dir" ;;
32001     "scripts/bacula-ctl-fd") CONFIG_FILES="$CONFIG_FILES scripts/bacula-ctl-fd" ;;
32002     "scripts/bacula-ctl-sd") CONFIG_FILES="$CONFIG_FILES scripts/bacula-ctl-sd" ;;
32003     "scripts/devel_bacula") CONFIG_FILES="$CONFIG_FILES scripts/devel_bacula" ;;
32004     "scripts/Makefile") CONFIG_FILES="$CONFIG_FILES scripts/Makefile" ;;
32005     "scripts/logrotate") CONFIG_FILES="$CONFIG_FILES scripts/logrotate" ;;
32006     "scripts/mtx-changer") CONFIG_FILES="$CONFIG_FILES scripts/mtx-changer" ;;
32007     "scripts/disk-changer") CONFIG_FILES="$CONFIG_FILES scripts/disk-changer" ;;
32008     "scripts/dvd-handler") CONFIG_FILES="$CONFIG_FILES scripts/dvd-handler" ;;
32009     "scripts/dvd-simulator") CONFIG_FILES="$CONFIG_FILES scripts/dvd-simulator" ;;
32010     "scripts/logwatch/Makefile") CONFIG_FILES="$CONFIG_FILES scripts/logwatch/Makefile" ;;
32011     "scripts/logwatch/logfile.bacula.conf") CONFIG_FILES="$CONFIG_FILES scripts/logwatch/logfile.bacula.conf" ;;
32012     "scripts/bat.desktop") CONFIG_FILES="$CONFIG_FILES scripts/bat.desktop" ;;
32013     "scripts/bat.desktop.xsu") CONFIG_FILES="$CONFIG_FILES scripts/bat.desktop.xsu" ;;
32014     "scripts/bat.desktop.consolehelper") CONFIG_FILES="$CONFIG_FILES scripts/bat.desktop.consolehelper" ;;
32015     "scripts/bat.console_apps") CONFIG_FILES="$CONFIG_FILES scripts/bat.console_apps" ;;
32016     "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
32017     "src/host.h") CONFIG_FILES="$CONFIG_FILES src/host.h" ;;
32018     "src/console/Makefile") CONFIG_FILES="$CONFIG_FILES src/console/Makefile" ;;
32019     "src/console/bconsole.conf") CONFIG_FILES="$CONFIG_FILES src/console/bconsole.conf" ;;
32020     "src/qt-console/bat.conf") CONFIG_FILES="$CONFIG_FILES src/qt-console/bat.conf" ;;
32021     "src/qt-console/bat.pro") CONFIG_FILES="$CONFIG_FILES src/qt-console/bat.pro" ;;
32022     "src/qt-console/bat.pro.mingw32") CONFIG_FILES="$CONFIG_FILES src/qt-console/bat.pro.mingw32" ;;
32023     "src/qt-console/install_conf_file") CONFIG_FILES="$CONFIG_FILES src/qt-console/install_conf_file" ;;
32024     "src/dird/Makefile") CONFIG_FILES="$CONFIG_FILES src/dird/Makefile" ;;
32025     "src/dird/bacula-dir.conf") CONFIG_FILES="$CONFIG_FILES src/dird/bacula-dir.conf" ;;
32026     "src/lib/Makefile") CONFIG_FILES="$CONFIG_FILES src/lib/Makefile" ;;
32027     "src/stored/Makefile") CONFIG_FILES="$CONFIG_FILES src/stored/Makefile" ;;
32028     "src/stored/bacula-sd.conf") CONFIG_FILES="$CONFIG_FILES src/stored/bacula-sd.conf" ;;
32029     "src/filed/Makefile") CONFIG_FILES="$CONFIG_FILES src/filed/Makefile" ;;
32030     "src/filed/bacula-fd.conf") CONFIG_FILES="$CONFIG_FILES src/filed/bacula-fd.conf" ;;
32031     "src/cats/Makefile") CONFIG_FILES="$CONFIG_FILES src/cats/Makefile" ;;
32032     "src/cats/make_catalog_backup.pl") CONFIG_FILES="$CONFIG_FILES src/cats/make_catalog_backup.pl" ;;
32033     "src/cats/make_catalog_backup") CONFIG_FILES="$CONFIG_FILES src/cats/make_catalog_backup" ;;
32034     "src/cats/delete_catalog_backup") CONFIG_FILES="$CONFIG_FILES src/cats/delete_catalog_backup" ;;
32035     "src/cats/create_postgresql_database") CONFIG_FILES="$CONFIG_FILES src/cats/create_postgresql_database" ;;
32036     "src/cats/update_postgresql_tables") CONFIG_FILES="$CONFIG_FILES src/cats/update_postgresql_tables" ;;
32037     "src/cats/make_postgresql_tables") CONFIG_FILES="$CONFIG_FILES src/cats/make_postgresql_tables" ;;
32038     "src/cats/grant_postgresql_privileges") CONFIG_FILES="$CONFIG_FILES src/cats/grant_postgresql_privileges" ;;
32039     "src/cats/drop_postgresql_tables") CONFIG_FILES="$CONFIG_FILES src/cats/drop_postgresql_tables" ;;
32040     "src/cats/drop_postgresql_database") CONFIG_FILES="$CONFIG_FILES src/cats/drop_postgresql_database" ;;
32041     "src/cats/create_mysql_database") CONFIG_FILES="$CONFIG_FILES src/cats/create_mysql_database" ;;
32042     "src/cats/update_mysql_tables") CONFIG_FILES="$CONFIG_FILES src/cats/update_mysql_tables" ;;
32043     "src/cats/make_mysql_tables") CONFIG_FILES="$CONFIG_FILES src/cats/make_mysql_tables" ;;
32044     "src/cats/grant_mysql_privileges") CONFIG_FILES="$CONFIG_FILES src/cats/grant_mysql_privileges" ;;
32045     "src/cats/drop_mysql_tables") CONFIG_FILES="$CONFIG_FILES src/cats/drop_mysql_tables" ;;
32046     "src/cats/drop_mysql_database") CONFIG_FILES="$CONFIG_FILES src/cats/drop_mysql_database" ;;
32047     "src/cats/create_sqlite3_database") CONFIG_FILES="$CONFIG_FILES src/cats/create_sqlite3_database" ;;
32048     "src/cats/update_sqlite3_tables") CONFIG_FILES="$CONFIG_FILES src/cats/update_sqlite3_tables" ;;
32049     "src/cats/make_sqlite3_tables") CONFIG_FILES="$CONFIG_FILES src/cats/make_sqlite3_tables" ;;
32050     "src/cats/grant_sqlite3_privileges") CONFIG_FILES="$CONFIG_FILES src/cats/grant_sqlite3_privileges" ;;
32051     "src/cats/drop_sqlite3_tables") CONFIG_FILES="$CONFIG_FILES src/cats/drop_sqlite3_tables" ;;
32052     "src/cats/drop_sqlite3_database") CONFIG_FILES="$CONFIG_FILES src/cats/drop_sqlite3_database" ;;
32053     "src/cats/sqlite") CONFIG_FILES="$CONFIG_FILES src/cats/sqlite" ;;
32054     "src/cats/mysql") CONFIG_FILES="$CONFIG_FILES src/cats/mysql" ;;
32055     "src/cats/create_bacula_database") CONFIG_FILES="$CONFIG_FILES src/cats/create_bacula_database" ;;
32056     "src/cats/update_bacula_tables") CONFIG_FILES="$CONFIG_FILES src/cats/update_bacula_tables" ;;
32057     "src/cats/grant_bacula_privileges") CONFIG_FILES="$CONFIG_FILES src/cats/grant_bacula_privileges" ;;
32058     "src/cats/make_bacula_tables") CONFIG_FILES="$CONFIG_FILES src/cats/make_bacula_tables" ;;
32059     "src/cats/drop_bacula_tables") CONFIG_FILES="$CONFIG_FILES src/cats/drop_bacula_tables" ;;
32060     "src/cats/drop_bacula_database") CONFIG_FILES="$CONFIG_FILES src/cats/drop_bacula_database" ;;
32061     "src/cats/install-default-backend") CONFIG_FILES="$CONFIG_FILES src/cats/install-default-backend" ;;
32062     "src/findlib/Makefile") CONFIG_FILES="$CONFIG_FILES src/findlib/Makefile" ;;
32063     "src/tools/Makefile") CONFIG_FILES="$CONFIG_FILES src/tools/Makefile" ;;
32064     "src/plugins/fd/Makefile") CONFIG_FILES="$CONFIG_FILES src/plugins/fd/Makefile" ;;
32065     "src/plugins/sd/Makefile") CONFIG_FILES="$CONFIG_FILES src/plugins/sd/Makefile" ;;
32066     "src/plugins/dir/Makefile") CONFIG_FILES="$CONFIG_FILES src/plugins/dir/Makefile" ;;
32067     "po/Makefile.in") CONFIG_FILES="$CONFIG_FILES po/Makefile.in" ;;
32068     "updatedb/update_mysql_tables_9_to_10") CONFIG_FILES="$CONFIG_FILES updatedb/update_mysql_tables_9_to_10" ;;
32069     "updatedb/update_sqlite3_tables_9_to_10") CONFIG_FILES="$CONFIG_FILES updatedb/update_sqlite3_tables_9_to_10" ;;
32070     "updatedb/update_postgresql_tables_9_to_10") CONFIG_FILES="$CONFIG_FILES updatedb/update_postgresql_tables_9_to_10" ;;
32071     "updatedb/update_mysql_tables_10_to_11") CONFIG_FILES="$CONFIG_FILES updatedb/update_mysql_tables_10_to_11" ;;
32072     "updatedb/update_sqlite3_tables_10_to_11") CONFIG_FILES="$CONFIG_FILES updatedb/update_sqlite3_tables_10_to_11" ;;
32073     "updatedb/update_postgresql_tables_10_to_11") CONFIG_FILES="$CONFIG_FILES updatedb/update_postgresql_tables_10_to_11" ;;
32074     "updatedb/update_mysql_tables_11_to_12") CONFIG_FILES="$CONFIG_FILES updatedb/update_mysql_tables_11_to_12" ;;
32075     "updatedb/update_sqlite3_tables_11_to_12") CONFIG_FILES="$CONFIG_FILES updatedb/update_sqlite3_tables_11_to_12" ;;
32076     "updatedb/update_postgresql_tables_11_to_12") CONFIG_FILES="$CONFIG_FILES updatedb/update_postgresql_tables_11_to_12" ;;
32077     "examples/nagios/check_bacula/Makefile") CONFIG_FILES="$CONFIG_FILES examples/nagios/check_bacula/Makefile" ;;
32078     "platforms/rpms/redhat/bacula.spec") CONFIG_FILES="$CONFIG_FILES platforms/rpms/redhat/bacula.spec" ;;
32079     "platforms/rpms/redhat/bacula-bat.spec") CONFIG_FILES="$CONFIG_FILES platforms/rpms/redhat/bacula-bat.spec" ;;
32080     "platforms/rpms/redhat/bacula-docs.spec") CONFIG_FILES="$CONFIG_FILES platforms/rpms/redhat/bacula-docs.spec" ;;
32081     "platforms/rpms/redhat/bacula-mtx.spec") CONFIG_FILES="$CONFIG_FILES platforms/rpms/redhat/bacula-mtx.spec" ;;
32082     "platforms/rpms/suse/bacula.spec") CONFIG_FILES="$CONFIG_FILES platforms/rpms/suse/bacula.spec" ;;
32083     "platforms/rpms/suse/bacula-bat.spec") CONFIG_FILES="$CONFIG_FILES platforms/rpms/suse/bacula-bat.spec" ;;
32084     "platforms/rpms/suse/bacula-docs.spec") CONFIG_FILES="$CONFIG_FILES platforms/rpms/suse/bacula-docs.spec" ;;
32085     "platforms/rpms/suse/bacula-mtx.spec") CONFIG_FILES="$CONFIG_FILES platforms/rpms/suse/bacula-mtx.spec" ;;
32086     "$PFILES") CONFIG_FILES="$CONFIG_FILES $PFILES" ;;
32087     "default") CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
32088
32089   *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
32090   esac
32091 done
32092
32093
32094 # If the user did not use the arguments to specify the items to instantiate,
32095 # then the envvar interface is used.  Set only those that are not.
32096 # We use the long form for the default assignment because of an extremely
32097 # bizarre bug on SunOS 4.1.3.
32098 if $ac_need_defaults; then
32099   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
32100   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
32101   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
32102 fi
32103
32104 # Have a temporary directory for convenience.  Make it in the build tree
32105 # simply because there is no reason against having it here, and in addition,
32106 # creating and moving files from /tmp can sometimes cause problems.
32107 # Hook for its removal unless debugging.
32108 # Note that there is a small window in which the directory will not be cleaned:
32109 # after its creation but before its name has been assigned to `$tmp'.
32110 $debug ||
32111 {
32112   tmp= ac_tmp=
32113   trap 'exit_status=$?
32114   : "${ac_tmp:=$tmp}"
32115   { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
32116 ' 0
32117   trap 'as_fn_exit 1' 1 2 13 15
32118 }
32119 # Create a (secure) tmp directory for tmp files.
32120
32121 {
32122   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
32123   test -d "$tmp"
32124 }  ||
32125 {
32126   tmp=./conf$$-$RANDOM
32127   (umask 077 && mkdir "$tmp")
32128 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
32129 ac_tmp=$tmp
32130
32131 # Set up the scripts for CONFIG_FILES section.
32132 # No need to generate them if there are no CONFIG_FILES.
32133 # This happens for instance with `./config.status config.h'.
32134 if test -n "$CONFIG_FILES"; then
32135
32136 if $AWK 'BEGIN { getline <"/dev/null" }' </dev/null 2>/dev/null; then
32137   ac_cs_awk_getline=:
32138   ac_cs_awk_pipe_init=
32139   ac_cs_awk_read_file='
32140       while ((getline aline < (F[key])) > 0)
32141         print(aline)
32142       close(F[key])'
32143   ac_cs_awk_pipe_fini=
32144 else
32145   ac_cs_awk_getline=false
32146   ac_cs_awk_pipe_init="print \"cat <<'|#_!!_#|' &&\""
32147   ac_cs_awk_read_file='
32148       print "|#_!!_#|"
32149       print "cat " F[key] " &&"
32150       '$ac_cs_awk_pipe_init
32151   # The final `:' finishes the AND list.
32152   ac_cs_awk_pipe_fini='END { print "|#_!!_#|"; print ":" }'
32153 fi
32154 ac_cr=`echo X | tr X '\015'`
32155 # On cygwin, bash can eat \r inside `` if the user requested igncr.
32156 # But we know of no other shell where ac_cr would be empty at this
32157 # point, so we can use a bashism as a fallback.
32158 if test "x$ac_cr" = x; then
32159   eval ac_cr=\$\'\\r\'
32160 fi
32161 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
32162 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
32163   ac_cs_awk_cr='\\r'
32164 else
32165   ac_cs_awk_cr=$ac_cr
32166 fi
32167
32168 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
32169 _ACEOF
32170
32171 # Create commands to substitute file output variables.
32172 {
32173   echo "cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1" &&
32174   echo 'cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&' &&
32175   echo "$ac_subst_files" | sed 's/.*/F["&"]="$&"/' &&
32176   echo "_ACAWK" &&
32177   echo "_ACEOF"
32178 } >conf$$files.sh &&
32179 . ./conf$$files.sh ||
32180   as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
32181 rm -f conf$$files.sh
32182
32183 {
32184   echo "cat >conf$$subs.awk <<_ACEOF" &&
32185   echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
32186   echo "_ACEOF"
32187 } >conf$$subs.sh ||
32188   as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
32189 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
32190 ac_delim='%!_!# '
32191 for ac_last_try in false false false false false :; do
32192   . ./conf$$subs.sh ||
32193     as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
32194
32195   ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
32196   if test $ac_delim_n = $ac_delim_num; then
32197     break
32198   elif $ac_last_try; then
32199     as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
32200   else
32201     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
32202   fi
32203 done
32204 rm -f conf$$subs.sh
32205
32206 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
32207 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
32208 _ACEOF
32209 sed -n '
32210 h
32211 s/^/S["/; s/!.*/"]=/
32212 p
32213 g
32214 s/^[^!]*!//
32215 :repl
32216 t repl
32217 s/'"$ac_delim"'$//
32218 t delim
32219 :nl
32220 h
32221 s/\(.\{148\}\)..*/\1/
32222 t more1
32223 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
32224 p
32225 n
32226 b repl
32227 :more1
32228 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
32229 p
32230 g
32231 s/.\{148\}//
32232 t nl
32233 :delim
32234 h
32235 s/\(.\{148\}\)..*/\1/
32236 t more2
32237 s/["\\]/\\&/g; s/^/"/; s/$/"/
32238 p
32239 b
32240 :more2
32241 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
32242 p
32243 g
32244 s/.\{148\}//
32245 t delim
32246 ' <conf$$subs.awk | sed '
32247 /^[^""]/{
32248   N
32249   s/\n//
32250 }
32251 ' >>$CONFIG_STATUS || ac_write_fail=1
32252 rm -f conf$$subs.awk
32253 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
32254 _ACAWK
32255 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
32256   for (key in S) S_is_set[key] = 1
32257   FS = "\a"
32258   \$ac_cs_awk_pipe_init
32259 }
32260 {
32261   line = $ 0
32262   nfields = split(line, field, "@")
32263   substed = 0
32264   len = length(field[1])
32265   for (i = 2; i < nfields; i++) {
32266     key = field[i]
32267     keylen = length(key)
32268     if (S_is_set[key]) {
32269       value = S[key]
32270       line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
32271       len += length(value) + length(field[++i])
32272       substed = 1
32273     } else
32274       len += 1 + keylen
32275   }
32276   if (nfields == 3 && !substed) {
32277     key = field[2]
32278     if (F[key] != "" && line ~ /^[       ]*@.*@[         ]*$/) {
32279       \$ac_cs_awk_read_file
32280       next
32281     }
32282   }
32283   print line
32284 }
32285 \$ac_cs_awk_pipe_fini
32286 _ACAWK
32287 _ACEOF
32288 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
32289 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
32290   sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
32291 else
32292   cat
32293 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
32294   || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
32295 _ACEOF
32296
32297 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
32298 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
32299 # trailing colons and then remove the whole line if VPATH becomes empty
32300 # (actually we leave an empty line to preserve line numbers).
32301 if test "x$srcdir" = x.; then
32302   ac_vpsub='/^[  ]*VPATH[        ]*=[    ]*/{
32303 h
32304 s///
32305 s/^/:/
32306 s/[      ]*$/:/
32307 s/:\$(srcdir):/:/g
32308 s/:\${srcdir}:/:/g
32309 s/:@srcdir@:/:/g
32310 s/^:*//
32311 s/:*$//
32312 x
32313 s/\(=[   ]*\).*/\1/
32314 G
32315 s/\n//
32316 s/^[^=]*=[       ]*$//
32317 }'
32318 fi
32319
32320 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
32321 fi # test -n "$CONFIG_FILES"
32322
32323 # Set up the scripts for CONFIG_HEADERS section.
32324 # No need to generate them if there are no CONFIG_HEADERS.
32325 # This happens for instance with `./config.status Makefile'.
32326 if test -n "$CONFIG_HEADERS"; then
32327 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
32328 BEGIN {
32329 _ACEOF
32330
32331 # Transform confdefs.h into an awk script `defines.awk', embedded as
32332 # here-document in config.status, that substitutes the proper values into
32333 # config.h.in to produce config.h.
32334
32335 # Create a delimiter string that does not exist in confdefs.h, to ease
32336 # handling of long lines.
32337 ac_delim='%!_!# '
32338 for ac_last_try in false false :; do
32339   ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
32340   if test -z "$ac_tt"; then
32341     break
32342   elif $ac_last_try; then
32343     as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
32344   else
32345     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
32346   fi
32347 done
32348
32349 # For the awk script, D is an array of macro values keyed by name,
32350 # likewise P contains macro parameters if any.  Preserve backslash
32351 # newline sequences.
32352
32353 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
32354 sed -n '
32355 s/.\{148\}/&'"$ac_delim"'/g
32356 t rset
32357 :rset
32358 s/^[     ]*#[    ]*define[       ][      ]*/ /
32359 t def
32360 d
32361 :def
32362 s/\\$//
32363 t bsnl
32364 s/["\\]/\\&/g
32365 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
32366 D["\1"]=" \3"/p
32367 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2"/p
32368 d
32369 :bsnl
32370 s/["\\]/\\&/g
32371 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
32372 D["\1"]=" \3\\\\\\n"\\/p
32373 t cont
32374 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
32375 t cont
32376 d
32377 :cont
32378 n
32379 s/.\{148\}/&'"$ac_delim"'/g
32380 t clear
32381 :clear
32382 s/\\$//
32383 t bsnlc
32384 s/["\\]/\\&/g; s/^/"/; s/$/"/p
32385 d
32386 :bsnlc
32387 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
32388 b cont
32389 ' <confdefs.h | sed '
32390 s/'"$ac_delim"'/"\\\
32391 "/g' >>$CONFIG_STATUS || ac_write_fail=1
32392
32393 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
32394   for (key in D) D_is_set[key] = 1
32395   FS = "\a"
32396 }
32397 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
32398   line = \$ 0
32399   split(line, arg, " ")
32400   if (arg[1] == "#") {
32401     defundef = arg[2]
32402     mac1 = arg[3]
32403   } else {
32404     defundef = substr(arg[1], 2)
32405     mac1 = arg[2]
32406   }
32407   split(mac1, mac2, "(") #)
32408   macro = mac2[1]
32409   prefix = substr(line, 1, index(line, defundef) - 1)
32410   if (D_is_set[macro]) {
32411     # Preserve the white space surrounding the "#".
32412     print prefix "define", macro P[macro] D[macro]
32413     next
32414   } else {
32415     # Replace #undef with comments.  This is necessary, for example,
32416     # in the case of _POSIX_SOURCE, which is predefined and required
32417     # on some systems where configure will not decide to define it.
32418     if (defundef == "undef") {
32419       print "/*", prefix defundef, macro, "*/"
32420       next
32421     }
32422   }
32423 }
32424 { print }
32425 _ACAWK
32426 _ACEOF
32427 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
32428   as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
32429 fi # test -n "$CONFIG_HEADERS"
32430
32431
32432 eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
32433 shift
32434 for ac_tag
32435 do
32436   case $ac_tag in
32437   :[FHLC]) ac_mode=$ac_tag; continue;;
32438   esac
32439   case $ac_mode$ac_tag in
32440   :[FHL]*:*);;
32441   :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
32442   :[FH]-) ac_tag=-:-;;
32443   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
32444   esac
32445   ac_save_IFS=$IFS
32446   IFS=:
32447   set x $ac_tag
32448   IFS=$ac_save_IFS
32449   shift
32450   ac_file=$1
32451   shift
32452
32453   case $ac_mode in
32454   :L) ac_source=$1;;
32455   :[FH])
32456     ac_file_inputs=
32457     for ac_f
32458     do
32459       case $ac_f in
32460       -) ac_f="$ac_tmp/stdin";;
32461       *) # Look for the file first in the build tree, then in the source tree
32462          # (if the path is not absolute).  The absolute path cannot be DOS-style,
32463          # because $ac_f cannot contain `:'.
32464          test -f "$ac_f" ||
32465            case $ac_f in
32466            [\\/$]*) false;;
32467            *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
32468            esac ||
32469            as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
32470       esac
32471       case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
32472       as_fn_append ac_file_inputs " '$ac_f'"
32473     done
32474
32475     # Let's still pretend it is `configure' which instantiates (i.e., don't
32476     # use $as_me), people would be surprised to read:
32477     #    /* config.h.  Generated by config.status.  */
32478     configure_input='Generated from '`
32479           $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
32480         `' by configure.'
32481     if test x"$ac_file" != x-; then
32482       configure_input="$ac_file.  $configure_input"
32483       { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
32484 $as_echo "$as_me: creating $ac_file" >&6;}
32485     fi
32486     # Neutralize special characters interpreted by sed in replacement strings.
32487     case $configure_input in #(
32488     *\&* | *\|* | *\\* )
32489        ac_sed_conf_input=`$as_echo "$configure_input" |
32490        sed 's/[\\\\&|]/\\\\&/g'`;; #(
32491     *) ac_sed_conf_input=$configure_input;;
32492     esac
32493
32494     case $ac_tag in
32495     *:-:* | *:-) cat >"$ac_tmp/stdin" \
32496       || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
32497     esac
32498     ;;
32499   esac
32500
32501   ac_dir=`$as_dirname -- "$ac_file" ||
32502 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
32503          X"$ac_file" : 'X\(//\)[^/]' \| \
32504          X"$ac_file" : 'X\(//\)$' \| \
32505          X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
32506 $as_echo X"$ac_file" |
32507     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
32508             s//\1/
32509             q
32510           }
32511           /^X\(\/\/\)[^/].*/{
32512             s//\1/
32513             q
32514           }
32515           /^X\(\/\/\)$/{
32516             s//\1/
32517             q
32518           }
32519           /^X\(\/\).*/{
32520             s//\1/
32521             q
32522           }
32523           s/.*/./; q'`
32524   as_dir="$ac_dir"; as_fn_mkdir_p
32525   ac_builddir=.
32526
32527 case "$ac_dir" in
32528 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
32529 *)
32530   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
32531   # A ".." for each directory in $ac_dir_suffix.
32532   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
32533   case $ac_top_builddir_sub in
32534   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
32535   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
32536   esac ;;
32537 esac
32538 ac_abs_top_builddir=$ac_pwd
32539 ac_abs_builddir=$ac_pwd$ac_dir_suffix
32540 # for backward compatibility:
32541 ac_top_builddir=$ac_top_build_prefix
32542
32543 case $srcdir in
32544   .)  # We are building in place.
32545     ac_srcdir=.
32546     ac_top_srcdir=$ac_top_builddir_sub
32547     ac_abs_top_srcdir=$ac_pwd ;;
32548   [\\/]* | ?:[\\/]* )  # Absolute name.
32549     ac_srcdir=$srcdir$ac_dir_suffix;
32550     ac_top_srcdir=$srcdir
32551     ac_abs_top_srcdir=$srcdir ;;
32552   *) # Relative name.
32553     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
32554     ac_top_srcdir=$ac_top_build_prefix$srcdir
32555     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
32556 esac
32557 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
32558
32559
32560   case $ac_mode in
32561   :F)
32562   #
32563   # CONFIG_FILE
32564   #
32565
32566   case $INSTALL in
32567   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
32568   *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
32569   esac
32570 _ACEOF
32571
32572 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
32573 # If the template does not know about datarootdir, expand it.
32574 # FIXME: This hack should be removed a few years after 2.60.
32575 ac_datarootdir_hack=; ac_datarootdir_seen=
32576 ac_sed_dataroot='
32577 /datarootdir/ {
32578   p
32579   q
32580 }
32581 /@datadir@/p
32582 /@docdir@/p
32583 /@infodir@/p
32584 /@localedir@/p
32585 /@mandir@/p'
32586 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
32587 *datarootdir*) ac_datarootdir_seen=yes;;
32588 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
32589   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
32590 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
32591 _ACEOF
32592 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
32593   ac_datarootdir_hack='
32594   s&@datadir@&$datadir&g
32595   s&@docdir@&$docdir&g
32596   s&@infodir@&$infodir&g
32597   s&@localedir@&$localedir&g
32598   s&@mandir@&$mandir&g
32599   s&\\\${datarootdir}&$datarootdir&g' ;;
32600 esac
32601 _ACEOF
32602
32603 # Neutralize VPATH when `$srcdir' = `.'.
32604 # Shell code in configure.ac might set extrasub.
32605 # FIXME: do we really want to maintain this feature?
32606 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
32607 ac_sed_extra="$ac_vpsub
32608 $extrasub
32609 _ACEOF
32610 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
32611 :t
32612 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
32613 s|@configure_input@|$ac_sed_conf_input|;t t
32614 s&@top_builddir@&$ac_top_builddir_sub&;t t
32615 s&@top_build_prefix@&$ac_top_build_prefix&;t t
32616 s&@srcdir@&$ac_srcdir&;t t
32617 s&@abs_srcdir@&$ac_abs_srcdir&;t t
32618 s&@top_srcdir@&$ac_top_srcdir&;t t
32619 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
32620 s&@builddir@&$ac_builddir&;t t
32621 s&@abs_builddir@&$ac_abs_builddir&;t t
32622 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
32623 s&@INSTALL@&$ac_INSTALL&;t t
32624 $ac_datarootdir_hack
32625 "
32626 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" |
32627 if $ac_cs_awk_getline; then
32628   $AWK -f "$ac_tmp/subs.awk"
32629 else
32630   $AWK -f "$ac_tmp/subs.awk" | $SHELL
32631 fi \
32632   >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
32633
32634 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
32635   { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
32636   { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' \
32637       "$ac_tmp/out"`; test -z "$ac_out"; } &&
32638   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
32639 which seems to be undefined.  Please make sure it is defined" >&5
32640 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
32641 which seems to be undefined.  Please make sure it is defined" >&2;}
32642
32643   rm -f "$ac_tmp/stdin"
32644   case $ac_file in
32645   -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
32646   *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
32647   esac \
32648   || as_fn_error $? "could not create $ac_file" "$LINENO" 5
32649  ;;
32650   :H)
32651   #
32652   # CONFIG_HEADER
32653   #
32654   if test x"$ac_file" != x-; then
32655     {
32656       $as_echo "/* $configure_input  */" \
32657       && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
32658     } >"$ac_tmp/config.h" \
32659       || as_fn_error $? "could not create $ac_file" "$LINENO" 5
32660     if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
32661       { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
32662 $as_echo "$as_me: $ac_file is unchanged" >&6;}
32663     else
32664       rm -f "$ac_file"
32665       mv "$ac_tmp/config.h" "$ac_file" \
32666         || as_fn_error $? "could not create $ac_file" "$LINENO" 5
32667     fi
32668   else
32669     $as_echo "/* $configure_input  */" \
32670       && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
32671       || as_fn_error $? "could not create -" "$LINENO" 5
32672   fi
32673  ;;
32674
32675   :C)  { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
32676 $as_echo "$as_me: executing $ac_file commands" >&6;}
32677  ;;
32678   esac
32679
32680
32681   case $ac_file$ac_mode in
32682     "libtool":C)
32683
32684     # See if we are running on zsh, and set the options which allow our
32685     # commands through without removal of \ escapes.
32686     if test -n "${ZSH_VERSION+set}" ; then
32687       setopt NO_GLOB_SUBST
32688     fi
32689
32690     cfgfile="${ofile}T"
32691     trap "$RM \"$cfgfile\"; exit 1" 1 2 15
32692     $RM "$cfgfile"
32693
32694     cat <<_LT_EOF >> "$cfgfile"
32695 #! $SHELL
32696
32697 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
32698 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
32699 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
32700 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
32701 #
32702 #   Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
32703 #                 2006, 2007, 2008, 2009, 2010 Free Software Foundation,
32704 #                 Inc.
32705 #   Written by Gordon Matzigkeit, 1996
32706 #
32707 #   This file is part of GNU Libtool.
32708 #
32709 # GNU Libtool is free software; you can redistribute it and/or
32710 # modify it under the terms of the GNU General Public License as
32711 # published by the Free Software Foundation; either version 2 of
32712 # the License, or (at your option) any later version.
32713 #
32714 # As a special exception to the GNU General Public License,
32715 # if you distribute this file as part of a program or library that
32716 # is built using GNU Libtool, you may include this file under the
32717 # same distribution terms that you use for the rest of that program.
32718 #
32719 # GNU Libtool is distributed in the hope that it will be useful,
32720 # but WITHOUT ANY WARRANTY; without even the implied warranty of
32721 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
32722 # GNU General Public License for more details.
32723 #
32724 # You should have received a copy of the GNU General Public License
32725 # along with GNU Libtool; see the file COPYING.  If not, a copy
32726 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
32727 # obtained by writing to the Free Software Foundation, Inc.,
32728 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
32729
32730
32731 # The names of the tagged configurations supported by this script.
32732 available_tags="CXX "
32733
32734 # ### BEGIN LIBTOOL CONFIG
32735
32736 # Which release of libtool.m4 was used?
32737 macro_version=$macro_version
32738 macro_revision=$macro_revision
32739
32740 # Whether or not to build shared libraries.
32741 build_libtool_libs=$enable_shared
32742
32743 # Whether or not to build static libraries.
32744 build_old_libs=$enable_static
32745
32746 # What type of objects to build.
32747 pic_mode=$pic_mode
32748
32749 # Whether or not to optimize for fast installation.
32750 fast_install=$enable_fast_install
32751
32752 # Shell to use when invoking shell scripts.
32753 SHELL=$lt_SHELL
32754
32755 # An echo program that protects backslashes.
32756 ECHO=$lt_ECHO
32757
32758 # The host system.
32759 host_alias=$host_alias
32760 host=$host
32761 host_os=$host_os
32762
32763 # The build system.
32764 build_alias=$build_alias
32765 build=$build
32766 build_os=$build_os
32767
32768 # A sed program that does not truncate output.
32769 SED=$lt_SED
32770
32771 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
32772 Xsed="\$SED -e 1s/^X//"
32773
32774 # A grep program that handles long lines.
32775 GREP=$lt_GREP
32776
32777 # An ERE matcher.
32778 EGREP=$lt_EGREP
32779
32780 # A literal string matcher.
32781 FGREP=$lt_FGREP
32782
32783 # A BSD- or MS-compatible name lister.
32784 NM=$lt_NM
32785
32786 # Whether we need soft or hard links.
32787 LN_S=$lt_LN_S
32788
32789 # What is the maximum length of a command?
32790 max_cmd_len=$max_cmd_len
32791
32792 # Object file suffix (normally "o").
32793 objext=$ac_objext
32794
32795 # Executable file suffix (normally "").
32796 exeext=$exeext
32797
32798 # whether the shell understands "unset".
32799 lt_unset=$lt_unset
32800
32801 # turn spaces into newlines.
32802 SP2NL=$lt_lt_SP2NL
32803
32804 # turn newlines into spaces.
32805 NL2SP=$lt_lt_NL2SP
32806
32807 # convert \$build file names to \$host format.
32808 to_host_file_cmd=$lt_cv_to_host_file_cmd
32809
32810 # convert \$build files to toolchain format.
32811 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
32812
32813 # An object symbol dumper.
32814 OBJDUMP=$lt_OBJDUMP
32815
32816 # Method to check whether dependent libraries are shared objects.
32817 deplibs_check_method=$lt_deplibs_check_method
32818
32819 # Command to use when deplibs_check_method = "file_magic".
32820 file_magic_cmd=$lt_file_magic_cmd
32821
32822 # How to find potential files when deplibs_check_method = "file_magic".
32823 file_magic_glob=$lt_file_magic_glob
32824
32825 # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
32826 want_nocaseglob=$lt_want_nocaseglob
32827
32828 # DLL creation program.
32829 DLLTOOL=$lt_DLLTOOL
32830
32831 # Command to associate shared and link libraries.
32832 sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
32833
32834 # The archiver.
32835 AR=$lt_AR
32836
32837 # Flags to create an archive.
32838 AR_FLAGS=$lt_AR_FLAGS
32839
32840 # How to feed a file listing to the archiver.
32841 archiver_list_spec=$lt_archiver_list_spec
32842
32843 # A symbol stripping program.
32844 STRIP=$lt_STRIP
32845
32846 # Commands used to install an old-style archive.
32847 RANLIB=$lt_RANLIB
32848 old_postinstall_cmds=$lt_old_postinstall_cmds
32849 old_postuninstall_cmds=$lt_old_postuninstall_cmds
32850
32851 # Whether to use a lock for old archive extraction.
32852 lock_old_archive_extraction=$lock_old_archive_extraction
32853
32854 # A C compiler.
32855 LTCC=$lt_CC
32856
32857 # LTCC compiler flags.
32858 LTCFLAGS=$lt_CFLAGS
32859
32860 # Take the output of nm and produce a listing of raw symbols and C names.
32861 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
32862
32863 # Transform the output of nm in a proper C declaration.
32864 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
32865
32866 # Transform the output of nm in a C name address pair.
32867 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
32868
32869 # Transform the output of nm in a C name address pair when lib prefix is needed.
32870 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
32871
32872 # Specify filename containing input files for \$NM.
32873 nm_file_list_spec=$lt_nm_file_list_spec
32874
32875 # The root where to search for dependent libraries,and in which our libraries should be installed.
32876 lt_sysroot=$lt_sysroot
32877
32878 # The name of the directory that contains temporary libtool files.
32879 objdir=$objdir
32880
32881 # Used to examine libraries when file_magic_cmd begins with "file".
32882 MAGIC_CMD=$MAGIC_CMD
32883
32884 # Must we lock files when doing compilation?
32885 need_locks=$lt_need_locks
32886
32887 # Manifest tool.
32888 MANIFEST_TOOL=$lt_MANIFEST_TOOL
32889
32890 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
32891 DSYMUTIL=$lt_DSYMUTIL
32892
32893 # Tool to change global to local symbols on Mac OS X.
32894 NMEDIT=$lt_NMEDIT
32895
32896 # Tool to manipulate fat objects and archives on Mac OS X.
32897 LIPO=$lt_LIPO
32898
32899 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
32900 OTOOL=$lt_OTOOL
32901
32902 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
32903 OTOOL64=$lt_OTOOL64
32904
32905 # Old archive suffix (normally "a").
32906 libext=$libext
32907
32908 # Shared library suffix (normally ".so").
32909 shrext_cmds=$lt_shrext_cmds
32910
32911 # The commands to extract the exported symbol list from a shared archive.
32912 extract_expsyms_cmds=$lt_extract_expsyms_cmds
32913
32914 # Variables whose values should be saved in libtool wrapper scripts and
32915 # restored at link time.
32916 variables_saved_for_relink=$lt_variables_saved_for_relink
32917
32918 # Do we need the "lib" prefix for modules?
32919 need_lib_prefix=$need_lib_prefix
32920
32921 # Do we need a version for libraries?
32922 need_version=$need_version
32923
32924 # Library versioning type.
32925 version_type=$version_type
32926
32927 # Shared library runtime path variable.
32928 runpath_var=$runpath_var
32929
32930 # Shared library path variable.
32931 shlibpath_var=$shlibpath_var
32932
32933 # Is shlibpath searched before the hard-coded library search path?
32934 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
32935
32936 # Format of library name prefix.
32937 libname_spec=$lt_libname_spec
32938
32939 # List of archive names.  First name is the real one, the rest are links.
32940 # The last name is the one that the linker finds with -lNAME
32941 library_names_spec=$lt_library_names_spec
32942
32943 # The coded name of the library, if different from the real name.
32944 soname_spec=$lt_soname_spec
32945
32946 # Permission mode override for installation of shared libraries.
32947 install_override_mode=$lt_install_override_mode
32948
32949 # Command to use after installation of a shared archive.
32950 postinstall_cmds=$lt_postinstall_cmds
32951
32952 # Command to use after uninstallation of a shared archive.
32953 postuninstall_cmds=$lt_postuninstall_cmds
32954
32955 # Commands used to finish a libtool library installation in a directory.
32956 finish_cmds=$lt_finish_cmds
32957
32958 # As "finish_cmds", except a single script fragment to be evaled but
32959 # not shown.
32960 finish_eval=$lt_finish_eval
32961
32962 # Whether we should hardcode library paths into libraries.
32963 hardcode_into_libs=$hardcode_into_libs
32964
32965 # Compile-time system search path for libraries.
32966 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
32967
32968 # Run-time system search path for libraries.
32969 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
32970
32971 # Whether dlopen is supported.
32972 dlopen_support=$enable_dlopen
32973
32974 # Whether dlopen of programs is supported.
32975 dlopen_self=$enable_dlopen_self
32976
32977 # Whether dlopen of statically linked programs is supported.
32978 dlopen_self_static=$enable_dlopen_self_static
32979
32980 # Commands to strip libraries.
32981 old_striplib=$lt_old_striplib
32982 striplib=$lt_striplib
32983
32984
32985 # The linker used to build libraries.
32986 LD=$lt_LD
32987
32988 # How to create reloadable object files.
32989 reload_flag=$lt_reload_flag
32990 reload_cmds=$lt_reload_cmds
32991
32992 # Commands used to build an old-style archive.
32993 old_archive_cmds=$lt_old_archive_cmds
32994
32995 # A language specific compiler.
32996 CC=$lt_compiler
32997
32998 # Is the compiler the GNU compiler?
32999 with_gcc=$GCC
33000
33001 # Compiler flag to turn off builtin functions.
33002 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
33003
33004 # Additional compiler flags for building library objects.
33005 pic_flag=$lt_lt_prog_compiler_pic
33006
33007 # How to pass a linker flag through the compiler.
33008 wl=$lt_lt_prog_compiler_wl
33009
33010 # Compiler flag to prevent dynamic linking.
33011 link_static_flag=$lt_lt_prog_compiler_static
33012
33013 # Does compiler simultaneously support -c and -o options?
33014 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
33015
33016 # Whether or not to add -lc for building shared libraries.
33017 build_libtool_need_lc=$archive_cmds_need_lc
33018
33019 # Whether or not to disallow shared libs when runtime libs are static.
33020 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
33021
33022 # Compiler flag to allow reflexive dlopens.
33023 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
33024
33025 # Compiler flag to generate shared objects directly from archives.
33026 whole_archive_flag_spec=$lt_whole_archive_flag_spec
33027
33028 # Whether the compiler copes with passing no objects directly.
33029 compiler_needs_object=$lt_compiler_needs_object
33030
33031 # Create an old-style archive from a shared archive.
33032 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
33033
33034 # Create a temporary old-style archive to link instead of a shared archive.
33035 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
33036
33037 # Commands used to build a shared archive.
33038 archive_cmds=$lt_archive_cmds
33039 archive_expsym_cmds=$lt_archive_expsym_cmds
33040
33041 # Commands used to build a loadable module if different from building
33042 # a shared archive.
33043 module_cmds=$lt_module_cmds
33044 module_expsym_cmds=$lt_module_expsym_cmds
33045
33046 # Whether we are building with GNU ld or not.
33047 with_gnu_ld=$lt_with_gnu_ld
33048
33049 # Flag that allows shared libraries with undefined symbols to be built.
33050 allow_undefined_flag=$lt_allow_undefined_flag
33051
33052 # Flag that enforces no undefined symbols.
33053 no_undefined_flag=$lt_no_undefined_flag
33054
33055 # Flag to hardcode \$libdir into a binary during linking.
33056 # This must work even if \$libdir does not exist
33057 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
33058
33059 # If ld is used when linking, flag to hardcode \$libdir into a binary
33060 # during linking.  This must work even if \$libdir does not exist.
33061 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
33062
33063 # Whether we need a single "-rpath" flag with a separated argument.
33064 hardcode_libdir_separator=$lt_hardcode_libdir_separator
33065
33066 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
33067 # DIR into the resulting binary.
33068 hardcode_direct=$hardcode_direct
33069
33070 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
33071 # DIR into the resulting binary and the resulting library dependency is
33072 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
33073 # library is relocated.
33074 hardcode_direct_absolute=$hardcode_direct_absolute
33075
33076 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
33077 # into the resulting binary.
33078 hardcode_minus_L=$hardcode_minus_L
33079
33080 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
33081 # into the resulting binary.
33082 hardcode_shlibpath_var=$hardcode_shlibpath_var
33083
33084 # Set to "yes" if building a shared library automatically hardcodes DIR
33085 # into the library and all subsequent libraries and executables linked
33086 # against it.
33087 hardcode_automatic=$hardcode_automatic
33088
33089 # Set to yes if linker adds runtime paths of dependent libraries
33090 # to runtime path list.
33091 inherit_rpath=$inherit_rpath
33092
33093 # Whether libtool must link a program against all its dependency libraries.
33094 link_all_deplibs=$link_all_deplibs
33095
33096 # Set to "yes" if exported symbols are required.
33097 always_export_symbols=$always_export_symbols
33098
33099 # The commands to list exported symbols.
33100 export_symbols_cmds=$lt_export_symbols_cmds
33101
33102 # Symbols that should not be listed in the preloaded symbols.
33103 exclude_expsyms=$lt_exclude_expsyms
33104
33105 # Symbols that must always be exported.
33106 include_expsyms=$lt_include_expsyms
33107
33108 # Commands necessary for linking programs (against libraries) with templates.
33109 prelink_cmds=$lt_prelink_cmds
33110
33111 # Commands necessary for finishing linking programs.
33112 postlink_cmds=$lt_postlink_cmds
33113
33114 # Specify filename containing input files.
33115 file_list_spec=$lt_file_list_spec
33116
33117 # How to hardcode a shared library path into an executable.
33118 hardcode_action=$hardcode_action
33119
33120 # The directories searched by this compiler when creating a shared library.
33121 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
33122
33123 # Dependencies to place before and after the objects being linked to
33124 # create a shared library.
33125 predep_objects=$lt_predep_objects
33126 postdep_objects=$lt_postdep_objects
33127 predeps=$lt_predeps
33128 postdeps=$lt_postdeps
33129
33130 # The library search path used internally by the compiler when linking
33131 # a shared library.
33132 compiler_lib_search_path=$lt_compiler_lib_search_path
33133
33134 # ### END LIBTOOL CONFIG
33135
33136 _LT_EOF
33137
33138   case $host_os in
33139   aix3*)
33140     cat <<\_LT_EOF >> "$cfgfile"
33141 # AIX sometimes has problems with the GCC collect2 program.  For some
33142 # reason, if we set the COLLECT_NAMES environment variable, the problems
33143 # vanish in a puff of smoke.
33144 if test "X${COLLECT_NAMES+set}" != Xset; then
33145   COLLECT_NAMES=
33146   export COLLECT_NAMES
33147 fi
33148 _LT_EOF
33149     ;;
33150   esac
33151
33152
33153 ltmain="$ac_aux_dir/ltmain.sh"
33154
33155
33156   # We use sed instead of cat because bash on DJGPP gets confused if
33157   # if finds mixed CR/LF and LF-only lines.  Since sed operates in
33158   # text mode, it properly converts lines to CR/LF.  This bash problem
33159   # is reportedly fixed, but why not run on old versions too?
33160   sed '$q' "$ltmain" >> "$cfgfile" \
33161      || (rm -f "$cfgfile"; exit 1)
33162
33163   if test x"$xsi_shell" = xyes; then
33164   sed -e '/^func_dirname ()$/,/^} # func_dirname /c\
33165 func_dirname ()\
33166 {\
33167 \    case ${1} in\
33168 \      */*) func_dirname_result="${1%/*}${2}" ;;\
33169 \      *  ) func_dirname_result="${3}" ;;\
33170 \    esac\
33171 } # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \
33172   && mv -f "$cfgfile.tmp" "$cfgfile" \
33173     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
33174 test 0 -eq $? || _lt_function_replace_fail=:
33175
33176
33177   sed -e '/^func_basename ()$/,/^} # func_basename /c\
33178 func_basename ()\
33179 {\
33180 \    func_basename_result="${1##*/}"\
33181 } # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \
33182   && mv -f "$cfgfile.tmp" "$cfgfile" \
33183     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
33184 test 0 -eq $? || _lt_function_replace_fail=:
33185
33186
33187   sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\
33188 func_dirname_and_basename ()\
33189 {\
33190 \    case ${1} in\
33191 \      */*) func_dirname_result="${1%/*}${2}" ;;\
33192 \      *  ) func_dirname_result="${3}" ;;\
33193 \    esac\
33194 \    func_basename_result="${1##*/}"\
33195 } # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \
33196   && mv -f "$cfgfile.tmp" "$cfgfile" \
33197     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
33198 test 0 -eq $? || _lt_function_replace_fail=:
33199
33200
33201   sed -e '/^func_stripname ()$/,/^} # func_stripname /c\
33202 func_stripname ()\
33203 {\
33204 \    # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\
33205 \    # positional parameters, so assign one to ordinary parameter first.\
33206 \    func_stripname_result=${3}\
33207 \    func_stripname_result=${func_stripname_result#"${1}"}\
33208 \    func_stripname_result=${func_stripname_result%"${2}"}\
33209 } # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \
33210   && mv -f "$cfgfile.tmp" "$cfgfile" \
33211     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
33212 test 0 -eq $? || _lt_function_replace_fail=:
33213
33214
33215   sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\
33216 func_split_long_opt ()\
33217 {\
33218 \    func_split_long_opt_name=${1%%=*}\
33219 \    func_split_long_opt_arg=${1#*=}\
33220 } # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \
33221   && mv -f "$cfgfile.tmp" "$cfgfile" \
33222     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
33223 test 0 -eq $? || _lt_function_replace_fail=:
33224
33225
33226   sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\
33227 func_split_short_opt ()\
33228 {\
33229 \    func_split_short_opt_arg=${1#??}\
33230 \    func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\
33231 } # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \
33232   && mv -f "$cfgfile.tmp" "$cfgfile" \
33233     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
33234 test 0 -eq $? || _lt_function_replace_fail=:
33235
33236
33237   sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\
33238 func_lo2o ()\
33239 {\
33240 \    case ${1} in\
33241 \      *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\
33242 \      *)    func_lo2o_result=${1} ;;\
33243 \    esac\
33244 } # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \
33245   && mv -f "$cfgfile.tmp" "$cfgfile" \
33246     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
33247 test 0 -eq $? || _lt_function_replace_fail=:
33248
33249
33250   sed -e '/^func_xform ()$/,/^} # func_xform /c\
33251 func_xform ()\
33252 {\
33253     func_xform_result=${1%.*}.lo\
33254 } # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \
33255   && mv -f "$cfgfile.tmp" "$cfgfile" \
33256     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
33257 test 0 -eq $? || _lt_function_replace_fail=:
33258
33259
33260   sed -e '/^func_arith ()$/,/^} # func_arith /c\
33261 func_arith ()\
33262 {\
33263     func_arith_result=$(( $* ))\
33264 } # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \
33265   && mv -f "$cfgfile.tmp" "$cfgfile" \
33266     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
33267 test 0 -eq $? || _lt_function_replace_fail=:
33268
33269
33270   sed -e '/^func_len ()$/,/^} # func_len /c\
33271 func_len ()\
33272 {\
33273     func_len_result=${#1}\
33274 } # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \
33275   && mv -f "$cfgfile.tmp" "$cfgfile" \
33276     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
33277 test 0 -eq $? || _lt_function_replace_fail=:
33278
33279 fi
33280
33281 if test x"$lt_shell_append" = xyes; then
33282   sed -e '/^func_append ()$/,/^} # func_append /c\
33283 func_append ()\
33284 {\
33285     eval "${1}+=\\${2}"\
33286 } # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \
33287   && mv -f "$cfgfile.tmp" "$cfgfile" \
33288     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
33289 test 0 -eq $? || _lt_function_replace_fail=:
33290
33291
33292   sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\
33293 func_append_quoted ()\
33294 {\
33295 \    func_quote_for_eval "${2}"\
33296 \    eval "${1}+=\\\\ \\$func_quote_for_eval_result"\
33297 } # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \
33298   && mv -f "$cfgfile.tmp" "$cfgfile" \
33299     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
33300 test 0 -eq $? || _lt_function_replace_fail=:
33301
33302
33303   # Save a `func_append' function call where possible by direct use of '+='
33304   sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \
33305     && mv -f "$cfgfile.tmp" "$cfgfile" \
33306       || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
33307   test 0 -eq $? || _lt_function_replace_fail=:
33308 else
33309   # Save a `func_append' function call even when '+=' is not available
33310   sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \
33311     && mv -f "$cfgfile.tmp" "$cfgfile" \
33312       || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
33313   test 0 -eq $? || _lt_function_replace_fail=:
33314 fi
33315
33316 if test x"$_lt_function_replace_fail" = x":"; then
33317   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5
33318 $as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;}
33319 fi
33320
33321
33322    mv -f "$cfgfile" "$ofile" ||
33323     (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
33324   chmod +x "$ofile"
33325
33326
33327     cat <<_LT_EOF >> "$ofile"
33328
33329 # ### BEGIN LIBTOOL TAG CONFIG: CXX
33330
33331 # The linker used to build libraries.
33332 LD=$lt_LD_CXX
33333
33334 # How to create reloadable object files.
33335 reload_flag=$lt_reload_flag_CXX
33336 reload_cmds=$lt_reload_cmds_CXX
33337
33338 # Commands used to build an old-style archive.
33339 old_archive_cmds=$lt_old_archive_cmds_CXX
33340
33341 # A language specific compiler.
33342 CC=$lt_compiler_CXX
33343
33344 # Is the compiler the GNU compiler?
33345 with_gcc=$GCC_CXX
33346
33347 # Compiler flag to turn off builtin functions.
33348 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
33349
33350 # Additional compiler flags for building library objects.
33351 pic_flag=$lt_lt_prog_compiler_pic_CXX
33352
33353 # How to pass a linker flag through the compiler.
33354 wl=$lt_lt_prog_compiler_wl_CXX
33355
33356 # Compiler flag to prevent dynamic linking.
33357 link_static_flag=$lt_lt_prog_compiler_static_CXX
33358
33359 # Does compiler simultaneously support -c and -o options?
33360 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
33361
33362 # Whether or not to add -lc for building shared libraries.
33363 build_libtool_need_lc=$archive_cmds_need_lc_CXX
33364
33365 # Whether or not to disallow shared libs when runtime libs are static.
33366 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
33367
33368 # Compiler flag to allow reflexive dlopens.
33369 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
33370
33371 # Compiler flag to generate shared objects directly from archives.
33372 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
33373
33374 # Whether the compiler copes with passing no objects directly.
33375 compiler_needs_object=$lt_compiler_needs_object_CXX
33376
33377 # Create an old-style archive from a shared archive.
33378 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
33379
33380 # Create a temporary old-style archive to link instead of a shared archive.
33381 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
33382
33383 # Commands used to build a shared archive.
33384 archive_cmds=$lt_archive_cmds_CXX
33385 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
33386
33387 # Commands used to build a loadable module if different from building
33388 # a shared archive.
33389 module_cmds=$lt_module_cmds_CXX
33390 module_expsym_cmds=$lt_module_expsym_cmds_CXX
33391
33392 # Whether we are building with GNU ld or not.
33393 with_gnu_ld=$lt_with_gnu_ld_CXX
33394
33395 # Flag that allows shared libraries with undefined symbols to be built.
33396 allow_undefined_flag=$lt_allow_undefined_flag_CXX
33397
33398 # Flag that enforces no undefined symbols.
33399 no_undefined_flag=$lt_no_undefined_flag_CXX
33400
33401 # Flag to hardcode \$libdir into a binary during linking.
33402 # This must work even if \$libdir does not exist
33403 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
33404
33405 # If ld is used when linking, flag to hardcode \$libdir into a binary
33406 # during linking.  This must work even if \$libdir does not exist.
33407 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
33408
33409 # Whether we need a single "-rpath" flag with a separated argument.
33410 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
33411
33412 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
33413 # DIR into the resulting binary.
33414 hardcode_direct=$hardcode_direct_CXX
33415
33416 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
33417 # DIR into the resulting binary and the resulting library dependency is
33418 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
33419 # library is relocated.
33420 hardcode_direct_absolute=$hardcode_direct_absolute_CXX
33421
33422 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
33423 # into the resulting binary.
33424 hardcode_minus_L=$hardcode_minus_L_CXX
33425
33426 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
33427 # into the resulting binary.
33428 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
33429
33430 # Set to "yes" if building a shared library automatically hardcodes DIR
33431 # into the library and all subsequent libraries and executables linked
33432 # against it.
33433 hardcode_automatic=$hardcode_automatic_CXX
33434
33435 # Set to yes if linker adds runtime paths of dependent libraries
33436 # to runtime path list.
33437 inherit_rpath=$inherit_rpath_CXX
33438
33439 # Whether libtool must link a program against all its dependency libraries.
33440 link_all_deplibs=$link_all_deplibs_CXX
33441
33442 # Set to "yes" if exported symbols are required.
33443 always_export_symbols=$always_export_symbols_CXX
33444
33445 # The commands to list exported symbols.
33446 export_symbols_cmds=$lt_export_symbols_cmds_CXX
33447
33448 # Symbols that should not be listed in the preloaded symbols.
33449 exclude_expsyms=$lt_exclude_expsyms_CXX
33450
33451 # Symbols that must always be exported.
33452 include_expsyms=$lt_include_expsyms_CXX
33453
33454 # Commands necessary for linking programs (against libraries) with templates.
33455 prelink_cmds=$lt_prelink_cmds_CXX
33456
33457 # Commands necessary for finishing linking programs.
33458 postlink_cmds=$lt_postlink_cmds_CXX
33459
33460 # Specify filename containing input files.
33461 file_list_spec=$lt_file_list_spec_CXX
33462
33463 # How to hardcode a shared library path into an executable.
33464 hardcode_action=$hardcode_action_CXX
33465
33466 # The directories searched by this compiler when creating a shared library.
33467 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
33468
33469 # Dependencies to place before and after the objects being linked to
33470 # create a shared library.
33471 predep_objects=$lt_predep_objects_CXX
33472 postdep_objects=$lt_postdep_objects_CXX
33473 predeps=$lt_predeps_CXX
33474 postdeps=$lt_postdeps_CXX
33475
33476 # The library search path used internally by the compiler when linking
33477 # a shared library.
33478 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
33479
33480 # ### END LIBTOOL TAG CONFIG: CXX
33481 _LT_EOF
33482
33483  ;;
33484     "default-1":C)
33485     for ac_file in $CONFIG_FILES; do
33486       # Support "outfile[:infile[:infile...]]"
33487       case "$ac_file" in
33488         *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
33489       esac
33490       # PO directories have a Makefile.in generated from Makefile.in.in.
33491       case "$ac_file" in */Makefile.in)
33492         # Adjust a relative srcdir.
33493         ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
33494         ac_dir_suffix="/`echo "$ac_dir"|sed 's%^\./%%'`"
33495         ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
33496         # In autoconf-2.13 it is called $ac_given_srcdir.
33497         # In autoconf-2.50 it is called $srcdir.
33498         test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
33499         case "$ac_given_srcdir" in
33500           .)  top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
33501           /*) top_srcdir="$ac_given_srcdir" ;;
33502           *)  top_srcdir="$ac_dots$ac_given_srcdir" ;;
33503         esac
33504         # Treat a directory as a PO directory if and only if it has a
33505         # POTFILES.in file. This allows packages to have multiple PO
33506         # directories under different names or in different locations.
33507         if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
33508           rm -f "$ac_dir/POTFILES"
33509           test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
33510           cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[   ]*\$/d" -e "s,.*,     $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES"
33511           POMAKEFILEDEPS="POTFILES.in"
33512           # ALL_LINGUAS, POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES depend
33513           # on $ac_dir but don't depend on user-specified configuration
33514           # parameters.
33515           if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
33516             # The LINGUAS file contains the set of available languages.
33517             if test -n "$OBSOLETE_ALL_LINGUAS"; then
33518               test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete"
33519             fi
33520             ALL_LINGUAS_=`sed -e "/^#/d" -e "s/#.*//" "$ac_given_srcdir/$ac_dir/LINGUAS"`
33521             # Hide the ALL_LINGUAS assigment from automake.
33522             eval 'ALL_LINGUAS''=$ALL_LINGUAS_'
33523             POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS"
33524           else
33525             # The set of available languages was given in configure.in.
33526             eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS'
33527           fi
33528           # Compute POFILES
33529           # as      $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).po)
33530           # Compute UPDATEPOFILES
33531           # as      $(foreach lang, $(ALL_LINGUAS), $(lang).po-update)
33532           # Compute DUMMYPOFILES
33533           # as      $(foreach lang, $(ALL_LINGUAS), $(lang).nop)
33534           # Compute GMOFILES
33535           # as      $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).gmo)
33536           case "$ac_given_srcdir" in
33537             .) srcdirpre= ;;
33538             *) srcdirpre='$(srcdir)/' ;;
33539           esac
33540           POFILES=
33541           UPDATEPOFILES=
33542           DUMMYPOFILES=
33543           GMOFILES=
33544           for lang in $ALL_LINGUAS; do
33545             POFILES="$POFILES $srcdirpre$lang.po"
33546             UPDATEPOFILES="$UPDATEPOFILES $lang.po-update"
33547             DUMMYPOFILES="$DUMMYPOFILES $lang.nop"
33548             GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
33549           done
33550           # CATALOGS depends on both $ac_dir and the user's LINGUAS
33551           # environment variable.
33552           INST_LINGUAS=
33553           if test -n "$ALL_LINGUAS"; then
33554             for presentlang in $ALL_LINGUAS; do
33555               useit=no
33556               if test "%UNSET%" != "$LINGUAS"; then
33557                 desiredlanguages="$LINGUAS"
33558               else
33559                 desiredlanguages="$ALL_LINGUAS"
33560               fi
33561               for desiredlang in $desiredlanguages; do
33562                 # Use the presentlang catalog if desiredlang is
33563                 #   a. equal to presentlang, or
33564                 #   b. a variant of presentlang (because in this case,
33565                 #      presentlang can be used as a fallback for messages
33566                 #      which are not translated in the desiredlang catalog).
33567                 case "$desiredlang" in
33568                   "$presentlang"*) useit=yes;;
33569                 esac
33570               done
33571               if test $useit = yes; then
33572                 INST_LINGUAS="$INST_LINGUAS $presentlang"
33573               fi
33574             done
33575           fi
33576           CATALOGS=
33577           if test -n "$INST_LINGUAS"; then
33578             for lang in $INST_LINGUAS; do
33579               CATALOGS="$CATALOGS $lang.gmo"
33580             done
33581           fi
33582           test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
33583           sed -e "/^POTFILES =/r $ac_dir/POTFILES" -e "/^# Makevars/r $ac_given_srcdir/$ac_dir/Makevars" -e "s|@POFILES@|$POFILES|g" -e "s|@UPDATEPOFILES@|$UPDATEPOFILES|g" -e "s|@DUMMYPOFILES@|$DUMMYPOFILES|g" -e "s|@GMOFILES@|$GMOFILES|g" -e "s|@CATALOGS@|$CATALOGS|g" -e "s|@POMAKEFILEDEPS@|$POMAKEFILEDEPS|g" "$ac_dir/Makefile.in" > "$ac_dir/Makefile"
33584           for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do
33585             if test -f "$f"; then
33586               case "$f" in
33587                 *.orig | *.bak | *~) ;;
33588                 *) cat "$f" >> "$ac_dir/Makefile" ;;
33589               esac
33590             fi
33591           done
33592         fi
33593         ;;
33594       esac
33595     done ;;
33596     "default":C)
33597  ;;
33598
33599   esac
33600 done # for ac_tag
33601
33602
33603 as_fn_exit 0
33604 _ACEOF
33605 ac_clean_files=$ac_clean_files_save
33606
33607 test $ac_write_fail = 0 ||
33608   as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
33609
33610
33611 # configure is writing to config.log, and then calls config.status.
33612 # config.status does its own redirection, appending to config.log.
33613 # Unfortunately, on DOS this fails, as config.log is still kept open
33614 # by configure, so config.status won't be able to write to it; its
33615 # output is simply discarded.  So we exec the FD to /dev/null,
33616 # effectively closing config.log, so it can be properly (re)opened and
33617 # appended to by config.status.  When coming back to configure, we
33618 # need to make the FD available again.
33619 if test "$no_create" != yes; then
33620   ac_cs_success=:
33621   ac_config_status_args=
33622   test "$silent" = yes &&
33623     ac_config_status_args="$ac_config_status_args --quiet"
33624   exec 5>/dev/null
33625   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
33626   exec 5>>config.log
33627   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
33628   # would make configure fail if this is the last instruction.
33629   $ac_cs_success || as_fn_exit 1
33630 fi
33631 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
33632   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
33633 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
33634 fi
33635
33636
33637 if test "${support_bat}" = "yes" ; then
33638    if test "x$QMAKE" = "xnone"; then
33639       as_fn_error $? "Could not find qmake $PATH. Check your Qt installation" "$LINENO" 5
33640    fi
33641
33642    cd src/qt-console
33643    echo "Creating bat Makefile"
33644    touch bat
33645    chmod 755 bat
33646    rm -f Makefile
33647    rm -rf moc32 obj32
33648    $QMAKE
33649    ${MAKE:-make} clean
33650    cd ${BUILD_DIR}
33651 fi
33652
33653 if test X"$GCC" = "Xyes" ; then
33654   echo "Doing make of dependencies"
33655   ${MAKE:-make} depend
33656 fi
33657
33658 cd src/qt-console
33659 chmod 755 install_conf_file build-depkgs-qt-console
33660 cd ${BUILD_DIR}
33661
33662 cd scripts
33663 chmod 755 bacula btraceback mtx-changer storage-ctl bsg_persist
33664 chmod 755 dvd-handler dvd-simulator
33665 chmod 755 bconsole disk-changer devel_bacula logrotate
33666 cd ..
33667
33668 c=updatedb
33669 chmod 755 $c/update_mysql_tables_10_to_11   $c/update_sqlite3_tables_10_to_11
33670 chmod 755 $c/update_postgresql_tables_10_to_11
33671 chmod 755 $c/update_mysql_tables_11_to_12   $c/update_sqlite3_tables_11_to_12
33672 chmod 755 $c/update_postgresql_tables_11_to_12
33673
33674
33675 c=src/cats
33676
33677 chmod 755 $c/create_bacula_database   $c/update_bacula_tables  $c/make_bacula_tables
33678 chmod 755 $c/grant_bacula_privileges  $c/drop_bacula_tables    $c/drop_bacula_database
33679
33680 chmod 755 $c/create_mysql_database    $c/update_mysql_tables   $c/make_mysql_tables
33681 chmod 755 $c/grant_mysql_privileges   $c/drop_mysql_tables     $c/drop_mysql_database
33682
33683 chmod 755 $c/create_sqlite3_database   $c/update_sqlite3_tables  $c/make_sqlite3_tables
33684 chmod 755 $c/grant_sqlite3_privileges  $c/drop_sqlite3_tables    $c/drop_sqlite3_database
33685
33686 chmod 755 $c/create_postgresql_database  $c/update_postgresql_tables $c/make_postgresql_tables
33687 chmod 755 $c/grant_postgresql_privileges $c/drop_postgresql_tables   $c/drop_postgresql_database
33688
33689 #chmod 755 $c/create_ingres_database  $c/update_ingres_tables $c/make_ingres_tables
33690 #chmod 755 $c/grant_ingres_privileges $c/drop_ingres_tables   $c/drop_ingres_database
33691
33692
33693 chmod 755 $c/make_catalog_backup $c/delete_catalog_backup  $c/make_catalog_backup.pl
33694 chmod 755 $c/sqlite
33695 chmod 755 $c/mysql
33696
33697 chmod 755 $c/install-default-backend
33698
33699 if test "x$ac_cv_sys_largefile_CFLAGS" != "xno" ; then
33700    largefile_support="yes"
33701 fi
33702
33703 if test X"$GCC" = "Xyes" ; then
33704                CCVERSION=`${CC} --version | tr '\n' ' ' | cut -f 3 -d ' '`
33705    if test "x${CCVERSION}" = "x" ; then
33706       CCVERSION=`${CC} --version | tr '\n' ' ' | cut -f 1 -d ' '`
33707    fi
33708    CXXVERSION=`${CXX} --version | tr '\n' ' ' | cut -f 3 -d ' '`
33709    if test x"${CXXVERSION}" = x ; then
33710       CXXVERSION=`${CXX} --version | tr '\n' ' ' | cut -f 1 -d ' '`
33711    fi
33712 fi
33713
33714 # clean up any old junk
33715 echo " "
33716 echo "Cleaning up"
33717 echo " "
33718 ${MAKE:-make} clean
33719
33720 echo "
33721 Configuration on `date`:
33722
33723    Host:                    ${host}${post_host} -- ${DISTNAME} ${DISTVER}
33724    Bacula version:          ${BACULA} ${VERSION} (${DATE})
33725    Source code location:    ${srcdir}
33726    Install binaries:        ${sbindir}
33727    Install libraries:       ${libdir}
33728    Install config files:    ${sysconfdir}
33729    Scripts directory:       ${scriptdir}
33730    Archive directory:       ${archivedir}
33731    Working directory:       ${working_dir}
33732    PID directory:           ${piddir}
33733    Subsys directory:        ${subsysdir}
33734    Man directory:           ${mandir}
33735    Data directory:          ${datarootdir}
33736    Plugin directory:        ${plugindir}
33737    C Compiler:              ${CC} ${CCVERSION}
33738    C++ Compiler:            ${CXX} ${CXXVERSION}
33739    Compiler flags:          ${WCFLAGS} ${CFLAGS}
33740    Linker flags:            ${WLDFLAGS} ${LDFLAGS}
33741    Libraries:               ${LIBS}
33742    Statically Linked Tools: ${support_static_tools}
33743    Statically Linked FD:    ${support_static_fd}
33744    Statically Linked SD:    ${support_static_sd}
33745    Statically Linked DIR:   ${support_static_dir}
33746    Statically Linked CONS:  ${support_static_cons}
33747    Database backends:       ${db_backends}
33748    Database port:           ${db_port}
33749    Database name:           ${db_name}
33750    Database user:           ${db_user}
33751
33752    Job Output Email:        ${job_email}
33753    Traceback Email:         ${dump_email}
33754    SMTP Host Address:       ${smtp_host}
33755
33756    Director Port:           ${dir_port}
33757    File daemon Port:        ${fd_port}
33758    Storage daemon Port:     ${sd_port}
33759
33760    Director User:           ${dir_user}
33761    Director Group:          ${dir_group}
33762    Storage Daemon User:     ${sd_user}
33763    Storage DaemonGroup:     ${sd_group}
33764    File Daemon User:        ${fd_user}
33765    File Daemon Group:       ${fd_group}
33766
33767    Large file support:      $largefile_support
33768    Bacula conio support:    ${got_conio} ${CONS_LIBS}
33769    readline support:        ${got_readline} ${PRTREADLINE_SRC}
33770    TCP Wrappers support:    ${TCPW_MSG} ${WRAPLIBS}
33771    TLS support:             ${support_tls}
33772    Encryption support:      ${support_crypto}
33773    ZLIB support:            ${have_zlib}
33774    LZO support:             ${have_lzo}
33775    enable-smartalloc:       ${support_smartalloc}
33776    enable-lockmgr:          ${support_lockmgr}
33777    bat support:             ${support_bat}
33778    client-only:             ${build_client_only}
33779    build-dird:              ${build_dird}
33780    build-stored:            ${build_stored}
33781    Plugin support:          ${have_plugins}
33782    AFS support:             ${have_afs}
33783    ACL support:             ${have_acl}
33784    XATTR support:           ${have_xattr}
33785    Python support:          ${support_python} ${PYTHON_LIBS}
33786    systemd support:         ${support_systemd} ${SYSTEMD_UNITDIR}
33787    Batch insert enabled:    ${batch_insert_db_backends}
33788
33789   " > config.out
33790
33791 # create a small shell script useful for support with
33792 # configure options and config.out info
33793 cat > scripts/bacula_config << EOF
33794 #!/bin/sh
33795 cat << __EOC__
33796 $ $0 $ac_configure_args
33797 EOF
33798 cat config.out >> scripts/bacula_config
33799 echo __EOC__ >> scripts/bacula_config
33800 chmod 755 scripts/bacula_config
33801
33802 cat config.out