]> git.sur5r.net Git - bacula/bacula/blob - bacula/configure
Remove Ingress and DBI from configure
[bacula/bacula] / bacula / configure
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.65 for bacula 5.1.14.
4 #
5 #
6 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
7 # 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software Foundation,
8 # 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 case $0 in #((
93   *[\\/]* ) as_myself=$0 ;;
94   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
95 for as_dir in $PATH
96 do
97   IFS=$as_save_IFS
98   test -z "$as_dir" && as_dir=.
99     test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
100   done
101 IFS=$as_save_IFS
102
103      ;;
104 esac
105 # We did not find ourselves, most probably we were run as `sh COMMAND'
106 # in which case we are not to be found in the path.
107 if test "x$as_myself" = x; then
108   as_myself=$0
109 fi
110 if test ! -f "$as_myself"; then
111   $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
112   exit 1
113 fi
114
115 # Unset variables that we do not need and which cause bugs (e.g. in
116 # pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
117 # suppresses any "Segmentation fault" message there.  '((' could
118 # trigger a bug in pdksh 5.2.14.
119 for as_var in BASH_ENV ENV MAIL MAILPATH
120 do eval test x\${$as_var+set} = xset \
121   && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
122 done
123 PS1='$ '
124 PS2='> '
125 PS4='+ '
126
127 # NLS nuisances.
128 LC_ALL=C
129 export LC_ALL
130 LANGUAGE=C
131 export LANGUAGE
132
133 # CDPATH.
134 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
135
136 if test "x$CONFIG_SHELL" = x; then
137   as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
138   emulate sh
139   NULLCMD=:
140   # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
141   # is contrary to our usage.  Disable this feature.
142   alias -g '\${1+\"\$@\"}'='\"\$@\"'
143   setopt NO_GLOB_SUBST
144 else
145   case \`(set -o) 2>/dev/null\` in #(
146   *posix*) :
147     set -o posix ;; #(
148   *) :
149      ;;
150 esac
151 fi
152 "
153   as_required="as_fn_return () { (exit \$1); }
154 as_fn_success () { as_fn_return 0; }
155 as_fn_failure () { as_fn_return 1; }
156 as_fn_ret_success () { return 0; }
157 as_fn_ret_failure () { return 1; }
158
159 exitcode=0
160 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
161 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
162 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
163 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
164 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
165
166 else
167   exitcode=1; echo positional parameters were not saved.
168 fi
169 test x\$exitcode = x0 || exit 1"
170   as_suggested="  as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
171   as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
172   eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
173   test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
174 test \$(( 1 + 1 )) = 2 || exit 1"
175   if (eval "$as_required") 2>/dev/null; then :
176   as_have_required=yes
177 else
178   as_have_required=no
179 fi
180   if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
181
182 else
183   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
184 as_found=false
185 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
186 do
187   IFS=$as_save_IFS
188   test -z "$as_dir" && as_dir=.
189   as_found=:
190   case $as_dir in #(
191          /*)
192            for as_base in sh bash ksh sh5; do
193              # Try only shells that exist, to save several forks.
194              as_shell=$as_dir/$as_base
195              if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
196                     { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
197   CONFIG_SHELL=$as_shell as_have_required=yes
198                    if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
199   break 2
200 fi
201 fi
202            done;;
203        esac
204   as_found=false
205 done
206 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
207               { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
208   CONFIG_SHELL=$SHELL as_have_required=yes
209 fi; }
210 IFS=$as_save_IFS
211
212
213       if test "x$CONFIG_SHELL" != x; then :
214   # We cannot yet assume a decent shell, so we have to provide a
215         # neutralization value for shells without unset; and this also
216         # works around shells that cannot unset nonexistent variables.
217         BASH_ENV=/dev/null
218         ENV=/dev/null
219         (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
220         export CONFIG_SHELL
221         exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
222 fi
223
224     if test x$as_have_required = xno; then :
225   $as_echo "$0: This script requires a shell more modern than all"
226   $as_echo "$0: the shells that I found on your system."
227   if test x${ZSH_VERSION+set} = xset ; then
228     $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
229     $as_echo "$0: be upgraded to zsh 4.3.4 or later."
230   else
231     $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
232 $0: including any error possibly output before this
233 $0: message. Then install a modern shell, or manually run
234 $0: the script under such a shell if you do have one."
235   fi
236   exit 1
237 fi
238 fi
239 fi
240 SHELL=${CONFIG_SHELL-/bin/sh}
241 export SHELL
242 # Unset more variables known to interfere with behavior of common tools.
243 CLICOLOR_FORCE= GREP_OPTIONS=
244 unset CLICOLOR_FORCE GREP_OPTIONS
245
246 ## --------------------- ##
247 ## M4sh Shell Functions. ##
248 ## --------------------- ##
249 # as_fn_unset VAR
250 # ---------------
251 # Portably unset VAR.
252 as_fn_unset ()
253 {
254   { eval $1=; unset $1;}
255 }
256 as_unset=as_fn_unset
257
258 # as_fn_set_status STATUS
259 # -----------------------
260 # Set $? to STATUS, without forking.
261 as_fn_set_status ()
262 {
263   return $1
264 } # as_fn_set_status
265
266 # as_fn_exit STATUS
267 # -----------------
268 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
269 as_fn_exit ()
270 {
271   set +e
272   as_fn_set_status $1
273   exit $1
274 } # as_fn_exit
275
276 # as_fn_mkdir_p
277 # -------------
278 # Create "$as_dir" as a directory, including parents if necessary.
279 as_fn_mkdir_p ()
280 {
281
282   case $as_dir in #(
283   -*) as_dir=./$as_dir;;
284   esac
285   test -d "$as_dir" || eval $as_mkdir_p || {
286     as_dirs=
287     while :; do
288       case $as_dir in #(
289       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
290       *) as_qdir=$as_dir;;
291       esac
292       as_dirs="'$as_qdir' $as_dirs"
293       as_dir=`$as_dirname -- "$as_dir" ||
294 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
295          X"$as_dir" : 'X\(//\)[^/]' \| \
296          X"$as_dir" : 'X\(//\)$' \| \
297          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
298 $as_echo X"$as_dir" |
299     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
300             s//\1/
301             q
302           }
303           /^X\(\/\/\)[^/].*/{
304             s//\1/
305             q
306           }
307           /^X\(\/\/\)$/{
308             s//\1/
309             q
310           }
311           /^X\(\/\).*/{
312             s//\1/
313             q
314           }
315           s/.*/./; q'`
316       test -d "$as_dir" && break
317     done
318     test -z "$as_dirs" || eval "mkdir $as_dirs"
319   } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
320
321
322 } # as_fn_mkdir_p
323 # as_fn_append VAR VALUE
324 # ----------------------
325 # Append the text in VALUE to the end of the definition contained in VAR. Take
326 # advantage of any shell optimizations that allow amortized linear growth over
327 # repeated appends, instead of the typical quadratic growth present in naive
328 # implementations.
329 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
330   eval 'as_fn_append ()
331   {
332     eval $1+=\$2
333   }'
334 else
335   as_fn_append ()
336   {
337     eval $1=\$$1\$2
338   }
339 fi # as_fn_append
340
341 # as_fn_arith ARG...
342 # ------------------
343 # Perform arithmetic evaluation on the ARGs, and store the result in the
344 # global $as_val. Take advantage of shells that can avoid forks. The arguments
345 # must be portable across $(()) and expr.
346 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
347   eval 'as_fn_arith ()
348   {
349     as_val=$(( $* ))
350   }'
351 else
352   as_fn_arith ()
353   {
354     as_val=`expr "$@" || test $? -eq 1`
355   }
356 fi # as_fn_arith
357
358
359 # as_fn_error ERROR [LINENO LOG_FD]
360 # ---------------------------------
361 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
362 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
363 # script with status $?, using 1 if that was 0.
364 as_fn_error ()
365 {
366   as_status=$?; test $as_status -eq 0 && as_status=1
367   if test "$3"; then
368     as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
369     $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
370   fi
371   $as_echo "$as_me: error: $1" >&2
372   as_fn_exit $as_status
373 } # as_fn_error
374
375 if expr a : '\(a\)' >/dev/null 2>&1 &&
376    test "X`expr 00001 : '.*\(...\)'`" = X001; then
377   as_expr=expr
378 else
379   as_expr=false
380 fi
381
382 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
383   as_basename=basename
384 else
385   as_basename=false
386 fi
387
388 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
389   as_dirname=dirname
390 else
391   as_dirname=false
392 fi
393
394 as_me=`$as_basename -- "$0" ||
395 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
396          X"$0" : 'X\(//\)$' \| \
397          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
398 $as_echo X/"$0" |
399     sed '/^.*\/\([^/][^/]*\)\/*$/{
400             s//\1/
401             q
402           }
403           /^X\/\(\/\/\)$/{
404             s//\1/
405             q
406           }
407           /^X\/\(\/\).*/{
408             s//\1/
409             q
410           }
411           s/.*/./; q'`
412
413 # Avoid depending upon Character Ranges.
414 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
415 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
416 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
417 as_cr_digits='0123456789'
418 as_cr_alnum=$as_cr_Letters$as_cr_digits
419
420
421   as_lineno_1=$LINENO as_lineno_1a=$LINENO
422   as_lineno_2=$LINENO as_lineno_2a=$LINENO
423   eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
424   test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
425   # Blame Lee E. McMahon (1931-1989) for sed's syntax.  :-)
426   sed -n '
427     p
428     /[$]LINENO/=
429   ' <$as_myself |
430     sed '
431       s/[$]LINENO.*/&-/
432       t lineno
433       b
434       :lineno
435       N
436       :loop
437       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
438       t loop
439       s/-\n.*//
440     ' >$as_me.lineno &&
441   chmod +x "$as_me.lineno" ||
442     { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
443
444   # Don't try to exec as it changes $[0], causing all sort of problems
445   # (the dirname of $[0] is not the place where we might find the
446   # original and so on.  Autoconf is especially sensitive to this).
447   . "./$as_me.lineno"
448   # Exit status is that of the last command.
449   exit
450 }
451
452 ECHO_C= ECHO_N= ECHO_T=
453 case `echo -n x` in #(((((
454 -n*)
455   case `echo 'xy\c'` in
456   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
457   xy)  ECHO_C='\c';;
458   *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
459        ECHO_T=' ';;
460   esac;;
461 *)
462   ECHO_N='-n';;
463 esac
464
465 rm -f conf$$ conf$$.exe conf$$.file
466 if test -d conf$$.dir; then
467   rm -f conf$$.dir/conf$$.file
468 else
469   rm -f conf$$.dir
470   mkdir conf$$.dir 2>/dev/null
471 fi
472 if (echo >conf$$.file) 2>/dev/null; then
473   if ln -s conf$$.file conf$$ 2>/dev/null; then
474     as_ln_s='ln -s'
475     # ... but there are two gotchas:
476     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
477     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
478     # In both cases, we have to default to `cp -p'.
479     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
480       as_ln_s='cp -p'
481   elif ln conf$$.file conf$$ 2>/dev/null; then
482     as_ln_s=ln
483   else
484     as_ln_s='cp -p'
485   fi
486 else
487   as_ln_s='cp -p'
488 fi
489 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
490 rmdir conf$$.dir 2>/dev/null
491
492 if mkdir -p . 2>/dev/null; then
493   as_mkdir_p='mkdir -p "$as_dir"'
494 else
495   test -d ./-p && rmdir ./-p
496   as_mkdir_p=false
497 fi
498
499 if test -x / >/dev/null 2>&1; then
500   as_test_x='test -x'
501 else
502   if ls -dL / >/dev/null 2>&1; then
503     as_ls_L_option=L
504   else
505     as_ls_L_option=
506   fi
507   as_test_x='
508     eval sh -c '\''
509       if test -d "$1"; then
510         test -d "$1/.";
511       else
512         case $1 in #(
513         -*)set "./$1";;
514         esac;
515         case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
516         ???[sx]*):;;*)false;;esac;fi
517     '\'' sh
518   '
519 fi
520 as_executable_p=$as_test_x
521
522 # Sed expression to map a string onto a valid CPP name.
523 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
524
525 # Sed expression to map a string onto a valid variable name.
526 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
527
528
529
530 # Check that we are running under the correct shell.
531 SHELL=${CONFIG_SHELL-/bin/sh}
532
533 case X$lt_ECHO in
534 X*--fallback-echo)
535   # Remove one level of quotation (which was required for Make).
536   ECHO=`echo "$lt_ECHO" | sed 's,\\\\\$\\$0,'$0','`
537   ;;
538 esac
539
540 ECHO=${lt_ECHO-echo}
541 if test "X$1" = X--no-reexec; then
542   # Discard the --no-reexec flag, and continue.
543   shift
544 elif test "X$1" = X--fallback-echo; then
545   # Avoid inline document here, it may be left over
546   :
547 elif test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' ; then
548   # Yippee, $ECHO works!
549   :
550 else
551   # Restart under the correct shell.
552   exec $SHELL "$0" --no-reexec ${1+"$@"}
553 fi
554
555 if test "X$1" = X--fallback-echo; then
556   # used as fallback echo
557   shift
558   cat <<_LT_EOF
559 $*
560 _LT_EOF
561   exit 0
562 fi
563
564 # The HP-UX ksh and POSIX shell print the target directory to stdout
565 # if CDPATH is set.
566 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
567
568 if test -z "$lt_ECHO"; then
569   if test "X${echo_test_string+set}" != Xset; then
570     # find a string as large as possible, as long as the shell can cope with it
571     for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
572       # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
573       if { echo_test_string=`eval $cmd`; } 2>/dev/null &&
574          { test "X$echo_test_string" = "X$echo_test_string"; } 2>/dev/null
575       then
576         break
577       fi
578     done
579   fi
580
581   if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
582      echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
583      test "X$echo_testing_string" = "X$echo_test_string"; then
584     :
585   else
586     # The Solaris, AIX, and Digital Unix default echo programs unquote
587     # backslashes.  This makes it impossible to quote backslashes using
588     #   echo "$something" | sed 's/\\/\\\\/g'
589     #
590     # So, first we look for a working echo in the user's PATH.
591
592     lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
593     for dir in $PATH /usr/ucb; do
594       IFS="$lt_save_ifs"
595       if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
596          test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
597          echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
598          test "X$echo_testing_string" = "X$echo_test_string"; then
599         ECHO="$dir/echo"
600         break
601       fi
602     done
603     IFS="$lt_save_ifs"
604
605     if test "X$ECHO" = Xecho; then
606       # We didn't find a better echo, so look for alternatives.
607       if test "X`{ print -r '\t'; } 2>/dev/null`" = 'X\t' &&
608          echo_testing_string=`{ print -r "$echo_test_string"; } 2>/dev/null` &&
609          test "X$echo_testing_string" = "X$echo_test_string"; then
610         # This shell has a builtin print -r that does the trick.
611         ECHO='print -r'
612       elif { test -f /bin/ksh || test -f /bin/ksh$ac_exeext; } &&
613            test "X$CONFIG_SHELL" != X/bin/ksh; then
614         # If we have ksh, try running configure again with it.
615         ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
616         export ORIGINAL_CONFIG_SHELL
617         CONFIG_SHELL=/bin/ksh
618         export CONFIG_SHELL
619         exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
620       else
621         # Try using printf.
622         ECHO='printf %s\n'
623         if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
624            echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
625            test "X$echo_testing_string" = "X$echo_test_string"; then
626           # Cool, printf works
627           :
628         elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
629              test "X$echo_testing_string" = 'X\t' &&
630              echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
631              test "X$echo_testing_string" = "X$echo_test_string"; then
632           CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
633           export CONFIG_SHELL
634           SHELL="$CONFIG_SHELL"
635           export SHELL
636           ECHO="$CONFIG_SHELL $0 --fallback-echo"
637         elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
638              test "X$echo_testing_string" = 'X\t' &&
639              echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
640              test "X$echo_testing_string" = "X$echo_test_string"; then
641           ECHO="$CONFIG_SHELL $0 --fallback-echo"
642         else
643           # maybe with a smaller string...
644           prev=:
645
646           for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
647             if { test "X$echo_test_string" = "X`eval $cmd`"; } 2>/dev/null
648             then
649               break
650             fi
651             prev="$cmd"
652           done
653
654           if test "$prev" != 'sed 50q "$0"'; then
655             echo_test_string=`eval $prev`
656             export echo_test_string
657             exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
658           else
659             # Oops.  We lost completely, so just stick with echo.
660             ECHO=echo
661           fi
662         fi
663       fi
664     fi
665   fi
666 fi
667
668 # Copy echo and quote the copy suitably for passing to libtool from
669 # the Makefile, instead of quoting the original, which is used later.
670 lt_ECHO=$ECHO
671 if test "X$lt_ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
672    lt_ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
673 fi
674
675
676
677
678 test -n "$DJDIR" || exec 7<&0 </dev/null
679 exec 6>&1
680
681 # Name of the host.
682 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
683 # so uname gets run too.
684 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
685
686 #
687 # Initializations.
688 #
689 ac_default_prefix=/usr/local
690 ac_clean_files=
691 ac_config_libobj_dir=.
692 LIBOBJS=
693 cross_compiling=no
694 subdirs=
695 MFLAGS=
696 MAKEFLAGS=
697
698 # Identity of this package.
699 PACKAGE_NAME='bacula'
700 PACKAGE_TARNAME='bacula'
701 PACKAGE_VERSION='5.1.14'
702 PACKAGE_STRING='bacula 5.1.14'
703 PACKAGE_BUGREPORT=''
704 PACKAGE_URL=''
705
706 ac_unique_file="src/version.h"
707 # Factoring default headers for most tests.
708 ac_includes_default="\
709 #include <stdio.h>
710 #ifdef HAVE_SYS_TYPES_H
711 # include <sys/types.h>
712 #endif
713 #ifdef HAVE_SYS_STAT_H
714 # include <sys/stat.h>
715 #endif
716 #ifdef STDC_HEADERS
717 # include <stdlib.h>
718 # include <stddef.h>
719 #else
720 # ifdef HAVE_STDLIB_H
721 #  include <stdlib.h>
722 # endif
723 #endif
724 #ifdef HAVE_STRING_H
725 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
726 #  include <memory.h>
727 # endif
728 # include <string.h>
729 #endif
730 #ifdef HAVE_STRINGS_H
731 # include <strings.h>
732 #endif
733 #ifdef HAVE_INTTYPES_H
734 # include <inttypes.h>
735 #endif
736 #ifdef HAVE_STDINT_H
737 # include <stdint.h>
738 #endif
739 #ifdef HAVE_UNISTD_H
740 # include <unistd.h>
741 #endif"
742
743 ac_header_list=
744 ac_subst_vars='LTLIBOBJS
745 DISTVER
746 DISTNAME
747 MACOSX
748 WIN32
749 PSCMD
750 TAPEDRIVE
751 OBJLIST
752 WRAPLIBS
753 WLDFLAGS
754 WCFLAGS
755 DLIB
756 DINCLUDE
757 DEBUG
758 FDLIBS
759 CAP_LIBS
760 ZLIBS
761 LIBOBJS
762 X_EXTRA_LIBS
763 X_LIBS
764 X_PRE_LIBS
765 X_CFLAGS
766 XMKMF
767 GETCONF
768 uncomment_dbi
769 SHARED_CATALOG_TARGETS
770 DEFAULT_DB_TYPE
771 DB_LIBS
772 DB_BACKENDS
773 SQLITE_BINDIR
774 SQLITE_INCLUDE
775 SQLITE_LIBS
776 MYSQL_BINDIR
777 MYSQL_INCLUDE
778 MYSQL_LIBS
779 POSTGRESQL_BINDIR
780 POSTGRESQL_INCLUDE
781 POSTGRESQL_LIBS
782 SBINPERM
783 fd_group
784 fd_user
785 sd_group
786 sd_user
787 dir_group
788 dir_user
789 db_port
790 db_password
791 db_user
792 db_name
793 mon_sd_password
794 mon_fd_password
795 mon_dir_password
796 sd_password
797 fd_password
798 dir_password
799 sd_port
800 fd_port
801 dir_port
802 baseport
803 subsysdir
804 piddir
805 smtp_host
806 job_email
807 dump_email
808 plugindir
809 logdir
810 bsrdir
811 scriptdir
812 hostname
813 basename
814 archivedir
815 working_dir
816 OPENSSL_INC
817 OPENSSL_LIBS
818 PYTHON_INCDIR
819 PYTHON_LIBS
820 READLINE_SRC
821 CONS_LDFLAGS
822 CONS_LIBS
823 CONS_SRC
824 CONS_OBJ
825 CONS_INC
826 STORED_DIR
827 DIR_TOOLS
828 DIRD_DIR
829 ALL_DIRS
830 STATIC_WX_CONS
831 STATIC_GNOME_CONS
832 STATIC_CONS
833 STATIC_DIR
834 STATIC_SD
835 STATIC_FD
836 TTOOL_LDFLAGS
837 TRAY_MONITOR_DIR
838 TRAY_MONITOR_LDFLAGS
839 TRAY_MONITOR_CPPFLAGS
840 WX_DIR
841 WXCONS_LDFLAGS
842 WXCONS_CPPFLAGS
843 QWT
844 QWT_LIB
845 QWT_LDFLAGS
846 QWT_INC
847 BAT_DIR
848 INTL_LIBTOOL_SUFFIX_PREFIX
849 INTLOBJS
850 GENCAT
851 INSTOBJEXT
852 DATADIRNAME
853 CATOBJEXT
854 USE_INCLUDED_LIBINTL
855 BUILD_INCLUDED_LIBINTL
856 INTLBISON
857 HAVE_WPRINTF
858 HAVE_SNPRINTF
859 HAVE_ASPRINTF
860 HAVE_POSIX_PRINTF
861 GLIBC21
862 ALLOCA
863 GLIBC2
864 POSUB
865 LTLIBINTL
866 LIBINTL
867 INTLLIBS
868 LTLIBICONV
869 LIBICONV
870 INTL_MACOSX_LIBS
871 MSGMERGE
872 XGETTEXT
873 GMSGFMT
874 MSGFMT
875 USE_NLS
876 MKINSTALLDIRS
877 SET_MAKE
878 HAVE_DARWIN_OS_FALSE
879 HAVE_DARWIN_OS_TRUE
880 HAVE_IRIX_OS_FALSE
881 HAVE_IRIX_OS_TRUE
882 HAVE_SGI_OS_FALSE
883 HAVE_SGI_OS_TRUE
884 HAVE_BSDI_OS_FALSE
885 HAVE_BSDI_OS_TRUE
886 HAVE_OPENBSD_OS_FALSE
887 HAVE_OPENBSD_OS_TRUE
888 HAVE_NETBSD_OS_FALSE
889 HAVE_NETBSD_OS_TRUE
890 HAVE_FREEBSD_OS_FALSE
891 HAVE_FREEBSD_OS_TRUE
892 HAVE_LINUX_OS_FALSE
893 HAVE_LINUX_OS_TRUE
894 HAVE_HPUX_OS_FALSE
895 HAVE_HPUX_OS_TRUE
896 HAVE_AIX_OS_FALSE
897 HAVE_AIX_OS_TRUE
898 HAVE_OSF1_OS_FALSE
899 HAVE_OSF1_OS_TRUE
900 HAVE_SUN_OS_FALSE
901 HAVE_SUN_OS_TRUE
902 INCLUDE_UNINSTALL_TARGET
903 INCLUDE_INSTALL_TARGET
904 FD_PLUGIN_DIR
905 QMAKE_LIBTOOL
906 LIBTOOL_CLEAN_TARGET
907 LIBTOOL_UNINSTALL_TARGET
908 LIBTOOL_INSTALL_TARGET
909 DEFAULT_SHARED_OBJECT_TYPE
910 DEFAULT_ARCHIVE_TYPE
911 DEFAULT_OBJECT_TYPE
912 CXXCPP
913 OTOOL64
914 OTOOL
915 LIPO
916 NMEDIT
917 DSYMUTIL
918 lt_ECHO
919 RANLIB
920 STRIP
921 OBJDUMP
922 LN_S
923 NM
924 ac_ct_DUMPBIN
925 DUMPBIN
926 LD
927 FGREP
928 host_os
929 host_vendor
930 host_cpu
931 host
932 build_os
933 build_vendor
934 build_cpu
935 build
936 LIBTOOL
937 LOCAL_DEFS
938 LOCAL_LDFLAGS
939 LOCAL_CFLAGS
940 LOCAL_LIBS
941 MAKE_SHELL
942 ARFLAGS
943 AWK
944 PIDOF
945 CDRECORD
946 WXFLAGS
947 WXCONFIG
948 GMAKE
949 QMAKE
950 PKGCONFIG
951 DVDRWFORMAT
952 DVDRWMEDIAINFO
953 GROWISOFS
954 PYTHON
955 MKISOFS
956 DD
957 MTX
958 OPENSSL
959 AR
960 TBL
961 CMP
962 ECHO
963 SED
964 CP
965 REMOVE
966 MV
967 INSTALL_DATA
968 INSTALL_SCRIPT
969 INSTALL_PROGRAM
970 EGREP
971 GREP
972 CPP
973 ac_ct_CXX
974 CXXFLAGS
975 CXX
976 OBJEXT
977 EXEEXT
978 ac_ct_CC
979 CPPFLAGS
980 LDFLAGS
981 CFLAGS
982 CC
983 LIBBACFIND_LT_RELEASE
984 LIBBACCATS_LT_RELEASE
985 LIBBACSQL_LT_RELEASE
986 LIBBACPY_LT_RELEASE
987 LIBBACCFG_LT_RELEASE
988 LIBBAC_LT_RELEASE
989 BDB_VERSION
990 post_host
991 BACULA
992 LSMDATE
993 DATE
994 VERSION
995 FALSEPRG
996 TRUEPRG
997 WIN32TOPDIR
998 WIN32MAINDIR
999 WIN32BUILDDIR
1000 TOP_DIR
1001 BUILD_DIR
1002 target_alias
1003 host_alias
1004 build_alias
1005 LIBS
1006 ECHO_T
1007 ECHO_N
1008 ECHO_C
1009 DEFS
1010 mandir
1011 localedir
1012 libdir
1013 psdir
1014 pdfdir
1015 dvidir
1016 htmldir
1017 infodir
1018 docdir
1019 oldincludedir
1020 includedir
1021 localstatedir
1022 sharedstatedir
1023 sysconfdir
1024 datadir
1025 datarootdir
1026 libexecdir
1027 sbindir
1028 bindir
1029 program_transform_name
1030 prefix
1031 exec_prefix
1032 PACKAGE_URL
1033 PACKAGE_BUGREPORT
1034 PACKAGE_STRING
1035 PACKAGE_VERSION
1036 PACKAGE_TARNAME
1037 PACKAGE_NAME
1038 PATH_SEPARATOR
1039 SHELL'
1040 ac_subst_files='MCOMMON'
1041 ac_user_opts='
1042 enable_option_checking
1043 enable_libtool
1044 enable_shared
1045 enable_static
1046 with_pic
1047 enable_fast_install
1048 with_gnu_ld
1049 enable_libtool_lock
1050 enable_includes
1051 enable_nls
1052 enable_rpath
1053 with_libiconv_prefix
1054 with_libintl_prefix
1055 with_included_gettext
1056 enable_gnome
1057 enable_bat
1058 enable_bwx_console
1059 enable_tray_monitor
1060 enable_smartalloc
1061 enable_lockmgr
1062 enable_static_tools
1063 enable_static_fd
1064 enable_static_sd
1065 enable_static_dir
1066 enable_static_cons
1067 enable_client_only
1068 enable_build_dird
1069 enable_build_stored
1070 enable_conio
1071 enable_ipv6
1072 enable_readline
1073 with_readline
1074 with_python
1075 with_tcp_wrappers
1076 with_openssl
1077 with_working_dir
1078 with_archivedir
1079 with_basename
1080 with_hostname
1081 with_scriptdir
1082 with_bsrdir
1083 with_logdir
1084 with_plugindir
1085 with_dump_email
1086 with_job_email
1087 with_smtp_host
1088 with_pid_dir
1089 with_subsys_dir
1090 with_baseport
1091 with_dir_password
1092 with_fd_password
1093 with_sd_password
1094 with_mon_dir_password
1095 with_mon_fd_password
1096 with_mon_sd_password
1097 with_db_name
1098 with_db_user
1099 with_db_password
1100 with_db_port
1101 with_dir_user
1102 with_dir_group
1103 with_sd_user
1104 with_sd_group
1105 with_fd_user
1106 with_fd_group
1107 with_sbin_perm
1108 with_postgresql
1109 with_mysql
1110 with_embedded_mysql
1111 with_sqlite3
1112 enable_batch_insert
1113 enable_largefile
1114 with_x
1115 enable_acl
1116 enable_xattr
1117 '
1118       ac_precious_vars='build_alias
1119 host_alias
1120 target_alias
1121 CC
1122 CFLAGS
1123 LDFLAGS
1124 LIBS
1125 CPPFLAGS
1126 CXX
1127 CXXFLAGS
1128 CCC
1129 CPP
1130 WXCONFIG
1131 WXFLAGS
1132 CXXCPP
1133 XMKMF'
1134
1135
1136 # Initialize some variables set by options.
1137 ac_init_help=
1138 ac_init_version=false
1139 ac_unrecognized_opts=
1140 ac_unrecognized_sep=
1141 # The variables have the same names as the options, with
1142 # dashes changed to underlines.
1143 cache_file=/dev/null
1144 exec_prefix=NONE
1145 no_create=
1146 no_recursion=
1147 prefix=NONE
1148 program_prefix=NONE
1149 program_suffix=NONE
1150 program_transform_name=s,x,x,
1151 silent=
1152 site=
1153 srcdir=
1154 verbose=
1155 x_includes=NONE
1156 x_libraries=NONE
1157
1158 # Installation directory options.
1159 # These are left unexpanded so users can "make install exec_prefix=/foo"
1160 # and all the variables that are supposed to be based on exec_prefix
1161 # by default will actually change.
1162 # Use braces instead of parens because sh, perl, etc. also accept them.
1163 # (The list follows the same order as the GNU Coding Standards.)
1164 bindir='${exec_prefix}/bin'
1165 sbindir='${exec_prefix}/sbin'
1166 libexecdir='${exec_prefix}/libexec'
1167 datarootdir='${prefix}/share'
1168 datadir='${datarootdir}'
1169 sysconfdir='${prefix}/etc'
1170 sharedstatedir='${prefix}/com'
1171 localstatedir='${prefix}/var'
1172 includedir='${prefix}/include'
1173 oldincludedir='/usr/include'
1174 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
1175 infodir='${datarootdir}/info'
1176 htmldir='${docdir}'
1177 dvidir='${docdir}'
1178 pdfdir='${docdir}'
1179 psdir='${docdir}'
1180 libdir='${exec_prefix}/lib'
1181 localedir='${datarootdir}/locale'
1182 mandir='${datarootdir}/man'
1183
1184 ac_prev=
1185 ac_dashdash=
1186 for ac_option
1187 do
1188   # If the previous option needs an argument, assign it.
1189   if test -n "$ac_prev"; then
1190     eval $ac_prev=\$ac_option
1191     ac_prev=
1192     continue
1193   fi
1194
1195   case $ac_option in
1196   *=*)  ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1197   *)    ac_optarg=yes ;;
1198   esac
1199
1200   # Accept the important Cygnus configure options, so we can diagnose typos.
1201
1202   case $ac_dashdash$ac_option in
1203   --)
1204     ac_dashdash=yes ;;
1205
1206   -bindir | --bindir | --bindi | --bind | --bin | --bi)
1207     ac_prev=bindir ;;
1208   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1209     bindir=$ac_optarg ;;
1210
1211   -build | --build | --buil | --bui | --bu)
1212     ac_prev=build_alias ;;
1213   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1214     build_alias=$ac_optarg ;;
1215
1216   -cache-file | --cache-file | --cache-fil | --cache-fi \
1217   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1218     ac_prev=cache_file ;;
1219   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1220   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1221     cache_file=$ac_optarg ;;
1222
1223   --config-cache | -C)
1224     cache_file=config.cache ;;
1225
1226   -datadir | --datadir | --datadi | --datad)
1227     ac_prev=datadir ;;
1228   -datadir=* | --datadir=* | --datadi=* | --datad=*)
1229     datadir=$ac_optarg ;;
1230
1231   -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1232   | --dataroo | --dataro | --datar)
1233     ac_prev=datarootdir ;;
1234   -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1235   | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1236     datarootdir=$ac_optarg ;;
1237
1238   -disable-* | --disable-*)
1239     ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1240     # Reject names that are not valid shell variable names.
1241     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1242       as_fn_error "invalid feature name: $ac_useropt"
1243     ac_useropt_orig=$ac_useropt
1244     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1245     case $ac_user_opts in
1246       *"
1247 "enable_$ac_useropt"
1248 "*) ;;
1249       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1250          ac_unrecognized_sep=', ';;
1251     esac
1252     eval enable_$ac_useropt=no ;;
1253
1254   -docdir | --docdir | --docdi | --doc | --do)
1255     ac_prev=docdir ;;
1256   -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1257     docdir=$ac_optarg ;;
1258
1259   -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1260     ac_prev=dvidir ;;
1261   -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1262     dvidir=$ac_optarg ;;
1263
1264   -enable-* | --enable-*)
1265     ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1266     # Reject names that are not valid shell variable names.
1267     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1268       as_fn_error "invalid feature name: $ac_useropt"
1269     ac_useropt_orig=$ac_useropt
1270     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1271     case $ac_user_opts in
1272       *"
1273 "enable_$ac_useropt"
1274 "*) ;;
1275       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1276          ac_unrecognized_sep=', ';;
1277     esac
1278     eval enable_$ac_useropt=\$ac_optarg ;;
1279
1280   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1281   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1282   | --exec | --exe | --ex)
1283     ac_prev=exec_prefix ;;
1284   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1285   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1286   | --exec=* | --exe=* | --ex=*)
1287     exec_prefix=$ac_optarg ;;
1288
1289   -gas | --gas | --ga | --g)
1290     # Obsolete; use --with-gas.
1291     with_gas=yes ;;
1292
1293   -help | --help | --hel | --he | -h)
1294     ac_init_help=long ;;
1295   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1296     ac_init_help=recursive ;;
1297   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1298     ac_init_help=short ;;
1299
1300   -host | --host | --hos | --ho)
1301     ac_prev=host_alias ;;
1302   -host=* | --host=* | --hos=* | --ho=*)
1303     host_alias=$ac_optarg ;;
1304
1305   -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1306     ac_prev=htmldir ;;
1307   -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1308   | --ht=*)
1309     htmldir=$ac_optarg ;;
1310
1311   -includedir | --includedir | --includedi | --included | --include \
1312   | --includ | --inclu | --incl | --inc)
1313     ac_prev=includedir ;;
1314   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1315   | --includ=* | --inclu=* | --incl=* | --inc=*)
1316     includedir=$ac_optarg ;;
1317
1318   -infodir | --infodir | --infodi | --infod | --info | --inf)
1319     ac_prev=infodir ;;
1320   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1321     infodir=$ac_optarg ;;
1322
1323   -libdir | --libdir | --libdi | --libd)
1324     ac_prev=libdir ;;
1325   -libdir=* | --libdir=* | --libdi=* | --libd=*)
1326     libdir=$ac_optarg ;;
1327
1328   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1329   | --libexe | --libex | --libe)
1330     ac_prev=libexecdir ;;
1331   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1332   | --libexe=* | --libex=* | --libe=*)
1333     libexecdir=$ac_optarg ;;
1334
1335   -localedir | --localedir | --localedi | --localed | --locale)
1336     ac_prev=localedir ;;
1337   -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1338     localedir=$ac_optarg ;;
1339
1340   -localstatedir | --localstatedir | --localstatedi | --localstated \
1341   | --localstate | --localstat | --localsta | --localst | --locals)
1342     ac_prev=localstatedir ;;
1343   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1344   | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1345     localstatedir=$ac_optarg ;;
1346
1347   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1348     ac_prev=mandir ;;
1349   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1350     mandir=$ac_optarg ;;
1351
1352   -nfp | --nfp | --nf)
1353     # Obsolete; use --without-fp.
1354     with_fp=no ;;
1355
1356   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1357   | --no-cr | --no-c | -n)
1358     no_create=yes ;;
1359
1360   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1361   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1362     no_recursion=yes ;;
1363
1364   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1365   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1366   | --oldin | --oldi | --old | --ol | --o)
1367     ac_prev=oldincludedir ;;
1368   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1369   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1370   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1371     oldincludedir=$ac_optarg ;;
1372
1373   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1374     ac_prev=prefix ;;
1375   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1376     prefix=$ac_optarg ;;
1377
1378   -program-prefix | --program-prefix | --program-prefi | --program-pref \
1379   | --program-pre | --program-pr | --program-p)
1380     ac_prev=program_prefix ;;
1381   -program-prefix=* | --program-prefix=* | --program-prefi=* \
1382   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1383     program_prefix=$ac_optarg ;;
1384
1385   -program-suffix | --program-suffix | --program-suffi | --program-suff \
1386   | --program-suf | --program-su | --program-s)
1387     ac_prev=program_suffix ;;
1388   -program-suffix=* | --program-suffix=* | --program-suffi=* \
1389   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1390     program_suffix=$ac_optarg ;;
1391
1392   -program-transform-name | --program-transform-name \
1393   | --program-transform-nam | --program-transform-na \
1394   | --program-transform-n | --program-transform- \
1395   | --program-transform | --program-transfor \
1396   | --program-transfo | --program-transf \
1397   | --program-trans | --program-tran \
1398   | --progr-tra | --program-tr | --program-t)
1399     ac_prev=program_transform_name ;;
1400   -program-transform-name=* | --program-transform-name=* \
1401   | --program-transform-nam=* | --program-transform-na=* \
1402   | --program-transform-n=* | --program-transform-=* \
1403   | --program-transform=* | --program-transfor=* \
1404   | --program-transfo=* | --program-transf=* \
1405   | --program-trans=* | --program-tran=* \
1406   | --progr-tra=* | --program-tr=* | --program-t=*)
1407     program_transform_name=$ac_optarg ;;
1408
1409   -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1410     ac_prev=pdfdir ;;
1411   -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1412     pdfdir=$ac_optarg ;;
1413
1414   -psdir | --psdir | --psdi | --psd | --ps)
1415     ac_prev=psdir ;;
1416   -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1417     psdir=$ac_optarg ;;
1418
1419   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1420   | -silent | --silent | --silen | --sile | --sil)
1421     silent=yes ;;
1422
1423   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1424     ac_prev=sbindir ;;
1425   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1426   | --sbi=* | --sb=*)
1427     sbindir=$ac_optarg ;;
1428
1429   -sharedstatedir | --sharedstatedir | --sharedstatedi \
1430   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1431   | --sharedst | --shareds | --shared | --share | --shar \
1432   | --sha | --sh)
1433     ac_prev=sharedstatedir ;;
1434   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1435   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1436   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1437   | --sha=* | --sh=*)
1438     sharedstatedir=$ac_optarg ;;
1439
1440   -site | --site | --sit)
1441     ac_prev=site ;;
1442   -site=* | --site=* | --sit=*)
1443     site=$ac_optarg ;;
1444
1445   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1446     ac_prev=srcdir ;;
1447   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1448     srcdir=$ac_optarg ;;
1449
1450   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1451   | --syscon | --sysco | --sysc | --sys | --sy)
1452     ac_prev=sysconfdir ;;
1453   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1454   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1455     sysconfdir=$ac_optarg ;;
1456
1457   -target | --target | --targe | --targ | --tar | --ta | --t)
1458     ac_prev=target_alias ;;
1459   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1460     target_alias=$ac_optarg ;;
1461
1462   -v | -verbose | --verbose | --verbos | --verbo | --verb)
1463     verbose=yes ;;
1464
1465   -version | --version | --versio | --versi | --vers | -V)
1466     ac_init_version=: ;;
1467
1468   -with-* | --with-*)
1469     ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1470     # Reject names that are not valid shell variable names.
1471     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1472       as_fn_error "invalid package name: $ac_useropt"
1473     ac_useropt_orig=$ac_useropt
1474     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1475     case $ac_user_opts in
1476       *"
1477 "with_$ac_useropt"
1478 "*) ;;
1479       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1480          ac_unrecognized_sep=', ';;
1481     esac
1482     eval with_$ac_useropt=\$ac_optarg ;;
1483
1484   -without-* | --without-*)
1485     ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1486     # Reject names that are not valid shell variable names.
1487     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1488       as_fn_error "invalid package name: $ac_useropt"
1489     ac_useropt_orig=$ac_useropt
1490     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1491     case $ac_user_opts in
1492       *"
1493 "with_$ac_useropt"
1494 "*) ;;
1495       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1496          ac_unrecognized_sep=', ';;
1497     esac
1498     eval with_$ac_useropt=no ;;
1499
1500   --x)
1501     # Obsolete; use --with-x.
1502     with_x=yes ;;
1503
1504   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1505   | --x-incl | --x-inc | --x-in | --x-i)
1506     ac_prev=x_includes ;;
1507   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1508   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1509     x_includes=$ac_optarg ;;
1510
1511   -x-libraries | --x-libraries | --x-librarie | --x-librari \
1512   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1513     ac_prev=x_libraries ;;
1514   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1515   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1516     x_libraries=$ac_optarg ;;
1517
1518   -*) as_fn_error "unrecognized option: \`$ac_option'
1519 Try \`$0 --help' for more information."
1520     ;;
1521
1522   *=*)
1523     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1524     # Reject names that are not valid shell variable names.
1525     case $ac_envvar in #(
1526       '' | [0-9]* | *[!_$as_cr_alnum]* )
1527       as_fn_error "invalid variable name: \`$ac_envvar'" ;;
1528     esac
1529     eval $ac_envvar=\$ac_optarg
1530     export $ac_envvar ;;
1531
1532   *)
1533     # FIXME: should be removed in autoconf 3.0.
1534     $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1535     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1536       $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1537     : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1538     ;;
1539
1540   esac
1541 done
1542
1543 if test -n "$ac_prev"; then
1544   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1545   as_fn_error "missing argument to $ac_option"
1546 fi
1547
1548 if test -n "$ac_unrecognized_opts"; then
1549   case $enable_option_checking in
1550     no) ;;
1551     fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;;
1552     *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1553   esac
1554 fi
1555
1556 # Check all directory arguments for consistency.
1557 for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
1558                 datadir sysconfdir sharedstatedir localstatedir includedir \
1559                 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1560                 libdir localedir mandir
1561 do
1562   eval ac_val=\$$ac_var
1563   # Remove trailing slashes.
1564   case $ac_val in
1565     */ )
1566       ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1567       eval $ac_var=\$ac_val;;
1568   esac
1569   # Be sure to have absolute directory names.
1570   case $ac_val in
1571     [\\/$]* | ?:[\\/]* )  continue;;
1572     NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1573   esac
1574   as_fn_error "expected an absolute directory name for --$ac_var: $ac_val"
1575 done
1576
1577 # There might be people who depend on the old broken behavior: `$host'
1578 # used to hold the argument of --host etc.
1579 # FIXME: To remove some day.
1580 build=$build_alias
1581 host=$host_alias
1582 target=$target_alias
1583
1584 # FIXME: To remove some day.
1585 if test "x$host_alias" != x; then
1586   if test "x$build_alias" = x; then
1587     cross_compiling=maybe
1588     $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1589     If a cross compiler is detected then cross compile mode will be used." >&2
1590   elif test "x$build_alias" != "x$host_alias"; then
1591     cross_compiling=yes
1592   fi
1593 fi
1594
1595 ac_tool_prefix=
1596 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1597
1598 test "$silent" = yes && exec 6>/dev/null
1599
1600
1601 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1602 ac_ls_di=`ls -di .` &&
1603 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1604   as_fn_error "working directory cannot be determined"
1605 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1606   as_fn_error "pwd does not report name of working directory"
1607
1608
1609 # Find the source files, if location was not specified.
1610 if test -z "$srcdir"; then
1611   ac_srcdir_defaulted=yes
1612   # Try the directory containing this script, then the parent directory.
1613   ac_confdir=`$as_dirname -- "$as_myself" ||
1614 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1615          X"$as_myself" : 'X\(//\)[^/]' \| \
1616          X"$as_myself" : 'X\(//\)$' \| \
1617          X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1618 $as_echo X"$as_myself" |
1619     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1620             s//\1/
1621             q
1622           }
1623           /^X\(\/\/\)[^/].*/{
1624             s//\1/
1625             q
1626           }
1627           /^X\(\/\/\)$/{
1628             s//\1/
1629             q
1630           }
1631           /^X\(\/\).*/{
1632             s//\1/
1633             q
1634           }
1635           s/.*/./; q'`
1636   srcdir=$ac_confdir
1637   if test ! -r "$srcdir/$ac_unique_file"; then
1638     srcdir=..
1639   fi
1640 else
1641   ac_srcdir_defaulted=no
1642 fi
1643 if test ! -r "$srcdir/$ac_unique_file"; then
1644   test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1645   as_fn_error "cannot find sources ($ac_unique_file) in $srcdir"
1646 fi
1647 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1648 ac_abs_confdir=`(
1649         cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
1650         pwd)`
1651 # When building in place, set srcdir=.
1652 if test "$ac_abs_confdir" = "$ac_pwd"; then
1653   srcdir=.
1654 fi
1655 # Remove unnecessary trailing slashes from srcdir.
1656 # Double slashes in file names in object file debugging info
1657 # mess up M-x gdb in Emacs.
1658 case $srcdir in
1659 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1660 esac
1661 for ac_var in $ac_precious_vars; do
1662   eval ac_env_${ac_var}_set=\${${ac_var}+set}
1663   eval ac_env_${ac_var}_value=\$${ac_var}
1664   eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1665   eval ac_cv_env_${ac_var}_value=\$${ac_var}
1666 done
1667
1668 #
1669 # Report the --help message.
1670 #
1671 if test "$ac_init_help" = "long"; then
1672   # Omit some internal or obsolete options to make the list less imposing.
1673   # This message is too long to be a string in the A/UX 3.1 sh.
1674   cat <<_ACEOF
1675 \`configure' configures bacula 5.1.14 to adapt to many kinds of systems.
1676
1677 Usage: $0 [OPTION]... [VAR=VALUE]...
1678
1679 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1680 VAR=VALUE.  See below for descriptions of some of the useful variables.
1681
1682 Defaults for the options are specified in brackets.
1683
1684 Configuration:
1685   -h, --help              display this help and exit
1686       --help=short        display options specific to this package
1687       --help=recursive    display the short help of all the included packages
1688   -V, --version           display version information and exit
1689   -q, --quiet, --silent   do not print \`checking...' messages
1690       --cache-file=FILE   cache test results in FILE [disabled]
1691   -C, --config-cache      alias for \`--cache-file=config.cache'
1692   -n, --no-create         do not create output files
1693       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1694
1695 Installation directories:
1696   --prefix=PREFIX         install architecture-independent files in PREFIX
1697                           [$ac_default_prefix]
1698   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1699                           [PREFIX]
1700
1701 By default, \`make install' will install all the files in
1702 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1703 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1704 for instance \`--prefix=\$HOME'.
1705
1706 For better control, use the options below.
1707
1708 Fine tuning of the installation directories:
1709   --bindir=DIR            user executables [EPREFIX/bin]
1710   --sbindir=DIR           system admin executables [EPREFIX/sbin]
1711   --libexecdir=DIR        program executables [EPREFIX/libexec]
1712   --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1713   --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1714   --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1715   --libdir=DIR            object code libraries [EPREFIX/lib]
1716   --includedir=DIR        C header files [PREFIX/include]
1717   --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1718   --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1719   --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1720   --infodir=DIR           info documentation [DATAROOTDIR/info]
1721   --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1722   --mandir=DIR            man documentation [DATAROOTDIR/man]
1723   --docdir=DIR            documentation root [DATAROOTDIR/doc/bacula]
1724   --htmldir=DIR           html documentation [DOCDIR]
1725   --dvidir=DIR            dvi documentation [DOCDIR]
1726   --pdfdir=DIR            pdf documentation [DOCDIR]
1727   --psdir=DIR             ps documentation [DOCDIR]
1728 _ACEOF
1729
1730   cat <<\_ACEOF
1731
1732 X features:
1733   --x-includes=DIR    X include files are in DIR
1734   --x-libraries=DIR   X library files are in DIR
1735
1736 System types:
1737   --build=BUILD     configure for building on BUILD [guessed]
1738   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1739 _ACEOF
1740 fi
1741
1742 if test -n "$ac_init_help"; then
1743   case $ac_init_help in
1744      short | recursive ) echo "Configuration of bacula 5.1.14:";;
1745    esac
1746   cat <<\_ACEOF
1747
1748 Optional Features:
1749   --disable-option-checking  ignore unrecognized --enable/--with options
1750   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1751   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1752   --enable-libtool        enable building using GNU libtool [default=yes]
1753   --enable-shared[=PKGS]  build shared libraries [default=yes]
1754   --enable-static[=PKGS]  build static libraries [default=no]
1755   --enable-fast-install[=PKGS]
1756                           optimize for fast installation [default=yes]
1757   --disable-libtool-lock  avoid locking (might break parallel builds)
1758   --enable-includes       enable installing of include files [default=no]
1759   --disable-nls           do not use Native Language Support
1760   --disable-rpath         do not hardcode runtime library paths
1761   --enable-gnome          enable build of bgnome-console GUI [default=no]
1762   --enable-bat            enable build of bat Qt4 GUI [default=no]
1763   --enable-bwx-console    enable build of wxWidgets console [default=no]
1764   --enable-tray-monitor   enable build of Gnome tray monitor (compatible with
1765                           KDE [default=no]
1766   --enable-smartalloc     enable smartalloc debugging support [default=no]
1767   --enable-lockmgr        enable lock manager support [default=no]
1768   --enable-static-tools   enable static tape tools [default=no]
1769   --enable-static-fd      enable static File daemon [default=no]
1770   --enable-static-sd      enable static Storage daemon [default=no]
1771   --enable-static-dir     enable static Director [default=no]
1772   --enable-static-cons    enable static Console [default=no]
1773   --enable-client-only    build client (File daemon) only [default=no]
1774   --enable-build-dird     enable building of dird (Director) [default=yes]
1775   --enable-build-stored   enable building of stored (Storage daemon)
1776                           [default=yes]
1777   --disable-conio         disable conio support [default=no]
1778   --enable-ipv6           enable ipv6 support [default=yes]
1779   --disable-readline      disable readline support [default=yes]
1780   --enable-batch-insert   enable the DB batch insert code [default=yes]
1781   --disable-largefile     omit support for large files
1782   --disable-acl           disable acl support [default=auto]
1783   --disable-xattr         disable xattr support [default=auto]
1784
1785 Optional Packages:
1786   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1787   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1788   --with-pic              try to use only PIC/non-PIC objects [default=use
1789                           both]
1790   --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1791   --with-gnu-ld           assume the C compiler uses GNU ld default=no
1792   --with-libiconv-prefix[=DIR]  search for libiconv in DIR/include and DIR/lib
1793   --without-libiconv-prefix     don't search for libiconv in includedir and libdir
1794   --with-libintl-prefix[=DIR]  search for libintl in DIR/include and DIR/lib
1795   --without-libintl-prefix     don't search for libintl in includedir and libdir
1796   --with-included-gettext use the GNU gettext library included here
1797   --with-readline[=DIR]   specify readline library directory
1798   --with-python[=DIR]     Include Python support. DIR is the Python base
1799                           install directory, default is to search through a
1800                           number of common places for the Python files.
1801   --with-tcp-wrappers[=DIR]
1802                           enable tcpwrappers support
1803   --with-openssl[=DIR]    Include OpenSSL support. DIR is the OpenSSL base
1804   --with-working-dir=PATH specify path of Bacula working directory
1805   --with-archivedir=PATH  specify path of SD archive directory
1806   --with-basename=RESNAME specify base resource name for daemons
1807   --with-hostname=RESNAME specify host name for daemons
1808   --with-scriptdir=PATH   specify path of Bacula scripts directory
1809   --with-bsrdir=PATH      specify path of Bacula bsrs directory
1810   --with-logdir=PATH      specify path of Bacula logs directory
1811   --with-plugindir=PATH   specify path of Bacula plugins directory
1812   --with-dump-email=EMAIL dump email address
1813   --with-job-email=EMAIL  job output email address
1814   --with-smtp-host=HOST   SMTP mail host address
1815   --with-pid-dir=PATH     specify location of Bacula pid files
1816   --with-subsys-dir=PATH  specify location of Bacula subsys file
1817   --with-baseport=PORT    specify base port address for daemons
1818   --with-dir-password=PASSWORD
1819                           specify Director's password
1820   --with-fd-password=PASSWORD
1821                           specify Client's password
1822   --with-sd-password=PASSWORD
1823                           specify Storage daemon's password
1824   --with-mon-dir-password=PASSWORD
1825                           specify Director's password used by the monitor
1826   --with-mon-fd-password=PASSWORD
1827                           specify Client's password used by the monitor
1828   --with-mon-sd-password=PASSWORD
1829                           specify Storage daemon's password used by the
1830                           monitor
1831   --with-db-name=DBNAME   specify database name [default=bacula]
1832   --with-db-user=UNAME    specify database user [default=bacula]
1833   --with-db-password=PWD  specify database password [default=*none*]
1834   --with-db-port=DBPORT   specify a database port [default=null]
1835   --with-dir-user=USER    specify user for Director daemon
1836   --with-dir-group=GROUP  specify group for Director daemon
1837   --with-sd-user=USER     specify user for Storage daemon
1838   --with-sd-group=GROUP   specify group for Storage daemon
1839   --with-fd-user=USER     specify user for File daemon
1840   --with-fd-group=GROUP   specify group for File daemon
1841   --with-sbin-perm=MODE   specify permissions for sbin binaries [default=0750]
1842   --with-postgresql[=DIR] Include PostgreSQL support. DIR is the PostgreSQL
1843                           base install directory, [default=/usr/local/pgsql]
1844   --with-mysql[=DIR]      Include MySQL support. DIR is the MySQL base install
1845                           directory, default is to search through a number of
1846                           common places for the MySQL files.
1847   --with-embedded-mysql[=DIR]
1848                           Include MySQL support. DIR is the MySQL base install
1849                           directory, default is to search through a number of
1850                           common places for the MySQL files.
1851   --with-sqlite3[=DIR]    Include SQLite3 support. DIR is the SQLite3 base
1852                           install directory, default is to search through a
1853                           number of common places for the SQLite3 files.
1854   --with-x                use the X Window System
1855
1856 Some influential environment variables:
1857   CC          C compiler command
1858   CFLAGS      C compiler flags
1859   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1860               nonstandard directory <lib dir>
1861   LIBS        libraries to pass to the linker, e.g. -l<library>
1862   CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1863               you have headers in a nonstandard directory <include dir>
1864   CXX         C++ compiler command
1865   CXXFLAGS    C++ compiler flags
1866   CPP         C preprocessor
1867   WXCONFIG    wx-config command. On some systems, you must set it to
1868               wx-config-2.6 to use wxWidgets 2.6.
1869   WXFLAGS     Parameters to pass to wx-config (e.g. --unicode=no).
1870   CXXCPP      C++ preprocessor
1871   XMKMF       Path to xmkmf, Makefile generator for X Window System
1872
1873 Use these variables to override the choices made by `configure' or to help
1874 it to find libraries and programs with nonstandard names/locations.
1875
1876 Report bugs to the package provider.
1877 _ACEOF
1878 ac_status=$?
1879 fi
1880
1881 if test "$ac_init_help" = "recursive"; then
1882   # If there are subdirs, report their specific --help.
1883   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1884     test -d "$ac_dir" ||
1885       { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1886       continue
1887     ac_builddir=.
1888
1889 case "$ac_dir" in
1890 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1891 *)
1892   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1893   # A ".." for each directory in $ac_dir_suffix.
1894   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1895   case $ac_top_builddir_sub in
1896   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1897   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1898   esac ;;
1899 esac
1900 ac_abs_top_builddir=$ac_pwd
1901 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1902 # for backward compatibility:
1903 ac_top_builddir=$ac_top_build_prefix
1904
1905 case $srcdir in
1906   .)  # We are building in place.
1907     ac_srcdir=.
1908     ac_top_srcdir=$ac_top_builddir_sub
1909     ac_abs_top_srcdir=$ac_pwd ;;
1910   [\\/]* | ?:[\\/]* )  # Absolute name.
1911     ac_srcdir=$srcdir$ac_dir_suffix;
1912     ac_top_srcdir=$srcdir
1913     ac_abs_top_srcdir=$srcdir ;;
1914   *) # Relative name.
1915     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1916     ac_top_srcdir=$ac_top_build_prefix$srcdir
1917     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1918 esac
1919 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1920
1921     cd "$ac_dir" || { ac_status=$?; continue; }
1922     # Check for guested configure.
1923     if test -f "$ac_srcdir/configure.gnu"; then
1924       echo &&
1925       $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1926     elif test -f "$ac_srcdir/configure"; then
1927       echo &&
1928       $SHELL "$ac_srcdir/configure" --help=recursive
1929     else
1930       $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1931     fi || ac_status=$?
1932     cd "$ac_pwd" || { ac_status=$?; break; }
1933   done
1934 fi
1935
1936 test -n "$ac_init_help" && exit $ac_status
1937 if $ac_init_version; then
1938   cat <<\_ACEOF
1939 bacula configure 5.1.14
1940 generated by GNU Autoconf 2.65
1941
1942 Copyright (C) 2009 Free Software Foundation, Inc.
1943 This configure script is free software; the Free Software Foundation
1944 gives unlimited permission to copy, distribute and modify it.
1945 _ACEOF
1946   exit
1947 fi
1948
1949 ## ------------------------ ##
1950 ## Autoconf initialization. ##
1951 ## ------------------------ ##
1952
1953 # ac_fn_c_try_compile LINENO
1954 # --------------------------
1955 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1956 ac_fn_c_try_compile ()
1957 {
1958   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1959   rm -f conftest.$ac_objext
1960   if { { ac_try="$ac_compile"
1961 case "(($ac_try" in
1962   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1963   *) ac_try_echo=$ac_try;;
1964 esac
1965 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1966 $as_echo "$ac_try_echo"; } >&5
1967   (eval "$ac_compile") 2>conftest.err
1968   ac_status=$?
1969   if test -s conftest.err; then
1970     grep -v '^ *+' conftest.err >conftest.er1
1971     cat conftest.er1 >&5
1972     mv -f conftest.er1 conftest.err
1973   fi
1974   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1975   test $ac_status = 0; } && {
1976          test -z "$ac_c_werror_flag" ||
1977          test ! -s conftest.err
1978        } && test -s conftest.$ac_objext; then :
1979   ac_retval=0
1980 else
1981   $as_echo "$as_me: failed program was:" >&5
1982 sed 's/^/| /' conftest.$ac_ext >&5
1983
1984         ac_retval=1
1985 fi
1986   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1987   as_fn_set_status $ac_retval
1988
1989 } # ac_fn_c_try_compile
1990
1991 # ac_fn_cxx_try_compile LINENO
1992 # ----------------------------
1993 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1994 ac_fn_cxx_try_compile ()
1995 {
1996   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1997   rm -f conftest.$ac_objext
1998   if { { ac_try="$ac_compile"
1999 case "(($ac_try" in
2000   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2001   *) ac_try_echo=$ac_try;;
2002 esac
2003 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2004 $as_echo "$ac_try_echo"; } >&5
2005   (eval "$ac_compile") 2>conftest.err
2006   ac_status=$?
2007   if test -s conftest.err; then
2008     grep -v '^ *+' conftest.err >conftest.er1
2009     cat conftest.er1 >&5
2010     mv -f conftest.er1 conftest.err
2011   fi
2012   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2013   test $ac_status = 0; } && {
2014          test -z "$ac_cxx_werror_flag" ||
2015          test ! -s conftest.err
2016        } && test -s conftest.$ac_objext; then :
2017   ac_retval=0
2018 else
2019   $as_echo "$as_me: failed program was:" >&5
2020 sed 's/^/| /' conftest.$ac_ext >&5
2021
2022         ac_retval=1
2023 fi
2024   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2025   as_fn_set_status $ac_retval
2026
2027 } # ac_fn_cxx_try_compile
2028
2029 # ac_fn_c_try_cpp LINENO
2030 # ----------------------
2031 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2032 ac_fn_c_try_cpp ()
2033 {
2034   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2035   if { { ac_try="$ac_cpp conftest.$ac_ext"
2036 case "(($ac_try" in
2037   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2038   *) ac_try_echo=$ac_try;;
2039 esac
2040 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2041 $as_echo "$ac_try_echo"; } >&5
2042   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2043   ac_status=$?
2044   if test -s conftest.err; then
2045     grep -v '^ *+' conftest.err >conftest.er1
2046     cat conftest.er1 >&5
2047     mv -f conftest.er1 conftest.err
2048   fi
2049   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2050   test $ac_status = 0; } >/dev/null && {
2051          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
2052          test ! -s conftest.err
2053        }; then :
2054   ac_retval=0
2055 else
2056   $as_echo "$as_me: failed program was:" >&5
2057 sed 's/^/| /' conftest.$ac_ext >&5
2058
2059     ac_retval=1
2060 fi
2061   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2062   as_fn_set_status $ac_retval
2063
2064 } # ac_fn_c_try_cpp
2065
2066 # ac_fn_c_try_link LINENO
2067 # -----------------------
2068 # Try to link conftest.$ac_ext, and return whether this succeeded.
2069 ac_fn_c_try_link ()
2070 {
2071   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2072   rm -f conftest.$ac_objext conftest$ac_exeext
2073   if { { ac_try="$ac_link"
2074 case "(($ac_try" in
2075   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2076   *) ac_try_echo=$ac_try;;
2077 esac
2078 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2079 $as_echo "$ac_try_echo"; } >&5
2080   (eval "$ac_link") 2>conftest.err
2081   ac_status=$?
2082   if test -s conftest.err; then
2083     grep -v '^ *+' conftest.err >conftest.er1
2084     cat conftest.er1 >&5
2085     mv -f conftest.er1 conftest.err
2086   fi
2087   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2088   test $ac_status = 0; } && {
2089          test -z "$ac_c_werror_flag" ||
2090          test ! -s conftest.err
2091        } && test -s conftest$ac_exeext && {
2092          test "$cross_compiling" = yes ||
2093          $as_test_x conftest$ac_exeext
2094        }; then :
2095   ac_retval=0
2096 else
2097   $as_echo "$as_me: failed program was:" >&5
2098 sed 's/^/| /' conftest.$ac_ext >&5
2099
2100         ac_retval=1
2101 fi
2102   # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2103   # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2104   # interfere with the next link command; also delete a directory that is
2105   # left behind by Apple's compiler.  We do this before executing the actions.
2106   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2107   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2108   as_fn_set_status $ac_retval
2109
2110 } # ac_fn_c_try_link
2111
2112 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
2113 # -------------------------------------------------------
2114 # Tests whether HEADER exists and can be compiled using the include files in
2115 # INCLUDES, setting the cache variable VAR accordingly.
2116 ac_fn_c_check_header_compile ()
2117 {
2118   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2119   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2120 $as_echo_n "checking for $2... " >&6; }
2121 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2122   $as_echo_n "(cached) " >&6
2123 else
2124   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2125 /* end confdefs.h.  */
2126 $4
2127 #include <$2>
2128 _ACEOF
2129 if ac_fn_c_try_compile "$LINENO"; then :
2130   eval "$3=yes"
2131 else
2132   eval "$3=no"
2133 fi
2134 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2135 fi
2136 eval ac_res=\$$3
2137                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2138 $as_echo "$ac_res" >&6; }
2139   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2140
2141 } # ac_fn_c_check_header_compile
2142
2143 # ac_fn_c_try_run LINENO
2144 # ----------------------
2145 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
2146 # that executables *can* be run.
2147 ac_fn_c_try_run ()
2148 {
2149   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2150   if { { ac_try="$ac_link"
2151 case "(($ac_try" in
2152   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2153   *) ac_try_echo=$ac_try;;
2154 esac
2155 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2156 $as_echo "$ac_try_echo"; } >&5
2157   (eval "$ac_link") 2>&5
2158   ac_status=$?
2159   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2160   test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
2161   { { case "(($ac_try" in
2162   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2163   *) ac_try_echo=$ac_try;;
2164 esac
2165 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2166 $as_echo "$ac_try_echo"; } >&5
2167   (eval "$ac_try") 2>&5
2168   ac_status=$?
2169   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2170   test $ac_status = 0; }; }; then :
2171   ac_retval=0
2172 else
2173   $as_echo "$as_me: program exited with status $ac_status" >&5
2174        $as_echo "$as_me: failed program was:" >&5
2175 sed 's/^/| /' conftest.$ac_ext >&5
2176
2177        ac_retval=$ac_status
2178 fi
2179   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2180   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2181   as_fn_set_status $ac_retval
2182
2183 } # ac_fn_c_try_run
2184
2185 # ac_fn_c_check_func LINENO FUNC VAR
2186 # ----------------------------------
2187 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2188 ac_fn_c_check_func ()
2189 {
2190   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2191   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2192 $as_echo_n "checking for $2... " >&6; }
2193 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2194   $as_echo_n "(cached) " >&6
2195 else
2196   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2197 /* end confdefs.h.  */
2198 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2199    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
2200 #define $2 innocuous_$2
2201
2202 /* System header to define __stub macros and hopefully few prototypes,
2203     which can conflict with char $2 (); below.
2204     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2205     <limits.h> exists even on freestanding compilers.  */
2206
2207 #ifdef __STDC__
2208 # include <limits.h>
2209 #else
2210 # include <assert.h>
2211 #endif
2212
2213 #undef $2
2214
2215 /* Override any GCC internal prototype to avoid an error.
2216    Use char because int might match the return type of a GCC
2217    builtin and then its argument prototype would still apply.  */
2218 #ifdef __cplusplus
2219 extern "C"
2220 #endif
2221 char $2 ();
2222 /* The GNU C library defines this for functions which it implements
2223     to always fail with ENOSYS.  Some functions are actually named
2224     something starting with __ and the normal name is an alias.  */
2225 #if defined __stub_$2 || defined __stub___$2
2226 choke me
2227 #endif
2228
2229 int
2230 main ()
2231 {
2232 return $2 ();
2233   ;
2234   return 0;
2235 }
2236 _ACEOF
2237 if ac_fn_c_try_link "$LINENO"; then :
2238   eval "$3=yes"
2239 else
2240   eval "$3=no"
2241 fi
2242 rm -f core conftest.err conftest.$ac_objext \
2243     conftest$ac_exeext conftest.$ac_ext
2244 fi
2245 eval ac_res=\$$3
2246                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2247 $as_echo "$ac_res" >&6; }
2248   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2249
2250 } # ac_fn_c_check_func
2251
2252 # ac_fn_cxx_try_cpp LINENO
2253 # ------------------------
2254 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2255 ac_fn_cxx_try_cpp ()
2256 {
2257   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2258   if { { ac_try="$ac_cpp conftest.$ac_ext"
2259 case "(($ac_try" in
2260   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2261   *) ac_try_echo=$ac_try;;
2262 esac
2263 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2264 $as_echo "$ac_try_echo"; } >&5
2265   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2266   ac_status=$?
2267   if test -s conftest.err; then
2268     grep -v '^ *+' conftest.err >conftest.er1
2269     cat conftest.er1 >&5
2270     mv -f conftest.er1 conftest.err
2271   fi
2272   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2273   test $ac_status = 0; } >/dev/null && {
2274          test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
2275          test ! -s conftest.err
2276        }; then :
2277   ac_retval=0
2278 else
2279   $as_echo "$as_me: failed program was:" >&5
2280 sed 's/^/| /' conftest.$ac_ext >&5
2281
2282     ac_retval=1
2283 fi
2284   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2285   as_fn_set_status $ac_retval
2286
2287 } # ac_fn_cxx_try_cpp
2288
2289 # ac_fn_cxx_try_link LINENO
2290 # -------------------------
2291 # Try to link conftest.$ac_ext, and return whether this succeeded.
2292 ac_fn_cxx_try_link ()
2293 {
2294   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2295   rm -f conftest.$ac_objext conftest$ac_exeext
2296   if { { ac_try="$ac_link"
2297 case "(($ac_try" in
2298   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2299   *) ac_try_echo=$ac_try;;
2300 esac
2301 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2302 $as_echo "$ac_try_echo"; } >&5
2303   (eval "$ac_link") 2>conftest.err
2304   ac_status=$?
2305   if test -s conftest.err; then
2306     grep -v '^ *+' conftest.err >conftest.er1
2307     cat conftest.er1 >&5
2308     mv -f conftest.er1 conftest.err
2309   fi
2310   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2311   test $ac_status = 0; } && {
2312          test -z "$ac_cxx_werror_flag" ||
2313          test ! -s conftest.err
2314        } && test -s conftest$ac_exeext && {
2315          test "$cross_compiling" = yes ||
2316          $as_test_x conftest$ac_exeext
2317        }; then :
2318   ac_retval=0
2319 else
2320   $as_echo "$as_me: failed program was:" >&5
2321 sed 's/^/| /' conftest.$ac_ext >&5
2322
2323         ac_retval=1
2324 fi
2325   # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2326   # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2327   # interfere with the next link command; also delete a directory that is
2328   # left behind by Apple's compiler.  We do this before executing the actions.
2329   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2330   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2331   as_fn_set_status $ac_retval
2332
2333 } # ac_fn_cxx_try_link
2334
2335 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2336 # -------------------------------------------
2337 # Tests whether TYPE exists after having included INCLUDES, setting cache
2338 # variable VAR accordingly.
2339 ac_fn_c_check_type ()
2340 {
2341   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2342   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2343 $as_echo_n "checking for $2... " >&6; }
2344 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2345   $as_echo_n "(cached) " >&6
2346 else
2347   eval "$3=no"
2348   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2349 /* end confdefs.h.  */
2350 $4
2351 int
2352 main ()
2353 {
2354 if (sizeof ($2))
2355          return 0;
2356   ;
2357   return 0;
2358 }
2359 _ACEOF
2360 if ac_fn_c_try_compile "$LINENO"; then :
2361   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2362 /* end confdefs.h.  */
2363 $4
2364 int
2365 main ()
2366 {
2367 if (sizeof (($2)))
2368             return 0;
2369   ;
2370   return 0;
2371 }
2372 _ACEOF
2373 if ac_fn_c_try_compile "$LINENO"; then :
2374
2375 else
2376   eval "$3=yes"
2377 fi
2378 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2379 fi
2380 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2381 fi
2382 eval ac_res=\$$3
2383                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2384 $as_echo "$ac_res" >&6; }
2385   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2386
2387 } # ac_fn_c_check_type
2388
2389 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
2390 # -------------------------------------------------------
2391 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
2392 # the include files in INCLUDES and setting the cache variable VAR
2393 # accordingly.
2394 ac_fn_c_check_header_mongrel ()
2395 {
2396   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2397   if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2398   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2399 $as_echo_n "checking for $2... " >&6; }
2400 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2401   $as_echo_n "(cached) " >&6
2402 fi
2403 eval ac_res=\$$3
2404                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2405 $as_echo "$ac_res" >&6; }
2406 else
2407   # Is the header compilable?
2408 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
2409 $as_echo_n "checking $2 usability... " >&6; }
2410 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2411 /* end confdefs.h.  */
2412 $4
2413 #include <$2>
2414 _ACEOF
2415 if ac_fn_c_try_compile "$LINENO"; then :
2416   ac_header_compiler=yes
2417 else
2418   ac_header_compiler=no
2419 fi
2420 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2421 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2422 $as_echo "$ac_header_compiler" >&6; }
2423
2424 # Is the header present?
2425 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2426 $as_echo_n "checking $2 presence... " >&6; }
2427 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2428 /* end confdefs.h.  */
2429 #include <$2>
2430 _ACEOF
2431 if ac_fn_c_try_cpp "$LINENO"; then :
2432   ac_header_preproc=yes
2433 else
2434   ac_header_preproc=no
2435 fi
2436 rm -f conftest.err conftest.$ac_ext
2437 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2438 $as_echo "$ac_header_preproc" >&6; }
2439
2440 # So?  What about this header?
2441 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
2442   yes:no: )
2443     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2444 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2445     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2446 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2447     ;;
2448   no:yes:* )
2449     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2450 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2451     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     check for missing prerequisite headers?" >&5
2452 $as_echo "$as_me: WARNING: $2:     check for missing prerequisite headers?" >&2;}
2453     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2454 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2455     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&5
2456 $as_echo "$as_me: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&2;}
2457     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2458 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2459     ;;
2460 esac
2461   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2462 $as_echo_n "checking for $2... " >&6; }
2463 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2464   $as_echo_n "(cached) " >&6
2465 else
2466   eval "$3=\$ac_header_compiler"
2467 fi
2468 eval ac_res=\$$3
2469                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2470 $as_echo "$ac_res" >&6; }
2471 fi
2472   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2473
2474 } # ac_fn_c_check_header_mongrel
2475
2476 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2477 # --------------------------------------------
2478 # Tries to find the compile-time value of EXPR in a program that includes
2479 # INCLUDES, setting VAR accordingly. Returns whether the value could be
2480 # computed
2481 ac_fn_c_compute_int ()
2482 {
2483   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2484   if test "$cross_compiling" = yes; then
2485     # Depending upon the size, compute the lo and hi bounds.
2486 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2487 /* end confdefs.h.  */
2488 $4
2489 int
2490 main ()
2491 {
2492 static int test_array [1 - 2 * !(($2) >= 0)];
2493 test_array [0] = 0
2494
2495   ;
2496   return 0;
2497 }
2498 _ACEOF
2499 if ac_fn_c_try_compile "$LINENO"; then :
2500   ac_lo=0 ac_mid=0
2501   while :; do
2502     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2503 /* end confdefs.h.  */
2504 $4
2505 int
2506 main ()
2507 {
2508 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2509 test_array [0] = 0
2510
2511   ;
2512   return 0;
2513 }
2514 _ACEOF
2515 if ac_fn_c_try_compile "$LINENO"; then :
2516   ac_hi=$ac_mid; break
2517 else
2518   as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2519                         if test $ac_lo -le $ac_mid; then
2520                           ac_lo= ac_hi=
2521                           break
2522                         fi
2523                         as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2524 fi
2525 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2526   done
2527 else
2528   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2529 /* end confdefs.h.  */
2530 $4
2531 int
2532 main ()
2533 {
2534 static int test_array [1 - 2 * !(($2) < 0)];
2535 test_array [0] = 0
2536
2537   ;
2538   return 0;
2539 }
2540 _ACEOF
2541 if ac_fn_c_try_compile "$LINENO"; then :
2542   ac_hi=-1 ac_mid=-1
2543   while :; do
2544     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2545 /* end confdefs.h.  */
2546 $4
2547 int
2548 main ()
2549 {
2550 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2551 test_array [0] = 0
2552
2553   ;
2554   return 0;
2555 }
2556 _ACEOF
2557 if ac_fn_c_try_compile "$LINENO"; then :
2558   ac_lo=$ac_mid; break
2559 else
2560   as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2561                         if test $ac_mid -le $ac_hi; then
2562                           ac_lo= ac_hi=
2563                           break
2564                         fi
2565                         as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2566 fi
2567 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2568   done
2569 else
2570   ac_lo= ac_hi=
2571 fi
2572 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2573 fi
2574 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2575 # Binary search between lo and hi bounds.
2576 while test "x$ac_lo" != "x$ac_hi"; do
2577   as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2578   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2579 /* end confdefs.h.  */
2580 $4
2581 int
2582 main ()
2583 {
2584 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2585 test_array [0] = 0
2586
2587   ;
2588   return 0;
2589 }
2590 _ACEOF
2591 if ac_fn_c_try_compile "$LINENO"; then :
2592   ac_hi=$ac_mid
2593 else
2594   as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2595 fi
2596 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2597 done
2598 case $ac_lo in #((
2599 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2600 '') ac_retval=1 ;;
2601 esac
2602   else
2603     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2604 /* end confdefs.h.  */
2605 $4
2606 static long int longval () { return $2; }
2607 static unsigned long int ulongval () { return $2; }
2608 #include <stdio.h>
2609 #include <stdlib.h>
2610 int
2611 main ()
2612 {
2613
2614   FILE *f = fopen ("conftest.val", "w");
2615   if (! f)
2616     return 1;
2617   if (($2) < 0)
2618     {
2619       long int i = longval ();
2620       if (i != ($2))
2621         return 1;
2622       fprintf (f, "%ld", i);
2623     }
2624   else
2625     {
2626       unsigned long int i = ulongval ();
2627       if (i != ($2))
2628         return 1;
2629       fprintf (f, "%lu", i);
2630     }
2631   /* Do not output a trailing newline, as this causes \r\n confusion
2632      on some platforms.  */
2633   return ferror (f) || fclose (f) != 0;
2634
2635   ;
2636   return 0;
2637 }
2638 _ACEOF
2639 if ac_fn_c_try_run "$LINENO"; then :
2640   echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2641 else
2642   ac_retval=1
2643 fi
2644 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2645   conftest.$ac_objext conftest.beam conftest.$ac_ext
2646 rm -f conftest.val
2647
2648   fi
2649   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2650   as_fn_set_status $ac_retval
2651
2652 } # ac_fn_c_compute_int
2653
2654 # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
2655 # ----------------------------------------------------
2656 # Tries to find if the field MEMBER exists in type AGGR, after including
2657 # INCLUDES, setting cache variable VAR accordingly.
2658 ac_fn_c_check_member ()
2659 {
2660   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2661   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2662 $as_echo_n "checking for $2.$3... " >&6; }
2663 if { as_var=$4; eval "test \"\${$as_var+set}\" = set"; }; then :
2664   $as_echo_n "(cached) " >&6
2665 else
2666   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2667 /* end confdefs.h.  */
2668 $5
2669 int
2670 main ()
2671 {
2672 static $2 ac_aggr;
2673 if (ac_aggr.$3)
2674 return 0;
2675   ;
2676   return 0;
2677 }
2678 _ACEOF
2679 if ac_fn_c_try_compile "$LINENO"; then :
2680   eval "$4=yes"
2681 else
2682   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2683 /* end confdefs.h.  */
2684 $5
2685 int
2686 main ()
2687 {
2688 static $2 ac_aggr;
2689 if (sizeof ac_aggr.$3)
2690 return 0;
2691   ;
2692   return 0;
2693 }
2694 _ACEOF
2695 if ac_fn_c_try_compile "$LINENO"; then :
2696   eval "$4=yes"
2697 else
2698   eval "$4=no"
2699 fi
2700 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2701 fi
2702 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2703 fi
2704 eval ac_res=\$$4
2705                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2706 $as_echo "$ac_res" >&6; }
2707   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2708
2709 } # ac_fn_c_check_member
2710
2711 # ac_fn_c_check_decl LINENO SYMBOL VAR
2712 # ------------------------------------
2713 # Tests whether SYMBOL is declared, setting cache variable VAR accordingly.
2714 ac_fn_c_check_decl ()
2715 {
2716   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2717   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $2 is declared" >&5
2718 $as_echo_n "checking whether $2 is declared... " >&6; }
2719 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2720   $as_echo_n "(cached) " >&6
2721 else
2722   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2723 /* end confdefs.h.  */
2724 $4
2725 int
2726 main ()
2727 {
2728 #ifndef $2
2729   (void) $2;
2730 #endif
2731
2732   ;
2733   return 0;
2734 }
2735 _ACEOF
2736 if ac_fn_c_try_compile "$LINENO"; then :
2737   eval "$3=yes"
2738 else
2739   eval "$3=no"
2740 fi
2741 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2742 fi
2743 eval ac_res=\$$3
2744                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2745 $as_echo "$ac_res" >&6; }
2746   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2747
2748 } # ac_fn_c_check_decl
2749
2750 # ac_fn_cxx_try_run LINENO
2751 # ------------------------
2752 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
2753 # that executables *can* be run.
2754 ac_fn_cxx_try_run ()
2755 {
2756   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2757   if { { ac_try="$ac_link"
2758 case "(($ac_try" in
2759   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2760   *) ac_try_echo=$ac_try;;
2761 esac
2762 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2763 $as_echo "$ac_try_echo"; } >&5
2764   (eval "$ac_link") 2>&5
2765   ac_status=$?
2766   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2767   test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
2768   { { case "(($ac_try" in
2769   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2770   *) ac_try_echo=$ac_try;;
2771 esac
2772 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2773 $as_echo "$ac_try_echo"; } >&5
2774   (eval "$ac_try") 2>&5
2775   ac_status=$?
2776   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2777   test $ac_status = 0; }; }; then :
2778   ac_retval=0
2779 else
2780   $as_echo "$as_me: program exited with status $ac_status" >&5
2781        $as_echo "$as_me: failed program was:" >&5
2782 sed 's/^/| /' conftest.$ac_ext >&5
2783
2784        ac_retval=$ac_status
2785 fi
2786   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2787   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2788   as_fn_set_status $ac_retval
2789
2790 } # ac_fn_cxx_try_run
2791
2792 # ac_fn_cxx_check_header_mongrel LINENO HEADER VAR INCLUDES
2793 # ---------------------------------------------------------
2794 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
2795 # the include files in INCLUDES and setting the cache variable VAR
2796 # accordingly.
2797 ac_fn_cxx_check_header_mongrel ()
2798 {
2799   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2800   if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2801   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2802 $as_echo_n "checking for $2... " >&6; }
2803 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2804   $as_echo_n "(cached) " >&6
2805 fi
2806 eval ac_res=\$$3
2807                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2808 $as_echo "$ac_res" >&6; }
2809 else
2810   # Is the header compilable?
2811 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
2812 $as_echo_n "checking $2 usability... " >&6; }
2813 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2814 /* end confdefs.h.  */
2815 $4
2816 #include <$2>
2817 _ACEOF
2818 if ac_fn_cxx_try_compile "$LINENO"; then :
2819   ac_header_compiler=yes
2820 else
2821   ac_header_compiler=no
2822 fi
2823 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2824 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2825 $as_echo "$ac_header_compiler" >&6; }
2826
2827 # Is the header present?
2828 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2829 $as_echo_n "checking $2 presence... " >&6; }
2830 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2831 /* end confdefs.h.  */
2832 #include <$2>
2833 _ACEOF
2834 if ac_fn_cxx_try_cpp "$LINENO"; then :
2835   ac_header_preproc=yes
2836 else
2837   ac_header_preproc=no
2838 fi
2839 rm -f conftest.err conftest.$ac_ext
2840 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2841 $as_echo "$ac_header_preproc" >&6; }
2842
2843 # So?  What about this header?
2844 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in #((
2845   yes:no: )
2846     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2847 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2848     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2849 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2850     ;;
2851   no:yes:* )
2852     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2853 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2854     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     check for missing prerequisite headers?" >&5
2855 $as_echo "$as_me: WARNING: $2:     check for missing prerequisite headers?" >&2;}
2856     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2857 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2858     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&5
2859 $as_echo "$as_me: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&2;}
2860     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2861 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2862     ;;
2863 esac
2864   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2865 $as_echo_n "checking for $2... " >&6; }
2866 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2867   $as_echo_n "(cached) " >&6
2868 else
2869   eval "$3=\$ac_header_compiler"
2870 fi
2871 eval ac_res=\$$3
2872                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2873 $as_echo "$ac_res" >&6; }
2874 fi
2875   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2876
2877 } # ac_fn_cxx_check_header_mongrel
2878 cat >config.log <<_ACEOF
2879 This file contains any messages produced by compilers while
2880 running configure, to aid debugging if configure makes a mistake.
2881
2882 It was created by bacula $as_me 5.1.14, which was
2883 generated by GNU Autoconf 2.65.  Invocation command line was
2884
2885   $ $0 $@
2886
2887 _ACEOF
2888 exec 5>>config.log
2889 {
2890 cat <<_ASUNAME
2891 ## --------- ##
2892 ## Platform. ##
2893 ## --------- ##
2894
2895 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2896 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2897 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2898 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2899 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2900
2901 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2902 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
2903
2904 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
2905 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
2906 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2907 /usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
2908 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
2909 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
2910 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
2911
2912 _ASUNAME
2913
2914 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2915 for as_dir in $PATH
2916 do
2917   IFS=$as_save_IFS
2918   test -z "$as_dir" && as_dir=.
2919     $as_echo "PATH: $as_dir"
2920   done
2921 IFS=$as_save_IFS
2922
2923 } >&5
2924
2925 cat >&5 <<_ACEOF
2926
2927
2928 ## ----------- ##
2929 ## Core tests. ##
2930 ## ----------- ##
2931
2932 _ACEOF
2933
2934
2935 # Keep a trace of the command line.
2936 # Strip out --no-create and --no-recursion so they do not pile up.
2937 # Strip out --silent because we don't want to record it for future runs.
2938 # Also quote any args containing shell meta-characters.
2939 # Make two passes to allow for proper duplicate-argument suppression.
2940 ac_configure_args=
2941 ac_configure_args0=
2942 ac_configure_args1=
2943 ac_must_keep_next=false
2944 for ac_pass in 1 2
2945 do
2946   for ac_arg
2947   do
2948     case $ac_arg in
2949     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2950     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2951     | -silent | --silent | --silen | --sile | --sil)
2952       continue ;;
2953     *\'*)
2954       ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2955     esac
2956     case $ac_pass in
2957     1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2958     2)
2959       as_fn_append ac_configure_args1 " '$ac_arg'"
2960       if test $ac_must_keep_next = true; then
2961         ac_must_keep_next=false # Got value, back to normal.
2962       else
2963         case $ac_arg in
2964           *=* | --config-cache | -C | -disable-* | --disable-* \
2965           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2966           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2967           | -with-* | --with-* | -without-* | --without-* | --x)
2968             case "$ac_configure_args0 " in
2969               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2970             esac
2971             ;;
2972           -* ) ac_must_keep_next=true ;;
2973         esac
2974       fi
2975       as_fn_append ac_configure_args " '$ac_arg'"
2976       ;;
2977     esac
2978   done
2979 done
2980 { ac_configure_args0=; unset ac_configure_args0;}
2981 { ac_configure_args1=; unset ac_configure_args1;}
2982
2983 # When interrupted or exit'd, cleanup temporary files, and complete
2984 # config.log.  We remove comments because anyway the quotes in there
2985 # would cause problems or look ugly.
2986 # WARNING: Use '\'' to represent an apostrophe within the trap.
2987 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2988 trap 'exit_status=$?
2989   # Save into config.log some information that might help in debugging.
2990   {
2991     echo
2992
2993     cat <<\_ASBOX
2994 ## ---------------- ##
2995 ## Cache variables. ##
2996 ## ---------------- ##
2997 _ASBOX
2998     echo
2999     # The following way of writing the cache mishandles newlines in values,
3000 (
3001   for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
3002     eval ac_val=\$$ac_var
3003     case $ac_val in #(
3004     *${as_nl}*)
3005       case $ac_var in #(
3006       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
3007 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
3008       esac
3009       case $ac_var in #(
3010       _ | IFS | as_nl) ;; #(
3011       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
3012       *) { eval $ac_var=; unset $ac_var;} ;;
3013       esac ;;
3014     esac
3015   done
3016   (set) 2>&1 |
3017     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
3018     *${as_nl}ac_space=\ *)
3019       sed -n \
3020         "s/'\''/'\''\\\\'\'''\''/g;
3021           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
3022       ;; #(
3023     *)
3024       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
3025       ;;
3026     esac |
3027     sort
3028 )
3029     echo
3030
3031     cat <<\_ASBOX
3032 ## ----------------- ##
3033 ## Output variables. ##
3034 ## ----------------- ##
3035 _ASBOX
3036     echo
3037     for ac_var in $ac_subst_vars
3038     do
3039       eval ac_val=\$$ac_var
3040       case $ac_val in
3041       *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
3042       esac
3043       $as_echo "$ac_var='\''$ac_val'\''"
3044     done | sort
3045     echo
3046
3047     if test -n "$ac_subst_files"; then
3048       cat <<\_ASBOX
3049 ## ------------------- ##
3050 ## File substitutions. ##
3051 ## ------------------- ##
3052 _ASBOX
3053       echo
3054       for ac_var in $ac_subst_files
3055       do
3056         eval ac_val=\$$ac_var
3057         case $ac_val in
3058         *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
3059         esac
3060         $as_echo "$ac_var='\''$ac_val'\''"
3061       done | sort
3062       echo
3063     fi
3064
3065     if test -s confdefs.h; then
3066       cat <<\_ASBOX
3067 ## ----------- ##
3068 ## confdefs.h. ##
3069 ## ----------- ##
3070 _ASBOX
3071       echo
3072       cat confdefs.h
3073       echo
3074     fi
3075     test "$ac_signal" != 0 &&
3076       $as_echo "$as_me: caught signal $ac_signal"
3077     $as_echo "$as_me: exit $exit_status"
3078   } >&5
3079   rm -f core *.core core.conftest.* &&
3080     rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
3081     exit $exit_status
3082 ' 0
3083 for ac_signal in 1 2 13 15; do
3084   trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
3085 done
3086 ac_signal=0
3087
3088 # confdefs.h avoids OS command line length limits that DEFS can exceed.
3089 rm -f -r conftest* confdefs.h
3090
3091 $as_echo "/* confdefs.h */" > confdefs.h
3092
3093 # Predefined preprocessor variables.
3094
3095 cat >>confdefs.h <<_ACEOF
3096 #define PACKAGE_NAME "$PACKAGE_NAME"
3097 _ACEOF
3098
3099 cat >>confdefs.h <<_ACEOF
3100 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
3101 _ACEOF
3102
3103 cat >>confdefs.h <<_ACEOF
3104 #define PACKAGE_VERSION "$PACKAGE_VERSION"
3105 _ACEOF
3106
3107 cat >>confdefs.h <<_ACEOF
3108 #define PACKAGE_STRING "$PACKAGE_STRING"
3109 _ACEOF
3110
3111 cat >>confdefs.h <<_ACEOF
3112 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
3113 _ACEOF
3114
3115 cat >>confdefs.h <<_ACEOF
3116 #define PACKAGE_URL "$PACKAGE_URL"
3117 _ACEOF
3118
3119
3120 # Let the site file select an alternate cache file if it wants to.
3121 # Prefer an explicitly selected file to automatically selected ones.
3122 ac_site_file1=NONE
3123 ac_site_file2=NONE
3124 if test -n "$CONFIG_SITE"; then
3125   ac_site_file1=$CONFIG_SITE
3126 elif test "x$prefix" != xNONE; then
3127   ac_site_file1=$prefix/share/config.site
3128   ac_site_file2=$prefix/etc/config.site
3129 else
3130   ac_site_file1=$ac_default_prefix/share/config.site
3131   ac_site_file2=$ac_default_prefix/etc/config.site
3132 fi
3133 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
3134 do
3135   test "x$ac_site_file" = xNONE && continue
3136   if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
3137     { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
3138 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
3139     sed 's/^/| /' "$ac_site_file" >&5
3140     . "$ac_site_file"
3141   fi
3142 done
3143
3144 if test -r "$cache_file"; then
3145   # Some versions of bash will fail to source /dev/null (special files
3146   # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
3147   if test /dev/null != "$cache_file" && test -f "$cache_file"; then
3148     { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
3149 $as_echo "$as_me: loading cache $cache_file" >&6;}
3150     case $cache_file in
3151       [\\/]* | ?:[\\/]* ) . "$cache_file";;
3152       *)                      . "./$cache_file";;
3153     esac
3154   fi
3155 else
3156   { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
3157 $as_echo "$as_me: creating cache $cache_file" >&6;}
3158   >$cache_file
3159 fi
3160
3161 as_fn_append ac_header_list " stdlib.h"
3162 as_fn_append ac_header_list " unistd.h"
3163 as_fn_append ac_header_list " sys/param.h"
3164 # Check that the precious variables saved in the cache have kept the same
3165 # value.
3166 ac_cache_corrupted=false
3167 for ac_var in $ac_precious_vars; do
3168   eval ac_old_set=\$ac_cv_env_${ac_var}_set
3169   eval ac_new_set=\$ac_env_${ac_var}_set
3170   eval ac_old_val=\$ac_cv_env_${ac_var}_value
3171   eval ac_new_val=\$ac_env_${ac_var}_value
3172   case $ac_old_set,$ac_new_set in
3173     set,)
3174       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
3175 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
3176       ac_cache_corrupted=: ;;
3177     ,set)
3178       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
3179 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
3180       ac_cache_corrupted=: ;;
3181     ,);;
3182     *)
3183       if test "x$ac_old_val" != "x$ac_new_val"; then
3184         # differences in whitespace do not lead to failure.
3185         ac_old_val_w=`echo x $ac_old_val`
3186         ac_new_val_w=`echo x $ac_new_val`
3187         if test "$ac_old_val_w" != "$ac_new_val_w"; then
3188           { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
3189 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
3190           ac_cache_corrupted=:
3191         else
3192           { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
3193 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
3194           eval $ac_var=\$ac_old_val
3195         fi
3196         { $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
3197 $as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
3198         { $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
3199 $as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
3200       fi;;
3201   esac
3202   # Pass precious variables to config.status.
3203   if test "$ac_new_set" = set; then
3204     case $ac_new_val in
3205     *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
3206     *) ac_arg=$ac_var=$ac_new_val ;;
3207     esac
3208     case " $ac_configure_args " in
3209       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
3210       *) as_fn_append ac_configure_args " '$ac_arg'" ;;
3211     esac
3212   fi
3213 done
3214 if $ac_cache_corrupted; then
3215   { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3216 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3217   { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
3218 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
3219   as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
3220 fi
3221 ## -------------------- ##
3222 ## Main body of script. ##
3223 ## -------------------- ##
3224
3225 ac_ext=c
3226 ac_cpp='$CPP $CPPFLAGS'
3227 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3228 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3229 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3230
3231
3232
3233
3234 BUILD_DIR=`pwd`
3235 cd ..
3236 TOP_DIR=`pwd`
3237 cd ${BUILD_DIR}
3238
3239
3240 ac_aux_dir=
3241 for ac_dir in ${BUILD_DIR}/autoconf "$srcdir"/${BUILD_DIR}/autoconf; do
3242   for ac_t in install-sh install.sh shtool; do
3243     if test -f "$ac_dir/$ac_t"; then
3244       ac_aux_dir=$ac_dir
3245       ac_install_sh="$ac_aux_dir/$ac_t -c"
3246       break 2
3247     fi
3248   done
3249 done
3250 if test -z "$ac_aux_dir"; then
3251   as_fn_error "cannot find install-sh, install.sh, or shtool in ${BUILD_DIR}/autoconf \"$srcdir\"/${BUILD_DIR}/autoconf" "$LINENO" 5
3252 fi
3253
3254 # These three variables are undocumented and unsupported,
3255 # and are intended to be withdrawn in a future Autoconf release.
3256 # They can cause serious problems if a builder's source tree is in a directory
3257 # whose full name contains unusual characters.
3258 ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
3259 ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
3260 ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
3261
3262
3263 ac_config_headers="$ac_config_headers src/config.h:autoconf/config.h.in"
3264
3265
3266 WIN32BUILDDIR=${BUILD_DIR}/src/win32
3267 WIN32MAINDIR=${BUILD_DIR}
3268 WIN32TOPDIR=${TOP_DIR}
3269
3270
3271
3272
3273 for ac_prog in true
3274 do
3275   # Extract the first word of "$ac_prog", so it can be a program name with args.
3276 set dummy $ac_prog; ac_word=$2
3277 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3278 $as_echo_n "checking for $ac_word... " >&6; }
3279 if test "${ac_cv_path_TRUEPRG+set}" = set; then :
3280   $as_echo_n "(cached) " >&6
3281 else
3282   case $TRUEPRG in
3283   [\\/]* | ?:[\\/]*)
3284   ac_cv_path_TRUEPRG="$TRUEPRG" # Let the user override the test with a path.
3285   ;;
3286   *)
3287   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3288 for as_dir in $PATH
3289 do
3290   IFS=$as_save_IFS
3291   test -z "$as_dir" && as_dir=.
3292     for ac_exec_ext in '' $ac_executable_extensions; do
3293   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3294     ac_cv_path_TRUEPRG="$as_dir/$ac_word$ac_exec_ext"
3295     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3296     break 2
3297   fi
3298 done
3299   done
3300 IFS=$as_save_IFS
3301
3302   ;;
3303 esac
3304 fi
3305 TRUEPRG=$ac_cv_path_TRUEPRG
3306 if test -n "$TRUEPRG"; then
3307   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TRUEPRG" >&5
3308 $as_echo "$TRUEPRG" >&6; }
3309 else
3310   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3311 $as_echo "no" >&6; }
3312 fi
3313
3314
3315   test -n "$TRUEPRG" && break
3316 done
3317 test -n "$TRUEPRG" || TRUEPRG=":"
3318
3319 for ac_prog in false
3320 do
3321   # Extract the first word of "$ac_prog", so it can be a program name with args.
3322 set dummy $ac_prog; ac_word=$2
3323 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3324 $as_echo_n "checking for $ac_word... " >&6; }
3325 if test "${ac_cv_path_FALSEPRG+set}" = set; then :
3326   $as_echo_n "(cached) " >&6
3327 else
3328   case $FALSEPRG in
3329   [\\/]* | ?:[\\/]*)
3330   ac_cv_path_FALSEPRG="$FALSEPRG" # Let the user override the test with a path.
3331   ;;
3332   *)
3333   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3334 for as_dir in $PATH
3335 do
3336   IFS=$as_save_IFS
3337   test -z "$as_dir" && as_dir=.
3338     for ac_exec_ext in '' $ac_executable_extensions; do
3339   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3340     ac_cv_path_FALSEPRG="$as_dir/$ac_word$ac_exec_ext"
3341     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3342     break 2
3343   fi
3344 done
3345   done
3346 IFS=$as_save_IFS
3347
3348   ;;
3349 esac
3350 fi
3351 FALSEPRG=$ac_cv_path_FALSEPRG
3352 if test -n "$FALSEPRG"; then
3353   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FALSEPRG" >&5
3354 $as_echo "$FALSEPRG" >&6; }
3355 else
3356   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3357 $as_echo "no" >&6; }
3358 fi
3359
3360
3361   test -n "$FALSEPRG" && break
3362 done
3363 test -n "$FALSEPRG" || FALSEPRG=":"
3364
3365
3366
3367 post_host=
3368 if test "x$BACULA" != x; then
3369    post_host=`echo -${BACULA} | tr 'A-Z ' 'a-z-'`
3370 fi
3371 BACULA=${BACULA:-Bacula}
3372 VERSION=`sed -n -e 's/^.*VERSION.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
3373 DATE=`sed -n -e 's/^.* \t*BDATE.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
3374 LSMDATE=`sed -n -e 's/^.*LSMDATE.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
3375 BDB_VERSION=`sed -n -e 's/^.*BDB_VERSION \(.*\)$/\1/p' ${srcdir}/src/cats/cats.h`
3376
3377 LIBBAC_LT_RELEASE=`sed -n -e 's/^#.*LIBBAC_LT_RELEASE.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
3378 LIBBACCFG_LT_RELEASE=`sed -n -e 's/^#.*LIBBACCFG_LT_RELEASE.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
3379 LIBBACPY_LT_RELEASE=`sed -n -e 's/^#.*LIBBACPY_LT_RELEASE.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
3380
3381 LIBBAC_LT_RELEASE=${LIBBAC_LT_RELEASE:-$VERSION}
3382 LIBBACCFG_LT_RELEASE=${LIBBACCFG_LT_RELEASE:-$VERSION}
3383 LIBBACPY_LT_RELEASE=${LIBBACPY_LT_RELEASE:-$VERSION}
3384
3385
3386 LIBBACSQL_LT_RELEASE=`sed -n -e 's/^#.*LIBBACSQL_LT_RELEASE.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
3387 LIBBACCATS_LT_RELEASE=`sed -n -e 's/^#.*LIBBACCATS_LT_RELEASE.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
3388
3389 LIBBACSQL_LT_RELEASE=${LIBBACSQL_LT_RELEASE:-$VERSION}
3390 LIBBACCATS_LT_RELEASE=${LIBBACCATS_LT_RELEASE:-$VERSION}
3391
3392
3393 LIBBACFIND_LT_RELEASE=`sed -n -e 's/^#.*LIBBACFIND_LT_RELEASE.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
3394
3395 LIBBACFIND_LT_RELEASE=${LIBBACFIND_LT_RELEASE:-$VERSION}
3396
3397
3398 echo "configuring for ${BACULA} $VERSION ($DATE)"
3399
3400
3401
3402 ac_ext=c
3403 ac_cpp='$CPP $CPPFLAGS'
3404 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3405 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3406 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3407 if test -n "$ac_tool_prefix"; then
3408   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3409 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3410 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3411 $as_echo_n "checking for $ac_word... " >&6; }
3412 if test "${ac_cv_prog_CC+set}" = set; then :
3413   $as_echo_n "(cached) " >&6
3414 else
3415   if test -n "$CC"; then
3416   ac_cv_prog_CC="$CC" # Let the user override the test.
3417 else
3418 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3419 for as_dir in $PATH
3420 do
3421   IFS=$as_save_IFS
3422   test -z "$as_dir" && as_dir=.
3423     for ac_exec_ext in '' $ac_executable_extensions; do
3424   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3425     ac_cv_prog_CC="${ac_tool_prefix}gcc"
3426     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3427     break 2
3428   fi
3429 done
3430   done
3431 IFS=$as_save_IFS
3432
3433 fi
3434 fi
3435 CC=$ac_cv_prog_CC
3436 if test -n "$CC"; then
3437   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3438 $as_echo "$CC" >&6; }
3439 else
3440   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3441 $as_echo "no" >&6; }
3442 fi
3443
3444
3445 fi
3446 if test -z "$ac_cv_prog_CC"; then
3447   ac_ct_CC=$CC
3448   # Extract the first word of "gcc", so it can be a program name with args.
3449 set dummy gcc; ac_word=$2
3450 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3451 $as_echo_n "checking for $ac_word... " >&6; }
3452 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3453   $as_echo_n "(cached) " >&6
3454 else
3455   if test -n "$ac_ct_CC"; then
3456   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3457 else
3458 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3459 for as_dir in $PATH
3460 do
3461   IFS=$as_save_IFS
3462   test -z "$as_dir" && as_dir=.
3463     for ac_exec_ext in '' $ac_executable_extensions; do
3464   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3465     ac_cv_prog_ac_ct_CC="gcc"
3466     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3467     break 2
3468   fi
3469 done
3470   done
3471 IFS=$as_save_IFS
3472
3473 fi
3474 fi
3475 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3476 if test -n "$ac_ct_CC"; then
3477   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3478 $as_echo "$ac_ct_CC" >&6; }
3479 else
3480   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3481 $as_echo "no" >&6; }
3482 fi
3483
3484   if test "x$ac_ct_CC" = x; then
3485     CC=""
3486   else
3487     case $cross_compiling:$ac_tool_warned in
3488 yes:)
3489 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3490 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3491 ac_tool_warned=yes ;;
3492 esac
3493     CC=$ac_ct_CC
3494   fi
3495 else
3496   CC="$ac_cv_prog_CC"
3497 fi
3498
3499 if test -z "$CC"; then
3500           if test -n "$ac_tool_prefix"; then
3501     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3502 set dummy ${ac_tool_prefix}cc; ac_word=$2
3503 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3504 $as_echo_n "checking for $ac_word... " >&6; }
3505 if test "${ac_cv_prog_CC+set}" = set; then :
3506   $as_echo_n "(cached) " >&6
3507 else
3508   if test -n "$CC"; then
3509   ac_cv_prog_CC="$CC" # Let the user override the test.
3510 else
3511 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3512 for as_dir in $PATH
3513 do
3514   IFS=$as_save_IFS
3515   test -z "$as_dir" && as_dir=.
3516     for ac_exec_ext in '' $ac_executable_extensions; do
3517   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3518     ac_cv_prog_CC="${ac_tool_prefix}cc"
3519     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3520     break 2
3521   fi
3522 done
3523   done
3524 IFS=$as_save_IFS
3525
3526 fi
3527 fi
3528 CC=$ac_cv_prog_CC
3529 if test -n "$CC"; then
3530   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3531 $as_echo "$CC" >&6; }
3532 else
3533   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3534 $as_echo "no" >&6; }
3535 fi
3536
3537
3538   fi
3539 fi
3540 if test -z "$CC"; then
3541   # Extract the first word of "cc", so it can be a program name with args.
3542 set dummy cc; ac_word=$2
3543 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3544 $as_echo_n "checking for $ac_word... " >&6; }
3545 if test "${ac_cv_prog_CC+set}" = set; then :
3546   $as_echo_n "(cached) " >&6
3547 else
3548   if test -n "$CC"; then
3549   ac_cv_prog_CC="$CC" # Let the user override the test.
3550 else
3551   ac_prog_rejected=no
3552 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3553 for as_dir in $PATH
3554 do
3555   IFS=$as_save_IFS
3556   test -z "$as_dir" && as_dir=.
3557     for ac_exec_ext in '' $ac_executable_extensions; do
3558   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3559     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3560        ac_prog_rejected=yes
3561        continue
3562      fi
3563     ac_cv_prog_CC="cc"
3564     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3565     break 2
3566   fi
3567 done
3568   done
3569 IFS=$as_save_IFS
3570
3571 if test $ac_prog_rejected = yes; then
3572   # We found a bogon in the path, so make sure we never use it.
3573   set dummy $ac_cv_prog_CC
3574   shift
3575   if test $# != 0; then
3576     # We chose a different compiler from the bogus one.
3577     # However, it has the same basename, so the bogon will be chosen
3578     # first if we set CC to just the basename; use the full file name.
3579     shift
3580     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3581   fi
3582 fi
3583 fi
3584 fi
3585 CC=$ac_cv_prog_CC
3586 if test -n "$CC"; then
3587   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3588 $as_echo "$CC" >&6; }
3589 else
3590   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3591 $as_echo "no" >&6; }
3592 fi
3593
3594
3595 fi
3596 if test -z "$CC"; then
3597   if test -n "$ac_tool_prefix"; then
3598   for ac_prog in cl.exe
3599   do
3600     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3601 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3602 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3603 $as_echo_n "checking for $ac_word... " >&6; }
3604 if test "${ac_cv_prog_CC+set}" = set; then :
3605   $as_echo_n "(cached) " >&6
3606 else
3607   if test -n "$CC"; then
3608   ac_cv_prog_CC="$CC" # Let the user override the test.
3609 else
3610 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3611 for as_dir in $PATH
3612 do
3613   IFS=$as_save_IFS
3614   test -z "$as_dir" && as_dir=.
3615     for ac_exec_ext in '' $ac_executable_extensions; do
3616   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3617     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3618     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3619     break 2
3620   fi
3621 done
3622   done
3623 IFS=$as_save_IFS
3624
3625 fi
3626 fi
3627 CC=$ac_cv_prog_CC
3628 if test -n "$CC"; then
3629   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3630 $as_echo "$CC" >&6; }
3631 else
3632   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3633 $as_echo "no" >&6; }
3634 fi
3635
3636
3637     test -n "$CC" && break
3638   done
3639 fi
3640 if test -z "$CC"; then
3641   ac_ct_CC=$CC
3642   for ac_prog in cl.exe
3643 do
3644   # Extract the first word of "$ac_prog", so it can be a program name with args.
3645 set dummy $ac_prog; ac_word=$2
3646 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3647 $as_echo_n "checking for $ac_word... " >&6; }
3648 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3649   $as_echo_n "(cached) " >&6
3650 else
3651   if test -n "$ac_ct_CC"; then
3652   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3653 else
3654 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3655 for as_dir in $PATH
3656 do
3657   IFS=$as_save_IFS
3658   test -z "$as_dir" && as_dir=.
3659     for ac_exec_ext in '' $ac_executable_extensions; do
3660   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3661     ac_cv_prog_ac_ct_CC="$ac_prog"
3662     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3663     break 2
3664   fi
3665 done
3666   done
3667 IFS=$as_save_IFS
3668
3669 fi
3670 fi
3671 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3672 if test -n "$ac_ct_CC"; then
3673   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3674 $as_echo "$ac_ct_CC" >&6; }
3675 else
3676   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3677 $as_echo "no" >&6; }
3678 fi
3679
3680
3681   test -n "$ac_ct_CC" && break
3682 done
3683
3684   if test "x$ac_ct_CC" = x; then
3685     CC=""
3686   else
3687     case $cross_compiling:$ac_tool_warned in
3688 yes:)
3689 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3690 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3691 ac_tool_warned=yes ;;
3692 esac
3693     CC=$ac_ct_CC
3694   fi
3695 fi
3696
3697 fi
3698
3699
3700 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3701 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3702 as_fn_error "no acceptable C compiler found in \$PATH
3703 See \`config.log' for more details." "$LINENO" 5; }
3704
3705 # Provide some information about the compiler.
3706 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3707 set X $ac_compile
3708 ac_compiler=$2
3709 for ac_option in --version -v -V -qversion; do
3710   { { ac_try="$ac_compiler $ac_option >&5"
3711 case "(($ac_try" in
3712   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3713   *) ac_try_echo=$ac_try;;
3714 esac
3715 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3716 $as_echo "$ac_try_echo"; } >&5
3717   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3718   ac_status=$?
3719   if test -s conftest.err; then
3720     sed '10a\
3721 ... rest of stderr output deleted ...
3722          10q' conftest.err >conftest.er1
3723     cat conftest.er1 >&5
3724   fi
3725   rm -f conftest.er1 conftest.err
3726   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3727   test $ac_status = 0; }
3728 done
3729
3730 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3731 /* end confdefs.h.  */
3732
3733 int
3734 main ()
3735 {
3736
3737   ;
3738   return 0;
3739 }
3740 _ACEOF
3741 ac_clean_files_save=$ac_clean_files
3742 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3743 # Try to create an executable without -o first, disregard a.out.
3744 # It will help us diagnose broken compilers, and finding out an intuition
3745 # of exeext.
3746 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3747 $as_echo_n "checking whether the C compiler works... " >&6; }
3748 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3749
3750 # The possible output files:
3751 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3752
3753 ac_rmfiles=
3754 for ac_file in $ac_files
3755 do
3756   case $ac_file in
3757     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3758     * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3759   esac
3760 done
3761 rm -f $ac_rmfiles
3762
3763 if { { ac_try="$ac_link_default"
3764 case "(($ac_try" in
3765   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3766   *) ac_try_echo=$ac_try;;
3767 esac
3768 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3769 $as_echo "$ac_try_echo"; } >&5
3770   (eval "$ac_link_default") 2>&5
3771   ac_status=$?
3772   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3773   test $ac_status = 0; }; then :
3774   # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3775 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3776 # in a Makefile.  We should not override ac_cv_exeext if it was cached,
3777 # so that the user can short-circuit this test for compilers unknown to
3778 # Autoconf.
3779 for ac_file in $ac_files ''
3780 do
3781   test -f "$ac_file" || continue
3782   case $ac_file in
3783     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3784         ;;
3785     [ab].out )
3786         # We found the default executable, but exeext='' is most
3787         # certainly right.
3788         break;;
3789     *.* )
3790         if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3791         then :; else
3792            ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3793         fi
3794         # We set ac_cv_exeext here because the later test for it is not
3795         # safe: cross compilers may not add the suffix if given an `-o'
3796         # argument, so we may need to know it at that point already.
3797         # Even if this section looks crufty: it has the advantage of
3798         # actually working.
3799         break;;
3800     * )
3801         break;;
3802   esac
3803 done
3804 test "$ac_cv_exeext" = no && ac_cv_exeext=
3805
3806 else
3807   ac_file=''
3808 fi
3809 if test -z "$ac_file"; then :
3810   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3811 $as_echo "no" >&6; }
3812 $as_echo "$as_me: failed program was:" >&5
3813 sed 's/^/| /' conftest.$ac_ext >&5
3814
3815 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3816 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3817 { as_fn_set_status 77
3818 as_fn_error "C compiler cannot create executables
3819 See \`config.log' for more details." "$LINENO" 5; }; }
3820 else
3821   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3822 $as_echo "yes" >&6; }
3823 fi
3824 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3825 $as_echo_n "checking for C compiler default output file name... " >&6; }
3826 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3827 $as_echo "$ac_file" >&6; }
3828 ac_exeext=$ac_cv_exeext
3829
3830 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3831 ac_clean_files=$ac_clean_files_save
3832 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3833 $as_echo_n "checking for suffix of executables... " >&6; }
3834 if { { ac_try="$ac_link"
3835 case "(($ac_try" in
3836   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3837   *) ac_try_echo=$ac_try;;
3838 esac
3839 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3840 $as_echo "$ac_try_echo"; } >&5
3841   (eval "$ac_link") 2>&5
3842   ac_status=$?
3843   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3844   test $ac_status = 0; }; then :
3845   # If both `conftest.exe' and `conftest' are `present' (well, observable)
3846 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
3847 # work properly (i.e., refer to `conftest.exe'), while it won't with
3848 # `rm'.
3849 for ac_file in conftest.exe conftest conftest.*; do
3850   test -f "$ac_file" || continue
3851   case $ac_file in
3852     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3853     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3854           break;;
3855     * ) break;;
3856   esac
3857 done
3858 else
3859   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3860 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3861 as_fn_error "cannot compute suffix of executables: cannot compile and link
3862 See \`config.log' for more details." "$LINENO" 5; }
3863 fi
3864 rm -f conftest conftest$ac_cv_exeext
3865 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3866 $as_echo "$ac_cv_exeext" >&6; }
3867
3868 rm -f conftest.$ac_ext
3869 EXEEXT=$ac_cv_exeext
3870 ac_exeext=$EXEEXT
3871 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3872 /* end confdefs.h.  */
3873 #include <stdio.h>
3874 int
3875 main ()
3876 {
3877 FILE *f = fopen ("conftest.out", "w");
3878  return ferror (f) || fclose (f) != 0;
3879
3880   ;
3881   return 0;
3882 }
3883 _ACEOF
3884 ac_clean_files="$ac_clean_files conftest.out"
3885 # Check that the compiler produces executables we can run.  If not, either
3886 # the compiler is broken, or we cross compile.
3887 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3888 $as_echo_n "checking whether we are cross compiling... " >&6; }
3889 if test "$cross_compiling" != yes; then
3890   { { ac_try="$ac_link"
3891 case "(($ac_try" in
3892   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3893   *) ac_try_echo=$ac_try;;
3894 esac
3895 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3896 $as_echo "$ac_try_echo"; } >&5
3897   (eval "$ac_link") 2>&5
3898   ac_status=$?
3899   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3900   test $ac_status = 0; }
3901   if { ac_try='./conftest$ac_cv_exeext'
3902   { { case "(($ac_try" in
3903   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3904   *) ac_try_echo=$ac_try;;
3905 esac
3906 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3907 $as_echo "$ac_try_echo"; } >&5
3908   (eval "$ac_try") 2>&5
3909   ac_status=$?
3910   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3911   test $ac_status = 0; }; }; then
3912     cross_compiling=no
3913   else
3914     if test "$cross_compiling" = maybe; then
3915         cross_compiling=yes
3916     else
3917         { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3918 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3919 as_fn_error "cannot run C compiled programs.
3920 If you meant to cross compile, use \`--host'.
3921 See \`config.log' for more details." "$LINENO" 5; }
3922     fi
3923   fi
3924 fi
3925 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3926 $as_echo "$cross_compiling" >&6; }
3927
3928 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3929 ac_clean_files=$ac_clean_files_save
3930 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3931 $as_echo_n "checking for suffix of object files... " >&6; }
3932 if test "${ac_cv_objext+set}" = set; then :
3933   $as_echo_n "(cached) " >&6
3934 else
3935   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3936 /* end confdefs.h.  */
3937
3938 int
3939 main ()
3940 {
3941
3942   ;
3943   return 0;
3944 }
3945 _ACEOF
3946 rm -f conftest.o conftest.obj
3947 if { { ac_try="$ac_compile"
3948 case "(($ac_try" in
3949   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3950   *) ac_try_echo=$ac_try;;
3951 esac
3952 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3953 $as_echo "$ac_try_echo"; } >&5
3954   (eval "$ac_compile") 2>&5
3955   ac_status=$?
3956   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3957   test $ac_status = 0; }; then :
3958   for ac_file in conftest.o conftest.obj conftest.*; do
3959   test -f "$ac_file" || continue;
3960   case $ac_file in
3961     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3962     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3963        break;;
3964   esac
3965 done
3966 else
3967   $as_echo "$as_me: failed program was:" >&5
3968 sed 's/^/| /' conftest.$ac_ext >&5
3969
3970 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3971 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3972 as_fn_error "cannot compute suffix of object files: cannot compile
3973 See \`config.log' for more details." "$LINENO" 5; }
3974 fi
3975 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3976 fi
3977 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3978 $as_echo "$ac_cv_objext" >&6; }
3979 OBJEXT=$ac_cv_objext
3980 ac_objext=$OBJEXT
3981 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3982 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3983 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
3984   $as_echo_n "(cached) " >&6
3985 else
3986   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3987 /* end confdefs.h.  */
3988
3989 int
3990 main ()
3991 {
3992 #ifndef __GNUC__
3993        choke me
3994 #endif
3995
3996   ;
3997   return 0;
3998 }
3999 _ACEOF
4000 if ac_fn_c_try_compile "$LINENO"; then :
4001   ac_compiler_gnu=yes
4002 else
4003   ac_compiler_gnu=no
4004 fi
4005 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4006 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4007
4008 fi
4009 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4010 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
4011 if test $ac_compiler_gnu = yes; then
4012   GCC=yes
4013 else
4014   GCC=
4015 fi
4016 ac_test_CFLAGS=${CFLAGS+set}
4017 ac_save_CFLAGS=$CFLAGS
4018 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4019 $as_echo_n "checking whether $CC accepts -g... " >&6; }
4020 if test "${ac_cv_prog_cc_g+set}" = set; then :
4021   $as_echo_n "(cached) " >&6
4022 else
4023   ac_save_c_werror_flag=$ac_c_werror_flag
4024    ac_c_werror_flag=yes
4025    ac_cv_prog_cc_g=no
4026    CFLAGS="-g"
4027    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4028 /* end confdefs.h.  */
4029
4030 int
4031 main ()
4032 {
4033
4034   ;
4035   return 0;
4036 }
4037 _ACEOF
4038 if ac_fn_c_try_compile "$LINENO"; then :
4039   ac_cv_prog_cc_g=yes
4040 else
4041   CFLAGS=""
4042       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4043 /* end confdefs.h.  */
4044
4045 int
4046 main ()
4047 {
4048
4049   ;
4050   return 0;
4051 }
4052 _ACEOF
4053 if ac_fn_c_try_compile "$LINENO"; then :
4054
4055 else
4056   ac_c_werror_flag=$ac_save_c_werror_flag
4057          CFLAGS="-g"
4058          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4059 /* end confdefs.h.  */
4060
4061 int
4062 main ()
4063 {
4064
4065   ;
4066   return 0;
4067 }
4068 _ACEOF
4069 if ac_fn_c_try_compile "$LINENO"; then :
4070   ac_cv_prog_cc_g=yes
4071 fi
4072 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4073 fi
4074 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4075 fi
4076 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4077    ac_c_werror_flag=$ac_save_c_werror_flag
4078 fi
4079 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4080 $as_echo "$ac_cv_prog_cc_g" >&6; }
4081 if test "$ac_test_CFLAGS" = set; then
4082   CFLAGS=$ac_save_CFLAGS
4083 elif test $ac_cv_prog_cc_g = yes; then
4084   if test "$GCC" = yes; then
4085     CFLAGS="-g -O2"
4086   else
4087     CFLAGS="-g"
4088   fi
4089 else
4090   if test "$GCC" = yes; then
4091     CFLAGS="-O2"
4092   else
4093     CFLAGS=
4094   fi
4095 fi
4096 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4097 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4098 if test "${ac_cv_prog_cc_c89+set}" = set; then :
4099   $as_echo_n "(cached) " >&6
4100 else
4101   ac_cv_prog_cc_c89=no
4102 ac_save_CC=$CC
4103 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4104 /* end confdefs.h.  */
4105 #include <stdarg.h>
4106 #include <stdio.h>
4107 #include <sys/types.h>
4108 #include <sys/stat.h>
4109 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
4110 struct buf { int x; };
4111 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4112 static char *e (p, i)
4113      char **p;
4114      int i;
4115 {
4116   return p[i];
4117 }
4118 static char *f (char * (*g) (char **, int), char **p, ...)
4119 {
4120   char *s;
4121   va_list v;
4122   va_start (v,p);
4123   s = g (p, va_arg (v,int));
4124   va_end (v);
4125   return s;
4126 }
4127
4128 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
4129    function prototypes and stuff, but not '\xHH' hex character constants.
4130    These don't provoke an error unfortunately, instead are silently treated
4131    as 'x'.  The following induces an error, until -std is added to get
4132    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
4133    array size at least.  It's necessary to write '\x00'==0 to get something
4134    that's true only with -std.  */
4135 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4136
4137 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4138    inside strings and character constants.  */
4139 #define FOO(x) 'x'
4140 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4141
4142 int test (int i, double x);
4143 struct s1 {int (*f) (int a);};
4144 struct s2 {int (*f) (double a);};
4145 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4146 int argc;
4147 char **argv;
4148 int
4149 main ()
4150 {
4151 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
4152   ;
4153   return 0;
4154 }
4155 _ACEOF
4156 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4157         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4158 do
4159   CC="$ac_save_CC $ac_arg"
4160   if ac_fn_c_try_compile "$LINENO"; then :
4161   ac_cv_prog_cc_c89=$ac_arg
4162 fi
4163 rm -f core conftest.err conftest.$ac_objext
4164   test "x$ac_cv_prog_cc_c89" != "xno" && break
4165 done
4166 rm -f conftest.$ac_ext
4167 CC=$ac_save_CC
4168
4169 fi
4170 # AC_CACHE_VAL
4171 case "x$ac_cv_prog_cc_c89" in
4172   x)
4173     { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4174 $as_echo "none needed" >&6; } ;;
4175   xno)
4176     { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4177 $as_echo "unsupported" >&6; } ;;
4178   *)
4179     CC="$CC $ac_cv_prog_cc_c89"
4180     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4181 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4182 esac
4183 if test "x$ac_cv_prog_cc_c89" != xno; then :
4184
4185 fi
4186
4187 ac_ext=c
4188 ac_cpp='$CPP $CPPFLAGS'
4189 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4190 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4191 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4192
4193 ac_ext=cpp
4194 ac_cpp='$CXXCPP $CPPFLAGS'
4195 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4196 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4197 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4198 if test -z "$CXX"; then
4199   if test -n "$CCC"; then
4200     CXX=$CCC
4201   else
4202     if test -n "$ac_tool_prefix"; then
4203   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4204   do
4205     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4206 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4207 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4208 $as_echo_n "checking for $ac_word... " >&6; }
4209 if test "${ac_cv_prog_CXX+set}" = set; then :
4210   $as_echo_n "(cached) " >&6
4211 else
4212   if test -n "$CXX"; then
4213   ac_cv_prog_CXX="$CXX" # Let the user override the test.
4214 else
4215 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4216 for as_dir in $PATH
4217 do
4218   IFS=$as_save_IFS
4219   test -z "$as_dir" && as_dir=.
4220     for ac_exec_ext in '' $ac_executable_extensions; do
4221   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4222     ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
4223     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4224     break 2
4225   fi
4226 done
4227   done
4228 IFS=$as_save_IFS
4229
4230 fi
4231 fi
4232 CXX=$ac_cv_prog_CXX
4233 if test -n "$CXX"; then
4234   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
4235 $as_echo "$CXX" >&6; }
4236 else
4237   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4238 $as_echo "no" >&6; }
4239 fi
4240
4241
4242     test -n "$CXX" && break
4243   done
4244 fi
4245 if test -z "$CXX"; then
4246   ac_ct_CXX=$CXX
4247   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4248 do
4249   # Extract the first word of "$ac_prog", so it can be a program name with args.
4250 set dummy $ac_prog; ac_word=$2
4251 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4252 $as_echo_n "checking for $ac_word... " >&6; }
4253 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then :
4254   $as_echo_n "(cached) " >&6
4255 else
4256   if test -n "$ac_ct_CXX"; then
4257   ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
4258 else
4259 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4260 for as_dir in $PATH
4261 do
4262   IFS=$as_save_IFS
4263   test -z "$as_dir" && as_dir=.
4264     for ac_exec_ext in '' $ac_executable_extensions; do
4265   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4266     ac_cv_prog_ac_ct_CXX="$ac_prog"
4267     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4268     break 2
4269   fi
4270 done
4271   done
4272 IFS=$as_save_IFS
4273
4274 fi
4275 fi
4276 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
4277 if test -n "$ac_ct_CXX"; then
4278   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
4279 $as_echo "$ac_ct_CXX" >&6; }
4280 else
4281   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4282 $as_echo "no" >&6; }
4283 fi
4284
4285
4286   test -n "$ac_ct_CXX" && break
4287 done
4288
4289   if test "x$ac_ct_CXX" = x; then
4290     CXX="g++"
4291   else
4292     case $cross_compiling:$ac_tool_warned in
4293 yes:)
4294 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4295 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4296 ac_tool_warned=yes ;;
4297 esac
4298     CXX=$ac_ct_CXX
4299   fi
4300 fi
4301
4302   fi
4303 fi
4304 # Provide some information about the compiler.
4305 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
4306 set X $ac_compile
4307 ac_compiler=$2
4308 for ac_option in --version -v -V -qversion; do
4309   { { ac_try="$ac_compiler $ac_option >&5"
4310 case "(($ac_try" in
4311   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4312   *) ac_try_echo=$ac_try;;
4313 esac
4314 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4315 $as_echo "$ac_try_echo"; } >&5
4316   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4317   ac_status=$?
4318   if test -s conftest.err; then
4319     sed '10a\
4320 ... rest of stderr output deleted ...
4321          10q' conftest.err >conftest.er1
4322     cat conftest.er1 >&5
4323   fi
4324   rm -f conftest.er1 conftest.err
4325   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4326   test $ac_status = 0; }
4327 done
4328
4329 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
4330 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
4331 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then :
4332   $as_echo_n "(cached) " >&6
4333 else
4334   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4335 /* end confdefs.h.  */
4336
4337 int
4338 main ()
4339 {
4340 #ifndef __GNUC__
4341        choke me
4342 #endif
4343
4344   ;
4345   return 0;
4346 }
4347 _ACEOF
4348 if ac_fn_cxx_try_compile "$LINENO"; then :
4349   ac_compiler_gnu=yes
4350 else
4351   ac_compiler_gnu=no
4352 fi
4353 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4354 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
4355
4356 fi
4357 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
4358 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
4359 if test $ac_compiler_gnu = yes; then
4360   GXX=yes
4361 else
4362   GXX=
4363 fi
4364 ac_test_CXXFLAGS=${CXXFLAGS+set}
4365 ac_save_CXXFLAGS=$CXXFLAGS
4366 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
4367 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
4368 if test "${ac_cv_prog_cxx_g+set}" = set; then :
4369   $as_echo_n "(cached) " >&6
4370 else
4371   ac_save_cxx_werror_flag=$ac_cxx_werror_flag
4372    ac_cxx_werror_flag=yes
4373    ac_cv_prog_cxx_g=no
4374    CXXFLAGS="-g"
4375    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4376 /* end confdefs.h.  */
4377
4378 int
4379 main ()
4380 {
4381
4382   ;
4383   return 0;
4384 }
4385 _ACEOF
4386 if ac_fn_cxx_try_compile "$LINENO"; then :
4387   ac_cv_prog_cxx_g=yes
4388 else
4389   CXXFLAGS=""
4390       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4391 /* end confdefs.h.  */
4392
4393 int
4394 main ()
4395 {
4396
4397   ;
4398   return 0;
4399 }
4400 _ACEOF
4401 if ac_fn_cxx_try_compile "$LINENO"; then :
4402
4403 else
4404   ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4405          CXXFLAGS="-g"
4406          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4407 /* end confdefs.h.  */
4408
4409 int
4410 main ()
4411 {
4412
4413   ;
4414   return 0;
4415 }
4416 _ACEOF
4417 if ac_fn_cxx_try_compile "$LINENO"; then :
4418   ac_cv_prog_cxx_g=yes
4419 fi
4420 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4421 fi
4422 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4423 fi
4424 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4425    ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4426 fi
4427 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
4428 $as_echo "$ac_cv_prog_cxx_g" >&6; }
4429 if test "$ac_test_CXXFLAGS" = set; then
4430   CXXFLAGS=$ac_save_CXXFLAGS
4431 elif test $ac_cv_prog_cxx_g = yes; then
4432   if test "$GXX" = yes; then
4433     CXXFLAGS="-g -O2"
4434   else
4435     CXXFLAGS="-g"
4436   fi
4437 else
4438   if test "$GXX" = yes; then
4439     CXXFLAGS="-O2"
4440   else
4441     CXXFLAGS=
4442   fi
4443 fi
4444 ac_ext=c
4445 ac_cpp='$CPP $CPPFLAGS'
4446 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4447 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4448 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4449
4450 if test "x$CC" != xcc; then
4451   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC and cc understand -c and -o together" >&5
4452 $as_echo_n "checking whether $CC and cc understand -c and -o together... " >&6; }
4453 else
4454   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether cc understands -c and -o together" >&5
4455 $as_echo_n "checking whether cc understands -c and -o together... " >&6; }
4456 fi
4457 set dummy $CC; ac_cc=`$as_echo "$2" |
4458                       sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
4459 if { as_var=ac_cv_prog_cc_${ac_cc}_c_o; eval "test \"\${$as_var+set}\" = set"; }; then :
4460   $as_echo_n "(cached) " >&6
4461 else
4462   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4463 /* end confdefs.h.  */
4464
4465 int
4466 main ()
4467 {
4468
4469   ;
4470   return 0;
4471 }
4472 _ACEOF
4473 # Make sure it works both with $CC and with simple cc.
4474 # We do the test twice because some compilers refuse to overwrite an
4475 # existing .o file with -o, though they will create one.
4476 ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
4477 rm -f conftest2.*
4478 if { { case "(($ac_try" in
4479   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4480   *) ac_try_echo=$ac_try;;
4481 esac
4482 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4483 $as_echo "$ac_try_echo"; } >&5
4484   (eval "$ac_try") 2>&5
4485   ac_status=$?
4486   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4487   test $ac_status = 0; } &&
4488    test -f conftest2.$ac_objext && { { case "(($ac_try" in
4489   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4490   *) ac_try_echo=$ac_try;;
4491 esac
4492 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4493 $as_echo "$ac_try_echo"; } >&5
4494   (eval "$ac_try") 2>&5
4495   ac_status=$?
4496   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4497   test $ac_status = 0; };
4498 then
4499   eval ac_cv_prog_cc_${ac_cc}_c_o=yes
4500   if test "x$CC" != xcc; then
4501     # Test first that cc exists at all.
4502     if { ac_try='cc -c conftest.$ac_ext >&5'
4503   { { case "(($ac_try" in
4504   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4505   *) ac_try_echo=$ac_try;;
4506 esac
4507 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4508 $as_echo "$ac_try_echo"; } >&5
4509   (eval "$ac_try") 2>&5
4510   ac_status=$?
4511   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4512   test $ac_status = 0; }; }; then
4513       ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
4514       rm -f conftest2.*
4515       if { { case "(($ac_try" in
4516   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4517   *) ac_try_echo=$ac_try;;
4518 esac
4519 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4520 $as_echo "$ac_try_echo"; } >&5
4521   (eval "$ac_try") 2>&5
4522   ac_status=$?
4523   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4524   test $ac_status = 0; } &&
4525          test -f conftest2.$ac_objext && { { case "(($ac_try" in
4526   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4527   *) ac_try_echo=$ac_try;;
4528 esac
4529 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4530 $as_echo "$ac_try_echo"; } >&5
4531   (eval "$ac_try") 2>&5
4532   ac_status=$?
4533   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4534   test $ac_status = 0; };
4535       then
4536         # cc works too.
4537         :
4538       else
4539         # cc exists but doesn't like -o.
4540         eval ac_cv_prog_cc_${ac_cc}_c_o=no
4541       fi
4542     fi
4543   fi
4544 else
4545   eval ac_cv_prog_cc_${ac_cc}_c_o=no
4546 fi
4547 rm -f core conftest*
4548
4549 fi
4550 if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then
4551   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4552 $as_echo "yes" >&6; }
4553 else
4554   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4555 $as_echo "no" >&6; }
4556
4557 $as_echo "#define NO_MINUS_C_MINUS_O 1" >>confdefs.h
4558
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 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4567 $as_echo_n "checking how to run the C preprocessor... " >&6; }
4568 # On Suns, sometimes $CPP names a directory.
4569 if test -n "$CPP" && test -d "$CPP"; then
4570   CPP=
4571 fi
4572 if test -z "$CPP"; then
4573   if test "${ac_cv_prog_CPP+set}" = set; then :
4574   $as_echo_n "(cached) " >&6
4575 else
4576       # Double quotes because CPP needs to be expanded
4577     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4578     do
4579       ac_preproc_ok=false
4580 for ac_c_preproc_warn_flag in '' yes
4581 do
4582   # Use a header file that comes with gcc, so configuring glibc
4583   # with a fresh cross-compiler works.
4584   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4585   # <limits.h> exists even on freestanding compilers.
4586   # On the NeXT, cc -E runs the code through the compiler's parser,
4587   # not just through cpp. "Syntax error" is here to catch this case.
4588   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4589 /* end confdefs.h.  */
4590 #ifdef __STDC__
4591 # include <limits.h>
4592 #else
4593 # include <assert.h>
4594 #endif
4595                      Syntax error
4596 _ACEOF
4597 if ac_fn_c_try_cpp "$LINENO"; then :
4598
4599 else
4600   # Broken: fails on valid input.
4601 continue
4602 fi
4603 rm -f conftest.err conftest.$ac_ext
4604
4605   # OK, works on sane cases.  Now check whether nonexistent headers
4606   # can be detected and how.
4607   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4608 /* end confdefs.h.  */
4609 #include <ac_nonexistent.h>
4610 _ACEOF
4611 if ac_fn_c_try_cpp "$LINENO"; then :
4612   # Broken: success on invalid input.
4613 continue
4614 else
4615   # Passes both tests.
4616 ac_preproc_ok=:
4617 break
4618 fi
4619 rm -f conftest.err conftest.$ac_ext
4620
4621 done
4622 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4623 rm -f conftest.err conftest.$ac_ext
4624 if $ac_preproc_ok; then :
4625   break
4626 fi
4627
4628     done
4629     ac_cv_prog_CPP=$CPP
4630
4631 fi
4632   CPP=$ac_cv_prog_CPP
4633 else
4634   ac_cv_prog_CPP=$CPP
4635 fi
4636 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4637 $as_echo "$CPP" >&6; }
4638 ac_preproc_ok=false
4639 for ac_c_preproc_warn_flag in '' yes
4640 do
4641   # Use a header file that comes with gcc, so configuring glibc
4642   # with a fresh cross-compiler works.
4643   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4644   # <limits.h> exists even on freestanding compilers.
4645   # On the NeXT, cc -E runs the code through the compiler's parser,
4646   # not just through cpp. "Syntax error" is here to catch this case.
4647   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4648 /* end confdefs.h.  */
4649 #ifdef __STDC__
4650 # include <limits.h>
4651 #else
4652 # include <assert.h>
4653 #endif
4654                      Syntax error
4655 _ACEOF
4656 if ac_fn_c_try_cpp "$LINENO"; then :
4657
4658 else
4659   # Broken: fails on valid input.
4660 continue
4661 fi
4662 rm -f conftest.err conftest.$ac_ext
4663
4664   # OK, works on sane cases.  Now check whether nonexistent headers
4665   # can be detected and how.
4666   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4667 /* end confdefs.h.  */
4668 #include <ac_nonexistent.h>
4669 _ACEOF
4670 if ac_fn_c_try_cpp "$LINENO"; then :
4671   # Broken: success on invalid input.
4672 continue
4673 else
4674   # Passes both tests.
4675 ac_preproc_ok=:
4676 break
4677 fi
4678 rm -f conftest.err conftest.$ac_ext
4679
4680 done
4681 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4682 rm -f conftest.err conftest.$ac_ext
4683 if $ac_preproc_ok; then :
4684
4685 else
4686   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4687 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4688 as_fn_error "C preprocessor \"$CPP\" fails sanity check
4689 See \`config.log' for more details." "$LINENO" 5; }
4690 fi
4691
4692 ac_ext=c
4693 ac_cpp='$CPP $CPPFLAGS'
4694 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4695 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4696 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4697
4698
4699 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4700 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4701 if test "${ac_cv_path_GREP+set}" = set; then :
4702   $as_echo_n "(cached) " >&6
4703 else
4704   if test -z "$GREP"; then
4705   ac_path_GREP_found=false
4706   # Loop through the user's path and test for each of PROGNAME-LIST
4707   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4708 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4709 do
4710   IFS=$as_save_IFS
4711   test -z "$as_dir" && as_dir=.
4712     for ac_prog in grep ggrep; do
4713     for ac_exec_ext in '' $ac_executable_extensions; do
4714       ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4715       { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4716 # Check for GNU ac_path_GREP and select it if it is found.
4717   # Check for GNU $ac_path_GREP
4718 case `"$ac_path_GREP" --version 2>&1` in
4719 *GNU*)
4720   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4721 *)
4722   ac_count=0
4723   $as_echo_n 0123456789 >"conftest.in"
4724   while :
4725   do
4726     cat "conftest.in" "conftest.in" >"conftest.tmp"
4727     mv "conftest.tmp" "conftest.in"
4728     cp "conftest.in" "conftest.nl"
4729     $as_echo 'GREP' >> "conftest.nl"
4730     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4731     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4732     as_fn_arith $ac_count + 1 && ac_count=$as_val
4733     if test $ac_count -gt ${ac_path_GREP_max-0}; then
4734       # Best one so far, save it but keep looking for a better one
4735       ac_cv_path_GREP="$ac_path_GREP"
4736       ac_path_GREP_max=$ac_count
4737     fi
4738     # 10*(2^10) chars as input seems more than enough
4739     test $ac_count -gt 10 && break
4740   done
4741   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4742 esac
4743
4744       $ac_path_GREP_found && break 3
4745     done
4746   done
4747   done
4748 IFS=$as_save_IFS
4749   if test -z "$ac_cv_path_GREP"; then
4750     as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4751   fi
4752 else
4753   ac_cv_path_GREP=$GREP
4754 fi
4755
4756 fi
4757 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4758 $as_echo "$ac_cv_path_GREP" >&6; }
4759  GREP="$ac_cv_path_GREP"
4760
4761
4762 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4763 $as_echo_n "checking for egrep... " >&6; }
4764 if test "${ac_cv_path_EGREP+set}" = set; then :
4765   $as_echo_n "(cached) " >&6
4766 else
4767   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4768    then ac_cv_path_EGREP="$GREP -E"
4769    else
4770      if test -z "$EGREP"; then
4771   ac_path_EGREP_found=false
4772   # Loop through the user's path and test for each of PROGNAME-LIST
4773   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4774 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4775 do
4776   IFS=$as_save_IFS
4777   test -z "$as_dir" && as_dir=.
4778     for ac_prog in egrep; do
4779     for ac_exec_ext in '' $ac_executable_extensions; do
4780       ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4781       { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4782 # Check for GNU ac_path_EGREP and select it if it is found.
4783   # Check for GNU $ac_path_EGREP
4784 case `"$ac_path_EGREP" --version 2>&1` in
4785 *GNU*)
4786   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4787 *)
4788   ac_count=0
4789   $as_echo_n 0123456789 >"conftest.in"
4790   while :
4791   do
4792     cat "conftest.in" "conftest.in" >"conftest.tmp"
4793     mv "conftest.tmp" "conftest.in"
4794     cp "conftest.in" "conftest.nl"
4795     $as_echo 'EGREP' >> "conftest.nl"
4796     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4797     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4798     as_fn_arith $ac_count + 1 && ac_count=$as_val
4799     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4800       # Best one so far, save it but keep looking for a better one
4801       ac_cv_path_EGREP="$ac_path_EGREP"
4802       ac_path_EGREP_max=$ac_count
4803     fi
4804     # 10*(2^10) chars as input seems more than enough
4805     test $ac_count -gt 10 && break
4806   done
4807   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4808 esac
4809
4810       $ac_path_EGREP_found && break 3
4811     done
4812   done
4813   done
4814 IFS=$as_save_IFS
4815   if test -z "$ac_cv_path_EGREP"; then
4816     as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4817   fi
4818 else
4819   ac_cv_path_EGREP=$EGREP
4820 fi
4821
4822    fi
4823 fi
4824 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4825 $as_echo "$ac_cv_path_EGREP" >&6; }
4826  EGREP="$ac_cv_path_EGREP"
4827
4828
4829 if test $ac_cv_c_compiler_gnu = yes; then
4830     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC needs -traditional" >&5
4831 $as_echo_n "checking whether $CC needs -traditional... " >&6; }
4832 if test "${ac_cv_prog_gcc_traditional+set}" = set; then :
4833   $as_echo_n "(cached) " >&6
4834 else
4835     ac_pattern="Autoconf.*'x'"
4836   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4837 /* end confdefs.h.  */
4838 #include <sgtty.h>
4839 Autoconf TIOCGETP
4840 _ACEOF
4841 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4842   $EGREP "$ac_pattern" >/dev/null 2>&1; then :
4843   ac_cv_prog_gcc_traditional=yes
4844 else
4845   ac_cv_prog_gcc_traditional=no
4846 fi
4847 rm -f conftest*
4848
4849
4850   if test $ac_cv_prog_gcc_traditional = no; then
4851     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4852 /* end confdefs.h.  */
4853 #include <termio.h>
4854 Autoconf TCGETA
4855 _ACEOF
4856 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4857   $EGREP "$ac_pattern" >/dev/null 2>&1; then :
4858   ac_cv_prog_gcc_traditional=yes
4859 fi
4860 rm -f conftest*
4861
4862   fi
4863 fi
4864 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_gcc_traditional" >&5
4865 $as_echo "$ac_cv_prog_gcc_traditional" >&6; }
4866   if test $ac_cv_prog_gcc_traditional = yes; then
4867     CC="$CC -traditional"
4868   fi
4869 fi
4870
4871 BASECC=`basename $CC`
4872 have_gcc=no
4873 if test "x$BASECC" = xgcc; then
4874    $as_echo "#define HAVE_GCC 1" >>confdefs.h
4875
4876    have_gcc=yes
4877 fi
4878 # Extract the first word of "$CXX", so it can be a program name with args.
4879 set dummy $CXX; ac_word=$2
4880 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4881 $as_echo_n "checking for $ac_word... " >&6; }
4882 if test "${ac_cv_path_CXX+set}" = set; then :
4883   $as_echo_n "(cached) " >&6
4884 else
4885   case $CXX in
4886   [\\/]* | ?:[\\/]*)
4887   ac_cv_path_CXX="$CXX" # Let the user override the test with a path.
4888   ;;
4889   *)
4890   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4891 for as_dir in $PATH
4892 do
4893   IFS=$as_save_IFS
4894   test -z "$as_dir" && as_dir=.
4895     for ac_exec_ext in '' $ac_executable_extensions; do
4896   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4897     ac_cv_path_CXX="$as_dir/$ac_word$ac_exec_ext"
4898     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4899     break 2
4900   fi
4901 done
4902   done
4903 IFS=$as_save_IFS
4904
4905   test -z "$ac_cv_path_CXX" && ac_cv_path_CXX="$CXX"
4906   ;;
4907 esac
4908 fi
4909 CXX=$ac_cv_path_CXX
4910 if test -n "$CXX"; then
4911   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
4912 $as_echo "$CXX" >&6; }
4913 else
4914   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4915 $as_echo "no" >&6; }
4916 fi
4917
4918
4919 if test ! -e $CXX; then
4920    as_fn_error "Unable to find C++ compiler" "$LINENO" 5
4921 fi
4922
4923 # Find a good install program.  We prefer a C program (faster),
4924 # so one script is as good as another.  But avoid the broken or
4925 # incompatible versions:
4926 # SysV /etc/install, /usr/sbin/install
4927 # SunOS /usr/etc/install
4928 # IRIX /sbin/install
4929 # AIX /bin/install
4930 # AmigaOS /C/install, which installs bootblocks on floppy discs
4931 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
4932 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
4933 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
4934 # OS/2's system install, which has a completely different semantic
4935 # ./install, which can be erroneously created by make from ./install.sh.
4936 # Reject install programs that cannot install multiple files.
4937 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
4938 $as_echo_n "checking for a BSD-compatible install... " >&6; }
4939 if test -z "$INSTALL"; then
4940 if test "${ac_cv_path_install+set}" = set; then :
4941   $as_echo_n "(cached) " >&6
4942 else
4943   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4944 for as_dir in $PATH
4945 do
4946   IFS=$as_save_IFS
4947   test -z "$as_dir" && as_dir=.
4948     # Account for people who put trailing slashes in PATH elements.
4949 case $as_dir/ in #((
4950   ./ | .// | /[cC]/* | \
4951   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
4952   ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
4953   /usr/ucb/* ) ;;
4954   *)
4955     # OSF1 and SCO ODT 3.0 have their own names for install.
4956     # Don't use installbsd from OSF since it installs stuff as root
4957     # by default.
4958     for ac_prog in ginstall scoinst install; do
4959       for ac_exec_ext in '' $ac_executable_extensions; do
4960         if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
4961           if test $ac_prog = install &&
4962             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4963             # AIX install.  It has an incompatible calling convention.
4964             :
4965           elif test $ac_prog = install &&
4966             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4967             # program-specific install script used by HP pwplus--don't use.
4968             :
4969           else
4970             rm -rf conftest.one conftest.two conftest.dir
4971             echo one > conftest.one
4972             echo two > conftest.two
4973             mkdir conftest.dir
4974             if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
4975               test -s conftest.one && test -s conftest.two &&
4976               test -s conftest.dir/conftest.one &&
4977               test -s conftest.dir/conftest.two
4978             then
4979               ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
4980               break 3
4981             fi
4982           fi
4983         fi
4984       done
4985     done
4986     ;;
4987 esac
4988
4989   done
4990 IFS=$as_save_IFS
4991
4992 rm -rf conftest.one conftest.two conftest.dir
4993
4994 fi
4995   if test "${ac_cv_path_install+set}" = set; then
4996     INSTALL=$ac_cv_path_install
4997   else
4998     # As a last resort, use the slow shell script.  Don't cache a
4999     # value for INSTALL within a source directory, because that will
5000     # break other packages using the cache if that directory is
5001     # removed, or if the value is a relative name.
5002     INSTALL=$ac_install_sh
5003   fi
5004 fi
5005 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
5006 $as_echo "$INSTALL" >&6; }
5007
5008 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
5009 # It thinks the first close brace ends the variable substitution.
5010 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
5011
5012 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
5013
5014 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
5015
5016 # Extract the first word of "mv", so it can be a program name with args.
5017 set dummy mv; ac_word=$2
5018 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5019 $as_echo_n "checking for $ac_word... " >&6; }
5020 if test "${ac_cv_path_MV+set}" = set; then :
5021   $as_echo_n "(cached) " >&6
5022 else
5023   case $MV in
5024   [\\/]* | ?:[\\/]*)
5025   ac_cv_path_MV="$MV" # Let the user override the test with a path.
5026   ;;
5027   *)
5028   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5029 for as_dir in $PATH
5030 do
5031   IFS=$as_save_IFS
5032   test -z "$as_dir" && as_dir=.
5033     for ac_exec_ext in '' $ac_executable_extensions; do
5034   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5035     ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
5036     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5037     break 2
5038   fi
5039 done
5040   done
5041 IFS=$as_save_IFS
5042
5043   test -z "$ac_cv_path_MV" && ac_cv_path_MV="mv"
5044   ;;
5045 esac
5046 fi
5047 MV=$ac_cv_path_MV
5048 if test -n "$MV"; then
5049   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MV" >&5
5050 $as_echo "$MV" >&6; }
5051 else
5052   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5053 $as_echo "no" >&6; }
5054 fi
5055
5056
5057 # Extract the first word of "rm", so it can be a program name with args.
5058 set dummy rm; ac_word=$2
5059 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5060 $as_echo_n "checking for $ac_word... " >&6; }
5061 if test "${ac_cv_path_REMOVE+set}" = set; then :
5062   $as_echo_n "(cached) " >&6
5063 else
5064   case $REMOVE in
5065   [\\/]* | ?:[\\/]*)
5066   ac_cv_path_REMOVE="$REMOVE" # Let the user override the test with a path.
5067   ;;
5068   *)
5069   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5070 for as_dir in $PATH
5071 do
5072   IFS=$as_save_IFS
5073   test -z "$as_dir" && as_dir=.
5074     for ac_exec_ext in '' $ac_executable_extensions; do
5075   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5076     ac_cv_path_REMOVE="$as_dir/$ac_word$ac_exec_ext"
5077     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5078     break 2
5079   fi
5080 done
5081   done
5082 IFS=$as_save_IFS
5083
5084   test -z "$ac_cv_path_REMOVE" && ac_cv_path_REMOVE="rm"
5085   ;;
5086 esac
5087 fi
5088 REMOVE=$ac_cv_path_REMOVE
5089 if test -n "$REMOVE"; then
5090   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $REMOVE" >&5
5091 $as_echo "$REMOVE" >&6; }
5092 else
5093   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5094 $as_echo "no" >&6; }
5095 fi
5096
5097
5098 # Extract the first word of "cp", so it can be a program name with args.
5099 set dummy cp; ac_word=$2
5100 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5101 $as_echo_n "checking for $ac_word... " >&6; }
5102 if test "${ac_cv_path_CP+set}" = set; then :
5103   $as_echo_n "(cached) " >&6
5104 else
5105   case $CP in
5106   [\\/]* | ?:[\\/]*)
5107   ac_cv_path_CP="$CP" # Let the user override the test with a path.
5108   ;;
5109   *)
5110   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5111 for as_dir in $PATH
5112 do
5113   IFS=$as_save_IFS
5114   test -z "$as_dir" && as_dir=.
5115     for ac_exec_ext in '' $ac_executable_extensions; do
5116   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5117     ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext"
5118     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5119     break 2
5120   fi
5121 done
5122   done
5123 IFS=$as_save_IFS
5124
5125   test -z "$ac_cv_path_CP" && ac_cv_path_CP="cp"
5126   ;;
5127 esac
5128 fi
5129 CP=$ac_cv_path_CP
5130 if test -n "$CP"; then
5131   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CP" >&5
5132 $as_echo "$CP" >&6; }
5133 else
5134   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5135 $as_echo "no" >&6; }
5136 fi
5137
5138
5139 # Extract the first word of "sed", so it can be a program name with args.
5140 set dummy sed; ac_word=$2
5141 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5142 $as_echo_n "checking for $ac_word... " >&6; }
5143 if test "${ac_cv_path_SED+set}" = set; then :
5144   $as_echo_n "(cached) " >&6
5145 else
5146   case $SED in
5147   [\\/]* | ?:[\\/]*)
5148   ac_cv_path_SED="$SED" # Let the user override the test with a path.
5149   ;;
5150   *)
5151   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5152 for as_dir in $PATH
5153 do
5154   IFS=$as_save_IFS
5155   test -z "$as_dir" && as_dir=.
5156     for ac_exec_ext in '' $ac_executable_extensions; do
5157   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5158     ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
5159     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5160     break 2
5161   fi
5162 done
5163   done
5164 IFS=$as_save_IFS
5165
5166   test -z "$ac_cv_path_SED" && ac_cv_path_SED="sed"
5167   ;;
5168 esac
5169 fi
5170 SED=$ac_cv_path_SED
5171 if test -n "$SED"; then
5172   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SED" >&5
5173 $as_echo "$SED" >&6; }
5174 else
5175   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5176 $as_echo "no" >&6; }
5177 fi
5178
5179
5180 # Extract the first word of "echo", so it can be a program name with args.
5181 set dummy echo; ac_word=$2
5182 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5183 $as_echo_n "checking for $ac_word... " >&6; }
5184 if test "${ac_cv_path_ECHO+set}" = set; then :
5185   $as_echo_n "(cached) " >&6
5186 else
5187   case $ECHO in
5188   [\\/]* | ?:[\\/]*)
5189   ac_cv_path_ECHO="$ECHO" # Let the user override the test with a path.
5190   ;;
5191   *)
5192   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5193 for as_dir in $PATH
5194 do
5195   IFS=$as_save_IFS
5196   test -z "$as_dir" && as_dir=.
5197     for ac_exec_ext in '' $ac_executable_extensions; do
5198   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5199     ac_cv_path_ECHO="$as_dir/$ac_word$ac_exec_ext"
5200     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5201     break 2
5202   fi
5203 done
5204   done
5205 IFS=$as_save_IFS
5206
5207   test -z "$ac_cv_path_ECHO" && ac_cv_path_ECHO="echo"
5208   ;;
5209 esac
5210 fi
5211 ECHO=$ac_cv_path_ECHO
5212 if test -n "$ECHO"; then
5213   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ECHO" >&5
5214 $as_echo "$ECHO" >&6; }
5215 else
5216   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5217 $as_echo "no" >&6; }
5218 fi
5219
5220
5221 # Extract the first word of "cmp", so it can be a program name with args.
5222 set dummy cmp; ac_word=$2
5223 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5224 $as_echo_n "checking for $ac_word... " >&6; }
5225 if test "${ac_cv_path_CMP+set}" = set; then :
5226   $as_echo_n "(cached) " >&6
5227 else
5228   case $CMP in
5229   [\\/]* | ?:[\\/]*)
5230   ac_cv_path_CMP="$CMP" # Let the user override the test with a path.
5231   ;;
5232   *)
5233   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5234 for as_dir in $PATH
5235 do
5236   IFS=$as_save_IFS
5237   test -z "$as_dir" && as_dir=.
5238     for ac_exec_ext in '' $ac_executable_extensions; do
5239   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5240     ac_cv_path_CMP="$as_dir/$ac_word$ac_exec_ext"
5241     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5242     break 2
5243   fi
5244 done
5245   done
5246 IFS=$as_save_IFS
5247
5248   test -z "$ac_cv_path_CMP" && ac_cv_path_CMP="cmp"
5249   ;;
5250 esac
5251 fi
5252 CMP=$ac_cv_path_CMP
5253 if test -n "$CMP"; then
5254   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CMP" >&5
5255 $as_echo "$CMP" >&6; }
5256 else
5257   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5258 $as_echo "no" >&6; }
5259 fi
5260
5261
5262 # Extract the first word of "tbl", so it can be a program name with args.
5263 set dummy tbl; ac_word=$2
5264 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5265 $as_echo_n "checking for $ac_word... " >&6; }
5266 if test "${ac_cv_path_TBL+set}" = set; then :
5267   $as_echo_n "(cached) " >&6
5268 else
5269   case $TBL in
5270   [\\/]* | ?:[\\/]*)
5271   ac_cv_path_TBL="$TBL" # Let the user override the test with a path.
5272   ;;
5273   *)
5274   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5275 for as_dir in $PATH
5276 do
5277   IFS=$as_save_IFS
5278   test -z "$as_dir" && as_dir=.
5279     for ac_exec_ext in '' $ac_executable_extensions; do
5280   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5281     ac_cv_path_TBL="$as_dir/$ac_word$ac_exec_ext"
5282     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5283     break 2
5284   fi
5285 done
5286   done
5287 IFS=$as_save_IFS
5288
5289   test -z "$ac_cv_path_TBL" && ac_cv_path_TBL="tbl"
5290   ;;
5291 esac
5292 fi
5293 TBL=$ac_cv_path_TBL
5294 if test -n "$TBL"; then
5295   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TBL" >&5
5296 $as_echo "$TBL" >&6; }
5297 else
5298   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5299 $as_echo "no" >&6; }
5300 fi
5301
5302
5303 # Extract the first word of "ar", so it can be a program name with args.
5304 set dummy ar; ac_word=$2
5305 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5306 $as_echo_n "checking for $ac_word... " >&6; }
5307 if test "${ac_cv_path_AR+set}" = set; then :
5308   $as_echo_n "(cached) " >&6
5309 else
5310   case $AR in
5311   [\\/]* | ?:[\\/]*)
5312   ac_cv_path_AR="$AR" # Let the user override the test with a path.
5313   ;;
5314   *)
5315   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5316 for as_dir in $PATH
5317 do
5318   IFS=$as_save_IFS
5319   test -z "$as_dir" && as_dir=.
5320     for ac_exec_ext in '' $ac_executable_extensions; do
5321   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5322     ac_cv_path_AR="$as_dir/$ac_word$ac_exec_ext"
5323     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5324     break 2
5325   fi
5326 done
5327   done
5328 IFS=$as_save_IFS
5329
5330   test -z "$ac_cv_path_AR" && ac_cv_path_AR="ar"
5331   ;;
5332 esac
5333 fi
5334 AR=$ac_cv_path_AR
5335 if test -n "$AR"; then
5336   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
5337 $as_echo "$AR" >&6; }
5338 else
5339   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5340 $as_echo "no" >&6; }
5341 fi
5342
5343
5344 # Extract the first word of "openssl", so it can be a program name with args.
5345 set dummy openssl; ac_word=$2
5346 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5347 $as_echo_n "checking for $ac_word... " >&6; }
5348 if test "${ac_cv_path_OPENSSL+set}" = set; then :
5349   $as_echo_n "(cached) " >&6
5350 else
5351   case $OPENSSL in
5352   [\\/]* | ?:[\\/]*)
5353   ac_cv_path_OPENSSL="$OPENSSL" # Let the user override the test with a path.
5354   ;;
5355   *)
5356   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5357 for as_dir in $PATH
5358 do
5359   IFS=$as_save_IFS
5360   test -z "$as_dir" && as_dir=.
5361     for ac_exec_ext in '' $ac_executable_extensions; do
5362   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5363     ac_cv_path_OPENSSL="$as_dir/$ac_word$ac_exec_ext"
5364     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5365     break 2
5366   fi
5367 done
5368   done
5369 IFS=$as_save_IFS
5370
5371   test -z "$ac_cv_path_OPENSSL" && ac_cv_path_OPENSSL="none"
5372   ;;
5373 esac
5374 fi
5375 OPENSSL=$ac_cv_path_OPENSSL
5376 if test -n "$OPENSSL"; then
5377   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OPENSSL" >&5
5378 $as_echo "$OPENSSL" >&6; }
5379 else
5380   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5381 $as_echo "no" >&6; }
5382 fi
5383
5384
5385 # Extract the first word of "mtx", so it can be a program name with args.
5386 set dummy mtx; ac_word=$2
5387 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5388 $as_echo_n "checking for $ac_word... " >&6; }
5389 if test "${ac_cv_path_MTX+set}" = set; then :
5390   $as_echo_n "(cached) " >&6
5391 else
5392   case $MTX in
5393   [\\/]* | ?:[\\/]*)
5394   ac_cv_path_MTX="$MTX" # Let the user override the test with a path.
5395   ;;
5396   *)
5397   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5398 for as_dir in $PATH
5399 do
5400   IFS=$as_save_IFS
5401   test -z "$as_dir" && as_dir=.
5402     for ac_exec_ext in '' $ac_executable_extensions; do
5403   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5404     ac_cv_path_MTX="$as_dir/$ac_word$ac_exec_ext"
5405     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5406     break 2
5407   fi
5408 done
5409   done
5410 IFS=$as_save_IFS
5411
5412   test -z "$ac_cv_path_MTX" && ac_cv_path_MTX="mtx"
5413   ;;
5414 esac
5415 fi
5416 MTX=$ac_cv_path_MTX
5417 if test -n "$MTX"; then
5418   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MTX" >&5
5419 $as_echo "$MTX" >&6; }
5420 else
5421   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5422 $as_echo "no" >&6; }
5423 fi
5424
5425
5426 # Extract the first word of "dd", so it can be a program name with args.
5427 set dummy dd; ac_word=$2
5428 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5429 $as_echo_n "checking for $ac_word... " >&6; }
5430 if test "${ac_cv_path_DD+set}" = set; then :
5431   $as_echo_n "(cached) " >&6
5432 else
5433   case $DD in
5434   [\\/]* | ?:[\\/]*)
5435   ac_cv_path_DD="$DD" # Let the user override the test with a path.
5436   ;;
5437   *)
5438   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5439 for as_dir in $PATH
5440 do
5441   IFS=$as_save_IFS
5442   test -z "$as_dir" && as_dir=.
5443     for ac_exec_ext in '' $ac_executable_extensions; do
5444   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5445     ac_cv_path_DD="$as_dir/$ac_word$ac_exec_ext"
5446     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5447     break 2
5448   fi
5449 done
5450   done
5451 IFS=$as_save_IFS
5452
5453   test -z "$ac_cv_path_DD" && ac_cv_path_DD="dd"
5454   ;;
5455 esac
5456 fi
5457 DD=$ac_cv_path_DD
5458 if test -n "$DD"; then
5459   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DD" >&5
5460 $as_echo "$DD" >&6; }
5461 else
5462   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5463 $as_echo "no" >&6; }
5464 fi
5465
5466
5467 # Extract the first word of "mkisofs", so it can be a program name with args.
5468 set dummy mkisofs; ac_word=$2
5469 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5470 $as_echo_n "checking for $ac_word... " >&6; }
5471 if test "${ac_cv_path_MKISOFS+set}" = set; then :
5472   $as_echo_n "(cached) " >&6
5473 else
5474   case $MKISOFS in
5475   [\\/]* | ?:[\\/]*)
5476   ac_cv_path_MKISOFS="$MKISOFS" # Let the user override the test with a path.
5477   ;;
5478   *)
5479   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5480 for as_dir in $PATH
5481 do
5482   IFS=$as_save_IFS
5483   test -z "$as_dir" && as_dir=.
5484     for ac_exec_ext in '' $ac_executable_extensions; do
5485   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5486     ac_cv_path_MKISOFS="$as_dir/$ac_word$ac_exec_ext"
5487     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5488     break 2
5489   fi
5490 done
5491   done
5492 IFS=$as_save_IFS
5493
5494   test -z "$ac_cv_path_MKISOFS" && ac_cv_path_MKISOFS="mkisofs"
5495   ;;
5496 esac
5497 fi
5498 MKISOFS=$ac_cv_path_MKISOFS
5499 if test -n "$MKISOFS"; then
5500   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKISOFS" >&5
5501 $as_echo "$MKISOFS" >&6; }
5502 else
5503   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5504 $as_echo "no" >&6; }
5505 fi
5506
5507
5508 # Extract the first word of "python", so it can be a program name with args.
5509 set dummy python; ac_word=$2
5510 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5511 $as_echo_n "checking for $ac_word... " >&6; }
5512 if test "${ac_cv_path_PYTHON+set}" = set; then :
5513   $as_echo_n "(cached) " >&6
5514 else
5515   case $PYTHON in
5516   [\\/]* | ?:[\\/]*)
5517   ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path.
5518   ;;
5519   *)
5520   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5521 for as_dir in $PATH
5522 do
5523   IFS=$as_save_IFS
5524   test -z "$as_dir" && as_dir=.
5525     for ac_exec_ext in '' $ac_executable_extensions; do
5526   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5527     ac_cv_path_PYTHON="$as_dir/$ac_word$ac_exec_ext"
5528     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5529     break 2
5530   fi
5531 done
5532   done
5533 IFS=$as_save_IFS
5534
5535   test -z "$ac_cv_path_PYTHON" && ac_cv_path_PYTHON="python"
5536   ;;
5537 esac
5538 fi
5539 PYTHON=$ac_cv_path_PYTHON
5540 if test -n "$PYTHON"; then
5541   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON" >&5
5542 $as_echo "$PYTHON" >&6; }
5543 else
5544   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5545 $as_echo "no" >&6; }
5546 fi
5547
5548
5549 # Extract the first word of "growisofs", so it can be a program name with args.
5550 set dummy growisofs; ac_word=$2
5551 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5552 $as_echo_n "checking for $ac_word... " >&6; }
5553 if test "${ac_cv_path_GROWISOFS+set}" = set; then :
5554   $as_echo_n "(cached) " >&6
5555 else
5556   case $GROWISOFS in
5557   [\\/]* | ?:[\\/]*)
5558   ac_cv_path_GROWISOFS="$GROWISOFS" # Let the user override the test with a path.
5559   ;;
5560   *)
5561   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5562 for as_dir in $PATH
5563 do
5564   IFS=$as_save_IFS
5565   test -z "$as_dir" && as_dir=.
5566     for ac_exec_ext in '' $ac_executable_extensions; do
5567   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5568     ac_cv_path_GROWISOFS="$as_dir/$ac_word$ac_exec_ext"
5569     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5570     break 2
5571   fi
5572 done
5573   done
5574 IFS=$as_save_IFS
5575
5576   test -z "$ac_cv_path_GROWISOFS" && ac_cv_path_GROWISOFS="growisofs"
5577   ;;
5578 esac
5579 fi
5580 GROWISOFS=$ac_cv_path_GROWISOFS
5581 if test -n "$GROWISOFS"; then
5582   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GROWISOFS" >&5
5583 $as_echo "$GROWISOFS" >&6; }
5584 else
5585   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5586 $as_echo "no" >&6; }
5587 fi
5588
5589
5590 # Extract the first word of "dvd+rw-mediainfo", so it can be a program name with args.
5591 set dummy dvd+rw-mediainfo; ac_word=$2
5592 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5593 $as_echo_n "checking for $ac_word... " >&6; }
5594 if test "${ac_cv_path_DVDRWMEDIAINFO+set}" = set; then :
5595   $as_echo_n "(cached) " >&6
5596 else
5597   case $DVDRWMEDIAINFO in
5598   [\\/]* | ?:[\\/]*)
5599   ac_cv_path_DVDRWMEDIAINFO="$DVDRWMEDIAINFO" # Let the user override the test with a path.
5600   ;;
5601   *)
5602   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5603 for as_dir in $PATH
5604 do
5605   IFS=$as_save_IFS
5606   test -z "$as_dir" && as_dir=.
5607     for ac_exec_ext in '' $ac_executable_extensions; do
5608   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5609     ac_cv_path_DVDRWMEDIAINFO="$as_dir/$ac_word$ac_exec_ext"
5610     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5611     break 2
5612   fi
5613 done
5614   done
5615 IFS=$as_save_IFS
5616
5617   test -z "$ac_cv_path_DVDRWMEDIAINFO" && ac_cv_path_DVDRWMEDIAINFO="dvd+rw-mediainfo"
5618   ;;
5619 esac
5620 fi
5621 DVDRWMEDIAINFO=$ac_cv_path_DVDRWMEDIAINFO
5622 if test -n "$DVDRWMEDIAINFO"; then
5623   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DVDRWMEDIAINFO" >&5
5624 $as_echo "$DVDRWMEDIAINFO" >&6; }
5625 else
5626   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5627 $as_echo "no" >&6; }
5628 fi
5629
5630
5631 # Extract the first word of "dvd+rw-format", so it can be a program name with args.
5632 set dummy dvd+rw-format; ac_word=$2
5633 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5634 $as_echo_n "checking for $ac_word... " >&6; }
5635 if test "${ac_cv_path_DVDRWFORMAT+set}" = set; then :
5636   $as_echo_n "(cached) " >&6
5637 else
5638   case $DVDRWFORMAT in
5639   [\\/]* | ?:[\\/]*)
5640   ac_cv_path_DVDRWFORMAT="$DVDRWFORMAT" # Let the user override the test with a path.
5641   ;;
5642   *)
5643   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5644 for as_dir in $PATH
5645 do
5646   IFS=$as_save_IFS
5647   test -z "$as_dir" && as_dir=.
5648     for ac_exec_ext in '' $ac_executable_extensions; do
5649   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5650     ac_cv_path_DVDRWFORMAT="$as_dir/$ac_word$ac_exec_ext"
5651     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5652     break 2
5653   fi
5654 done
5655   done
5656 IFS=$as_save_IFS
5657
5658   test -z "$ac_cv_path_DVDRWFORMAT" && ac_cv_path_DVDRWFORMAT="dvd+rw-format"
5659   ;;
5660 esac
5661 fi
5662 DVDRWFORMAT=$ac_cv_path_DVDRWFORMAT
5663 if test -n "$DVDRWFORMAT"; then
5664   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DVDRWFORMAT" >&5
5665 $as_echo "$DVDRWFORMAT" >&6; }
5666 else
5667   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5668 $as_echo "no" >&6; }
5669 fi
5670
5671
5672 # Extract the first word of "pkg-config", so it can be a program name with args.
5673 set dummy pkg-config; ac_word=$2
5674 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5675 $as_echo_n "checking for $ac_word... " >&6; }
5676 if test "${ac_cv_path_PKGCONFIG+set}" = set; then :
5677   $as_echo_n "(cached) " >&6
5678 else
5679   case $PKGCONFIG in
5680   [\\/]* | ?:[\\/]*)
5681   ac_cv_path_PKGCONFIG="$PKGCONFIG" # Let the user override the test with a path.
5682   ;;
5683   *)
5684   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5685 for as_dir in $PATH
5686 do
5687   IFS=$as_save_IFS
5688   test -z "$as_dir" && as_dir=.
5689     for ac_exec_ext in '' $ac_executable_extensions; do
5690   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5691     ac_cv_path_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext"
5692     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5693     break 2
5694   fi
5695 done
5696   done
5697 IFS=$as_save_IFS
5698
5699   test -z "$ac_cv_path_PKGCONFIG" && ac_cv_path_PKGCONFIG="pkg-config"
5700   ;;
5701 esac
5702 fi
5703 PKGCONFIG=$ac_cv_path_PKGCONFIG
5704 if test -n "$PKGCONFIG"; then
5705   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKGCONFIG" >&5
5706 $as_echo "$PKGCONFIG" >&6; }
5707 else
5708   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5709 $as_echo "no" >&6; }
5710 fi
5711
5712
5713 # Extract the first word of "qmake", so it can be a program name with args.
5714 set dummy qmake; ac_word=$2
5715 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5716 $as_echo_n "checking for $ac_word... " >&6; }
5717 if test "${ac_cv_path_QMAKE+set}" = set; then :
5718   $as_echo_n "(cached) " >&6
5719 else
5720   case $QMAKE in
5721   [\\/]* | ?:[\\/]*)
5722   ac_cv_path_QMAKE="$QMAKE" # Let the user override the test with a path.
5723   ;;
5724   *)
5725   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5726 for as_dir in $PATH
5727 do
5728   IFS=$as_save_IFS
5729   test -z "$as_dir" && as_dir=.
5730     for ac_exec_ext in '' $ac_executable_extensions; do
5731   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5732     ac_cv_path_QMAKE="$as_dir/$ac_word$ac_exec_ext"
5733     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5734     break 2
5735   fi
5736 done
5737   done
5738 IFS=$as_save_IFS
5739
5740   test -z "$ac_cv_path_QMAKE" && ac_cv_path_QMAKE="none"
5741   ;;
5742 esac
5743 fi
5744 QMAKE=$ac_cv_path_QMAKE
5745 if test -n "$QMAKE"; then
5746   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $QMAKE" >&5
5747 $as_echo "$QMAKE" >&6; }
5748 else
5749   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5750 $as_echo "no" >&6; }
5751 fi
5752
5753
5754 # Extract the first word of "gmake", so it can be a program name with args.
5755 set dummy gmake; ac_word=$2
5756 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5757 $as_echo_n "checking for $ac_word... " >&6; }
5758 if test "${ac_cv_path_GMAKE+set}" = set; then :
5759   $as_echo_n "(cached) " >&6
5760 else
5761   case $GMAKE in
5762   [\\/]* | ?:[\\/]*)
5763   ac_cv_path_GMAKE="$GMAKE" # Let the user override the test with a path.
5764   ;;
5765   *)
5766   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5767 for as_dir in $PATH
5768 do
5769   IFS=$as_save_IFS
5770   test -z "$as_dir" && as_dir=.
5771     for ac_exec_ext in '' $ac_executable_extensions; do
5772   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5773     ac_cv_path_GMAKE="$as_dir/$ac_word$ac_exec_ext"
5774     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5775     break 2
5776   fi
5777 done
5778   done
5779 IFS=$as_save_IFS
5780
5781   test -z "$ac_cv_path_GMAKE" && ac_cv_path_GMAKE="none"
5782   ;;
5783 esac
5784 fi
5785 GMAKE=$ac_cv_path_GMAKE
5786 if test -n "$GMAKE"; then
5787   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GMAKE" >&5
5788 $as_echo "$GMAKE" >&6; }
5789 else
5790   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5791 $as_echo "no" >&6; }
5792 fi
5793
5794
5795
5796 if test "x$WXCONFIG" = x; then
5797    WXCONFIG=wx-config
5798 fi
5799 # Extract the first word of "${WXCONFIG}", so it can be a program name with args.
5800 set dummy ${WXCONFIG}; ac_word=$2
5801 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5802 $as_echo_n "checking for $ac_word... " >&6; }
5803 if test "${ac_cv_path_WXCONFIG+set}" = set; then :
5804   $as_echo_n "(cached) " >&6
5805 else
5806   case $WXCONFIG in
5807   [\\/]* | ?:[\\/]*)
5808   ac_cv_path_WXCONFIG="$WXCONFIG" # Let the user override the test with a path.
5809   ;;
5810   *)
5811   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5812 for as_dir in $PATH
5813 do
5814   IFS=$as_save_IFS
5815   test -z "$as_dir" && as_dir=.
5816     for ac_exec_ext in '' $ac_executable_extensions; do
5817   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5818     ac_cv_path_WXCONFIG="$as_dir/$ac_word$ac_exec_ext"
5819     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5820     break 2
5821   fi
5822 done
5823   done
5824 IFS=$as_save_IFS
5825
5826   test -z "$ac_cv_path_WXCONFIG" && ac_cv_path_WXCONFIG="${WXCONFIG}"
5827   ;;
5828 esac
5829 fi
5830 WXCONFIG=$ac_cv_path_WXCONFIG
5831 if test -n "$WXCONFIG"; then
5832   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WXCONFIG" >&5
5833 $as_echo "$WXCONFIG" >&6; }
5834 else
5835   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5836 $as_echo "no" >&6; }
5837 fi
5838
5839
5840
5841 # Extract the first word of "cdrecord", so it can be a program name with args.
5842 set dummy cdrecord; ac_word=$2
5843 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5844 $as_echo_n "checking for $ac_word... " >&6; }
5845 if test "${ac_cv_path_CDRECORD+set}" = set; then :
5846   $as_echo_n "(cached) " >&6
5847 else
5848   case $CDRECORD in
5849   [\\/]* | ?:[\\/]*)
5850   ac_cv_path_CDRECORD="$CDRECORD" # Let the user override the test with a path.
5851   ;;
5852   *)
5853   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5854 for as_dir in $PATH
5855 do
5856   IFS=$as_save_IFS
5857   test -z "$as_dir" && as_dir=.
5858     for ac_exec_ext in '' $ac_executable_extensions; do
5859   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5860     ac_cv_path_CDRECORD="$as_dir/$ac_word$ac_exec_ext"
5861     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5862     break 2
5863   fi
5864 done
5865   done
5866 IFS=$as_save_IFS
5867
5868   test -z "$ac_cv_path_CDRECORD" && ac_cv_path_CDRECORD="cdrecord"
5869   ;;
5870 esac
5871 fi
5872 CDRECORD=$ac_cv_path_CDRECORD
5873 if test -n "$CDRECORD"; then
5874   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CDRECORD" >&5
5875 $as_echo "$CDRECORD" >&6; }
5876 else
5877   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5878 $as_echo "no" >&6; }
5879 fi
5880
5881
5882 # Extract the first word of "pidof", so it can be a program name with args.
5883 set dummy pidof; ac_word=$2
5884 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5885 $as_echo_n "checking for $ac_word... " >&6; }
5886 if test "${ac_cv_path_PIDOF+set}" = set; then :
5887   $as_echo_n "(cached) " >&6
5888 else
5889   case $PIDOF in
5890   [\\/]* | ?:[\\/]*)
5891   ac_cv_path_PIDOF="$PIDOF" # Let the user override the test with a path.
5892   ;;
5893   *)
5894   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5895 for as_dir in $PATH
5896 do
5897   IFS=$as_save_IFS
5898   test -z "$as_dir" && as_dir=.
5899     for ac_exec_ext in '' $ac_executable_extensions; do
5900   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5901     ac_cv_path_PIDOF="$as_dir/$ac_word$ac_exec_ext"
5902     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5903     break 2
5904   fi
5905 done
5906   done
5907 IFS=$as_save_IFS
5908
5909   test -z "$ac_cv_path_PIDOF" && ac_cv_path_PIDOF="pidof"
5910   ;;
5911 esac
5912 fi
5913 PIDOF=$ac_cv_path_PIDOF
5914 if test -n "$PIDOF"; then
5915   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PIDOF" >&5
5916 $as_echo "$PIDOF" >&6; }
5917 else
5918   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5919 $as_echo "no" >&6; }
5920 fi
5921
5922
5923 for ac_prog in gawk mawk nawk awk
5924 do
5925   # Extract the first word of "$ac_prog", so it can be a program name with args.
5926 set dummy $ac_prog; ac_word=$2
5927 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5928 $as_echo_n "checking for $ac_word... " >&6; }
5929 if test "${ac_cv_prog_AWK+set}" = set; then :
5930   $as_echo_n "(cached) " >&6
5931 else
5932   if test -n "$AWK"; then
5933   ac_cv_prog_AWK="$AWK" # Let the user override the test.
5934 else
5935 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5936 for as_dir in $PATH
5937 do
5938   IFS=$as_save_IFS
5939   test -z "$as_dir" && as_dir=.
5940     for ac_exec_ext in '' $ac_executable_extensions; do
5941   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5942     ac_cv_prog_AWK="$ac_prog"
5943     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5944     break 2
5945   fi
5946 done
5947   done
5948 IFS=$as_save_IFS
5949
5950 fi
5951 fi
5952 AWK=$ac_cv_prog_AWK
5953 if test -n "$AWK"; then
5954   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
5955 $as_echo "$AWK" >&6; }
5956 else
5957   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5958 $as_echo "no" >&6; }
5959 fi
5960
5961
5962   test -n "$AWK" && break
5963 done
5964
5965 # Some AWK programs fail, so test it and warn the user
5966 if echo xfoo | $AWK 'BEGIN { prog=ARGV1; ARGC=1 }
5967       { if ((prog == $2) || (("(" prog ")") == $2) ||
5968       (("" prog "") == $2) ||
5969       ((prog ":") == $2)) { print $1 ; exit 0 } }' xfoo>/dev/null; then :;
5970 else
5971   as_fn_error "!!!!!!!!! WARNING !!!!!!!!!!!!!!
5972    The regex engine of $AWK is too broken to be used you
5973    might want to install GNU AWK.
5974    !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!" "$LINENO" 5
5975 fi
5976 THE_AWK=$AWK
5977 # Extract the first word of "$THE_AWK", so it can be a program name with args.
5978 set dummy $THE_AWK; ac_word=$2
5979 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5980 $as_echo_n "checking for $ac_word... " >&6; }
5981 if test "${ac_cv_path_AWK+set}" = set; then :
5982   $as_echo_n "(cached) " >&6
5983 else
5984   case $AWK in
5985   [\\/]* | ?:[\\/]*)
5986   ac_cv_path_AWK="$AWK" # Let the user override the test with a path.
5987   ;;
5988   *)
5989   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5990 for as_dir in $PATH
5991 do
5992   IFS=$as_save_IFS
5993   test -z "$as_dir" && as_dir=.
5994     for ac_exec_ext in '' $ac_executable_extensions; do
5995   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5996     ac_cv_path_AWK="$as_dir/$ac_word$ac_exec_ext"
5997     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5998     break 2
5999   fi
6000 done
6001   done
6002 IFS=$as_save_IFS
6003
6004   test -z "$ac_cv_path_AWK" && ac_cv_path_AWK="$THE_AWK"
6005   ;;
6006 esac
6007 fi
6008 AWK=$ac_cv_path_AWK
6009 if test -n "$AWK"; then
6010   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
6011 $as_echo "$AWK" >&6; }
6012 else
6013   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6014 $as_echo "no" >&6; }
6015 fi
6016
6017
6018
6019
6020 test -n "$ARFLAG" || ARFLAGS="cr"
6021
6022
6023 MAKE_SHELL=/bin/sh
6024
6025
6026
6027
6028
6029
6030
6031 use_libtool=yes
6032 # Check whether --enable-libtool was given.
6033 if test "${enable_libtool+set}" = set; then :
6034   enableval=$enable_libtool;
6035        if test x$enableval = xno; then
6036           use_libtool=no
6037        fi
6038
6039
6040 fi
6041
6042 case `pwd` in
6043   *\ * | *\     *)
6044     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
6045 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
6046 esac
6047
6048
6049
6050 macro_version='2.2.6'
6051 macro_revision='1.3012'
6052
6053
6054
6055
6056
6057
6058
6059
6060
6061
6062
6063
6064
6065 ltmain="$ac_aux_dir/ltmain.sh"
6066
6067 # Make sure we can run config.sub.
6068 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
6069   as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
6070
6071 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
6072 $as_echo_n "checking build system type... " >&6; }
6073 if test "${ac_cv_build+set}" = set; then :
6074   $as_echo_n "(cached) " >&6
6075 else
6076   ac_build_alias=$build_alias
6077 test "x$ac_build_alias" = x &&
6078   ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
6079 test "x$ac_build_alias" = x &&
6080   as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
6081 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
6082   as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
6083
6084 fi
6085 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
6086 $as_echo "$ac_cv_build" >&6; }
6087 case $ac_cv_build in
6088 *-*-*) ;;
6089 *) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
6090 esac
6091 build=$ac_cv_build
6092 ac_save_IFS=$IFS; IFS='-'
6093 set x $ac_cv_build
6094 shift
6095 build_cpu=$1
6096 build_vendor=$2
6097 shift; shift
6098 # Remember, the first character of IFS is used to create $*,
6099 # except with old shells:
6100 build_os=$*
6101 IFS=$ac_save_IFS
6102 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
6103
6104
6105 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
6106 $as_echo_n "checking host system type... " >&6; }
6107 if test "${ac_cv_host+set}" = set; then :
6108   $as_echo_n "(cached) " >&6
6109 else
6110   if test "x$host_alias" = x; then
6111   ac_cv_host=$ac_cv_build
6112 else
6113   ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
6114     as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
6115 fi
6116
6117 fi
6118 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
6119 $as_echo "$ac_cv_host" >&6; }
6120 case $ac_cv_host in
6121 *-*-*) ;;
6122 *) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
6123 esac
6124 host=$ac_cv_host
6125 ac_save_IFS=$IFS; IFS='-'
6126 set x $ac_cv_host
6127 shift
6128 host_cpu=$1
6129 host_vendor=$2
6130 shift; shift
6131 # Remember, the first character of IFS is used to create $*,
6132 # except with old shells:
6133 host_os=$*
6134 IFS=$ac_save_IFS
6135 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
6136
6137
6138 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
6139 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
6140 if test "${ac_cv_path_SED+set}" = set; then :
6141   $as_echo_n "(cached) " >&6
6142 else
6143             ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
6144      for ac_i in 1 2 3 4 5 6 7; do
6145        ac_script="$ac_script$as_nl$ac_script"
6146      done
6147      echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
6148      { ac_script=; unset ac_script;}
6149      if test -z "$SED"; then
6150   ac_path_SED_found=false
6151   # Loop through the user's path and test for each of PROGNAME-LIST
6152   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6153 for as_dir in $PATH
6154 do
6155   IFS=$as_save_IFS
6156   test -z "$as_dir" && as_dir=.
6157     for ac_prog in sed gsed; do
6158     for ac_exec_ext in '' $ac_executable_extensions; do
6159       ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
6160       { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
6161 # Check for GNU ac_path_SED and select it if it is found.
6162   # Check for GNU $ac_path_SED
6163 case `"$ac_path_SED" --version 2>&1` in
6164 *GNU*)
6165   ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
6166 *)
6167   ac_count=0
6168   $as_echo_n 0123456789 >"conftest.in"
6169   while :
6170   do
6171     cat "conftest.in" "conftest.in" >"conftest.tmp"
6172     mv "conftest.tmp" "conftest.in"
6173     cp "conftest.in" "conftest.nl"
6174     $as_echo '' >> "conftest.nl"
6175     "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
6176     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6177     as_fn_arith $ac_count + 1 && ac_count=$as_val
6178     if test $ac_count -gt ${ac_path_SED_max-0}; then
6179       # Best one so far, save it but keep looking for a better one
6180       ac_cv_path_SED="$ac_path_SED"
6181       ac_path_SED_max=$ac_count
6182     fi
6183     # 10*(2^10) chars as input seems more than enough
6184     test $ac_count -gt 10 && break
6185   done
6186   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6187 esac
6188
6189       $ac_path_SED_found && break 3
6190     done
6191   done
6192   done
6193 IFS=$as_save_IFS
6194   if test -z "$ac_cv_path_SED"; then
6195     as_fn_error "no acceptable sed could be found in \$PATH" "$LINENO" 5
6196   fi
6197 else
6198   ac_cv_path_SED=$SED
6199 fi
6200
6201 fi
6202 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
6203 $as_echo "$ac_cv_path_SED" >&6; }
6204  SED="$ac_cv_path_SED"
6205   rm -f conftest.sed
6206
6207 test -z "$SED" && SED=sed
6208 Xsed="$SED -e 1s/^X//"
6209
6210
6211
6212
6213
6214
6215
6216
6217
6218
6219
6220 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
6221 $as_echo_n "checking for fgrep... " >&6; }
6222 if test "${ac_cv_path_FGREP+set}" = set; then :
6223   $as_echo_n "(cached) " >&6
6224 else
6225   if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
6226    then ac_cv_path_FGREP="$GREP -F"
6227    else
6228      if test -z "$FGREP"; then
6229   ac_path_FGREP_found=false
6230   # Loop through the user's path and test for each of PROGNAME-LIST
6231   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6232 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
6233 do
6234   IFS=$as_save_IFS
6235   test -z "$as_dir" && as_dir=.
6236     for ac_prog in fgrep; do
6237     for ac_exec_ext in '' $ac_executable_extensions; do
6238       ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
6239       { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
6240 # Check for GNU ac_path_FGREP and select it if it is found.
6241   # Check for GNU $ac_path_FGREP
6242 case `"$ac_path_FGREP" --version 2>&1` in
6243 *GNU*)
6244   ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
6245 *)
6246   ac_count=0
6247   $as_echo_n 0123456789 >"conftest.in"
6248   while :
6249   do
6250     cat "conftest.in" "conftest.in" >"conftest.tmp"
6251     mv "conftest.tmp" "conftest.in"
6252     cp "conftest.in" "conftest.nl"
6253     $as_echo 'FGREP' >> "conftest.nl"
6254     "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
6255     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6256     as_fn_arith $ac_count + 1 && ac_count=$as_val
6257     if test $ac_count -gt ${ac_path_FGREP_max-0}; then
6258       # Best one so far, save it but keep looking for a better one
6259       ac_cv_path_FGREP="$ac_path_FGREP"
6260       ac_path_FGREP_max=$ac_count
6261     fi
6262     # 10*(2^10) chars as input seems more than enough
6263     test $ac_count -gt 10 && break
6264   done
6265   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6266 esac
6267
6268       $ac_path_FGREP_found && break 3
6269     done
6270   done
6271   done
6272 IFS=$as_save_IFS
6273   if test -z "$ac_cv_path_FGREP"; then
6274     as_fn_error "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
6275   fi
6276 else
6277   ac_cv_path_FGREP=$FGREP
6278 fi
6279
6280    fi
6281 fi
6282 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
6283 $as_echo "$ac_cv_path_FGREP" >&6; }
6284  FGREP="$ac_cv_path_FGREP"
6285
6286
6287 test -z "$GREP" && GREP=grep
6288
6289
6290
6291
6292
6293
6294
6295
6296
6297
6298
6299
6300
6301
6302
6303
6304
6305
6306
6307 # Check whether --with-gnu-ld was given.
6308 if test "${with_gnu_ld+set}" = set; then :
6309   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
6310 else
6311   with_gnu_ld=no
6312 fi
6313
6314 ac_prog=ld
6315 if test "$GCC" = yes; then
6316   # Check if gcc -print-prog-name=ld gives a path.
6317   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
6318 $as_echo_n "checking for ld used by $CC... " >&6; }
6319   case $host in
6320   *-*-mingw*)
6321     # gcc leaves a trailing carriage return which upsets mingw
6322     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
6323   *)
6324     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
6325   esac
6326   case $ac_prog in
6327     # Accept absolute paths.
6328     [\\/]* | ?:[\\/]*)
6329       re_direlt='/[^/][^/]*/\.\./'
6330       # Canonicalize the pathname of ld
6331       ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
6332       while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
6333         ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
6334       done
6335       test -z "$LD" && LD="$ac_prog"
6336       ;;
6337   "")
6338     # If it fails, then pretend we aren't using GCC.
6339     ac_prog=ld
6340     ;;
6341   *)
6342     # If it is relative, then search for the first ld in PATH.
6343     with_gnu_ld=unknown
6344     ;;
6345   esac
6346 elif test "$with_gnu_ld" = yes; then
6347   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
6348 $as_echo_n "checking for GNU ld... " >&6; }
6349 else
6350   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
6351 $as_echo_n "checking for non-GNU ld... " >&6; }
6352 fi
6353 if test "${lt_cv_path_LD+set}" = set; then :
6354   $as_echo_n "(cached) " >&6
6355 else
6356   if test -z "$LD"; then
6357   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6358   for ac_dir in $PATH; do
6359     IFS="$lt_save_ifs"
6360     test -z "$ac_dir" && ac_dir=.
6361     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
6362       lt_cv_path_LD="$ac_dir/$ac_prog"
6363       # Check to see if the program is GNU ld.  I'd rather use --version,
6364       # but apparently some variants of GNU ld only accept -v.
6365       # Break only if it was the GNU/non-GNU ld that we prefer.
6366       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
6367       *GNU* | *'with BFD'*)
6368         test "$with_gnu_ld" != no && break
6369         ;;
6370       *)
6371         test "$with_gnu_ld" != yes && break
6372         ;;
6373       esac
6374     fi
6375   done
6376   IFS="$lt_save_ifs"
6377 else
6378   lt_cv_path_LD="$LD" # Let the user override the test with a path.
6379 fi
6380 fi
6381
6382 LD="$lt_cv_path_LD"
6383 if test -n "$LD"; then
6384   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
6385 $as_echo "$LD" >&6; }
6386 else
6387   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6388 $as_echo "no" >&6; }
6389 fi
6390 test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
6391 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
6392 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
6393 if test "${lt_cv_prog_gnu_ld+set}" = set; then :
6394   $as_echo_n "(cached) " >&6
6395 else
6396   # I'd rather use --version here, but apparently some GNU lds only accept -v.
6397 case `$LD -v 2>&1 </dev/null` in
6398 *GNU* | *'with BFD'*)
6399   lt_cv_prog_gnu_ld=yes
6400   ;;
6401 *)
6402   lt_cv_prog_gnu_ld=no
6403   ;;
6404 esac
6405 fi
6406 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
6407 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
6408 with_gnu_ld=$lt_cv_prog_gnu_ld
6409
6410
6411
6412
6413
6414
6415
6416
6417
6418 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
6419 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
6420 if test "${lt_cv_path_NM+set}" = set; then :
6421   $as_echo_n "(cached) " >&6
6422 else
6423   if test -n "$NM"; then
6424   # Let the user override the test.
6425   lt_cv_path_NM="$NM"
6426 else
6427   lt_nm_to_check="${ac_tool_prefix}nm"
6428   if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
6429     lt_nm_to_check="$lt_nm_to_check nm"
6430   fi
6431   for lt_tmp_nm in $lt_nm_to_check; do
6432     lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6433     for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
6434       IFS="$lt_save_ifs"
6435       test -z "$ac_dir" && ac_dir=.
6436       tmp_nm="$ac_dir/$lt_tmp_nm"
6437       if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
6438         # Check to see if the nm accepts a BSD-compat flag.
6439         # Adding the `sed 1q' prevents false positives on HP-UX, which says:
6440         #   nm: unknown option "B" ignored
6441         # Tru64's nm complains that /dev/null is an invalid object file
6442         case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
6443         */dev/null* | *'Invalid file or object type'*)
6444           lt_cv_path_NM="$tmp_nm -B"
6445           break
6446           ;;
6447         *)
6448           case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
6449           */dev/null*)
6450             lt_cv_path_NM="$tmp_nm -p"
6451             break
6452             ;;
6453           *)
6454             lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
6455             continue # so that we can try to find one that supports BSD flags
6456             ;;
6457           esac
6458           ;;
6459         esac
6460       fi
6461     done
6462     IFS="$lt_save_ifs"
6463   done
6464   : ${lt_cv_path_NM=no}
6465 fi
6466 fi
6467 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
6468 $as_echo "$lt_cv_path_NM" >&6; }
6469 if test "$lt_cv_path_NM" != "no"; then
6470   NM="$lt_cv_path_NM"
6471 else
6472   # Didn't find any BSD compatible name lister, look for dumpbin.
6473   if test -n "$ac_tool_prefix"; then
6474   for ac_prog in "dumpbin -symbols" "link -dump -symbols"
6475   do
6476     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6477 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6478 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6479 $as_echo_n "checking for $ac_word... " >&6; }
6480 if test "${ac_cv_prog_DUMPBIN+set}" = set; then :
6481   $as_echo_n "(cached) " >&6
6482 else
6483   if test -n "$DUMPBIN"; then
6484   ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
6485 else
6486 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6487 for as_dir in $PATH
6488 do
6489   IFS=$as_save_IFS
6490   test -z "$as_dir" && as_dir=.
6491     for ac_exec_ext in '' $ac_executable_extensions; do
6492   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6493     ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
6494     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6495     break 2
6496   fi
6497 done
6498   done
6499 IFS=$as_save_IFS
6500
6501 fi
6502 fi
6503 DUMPBIN=$ac_cv_prog_DUMPBIN
6504 if test -n "$DUMPBIN"; then
6505   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
6506 $as_echo "$DUMPBIN" >&6; }
6507 else
6508   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6509 $as_echo "no" >&6; }
6510 fi
6511
6512
6513     test -n "$DUMPBIN" && break
6514   done
6515 fi
6516 if test -z "$DUMPBIN"; then
6517   ac_ct_DUMPBIN=$DUMPBIN
6518   for ac_prog in "dumpbin -symbols" "link -dump -symbols"
6519 do
6520   # Extract the first word of "$ac_prog", so it can be a program name with args.
6521 set dummy $ac_prog; ac_word=$2
6522 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6523 $as_echo_n "checking for $ac_word... " >&6; }
6524 if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then :
6525   $as_echo_n "(cached) " >&6
6526 else
6527   if test -n "$ac_ct_DUMPBIN"; then
6528   ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
6529 else
6530 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6531 for as_dir in $PATH
6532 do
6533   IFS=$as_save_IFS
6534   test -z "$as_dir" && as_dir=.
6535     for ac_exec_ext in '' $ac_executable_extensions; do
6536   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6537     ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
6538     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6539     break 2
6540   fi
6541 done
6542   done
6543 IFS=$as_save_IFS
6544
6545 fi
6546 fi
6547 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
6548 if test -n "$ac_ct_DUMPBIN"; then
6549   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
6550 $as_echo "$ac_ct_DUMPBIN" >&6; }
6551 else
6552   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6553 $as_echo "no" >&6; }
6554 fi
6555
6556
6557   test -n "$ac_ct_DUMPBIN" && break
6558 done
6559
6560   if test "x$ac_ct_DUMPBIN" = x; then
6561     DUMPBIN=":"
6562   else
6563     case $cross_compiling:$ac_tool_warned in
6564 yes:)
6565 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6566 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6567 ac_tool_warned=yes ;;
6568 esac
6569     DUMPBIN=$ac_ct_DUMPBIN
6570   fi
6571 fi
6572
6573
6574   if test "$DUMPBIN" != ":"; then
6575     NM="$DUMPBIN"
6576   fi
6577 fi
6578 test -z "$NM" && NM=nm
6579
6580
6581
6582
6583
6584
6585 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
6586 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
6587 if test "${lt_cv_nm_interface+set}" = set; then :
6588   $as_echo_n "(cached) " >&6
6589 else
6590   lt_cv_nm_interface="BSD nm"
6591   echo "int some_variable = 0;" > conftest.$ac_ext
6592   (eval echo "\"\$as_me:6592: $ac_compile\"" >&5)
6593   (eval "$ac_compile" 2>conftest.err)
6594   cat conftest.err >&5
6595   (eval echo "\"\$as_me:6595: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
6596   (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
6597   cat conftest.err >&5
6598   (eval echo "\"\$as_me:6598: output\"" >&5)
6599   cat conftest.out >&5
6600   if $GREP 'External.*some_variable' conftest.out > /dev/null; then
6601     lt_cv_nm_interface="MS dumpbin"
6602   fi
6603   rm -f conftest*
6604 fi
6605 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
6606 $as_echo "$lt_cv_nm_interface" >&6; }
6607
6608 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
6609 $as_echo_n "checking whether ln -s works... " >&6; }
6610 LN_S=$as_ln_s
6611 if test "$LN_S" = "ln -s"; then
6612   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6613 $as_echo "yes" >&6; }
6614 else
6615   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
6616 $as_echo "no, using $LN_S" >&6; }
6617 fi
6618
6619 # find the maximum length of command line arguments
6620 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
6621 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
6622 if test "${lt_cv_sys_max_cmd_len+set}" = set; then :
6623   $as_echo_n "(cached) " >&6
6624 else
6625     i=0
6626   teststring="ABCD"
6627
6628   case $build_os in
6629   msdosdjgpp*)
6630     # On DJGPP, this test can blow up pretty badly due to problems in libc
6631     # (any single argument exceeding 2000 bytes causes a buffer overrun
6632     # during glob expansion).  Even if it were fixed, the result of this
6633     # check would be larger than it should be.
6634     lt_cv_sys_max_cmd_len=12288;    # 12K is about right
6635     ;;
6636
6637   gnu*)
6638     # Under GNU Hurd, this test is not required because there is
6639     # no limit to the length of command line arguments.
6640     # Libtool will interpret -1 as no limit whatsoever
6641     lt_cv_sys_max_cmd_len=-1;
6642     ;;
6643
6644   cygwin* | mingw* | cegcc*)
6645     # On Win9x/ME, this test blows up -- it succeeds, but takes
6646     # about 5 minutes as the teststring grows exponentially.
6647     # Worse, since 9x/ME are not pre-emptively multitasking,
6648     # you end up with a "frozen" computer, even though with patience
6649     # the test eventually succeeds (with a max line length of 256k).
6650     # Instead, let's just punt: use the minimum linelength reported by
6651     # all of the supported platforms: 8192 (on NT/2K/XP).
6652     lt_cv_sys_max_cmd_len=8192;
6653     ;;
6654
6655   amigaos*)
6656     # On AmigaOS with pdksh, this test takes hours, literally.
6657     # So we just punt and use a minimum line length of 8192.
6658     lt_cv_sys_max_cmd_len=8192;
6659     ;;
6660
6661   netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
6662     # This has been around since 386BSD, at least.  Likely further.
6663     if test -x /sbin/sysctl; then
6664       lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
6665     elif test -x /usr/sbin/sysctl; then
6666       lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
6667     else
6668       lt_cv_sys_max_cmd_len=65536       # usable default for all BSDs
6669     fi
6670     # And add a safety zone
6671     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6672     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6673     ;;
6674
6675   interix*)
6676     # We know the value 262144 and hardcode it with a safety zone (like BSD)
6677     lt_cv_sys_max_cmd_len=196608
6678     ;;
6679
6680   osf*)
6681     # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
6682     # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
6683     # nice to cause kernel panics so lets avoid the loop below.
6684     # First set a reasonable default.
6685     lt_cv_sys_max_cmd_len=16384
6686     #
6687     if test -x /sbin/sysconfig; then
6688       case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
6689         *1*) lt_cv_sys_max_cmd_len=-1 ;;
6690       esac
6691     fi
6692     ;;
6693   sco3.2v5*)
6694     lt_cv_sys_max_cmd_len=102400
6695     ;;
6696   sysv5* | sco5v6* | sysv4.2uw2*)
6697     kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
6698     if test -n "$kargmax"; then
6699       lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[  ]//'`
6700     else
6701       lt_cv_sys_max_cmd_len=32768
6702     fi
6703     ;;
6704   *)
6705     lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
6706     if test -n "$lt_cv_sys_max_cmd_len"; then
6707       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6708       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6709     else
6710       # Make teststring a little bigger before we do anything with it.
6711       # a 1K string should be a reasonable start.
6712       for i in 1 2 3 4 5 6 7 8 ; do
6713         teststring=$teststring$teststring
6714       done
6715       SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
6716       # If test is not a shell built-in, we'll probably end up computing a
6717       # maximum length that is only half of the actual maximum length, but
6718       # we can't tell.
6719       while { test "X"`$SHELL $0 --fallback-echo "X$teststring$teststring" 2>/dev/null` \
6720                  = "XX$teststring$teststring"; } >/dev/null 2>&1 &&
6721               test $i != 17 # 1/2 MB should be enough
6722       do
6723         i=`expr $i + 1`
6724         teststring=$teststring$teststring
6725       done
6726       # Only check the string length outside the loop.
6727       lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
6728       teststring=
6729       # Add a significant safety factor because C++ compilers can tack on
6730       # massive amounts of additional arguments before passing them to the
6731       # linker.  It appears as though 1/2 is a usable value.
6732       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
6733     fi
6734     ;;
6735   esac
6736
6737 fi
6738
6739 if test -n $lt_cv_sys_max_cmd_len ; then
6740   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
6741 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
6742 else
6743   { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
6744 $as_echo "none" >&6; }
6745 fi
6746 max_cmd_len=$lt_cv_sys_max_cmd_len
6747
6748
6749
6750
6751
6752
6753 : ${CP="cp -f"}
6754 : ${MV="mv -f"}
6755 : ${RM="rm -f"}
6756
6757 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
6758 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
6759 # Try some XSI features
6760 xsi_shell=no
6761 ( _lt_dummy="a/b/c"
6762   test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
6763       = c,a/b,, \
6764     && eval 'test $(( 1 + 1 )) -eq 2 \
6765     && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
6766   && xsi_shell=yes
6767 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
6768 $as_echo "$xsi_shell" >&6; }
6769
6770
6771 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
6772 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
6773 lt_shell_append=no
6774 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
6775     >/dev/null 2>&1 \
6776   && lt_shell_append=yes
6777 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
6778 $as_echo "$lt_shell_append" >&6; }
6779
6780
6781 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
6782   lt_unset=unset
6783 else
6784   lt_unset=false
6785 fi
6786
6787
6788
6789
6790
6791 # test EBCDIC or ASCII
6792 case `echo X|tr X '\101'` in
6793  A) # ASCII based system
6794     # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
6795   lt_SP2NL='tr \040 \012'
6796   lt_NL2SP='tr \015\012 \040\040'
6797   ;;
6798  *) # EBCDIC based system
6799   lt_SP2NL='tr \100 \n'
6800   lt_NL2SP='tr \r\n \100\100'
6801   ;;
6802 esac
6803
6804
6805
6806
6807
6808
6809
6810
6811
6812 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
6813 $as_echo_n "checking for $LD option to reload object files... " >&6; }
6814 if test "${lt_cv_ld_reload_flag+set}" = set; then :
6815   $as_echo_n "(cached) " >&6
6816 else
6817   lt_cv_ld_reload_flag='-r'
6818 fi
6819 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
6820 $as_echo "$lt_cv_ld_reload_flag" >&6; }
6821 reload_flag=$lt_cv_ld_reload_flag
6822 case $reload_flag in
6823 "" | " "*) ;;
6824 *) reload_flag=" $reload_flag" ;;
6825 esac
6826 reload_cmds='$LD$reload_flag -o $output$reload_objs'
6827 case $host_os in
6828   darwin*)
6829     if test "$GCC" = yes; then
6830       reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
6831     else
6832       reload_cmds='$LD$reload_flag -o $output$reload_objs'
6833     fi
6834     ;;
6835 esac
6836
6837
6838
6839
6840
6841
6842
6843
6844
6845 if test -n "$ac_tool_prefix"; then
6846   # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
6847 set dummy ${ac_tool_prefix}objdump; ac_word=$2
6848 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6849 $as_echo_n "checking for $ac_word... " >&6; }
6850 if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
6851   $as_echo_n "(cached) " >&6
6852 else
6853   if test -n "$OBJDUMP"; then
6854   ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
6855 else
6856 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6857 for as_dir in $PATH
6858 do
6859   IFS=$as_save_IFS
6860   test -z "$as_dir" && as_dir=.
6861     for ac_exec_ext in '' $ac_executable_extensions; do
6862   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6863     ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
6864     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6865     break 2
6866   fi
6867 done
6868   done
6869 IFS=$as_save_IFS
6870
6871 fi
6872 fi
6873 OBJDUMP=$ac_cv_prog_OBJDUMP
6874 if test -n "$OBJDUMP"; then
6875   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
6876 $as_echo "$OBJDUMP" >&6; }
6877 else
6878   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6879 $as_echo "no" >&6; }
6880 fi
6881
6882
6883 fi
6884 if test -z "$ac_cv_prog_OBJDUMP"; then
6885   ac_ct_OBJDUMP=$OBJDUMP
6886   # Extract the first word of "objdump", so it can be a program name with args.
6887 set dummy objdump; ac_word=$2
6888 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6889 $as_echo_n "checking for $ac_word... " >&6; }
6890 if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then :
6891   $as_echo_n "(cached) " >&6
6892 else
6893   if test -n "$ac_ct_OBJDUMP"; then
6894   ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
6895 else
6896 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6897 for as_dir in $PATH
6898 do
6899   IFS=$as_save_IFS
6900   test -z "$as_dir" && as_dir=.
6901     for ac_exec_ext in '' $ac_executable_extensions; do
6902   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6903     ac_cv_prog_ac_ct_OBJDUMP="objdump"
6904     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6905     break 2
6906   fi
6907 done
6908   done
6909 IFS=$as_save_IFS
6910
6911 fi
6912 fi
6913 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
6914 if test -n "$ac_ct_OBJDUMP"; then
6915   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
6916 $as_echo "$ac_ct_OBJDUMP" >&6; }
6917 else
6918   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6919 $as_echo "no" >&6; }
6920 fi
6921
6922   if test "x$ac_ct_OBJDUMP" = x; then
6923     OBJDUMP="false"
6924   else
6925     case $cross_compiling:$ac_tool_warned in
6926 yes:)
6927 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6928 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6929 ac_tool_warned=yes ;;
6930 esac
6931     OBJDUMP=$ac_ct_OBJDUMP
6932   fi
6933 else
6934   OBJDUMP="$ac_cv_prog_OBJDUMP"
6935 fi
6936
6937 test -z "$OBJDUMP" && OBJDUMP=objdump
6938
6939
6940
6941
6942
6943
6944
6945
6946
6947 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
6948 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
6949 if test "${lt_cv_deplibs_check_method+set}" = set; then :
6950   $as_echo_n "(cached) " >&6
6951 else
6952   lt_cv_file_magic_cmd='$MAGIC_CMD'
6953 lt_cv_file_magic_test_file=
6954 lt_cv_deplibs_check_method='unknown'
6955 # Need to set the preceding variable on all platforms that support
6956 # interlibrary dependencies.
6957 # 'none' -- dependencies not supported.
6958 # `unknown' -- same as none, but documents that we really don't know.
6959 # 'pass_all' -- all dependencies passed with no checks.
6960 # 'test_compile' -- check by making test program.
6961 # 'file_magic [[regex]]' -- check by looking for files in library path
6962 # which responds to the $file_magic_cmd with a given extended regex.
6963 # If you have `file' or equivalent on your system and you're not sure
6964 # whether `pass_all' will *always* work, you probably want this one.
6965
6966 case $host_os in
6967 aix[4-9]*)
6968   lt_cv_deplibs_check_method=pass_all
6969   ;;
6970
6971 beos*)
6972   lt_cv_deplibs_check_method=pass_all
6973   ;;
6974
6975 bsdi[45]*)
6976   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
6977   lt_cv_file_magic_cmd='/usr/bin/file -L'
6978   lt_cv_file_magic_test_file=/shlib/libc.so
6979   ;;
6980
6981 cygwin*)
6982   # func_win32_libid is a shell function defined in ltmain.sh
6983   lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6984   lt_cv_file_magic_cmd='func_win32_libid'
6985   ;;
6986
6987 mingw* | pw32*)
6988   # Base MSYS/MinGW do not provide the 'file' command needed by
6989   # func_win32_libid shell function, so use a weaker test based on 'objdump',
6990   # unless we find 'file', for example because we are cross-compiling.
6991   if ( file / ) >/dev/null 2>&1; then
6992     lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6993     lt_cv_file_magic_cmd='func_win32_libid'
6994   else
6995     lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
6996     lt_cv_file_magic_cmd='$OBJDUMP -f'
6997   fi
6998   ;;
6999
7000 cegcc)
7001   # use the weaker test based on 'objdump'. See mingw*.
7002   lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
7003   lt_cv_file_magic_cmd='$OBJDUMP -f'
7004   ;;
7005
7006 darwin* | rhapsody*)
7007   lt_cv_deplibs_check_method=pass_all
7008   ;;
7009
7010 freebsd* | dragonfly*)
7011   if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
7012     case $host_cpu in
7013     i*86 )
7014       # Not sure whether the presence of OpenBSD here was a mistake.
7015       # Let's accept both of them until this is cleared up.
7016       lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
7017       lt_cv_file_magic_cmd=/usr/bin/file
7018       lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
7019       ;;
7020     esac
7021   else
7022     lt_cv_deplibs_check_method=pass_all
7023   fi
7024   ;;
7025
7026 gnu*)
7027   lt_cv_deplibs_check_method=pass_all
7028   ;;
7029
7030 hpux10.20* | hpux11*)
7031   lt_cv_file_magic_cmd=/usr/bin/file
7032   case $host_cpu in
7033   ia64*)
7034     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
7035     lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
7036     ;;
7037   hppa*64*)
7038     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - PA-RISC [0-9].[0-9]'
7039     lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
7040     ;;
7041   *)
7042     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
7043     lt_cv_file_magic_test_file=/usr/lib/libc.sl
7044     ;;
7045   esac
7046   ;;
7047
7048 interix[3-9]*)
7049   # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
7050   lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
7051   ;;
7052
7053 irix5* | irix6* | nonstopux*)
7054   case $LD in
7055   *-32|*"-32 ") libmagic=32-bit;;
7056   *-n32|*"-n32 ") libmagic=N32;;
7057   *-64|*"-64 ") libmagic=64-bit;;
7058   *) libmagic=never-match;;
7059   esac
7060   lt_cv_deplibs_check_method=pass_all
7061   ;;
7062
7063 # This must be Linux ELF.
7064 linux* | k*bsd*-gnu)
7065   lt_cv_deplibs_check_method=pass_all
7066   ;;
7067
7068 netbsd*)
7069   if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
7070     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
7071   else
7072     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
7073   fi
7074   ;;
7075
7076 newos6*)
7077   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
7078   lt_cv_file_magic_cmd=/usr/bin/file
7079   lt_cv_file_magic_test_file=/usr/lib/libnls.so
7080   ;;
7081
7082 *nto* | *qnx*)
7083   lt_cv_deplibs_check_method=pass_all
7084   ;;
7085
7086 openbsd*)
7087   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
7088     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
7089   else
7090     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
7091   fi
7092   ;;
7093
7094 osf3* | osf4* | osf5*)
7095   lt_cv_deplibs_check_method=pass_all
7096   ;;
7097
7098 rdos*)
7099   lt_cv_deplibs_check_method=pass_all
7100   ;;
7101
7102 solaris*)
7103   lt_cv_deplibs_check_method=pass_all
7104   ;;
7105
7106 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
7107   lt_cv_deplibs_check_method=pass_all
7108   ;;
7109
7110 sysv4 | sysv4.3*)
7111   case $host_vendor in
7112   motorola)
7113     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]'
7114     lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
7115     ;;
7116   ncr)
7117     lt_cv_deplibs_check_method=pass_all
7118     ;;
7119   sequent)
7120     lt_cv_file_magic_cmd='/bin/file'
7121     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
7122     ;;
7123   sni)
7124     lt_cv_file_magic_cmd='/bin/file'
7125     lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
7126     lt_cv_file_magic_test_file=/lib/libc.so
7127     ;;
7128   siemens)
7129     lt_cv_deplibs_check_method=pass_all
7130     ;;
7131   pc)
7132     lt_cv_deplibs_check_method=pass_all
7133     ;;
7134   esac
7135   ;;
7136
7137 tpf*)
7138   lt_cv_deplibs_check_method=pass_all
7139   ;;
7140 esac
7141
7142 fi
7143 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
7144 $as_echo "$lt_cv_deplibs_check_method" >&6; }
7145 file_magic_cmd=$lt_cv_file_magic_cmd
7146 deplibs_check_method=$lt_cv_deplibs_check_method
7147 test -z "$deplibs_check_method" && deplibs_check_method=unknown
7148
7149
7150
7151
7152
7153
7154
7155
7156
7157
7158
7159
7160 if test -n "$ac_tool_prefix"; then
7161   # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
7162 set dummy ${ac_tool_prefix}ar; ac_word=$2
7163 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7164 $as_echo_n "checking for $ac_word... " >&6; }
7165 if test "${ac_cv_prog_AR+set}" = set; then :
7166   $as_echo_n "(cached) " >&6
7167 else
7168   if test -n "$AR"; then
7169   ac_cv_prog_AR="$AR" # Let the user override the test.
7170 else
7171 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7172 for as_dir in $PATH
7173 do
7174   IFS=$as_save_IFS
7175   test -z "$as_dir" && as_dir=.
7176     for ac_exec_ext in '' $ac_executable_extensions; do
7177   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7178     ac_cv_prog_AR="${ac_tool_prefix}ar"
7179     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7180     break 2
7181   fi
7182 done
7183   done
7184 IFS=$as_save_IFS
7185
7186 fi
7187 fi
7188 AR=$ac_cv_prog_AR
7189 if test -n "$AR"; then
7190   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
7191 $as_echo "$AR" >&6; }
7192 else
7193   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7194 $as_echo "no" >&6; }
7195 fi
7196
7197
7198 fi
7199 if test -z "$ac_cv_prog_AR"; then
7200   ac_ct_AR=$AR
7201   # Extract the first word of "ar", so it can be a program name with args.
7202 set dummy ar; ac_word=$2
7203 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7204 $as_echo_n "checking for $ac_word... " >&6; }
7205 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
7206   $as_echo_n "(cached) " >&6
7207 else
7208   if test -n "$ac_ct_AR"; then
7209   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
7210 else
7211 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7212 for as_dir in $PATH
7213 do
7214   IFS=$as_save_IFS
7215   test -z "$as_dir" && as_dir=.
7216     for ac_exec_ext in '' $ac_executable_extensions; do
7217   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7218     ac_cv_prog_ac_ct_AR="ar"
7219     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7220     break 2
7221   fi
7222 done
7223   done
7224 IFS=$as_save_IFS
7225
7226 fi
7227 fi
7228 ac_ct_AR=$ac_cv_prog_ac_ct_AR
7229 if test -n "$ac_ct_AR"; then
7230   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
7231 $as_echo "$ac_ct_AR" >&6; }
7232 else
7233   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7234 $as_echo "no" >&6; }
7235 fi
7236
7237   if test "x$ac_ct_AR" = x; then
7238     AR="false"
7239   else
7240     case $cross_compiling:$ac_tool_warned in
7241 yes:)
7242 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7243 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7244 ac_tool_warned=yes ;;
7245 esac
7246     AR=$ac_ct_AR
7247   fi
7248 else
7249   AR="$ac_cv_prog_AR"
7250 fi
7251
7252 test -z "$AR" && AR=ar
7253 test -z "$AR_FLAGS" && AR_FLAGS=cru
7254
7255
7256
7257
7258
7259
7260
7261
7262
7263
7264
7265 if test -n "$ac_tool_prefix"; then
7266   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
7267 set dummy ${ac_tool_prefix}strip; ac_word=$2
7268 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7269 $as_echo_n "checking for $ac_word... " >&6; }
7270 if test "${ac_cv_prog_STRIP+set}" = set; then :
7271   $as_echo_n "(cached) " >&6
7272 else
7273   if test -n "$STRIP"; then
7274   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
7275 else
7276 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7277 for as_dir in $PATH
7278 do
7279   IFS=$as_save_IFS
7280   test -z "$as_dir" && as_dir=.
7281     for ac_exec_ext in '' $ac_executable_extensions; do
7282   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7283     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
7284     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7285     break 2
7286   fi
7287 done
7288   done
7289 IFS=$as_save_IFS
7290
7291 fi
7292 fi
7293 STRIP=$ac_cv_prog_STRIP
7294 if test -n "$STRIP"; then
7295   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
7296 $as_echo "$STRIP" >&6; }
7297 else
7298   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7299 $as_echo "no" >&6; }
7300 fi
7301
7302
7303 fi
7304 if test -z "$ac_cv_prog_STRIP"; then
7305   ac_ct_STRIP=$STRIP
7306   # Extract the first word of "strip", so it can be a program name with args.
7307 set dummy strip; ac_word=$2
7308 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7309 $as_echo_n "checking for $ac_word... " >&6; }
7310 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
7311   $as_echo_n "(cached) " >&6
7312 else
7313   if test -n "$ac_ct_STRIP"; then
7314   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
7315 else
7316 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7317 for as_dir in $PATH
7318 do
7319   IFS=$as_save_IFS
7320   test -z "$as_dir" && as_dir=.
7321     for ac_exec_ext in '' $ac_executable_extensions; do
7322   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7323     ac_cv_prog_ac_ct_STRIP="strip"
7324     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7325     break 2
7326   fi
7327 done
7328   done
7329 IFS=$as_save_IFS
7330
7331 fi
7332 fi
7333 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
7334 if test -n "$ac_ct_STRIP"; then
7335   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
7336 $as_echo "$ac_ct_STRIP" >&6; }
7337 else
7338   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7339 $as_echo "no" >&6; }
7340 fi
7341
7342   if test "x$ac_ct_STRIP" = x; then
7343     STRIP=":"
7344   else
7345     case $cross_compiling:$ac_tool_warned in
7346 yes:)
7347 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7348 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7349 ac_tool_warned=yes ;;
7350 esac
7351     STRIP=$ac_ct_STRIP
7352   fi
7353 else
7354   STRIP="$ac_cv_prog_STRIP"
7355 fi
7356
7357 test -z "$STRIP" && STRIP=:
7358
7359
7360
7361
7362
7363
7364 if test -n "$ac_tool_prefix"; then
7365   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
7366 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
7367 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7368 $as_echo_n "checking for $ac_word... " >&6; }
7369 if test "${ac_cv_prog_RANLIB+set}" = set; then :
7370   $as_echo_n "(cached) " >&6
7371 else
7372   if test -n "$RANLIB"; then
7373   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
7374 else
7375 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7376 for as_dir in $PATH
7377 do
7378   IFS=$as_save_IFS
7379   test -z "$as_dir" && as_dir=.
7380     for ac_exec_ext in '' $ac_executable_extensions; do
7381   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7382     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
7383     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7384     break 2
7385   fi
7386 done
7387   done
7388 IFS=$as_save_IFS
7389
7390 fi
7391 fi
7392 RANLIB=$ac_cv_prog_RANLIB
7393 if test -n "$RANLIB"; then
7394   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
7395 $as_echo "$RANLIB" >&6; }
7396 else
7397   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7398 $as_echo "no" >&6; }
7399 fi
7400
7401
7402 fi
7403 if test -z "$ac_cv_prog_RANLIB"; then
7404   ac_ct_RANLIB=$RANLIB
7405   # Extract the first word of "ranlib", so it can be a program name with args.
7406 set dummy ranlib; ac_word=$2
7407 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7408 $as_echo_n "checking for $ac_word... " >&6; }
7409 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
7410   $as_echo_n "(cached) " >&6
7411 else
7412   if test -n "$ac_ct_RANLIB"; then
7413   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
7414 else
7415 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7416 for as_dir in $PATH
7417 do
7418   IFS=$as_save_IFS
7419   test -z "$as_dir" && as_dir=.
7420     for ac_exec_ext in '' $ac_executable_extensions; do
7421   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7422     ac_cv_prog_ac_ct_RANLIB="ranlib"
7423     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7424     break 2
7425   fi
7426 done
7427   done
7428 IFS=$as_save_IFS
7429
7430 fi
7431 fi
7432 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
7433 if test -n "$ac_ct_RANLIB"; then
7434   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
7435 $as_echo "$ac_ct_RANLIB" >&6; }
7436 else
7437   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7438 $as_echo "no" >&6; }
7439 fi
7440
7441   if test "x$ac_ct_RANLIB" = x; then
7442     RANLIB=":"
7443   else
7444     case $cross_compiling:$ac_tool_warned in
7445 yes:)
7446 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7447 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7448 ac_tool_warned=yes ;;
7449 esac
7450     RANLIB=$ac_ct_RANLIB
7451   fi
7452 else
7453   RANLIB="$ac_cv_prog_RANLIB"
7454 fi
7455
7456 test -z "$RANLIB" && RANLIB=:
7457
7458
7459
7460
7461
7462
7463 # Determine commands to create old-style static archives.
7464 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
7465 old_postinstall_cmds='chmod 644 $oldlib'
7466 old_postuninstall_cmds=
7467
7468 if test -n "$RANLIB"; then
7469   case $host_os in
7470   openbsd*)
7471     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
7472     ;;
7473   *)
7474     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
7475     ;;
7476   esac
7477   old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
7478 fi
7479
7480
7481
7482
7483
7484
7485
7486
7487
7488
7489
7490
7491
7492
7493
7494
7495
7496
7497
7498
7499
7500
7501
7502
7503
7504
7505
7506
7507
7508
7509
7510
7511
7512
7513 # If no C compiler was specified, use CC.
7514 LTCC=${LTCC-"$CC"}
7515
7516 # If no C compiler flags were specified, use CFLAGS.
7517 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7518
7519 # Allow CC to be a program name with arguments.
7520 compiler=$CC
7521
7522
7523 # Check for command to grab the raw symbol name followed by C symbol from nm.
7524 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
7525 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
7526 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then :
7527   $as_echo_n "(cached) " >&6
7528 else
7529
7530 # These are sane defaults that work on at least a few old systems.
7531 # [They come from Ultrix.  What could be older than Ultrix?!! ;)]
7532
7533 # Character class describing NM global symbol codes.
7534 symcode='[BCDEGRST]'
7535
7536 # Regexp to match symbols that can be accessed directly from C.
7537 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
7538
7539 # Define system-specific variables.
7540 case $host_os in
7541 aix*)
7542   symcode='[BCDT]'
7543   ;;
7544 cygwin* | mingw* | pw32* | cegcc*)
7545   symcode='[ABCDGISTW]'
7546   ;;
7547 hpux*)
7548   if test "$host_cpu" = ia64; then
7549     symcode='[ABCDEGRST]'
7550   fi
7551   ;;
7552 irix* | nonstopux*)
7553   symcode='[BCDEGRST]'
7554   ;;
7555 osf*)
7556   symcode='[BCDEGQRST]'
7557   ;;
7558 solaris*)
7559   symcode='[BDRT]'
7560   ;;
7561 sco3.2v5*)
7562   symcode='[DT]'
7563   ;;
7564 sysv4.2uw2*)
7565   symcode='[DT]'
7566   ;;
7567 sysv5* | sco5v6* | unixware* | OpenUNIX*)
7568   symcode='[ABDT]'
7569   ;;
7570 sysv4)
7571   symcode='[DFNSTU]'
7572   ;;
7573 esac
7574
7575 # If we're using GNU nm, then use its standard symbol codes.
7576 case `$NM -V 2>&1` in
7577 *GNU* | *'with BFD'*)
7578   symcode='[ABCDGIRSTW]' ;;
7579 esac
7580
7581 # Transform an extracted symbol line into a proper C declaration.
7582 # Some systems (esp. on ia64) link data and code symbols differently,
7583 # so use this general approach.
7584 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
7585
7586 # Transform an extracted symbol line into symbol name and symbol address
7587 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/  {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"\2\", (void *) \&\2},/p'"
7588 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'"
7589
7590 # Handle CRLF in mingw tool chain
7591 opt_cr=
7592 case $build_os in
7593 mingw*)
7594   opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
7595   ;;
7596 esac
7597
7598 # Try without a prefix underscore, then with it.
7599 for ac_symprfx in "" "_"; do
7600
7601   # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
7602   symxfrm="\\1 $ac_symprfx\\2 \\2"
7603
7604   # Write the raw and C identifiers.
7605   if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7606     # Fake it for dumpbin and say T for any non-static function
7607     # and D for any global variable.
7608     # Also find C++ and __fastcall symbols from MSVC++,
7609     # which start with @ or ?.
7610     lt_cv_sys_global_symbol_pipe="$AWK '"\
7611 "     {last_section=section; section=\$ 3};"\
7612 "     /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
7613 "     \$ 0!~/External *\|/{next};"\
7614 "     / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
7615 "     {if(hide[section]) next};"\
7616 "     {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
7617 "     {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
7618 "     s[1]~/^[@?]/{print s[1], s[1]; next};"\
7619 "     s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
7620 "     ' prfx=^$ac_symprfx"
7621   else
7622     lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[      ]\($symcode$symcode*\)[         ][      ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
7623   fi
7624
7625   # Check to see that the pipe works correctly.
7626   pipe_works=no
7627
7628   rm -f conftest*
7629   cat > conftest.$ac_ext <<_LT_EOF
7630 #ifdef __cplusplus
7631 extern "C" {
7632 #endif
7633 char nm_test_var;
7634 void nm_test_func(void);
7635 void nm_test_func(void){}
7636 #ifdef __cplusplus
7637 }
7638 #endif
7639 int main(){nm_test_var='a';nm_test_func();return(0);}
7640 _LT_EOF
7641
7642   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7643   (eval $ac_compile) 2>&5
7644   ac_status=$?
7645   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7646   test $ac_status = 0; }; then
7647     # Now try to grab the symbols.
7648     nlist=conftest.nm
7649     if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\""; } >&5
7650   (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
7651   ac_status=$?
7652   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7653   test $ac_status = 0; } && test -s "$nlist"; then
7654       # Try sorting and uniquifying the output.
7655       if sort "$nlist" | uniq > "$nlist"T; then
7656         mv -f "$nlist"T "$nlist"
7657       else
7658         rm -f "$nlist"T
7659       fi
7660
7661       # Make sure that we snagged all the symbols we need.
7662       if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
7663         if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
7664           cat <<_LT_EOF > conftest.$ac_ext
7665 #ifdef __cplusplus
7666 extern "C" {
7667 #endif
7668
7669 _LT_EOF
7670           # Now generate the symbol file.
7671           eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
7672
7673           cat <<_LT_EOF >> conftest.$ac_ext
7674
7675 /* The mapping between symbol names and symbols.  */
7676 const struct {
7677   const char *name;
7678   void       *address;
7679 }
7680 lt__PROGRAM__LTX_preloaded_symbols[] =
7681 {
7682   { "@PROGRAM@", (void *) 0 },
7683 _LT_EOF
7684           $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
7685           cat <<\_LT_EOF >> conftest.$ac_ext
7686   {0, (void *) 0}
7687 };
7688
7689 /* This works around a problem in FreeBSD linker */
7690 #ifdef FREEBSD_WORKAROUND
7691 static const void *lt_preloaded_setup() {
7692   return lt__PROGRAM__LTX_preloaded_symbols;
7693 }
7694 #endif
7695
7696 #ifdef __cplusplus
7697 }
7698 #endif
7699 _LT_EOF
7700           # Now try linking the two files.
7701           mv conftest.$ac_objext conftstm.$ac_objext
7702           lt_save_LIBS="$LIBS"
7703           lt_save_CFLAGS="$CFLAGS"
7704           LIBS="conftstm.$ac_objext"
7705           CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
7706           if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
7707   (eval $ac_link) 2>&5
7708   ac_status=$?
7709   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7710   test $ac_status = 0; } && test -s conftest${ac_exeext}; then
7711             pipe_works=yes
7712           fi
7713           LIBS="$lt_save_LIBS"
7714           CFLAGS="$lt_save_CFLAGS"
7715         else
7716           echo "cannot find nm_test_func in $nlist" >&5
7717         fi
7718       else
7719         echo "cannot find nm_test_var in $nlist" >&5
7720       fi
7721     else
7722       echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
7723     fi
7724   else
7725     echo "$progname: failed program was:" >&5
7726     cat conftest.$ac_ext >&5
7727   fi
7728   rm -rf conftest* conftst*
7729
7730   # Do not use the global_symbol_pipe unless it works.
7731   if test "$pipe_works" = yes; then
7732     break
7733   else
7734     lt_cv_sys_global_symbol_pipe=
7735   fi
7736 done
7737
7738 fi
7739
7740 if test -z "$lt_cv_sys_global_symbol_pipe"; then
7741   lt_cv_sys_global_symbol_to_cdecl=
7742 fi
7743 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
7744   { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
7745 $as_echo "failed" >&6; }
7746 else
7747   { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
7748 $as_echo "ok" >&6; }
7749 fi
7750
7751
7752
7753
7754
7755
7756
7757
7758
7759
7760
7761
7762
7763
7764
7765
7766
7767
7768
7769
7770
7771
7772 # Check whether --enable-libtool-lock was given.
7773 if test "${enable_libtool_lock+set}" = set; then :
7774   enableval=$enable_libtool_lock;
7775 fi
7776
7777 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
7778
7779 # Some flags need to be propagated to the compiler or linker for good
7780 # libtool support.
7781 case $host in
7782 ia64-*-hpux*)
7783   # Find out which ABI we are using.
7784   echo 'int i;' > conftest.$ac_ext
7785   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7786   (eval $ac_compile) 2>&5
7787   ac_status=$?
7788   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7789   test $ac_status = 0; }; then
7790     case `/usr/bin/file conftest.$ac_objext` in
7791       *ELF-32*)
7792         HPUX_IA64_MODE="32"
7793         ;;
7794       *ELF-64*)
7795         HPUX_IA64_MODE="64"
7796         ;;
7797     esac
7798   fi
7799   rm -rf conftest*
7800   ;;
7801 *-*-irix6*)
7802   # Find out which ABI we are using.
7803   echo '#line 7803 "configure"' > conftest.$ac_ext
7804   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7805   (eval $ac_compile) 2>&5
7806   ac_status=$?
7807   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7808   test $ac_status = 0; }; then
7809     if test "$lt_cv_prog_gnu_ld" = yes; then
7810       case `/usr/bin/file conftest.$ac_objext` in
7811         *32-bit*)
7812           LD="${LD-ld} -melf32bsmip"
7813           ;;
7814         *N32*)
7815           LD="${LD-ld} -melf32bmipn32"
7816           ;;
7817         *64-bit*)
7818           LD="${LD-ld} -melf64bmip"
7819         ;;
7820       esac
7821     else
7822       case `/usr/bin/file conftest.$ac_objext` in
7823         *32-bit*)
7824           LD="${LD-ld} -32"
7825           ;;
7826         *N32*)
7827           LD="${LD-ld} -n32"
7828           ;;
7829         *64-bit*)
7830           LD="${LD-ld} -64"
7831           ;;
7832       esac
7833     fi
7834   fi
7835   rm -rf conftest*
7836   ;;
7837
7838 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
7839 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
7840   # Find out which ABI we are using.
7841   echo 'int i;' > conftest.$ac_ext
7842   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7843   (eval $ac_compile) 2>&5
7844   ac_status=$?
7845   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7846   test $ac_status = 0; }; then
7847     case `/usr/bin/file conftest.o` in
7848       *32-bit*)
7849         case $host in
7850           x86_64-*kfreebsd*-gnu)
7851             LD="${LD-ld} -m elf_i386_fbsd"
7852             ;;
7853           x86_64-*linux*)
7854             LD="${LD-ld} -m elf_i386"
7855             ;;
7856           ppc64-*linux*|powerpc64-*linux*)
7857             LD="${LD-ld} -m elf32ppclinux"
7858             ;;
7859           s390x-*linux*)
7860             LD="${LD-ld} -m elf_s390"
7861             ;;
7862           sparc64-*linux*)
7863             LD="${LD-ld} -m elf32_sparc"
7864             ;;
7865         esac
7866         ;;
7867       *64-bit*)
7868         case $host in
7869           x86_64-*kfreebsd*-gnu)
7870             LD="${LD-ld} -m elf_x86_64_fbsd"
7871             ;;
7872           x86_64-*linux*)
7873             LD="${LD-ld} -m elf_x86_64"
7874             ;;
7875           ppc*-*linux*|powerpc*-*linux*)
7876             LD="${LD-ld} -m elf64ppc"
7877             ;;
7878           s390*-*linux*|s390*-*tpf*)
7879             LD="${LD-ld} -m elf64_s390"
7880             ;;
7881           sparc*-*linux*)
7882             LD="${LD-ld} -m elf64_sparc"
7883             ;;
7884         esac
7885         ;;
7886     esac
7887   fi
7888   rm -rf conftest*
7889   ;;
7890
7891 *-*-sco3.2v5*)
7892   # On SCO OpenServer 5, we need -belf to get full-featured binaries.
7893   SAVE_CFLAGS="$CFLAGS"
7894   CFLAGS="$CFLAGS -belf"
7895   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
7896 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
7897 if test "${lt_cv_cc_needs_belf+set}" = set; then :
7898   $as_echo_n "(cached) " >&6
7899 else
7900   ac_ext=c
7901 ac_cpp='$CPP $CPPFLAGS'
7902 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7903 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7904 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7905
7906      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7907 /* end confdefs.h.  */
7908
7909 int
7910 main ()
7911 {
7912
7913   ;
7914   return 0;
7915 }
7916 _ACEOF
7917 if ac_fn_c_try_link "$LINENO"; then :
7918   lt_cv_cc_needs_belf=yes
7919 else
7920   lt_cv_cc_needs_belf=no
7921 fi
7922 rm -f core conftest.err conftest.$ac_objext \
7923     conftest$ac_exeext conftest.$ac_ext
7924      ac_ext=c
7925 ac_cpp='$CPP $CPPFLAGS'
7926 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7927 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7928 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7929
7930 fi
7931 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
7932 $as_echo "$lt_cv_cc_needs_belf" >&6; }
7933   if test x"$lt_cv_cc_needs_belf" != x"yes"; then
7934     # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
7935     CFLAGS="$SAVE_CFLAGS"
7936   fi
7937   ;;
7938 sparc*-*solaris*)
7939   # Find out which ABI we are using.
7940   echo 'int i;' > conftest.$ac_ext
7941   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7942   (eval $ac_compile) 2>&5
7943   ac_status=$?
7944   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7945   test $ac_status = 0; }; then
7946     case `/usr/bin/file conftest.o` in
7947     *64-bit*)
7948       case $lt_cv_prog_gnu_ld in
7949       yes*) LD="${LD-ld} -m elf64_sparc" ;;
7950       *)
7951         if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
7952           LD="${LD-ld} -64"
7953         fi
7954         ;;
7955       esac
7956       ;;
7957     esac
7958   fi
7959   rm -rf conftest*
7960   ;;
7961 esac
7962
7963 need_locks="$enable_libtool_lock"
7964
7965
7966   case $host_os in
7967     rhapsody* | darwin*)
7968     if test -n "$ac_tool_prefix"; then
7969   # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
7970 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
7971 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7972 $as_echo_n "checking for $ac_word... " >&6; }
7973 if test "${ac_cv_prog_DSYMUTIL+set}" = set; then :
7974   $as_echo_n "(cached) " >&6
7975 else
7976   if test -n "$DSYMUTIL"; then
7977   ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
7978 else
7979 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7980 for as_dir in $PATH
7981 do
7982   IFS=$as_save_IFS
7983   test -z "$as_dir" && as_dir=.
7984     for ac_exec_ext in '' $ac_executable_extensions; do
7985   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7986     ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
7987     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7988     break 2
7989   fi
7990 done
7991   done
7992 IFS=$as_save_IFS
7993
7994 fi
7995 fi
7996 DSYMUTIL=$ac_cv_prog_DSYMUTIL
7997 if test -n "$DSYMUTIL"; then
7998   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
7999 $as_echo "$DSYMUTIL" >&6; }
8000 else
8001   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8002 $as_echo "no" >&6; }
8003 fi
8004
8005
8006 fi
8007 if test -z "$ac_cv_prog_DSYMUTIL"; then
8008   ac_ct_DSYMUTIL=$DSYMUTIL
8009   # Extract the first word of "dsymutil", so it can be a program name with args.
8010 set dummy dsymutil; ac_word=$2
8011 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8012 $as_echo_n "checking for $ac_word... " >&6; }
8013 if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then :
8014   $as_echo_n "(cached) " >&6
8015 else
8016   if test -n "$ac_ct_DSYMUTIL"; then
8017   ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
8018 else
8019 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8020 for as_dir in $PATH
8021 do
8022   IFS=$as_save_IFS
8023   test -z "$as_dir" && as_dir=.
8024     for ac_exec_ext in '' $ac_executable_extensions; do
8025   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8026     ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
8027     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8028     break 2
8029   fi
8030 done
8031   done
8032 IFS=$as_save_IFS
8033
8034 fi
8035 fi
8036 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
8037 if test -n "$ac_ct_DSYMUTIL"; then
8038   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
8039 $as_echo "$ac_ct_DSYMUTIL" >&6; }
8040 else
8041   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8042 $as_echo "no" >&6; }
8043 fi
8044
8045   if test "x$ac_ct_DSYMUTIL" = x; then
8046     DSYMUTIL=":"
8047   else
8048     case $cross_compiling:$ac_tool_warned in
8049 yes:)
8050 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8051 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8052 ac_tool_warned=yes ;;
8053 esac
8054     DSYMUTIL=$ac_ct_DSYMUTIL
8055   fi
8056 else
8057   DSYMUTIL="$ac_cv_prog_DSYMUTIL"
8058 fi
8059
8060     if test -n "$ac_tool_prefix"; then
8061   # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
8062 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
8063 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8064 $as_echo_n "checking for $ac_word... " >&6; }
8065 if test "${ac_cv_prog_NMEDIT+set}" = set; then :
8066   $as_echo_n "(cached) " >&6
8067 else
8068   if test -n "$NMEDIT"; then
8069   ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
8070 else
8071 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8072 for as_dir in $PATH
8073 do
8074   IFS=$as_save_IFS
8075   test -z "$as_dir" && as_dir=.
8076     for ac_exec_ext in '' $ac_executable_extensions; do
8077   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8078     ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
8079     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8080     break 2
8081   fi
8082 done
8083   done
8084 IFS=$as_save_IFS
8085
8086 fi
8087 fi
8088 NMEDIT=$ac_cv_prog_NMEDIT
8089 if test -n "$NMEDIT"; then
8090   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
8091 $as_echo "$NMEDIT" >&6; }
8092 else
8093   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8094 $as_echo "no" >&6; }
8095 fi
8096
8097
8098 fi
8099 if test -z "$ac_cv_prog_NMEDIT"; then
8100   ac_ct_NMEDIT=$NMEDIT
8101   # Extract the first word of "nmedit", so it can be a program name with args.
8102 set dummy nmedit; ac_word=$2
8103 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8104 $as_echo_n "checking for $ac_word... " >&6; }
8105 if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then :
8106   $as_echo_n "(cached) " >&6
8107 else
8108   if test -n "$ac_ct_NMEDIT"; then
8109   ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
8110 else
8111 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8112 for as_dir in $PATH
8113 do
8114   IFS=$as_save_IFS
8115   test -z "$as_dir" && as_dir=.
8116     for ac_exec_ext in '' $ac_executable_extensions; do
8117   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8118     ac_cv_prog_ac_ct_NMEDIT="nmedit"
8119     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8120     break 2
8121   fi
8122 done
8123   done
8124 IFS=$as_save_IFS
8125
8126 fi
8127 fi
8128 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
8129 if test -n "$ac_ct_NMEDIT"; then
8130   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
8131 $as_echo "$ac_ct_NMEDIT" >&6; }
8132 else
8133   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8134 $as_echo "no" >&6; }
8135 fi
8136
8137   if test "x$ac_ct_NMEDIT" = x; then
8138     NMEDIT=":"
8139   else
8140     case $cross_compiling:$ac_tool_warned in
8141 yes:)
8142 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8143 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8144 ac_tool_warned=yes ;;
8145 esac
8146     NMEDIT=$ac_ct_NMEDIT
8147   fi
8148 else
8149   NMEDIT="$ac_cv_prog_NMEDIT"
8150 fi
8151
8152     if test -n "$ac_tool_prefix"; then
8153   # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
8154 set dummy ${ac_tool_prefix}lipo; ac_word=$2
8155 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8156 $as_echo_n "checking for $ac_word... " >&6; }
8157 if test "${ac_cv_prog_LIPO+set}" = set; then :
8158   $as_echo_n "(cached) " >&6
8159 else
8160   if test -n "$LIPO"; then
8161   ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
8162 else
8163 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8164 for as_dir in $PATH
8165 do
8166   IFS=$as_save_IFS
8167   test -z "$as_dir" && as_dir=.
8168     for ac_exec_ext in '' $ac_executable_extensions; do
8169   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8170     ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
8171     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8172     break 2
8173   fi
8174 done
8175   done
8176 IFS=$as_save_IFS
8177
8178 fi
8179 fi
8180 LIPO=$ac_cv_prog_LIPO
8181 if test -n "$LIPO"; then
8182   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
8183 $as_echo "$LIPO" >&6; }
8184 else
8185   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8186 $as_echo "no" >&6; }
8187 fi
8188
8189
8190 fi
8191 if test -z "$ac_cv_prog_LIPO"; then
8192   ac_ct_LIPO=$LIPO
8193   # Extract the first word of "lipo", so it can be a program name with args.
8194 set dummy lipo; ac_word=$2
8195 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8196 $as_echo_n "checking for $ac_word... " >&6; }
8197 if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then :
8198   $as_echo_n "(cached) " >&6
8199 else
8200   if test -n "$ac_ct_LIPO"; then
8201   ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
8202 else
8203 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8204 for as_dir in $PATH
8205 do
8206   IFS=$as_save_IFS
8207   test -z "$as_dir" && as_dir=.
8208     for ac_exec_ext in '' $ac_executable_extensions; do
8209   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8210     ac_cv_prog_ac_ct_LIPO="lipo"
8211     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8212     break 2
8213   fi
8214 done
8215   done
8216 IFS=$as_save_IFS
8217
8218 fi
8219 fi
8220 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
8221 if test -n "$ac_ct_LIPO"; then
8222   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
8223 $as_echo "$ac_ct_LIPO" >&6; }
8224 else
8225   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8226 $as_echo "no" >&6; }
8227 fi
8228
8229   if test "x$ac_ct_LIPO" = x; then
8230     LIPO=":"
8231   else
8232     case $cross_compiling:$ac_tool_warned in
8233 yes:)
8234 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8235 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8236 ac_tool_warned=yes ;;
8237 esac
8238     LIPO=$ac_ct_LIPO
8239   fi
8240 else
8241   LIPO="$ac_cv_prog_LIPO"
8242 fi
8243
8244     if test -n "$ac_tool_prefix"; then
8245   # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
8246 set dummy ${ac_tool_prefix}otool; ac_word=$2
8247 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8248 $as_echo_n "checking for $ac_word... " >&6; }
8249 if test "${ac_cv_prog_OTOOL+set}" = set; then :
8250   $as_echo_n "(cached) " >&6
8251 else
8252   if test -n "$OTOOL"; then
8253   ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
8254 else
8255 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8256 for as_dir in $PATH
8257 do
8258   IFS=$as_save_IFS
8259   test -z "$as_dir" && as_dir=.
8260     for ac_exec_ext in '' $ac_executable_extensions; do
8261   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8262     ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
8263     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8264     break 2
8265   fi
8266 done
8267   done
8268 IFS=$as_save_IFS
8269
8270 fi
8271 fi
8272 OTOOL=$ac_cv_prog_OTOOL
8273 if test -n "$OTOOL"; then
8274   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
8275 $as_echo "$OTOOL" >&6; }
8276 else
8277   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8278 $as_echo "no" >&6; }
8279 fi
8280
8281
8282 fi
8283 if test -z "$ac_cv_prog_OTOOL"; then
8284   ac_ct_OTOOL=$OTOOL
8285   # Extract the first word of "otool", so it can be a program name with args.
8286 set dummy otool; ac_word=$2
8287 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8288 $as_echo_n "checking for $ac_word... " >&6; }
8289 if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then :
8290   $as_echo_n "(cached) " >&6
8291 else
8292   if test -n "$ac_ct_OTOOL"; then
8293   ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
8294 else
8295 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8296 for as_dir in $PATH
8297 do
8298   IFS=$as_save_IFS
8299   test -z "$as_dir" && as_dir=.
8300     for ac_exec_ext in '' $ac_executable_extensions; do
8301   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8302     ac_cv_prog_ac_ct_OTOOL="otool"
8303     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8304     break 2
8305   fi
8306 done
8307   done
8308 IFS=$as_save_IFS
8309
8310 fi
8311 fi
8312 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
8313 if test -n "$ac_ct_OTOOL"; then
8314   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
8315 $as_echo "$ac_ct_OTOOL" >&6; }
8316 else
8317   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8318 $as_echo "no" >&6; }
8319 fi
8320
8321   if test "x$ac_ct_OTOOL" = x; then
8322     OTOOL=":"
8323   else
8324     case $cross_compiling:$ac_tool_warned in
8325 yes:)
8326 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8327 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8328 ac_tool_warned=yes ;;
8329 esac
8330     OTOOL=$ac_ct_OTOOL
8331   fi
8332 else
8333   OTOOL="$ac_cv_prog_OTOOL"
8334 fi
8335
8336     if test -n "$ac_tool_prefix"; then
8337   # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
8338 set dummy ${ac_tool_prefix}otool64; ac_word=$2
8339 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8340 $as_echo_n "checking for $ac_word... " >&6; }
8341 if test "${ac_cv_prog_OTOOL64+set}" = set; then :
8342   $as_echo_n "(cached) " >&6
8343 else
8344   if test -n "$OTOOL64"; then
8345   ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
8346 else
8347 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8348 for as_dir in $PATH
8349 do
8350   IFS=$as_save_IFS
8351   test -z "$as_dir" && as_dir=.
8352     for ac_exec_ext in '' $ac_executable_extensions; do
8353   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8354     ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
8355     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8356     break 2
8357   fi
8358 done
8359   done
8360 IFS=$as_save_IFS
8361
8362 fi
8363 fi
8364 OTOOL64=$ac_cv_prog_OTOOL64
8365 if test -n "$OTOOL64"; then
8366   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
8367 $as_echo "$OTOOL64" >&6; }
8368 else
8369   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8370 $as_echo "no" >&6; }
8371 fi
8372
8373
8374 fi
8375 if test -z "$ac_cv_prog_OTOOL64"; then
8376   ac_ct_OTOOL64=$OTOOL64
8377   # Extract the first word of "otool64", so it can be a program name with args.
8378 set dummy otool64; ac_word=$2
8379 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8380 $as_echo_n "checking for $ac_word... " >&6; }
8381 if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then :
8382   $as_echo_n "(cached) " >&6
8383 else
8384   if test -n "$ac_ct_OTOOL64"; then
8385   ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
8386 else
8387 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8388 for as_dir in $PATH
8389 do
8390   IFS=$as_save_IFS
8391   test -z "$as_dir" && as_dir=.
8392     for ac_exec_ext in '' $ac_executable_extensions; do
8393   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8394     ac_cv_prog_ac_ct_OTOOL64="otool64"
8395     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8396     break 2
8397   fi
8398 done
8399   done
8400 IFS=$as_save_IFS
8401
8402 fi
8403 fi
8404 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
8405 if test -n "$ac_ct_OTOOL64"; then
8406   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
8407 $as_echo "$ac_ct_OTOOL64" >&6; }
8408 else
8409   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8410 $as_echo "no" >&6; }
8411 fi
8412
8413   if test "x$ac_ct_OTOOL64" = x; then
8414     OTOOL64=":"
8415   else
8416     case $cross_compiling:$ac_tool_warned in
8417 yes:)
8418 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8419 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8420 ac_tool_warned=yes ;;
8421 esac
8422     OTOOL64=$ac_ct_OTOOL64
8423   fi
8424 else
8425   OTOOL64="$ac_cv_prog_OTOOL64"
8426 fi
8427
8428
8429
8430
8431
8432
8433
8434
8435
8436
8437
8438
8439
8440
8441
8442
8443
8444
8445
8446
8447
8448
8449
8450
8451
8452
8453
8454     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
8455 $as_echo_n "checking for -single_module linker flag... " >&6; }
8456 if test "${lt_cv_apple_cc_single_mod+set}" = set; then :
8457   $as_echo_n "(cached) " >&6
8458 else
8459   lt_cv_apple_cc_single_mod=no
8460       if test -z "${LT_MULTI_MODULE}"; then
8461         # By default we will add the -single_module flag. You can override
8462         # by either setting the environment variable LT_MULTI_MODULE
8463         # non-empty at configure time, or by adding -multi_module to the
8464         # link flags.
8465         rm -rf libconftest.dylib*
8466         echo "int foo(void){return 1;}" > conftest.c
8467         echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8468 -dynamiclib -Wl,-single_module conftest.c" >&5
8469         $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8470           -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
8471         _lt_result=$?
8472         if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
8473           lt_cv_apple_cc_single_mod=yes
8474         else
8475           cat conftest.err >&5
8476         fi
8477         rm -rf libconftest.dylib*
8478         rm -f conftest.*
8479       fi
8480 fi
8481 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
8482 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
8483     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
8484 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
8485 if test "${lt_cv_ld_exported_symbols_list+set}" = set; then :
8486   $as_echo_n "(cached) " >&6
8487 else
8488   lt_cv_ld_exported_symbols_list=no
8489       save_LDFLAGS=$LDFLAGS
8490       echo "_main" > conftest.sym
8491       LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
8492       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8493 /* end confdefs.h.  */
8494
8495 int
8496 main ()
8497 {
8498
8499   ;
8500   return 0;
8501 }
8502 _ACEOF
8503 if ac_fn_c_try_link "$LINENO"; then :
8504   lt_cv_ld_exported_symbols_list=yes
8505 else
8506   lt_cv_ld_exported_symbols_list=no
8507 fi
8508 rm -f core conftest.err conftest.$ac_objext \
8509     conftest$ac_exeext conftest.$ac_ext
8510         LDFLAGS="$save_LDFLAGS"
8511
8512 fi
8513 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
8514 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
8515     case $host_os in
8516     rhapsody* | darwin1.[012])
8517       _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
8518     darwin1.*)
8519       _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
8520     darwin*) # darwin 5.x on
8521       # if running on 10.5 or later, the deployment target defaults
8522       # to the OS version, if on x86, and 10.4, the deployment
8523       # target defaults to 10.4. Don't you love it?
8524       case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
8525         10.0,*86*-darwin8*|10.0,*-darwin[91]*)
8526           _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
8527         10.[012]*)
8528           _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
8529         10.*)
8530           _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
8531       esac
8532     ;;
8533   esac
8534     if test "$lt_cv_apple_cc_single_mod" = "yes"; then
8535       _lt_dar_single_mod='$single_module'
8536     fi
8537     if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
8538       _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
8539     else
8540       _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
8541     fi
8542     if test "$DSYMUTIL" != ":"; then
8543       _lt_dsymutil='~$DSYMUTIL $lib || :'
8544     else
8545       _lt_dsymutil=
8546     fi
8547     ;;
8548   esac
8549
8550 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
8551 $as_echo_n "checking for ANSI C header files... " >&6; }
8552 if test "${ac_cv_header_stdc+set}" = set; then :
8553   $as_echo_n "(cached) " >&6
8554 else
8555   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8556 /* end confdefs.h.  */
8557 #include <stdlib.h>
8558 #include <stdarg.h>
8559 #include <string.h>
8560 #include <float.h>
8561
8562 int
8563 main ()
8564 {
8565
8566   ;
8567   return 0;
8568 }
8569 _ACEOF
8570 if ac_fn_c_try_compile "$LINENO"; then :
8571   ac_cv_header_stdc=yes
8572 else
8573   ac_cv_header_stdc=no
8574 fi
8575 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8576
8577 if test $ac_cv_header_stdc = yes; then
8578   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
8579   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8580 /* end confdefs.h.  */
8581 #include <string.h>
8582
8583 _ACEOF
8584 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8585   $EGREP "memchr" >/dev/null 2>&1; then :
8586
8587 else
8588   ac_cv_header_stdc=no
8589 fi
8590 rm -f conftest*
8591
8592 fi
8593
8594 if test $ac_cv_header_stdc = yes; then
8595   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
8596   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8597 /* end confdefs.h.  */
8598 #include <stdlib.h>
8599
8600 _ACEOF
8601 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8602   $EGREP "free" >/dev/null 2>&1; then :
8603
8604 else
8605   ac_cv_header_stdc=no
8606 fi
8607 rm -f conftest*
8608
8609 fi
8610
8611 if test $ac_cv_header_stdc = yes; then
8612   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
8613   if test "$cross_compiling" = yes; then :
8614   :
8615 else
8616   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8617 /* end confdefs.h.  */
8618 #include <ctype.h>
8619 #include <stdlib.h>
8620 #if ((' ' & 0x0FF) == 0x020)
8621 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
8622 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
8623 #else
8624 # define ISLOWER(c) \
8625                    (('a' <= (c) && (c) <= 'i') \
8626                      || ('j' <= (c) && (c) <= 'r') \
8627                      || ('s' <= (c) && (c) <= 'z'))
8628 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
8629 #endif
8630
8631 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
8632 int
8633 main ()
8634 {
8635   int i;
8636   for (i = 0; i < 256; i++)
8637     if (XOR (islower (i), ISLOWER (i))
8638         || toupper (i) != TOUPPER (i))
8639       return 2;
8640   return 0;
8641 }
8642 _ACEOF
8643 if ac_fn_c_try_run "$LINENO"; then :
8644
8645 else
8646   ac_cv_header_stdc=no
8647 fi
8648 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8649   conftest.$ac_objext conftest.beam conftest.$ac_ext
8650 fi
8651
8652 fi
8653 fi
8654 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
8655 $as_echo "$ac_cv_header_stdc" >&6; }
8656 if test $ac_cv_header_stdc = yes; then
8657
8658 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
8659
8660 fi
8661
8662 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
8663 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
8664                   inttypes.h stdint.h unistd.h
8665 do :
8666   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
8667 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
8668 "
8669 eval as_val=\$$as_ac_Header
8670    if test "x$as_val" = x""yes; then :
8671   cat >>confdefs.h <<_ACEOF
8672 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
8673 _ACEOF
8674
8675 fi
8676
8677 done
8678
8679
8680 for ac_header in dlfcn.h
8681 do :
8682   ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
8683 "
8684 if test "x$ac_cv_header_dlfcn_h" = x""yes; then :
8685   cat >>confdefs.h <<_ACEOF
8686 #define HAVE_DLFCN_H 1
8687 _ACEOF
8688
8689 fi
8690
8691 done
8692
8693
8694
8695 ac_ext=cpp
8696 ac_cpp='$CXXCPP $CPPFLAGS'
8697 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8698 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8699 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
8700 if test -z "$CXX"; then
8701   if test -n "$CCC"; then
8702     CXX=$CCC
8703   else
8704     if test -n "$ac_tool_prefix"; then
8705   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
8706   do
8707     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
8708 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
8709 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8710 $as_echo_n "checking for $ac_word... " >&6; }
8711 if test "${ac_cv_prog_CXX+set}" = set; then :
8712   $as_echo_n "(cached) " >&6
8713 else
8714   if test -n "$CXX"; then
8715   ac_cv_prog_CXX="$CXX" # Let the user override the test.
8716 else
8717 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8718 for as_dir in $PATH
8719 do
8720   IFS=$as_save_IFS
8721   test -z "$as_dir" && as_dir=.
8722     for ac_exec_ext in '' $ac_executable_extensions; do
8723   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8724     ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
8725     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8726     break 2
8727   fi
8728 done
8729   done
8730 IFS=$as_save_IFS
8731
8732 fi
8733 fi
8734 CXX=$ac_cv_prog_CXX
8735 if test -n "$CXX"; then
8736   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
8737 $as_echo "$CXX" >&6; }
8738 else
8739   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8740 $as_echo "no" >&6; }
8741 fi
8742
8743
8744     test -n "$CXX" && break
8745   done
8746 fi
8747 if test -z "$CXX"; then
8748   ac_ct_CXX=$CXX
8749   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
8750 do
8751   # Extract the first word of "$ac_prog", so it can be a program name with args.
8752 set dummy $ac_prog; ac_word=$2
8753 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8754 $as_echo_n "checking for $ac_word... " >&6; }
8755 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then :
8756   $as_echo_n "(cached) " >&6
8757 else
8758   if test -n "$ac_ct_CXX"; then
8759   ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
8760 else
8761 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8762 for as_dir in $PATH
8763 do
8764   IFS=$as_save_IFS
8765   test -z "$as_dir" && as_dir=.
8766     for ac_exec_ext in '' $ac_executable_extensions; do
8767   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8768     ac_cv_prog_ac_ct_CXX="$ac_prog"
8769     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8770     break 2
8771   fi
8772 done
8773   done
8774 IFS=$as_save_IFS
8775
8776 fi
8777 fi
8778 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
8779 if test -n "$ac_ct_CXX"; then
8780   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
8781 $as_echo "$ac_ct_CXX" >&6; }
8782 else
8783   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8784 $as_echo "no" >&6; }
8785 fi
8786
8787
8788   test -n "$ac_ct_CXX" && break
8789 done
8790
8791   if test "x$ac_ct_CXX" = x; then
8792     CXX="g++"
8793   else
8794     case $cross_compiling:$ac_tool_warned in
8795 yes:)
8796 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8797 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8798 ac_tool_warned=yes ;;
8799 esac
8800     CXX=$ac_ct_CXX
8801   fi
8802 fi
8803
8804   fi
8805 fi
8806 # Provide some information about the compiler.
8807 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
8808 set X $ac_compile
8809 ac_compiler=$2
8810 for ac_option in --version -v -V -qversion; do
8811   { { ac_try="$ac_compiler $ac_option >&5"
8812 case "(($ac_try" in
8813   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8814   *) ac_try_echo=$ac_try;;
8815 esac
8816 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
8817 $as_echo "$ac_try_echo"; } >&5
8818   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
8819   ac_status=$?
8820   if test -s conftest.err; then
8821     sed '10a\
8822 ... rest of stderr output deleted ...
8823          10q' conftest.err >conftest.er1
8824     cat conftest.er1 >&5
8825   fi
8826   rm -f conftest.er1 conftest.err
8827   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8828   test $ac_status = 0; }
8829 done
8830
8831 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
8832 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
8833 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then :
8834   $as_echo_n "(cached) " >&6
8835 else
8836   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8837 /* end confdefs.h.  */
8838
8839 int
8840 main ()
8841 {
8842 #ifndef __GNUC__
8843        choke me
8844 #endif
8845
8846   ;
8847   return 0;
8848 }
8849 _ACEOF
8850 if ac_fn_cxx_try_compile "$LINENO"; then :
8851   ac_compiler_gnu=yes
8852 else
8853   ac_compiler_gnu=no
8854 fi
8855 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8856 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
8857
8858 fi
8859 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
8860 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
8861 if test $ac_compiler_gnu = yes; then
8862   GXX=yes
8863 else
8864   GXX=
8865 fi
8866 ac_test_CXXFLAGS=${CXXFLAGS+set}
8867 ac_save_CXXFLAGS=$CXXFLAGS
8868 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
8869 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
8870 if test "${ac_cv_prog_cxx_g+set}" = set; then :
8871   $as_echo_n "(cached) " >&6
8872 else
8873   ac_save_cxx_werror_flag=$ac_cxx_werror_flag
8874    ac_cxx_werror_flag=yes
8875    ac_cv_prog_cxx_g=no
8876    CXXFLAGS="-g"
8877    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8878 /* end confdefs.h.  */
8879
8880 int
8881 main ()
8882 {
8883
8884   ;
8885   return 0;
8886 }
8887 _ACEOF
8888 if ac_fn_cxx_try_compile "$LINENO"; then :
8889   ac_cv_prog_cxx_g=yes
8890 else
8891   CXXFLAGS=""
8892       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8893 /* end confdefs.h.  */
8894
8895 int
8896 main ()
8897 {
8898
8899   ;
8900   return 0;
8901 }
8902 _ACEOF
8903 if ac_fn_cxx_try_compile "$LINENO"; then :
8904
8905 else
8906   ac_cxx_werror_flag=$ac_save_cxx_werror_flag
8907          CXXFLAGS="-g"
8908          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8909 /* end confdefs.h.  */
8910
8911 int
8912 main ()
8913 {
8914
8915   ;
8916   return 0;
8917 }
8918 _ACEOF
8919 if ac_fn_cxx_try_compile "$LINENO"; then :
8920   ac_cv_prog_cxx_g=yes
8921 fi
8922 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8923 fi
8924 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8925 fi
8926 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8927    ac_cxx_werror_flag=$ac_save_cxx_werror_flag
8928 fi
8929 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
8930 $as_echo "$ac_cv_prog_cxx_g" >&6; }
8931 if test "$ac_test_CXXFLAGS" = set; then
8932   CXXFLAGS=$ac_save_CXXFLAGS
8933 elif test $ac_cv_prog_cxx_g = yes; then
8934   if test "$GXX" = yes; then
8935     CXXFLAGS="-g -O2"
8936   else
8937     CXXFLAGS="-g"
8938   fi
8939 else
8940   if test "$GXX" = yes; then
8941     CXXFLAGS="-O2"
8942   else
8943     CXXFLAGS=
8944   fi
8945 fi
8946 ac_ext=c
8947 ac_cpp='$CPP $CPPFLAGS'
8948 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8949 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8950 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8951
8952 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
8953     ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
8954     (test "X$CXX" != "Xg++"))) ; then
8955   ac_ext=cpp
8956 ac_cpp='$CXXCPP $CPPFLAGS'
8957 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8958 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8959 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
8960 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
8961 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
8962 if test -z "$CXXCPP"; then
8963   if test "${ac_cv_prog_CXXCPP+set}" = set; then :
8964   $as_echo_n "(cached) " >&6
8965 else
8966       # Double quotes because CXXCPP needs to be expanded
8967     for CXXCPP in "$CXX -E" "/lib/cpp"
8968     do
8969       ac_preproc_ok=false
8970 for ac_cxx_preproc_warn_flag in '' yes
8971 do
8972   # Use a header file that comes with gcc, so configuring glibc
8973   # with a fresh cross-compiler works.
8974   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8975   # <limits.h> exists even on freestanding compilers.
8976   # On the NeXT, cc -E runs the code through the compiler's parser,
8977   # not just through cpp. "Syntax error" is here to catch this case.
8978   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8979 /* end confdefs.h.  */
8980 #ifdef __STDC__
8981 # include <limits.h>
8982 #else
8983 # include <assert.h>
8984 #endif
8985                      Syntax error
8986 _ACEOF
8987 if ac_fn_cxx_try_cpp "$LINENO"; then :
8988
8989 else
8990   # Broken: fails on valid input.
8991 continue
8992 fi
8993 rm -f conftest.err conftest.$ac_ext
8994
8995   # OK, works on sane cases.  Now check whether nonexistent headers
8996   # can be detected and how.
8997   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8998 /* end confdefs.h.  */
8999 #include <ac_nonexistent.h>
9000 _ACEOF
9001 if ac_fn_cxx_try_cpp "$LINENO"; then :
9002   # Broken: success on invalid input.
9003 continue
9004 else
9005   # Passes both tests.
9006 ac_preproc_ok=:
9007 break
9008 fi
9009 rm -f conftest.err conftest.$ac_ext
9010
9011 done
9012 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
9013 rm -f conftest.err conftest.$ac_ext
9014 if $ac_preproc_ok; then :
9015   break
9016 fi
9017
9018     done
9019     ac_cv_prog_CXXCPP=$CXXCPP
9020
9021 fi
9022   CXXCPP=$ac_cv_prog_CXXCPP
9023 else
9024   ac_cv_prog_CXXCPP=$CXXCPP
9025 fi
9026 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
9027 $as_echo "$CXXCPP" >&6; }
9028 ac_preproc_ok=false
9029 for ac_cxx_preproc_warn_flag in '' yes
9030 do
9031   # Use a header file that comes with gcc, so configuring glibc
9032   # with a fresh cross-compiler works.
9033   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9034   # <limits.h> exists even on freestanding compilers.
9035   # On the NeXT, cc -E runs the code through the compiler's parser,
9036   # not just through cpp. "Syntax error" is here to catch this case.
9037   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9038 /* end confdefs.h.  */
9039 #ifdef __STDC__
9040 # include <limits.h>
9041 #else
9042 # include <assert.h>
9043 #endif
9044                      Syntax error
9045 _ACEOF
9046 if ac_fn_cxx_try_cpp "$LINENO"; then :
9047
9048 else
9049   # Broken: fails on valid input.
9050 continue
9051 fi
9052 rm -f conftest.err conftest.$ac_ext
9053
9054   # OK, works on sane cases.  Now check whether nonexistent headers
9055   # can be detected and how.
9056   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9057 /* end confdefs.h.  */
9058 #include <ac_nonexistent.h>
9059 _ACEOF
9060 if ac_fn_cxx_try_cpp "$LINENO"; then :
9061   # Broken: success on invalid input.
9062 continue
9063 else
9064   # Passes both tests.
9065 ac_preproc_ok=:
9066 break
9067 fi
9068 rm -f conftest.err conftest.$ac_ext
9069
9070 done
9071 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
9072 rm -f conftest.err conftest.$ac_ext
9073 if $ac_preproc_ok; then :
9074
9075 else
9076   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
9077 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
9078 _lt_caught_CXX_error=yes; }
9079 fi
9080
9081 ac_ext=c
9082 ac_cpp='$CPP $CPPFLAGS'
9083 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9084 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9085 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9086
9087 else
9088   _lt_caught_CXX_error=yes
9089 fi
9090
9091
9092
9093
9094
9095 # Set options
9096 # Check whether --enable-shared was given.
9097 if test "${enable_shared+set}" = set; then :
9098   enableval=$enable_shared; p=${PACKAGE-default}
9099     case $enableval in
9100     yes) enable_shared=yes ;;
9101     no) enable_shared=no ;;
9102     *)
9103       enable_shared=no
9104       # Look at the argument we got.  We use all the common list separators.
9105       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9106       for pkg in $enableval; do
9107         IFS="$lt_save_ifs"
9108         if test "X$pkg" = "X$p"; then
9109           enable_shared=yes
9110         fi
9111       done
9112       IFS="$lt_save_ifs"
9113       ;;
9114     esac
9115 else
9116   enable_shared=yes
9117 fi
9118
9119
9120
9121
9122
9123
9124
9125 # Check whether --enable-static was given.
9126 if test "${enable_static+set}" = set; then :
9127   enableval=$enable_static; p=${PACKAGE-default}
9128     case $enableval in
9129     yes) enable_static=yes ;;
9130     no) enable_static=no ;;
9131     *)
9132      enable_static=no
9133       # Look at the argument we got.  We use all the common list separators.
9134       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9135       for pkg in $enableval; do
9136         IFS="$lt_save_ifs"
9137         if test "X$pkg" = "X$p"; then
9138           enable_static=yes
9139         fi
9140       done
9141       IFS="$lt_save_ifs"
9142       ;;
9143     esac
9144 else
9145   enable_static=no
9146 fi
9147
9148
9149
9150
9151
9152
9153
9154
9155
9156
9157         enable_dlopen=no
9158
9159
9160   enable_win32_dll=no
9161
9162
9163
9164
9165
9166 # Check whether --with-pic was given.
9167 if test "${with_pic+set}" = set; then :
9168   withval=$with_pic; pic_mode="$withval"
9169 else
9170   pic_mode=default
9171 fi
9172
9173
9174 test -z "$pic_mode" && pic_mode=default
9175
9176
9177
9178
9179
9180
9181
9182   # Check whether --enable-fast-install was given.
9183 if test "${enable_fast_install+set}" = set; then :
9184   enableval=$enable_fast_install; p=${PACKAGE-default}
9185     case $enableval in
9186     yes) enable_fast_install=yes ;;
9187     no) enable_fast_install=no ;;
9188     *)
9189       enable_fast_install=no
9190       # Look at the argument we got.  We use all the common list separators.
9191       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9192       for pkg in $enableval; do
9193         IFS="$lt_save_ifs"
9194         if test "X$pkg" = "X$p"; then
9195           enable_fast_install=yes
9196         fi
9197       done
9198       IFS="$lt_save_ifs"
9199       ;;
9200     esac
9201 else
9202   enable_fast_install=yes
9203 fi
9204
9205
9206
9207
9208
9209
9210
9211
9212
9213
9214
9215 # This can be used to rebuild libtool when needed
9216 LIBTOOL_DEPS="$ltmain"
9217
9218 # Always use our own libtool.
9219 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
9220
9221
9222
9223
9224
9225
9226
9227
9228
9229
9230
9231
9232
9233
9234
9235
9236
9237
9238
9239
9240
9241
9242
9243
9244
9245 test -z "$LN_S" && LN_S="ln -s"
9246
9247
9248
9249
9250
9251
9252
9253
9254
9255
9256
9257
9258
9259
9260 if test -n "${ZSH_VERSION+set}" ; then
9261    setopt NO_GLOB_SUBST
9262 fi
9263
9264 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
9265 $as_echo_n "checking for objdir... " >&6; }
9266 if test "${lt_cv_objdir+set}" = set; then :
9267   $as_echo_n "(cached) " >&6
9268 else
9269   rm -f .libs 2>/dev/null
9270 mkdir .libs 2>/dev/null
9271 if test -d .libs; then
9272   lt_cv_objdir=.libs
9273 else
9274   # MS-DOS does not allow filenames that begin with a dot.
9275   lt_cv_objdir=_libs
9276 fi
9277 rmdir .libs 2>/dev/null
9278 fi
9279 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
9280 $as_echo "$lt_cv_objdir" >&6; }
9281 objdir=$lt_cv_objdir
9282
9283
9284
9285
9286
9287 cat >>confdefs.h <<_ACEOF
9288 #define LT_OBJDIR "$lt_cv_objdir/"
9289 _ACEOF
9290
9291
9292
9293
9294
9295
9296
9297
9298
9299
9300
9301
9302
9303
9304
9305
9306
9307 case $host_os in
9308 aix3*)
9309   # AIX sometimes has problems with the GCC collect2 program.  For some
9310   # reason, if we set the COLLECT_NAMES environment variable, the problems
9311   # vanish in a puff of smoke.
9312   if test "X${COLLECT_NAMES+set}" != Xset; then
9313     COLLECT_NAMES=
9314     export COLLECT_NAMES
9315   fi
9316   ;;
9317 esac
9318
9319 # Sed substitution that helps us do robust quoting.  It backslashifies
9320 # metacharacters that are still active within double-quoted strings.
9321 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
9322
9323 # Same as above, but do not quote variable references.
9324 double_quote_subst='s/\(["`\\]\)/\\\1/g'
9325
9326 # Sed substitution to delay expansion of an escaped shell variable in a
9327 # double_quote_subst'ed string.
9328 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
9329
9330 # Sed substitution to delay expansion of an escaped single quote.
9331 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
9332
9333 # Sed substitution to avoid accidental globbing in evaled expressions
9334 no_glob_subst='s/\*/\\\*/g'
9335
9336 # Global variables:
9337 ofile=libtool
9338 can_build_shared=yes
9339
9340 # All known linkers require a `.a' archive for static linking (except MSVC,
9341 # which needs '.lib').
9342 libext=a
9343
9344 with_gnu_ld="$lt_cv_prog_gnu_ld"
9345
9346 old_CC="$CC"
9347 old_CFLAGS="$CFLAGS"
9348
9349 # Set sane defaults for various variables
9350 test -z "$CC" && CC=cc
9351 test -z "$LTCC" && LTCC=$CC
9352 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
9353 test -z "$LD" && LD=ld
9354 test -z "$ac_objext" && ac_objext=o
9355
9356 for cc_temp in $compiler""; do
9357   case $cc_temp in
9358     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
9359     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
9360     \-*) ;;
9361     *) break;;
9362   esac
9363 done
9364 cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
9365
9366
9367 # Only perform the check for file, if the check method requires it
9368 test -z "$MAGIC_CMD" && MAGIC_CMD=file
9369 case $deplibs_check_method in
9370 file_magic*)
9371   if test "$file_magic_cmd" = '$MAGIC_CMD'; then
9372     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
9373 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
9374 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
9375   $as_echo_n "(cached) " >&6
9376 else
9377   case $MAGIC_CMD in
9378 [\\/*] |  ?:[\\/]*)
9379   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
9380   ;;
9381 *)
9382   lt_save_MAGIC_CMD="$MAGIC_CMD"
9383   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
9384   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
9385   for ac_dir in $ac_dummy; do
9386     IFS="$lt_save_ifs"
9387     test -z "$ac_dir" && ac_dir=.
9388     if test -f $ac_dir/${ac_tool_prefix}file; then
9389       lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
9390       if test -n "$file_magic_test_file"; then
9391         case $deplibs_check_method in
9392         "file_magic "*)
9393           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
9394           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9395           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
9396             $EGREP "$file_magic_regex" > /dev/null; then
9397             :
9398           else
9399             cat <<_LT_EOF 1>&2
9400
9401 *** Warning: the command libtool uses to detect shared libraries,
9402 *** $file_magic_cmd, produces output that libtool cannot recognize.
9403 *** The result is that libtool may fail to recognize shared libraries
9404 *** as such.  This will affect the creation of libtool libraries that
9405 *** depend on shared libraries, but programs linked with such libtool
9406 *** libraries will work regardless of this problem.  Nevertheless, you
9407 *** may want to report the problem to your system manager and/or to
9408 *** bug-libtool@gnu.org
9409
9410 _LT_EOF
9411           fi ;;
9412         esac
9413       fi
9414       break
9415     fi
9416   done
9417   IFS="$lt_save_ifs"
9418   MAGIC_CMD="$lt_save_MAGIC_CMD"
9419   ;;
9420 esac
9421 fi
9422
9423 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9424 if test -n "$MAGIC_CMD"; then
9425   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
9426 $as_echo "$MAGIC_CMD" >&6; }
9427 else
9428   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9429 $as_echo "no" >&6; }
9430 fi
9431
9432
9433
9434
9435
9436 if test -z "$lt_cv_path_MAGIC_CMD"; then
9437   if test -n "$ac_tool_prefix"; then
9438     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
9439 $as_echo_n "checking for file... " >&6; }
9440 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
9441   $as_echo_n "(cached) " >&6
9442 else
9443   case $MAGIC_CMD in
9444 [\\/*] |  ?:[\\/]*)
9445   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
9446   ;;
9447 *)
9448   lt_save_MAGIC_CMD="$MAGIC_CMD"
9449   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
9450   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
9451   for ac_dir in $ac_dummy; do
9452     IFS="$lt_save_ifs"
9453     test -z "$ac_dir" && ac_dir=.
9454     if test -f $ac_dir/file; then
9455       lt_cv_path_MAGIC_CMD="$ac_dir/file"
9456       if test -n "$file_magic_test_file"; then
9457         case $deplibs_check_method in
9458         "file_magic "*)
9459           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
9460           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9461           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
9462             $EGREP "$file_magic_regex" > /dev/null; then
9463             :
9464           else
9465             cat <<_LT_EOF 1>&2
9466
9467 *** Warning: the command libtool uses to detect shared libraries,
9468 *** $file_magic_cmd, produces output that libtool cannot recognize.
9469 *** The result is that libtool may fail to recognize shared libraries
9470 *** as such.  This will affect the creation of libtool libraries that
9471 *** depend on shared libraries, but programs linked with such libtool
9472 *** libraries will work regardless of this problem.  Nevertheless, you
9473 *** may want to report the problem to your system manager and/or to
9474 *** bug-libtool@gnu.org
9475
9476 _LT_EOF
9477           fi ;;
9478         esac
9479       fi
9480       break
9481     fi
9482   done
9483   IFS="$lt_save_ifs"
9484   MAGIC_CMD="$lt_save_MAGIC_CMD"
9485   ;;
9486 esac
9487 fi
9488
9489 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9490 if test -n "$MAGIC_CMD"; then
9491   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
9492 $as_echo "$MAGIC_CMD" >&6; }
9493 else
9494   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9495 $as_echo "no" >&6; }
9496 fi
9497
9498
9499   else
9500     MAGIC_CMD=:
9501   fi
9502 fi
9503
9504   fi
9505   ;;
9506 esac
9507
9508 # Use C for the default configuration in the libtool script
9509
9510 lt_save_CC="$CC"
9511 ac_ext=c
9512 ac_cpp='$CPP $CPPFLAGS'
9513 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9514 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9515 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9516
9517
9518 # Source file extension for C test sources.
9519 ac_ext=c
9520
9521 # Object file extension for compiled C test sources.
9522 objext=o
9523 objext=$objext
9524
9525 # Code to be used in simple compile tests
9526 lt_simple_compile_test_code="int some_variable = 0;"
9527
9528 # Code to be used in simple link tests
9529 lt_simple_link_test_code='int main(){return(0);}'
9530
9531
9532
9533
9534
9535
9536
9537 # If no C compiler was specified, use CC.
9538 LTCC=${LTCC-"$CC"}
9539
9540 # If no C compiler flags were specified, use CFLAGS.
9541 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
9542
9543 # Allow CC to be a program name with arguments.
9544 compiler=$CC
9545
9546 # Save the default compiler, since it gets overwritten when the other
9547 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
9548 compiler_DEFAULT=$CC
9549
9550 # save warnings/boilerplate of simple test code
9551 ac_outfile=conftest.$ac_objext
9552 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
9553 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9554 _lt_compiler_boilerplate=`cat conftest.err`
9555 $RM conftest*
9556
9557 ac_outfile=conftest.$ac_objext
9558 echo "$lt_simple_link_test_code" >conftest.$ac_ext
9559 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9560 _lt_linker_boilerplate=`cat conftest.err`
9561 $RM -r conftest*
9562
9563
9564 ## CAVEAT EMPTOR:
9565 ## There is no encapsulation within the following macros, do not change
9566 ## the running order or otherwise move them around unless you know exactly
9567 ## what you are doing...
9568 if test -n "$compiler"; then
9569
9570 lt_prog_compiler_no_builtin_flag=
9571
9572 if test "$GCC" = yes; then
9573   lt_prog_compiler_no_builtin_flag=' -fno-builtin'
9574
9575   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
9576 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
9577 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then :
9578   $as_echo_n "(cached) " >&6
9579 else
9580   lt_cv_prog_compiler_rtti_exceptions=no
9581    ac_outfile=conftest.$ac_objext
9582    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9583    lt_compiler_flag="-fno-rtti -fno-exceptions"
9584    # Insert the option either (1) after the last *FLAGS variable, or
9585    # (2) before a word containing "conftest.", or (3) at the end.
9586    # Note that $ac_compile itself does not contain backslashes and begins
9587    # with a dollar sign (not a hyphen), so the echo should work correctly.
9588    # The option is referenced via a variable to avoid confusing sed.
9589    lt_compile=`echo "$ac_compile" | $SED \
9590    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9591    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9592    -e 's:$: $lt_compiler_flag:'`
9593    (eval echo "\"\$as_me:9593: $lt_compile\"" >&5)
9594    (eval "$lt_compile" 2>conftest.err)
9595    ac_status=$?
9596    cat conftest.err >&5
9597    echo "$as_me:9597: \$? = $ac_status" >&5
9598    if (exit $ac_status) && test -s "$ac_outfile"; then
9599      # The compiler can only warn and ignore the option if not recognized
9600      # So say no if there are warnings other than the usual output.
9601      $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
9602      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9603      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9604        lt_cv_prog_compiler_rtti_exceptions=yes
9605      fi
9606    fi
9607    $RM conftest*
9608
9609 fi
9610 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
9611 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
9612
9613 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
9614     lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
9615 else
9616     :
9617 fi
9618
9619 fi
9620
9621
9622
9623
9624
9625
9626   lt_prog_compiler_wl=
9627 lt_prog_compiler_pic=
9628 lt_prog_compiler_static=
9629
9630 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
9631 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
9632
9633   if test "$GCC" = yes; then
9634     lt_prog_compiler_wl='-Wl,'
9635     lt_prog_compiler_static='-static'
9636
9637     case $host_os in
9638       aix*)
9639       # All AIX code is PIC.
9640       if test "$host_cpu" = ia64; then
9641         # AIX 5 now supports IA64 processor
9642         lt_prog_compiler_static='-Bstatic'
9643       fi
9644       ;;
9645
9646     amigaos*)
9647       case $host_cpu in
9648       powerpc)
9649             # see comment about AmigaOS4 .so support
9650             lt_prog_compiler_pic='-fPIC'
9651         ;;
9652       m68k)
9653             # FIXME: we need at least 68020 code to build shared libraries, but
9654             # adding the `-m68020' flag to GCC prevents building anything better,
9655             # like `-m68040'.
9656             lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
9657         ;;
9658       esac
9659       ;;
9660
9661     beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
9662       # PIC is the default for these OSes.
9663       ;;
9664
9665     mingw* | cygwin* | pw32* | os2* | cegcc*)
9666       # This hack is so that the source file can tell whether it is being
9667       # built for inclusion in a dll (and should export symbols for example).
9668       # Although the cygwin gcc ignores -fPIC, still need this for old-style
9669       # (--disable-auto-import) libraries
9670       lt_prog_compiler_pic='-DDLL_EXPORT'
9671       ;;
9672
9673     darwin* | rhapsody*)
9674       # PIC is the default on this platform
9675       # Common symbols not allowed in MH_DYLIB files
9676       lt_prog_compiler_pic='-fno-common'
9677       ;;
9678
9679     hpux*)
9680       # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
9681       # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
9682       # sets the default TLS model and affects inlining.
9683       case $host_cpu in
9684       hppa*64*)
9685         # +Z the default
9686         ;;
9687       *)
9688         lt_prog_compiler_pic='-fPIC'
9689         ;;
9690       esac
9691       ;;
9692
9693     interix[3-9]*)
9694       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
9695       # Instead, we relocate shared libraries at runtime.
9696       ;;
9697
9698     msdosdjgpp*)
9699       # Just because we use GCC doesn't mean we suddenly get shared libraries
9700       # on systems that don't support them.
9701       lt_prog_compiler_can_build_shared=no
9702       enable_shared=no
9703       ;;
9704
9705     *nto* | *qnx*)
9706       # QNX uses GNU C++, but need to define -shared option too, otherwise
9707       # it will coredump.
9708       lt_prog_compiler_pic='-fPIC -shared'
9709       ;;
9710
9711     sysv4*MP*)
9712       if test -d /usr/nec; then
9713         lt_prog_compiler_pic=-Kconform_pic
9714       fi
9715       ;;
9716
9717     *)
9718       lt_prog_compiler_pic='-fPIC'
9719       ;;
9720     esac
9721   else
9722     # PORTME Check for flag to pass linker flags through the system compiler.
9723     case $host_os in
9724     aix*)
9725       lt_prog_compiler_wl='-Wl,'
9726       if test "$host_cpu" = ia64; then
9727         # AIX 5 now supports IA64 processor
9728         lt_prog_compiler_static='-Bstatic'
9729       else
9730         lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
9731       fi
9732       ;;
9733
9734     mingw* | cygwin* | pw32* | os2* | cegcc*)
9735       # This hack is so that the source file can tell whether it is being
9736       # built for inclusion in a dll (and should export symbols for example).
9737       lt_prog_compiler_pic='-DDLL_EXPORT'
9738       ;;
9739
9740     hpux9* | hpux10* | hpux11*)
9741       lt_prog_compiler_wl='-Wl,'
9742       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
9743       # not for PA HP-UX.
9744       case $host_cpu in
9745       hppa*64*|ia64*)
9746         # +Z the default
9747         ;;
9748       *)
9749         lt_prog_compiler_pic='+Z'
9750         ;;
9751       esac
9752       # Is there a better lt_prog_compiler_static that works with the bundled CC?
9753       lt_prog_compiler_static='${wl}-a ${wl}archive'
9754       ;;
9755
9756     irix5* | irix6* | nonstopux*)
9757       lt_prog_compiler_wl='-Wl,'
9758       # PIC (with -KPIC) is the default.
9759       lt_prog_compiler_static='-non_shared'
9760       ;;
9761
9762     linux* | k*bsd*-gnu)
9763       case $cc_basename in
9764       # old Intel for x86_64 which still supported -KPIC.
9765       ecc*)
9766         lt_prog_compiler_wl='-Wl,'
9767         lt_prog_compiler_pic='-KPIC'
9768         lt_prog_compiler_static='-static'
9769         ;;
9770       # icc used to be incompatible with GCC.
9771       # ICC 10 doesn't accept -KPIC any more.
9772       icc* | ifort*)
9773         lt_prog_compiler_wl='-Wl,'
9774         lt_prog_compiler_pic='-fPIC'
9775         lt_prog_compiler_static='-static'
9776         ;;
9777       # Lahey Fortran 8.1.
9778       lf95*)
9779         lt_prog_compiler_wl='-Wl,'
9780         lt_prog_compiler_pic='--shared'
9781         lt_prog_compiler_static='--static'
9782         ;;
9783       pgcc* | pgf77* | pgf90* | pgf95*)
9784         # Portland Group compilers (*not* the Pentium gcc compiler,
9785         # which looks to be a dead project)
9786         lt_prog_compiler_wl='-Wl,'
9787         lt_prog_compiler_pic='-fpic'
9788         lt_prog_compiler_static='-Bstatic'
9789         ;;
9790       ccc*)
9791         lt_prog_compiler_wl='-Wl,'
9792         # All Alpha code is PIC.
9793         lt_prog_compiler_static='-non_shared'
9794         ;;
9795       xl*)
9796         # IBM XL C 8.0/Fortran 10.1 on PPC
9797         lt_prog_compiler_wl='-Wl,'
9798         lt_prog_compiler_pic='-qpic'
9799         lt_prog_compiler_static='-qstaticlink'
9800         ;;
9801       *)
9802         case `$CC -V 2>&1 | sed 5q` in
9803         *Sun\ C*)
9804           # Sun C 5.9
9805           lt_prog_compiler_pic='-KPIC'
9806           lt_prog_compiler_static='-Bstatic'
9807           lt_prog_compiler_wl='-Wl,'
9808           ;;
9809         *Sun\ F*)
9810           # Sun Fortran 8.3 passes all unrecognized flags to the linker
9811           lt_prog_compiler_pic='-KPIC'
9812           lt_prog_compiler_static='-Bstatic'
9813           lt_prog_compiler_wl=''
9814           ;;
9815         esac
9816         ;;
9817       esac
9818       ;;
9819
9820     newsos6)
9821       lt_prog_compiler_pic='-KPIC'
9822       lt_prog_compiler_static='-Bstatic'
9823       ;;
9824
9825     *nto* | *qnx*)
9826       # QNX uses GNU C++, but need to define -shared option too, otherwise
9827       # it will coredump.
9828       lt_prog_compiler_pic='-fPIC -shared'
9829       ;;
9830
9831     osf3* | osf4* | osf5*)
9832       lt_prog_compiler_wl='-Wl,'
9833       # All OSF/1 code is PIC.
9834       lt_prog_compiler_static='-non_shared'
9835       ;;
9836
9837     rdos*)
9838       lt_prog_compiler_static='-non_shared'
9839       ;;
9840
9841     solaris*)
9842       lt_prog_compiler_pic='-KPIC'
9843       lt_prog_compiler_static='-Bstatic'
9844       case $cc_basename in
9845       f77* | f90* | f95*)
9846         lt_prog_compiler_wl='-Qoption ld ';;
9847       *)
9848         lt_prog_compiler_wl='-Wl,';;
9849       esac
9850       ;;
9851
9852     sunos4*)
9853       lt_prog_compiler_wl='-Qoption ld '
9854       lt_prog_compiler_pic='-PIC'
9855       lt_prog_compiler_static='-Bstatic'
9856       ;;
9857
9858     sysv4 | sysv4.2uw2* | sysv4.3*)
9859       lt_prog_compiler_wl='-Wl,'
9860       lt_prog_compiler_pic='-KPIC'
9861       lt_prog_compiler_static='-Bstatic'
9862       ;;
9863
9864     sysv4*MP*)
9865       if test -d /usr/nec ;then
9866         lt_prog_compiler_pic='-Kconform_pic'
9867         lt_prog_compiler_static='-Bstatic'
9868       fi
9869       ;;
9870
9871     sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
9872       lt_prog_compiler_wl='-Wl,'
9873       lt_prog_compiler_pic='-KPIC'
9874       lt_prog_compiler_static='-Bstatic'
9875       ;;
9876
9877     unicos*)
9878       lt_prog_compiler_wl='-Wl,'
9879       lt_prog_compiler_can_build_shared=no
9880       ;;
9881
9882     uts4*)
9883       lt_prog_compiler_pic='-pic'
9884       lt_prog_compiler_static='-Bstatic'
9885       ;;
9886
9887     *)
9888       lt_prog_compiler_can_build_shared=no
9889       ;;
9890     esac
9891   fi
9892
9893 case $host_os in
9894   # For platforms which do not support PIC, -DPIC is meaningless:
9895   *djgpp*)
9896     lt_prog_compiler_pic=
9897     ;;
9898   *)
9899     lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
9900     ;;
9901 esac
9902 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
9903 $as_echo "$lt_prog_compiler_pic" >&6; }
9904
9905
9906
9907
9908
9909
9910 #
9911 # Check to make sure the PIC flag actually works.
9912 #
9913 if test -n "$lt_prog_compiler_pic"; then
9914   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
9915 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
9916 if test "${lt_cv_prog_compiler_pic_works+set}" = set; then :
9917   $as_echo_n "(cached) " >&6
9918 else
9919   lt_cv_prog_compiler_pic_works=no
9920    ac_outfile=conftest.$ac_objext
9921    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9922    lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
9923    # Insert the option either (1) after the last *FLAGS variable, or
9924    # (2) before a word containing "conftest.", or (3) at the end.
9925    # Note that $ac_compile itself does not contain backslashes and begins
9926    # with a dollar sign (not a hyphen), so the echo should work correctly.
9927    # The option is referenced via a variable to avoid confusing sed.
9928    lt_compile=`echo "$ac_compile" | $SED \
9929    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9930    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9931    -e 's:$: $lt_compiler_flag:'`
9932    (eval echo "\"\$as_me:9932: $lt_compile\"" >&5)
9933    (eval "$lt_compile" 2>conftest.err)
9934    ac_status=$?
9935    cat conftest.err >&5
9936    echo "$as_me:9936: \$? = $ac_status" >&5
9937    if (exit $ac_status) && test -s "$ac_outfile"; then
9938      # The compiler can only warn and ignore the option if not recognized
9939      # So say no if there are warnings other than the usual output.
9940      $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
9941      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9942      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9943        lt_cv_prog_compiler_pic_works=yes
9944      fi
9945    fi
9946    $RM conftest*
9947
9948 fi
9949 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
9950 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
9951
9952 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
9953     case $lt_prog_compiler_pic in
9954      "" | " "*) ;;
9955      *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
9956      esac
9957 else
9958     lt_prog_compiler_pic=
9959      lt_prog_compiler_can_build_shared=no
9960 fi
9961
9962 fi
9963
9964
9965
9966
9967
9968
9969 #
9970 # Check to make sure the static flag actually works.
9971 #
9972 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
9973 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
9974 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
9975 if test "${lt_cv_prog_compiler_static_works+set}" = set; then :
9976   $as_echo_n "(cached) " >&6
9977 else
9978   lt_cv_prog_compiler_static_works=no
9979    save_LDFLAGS="$LDFLAGS"
9980    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
9981    echo "$lt_simple_link_test_code" > conftest.$ac_ext
9982    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9983      # The linker can only warn and ignore the option if not recognized
9984      # So say no if there are warnings
9985      if test -s conftest.err; then
9986        # Append any errors to the config.log.
9987        cat conftest.err 1>&5
9988        $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
9989        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9990        if diff conftest.exp conftest.er2 >/dev/null; then
9991          lt_cv_prog_compiler_static_works=yes
9992        fi
9993      else
9994        lt_cv_prog_compiler_static_works=yes
9995      fi
9996    fi
9997    $RM -r conftest*
9998    LDFLAGS="$save_LDFLAGS"
9999
10000 fi
10001 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
10002 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
10003
10004 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
10005     :
10006 else
10007     lt_prog_compiler_static=
10008 fi
10009
10010
10011
10012
10013
10014
10015
10016   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
10017 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
10018 if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
10019   $as_echo_n "(cached) " >&6
10020 else
10021   lt_cv_prog_compiler_c_o=no
10022    $RM -r conftest 2>/dev/null
10023    mkdir conftest
10024    cd conftest
10025    mkdir out
10026    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10027
10028    lt_compiler_flag="-o out/conftest2.$ac_objext"
10029    # Insert the option either (1) after the last *FLAGS variable, or
10030    # (2) before a word containing "conftest.", or (3) at the end.
10031    # Note that $ac_compile itself does not contain backslashes and begins
10032    # with a dollar sign (not a hyphen), so the echo should work correctly.
10033    lt_compile=`echo "$ac_compile" | $SED \
10034    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10035    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10036    -e 's:$: $lt_compiler_flag:'`
10037    (eval echo "\"\$as_me:10037: $lt_compile\"" >&5)
10038    (eval "$lt_compile" 2>out/conftest.err)
10039    ac_status=$?
10040    cat out/conftest.err >&5
10041    echo "$as_me:10041: \$? = $ac_status" >&5
10042    if (exit $ac_status) && test -s out/conftest2.$ac_objext
10043    then
10044      # The compiler can only warn and ignore the option if not recognized
10045      # So say no if there are warnings
10046      $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
10047      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
10048      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
10049        lt_cv_prog_compiler_c_o=yes
10050      fi
10051    fi
10052    chmod u+w . 2>&5
10053    $RM conftest*
10054    # SGI C++ compiler will create directory out/ii_files/ for
10055    # template instantiation
10056    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
10057    $RM out/* && rmdir out
10058    cd ..
10059    $RM -r conftest
10060    $RM conftest*
10061
10062 fi
10063 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
10064 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
10065
10066
10067
10068
10069
10070
10071   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
10072 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
10073 if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
10074   $as_echo_n "(cached) " >&6
10075 else
10076   lt_cv_prog_compiler_c_o=no
10077    $RM -r conftest 2>/dev/null
10078    mkdir conftest
10079    cd conftest
10080    mkdir out
10081    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10082
10083    lt_compiler_flag="-o out/conftest2.$ac_objext"
10084    # Insert the option either (1) after the last *FLAGS variable, or
10085    # (2) before a word containing "conftest.", or (3) at the end.
10086    # Note that $ac_compile itself does not contain backslashes and begins
10087    # with a dollar sign (not a hyphen), so the echo should work correctly.
10088    lt_compile=`echo "$ac_compile" | $SED \
10089    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10090    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10091    -e 's:$: $lt_compiler_flag:'`
10092    (eval echo "\"\$as_me:10092: $lt_compile\"" >&5)
10093    (eval "$lt_compile" 2>out/conftest.err)
10094    ac_status=$?
10095    cat out/conftest.err >&5
10096    echo "$as_me:10096: \$? = $ac_status" >&5
10097    if (exit $ac_status) && test -s out/conftest2.$ac_objext
10098    then
10099      # The compiler can only warn and ignore the option if not recognized
10100      # So say no if there are warnings
10101      $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
10102      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
10103      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
10104        lt_cv_prog_compiler_c_o=yes
10105      fi
10106    fi
10107    chmod u+w . 2>&5
10108    $RM conftest*
10109    # SGI C++ compiler will create directory out/ii_files/ for
10110    # template instantiation
10111    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
10112    $RM out/* && rmdir out
10113    cd ..
10114    $RM -r conftest
10115    $RM conftest*
10116
10117 fi
10118 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
10119 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
10120
10121
10122
10123
10124 hard_links="nottested"
10125 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
10126   # do not overwrite the value of need_locks provided by the user
10127   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
10128 $as_echo_n "checking if we can lock with hard links... " >&6; }
10129   hard_links=yes
10130   $RM conftest*
10131   ln conftest.a conftest.b 2>/dev/null && hard_links=no
10132   touch conftest.a
10133   ln conftest.a conftest.b 2>&5 || hard_links=no
10134   ln conftest.a conftest.b 2>/dev/null && hard_links=no
10135   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
10136 $as_echo "$hard_links" >&6; }
10137   if test "$hard_links" = no; then
10138     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
10139 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
10140     need_locks=warn
10141   fi
10142 else
10143   need_locks=no
10144 fi
10145
10146
10147
10148
10149
10150
10151   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
10152 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
10153
10154   runpath_var=
10155   allow_undefined_flag=
10156   always_export_symbols=no
10157   archive_cmds=
10158   archive_expsym_cmds=
10159   compiler_needs_object=no
10160   enable_shared_with_static_runtimes=no
10161   export_dynamic_flag_spec=
10162   export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
10163   hardcode_automatic=no
10164   hardcode_direct=no
10165   hardcode_direct_absolute=no
10166   hardcode_libdir_flag_spec=
10167   hardcode_libdir_flag_spec_ld=
10168   hardcode_libdir_separator=
10169   hardcode_minus_L=no
10170   hardcode_shlibpath_var=unsupported
10171   inherit_rpath=no
10172   link_all_deplibs=unknown
10173   module_cmds=
10174   module_expsym_cmds=
10175   old_archive_from_new_cmds=
10176   old_archive_from_expsyms_cmds=
10177   thread_safe_flag_spec=
10178   whole_archive_flag_spec=
10179   # include_expsyms should be a list of space-separated symbols to be *always*
10180   # included in the symbol list
10181   include_expsyms=
10182   # exclude_expsyms can be an extended regexp of symbols to exclude
10183   # it will be wrapped by ` (' and `)$', so one must not match beginning or
10184   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
10185   # as well as any symbol that contains `d'.
10186   exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
10187   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
10188   # platforms (ab)use it in PIC code, but their linkers get confused if
10189   # the symbol is explicitly referenced.  Since portable code cannot
10190   # rely on this symbol name, it's probably fine to never include it in
10191   # preloaded symbol tables.
10192   # Exclude shared library initialization/finalization symbols.
10193   extract_expsyms_cmds=
10194
10195   case $host_os in
10196   cygwin* | mingw* | pw32* | cegcc*)
10197     # FIXME: the MSVC++ port hasn't been tested in a loooong time
10198     # When not using gcc, we currently assume that we are using
10199     # Microsoft Visual C++.
10200     if test "$GCC" != yes; then
10201       with_gnu_ld=no
10202     fi
10203     ;;
10204   interix*)
10205     # we just hope/assume this is gcc and not c89 (= MSVC++)
10206     with_gnu_ld=yes
10207     ;;
10208   openbsd*)
10209     with_gnu_ld=no
10210     ;;
10211   esac
10212
10213   ld_shlibs=yes
10214   if test "$with_gnu_ld" = yes; then
10215     # If archive_cmds runs LD, not CC, wlarc should be empty
10216     wlarc='${wl}'
10217
10218     # Set some defaults for GNU ld with shared library support. These
10219     # are reset later if shared libraries are not supported. Putting them
10220     # here allows them to be overridden if necessary.
10221     runpath_var=LD_RUN_PATH
10222     hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10223     export_dynamic_flag_spec='${wl}--export-dynamic'
10224     # ancient GNU ld didn't support --whole-archive et. al.
10225     if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
10226       whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
10227     else
10228       whole_archive_flag_spec=
10229     fi
10230     supports_anon_versioning=no
10231     case `$LD -v 2>&1` in
10232       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
10233       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
10234       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
10235       *\ 2.11.*) ;; # other 2.11 versions
10236       *) supports_anon_versioning=yes ;;
10237     esac
10238
10239     # See if GNU ld supports shared libraries.
10240     case $host_os in
10241     aix[3-9]*)
10242       # On AIX/PPC, the GNU linker is very broken
10243       if test "$host_cpu" != ia64; then
10244         ld_shlibs=no
10245         cat <<_LT_EOF 1>&2
10246
10247 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
10248 *** to be unable to reliably create shared libraries on AIX.
10249 *** Therefore, libtool is disabling shared libraries support.  If you
10250 *** really care for shared libraries, you may want to modify your PATH
10251 *** so that a non-GNU linker is found, and then restart.
10252
10253 _LT_EOF
10254       fi
10255       ;;
10256
10257     amigaos*)
10258       case $host_cpu in
10259       powerpc)
10260             # see comment about AmigaOS4 .so support
10261             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10262             archive_expsym_cmds=''
10263         ;;
10264       m68k)
10265             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)'
10266             hardcode_libdir_flag_spec='-L$libdir'
10267             hardcode_minus_L=yes
10268         ;;
10269       esac
10270       ;;
10271
10272     beos*)
10273       if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10274         allow_undefined_flag=unsupported
10275         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
10276         # support --undefined.  This deserves some investigation.  FIXME
10277         archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10278       else
10279         ld_shlibs=no
10280       fi
10281       ;;
10282
10283     cygwin* | mingw* | pw32* | cegcc*)
10284       # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
10285       # as there is no search path for DLLs.
10286       hardcode_libdir_flag_spec='-L$libdir'
10287       allow_undefined_flag=unsupported
10288       always_export_symbols=no
10289       enable_shared_with_static_runtimes=yes
10290       export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
10291
10292       if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
10293         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
10294         # If the export-symbols file already is a .def file (1st line
10295         # is EXPORTS), use it as is; otherwise, prepend...
10296         archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
10297           cp $export_symbols $output_objdir/$soname.def;
10298         else
10299           echo EXPORTS > $output_objdir/$soname.def;
10300           cat $export_symbols >> $output_objdir/$soname.def;
10301         fi~
10302         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
10303       else
10304         ld_shlibs=no
10305       fi
10306       ;;
10307
10308     interix[3-9]*)
10309       hardcode_direct=no
10310       hardcode_shlibpath_var=no
10311       hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10312       export_dynamic_flag_spec='${wl}-E'
10313       # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
10314       # Instead, shared libraries are loaded at an image base (0x10000000 by
10315       # default) and relocated if they conflict, which is a slow very memory
10316       # consuming and fragmenting process.  To avoid this, we pick a random,
10317       # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
10318       # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
10319       archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
10320       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'
10321       ;;
10322
10323     gnu* | linux* | tpf* | k*bsd*-gnu)
10324       tmp_diet=no
10325       if test "$host_os" = linux-dietlibc; then
10326         case $cc_basename in
10327           diet\ *) tmp_diet=yes;;       # linux-dietlibc with static linking (!diet-dyn)
10328         esac
10329       fi
10330       if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
10331          && test "$tmp_diet" = no
10332       then
10333         tmp_addflag=
10334         tmp_sharedflag='-shared'
10335         case $cc_basename,$host_cpu in
10336         pgcc*)                          # Portland Group C compiler
10337           whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
10338           tmp_addflag=' $pic_flag'
10339           ;;
10340         pgf77* | pgf90* | pgf95*)       # Portland Group f77 and f90 compilers
10341           whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
10342           tmp_addflag=' $pic_flag -Mnomain' ;;
10343         ecc*,ia64* | icc*,ia64*)        # Intel C compiler on ia64
10344           tmp_addflag=' -i_dynamic' ;;
10345         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
10346           tmp_addflag=' -i_dynamic -nofor_main' ;;
10347         ifc* | ifort*)                  # Intel Fortran compiler
10348           tmp_addflag=' -nofor_main' ;;
10349         lf95*)                          # Lahey Fortran 8.1
10350           whole_archive_flag_spec=
10351           tmp_sharedflag='--shared' ;;
10352         xl[cC]*)                        # IBM XL C 8.0 on PPC (deal with xlf below)
10353           tmp_sharedflag='-qmkshrobj'
10354           tmp_addflag= ;;
10355         esac
10356         case `$CC -V 2>&1 | sed 5q` in
10357         *Sun\ C*)                       # Sun C 5.9
10358           whole_archive_flag_spec='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
10359           compiler_needs_object=yes
10360           tmp_sharedflag='-G' ;;
10361         *Sun\ F*)                       # Sun Fortran 8.3
10362           tmp_sharedflag='-G' ;;
10363         esac
10364         archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10365
10366         if test "x$supports_anon_versioning" = xyes; then
10367           archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
10368             cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
10369             echo "local: *; };" >> $output_objdir/$libname.ver~
10370             $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
10371         fi
10372
10373         case $cc_basename in
10374         xlf*)
10375           # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
10376           whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
10377           hardcode_libdir_flag_spec=
10378           hardcode_libdir_flag_spec_ld='-rpath $libdir'
10379           archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
10380           if test "x$supports_anon_versioning" = xyes; then
10381             archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
10382               cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
10383               echo "local: *; };" >> $output_objdir/$libname.ver~
10384               $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
10385           fi
10386           ;;
10387         esac
10388       else
10389         ld_shlibs=no
10390       fi
10391       ;;
10392
10393     netbsd*)
10394       if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10395         archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
10396         wlarc=
10397       else
10398         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10399         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10400       fi
10401       ;;
10402
10403     solaris*)
10404       if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
10405         ld_shlibs=no
10406         cat <<_LT_EOF 1>&2
10407
10408 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
10409 *** create shared libraries on Solaris systems.  Therefore, libtool
10410 *** is disabling shared libraries support.  We urge you to upgrade GNU
10411 *** binutils to release 2.9.1 or newer.  Another option is to modify
10412 *** your PATH or compiler configuration so that the native linker is
10413 *** used, and then restart.
10414
10415 _LT_EOF
10416       elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10417         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10418         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10419       else
10420         ld_shlibs=no
10421       fi
10422       ;;
10423
10424     sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
10425       case `$LD -v 2>&1` in
10426         *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
10427         ld_shlibs=no
10428         cat <<_LT_EOF 1>&2
10429
10430 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
10431 *** reliably create shared libraries on SCO systems.  Therefore, libtool
10432 *** is disabling shared libraries support.  We urge you to upgrade GNU
10433 *** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
10434 *** your PATH or compiler configuration so that the native linker is
10435 *** used, and then restart.
10436
10437 _LT_EOF
10438         ;;
10439         *)
10440           # For security reasons, it is highly recommended that you always
10441           # use absolute paths for naming shared libraries, and exclude the
10442           # DT_RUNPATH tag from executables and libraries.  But doing so
10443           # requires that you compile everything twice, which is a pain.
10444           if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10445             hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10446             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10447             archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10448           else
10449             ld_shlibs=no
10450           fi
10451         ;;
10452       esac
10453       ;;
10454
10455     sunos4*)
10456       archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10457       wlarc=
10458       hardcode_direct=yes
10459       hardcode_shlibpath_var=no
10460       ;;
10461
10462     *)
10463       if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10464         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10465         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10466       else
10467         ld_shlibs=no
10468       fi
10469       ;;
10470     esac
10471
10472     if test "$ld_shlibs" = no; then
10473       runpath_var=
10474       hardcode_libdir_flag_spec=
10475       export_dynamic_flag_spec=
10476       whole_archive_flag_spec=
10477     fi
10478   else
10479     # PORTME fill in a description of your system's linker (not GNU ld)
10480     case $host_os in
10481     aix3*)
10482       allow_undefined_flag=unsupported
10483       always_export_symbols=yes
10484       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'
10485       # Note: this linker hardcodes the directories in LIBPATH if there
10486       # are no directories specified by -L.
10487       hardcode_minus_L=yes
10488       if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
10489         # Neither direct hardcoding nor static linking is supported with a
10490         # broken collect2.
10491         hardcode_direct=unsupported
10492       fi
10493       ;;
10494
10495     aix[4-9]*)
10496       if test "$host_cpu" = ia64; then
10497         # On IA64, the linker does run time linking by default, so we don't
10498         # have to do anything special.
10499         aix_use_runtimelinking=no
10500         exp_sym_flag='-Bexport'
10501         no_entry_flag=""
10502       else
10503         # If we're using GNU nm, then we don't want the "-C" option.
10504         # -C means demangle to AIX nm, but means don't demangle with GNU nm
10505         if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
10506           export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
10507         else
10508           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'
10509         fi
10510         aix_use_runtimelinking=no
10511
10512         # Test if we are trying to use run time linking or normal
10513         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
10514         # need to do runtime linking.
10515         case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
10516           for ld_flag in $LDFLAGS; do
10517           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
10518             aix_use_runtimelinking=yes
10519             break
10520           fi
10521           done
10522           ;;
10523         esac
10524
10525         exp_sym_flag='-bexport'
10526         no_entry_flag='-bnoentry'
10527       fi
10528
10529       # When large executables or shared objects are built, AIX ld can
10530       # have problems creating the table of contents.  If linking a library
10531       # or program results in "error TOC overflow" add -mminimal-toc to
10532       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
10533       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
10534
10535       archive_cmds=''
10536       hardcode_direct=yes
10537       hardcode_direct_absolute=yes
10538       hardcode_libdir_separator=':'
10539       link_all_deplibs=yes
10540       file_list_spec='${wl}-f,'
10541
10542       if test "$GCC" = yes; then
10543         case $host_os in aix4.[012]|aix4.[012].*)
10544         # We only want to do this on AIX 4.2 and lower, the check
10545         # below for broken collect2 doesn't work under 4.3+
10546           collect2name=`${CC} -print-prog-name=collect2`
10547           if test -f "$collect2name" &&
10548            strings "$collect2name" | $GREP resolve_lib_name >/dev/null
10549           then
10550           # We have reworked collect2
10551           :
10552           else
10553           # We have old collect2
10554           hardcode_direct=unsupported
10555           # It fails to find uninstalled libraries when the uninstalled
10556           # path is not listed in the libpath.  Setting hardcode_minus_L
10557           # to unsupported forces relinking
10558           hardcode_minus_L=yes
10559           hardcode_libdir_flag_spec='-L$libdir'
10560           hardcode_libdir_separator=
10561           fi
10562           ;;
10563         esac
10564         shared_flag='-shared'
10565         if test "$aix_use_runtimelinking" = yes; then
10566           shared_flag="$shared_flag "'${wl}-G'
10567         fi
10568       else
10569         # not using gcc
10570         if test "$host_cpu" = ia64; then
10571         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
10572         # chokes on -Wl,-G. The following line is correct:
10573           shared_flag='-G'
10574         else
10575           if test "$aix_use_runtimelinking" = yes; then
10576             shared_flag='${wl}-G'
10577           else
10578             shared_flag='${wl}-bM:SRE'
10579           fi
10580         fi
10581       fi
10582
10583       export_dynamic_flag_spec='${wl}-bexpall'
10584       # It seems that -bexpall does not export symbols beginning with
10585       # underscore (_), so it is better to generate a list of symbols to export.
10586       always_export_symbols=yes
10587       if test "$aix_use_runtimelinking" = yes; then
10588         # Warning - without using the other runtime loading flags (-brtl),
10589         # -berok will link without error, but may produce a broken library.
10590         allow_undefined_flag='-berok'
10591         # Determine the default libpath from the value encoded in an
10592         # empty executable.
10593         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10594 /* end confdefs.h.  */
10595
10596 int
10597 main ()
10598 {
10599
10600   ;
10601   return 0;
10602 }
10603 _ACEOF
10604 if ac_fn_c_try_link "$LINENO"; then :
10605
10606 lt_aix_libpath_sed='
10607     /Import File Strings/,/^$/ {
10608         /^0/ {
10609             s/^0  *\(.*\)$/\1/
10610             p
10611         }
10612     }'
10613 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10614 # Check for a 64-bit object if we didn't find anything.
10615 if test -z "$aix_libpath"; then
10616   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10617 fi
10618 fi
10619 rm -f core conftest.err conftest.$ac_objext \
10620     conftest$ac_exeext conftest.$ac_ext
10621 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
10622
10623         hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
10624         archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then $ECHO "X${wl}${allow_undefined_flag}" | $Xsed; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
10625       else
10626         if test "$host_cpu" = ia64; then
10627           hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
10628           allow_undefined_flag="-z nodefs"
10629           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"
10630         else
10631          # Determine the default libpath from the value encoded in an
10632          # empty executable.
10633          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10634 /* end confdefs.h.  */
10635
10636 int
10637 main ()
10638 {
10639
10640   ;
10641   return 0;
10642 }
10643 _ACEOF
10644 if ac_fn_c_try_link "$LINENO"; then :
10645
10646 lt_aix_libpath_sed='
10647     /Import File Strings/,/^$/ {
10648         /^0/ {
10649             s/^0  *\(.*\)$/\1/
10650             p
10651         }
10652     }'
10653 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10654 # Check for a 64-bit object if we didn't find anything.
10655 if test -z "$aix_libpath"; then
10656   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10657 fi
10658 fi
10659 rm -f core conftest.err conftest.$ac_objext \
10660     conftest$ac_exeext conftest.$ac_ext
10661 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
10662
10663          hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
10664           # Warning - without using the other run time loading flags,
10665           # -berok will link without error, but may produce a broken library.
10666           no_undefined_flag=' ${wl}-bernotok'
10667           allow_undefined_flag=' ${wl}-berok'
10668           # Exported symbols can be pulled into shared objects from archives
10669           whole_archive_flag_spec='$convenience'
10670           archive_cmds_need_lc=yes
10671           # This is similar to how AIX traditionally builds its shared libraries.
10672           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'
10673         fi
10674       fi
10675       ;;
10676
10677     amigaos*)
10678       case $host_cpu in
10679       powerpc)
10680             # see comment about AmigaOS4 .so support
10681             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10682             archive_expsym_cmds=''
10683         ;;
10684       m68k)
10685             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)'
10686             hardcode_libdir_flag_spec='-L$libdir'
10687             hardcode_minus_L=yes
10688         ;;
10689       esac
10690       ;;
10691
10692     bsdi[45]*)
10693       export_dynamic_flag_spec=-rdynamic
10694       ;;
10695
10696     cygwin* | mingw* | pw32* | cegcc*)
10697       # When not using gcc, we currently assume that we are using
10698       # Microsoft Visual C++.
10699       # hardcode_libdir_flag_spec is actually meaningless, as there is
10700       # no search path for DLLs.
10701       hardcode_libdir_flag_spec=' '
10702       allow_undefined_flag=unsupported
10703       # Tell ltmain to make .lib files, not .a files.
10704       libext=lib
10705       # Tell ltmain to make .dll files, not .so files.
10706       shrext_cmds=".dll"
10707       # FIXME: Setting linknames here is a bad hack.
10708       archive_cmds='$CC -o $lib $libobjs $compiler_flags `$ECHO "X$deplibs" | $Xsed -e '\''s/ -lc$//'\''` -link -dll~linknames='
10709       # The linker will automatically build a .lib file if we build a DLL.
10710       old_archive_from_new_cmds='true'
10711       # FIXME: Should let the user specify the lib program.
10712       old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
10713       fix_srcfile_path='`cygpath -w "$srcfile"`'
10714       enable_shared_with_static_runtimes=yes
10715       ;;
10716
10717     darwin* | rhapsody*)
10718
10719
10720   archive_cmds_need_lc=no
10721   hardcode_direct=no
10722   hardcode_automatic=yes
10723   hardcode_shlibpath_var=unsupported
10724   whole_archive_flag_spec=''
10725   link_all_deplibs=yes
10726   allow_undefined_flag="$_lt_dar_allow_undefined"
10727   case $cc_basename in
10728      ifort*) _lt_dar_can_shared=yes ;;
10729      *) _lt_dar_can_shared=$GCC ;;
10730   esac
10731   if test "$_lt_dar_can_shared" = "yes"; then
10732     output_verbose_link_cmd=echo
10733     archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
10734     module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
10735     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}"
10736     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}"
10737
10738   else
10739   ld_shlibs=no
10740   fi
10741
10742       ;;
10743
10744     dgux*)
10745       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10746       hardcode_libdir_flag_spec='-L$libdir'
10747       hardcode_shlibpath_var=no
10748       ;;
10749
10750     freebsd1*)
10751       ld_shlibs=no
10752       ;;
10753
10754     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
10755     # support.  Future versions do this automatically, but an explicit c++rt0.o
10756     # does not break anything, and helps significantly (at the cost of a little
10757     # extra space).
10758     freebsd2.2*)
10759       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
10760       hardcode_libdir_flag_spec='-R$libdir'
10761       hardcode_direct=yes
10762       hardcode_shlibpath_var=no
10763       ;;
10764
10765     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
10766     freebsd2*)
10767       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10768       hardcode_direct=yes
10769       hardcode_minus_L=yes
10770       hardcode_shlibpath_var=no
10771       ;;
10772
10773     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
10774     freebsd* | dragonfly*)
10775       archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
10776       hardcode_libdir_flag_spec='-R$libdir'
10777       hardcode_direct=yes
10778       hardcode_shlibpath_var=no
10779       ;;
10780
10781     hpux9*)
10782       if test "$GCC" = yes; then
10783         archive_cmds='$RM $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
10784       else
10785         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'
10786       fi
10787       hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10788       hardcode_libdir_separator=:
10789       hardcode_direct=yes
10790
10791       # hardcode_minus_L: Not really in the search PATH,
10792       # but as the default location of the library.
10793       hardcode_minus_L=yes
10794       export_dynamic_flag_spec='${wl}-E'
10795       ;;
10796
10797     hpux10*)
10798       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
10799         archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10800       else
10801         archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10802       fi
10803       if test "$with_gnu_ld" = no; then
10804         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10805         hardcode_libdir_flag_spec_ld='+b $libdir'
10806         hardcode_libdir_separator=:
10807         hardcode_direct=yes
10808         hardcode_direct_absolute=yes
10809         export_dynamic_flag_spec='${wl}-E'
10810         # hardcode_minus_L: Not really in the search PATH,
10811         # but as the default location of the library.
10812         hardcode_minus_L=yes
10813       fi
10814       ;;
10815
10816     hpux11*)
10817       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
10818         case $host_cpu in
10819         hppa*64*)
10820           archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10821           ;;
10822         ia64*)
10823           archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10824           ;;
10825         *)
10826           archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10827           ;;
10828         esac
10829       else
10830         case $host_cpu in
10831         hppa*64*)
10832           archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10833           ;;
10834         ia64*)
10835           archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10836           ;;
10837         *)
10838           archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10839           ;;
10840         esac
10841       fi
10842       if test "$with_gnu_ld" = no; then
10843         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10844         hardcode_libdir_separator=:
10845
10846         case $host_cpu in
10847         hppa*64*|ia64*)
10848           hardcode_direct=no
10849           hardcode_shlibpath_var=no
10850           ;;
10851         *)
10852           hardcode_direct=yes
10853           hardcode_direct_absolute=yes
10854           export_dynamic_flag_spec='${wl}-E'
10855
10856           # hardcode_minus_L: Not really in the search PATH,
10857           # but as the default location of the library.
10858           hardcode_minus_L=yes
10859           ;;
10860         esac
10861       fi
10862       ;;
10863
10864     irix5* | irix6* | nonstopux*)
10865       if test "$GCC" = yes; then
10866         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
10867         # Try to use the -exported_symbol ld option, if it does not
10868         # work, assume that -exports_file does not work either and
10869         # implicitly export all symbols.
10870         save_LDFLAGS="$LDFLAGS"
10871         LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
10872         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10873 /* end confdefs.h.  */
10874 int foo(void) {}
10875 _ACEOF
10876 if ac_fn_c_try_link "$LINENO"; then :
10877   archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations ${wl}-exports_file ${wl}$export_symbols -o $lib'
10878
10879 fi
10880 rm -f core conftest.err conftest.$ac_objext \
10881     conftest$ac_exeext conftest.$ac_ext
10882         LDFLAGS="$save_LDFLAGS"
10883       else
10884         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
10885         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -exports_file $export_symbols -o $lib'
10886       fi
10887       archive_cmds_need_lc='no'
10888       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10889       hardcode_libdir_separator=:
10890       inherit_rpath=yes
10891       link_all_deplibs=yes
10892       ;;
10893
10894     netbsd*)
10895       if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10896         archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
10897       else
10898         archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
10899       fi
10900       hardcode_libdir_flag_spec='-R$libdir'
10901       hardcode_direct=yes
10902       hardcode_shlibpath_var=no
10903       ;;
10904
10905     newsos6)
10906       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10907       hardcode_direct=yes
10908       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10909       hardcode_libdir_separator=:
10910       hardcode_shlibpath_var=no
10911       ;;
10912
10913     *nto* | *qnx*)
10914       ;;
10915
10916     openbsd*)
10917       if test -f /usr/libexec/ld.so; then
10918         hardcode_direct=yes
10919         hardcode_shlibpath_var=no
10920         hardcode_direct_absolute=yes
10921         if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10922           archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10923           archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
10924           hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10925           export_dynamic_flag_spec='${wl}-E'
10926         else
10927           case $host_os in
10928            openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
10929              archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10930              hardcode_libdir_flag_spec='-R$libdir'
10931              ;;
10932            *)
10933              archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10934              hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10935              ;;
10936           esac
10937         fi
10938       else
10939         ld_shlibs=no
10940       fi
10941       ;;
10942
10943     os2*)
10944       hardcode_libdir_flag_spec='-L$libdir'
10945       hardcode_minus_L=yes
10946       allow_undefined_flag=unsupported
10947       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'
10948       old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
10949       ;;
10950
10951     osf3*)
10952       if test "$GCC" = yes; then
10953         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10954         archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
10955       else
10956         allow_undefined_flag=' -expect_unresolved \*'
10957         archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
10958       fi
10959       archive_cmds_need_lc='no'
10960       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10961       hardcode_libdir_separator=:
10962       ;;
10963
10964     osf4* | osf5*)      # as osf3* with the addition of -msym flag
10965       if test "$GCC" = yes; then
10966         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10967         archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
10968         hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10969       else
10970         allow_undefined_flag=' -expect_unresolved \*'
10971         archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -msym -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
10972         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~
10973         $CC -shared${allow_undefined_flag} ${wl}-input ${wl}$lib.exp $compiler_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib~$RM $lib.exp'
10974
10975         # Both c and cxx compiler support -rpath directly
10976         hardcode_libdir_flag_spec='-rpath $libdir'
10977       fi
10978       archive_cmds_need_lc='no'
10979       hardcode_libdir_separator=:
10980       ;;
10981
10982     solaris*)
10983       no_undefined_flag=' -z defs'
10984       if test "$GCC" = yes; then
10985         wlarc='${wl}'
10986         archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10987         archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10988           $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10989       else
10990         case `$CC -V 2>&1` in
10991         *"Compilers 5.0"*)
10992           wlarc=''
10993           archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
10994           archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10995           $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
10996           ;;
10997         *)
10998           wlarc='${wl}'
10999           archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
11000           archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
11001           $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
11002           ;;
11003         esac
11004       fi
11005       hardcode_libdir_flag_spec='-R$libdir'
11006       hardcode_shlibpath_var=no
11007       case $host_os in
11008       solaris2.[0-5] | solaris2.[0-5].*) ;;
11009       *)
11010         # The compiler driver will combine and reorder linker options,
11011         # but understands `-z linker_flag'.  GCC discards it without `$wl',
11012         # but is careful enough not to reorder.
11013         # Supported since Solaris 2.6 (maybe 2.5.1?)
11014         if test "$GCC" = yes; then
11015           whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
11016         else
11017           whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
11018         fi
11019         ;;
11020       esac
11021       link_all_deplibs=yes
11022       ;;
11023
11024     sunos4*)
11025       if test "x$host_vendor" = xsequent; then
11026         # Use $CC to link under sequent, because it throws in some extra .o
11027         # files that make .init and .fini sections work.
11028         archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
11029       else
11030         archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
11031       fi
11032       hardcode_libdir_flag_spec='-L$libdir'
11033       hardcode_direct=yes
11034       hardcode_minus_L=yes
11035       hardcode_shlibpath_var=no
11036       ;;
11037
11038     sysv4)
11039       case $host_vendor in
11040         sni)
11041           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11042           hardcode_direct=yes # is this really true???
11043         ;;
11044         siemens)
11045           ## LD is ld it makes a PLAMLIB
11046           ## CC just makes a GrossModule.
11047           archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
11048           reload_cmds='$CC -r -o $output$reload_objs'
11049           hardcode_direct=no
11050         ;;
11051         motorola)
11052           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11053           hardcode_direct=no #Motorola manual says yes, but my tests say they lie
11054         ;;
11055       esac
11056       runpath_var='LD_RUN_PATH'
11057       hardcode_shlibpath_var=no
11058       ;;
11059
11060     sysv4.3*)
11061       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11062       hardcode_shlibpath_var=no
11063       export_dynamic_flag_spec='-Bexport'
11064       ;;
11065
11066     sysv4*MP*)
11067       if test -d /usr/nec; then
11068         archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11069         hardcode_shlibpath_var=no
11070         runpath_var=LD_RUN_PATH
11071         hardcode_runpath_var=yes
11072         ld_shlibs=yes
11073       fi
11074       ;;
11075
11076     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
11077       no_undefined_flag='${wl}-z,text'
11078       archive_cmds_need_lc=no
11079       hardcode_shlibpath_var=no
11080       runpath_var='LD_RUN_PATH'
11081
11082       if test "$GCC" = yes; then
11083         archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11084         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11085       else
11086         archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11087         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11088       fi
11089       ;;
11090
11091     sysv5* | sco3.2v5* | sco5v6*)
11092       # Note: We can NOT use -z defs as we might desire, because we do not
11093       # link with -lc, and that would cause any symbols used from libc to
11094       # always be unresolved, which means just about no library would
11095       # ever link correctly.  If we're not using GNU ld we use -z text
11096       # though, which does catch some bad symbols but isn't as heavy-handed
11097       # as -z defs.
11098       no_undefined_flag='${wl}-z,text'
11099       allow_undefined_flag='${wl}-z,nodefs'
11100       archive_cmds_need_lc=no
11101       hardcode_shlibpath_var=no
11102       hardcode_libdir_flag_spec='${wl}-R,$libdir'
11103       hardcode_libdir_separator=':'
11104       link_all_deplibs=yes
11105       export_dynamic_flag_spec='${wl}-Bexport'
11106       runpath_var='LD_RUN_PATH'
11107
11108       if test "$GCC" = yes; then
11109         archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11110         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11111       else
11112         archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11113         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11114       fi
11115       ;;
11116
11117     uts4*)
11118       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11119       hardcode_libdir_flag_spec='-L$libdir'
11120       hardcode_shlibpath_var=no
11121       ;;
11122
11123     *)
11124       ld_shlibs=no
11125       ;;
11126     esac
11127
11128     if test x$host_vendor = xsni; then
11129       case $host in
11130       sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
11131         export_dynamic_flag_spec='${wl}-Blargedynsym'
11132         ;;
11133       esac
11134     fi
11135   fi
11136
11137 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
11138 $as_echo "$ld_shlibs" >&6; }
11139 test "$ld_shlibs" = no && can_build_shared=no
11140
11141 with_gnu_ld=$with_gnu_ld
11142
11143
11144
11145
11146
11147
11148
11149
11150
11151
11152
11153
11154
11155
11156
11157 #
11158 # Do we need to explicitly link libc?
11159 #
11160 case "x$archive_cmds_need_lc" in
11161 x|xyes)
11162   # Assume -lc should be added
11163   archive_cmds_need_lc=yes
11164
11165   if test "$enable_shared" = yes && test "$GCC" = yes; then
11166     case $archive_cmds in
11167     *'~'*)
11168       # FIXME: we may have to deal with multi-command sequences.
11169       ;;
11170     '$CC '*)
11171       # Test whether the compiler implicitly links with -lc since on some
11172       # systems, -lgcc has to come before -lc. If gcc already passes -lc
11173       # to ld, don't add -lc before -lgcc.
11174       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
11175 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
11176       $RM conftest*
11177       echo "$lt_simple_compile_test_code" > conftest.$ac_ext
11178
11179       if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
11180   (eval $ac_compile) 2>&5
11181   ac_status=$?
11182   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11183   test $ac_status = 0; } 2>conftest.err; then
11184         soname=conftest
11185         lib=conftest
11186         libobjs=conftest.$ac_objext
11187         deplibs=
11188         wl=$lt_prog_compiler_wl
11189         pic_flag=$lt_prog_compiler_pic
11190         compiler_flags=-v
11191         linker_flags=-v
11192         verstring=
11193         output_objdir=.
11194         libname=conftest
11195         lt_save_allow_undefined_flag=$allow_undefined_flag
11196         allow_undefined_flag=
11197         if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
11198   (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
11199   ac_status=$?
11200   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11201   test $ac_status = 0; }
11202         then
11203           archive_cmds_need_lc=no
11204         else
11205           archive_cmds_need_lc=yes
11206         fi
11207         allow_undefined_flag=$lt_save_allow_undefined_flag
11208       else
11209         cat conftest.err 1>&5
11210       fi
11211       $RM conftest*
11212       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $archive_cmds_need_lc" >&5
11213 $as_echo "$archive_cmds_need_lc" >&6; }
11214       ;;
11215     esac
11216   fi
11217   ;;
11218 esac
11219
11220
11221
11222
11223
11224
11225
11226
11227
11228
11229
11230
11231
11232
11233
11234
11235
11236
11237
11238
11239
11240
11241
11242
11243
11244
11245
11246
11247
11248
11249
11250
11251
11252
11253
11254
11255
11256
11257
11258
11259
11260
11261
11262
11263
11264
11265
11266
11267
11268
11269
11270
11271
11272
11273
11274
11275
11276
11277
11278
11279
11280
11281
11282
11283
11284
11285
11286
11287
11288
11289
11290
11291
11292
11293
11294
11295
11296
11297
11298
11299
11300
11301
11302
11303
11304
11305
11306
11307
11308
11309
11310
11311
11312
11313
11314
11315
11316
11317
11318
11319
11320
11321
11322
11323
11324
11325
11326
11327
11328
11329
11330
11331
11332
11333
11334
11335
11336
11337
11338
11339
11340
11341
11342
11343
11344
11345
11346
11347
11348
11349
11350
11351
11352
11353
11354
11355
11356
11357
11358
11359
11360
11361
11362
11363
11364
11365
11366
11367
11368
11369
11370
11371
11372
11373
11374
11375
11376   { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
11377 $as_echo_n "checking dynamic linker characteristics... " >&6; }
11378
11379 if test "$GCC" = yes; then
11380   case $host_os in
11381     darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
11382     *) lt_awk_arg="/^libraries:/" ;;
11383   esac
11384   lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
11385   if $ECHO "$lt_search_path_spec" | $GREP ';' >/dev/null ; then
11386     # if the path contains ";" then we assume it to be the separator
11387     # otherwise default to the standard path separator (i.e. ":") - it is
11388     # assumed that no part of a normal pathname contains ";" but that should
11389     # okay in the real world where ";" in dirpaths is itself problematic.
11390     lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e 's/;/ /g'`
11391   else
11392     lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
11393   fi
11394   # Ok, now we have the path, separated by spaces, we can step through it
11395   # and add multilib dir if necessary.
11396   lt_tmp_lt_search_path_spec=
11397   lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
11398   for lt_sys_path in $lt_search_path_spec; do
11399     if test -d "$lt_sys_path/$lt_multi_os_dir"; then
11400       lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
11401     else
11402       test -d "$lt_sys_path" && \
11403         lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
11404     fi
11405   done
11406   lt_search_path_spec=`$ECHO $lt_tmp_lt_search_path_spec | awk '
11407 BEGIN {RS=" "; FS="/|\n";} {
11408   lt_foo="";
11409   lt_count=0;
11410   for (lt_i = NF; lt_i > 0; lt_i--) {
11411     if ($lt_i != "" && $lt_i != ".") {
11412       if ($lt_i == "..") {
11413         lt_count++;
11414       } else {
11415         if (lt_count == 0) {
11416           lt_foo="/" $lt_i lt_foo;
11417         } else {
11418           lt_count--;
11419         }
11420       }
11421     }
11422   }
11423   if (lt_foo != "") { lt_freq[lt_foo]++; }
11424   if (lt_freq[lt_foo] == 1) { print lt_foo; }
11425 }'`
11426   sys_lib_search_path_spec=`$ECHO $lt_search_path_spec`
11427 else
11428   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
11429 fi
11430 library_names_spec=
11431 libname_spec='lib$name'
11432 soname_spec=
11433 shrext_cmds=".so"
11434 postinstall_cmds=
11435 postuninstall_cmds=
11436 finish_cmds=
11437 finish_eval=
11438 shlibpath_var=
11439 shlibpath_overrides_runpath=unknown
11440 version_type=none
11441 dynamic_linker="$host_os ld.so"
11442 sys_lib_dlsearch_path_spec="/lib /usr/lib"
11443 need_lib_prefix=unknown
11444 hardcode_into_libs=no
11445
11446 # when you set need_version to no, make sure it does not cause -set_version
11447 # flags to be left without arguments
11448 need_version=unknown
11449
11450 case $host_os in
11451 aix3*)
11452   version_type=linux
11453   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
11454   shlibpath_var=LIBPATH
11455
11456   # AIX 3 has no versioning support, so we append a major version to the name.
11457   soname_spec='${libname}${release}${shared_ext}$major'
11458   ;;
11459
11460 aix[4-9]*)
11461   version_type=linux
11462   need_lib_prefix=no
11463   need_version=no
11464   hardcode_into_libs=yes
11465   if test "$host_cpu" = ia64; then
11466     # AIX 5 supports IA64
11467     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
11468     shlibpath_var=LD_LIBRARY_PATH
11469   else
11470     # With GCC up to 2.95.x, collect2 would create an import file
11471     # for dependence libraries.  The import file would start with
11472     # the line `#! .'.  This would cause the generated library to
11473     # depend on `.', always an invalid library.  This was fixed in
11474     # development snapshots of GCC prior to 3.0.
11475     case $host_os in
11476       aix4 | aix4.[01] | aix4.[01].*)
11477       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
11478            echo ' yes '
11479            echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
11480         :
11481       else
11482         can_build_shared=no
11483       fi
11484       ;;
11485     esac
11486     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
11487     # soname into executable. Probably we can add versioning support to
11488     # collect2, so additional links can be useful in future.
11489     if test "$aix_use_runtimelinking" = yes; then
11490       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
11491       # instead of lib<name>.a to let people know that these are not
11492       # typical AIX shared libraries.
11493       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11494     else
11495       # We preserve .a as extension for shared libraries through AIX4.2
11496       # and later when we are not doing run time linking.
11497       library_names_spec='${libname}${release}.a $libname.a'
11498       soname_spec='${libname}${release}${shared_ext}$major'
11499     fi
11500     shlibpath_var=LIBPATH
11501   fi
11502   ;;
11503
11504 amigaos*)
11505   case $host_cpu in
11506   powerpc)
11507     # Since July 2007 AmigaOS4 officially supports .so libraries.
11508     # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
11509     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11510     ;;
11511   m68k)
11512     library_names_spec='$libname.ixlibrary $libname.a'
11513     # Create ${libname}_ixlibrary.a entries in /sys/libs.
11514     finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$ECHO "X$lib" | $Xsed -e '\''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'
11515     ;;
11516   esac
11517   ;;
11518
11519 beos*)
11520   library_names_spec='${libname}${shared_ext}'
11521   dynamic_linker="$host_os ld.so"
11522   shlibpath_var=LIBRARY_PATH
11523   ;;
11524
11525 bsdi[45]*)
11526   version_type=linux
11527   need_version=no
11528   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11529   soname_spec='${libname}${release}${shared_ext}$major'
11530   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
11531   shlibpath_var=LD_LIBRARY_PATH
11532   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
11533   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
11534   # the default ld.so.conf also contains /usr/contrib/lib and
11535   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
11536   # libtool to hard-code these into programs
11537   ;;
11538
11539 cygwin* | mingw* | pw32* | cegcc*)
11540   version_type=windows
11541   shrext_cmds=".dll"
11542   need_version=no
11543   need_lib_prefix=no
11544
11545   case $GCC,$host_os in
11546   yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
11547     library_names_spec='$libname.dll.a'
11548     # DLL is installed to $(libdir)/../bin by postinstall_cmds
11549     postinstall_cmds='base_file=`basename \${file}`~
11550       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
11551       dldir=$destdir/`dirname \$dlpath`~
11552       test -d \$dldir || mkdir -p \$dldir~
11553       $install_prog $dir/$dlname \$dldir/$dlname~
11554       chmod a+x \$dldir/$dlname~
11555       if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
11556         eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
11557       fi'
11558     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11559       dlpath=$dir/\$dldll~
11560        $RM \$dlpath'
11561     shlibpath_overrides_runpath=yes
11562
11563     case $host_os in
11564     cygwin*)
11565       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
11566       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11567       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
11568       ;;
11569     mingw* | cegcc*)
11570       # MinGW DLLs use traditional 'lib' prefix
11571       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11572       sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
11573       if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
11574         # It is most probably a Windows format PATH printed by
11575         # mingw gcc, but we are running on Cygwin. Gcc prints its search
11576         # path with ; separators, and with drive letters. We can handle the
11577         # drive letters (cygwin fileutils understands them), so leave them,
11578         # especially as we might pass files found there to a mingw objdump,
11579         # which wouldn't understand a cygwinified path. Ahh.
11580         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
11581       else
11582         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
11583       fi
11584       ;;
11585     pw32*)
11586       # pw32 DLLs use 'pw' prefix rather than 'lib'
11587       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11588       ;;
11589     esac
11590     ;;
11591
11592   *)
11593     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
11594     ;;
11595   esac
11596   dynamic_linker='Win32 ld.exe'
11597   # FIXME: first we should search . and the directory the executable is in
11598   shlibpath_var=PATH
11599   ;;
11600
11601 darwin* | rhapsody*)
11602   dynamic_linker="$host_os dyld"
11603   version_type=darwin
11604   need_lib_prefix=no
11605   need_version=no
11606   library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
11607   soname_spec='${libname}${release}${major}$shared_ext'
11608   shlibpath_overrides_runpath=yes
11609   shlibpath_var=DYLD_LIBRARY_PATH
11610   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
11611
11612   sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
11613   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
11614   ;;
11615
11616 dgux*)
11617   version_type=linux
11618   need_lib_prefix=no
11619   need_version=no
11620   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
11621   soname_spec='${libname}${release}${shared_ext}$major'
11622   shlibpath_var=LD_LIBRARY_PATH
11623   ;;
11624
11625 freebsd1*)
11626   dynamic_linker=no
11627   ;;
11628
11629 freebsd* | dragonfly*)
11630   # DragonFly does not have aout.  When/if they implement a new
11631   # versioning mechanism, adjust this.
11632   if test -x /usr/bin/objformat; then
11633     objformat=`/usr/bin/objformat`
11634   else
11635     case $host_os in
11636     freebsd[123]*) objformat=aout ;;
11637     *) objformat=elf ;;
11638     esac
11639   fi
11640   version_type=freebsd-$objformat
11641   case $version_type in
11642     freebsd-elf*)
11643       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11644       need_version=no
11645       need_lib_prefix=no
11646       ;;
11647     freebsd-*)
11648       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
11649       need_version=yes
11650       ;;
11651   esac
11652   shlibpath_var=LD_LIBRARY_PATH
11653   case $host_os in
11654   freebsd2*)
11655     shlibpath_overrides_runpath=yes
11656     ;;
11657   freebsd3.[01]* | freebsdelf3.[01]*)
11658     shlibpath_overrides_runpath=yes
11659     hardcode_into_libs=yes
11660     ;;
11661   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
11662   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
11663     shlibpath_overrides_runpath=no
11664     hardcode_into_libs=yes
11665     ;;
11666   *) # from 4.6 on, and DragonFly
11667     shlibpath_overrides_runpath=yes
11668     hardcode_into_libs=yes
11669     ;;
11670   esac
11671   ;;
11672
11673 gnu*)
11674   version_type=linux
11675   need_lib_prefix=no
11676   need_version=no
11677   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
11678   soname_spec='${libname}${release}${shared_ext}$major'
11679   shlibpath_var=LD_LIBRARY_PATH
11680   hardcode_into_libs=yes
11681   ;;
11682
11683 hpux9* | hpux10* | hpux11*)
11684   # Give a soname corresponding to the major version so that dld.sl refuses to
11685   # link against other versions.
11686   version_type=sunos
11687   need_lib_prefix=no
11688   need_version=no
11689   case $host_cpu in
11690   ia64*)
11691     shrext_cmds='.so'
11692     hardcode_into_libs=yes
11693     dynamic_linker="$host_os dld.so"
11694     shlibpath_var=LD_LIBRARY_PATH
11695     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11696     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11697     soname_spec='${libname}${release}${shared_ext}$major'
11698     if test "X$HPUX_IA64_MODE" = X32; then
11699       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
11700     else
11701       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
11702     fi
11703     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11704     ;;
11705   hppa*64*)
11706     shrext_cmds='.sl'
11707     hardcode_into_libs=yes
11708     dynamic_linker="$host_os dld.sl"
11709     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
11710     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11711     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11712     soname_spec='${libname}${release}${shared_ext}$major'
11713     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
11714     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11715     ;;
11716   *)
11717     shrext_cmds='.sl'
11718     dynamic_linker="$host_os dld.sl"
11719     shlibpath_var=SHLIB_PATH
11720     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
11721     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11722     soname_spec='${libname}${release}${shared_ext}$major'
11723     ;;
11724   esac
11725   # HP-UX runs *really* slowly unless shared libraries are mode 555.
11726   postinstall_cmds='chmod 555 $lib'
11727   ;;
11728
11729 interix[3-9]*)
11730   version_type=linux
11731   need_lib_prefix=no
11732   need_version=no
11733   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11734   soname_spec='${libname}${release}${shared_ext}$major'
11735   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
11736   shlibpath_var=LD_LIBRARY_PATH
11737   shlibpath_overrides_runpath=no
11738   hardcode_into_libs=yes
11739   ;;
11740
11741 irix5* | irix6* | nonstopux*)
11742   case $host_os in
11743     nonstopux*) version_type=nonstopux ;;
11744     *)
11745         if test "$lt_cv_prog_gnu_ld" = yes; then
11746                 version_type=linux
11747         else
11748                 version_type=irix
11749         fi ;;
11750   esac
11751   need_lib_prefix=no
11752   need_version=no
11753   soname_spec='${libname}${release}${shared_ext}$major'
11754   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
11755   case $host_os in
11756   irix5* | nonstopux*)
11757     libsuff= shlibsuff=
11758     ;;
11759   *)
11760     case $LD in # libtool.m4 will add one of these switches to LD
11761     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
11762       libsuff= shlibsuff= libmagic=32-bit;;
11763     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
11764       libsuff=32 shlibsuff=N32 libmagic=N32;;
11765     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
11766       libsuff=64 shlibsuff=64 libmagic=64-bit;;
11767     *) libsuff= shlibsuff= libmagic=never-match;;
11768     esac
11769     ;;
11770   esac
11771   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
11772   shlibpath_overrides_runpath=no
11773   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
11774   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
11775   hardcode_into_libs=yes
11776   ;;
11777
11778 # No shared lib support for Linux oldld, aout, or coff.
11779 linux*oldld* | linux*aout* | linux*coff*)
11780   dynamic_linker=no
11781   ;;
11782
11783 # This must be Linux ELF.
11784 linux* | k*bsd*-gnu)
11785   version_type=linux
11786   need_lib_prefix=no
11787   need_version=no
11788   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11789   soname_spec='${libname}${release}${shared_ext}$major'
11790   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
11791   shlibpath_var=LD_LIBRARY_PATH
11792   shlibpath_overrides_runpath=no
11793   # Some binutils ld are patched to set DT_RUNPATH
11794   save_LDFLAGS=$LDFLAGS
11795   save_libdir=$libdir
11796   eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
11797        LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
11798   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11799 /* end confdefs.h.  */
11800
11801 int
11802 main ()
11803 {
11804
11805   ;
11806   return 0;
11807 }
11808 _ACEOF
11809 if ac_fn_c_try_link "$LINENO"; then :
11810   if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
11811   shlibpath_overrides_runpath=yes
11812 fi
11813 fi
11814 rm -f core conftest.err conftest.$ac_objext \
11815     conftest$ac_exeext conftest.$ac_ext
11816   LDFLAGS=$save_LDFLAGS
11817   libdir=$save_libdir
11818
11819   # This implies no fast_install, which is unacceptable.
11820   # Some rework will be needed to allow for fast_install
11821   # before this can be enabled.
11822   hardcode_into_libs=yes
11823
11824   # Append ld.so.conf contents to the search path
11825   if test -f /etc/ld.so.conf; then
11826     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;/^$/d' | tr '\n' ' '`
11827     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
11828   fi
11829
11830   # We used to test for /lib/ld.so.1 and disable shared libraries on
11831   # powerpc, because MkLinux only supported shared libraries with the
11832   # GNU dynamic linker.  Since this was broken with cross compilers,
11833   # most powerpc-linux boxes support dynamic linking these days and
11834   # people can always --disable-shared, the test was removed, and we
11835   # assume the GNU/Linux dynamic linker is in use.
11836   dynamic_linker='GNU/Linux ld.so'
11837   ;;
11838
11839 netbsd*)
11840   version_type=sunos
11841   need_lib_prefix=no
11842   need_version=no
11843   if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11844     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11845     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11846     dynamic_linker='NetBSD (a.out) ld.so'
11847   else
11848     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11849     soname_spec='${libname}${release}${shared_ext}$major'
11850     dynamic_linker='NetBSD ld.elf_so'
11851   fi
11852   shlibpath_var=LD_LIBRARY_PATH
11853   shlibpath_overrides_runpath=yes
11854   hardcode_into_libs=yes
11855   ;;
11856
11857 newsos6)
11858   version_type=linux
11859   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11860   shlibpath_var=LD_LIBRARY_PATH
11861   shlibpath_overrides_runpath=yes
11862   ;;
11863
11864 *nto* | *qnx*)
11865   version_type=qnx
11866   need_lib_prefix=no
11867   need_version=no
11868   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11869   soname_spec='${libname}${release}${shared_ext}$major'
11870   shlibpath_var=LD_LIBRARY_PATH
11871   shlibpath_overrides_runpath=no
11872   hardcode_into_libs=yes
11873   dynamic_linker='ldqnx.so'
11874   ;;
11875
11876 openbsd*)
11877   version_type=sunos
11878   sys_lib_dlsearch_path_spec="/usr/lib"
11879   need_lib_prefix=no
11880   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
11881   case $host_os in
11882     openbsd3.3 | openbsd3.3.*)  need_version=yes ;;
11883     *)                          need_version=no  ;;
11884   esac
11885   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11886   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11887   shlibpath_var=LD_LIBRARY_PATH
11888   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11889     case $host_os in
11890       openbsd2.[89] | openbsd2.[89].*)
11891         shlibpath_overrides_runpath=no
11892         ;;
11893       *)
11894         shlibpath_overrides_runpath=yes
11895         ;;
11896       esac
11897   else
11898     shlibpath_overrides_runpath=yes
11899   fi
11900   ;;
11901
11902 os2*)
11903   libname_spec='$name'
11904   shrext_cmds=".dll"
11905   need_lib_prefix=no
11906   library_names_spec='$libname${shared_ext} $libname.a'
11907   dynamic_linker='OS/2 ld.exe'
11908   shlibpath_var=LIBPATH
11909   ;;
11910
11911 osf3* | osf4* | osf5*)
11912   version_type=osf
11913   need_lib_prefix=no
11914   need_version=no
11915   soname_spec='${libname}${release}${shared_ext}$major'
11916   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11917   shlibpath_var=LD_LIBRARY_PATH
11918   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
11919   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
11920   ;;
11921
11922 rdos*)
11923   dynamic_linker=no
11924   ;;
11925
11926 solaris*)
11927   version_type=linux
11928   need_lib_prefix=no
11929   need_version=no
11930   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11931   soname_spec='${libname}${release}${shared_ext}$major'
11932   shlibpath_var=LD_LIBRARY_PATH
11933   shlibpath_overrides_runpath=yes
11934   hardcode_into_libs=yes
11935   # ldd complains unless libraries are executable
11936   postinstall_cmds='chmod +x $lib'
11937   ;;
11938
11939 sunos4*)
11940   version_type=sunos
11941   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11942   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
11943   shlibpath_var=LD_LIBRARY_PATH
11944   shlibpath_overrides_runpath=yes
11945   if test "$with_gnu_ld" = yes; then
11946     need_lib_prefix=no
11947   fi
11948   need_version=yes
11949   ;;
11950
11951 sysv4 | sysv4.3*)
11952   version_type=linux
11953   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11954   soname_spec='${libname}${release}${shared_ext}$major'
11955   shlibpath_var=LD_LIBRARY_PATH
11956   case $host_vendor in
11957     sni)
11958       shlibpath_overrides_runpath=no
11959       need_lib_prefix=no
11960       runpath_var=LD_RUN_PATH
11961       ;;
11962     siemens)
11963       need_lib_prefix=no
11964       ;;
11965     motorola)
11966       need_lib_prefix=no
11967       need_version=no
11968       shlibpath_overrides_runpath=no
11969       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
11970       ;;
11971   esac
11972   ;;
11973
11974 sysv4*MP*)
11975   if test -d /usr/nec ;then
11976     version_type=linux
11977     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
11978     soname_spec='$libname${shared_ext}.$major'
11979     shlibpath_var=LD_LIBRARY_PATH
11980   fi
11981   ;;
11982
11983 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
11984   version_type=freebsd-elf
11985   need_lib_prefix=no
11986   need_version=no
11987   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11988   soname_spec='${libname}${release}${shared_ext}$major'
11989   shlibpath_var=LD_LIBRARY_PATH
11990   shlibpath_overrides_runpath=yes
11991   hardcode_into_libs=yes
11992   if test "$with_gnu_ld" = yes; then
11993     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
11994   else
11995     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
11996     case $host_os in
11997       sco3.2v5*)
11998         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
11999         ;;
12000     esac
12001   fi
12002   sys_lib_dlsearch_path_spec='/usr/lib'
12003   ;;
12004
12005 tpf*)
12006   # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
12007   version_type=linux
12008   need_lib_prefix=no
12009   need_version=no
12010   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12011   shlibpath_var=LD_LIBRARY_PATH
12012   shlibpath_overrides_runpath=no
12013   hardcode_into_libs=yes
12014   ;;
12015
12016 uts4*)
12017   version_type=linux
12018   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12019   soname_spec='${libname}${release}${shared_ext}$major'
12020   shlibpath_var=LD_LIBRARY_PATH
12021   ;;
12022
12023 *)
12024   dynamic_linker=no
12025   ;;
12026 esac
12027 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
12028 $as_echo "$dynamic_linker" >&6; }
12029 test "$dynamic_linker" = no && can_build_shared=no
12030
12031 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
12032 if test "$GCC" = yes; then
12033   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
12034 fi
12035
12036 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
12037   sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
12038 fi
12039 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
12040   sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
12041 fi
12042
12043
12044
12045
12046
12047
12048
12049
12050
12051
12052
12053
12054
12055
12056
12057
12058
12059
12060
12061
12062
12063
12064
12065
12066
12067
12068
12069
12070
12071
12072
12073
12074
12075
12076
12077
12078
12079
12080
12081
12082
12083
12084
12085
12086
12087
12088
12089
12090
12091
12092
12093
12094
12095
12096
12097
12098
12099
12100
12101
12102
12103
12104
12105
12106
12107
12108
12109
12110
12111
12112
12113
12114
12115
12116
12117
12118
12119
12120
12121
12122
12123
12124
12125
12126
12127
12128
12129   { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
12130 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
12131 hardcode_action=
12132 if test -n "$hardcode_libdir_flag_spec" ||
12133    test -n "$runpath_var" ||
12134    test "X$hardcode_automatic" = "Xyes" ; then
12135
12136   # We can hardcode non-existent directories.
12137   if test "$hardcode_direct" != no &&
12138      # If the only mechanism to avoid hardcoding is shlibpath_var, we
12139      # have to relink, otherwise we might link with an installed library
12140      # when we should be linking with a yet-to-be-installed one
12141      ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
12142      test "$hardcode_minus_L" != no; then
12143     # Linking always hardcodes the temporary library directory.
12144     hardcode_action=relink
12145   else
12146     # We can link without hardcoding, and we can hardcode nonexisting dirs.
12147     hardcode_action=immediate
12148   fi
12149 else
12150   # We cannot hardcode anything, or else we can only hardcode existing
12151   # directories.
12152   hardcode_action=unsupported
12153 fi
12154 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
12155 $as_echo "$hardcode_action" >&6; }
12156
12157 if test "$hardcode_action" = relink ||
12158    test "$inherit_rpath" = yes; then
12159   # Fast installation is not supported
12160   enable_fast_install=no
12161 elif test "$shlibpath_overrides_runpath" = yes ||
12162      test "$enable_shared" = no; then
12163   # Fast installation is not necessary
12164   enable_fast_install=needless
12165 fi
12166
12167
12168
12169
12170
12171
12172   if test "x$enable_dlopen" != xyes; then
12173   enable_dlopen=unknown
12174   enable_dlopen_self=unknown
12175   enable_dlopen_self_static=unknown
12176 else
12177   lt_cv_dlopen=no
12178   lt_cv_dlopen_libs=
12179
12180   case $host_os in
12181   beos*)
12182     lt_cv_dlopen="load_add_on"
12183     lt_cv_dlopen_libs=
12184     lt_cv_dlopen_self=yes
12185     ;;
12186
12187   mingw* | pw32* | cegcc*)
12188     lt_cv_dlopen="LoadLibrary"
12189     lt_cv_dlopen_libs=
12190     ;;
12191
12192   cygwin*)
12193     lt_cv_dlopen="dlopen"
12194     lt_cv_dlopen_libs=
12195     ;;
12196
12197   darwin*)
12198   # if libdl is installed we need to link against it
12199     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
12200 $as_echo_n "checking for dlopen in -ldl... " >&6; }
12201 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
12202   $as_echo_n "(cached) " >&6
12203 else
12204   ac_check_lib_save_LIBS=$LIBS
12205 LIBS="-ldl  $LIBS"
12206 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12207 /* end confdefs.h.  */
12208
12209 /* Override any GCC internal prototype to avoid an error.
12210    Use char because int might match the return type of a GCC
12211    builtin and then its argument prototype would still apply.  */
12212 #ifdef __cplusplus
12213 extern "C"
12214 #endif
12215 char dlopen ();
12216 int
12217 main ()
12218 {
12219 return dlopen ();
12220   ;
12221   return 0;
12222 }
12223 _ACEOF
12224 if ac_fn_c_try_link "$LINENO"; then :
12225   ac_cv_lib_dl_dlopen=yes
12226 else
12227   ac_cv_lib_dl_dlopen=no
12228 fi
12229 rm -f core conftest.err conftest.$ac_objext \
12230     conftest$ac_exeext conftest.$ac_ext
12231 LIBS=$ac_check_lib_save_LIBS
12232 fi
12233 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
12234 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
12235 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
12236   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
12237 else
12238
12239     lt_cv_dlopen="dyld"
12240     lt_cv_dlopen_libs=
12241     lt_cv_dlopen_self=yes
12242
12243 fi
12244
12245     ;;
12246
12247   *)
12248     ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
12249 if test "x$ac_cv_func_shl_load" = x""yes; then :
12250   lt_cv_dlopen="shl_load"
12251 else
12252   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
12253 $as_echo_n "checking for shl_load in -ldld... " >&6; }
12254 if test "${ac_cv_lib_dld_shl_load+set}" = set; then :
12255   $as_echo_n "(cached) " >&6
12256 else
12257   ac_check_lib_save_LIBS=$LIBS
12258 LIBS="-ldld  $LIBS"
12259 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12260 /* end confdefs.h.  */
12261
12262 /* Override any GCC internal prototype to avoid an error.
12263    Use char because int might match the return type of a GCC
12264    builtin and then its argument prototype would still apply.  */
12265 #ifdef __cplusplus
12266 extern "C"
12267 #endif
12268 char shl_load ();
12269 int
12270 main ()
12271 {
12272 return shl_load ();
12273   ;
12274   return 0;
12275 }
12276 _ACEOF
12277 if ac_fn_c_try_link "$LINENO"; then :
12278   ac_cv_lib_dld_shl_load=yes
12279 else
12280   ac_cv_lib_dld_shl_load=no
12281 fi
12282 rm -f core conftest.err conftest.$ac_objext \
12283     conftest$ac_exeext conftest.$ac_ext
12284 LIBS=$ac_check_lib_save_LIBS
12285 fi
12286 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
12287 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
12288 if test "x$ac_cv_lib_dld_shl_load" = x""yes; then :
12289   lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
12290 else
12291   ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
12292 if test "x$ac_cv_func_dlopen" = x""yes; then :
12293   lt_cv_dlopen="dlopen"
12294 else
12295   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
12296 $as_echo_n "checking for dlopen in -ldl... " >&6; }
12297 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
12298   $as_echo_n "(cached) " >&6
12299 else
12300   ac_check_lib_save_LIBS=$LIBS
12301 LIBS="-ldl  $LIBS"
12302 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12303 /* end confdefs.h.  */
12304
12305 /* Override any GCC internal prototype to avoid an error.
12306    Use char because int might match the return type of a GCC
12307    builtin and then its argument prototype would still apply.  */
12308 #ifdef __cplusplus
12309 extern "C"
12310 #endif
12311 char dlopen ();
12312 int
12313 main ()
12314 {
12315 return dlopen ();
12316   ;
12317   return 0;
12318 }
12319 _ACEOF
12320 if ac_fn_c_try_link "$LINENO"; then :
12321   ac_cv_lib_dl_dlopen=yes
12322 else
12323   ac_cv_lib_dl_dlopen=no
12324 fi
12325 rm -f core conftest.err conftest.$ac_objext \
12326     conftest$ac_exeext conftest.$ac_ext
12327 LIBS=$ac_check_lib_save_LIBS
12328 fi
12329 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
12330 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
12331 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
12332   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
12333 else
12334   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
12335 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
12336 if test "${ac_cv_lib_svld_dlopen+set}" = set; then :
12337   $as_echo_n "(cached) " >&6
12338 else
12339   ac_check_lib_save_LIBS=$LIBS
12340 LIBS="-lsvld  $LIBS"
12341 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12342 /* end confdefs.h.  */
12343
12344 /* Override any GCC internal prototype to avoid an error.
12345    Use char because int might match the return type of a GCC
12346    builtin and then its argument prototype would still apply.  */
12347 #ifdef __cplusplus
12348 extern "C"
12349 #endif
12350 char dlopen ();
12351 int
12352 main ()
12353 {
12354 return dlopen ();
12355   ;
12356   return 0;
12357 }
12358 _ACEOF
12359 if ac_fn_c_try_link "$LINENO"; then :
12360   ac_cv_lib_svld_dlopen=yes
12361 else
12362   ac_cv_lib_svld_dlopen=no
12363 fi
12364 rm -f core conftest.err conftest.$ac_objext \
12365     conftest$ac_exeext conftest.$ac_ext
12366 LIBS=$ac_check_lib_save_LIBS
12367 fi
12368 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
12369 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
12370 if test "x$ac_cv_lib_svld_dlopen" = x""yes; then :
12371   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
12372 else
12373   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
12374 $as_echo_n "checking for dld_link in -ldld... " >&6; }
12375 if test "${ac_cv_lib_dld_dld_link+set}" = set; then :
12376   $as_echo_n "(cached) " >&6
12377 else
12378   ac_check_lib_save_LIBS=$LIBS
12379 LIBS="-ldld  $LIBS"
12380 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12381 /* end confdefs.h.  */
12382
12383 /* Override any GCC internal prototype to avoid an error.
12384    Use char because int might match the return type of a GCC
12385    builtin and then its argument prototype would still apply.  */
12386 #ifdef __cplusplus
12387 extern "C"
12388 #endif
12389 char dld_link ();
12390 int
12391 main ()
12392 {
12393 return dld_link ();
12394   ;
12395   return 0;
12396 }
12397 _ACEOF
12398 if ac_fn_c_try_link "$LINENO"; then :
12399   ac_cv_lib_dld_dld_link=yes
12400 else
12401   ac_cv_lib_dld_dld_link=no
12402 fi
12403 rm -f core conftest.err conftest.$ac_objext \
12404     conftest$ac_exeext conftest.$ac_ext
12405 LIBS=$ac_check_lib_save_LIBS
12406 fi
12407 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
12408 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
12409 if test "x$ac_cv_lib_dld_dld_link" = x""yes; then :
12410   lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
12411 fi
12412
12413
12414 fi
12415
12416
12417 fi
12418
12419
12420 fi
12421
12422
12423 fi
12424
12425
12426 fi
12427
12428     ;;
12429   esac
12430
12431   if test "x$lt_cv_dlopen" != xno; then
12432     enable_dlopen=yes
12433   else
12434     enable_dlopen=no
12435   fi
12436
12437   case $lt_cv_dlopen in
12438   dlopen)
12439     save_CPPFLAGS="$CPPFLAGS"
12440     test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
12441
12442     save_LDFLAGS="$LDFLAGS"
12443     wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
12444
12445     save_LIBS="$LIBS"
12446     LIBS="$lt_cv_dlopen_libs $LIBS"
12447
12448     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
12449 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
12450 if test "${lt_cv_dlopen_self+set}" = set; then :
12451   $as_echo_n "(cached) " >&6
12452 else
12453           if test "$cross_compiling" = yes; then :
12454   lt_cv_dlopen_self=cross
12455 else
12456   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12457   lt_status=$lt_dlunknown
12458   cat > conftest.$ac_ext <<_LT_EOF
12459 #line 12459 "configure"
12460 #include "confdefs.h"
12461
12462 #if HAVE_DLFCN_H
12463 #include <dlfcn.h>
12464 #endif
12465
12466 #include <stdio.h>
12467
12468 #ifdef RTLD_GLOBAL
12469 #  define LT_DLGLOBAL           RTLD_GLOBAL
12470 #else
12471 #  ifdef DL_GLOBAL
12472 #    define LT_DLGLOBAL         DL_GLOBAL
12473 #  else
12474 #    define LT_DLGLOBAL         0
12475 #  endif
12476 #endif
12477
12478 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12479    find out it does not work in some platform. */
12480 #ifndef LT_DLLAZY_OR_NOW
12481 #  ifdef RTLD_LAZY
12482 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
12483 #  else
12484 #    ifdef DL_LAZY
12485 #      define LT_DLLAZY_OR_NOW          DL_LAZY
12486 #    else
12487 #      ifdef RTLD_NOW
12488 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
12489 #      else
12490 #        ifdef DL_NOW
12491 #          define LT_DLLAZY_OR_NOW      DL_NOW
12492 #        else
12493 #          define LT_DLLAZY_OR_NOW      0
12494 #        endif
12495 #      endif
12496 #    endif
12497 #  endif
12498 #endif
12499
12500 void fnord() { int i=42;}
12501 int main ()
12502 {
12503   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12504   int status = $lt_dlunknown;
12505
12506   if (self)
12507     {
12508       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
12509       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12510       /* dlclose (self); */
12511     }
12512   else
12513     puts (dlerror ());
12514
12515   return status;
12516 }
12517 _LT_EOF
12518   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12519   (eval $ac_link) 2>&5
12520   ac_status=$?
12521   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12522   test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
12523     (./conftest; exit; ) >&5 2>/dev/null
12524     lt_status=$?
12525     case x$lt_status in
12526       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
12527       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
12528       x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
12529     esac
12530   else :
12531     # compilation failed
12532     lt_cv_dlopen_self=no
12533   fi
12534 fi
12535 rm -fr conftest*
12536
12537
12538 fi
12539 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
12540 $as_echo "$lt_cv_dlopen_self" >&6; }
12541
12542     if test "x$lt_cv_dlopen_self" = xyes; then
12543       wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
12544       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
12545 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
12546 if test "${lt_cv_dlopen_self_static+set}" = set; then :
12547   $as_echo_n "(cached) " >&6
12548 else
12549           if test "$cross_compiling" = yes; then :
12550   lt_cv_dlopen_self_static=cross
12551 else
12552   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12553   lt_status=$lt_dlunknown
12554   cat > conftest.$ac_ext <<_LT_EOF
12555 #line 12555 "configure"
12556 #include "confdefs.h"
12557
12558 #if HAVE_DLFCN_H
12559 #include <dlfcn.h>
12560 #endif
12561
12562 #include <stdio.h>
12563
12564 #ifdef RTLD_GLOBAL
12565 #  define LT_DLGLOBAL           RTLD_GLOBAL
12566 #else
12567 #  ifdef DL_GLOBAL
12568 #    define LT_DLGLOBAL         DL_GLOBAL
12569 #  else
12570 #    define LT_DLGLOBAL         0
12571 #  endif
12572 #endif
12573
12574 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12575    find out it does not work in some platform. */
12576 #ifndef LT_DLLAZY_OR_NOW
12577 #  ifdef RTLD_LAZY
12578 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
12579 #  else
12580 #    ifdef DL_LAZY
12581 #      define LT_DLLAZY_OR_NOW          DL_LAZY
12582 #    else
12583 #      ifdef RTLD_NOW
12584 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
12585 #      else
12586 #        ifdef DL_NOW
12587 #          define LT_DLLAZY_OR_NOW      DL_NOW
12588 #        else
12589 #          define LT_DLLAZY_OR_NOW      0
12590 #        endif
12591 #      endif
12592 #    endif
12593 #  endif
12594 #endif
12595
12596 void fnord() { int i=42;}
12597 int main ()
12598 {
12599   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12600   int status = $lt_dlunknown;
12601
12602   if (self)
12603     {
12604       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
12605       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12606       /* dlclose (self); */
12607     }
12608   else
12609     puts (dlerror ());
12610
12611   return status;
12612 }
12613 _LT_EOF
12614   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12615   (eval $ac_link) 2>&5
12616   ac_status=$?
12617   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12618   test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
12619     (./conftest; exit; ) >&5 2>/dev/null
12620     lt_status=$?
12621     case x$lt_status in
12622       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
12623       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
12624       x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
12625     esac
12626   else :
12627     # compilation failed
12628     lt_cv_dlopen_self_static=no
12629   fi
12630 fi
12631 rm -fr conftest*
12632
12633
12634 fi
12635 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
12636 $as_echo "$lt_cv_dlopen_self_static" >&6; }
12637     fi
12638
12639     CPPFLAGS="$save_CPPFLAGS"
12640     LDFLAGS="$save_LDFLAGS"
12641     LIBS="$save_LIBS"
12642     ;;
12643   esac
12644
12645   case $lt_cv_dlopen_self in
12646   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
12647   *) enable_dlopen_self=unknown ;;
12648   esac
12649
12650   case $lt_cv_dlopen_self_static in
12651   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
12652   *) enable_dlopen_self_static=unknown ;;
12653   esac
12654 fi
12655
12656
12657
12658
12659
12660
12661
12662
12663
12664
12665
12666
12667
12668
12669
12670
12671
12672 striplib=
12673 old_striplib=
12674 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
12675 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
12676 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
12677   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
12678   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
12679   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12680 $as_echo "yes" >&6; }
12681 else
12682 # FIXME - insert some real tests, host_os isn't really good enough
12683   case $host_os in
12684   darwin*)
12685     if test -n "$STRIP" ; then
12686       striplib="$STRIP -x"
12687       old_striplib="$STRIP -S"
12688       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12689 $as_echo "yes" >&6; }
12690     else
12691       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12692 $as_echo "no" >&6; }
12693     fi
12694     ;;
12695   *)
12696     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12697 $as_echo "no" >&6; }
12698     ;;
12699   esac
12700 fi
12701
12702
12703
12704
12705
12706
12707
12708
12709
12710
12711
12712
12713   # Report which library types will actually be built
12714   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
12715 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
12716   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
12717 $as_echo "$can_build_shared" >&6; }
12718
12719   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
12720 $as_echo_n "checking whether to build shared libraries... " >&6; }
12721   test "$can_build_shared" = "no" && enable_shared=no
12722
12723   # On AIX, shared libraries and static libraries use the same namespace, and
12724   # are all built from PIC.
12725   case $host_os in
12726   aix3*)
12727     test "$enable_shared" = yes && enable_static=no
12728     if test -n "$RANLIB"; then
12729       archive_cmds="$archive_cmds~\$RANLIB \$lib"
12730       postinstall_cmds='$RANLIB $lib'
12731     fi
12732     ;;
12733
12734   aix[4-9]*)
12735     if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
12736       test "$enable_shared" = yes && enable_static=no
12737     fi
12738     ;;
12739   esac
12740   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
12741 $as_echo "$enable_shared" >&6; }
12742
12743   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
12744 $as_echo_n "checking whether to build static libraries... " >&6; }
12745   # Make sure either enable_shared or enable_static is yes.
12746   test "$enable_shared" = yes || enable_static=yes
12747   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
12748 $as_echo "$enable_static" >&6; }
12749
12750
12751
12752
12753 fi
12754 ac_ext=c
12755 ac_cpp='$CPP $CPPFLAGS'
12756 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12757 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12758 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12759
12760 CC="$lt_save_CC"
12761
12762
12763 ac_ext=cpp
12764 ac_cpp='$CXXCPP $CPPFLAGS'
12765 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12766 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12767 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12768
12769 archive_cmds_need_lc_CXX=no
12770 allow_undefined_flag_CXX=
12771 always_export_symbols_CXX=no
12772 archive_expsym_cmds_CXX=
12773 compiler_needs_object_CXX=no
12774 export_dynamic_flag_spec_CXX=
12775 hardcode_direct_CXX=no
12776 hardcode_direct_absolute_CXX=no
12777 hardcode_libdir_flag_spec_CXX=
12778 hardcode_libdir_flag_spec_ld_CXX=
12779 hardcode_libdir_separator_CXX=
12780 hardcode_minus_L_CXX=no
12781 hardcode_shlibpath_var_CXX=unsupported
12782 hardcode_automatic_CXX=no
12783 inherit_rpath_CXX=no
12784 module_cmds_CXX=
12785 module_expsym_cmds_CXX=
12786 link_all_deplibs_CXX=unknown
12787 old_archive_cmds_CXX=$old_archive_cmds
12788 no_undefined_flag_CXX=
12789 whole_archive_flag_spec_CXX=
12790 enable_shared_with_static_runtimes_CXX=no
12791
12792 # Source file extension for C++ test sources.
12793 ac_ext=cpp
12794
12795 # Object file extension for compiled C++ test sources.
12796 objext=o
12797 objext_CXX=$objext
12798
12799 # No sense in running all these tests if we already determined that
12800 # the CXX compiler isn't working.  Some variables (like enable_shared)
12801 # are currently assumed to apply to all compilers on this platform,
12802 # and will be corrupted by setting them based on a non-working compiler.
12803 if test "$_lt_caught_CXX_error" != yes; then
12804   # Code to be used in simple compile tests
12805   lt_simple_compile_test_code="int some_variable = 0;"
12806
12807   # Code to be used in simple link tests
12808   lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
12809
12810   # ltmain only uses $CC for tagged configurations so make sure $CC is set.
12811
12812
12813
12814
12815
12816
12817 # If no C compiler was specified, use CC.
12818 LTCC=${LTCC-"$CC"}
12819
12820 # If no C compiler flags were specified, use CFLAGS.
12821 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
12822
12823 # Allow CC to be a program name with arguments.
12824 compiler=$CC
12825
12826
12827   # save warnings/boilerplate of simple test code
12828   ac_outfile=conftest.$ac_objext
12829 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
12830 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
12831 _lt_compiler_boilerplate=`cat conftest.err`
12832 $RM conftest*
12833
12834   ac_outfile=conftest.$ac_objext
12835 echo "$lt_simple_link_test_code" >conftest.$ac_ext
12836 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
12837 _lt_linker_boilerplate=`cat conftest.err`
12838 $RM -r conftest*
12839
12840
12841   # Allow CC to be a program name with arguments.
12842   lt_save_CC=$CC
12843   lt_save_LD=$LD
12844   lt_save_GCC=$GCC
12845   GCC=$GXX
12846   lt_save_with_gnu_ld=$with_gnu_ld
12847   lt_save_path_LD=$lt_cv_path_LD
12848   if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
12849     lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
12850   else
12851     $as_unset lt_cv_prog_gnu_ld
12852   fi
12853   if test -n "${lt_cv_path_LDCXX+set}"; then
12854     lt_cv_path_LD=$lt_cv_path_LDCXX
12855   else
12856     $as_unset lt_cv_path_LD
12857   fi
12858   test -z "${LDCXX+set}" || LD=$LDCXX
12859   CC=${CXX-"c++"}
12860   compiler=$CC
12861   compiler_CXX=$CC
12862   for cc_temp in $compiler""; do
12863   case $cc_temp in
12864     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
12865     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
12866     \-*) ;;
12867     *) break;;
12868   esac
12869 done
12870 cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
12871
12872
12873   if test -n "$compiler"; then
12874     # We don't want -fno-exception when compiling C++ code, so set the
12875     # no_builtin_flag separately
12876     if test "$GXX" = yes; then
12877       lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
12878     else
12879       lt_prog_compiler_no_builtin_flag_CXX=
12880     fi
12881
12882     if test "$GXX" = yes; then
12883       # Set up default GNU C++ configuration
12884
12885
12886
12887 # Check whether --with-gnu-ld was given.
12888 if test "${with_gnu_ld+set}" = set; then :
12889   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
12890 else
12891   with_gnu_ld=no
12892 fi
12893
12894 ac_prog=ld
12895 if test "$GCC" = yes; then
12896   # Check if gcc -print-prog-name=ld gives a path.
12897   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
12898 $as_echo_n "checking for ld used by $CC... " >&6; }
12899   case $host in
12900   *-*-mingw*)
12901     # gcc leaves a trailing carriage return which upsets mingw
12902     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
12903   *)
12904     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
12905   esac
12906   case $ac_prog in
12907     # Accept absolute paths.
12908     [\\/]* | ?:[\\/]*)
12909       re_direlt='/[^/][^/]*/\.\./'
12910       # Canonicalize the pathname of ld
12911       ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
12912       while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
12913         ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
12914       done
12915       test -z "$LD" && LD="$ac_prog"
12916       ;;
12917   "")
12918     # If it fails, then pretend we aren't using GCC.
12919     ac_prog=ld
12920     ;;
12921   *)
12922     # If it is relative, then search for the first ld in PATH.
12923     with_gnu_ld=unknown
12924     ;;
12925   esac
12926 elif test "$with_gnu_ld" = yes; then
12927   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
12928 $as_echo_n "checking for GNU ld... " >&6; }
12929 else
12930   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
12931 $as_echo_n "checking for non-GNU ld... " >&6; }
12932 fi
12933 if test "${lt_cv_path_LD+set}" = set; then :
12934   $as_echo_n "(cached) " >&6
12935 else
12936   if test -z "$LD"; then
12937   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
12938   for ac_dir in $PATH; do
12939     IFS="$lt_save_ifs"
12940     test -z "$ac_dir" && ac_dir=.
12941     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
12942       lt_cv_path_LD="$ac_dir/$ac_prog"
12943       # Check to see if the program is GNU ld.  I'd rather use --version,
12944       # but apparently some variants of GNU ld only accept -v.
12945       # Break only if it was the GNU/non-GNU ld that we prefer.
12946       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
12947       *GNU* | *'with BFD'*)
12948         test "$with_gnu_ld" != no && break
12949         ;;
12950       *)
12951         test "$with_gnu_ld" != yes && break
12952         ;;
12953       esac
12954     fi
12955   done
12956   IFS="$lt_save_ifs"
12957 else
12958   lt_cv_path_LD="$LD" # Let the user override the test with a path.
12959 fi
12960 fi
12961
12962 LD="$lt_cv_path_LD"
12963 if test -n "$LD"; then
12964   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
12965 $as_echo "$LD" >&6; }
12966 else
12967   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12968 $as_echo "no" >&6; }
12969 fi
12970 test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
12971 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
12972 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
12973 if test "${lt_cv_prog_gnu_ld+set}" = set; then :
12974   $as_echo_n "(cached) " >&6
12975 else
12976   # I'd rather use --version here, but apparently some GNU lds only accept -v.
12977 case `$LD -v 2>&1 </dev/null` in
12978 *GNU* | *'with BFD'*)
12979   lt_cv_prog_gnu_ld=yes
12980   ;;
12981 *)
12982   lt_cv_prog_gnu_ld=no
12983   ;;
12984 esac
12985 fi
12986 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
12987 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
12988 with_gnu_ld=$lt_cv_prog_gnu_ld
12989
12990
12991
12992
12993
12994
12995
12996       # Check if GNU C++ uses GNU ld as the underlying linker, since the
12997       # archiving commands below assume that GNU ld is being used.
12998       if test "$with_gnu_ld" = yes; then
12999         archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
13000         archive_expsym_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13001
13002         hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13003         export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13004
13005         # If archive_cmds runs LD, not CC, wlarc should be empty
13006         # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
13007         #     investigate it a little bit more. (MM)
13008         wlarc='${wl}'
13009
13010         # ancient GNU ld didn't support --whole-archive et. al.
13011         if eval "`$CC -print-prog-name=ld` --help 2>&1" |
13012           $GREP 'no-whole-archive' > /dev/null; then
13013           whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
13014         else
13015           whole_archive_flag_spec_CXX=
13016         fi
13017       else
13018         with_gnu_ld=no
13019         wlarc=
13020
13021         # A generic and very simple default shared library creation
13022         # command for GNU C++ for the case where it uses the native
13023         # linker, instead of GNU ld.  If possible, this setting should
13024         # overridden to take advantage of the native linker features on
13025         # the platform it is being used on.
13026         archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
13027       fi
13028
13029       # Commands to make compiler produce verbose output that lists
13030       # what "hidden" libraries, object files and flags are used when
13031       # linking a shared library.
13032       output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
13033
13034     else
13035       GXX=no
13036       with_gnu_ld=no
13037       wlarc=
13038     fi
13039
13040     # PORTME: fill in a description of your system's C++ link characteristics
13041     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
13042 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
13043     ld_shlibs_CXX=yes
13044     case $host_os in
13045       aix3*)
13046         # FIXME: insert proper C++ library support
13047         ld_shlibs_CXX=no
13048         ;;
13049       aix[4-9]*)
13050         if test "$host_cpu" = ia64; then
13051           # On IA64, the linker does run time linking by default, so we don't
13052           # have to do anything special.
13053           aix_use_runtimelinking=no
13054           exp_sym_flag='-Bexport'
13055           no_entry_flag=""
13056         else
13057           aix_use_runtimelinking=no
13058
13059           # Test if we are trying to use run time linking or normal
13060           # AIX style linking. If -brtl is somewhere in LDFLAGS, we
13061           # need to do runtime linking.
13062           case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
13063             for ld_flag in $LDFLAGS; do
13064               case $ld_flag in
13065               *-brtl*)
13066                 aix_use_runtimelinking=yes
13067                 break
13068                 ;;
13069               esac
13070             done
13071             ;;
13072           esac
13073
13074           exp_sym_flag='-bexport'
13075           no_entry_flag='-bnoentry'
13076         fi
13077
13078         # When large executables or shared objects are built, AIX ld can
13079         # have problems creating the table of contents.  If linking a library
13080         # or program results in "error TOC overflow" add -mminimal-toc to
13081         # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
13082         # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
13083
13084         archive_cmds_CXX=''
13085         hardcode_direct_CXX=yes
13086         hardcode_direct_absolute_CXX=yes
13087         hardcode_libdir_separator_CXX=':'
13088         link_all_deplibs_CXX=yes
13089         file_list_spec_CXX='${wl}-f,'
13090
13091         if test "$GXX" = yes; then
13092           case $host_os in aix4.[012]|aix4.[012].*)
13093           # We only want to do this on AIX 4.2 and lower, the check
13094           # below for broken collect2 doesn't work under 4.3+
13095           collect2name=`${CC} -print-prog-name=collect2`
13096           if test -f "$collect2name" &&
13097              strings "$collect2name" | $GREP resolve_lib_name >/dev/null
13098           then
13099             # We have reworked collect2
13100             :
13101           else
13102             # We have old collect2
13103             hardcode_direct_CXX=unsupported
13104             # It fails to find uninstalled libraries when the uninstalled
13105             # path is not listed in the libpath.  Setting hardcode_minus_L
13106             # to unsupported forces relinking
13107             hardcode_minus_L_CXX=yes
13108             hardcode_libdir_flag_spec_CXX='-L$libdir'
13109             hardcode_libdir_separator_CXX=
13110           fi
13111           esac
13112           shared_flag='-shared'
13113           if test "$aix_use_runtimelinking" = yes; then
13114             shared_flag="$shared_flag "'${wl}-G'
13115           fi
13116         else
13117           # not using gcc
13118           if test "$host_cpu" = ia64; then
13119           # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
13120           # chokes on -Wl,-G. The following line is correct:
13121           shared_flag='-G'
13122           else
13123             if test "$aix_use_runtimelinking" = yes; then
13124               shared_flag='${wl}-G'
13125             else
13126               shared_flag='${wl}-bM:SRE'
13127             fi
13128           fi
13129         fi
13130
13131         export_dynamic_flag_spec_CXX='${wl}-bexpall'
13132         # It seems that -bexpall does not export symbols beginning with
13133         # underscore (_), so it is better to generate a list of symbols to
13134         # export.
13135         always_export_symbols_CXX=yes
13136         if test "$aix_use_runtimelinking" = yes; then
13137           # Warning - without using the other runtime loading flags (-brtl),
13138           # -berok will link without error, but may produce a broken library.
13139           allow_undefined_flag_CXX='-berok'
13140           # Determine the default libpath from the value encoded in an empty
13141           # executable.
13142           cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13143 /* end confdefs.h.  */
13144
13145 int
13146 main ()
13147 {
13148
13149   ;
13150   return 0;
13151 }
13152 _ACEOF
13153 if ac_fn_cxx_try_link "$LINENO"; then :
13154
13155 lt_aix_libpath_sed='
13156     /Import File Strings/,/^$/ {
13157         /^0/ {
13158             s/^0  *\(.*\)$/\1/
13159             p
13160         }
13161     }'
13162 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13163 # Check for a 64-bit object if we didn't find anything.
13164 if test -z "$aix_libpath"; then
13165   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13166 fi
13167 fi
13168 rm -f core conftest.err conftest.$ac_objext \
13169     conftest$ac_exeext conftest.$ac_ext
13170 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
13171
13172           hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
13173
13174           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 $ECHO "X${wl}${allow_undefined_flag}" | $Xsed; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
13175         else
13176           if test "$host_cpu" = ia64; then
13177             hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
13178             allow_undefined_flag_CXX="-z nodefs"
13179             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"
13180           else
13181             # Determine the default libpath from the value encoded in an
13182             # empty executable.
13183             cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13184 /* end confdefs.h.  */
13185
13186 int
13187 main ()
13188 {
13189
13190   ;
13191   return 0;
13192 }
13193 _ACEOF
13194 if ac_fn_cxx_try_link "$LINENO"; then :
13195
13196 lt_aix_libpath_sed='
13197     /Import File Strings/,/^$/ {
13198         /^0/ {
13199             s/^0  *\(.*\)$/\1/
13200             p
13201         }
13202     }'
13203 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13204 # Check for a 64-bit object if we didn't find anything.
13205 if test -z "$aix_libpath"; then
13206   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13207 fi
13208 fi
13209 rm -f core conftest.err conftest.$ac_objext \
13210     conftest$ac_exeext conftest.$ac_ext
13211 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
13212
13213             hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
13214             # Warning - without using the other run time loading flags,
13215             # -berok will link without error, but may produce a broken library.
13216             no_undefined_flag_CXX=' ${wl}-bernotok'
13217             allow_undefined_flag_CXX=' ${wl}-berok'
13218             # Exported symbols can be pulled into shared objects from archives
13219             whole_archive_flag_spec_CXX='$convenience'
13220             archive_cmds_need_lc_CXX=yes
13221             # This is similar to how AIX traditionally builds its shared
13222             # libraries.
13223             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'
13224           fi
13225         fi
13226         ;;
13227
13228       beos*)
13229         if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
13230           allow_undefined_flag_CXX=unsupported
13231           # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
13232           # support --undefined.  This deserves some investigation.  FIXME
13233           archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13234         else
13235           ld_shlibs_CXX=no
13236         fi
13237         ;;
13238
13239       chorus*)
13240         case $cc_basename in
13241           *)
13242           # FIXME: insert proper C++ library support
13243           ld_shlibs_CXX=no
13244           ;;
13245         esac
13246         ;;
13247
13248       cygwin* | mingw* | pw32* | cegcc*)
13249         # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
13250         # as there is no search path for DLLs.
13251         hardcode_libdir_flag_spec_CXX='-L$libdir'
13252         allow_undefined_flag_CXX=unsupported
13253         always_export_symbols_CXX=no
13254         enable_shared_with_static_runtimes_CXX=yes
13255
13256         if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
13257           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'
13258           # If the export-symbols file already is a .def file (1st line
13259           # is EXPORTS), use it as is; otherwise, prepend...
13260           archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
13261             cp $export_symbols $output_objdir/$soname.def;
13262           else
13263             echo EXPORTS > $output_objdir/$soname.def;
13264             cat $export_symbols >> $output_objdir/$soname.def;
13265           fi~
13266           $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'
13267         else
13268           ld_shlibs_CXX=no
13269         fi
13270         ;;
13271       darwin* | rhapsody*)
13272
13273
13274   archive_cmds_need_lc_CXX=no
13275   hardcode_direct_CXX=no
13276   hardcode_automatic_CXX=yes
13277   hardcode_shlibpath_var_CXX=unsupported
13278   whole_archive_flag_spec_CXX=''
13279   link_all_deplibs_CXX=yes
13280   allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
13281   case $cc_basename in
13282      ifort*) _lt_dar_can_shared=yes ;;
13283      *) _lt_dar_can_shared=$GCC ;;
13284   esac
13285   if test "$_lt_dar_can_shared" = "yes"; then
13286     output_verbose_link_cmd=echo
13287     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}"
13288     module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
13289     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}"
13290     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}"
13291        if test "$lt_cv_apple_cc_single_mod" != "yes"; then
13292       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}"
13293       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}"
13294     fi
13295
13296   else
13297   ld_shlibs_CXX=no
13298   fi
13299
13300         ;;
13301
13302       dgux*)
13303         case $cc_basename in
13304           ec++*)
13305             # FIXME: insert proper C++ library support
13306             ld_shlibs_CXX=no
13307             ;;
13308           ghcx*)
13309             # Green Hills C++ Compiler
13310             # FIXME: insert proper C++ library support
13311             ld_shlibs_CXX=no
13312             ;;
13313           *)
13314             # FIXME: insert proper C++ library support
13315             ld_shlibs_CXX=no
13316             ;;
13317         esac
13318         ;;
13319
13320       freebsd[12]*)
13321         # C++ shared libraries reported to be fairly broken before
13322         # switch to ELF
13323         ld_shlibs_CXX=no
13324         ;;
13325
13326       freebsd-elf*)
13327         archive_cmds_need_lc_CXX=no
13328         ;;
13329
13330       freebsd* | dragonfly*)
13331         # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
13332         # conventions
13333         ld_shlibs_CXX=yes
13334         ;;
13335
13336       gnu*)
13337         ;;
13338
13339       hpux9*)
13340         hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
13341         hardcode_libdir_separator_CXX=:
13342         export_dynamic_flag_spec_CXX='${wl}-E'
13343         hardcode_direct_CXX=yes
13344         hardcode_minus_L_CXX=yes # Not in the search PATH,
13345                                              # but as the default
13346                                              # location of the library.
13347
13348         case $cc_basename in
13349           CC*)
13350             # FIXME: insert proper C++ library support
13351             ld_shlibs_CXX=no
13352             ;;
13353           aCC*)
13354             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'
13355             # Commands to make compiler produce verbose output that lists
13356             # what "hidden" libraries, object files and flags are used when
13357             # linking a shared library.
13358             #
13359             # There doesn't appear to be a way to prevent this compiler from
13360             # explicitly linking system object files so we need to strip them
13361             # from the output so that they don't get included in the library
13362             # dependencies.
13363             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; $ECHO "X$list" | $Xsed'
13364             ;;
13365           *)
13366             if test "$GXX" = yes; then
13367               archive_cmds_CXX='$RM $output_objdir/$soname~$CC -shared -nostdlib -fPIC ${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'
13368             else
13369               # FIXME: insert proper C++ library support
13370               ld_shlibs_CXX=no
13371             fi
13372             ;;
13373         esac
13374         ;;
13375
13376       hpux10*|hpux11*)
13377         if test $with_gnu_ld = no; then
13378           hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
13379           hardcode_libdir_separator_CXX=:
13380
13381           case $host_cpu in
13382             hppa*64*|ia64*)
13383               ;;
13384             *)
13385               export_dynamic_flag_spec_CXX='${wl}-E'
13386               ;;
13387           esac
13388         fi
13389         case $host_cpu in
13390           hppa*64*|ia64*)
13391             hardcode_direct_CXX=no
13392             hardcode_shlibpath_var_CXX=no
13393             ;;
13394           *)
13395             hardcode_direct_CXX=yes
13396             hardcode_direct_absolute_CXX=yes
13397             hardcode_minus_L_CXX=yes # Not in the search PATH,
13398                                                  # but as the default
13399                                                  # location of the library.
13400             ;;
13401         esac
13402
13403         case $cc_basename in
13404           CC*)
13405             # FIXME: insert proper C++ library support
13406             ld_shlibs_CXX=no
13407             ;;
13408           aCC*)
13409             case $host_cpu in
13410               hppa*64*)
13411                 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13412                 ;;
13413               ia64*)
13414                 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13415                 ;;
13416               *)
13417                 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13418                 ;;
13419             esac
13420             # Commands to make compiler produce verbose output that lists
13421             # what "hidden" libraries, object files and flags are used when
13422             # linking a shared library.
13423             #
13424             # There doesn't appear to be a way to prevent this compiler from
13425             # explicitly linking system object files so we need to strip them
13426             # from the output so that they don't get included in the library
13427             # dependencies.
13428             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; $ECHO "X$list" | $Xsed'
13429             ;;
13430           *)
13431             if test "$GXX" = yes; then
13432               if test $with_gnu_ld = no; then
13433                 case $host_cpu in
13434                   hppa*64*)
13435                     archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13436                     ;;
13437                   ia64*)
13438                     archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13439                     ;;
13440                   *)
13441                     archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13442                     ;;
13443                 esac
13444               fi
13445             else
13446               # FIXME: insert proper C++ library support
13447               ld_shlibs_CXX=no
13448             fi
13449             ;;
13450         esac
13451         ;;
13452
13453       interix[3-9]*)
13454         hardcode_direct_CXX=no
13455         hardcode_shlibpath_var_CXX=no
13456         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13457         export_dynamic_flag_spec_CXX='${wl}-E'
13458         # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
13459         # Instead, shared libraries are loaded at an image base (0x10000000 by
13460         # default) and relocated if they conflict, which is a slow very memory
13461         # consuming and fragmenting process.  To avoid this, we pick a random,
13462         # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
13463         # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
13464         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'
13465         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'
13466         ;;
13467       irix5* | irix6*)
13468         case $cc_basename in
13469           CC*)
13470             # SGI C++
13471             archive_cmds_CXX='$CC -shared -all -multigot $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
13472
13473             # Archives containing C++ object files must be created using
13474             # "CC -ar", where "CC" is the IRIX C++ compiler.  This is
13475             # necessary to make sure instantiated templates are included
13476             # in the archive.
13477             old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
13478             ;;
13479           *)
13480             if test "$GXX" = yes; then
13481               if test "$with_gnu_ld" = no; then
13482                 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
13483               else
13484                 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` -o $lib'
13485               fi
13486             fi
13487             link_all_deplibs_CXX=yes
13488             ;;
13489         esac
13490         hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13491         hardcode_libdir_separator_CXX=:
13492         inherit_rpath_CXX=yes
13493         ;;
13494
13495       linux* | k*bsd*-gnu)
13496         case $cc_basename in
13497           KCC*)
13498             # Kuck and Associates, Inc. (KAI) C++ Compiler
13499
13500             # KCC will only create a shared library if the output file
13501             # ends with ".so" (or ".sl" for HP-UX), so rename the library
13502             # to its proper name (with version) after linking.
13503             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'
13504             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'
13505             # Commands to make compiler produce verbose output that lists
13506             # what "hidden" libraries, object files and flags are used when
13507             # linking a shared library.
13508             #
13509             # There doesn't appear to be a way to prevent this compiler from
13510             # explicitly linking system object files so we need to strip them
13511             # from the output so that they don't get included in the library
13512             # dependencies.
13513             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; $ECHO "X$list" | $Xsed'
13514
13515             hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13516             export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13517
13518             # Archives containing C++ object files must be created using
13519             # "CC -Bstatic", where "CC" is the KAI C++ compiler.
13520             old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
13521             ;;
13522           icpc* | ecpc* )
13523             # Intel C++
13524             with_gnu_ld=yes
13525             # version 8.0 and above of icpc choke on multiply defined symbols
13526             # if we add $predep_objects and $postdep_objects, however 7.1 and
13527             # earlier do not add the objects themselves.
13528             case `$CC -V 2>&1` in
13529               *"Version 7."*)
13530                 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
13531                 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'
13532                 ;;
13533               *)  # Version 8.0 or newer
13534                 tmp_idyn=
13535                 case $host_cpu in
13536                   ia64*) tmp_idyn=' -i_dynamic';;
13537                 esac
13538                 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13539                 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'
13540                 ;;
13541             esac
13542             archive_cmds_need_lc_CXX=no
13543             hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13544             export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13545             whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
13546             ;;
13547           pgCC* | pgcpp*)
13548             # Portland Group C++ compiler
13549             case `$CC -V` in
13550             *pgCC\ [1-5]* | *pgcpp\ [1-5]*)
13551               prelink_cmds_CXX='tpldir=Template.dir~
13552                 rm -rf $tpldir~
13553                 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
13554                 compile_command="$compile_command `find $tpldir -name \*.o | $NL2SP`"'
13555               old_archive_cmds_CXX='tpldir=Template.dir~
13556                 rm -rf $tpldir~
13557                 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
13558                 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | $NL2SP`~
13559                 $RANLIB $oldlib'
13560               archive_cmds_CXX='tpldir=Template.dir~
13561                 rm -rf $tpldir~
13562                 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
13563                 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
13564               archive_expsym_cmds_CXX='tpldir=Template.dir~
13565                 rm -rf $tpldir~
13566                 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
13567                 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib'
13568               ;;
13569             *) # Version 6 will use weak symbols
13570               archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
13571               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'
13572               ;;
13573             esac
13574
13575             hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
13576             export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13577             whole_archive_flag_spec_CXX='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
13578             ;;
13579           cxx*)
13580             # Compaq C++
13581             archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
13582             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'
13583
13584             runpath_var=LD_RUN_PATH
13585             hardcode_libdir_flag_spec_CXX='-rpath $libdir'
13586             hardcode_libdir_separator_CXX=:
13587
13588             # Commands to make compiler produce verbose output that lists
13589             # what "hidden" libraries, object files and flags are used when
13590             # linking a shared library.
13591             #
13592             # There doesn't appear to be a way to prevent this compiler from
13593             # explicitly linking system object files so we need to strip them
13594             # from the output so that they don't get included in the library
13595             # dependencies.
13596             output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld"`; templist=`$ECHO "X$templist" | $Xsed -e "s/\(^.*ld.*\)\( .*ld .*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; $ECHO "X$list" | $Xsed'
13597             ;;
13598           xl*)
13599             # IBM XL 8.0 on PPC, with GNU ld
13600             hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13601             export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13602             archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13603             if test "x$supports_anon_versioning" = xyes; then
13604               archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
13605                 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
13606                 echo "local: *; };" >> $output_objdir/$libname.ver~
13607                 $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
13608             fi
13609             ;;
13610           *)
13611             case `$CC -V 2>&1 | sed 5q` in
13612             *Sun\ C*)
13613               # Sun C++ 5.9
13614               no_undefined_flag_CXX=' -zdefs'
13615               archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13616               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'
13617               hardcode_libdir_flag_spec_CXX='-R$libdir'
13618               whole_archive_flag_spec_CXX='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
13619               compiler_needs_object_CXX=yes
13620
13621               # Not sure whether something based on
13622               # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
13623               # would be better.
13624               output_verbose_link_cmd='echo'
13625
13626               # Archives containing C++ object files must be created using
13627               # "CC -xar", where "CC" is the Sun C++ compiler.  This is
13628               # necessary to make sure instantiated templates are included
13629               # in the archive.
13630               old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
13631               ;;
13632             esac
13633             ;;
13634         esac
13635         ;;
13636
13637       lynxos*)
13638         # FIXME: insert proper C++ library support
13639         ld_shlibs_CXX=no
13640         ;;
13641
13642       m88k*)
13643         # FIXME: insert proper C++ library support
13644         ld_shlibs_CXX=no
13645         ;;
13646
13647       mvs*)
13648         case $cc_basename in
13649           cxx*)
13650             # FIXME: insert proper C++ library support
13651             ld_shlibs_CXX=no
13652             ;;
13653           *)
13654             # FIXME: insert proper C++ library support
13655             ld_shlibs_CXX=no
13656             ;;
13657         esac
13658         ;;
13659
13660       netbsd*)
13661         if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
13662           archive_cmds_CXX='$LD -Bshareable  -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
13663           wlarc=
13664           hardcode_libdir_flag_spec_CXX='-R$libdir'
13665           hardcode_direct_CXX=yes
13666           hardcode_shlibpath_var_CXX=no
13667         fi
13668         # Workaround some broken pre-1.5 toolchains
13669         output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
13670         ;;
13671
13672       *nto* | *qnx*)
13673         ld_shlibs_CXX=yes
13674         ;;
13675
13676       openbsd2*)
13677         # C++ shared libraries are fairly broken
13678         ld_shlibs_CXX=no
13679         ;;
13680
13681       openbsd*)
13682         if test -f /usr/libexec/ld.so; then
13683           hardcode_direct_CXX=yes
13684           hardcode_shlibpath_var_CXX=no
13685           hardcode_direct_absolute_CXX=yes
13686           archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
13687           hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13688           if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13689             archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
13690             export_dynamic_flag_spec_CXX='${wl}-E'
13691             whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
13692           fi
13693           output_verbose_link_cmd=echo
13694         else
13695           ld_shlibs_CXX=no
13696         fi
13697         ;;
13698
13699       osf3* | osf4* | osf5*)
13700         case $cc_basename in
13701           KCC*)
13702             # Kuck and Associates, Inc. (KAI) C++ Compiler
13703
13704             # KCC will only create a shared library if the output file
13705             # ends with ".so" (or ".sl" for HP-UX), so rename the library
13706             # to its proper name (with version) after linking.
13707             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'
13708
13709             hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13710             hardcode_libdir_separator_CXX=:
13711
13712             # Archives containing C++ object files must be created using
13713             # the KAI C++ compiler.
13714             case $host in
13715               osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
13716               *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
13717             esac
13718             ;;
13719           RCC*)
13720             # Rational C++ 2.4.1
13721             # FIXME: insert proper C++ library support
13722             ld_shlibs_CXX=no
13723             ;;
13724           cxx*)
13725             case $host in
13726               osf3*)
13727                 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
13728                 archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $soname `test -n "$verstring" && $ECHO "X${wl}-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
13729                 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13730                 ;;
13731               *)
13732                 allow_undefined_flag_CXX=' -expect_unresolved \*'
13733                 archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
13734                 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
13735                   echo "-hidden">> $lib.exp~
13736                   $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 "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib~
13737                   $RM $lib.exp'
13738                 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
13739                 ;;
13740             esac
13741
13742             hardcode_libdir_separator_CXX=:
13743
13744             # Commands to make compiler produce verbose output that lists
13745             # what "hidden" libraries, object files and flags are used when
13746             # linking a shared library.
13747             #
13748             # There doesn't appear to be a way to prevent this compiler from
13749             # explicitly linking system object files so we need to strip them
13750             # from the output so that they don't get included in the library
13751             # dependencies.
13752             output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld" | $GREP -v "ld:"`; templist=`$ECHO "X$templist" | $Xsed -e "s/\(^.*ld.*\)\( .*ld.*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; $ECHO "X$list" | $Xsed'
13753             ;;
13754           *)
13755             if test "$GXX" = yes && test "$with_gnu_ld" = no; then
13756               allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
13757               case $host in
13758                 osf3*)
13759                   archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
13760                   ;;
13761                 *)
13762                   archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
13763                   ;;
13764               esac
13765
13766               hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13767               hardcode_libdir_separator_CXX=:
13768
13769               # Commands to make compiler produce verbose output that lists
13770               # what "hidden" libraries, object files and flags are used when
13771               # linking a shared library.
13772               output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
13773
13774             else
13775               # FIXME: insert proper C++ library support
13776               ld_shlibs_CXX=no
13777             fi
13778             ;;
13779         esac
13780         ;;
13781
13782       psos*)
13783         # FIXME: insert proper C++ library support
13784         ld_shlibs_CXX=no
13785         ;;
13786
13787       sunos4*)
13788         case $cc_basename in
13789           CC*)
13790             # Sun C++ 4.x
13791             # FIXME: insert proper C++ library support
13792             ld_shlibs_CXX=no
13793             ;;
13794           lcc*)
13795             # Lucid
13796             # FIXME: insert proper C++ library support
13797             ld_shlibs_CXX=no
13798             ;;
13799           *)
13800             # FIXME: insert proper C++ library support
13801             ld_shlibs_CXX=no
13802             ;;
13803         esac
13804         ;;
13805
13806       solaris*)
13807         case $cc_basename in
13808           CC*)
13809             # Sun C++ 4.2, 5.x and Centerline C++
13810             archive_cmds_need_lc_CXX=yes
13811             no_undefined_flag_CXX=' -zdefs'
13812             archive_cmds_CXX='$CC -G${allow_undefined_flag}  -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13813             archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13814               $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'
13815
13816             hardcode_libdir_flag_spec_CXX='-R$libdir'
13817             hardcode_shlibpath_var_CXX=no
13818             case $host_os in
13819               solaris2.[0-5] | solaris2.[0-5].*) ;;
13820               *)
13821                 # The compiler driver will combine and reorder linker options,
13822                 # but understands `-z linker_flag'.
13823                 # Supported since Solaris 2.6 (maybe 2.5.1?)
13824                 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
13825                 ;;
13826             esac
13827             link_all_deplibs_CXX=yes
13828
13829             output_verbose_link_cmd='echo'
13830
13831             # Archives containing C++ object files must be created using
13832             # "CC -xar", where "CC" is the Sun C++ compiler.  This is
13833             # necessary to make sure instantiated templates are included
13834             # in the archive.
13835             old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
13836             ;;
13837           gcx*)
13838             # Green Hills C++ Compiler
13839             archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
13840
13841             # The C++ compiler must be used to create the archive.
13842             old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
13843             ;;
13844           *)
13845             # GNU C++ compiler with Solaris linker
13846             if test "$GXX" = yes && test "$with_gnu_ld" = no; then
13847               no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
13848               if $CC --version | $GREP -v '^2\.7' > /dev/null; then
13849                 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
13850                 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13851                   $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
13852
13853                 # Commands to make compiler produce verbose output that lists
13854                 # what "hidden" libraries, object files and flags are used when
13855                 # linking a shared library.
13856                 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
13857               else
13858                 # g++ 2.7 appears to require `-G' NOT `-shared' on this
13859                 # platform.
13860                 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
13861                 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13862                   $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
13863
13864                 # Commands to make compiler produce verbose output that lists
13865                 # what "hidden" libraries, object files and flags are used when
13866                 # linking a shared library.
13867                 output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
13868               fi
13869
13870               hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
13871               case $host_os in
13872                 solaris2.[0-5] | solaris2.[0-5].*) ;;
13873                 *)
13874                   whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
13875                   ;;
13876               esac
13877             fi
13878             ;;
13879         esac
13880         ;;
13881
13882     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
13883       no_undefined_flag_CXX='${wl}-z,text'
13884       archive_cmds_need_lc_CXX=no
13885       hardcode_shlibpath_var_CXX=no
13886       runpath_var='LD_RUN_PATH'
13887
13888       case $cc_basename in
13889         CC*)
13890           archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13891           archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13892           ;;
13893         *)
13894           archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13895           archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13896           ;;
13897       esac
13898       ;;
13899
13900       sysv5* | sco3.2v5* | sco5v6*)
13901         # Note: We can NOT use -z defs as we might desire, because we do not
13902         # link with -lc, and that would cause any symbols used from libc to
13903         # always be unresolved, which means just about no library would
13904         # ever link correctly.  If we're not using GNU ld we use -z text
13905         # though, which does catch some bad symbols but isn't as heavy-handed
13906         # as -z defs.
13907         no_undefined_flag_CXX='${wl}-z,text'
13908         allow_undefined_flag_CXX='${wl}-z,nodefs'
13909         archive_cmds_need_lc_CXX=no
13910         hardcode_shlibpath_var_CXX=no
13911         hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir'
13912         hardcode_libdir_separator_CXX=':'
13913         link_all_deplibs_CXX=yes
13914         export_dynamic_flag_spec_CXX='${wl}-Bexport'
13915         runpath_var='LD_RUN_PATH'
13916
13917         case $cc_basename in
13918           CC*)
13919             archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13920             archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13921             ;;
13922           *)
13923             archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13924             archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13925             ;;
13926         esac
13927       ;;
13928
13929       tandem*)
13930         case $cc_basename in
13931           NCC*)
13932             # NonStop-UX NCC 3.20
13933             # FIXME: insert proper C++ library support
13934             ld_shlibs_CXX=no
13935             ;;
13936           *)
13937             # FIXME: insert proper C++ library support
13938             ld_shlibs_CXX=no
13939             ;;
13940         esac
13941         ;;
13942
13943       vxworks*)
13944         # FIXME: insert proper C++ library support
13945         ld_shlibs_CXX=no
13946         ;;
13947
13948       *)
13949         # FIXME: insert proper C++ library support
13950         ld_shlibs_CXX=no
13951         ;;
13952     esac
13953
13954     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
13955 $as_echo "$ld_shlibs_CXX" >&6; }
13956     test "$ld_shlibs_CXX" = no && can_build_shared=no
13957
13958     GCC_CXX="$GXX"
13959     LD_CXX="$LD"
13960
13961     ## CAVEAT EMPTOR:
13962     ## There is no encapsulation within the following macros, do not change
13963     ## the running order or otherwise move them around unless you know exactly
13964     ## what you are doing...
13965     # Dependencies to place before and after the object being linked:
13966 predep_objects_CXX=
13967 postdep_objects_CXX=
13968 predeps_CXX=
13969 postdeps_CXX=
13970 compiler_lib_search_path_CXX=
13971
13972 cat > conftest.$ac_ext <<_LT_EOF
13973 class Foo
13974 {
13975 public:
13976   Foo (void) { a = 0; }
13977 private:
13978   int a;
13979 };
13980 _LT_EOF
13981
13982 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13983   (eval $ac_compile) 2>&5
13984   ac_status=$?
13985   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13986   test $ac_status = 0; }; then
13987   # Parse the compiler output and extract the necessary
13988   # objects, libraries and library flags.
13989
13990   # Sentinel used to keep track of whether or not we are before
13991   # the conftest object file.
13992   pre_test_object_deps_done=no
13993
13994   for p in `eval "$output_verbose_link_cmd"`; do
13995     case $p in
13996
13997     -L* | -R* | -l*)
13998        # Some compilers place space between "-{L,R}" and the path.
13999        # Remove the space.
14000        if test $p = "-L" ||
14001           test $p = "-R"; then
14002          prev=$p
14003          continue
14004        else
14005          prev=
14006        fi
14007
14008        if test "$pre_test_object_deps_done" = no; then
14009          case $p in
14010          -L* | -R*)
14011            # Internal compiler library paths should come after those
14012            # provided the user.  The postdeps already come after the
14013            # user supplied libs so there is no need to process them.
14014            if test -z "$compiler_lib_search_path_CXX"; then
14015              compiler_lib_search_path_CXX="${prev}${p}"
14016            else
14017              compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
14018            fi
14019            ;;
14020          # The "-l" case would never come before the object being
14021          # linked, so don't bother handling this case.
14022          esac
14023        else
14024          if test -z "$postdeps_CXX"; then
14025            postdeps_CXX="${prev}${p}"
14026          else
14027            postdeps_CXX="${postdeps_CXX} ${prev}${p}"
14028          fi
14029        fi
14030        ;;
14031
14032     *.$objext)
14033        # This assumes that the test object file only shows up
14034        # once in the compiler output.
14035        if test "$p" = "conftest.$objext"; then
14036          pre_test_object_deps_done=yes
14037          continue
14038        fi
14039
14040        if test "$pre_test_object_deps_done" = no; then
14041          if test -z "$predep_objects_CXX"; then
14042            predep_objects_CXX="$p"
14043          else
14044            predep_objects_CXX="$predep_objects_CXX $p"
14045          fi
14046        else
14047          if test -z "$postdep_objects_CXX"; then
14048            postdep_objects_CXX="$p"
14049          else
14050            postdep_objects_CXX="$postdep_objects_CXX $p"
14051          fi
14052        fi
14053        ;;
14054
14055     *) ;; # Ignore the rest.
14056
14057     esac
14058   done
14059
14060   # Clean up.
14061   rm -f a.out a.exe
14062 else
14063   echo "libtool.m4: error: problem compiling CXX test program"
14064 fi
14065
14066 $RM -f confest.$objext
14067
14068 # PORTME: override above test on systems where it is broken
14069 case $host_os in
14070 interix[3-9]*)
14071   # Interix 3.5 installs completely hosed .la files for C++, so rather than
14072   # hack all around it, let's just trust "g++" to DTRT.
14073   predep_objects_CXX=
14074   postdep_objects_CXX=
14075   postdeps_CXX=
14076   ;;
14077
14078 linux*)
14079   case `$CC -V 2>&1 | sed 5q` in
14080   *Sun\ C*)
14081     # Sun C++ 5.9
14082
14083     # The more standards-conforming stlport4 library is
14084     # incompatible with the Cstd library. Avoid specifying
14085     # it if it's in CXXFLAGS. Ignore libCrun as
14086     # -library=stlport4 depends on it.
14087     case " $CXX $CXXFLAGS " in
14088     *" -library=stlport4 "*)
14089       solaris_use_stlport4=yes
14090       ;;
14091     esac
14092
14093     if test "$solaris_use_stlport4" != yes; then
14094       postdeps_CXX='-library=Cstd -library=Crun'
14095     fi
14096     ;;
14097   esac
14098   ;;
14099
14100 solaris*)
14101   case $cc_basename in
14102   CC*)
14103     # The more standards-conforming stlport4 library is
14104     # incompatible with the Cstd library. Avoid specifying
14105     # it if it's in CXXFLAGS. Ignore libCrun as
14106     # -library=stlport4 depends on it.
14107     case " $CXX $CXXFLAGS " in
14108     *" -library=stlport4 "*)
14109       solaris_use_stlport4=yes
14110       ;;
14111     esac
14112
14113     # Adding this requires a known-good setup of shared libraries for
14114     # Sun compiler versions before 5.6, else PIC objects from an old
14115     # archive will be linked into the output, leading to subtle bugs.
14116     if test "$solaris_use_stlport4" != yes; then
14117       postdeps_CXX='-library=Cstd -library=Crun'
14118     fi
14119     ;;
14120   esac
14121   ;;
14122 esac
14123
14124
14125 case " $postdeps_CXX " in
14126 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
14127 esac
14128  compiler_lib_search_dirs_CXX=
14129 if test -n "${compiler_lib_search_path_CXX}"; then
14130  compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
14131 fi
14132
14133
14134
14135
14136
14137
14138
14139
14140
14141
14142
14143
14144
14145
14146
14147
14148
14149
14150
14151
14152
14153
14154
14155
14156
14157
14158
14159
14160
14161
14162
14163     lt_prog_compiler_wl_CXX=
14164 lt_prog_compiler_pic_CXX=
14165 lt_prog_compiler_static_CXX=
14166
14167 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
14168 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
14169
14170   # C++ specific cases for pic, static, wl, etc.
14171   if test "$GXX" = yes; then
14172     lt_prog_compiler_wl_CXX='-Wl,'
14173     lt_prog_compiler_static_CXX='-static'
14174
14175     case $host_os in
14176     aix*)
14177       # All AIX code is PIC.
14178       if test "$host_cpu" = ia64; then
14179         # AIX 5 now supports IA64 processor
14180         lt_prog_compiler_static_CXX='-Bstatic'
14181       fi
14182       ;;
14183
14184     amigaos*)
14185       case $host_cpu in
14186       powerpc)
14187             # see comment about AmigaOS4 .so support
14188             lt_prog_compiler_pic_CXX='-fPIC'
14189         ;;
14190       m68k)
14191             # FIXME: we need at least 68020 code to build shared libraries, but
14192             # adding the `-m68020' flag to GCC prevents building anything better,
14193             # like `-m68040'.
14194             lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
14195         ;;
14196       esac
14197       ;;
14198
14199     beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
14200       # PIC is the default for these OSes.
14201       ;;
14202     mingw* | cygwin* | os2* | pw32* | cegcc*)
14203       # This hack is so that the source file can tell whether it is being
14204       # built for inclusion in a dll (and should export symbols for example).
14205       # Although the cygwin gcc ignores -fPIC, still need this for old-style
14206       # (--disable-auto-import) libraries
14207       lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
14208       ;;
14209     darwin* | rhapsody*)
14210       # PIC is the default on this platform
14211       # Common symbols not allowed in MH_DYLIB files
14212       lt_prog_compiler_pic_CXX='-fno-common'
14213       ;;
14214     *djgpp*)
14215       # DJGPP does not support shared libraries at all
14216       lt_prog_compiler_pic_CXX=
14217       ;;
14218     interix[3-9]*)
14219       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
14220       # Instead, we relocate shared libraries at runtime.
14221       ;;
14222     sysv4*MP*)
14223       if test -d /usr/nec; then
14224         lt_prog_compiler_pic_CXX=-Kconform_pic
14225       fi
14226       ;;
14227     hpux*)
14228       # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
14229       # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
14230       # sets the default TLS model and affects inlining.
14231       case $host_cpu in
14232       hppa*64*)
14233         ;;
14234       *)
14235         lt_prog_compiler_pic_CXX='-fPIC'
14236         ;;
14237       esac
14238       ;;
14239     *qnx* | *nto*)
14240       # QNX uses GNU C++, but need to define -shared option too, otherwise
14241       # it will coredump.
14242       lt_prog_compiler_pic_CXX='-fPIC -shared'
14243       ;;
14244     *)
14245       lt_prog_compiler_pic_CXX='-fPIC'
14246       ;;
14247     esac
14248   else
14249     case $host_os in
14250       aix[4-9]*)
14251         # All AIX code is PIC.
14252         if test "$host_cpu" = ia64; then
14253           # AIX 5 now supports IA64 processor
14254           lt_prog_compiler_static_CXX='-Bstatic'
14255         else
14256           lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
14257         fi
14258         ;;
14259       chorus*)
14260         case $cc_basename in
14261         cxch68*)
14262           # Green Hills C++ Compiler
14263           # _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"
14264           ;;
14265         esac
14266         ;;
14267       dgux*)
14268         case $cc_basename in
14269           ec++*)
14270             lt_prog_compiler_pic_CXX='-KPIC'
14271             ;;
14272           ghcx*)
14273             # Green Hills C++ Compiler
14274             lt_prog_compiler_pic_CXX='-pic'
14275             ;;
14276           *)
14277             ;;
14278         esac
14279         ;;
14280       freebsd* | dragonfly*)
14281         # FreeBSD uses GNU C++
14282         ;;
14283       hpux9* | hpux10* | hpux11*)
14284         case $cc_basename in
14285           CC*)
14286             lt_prog_compiler_wl_CXX='-Wl,'
14287             lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
14288             if test "$host_cpu" != ia64; then
14289               lt_prog_compiler_pic_CXX='+Z'
14290             fi
14291             ;;
14292           aCC*)
14293             lt_prog_compiler_wl_CXX='-Wl,'
14294             lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
14295             case $host_cpu in
14296             hppa*64*|ia64*)
14297               # +Z the default
14298               ;;
14299             *)
14300               lt_prog_compiler_pic_CXX='+Z'
14301               ;;
14302             esac
14303             ;;
14304           *)
14305             ;;
14306         esac
14307         ;;
14308       interix*)
14309         # This is c89, which is MS Visual C++ (no shared libs)
14310         # Anyone wants to do a port?
14311         ;;
14312       irix5* | irix6* | nonstopux*)
14313         case $cc_basename in
14314           CC*)
14315             lt_prog_compiler_wl_CXX='-Wl,'
14316             lt_prog_compiler_static_CXX='-non_shared'
14317             # CC pic flag -KPIC is the default.
14318             ;;
14319           *)
14320             ;;
14321         esac
14322         ;;
14323       linux* | k*bsd*-gnu)
14324         case $cc_basename in
14325           KCC*)
14326             # KAI C++ Compiler
14327             lt_prog_compiler_wl_CXX='--backend -Wl,'
14328             lt_prog_compiler_pic_CXX='-fPIC'
14329             ;;
14330           ecpc* )
14331             # old Intel C++ for x86_64 which still supported -KPIC.
14332             lt_prog_compiler_wl_CXX='-Wl,'
14333             lt_prog_compiler_pic_CXX='-KPIC'
14334             lt_prog_compiler_static_CXX='-static'
14335             ;;
14336           icpc* )
14337             # Intel C++, used to be incompatible with GCC.
14338             # ICC 10 doesn't accept -KPIC any more.
14339             lt_prog_compiler_wl_CXX='-Wl,'
14340             lt_prog_compiler_pic_CXX='-fPIC'
14341             lt_prog_compiler_static_CXX='-static'
14342             ;;
14343           pgCC* | pgcpp*)
14344             # Portland Group C++ compiler
14345             lt_prog_compiler_wl_CXX='-Wl,'
14346             lt_prog_compiler_pic_CXX='-fpic'
14347             lt_prog_compiler_static_CXX='-Bstatic'
14348             ;;
14349           cxx*)
14350             # Compaq C++
14351             # Make sure the PIC flag is empty.  It appears that all Alpha
14352             # Linux and Compaq Tru64 Unix objects are PIC.
14353             lt_prog_compiler_pic_CXX=
14354             lt_prog_compiler_static_CXX='-non_shared'
14355             ;;
14356           xlc* | xlC*)
14357             # IBM XL 8.0 on PPC
14358             lt_prog_compiler_wl_CXX='-Wl,'
14359             lt_prog_compiler_pic_CXX='-qpic'
14360             lt_prog_compiler_static_CXX='-qstaticlink'
14361             ;;
14362           *)
14363             case `$CC -V 2>&1 | sed 5q` in
14364             *Sun\ C*)
14365               # Sun C++ 5.9
14366               lt_prog_compiler_pic_CXX='-KPIC'
14367               lt_prog_compiler_static_CXX='-Bstatic'
14368               lt_prog_compiler_wl_CXX='-Qoption ld '
14369               ;;
14370             esac
14371             ;;
14372         esac
14373         ;;
14374       lynxos*)
14375         ;;
14376       m88k*)
14377         ;;
14378       mvs*)
14379         case $cc_basename in
14380           cxx*)
14381             lt_prog_compiler_pic_CXX='-W c,exportall'
14382             ;;
14383           *)
14384             ;;
14385         esac
14386         ;;
14387       netbsd*)
14388         ;;
14389       *qnx* | *nto*)
14390         # QNX uses GNU C++, but need to define -shared option too, otherwise
14391         # it will coredump.
14392         lt_prog_compiler_pic_CXX='-fPIC -shared'
14393         ;;
14394       osf3* | osf4* | osf5*)
14395         case $cc_basename in
14396           KCC*)
14397             lt_prog_compiler_wl_CXX='--backend -Wl,'
14398             ;;
14399           RCC*)
14400             # Rational C++ 2.4.1
14401             lt_prog_compiler_pic_CXX='-pic'
14402             ;;
14403           cxx*)
14404             # Digital/Compaq C++
14405             lt_prog_compiler_wl_CXX='-Wl,'
14406             # Make sure the PIC flag is empty.  It appears that all Alpha
14407             # Linux and Compaq Tru64 Unix objects are PIC.
14408             lt_prog_compiler_pic_CXX=
14409             lt_prog_compiler_static_CXX='-non_shared'
14410             ;;
14411           *)
14412             ;;
14413         esac
14414         ;;
14415       psos*)
14416         ;;
14417       solaris*)
14418         case $cc_basename in
14419           CC*)
14420             # Sun C++ 4.2, 5.x and Centerline C++
14421             lt_prog_compiler_pic_CXX='-KPIC'
14422             lt_prog_compiler_static_CXX='-Bstatic'
14423             lt_prog_compiler_wl_CXX='-Qoption ld '
14424             ;;
14425           gcx*)
14426             # Green Hills C++ Compiler
14427             lt_prog_compiler_pic_CXX='-PIC'
14428             ;;
14429           *)
14430             ;;
14431         esac
14432         ;;
14433       sunos4*)
14434         case $cc_basename in
14435           CC*)
14436             # Sun C++ 4.x
14437             lt_prog_compiler_pic_CXX='-pic'
14438             lt_prog_compiler_static_CXX='-Bstatic'
14439             ;;
14440           lcc*)
14441             # Lucid
14442             lt_prog_compiler_pic_CXX='-pic'
14443             ;;
14444           *)
14445             ;;
14446         esac
14447         ;;
14448       sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
14449         case $cc_basename in
14450           CC*)
14451             lt_prog_compiler_wl_CXX='-Wl,'
14452             lt_prog_compiler_pic_CXX='-KPIC'
14453             lt_prog_compiler_static_CXX='-Bstatic'
14454             ;;
14455         esac
14456         ;;
14457       tandem*)
14458         case $cc_basename in
14459           NCC*)
14460             # NonStop-UX NCC 3.20
14461             lt_prog_compiler_pic_CXX='-KPIC'
14462             ;;
14463           *)
14464             ;;
14465         esac
14466         ;;
14467       vxworks*)
14468         ;;
14469       *)
14470         lt_prog_compiler_can_build_shared_CXX=no
14471         ;;
14472     esac
14473   fi
14474
14475 case $host_os in
14476   # For platforms which do not support PIC, -DPIC is meaningless:
14477   *djgpp*)
14478     lt_prog_compiler_pic_CXX=
14479     ;;
14480   *)
14481     lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
14482     ;;
14483 esac
14484 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic_CXX" >&5
14485 $as_echo "$lt_prog_compiler_pic_CXX" >&6; }
14486
14487
14488
14489 #
14490 # Check to make sure the PIC flag actually works.
14491 #
14492 if test -n "$lt_prog_compiler_pic_CXX"; then
14493   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
14494 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
14495 if test "${lt_cv_prog_compiler_pic_works_CXX+set}" = set; then :
14496   $as_echo_n "(cached) " >&6
14497 else
14498   lt_cv_prog_compiler_pic_works_CXX=no
14499    ac_outfile=conftest.$ac_objext
14500    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14501    lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
14502    # Insert the option either (1) after the last *FLAGS variable, or
14503    # (2) before a word containing "conftest.", or (3) at the end.
14504    # Note that $ac_compile itself does not contain backslashes and begins
14505    # with a dollar sign (not a hyphen), so the echo should work correctly.
14506    # The option is referenced via a variable to avoid confusing sed.
14507    lt_compile=`echo "$ac_compile" | $SED \
14508    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14509    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14510    -e 's:$: $lt_compiler_flag:'`
14511    (eval echo "\"\$as_me:14511: $lt_compile\"" >&5)
14512    (eval "$lt_compile" 2>conftest.err)
14513    ac_status=$?
14514    cat conftest.err >&5
14515    echo "$as_me:14515: \$? = $ac_status" >&5
14516    if (exit $ac_status) && test -s "$ac_outfile"; then
14517      # The compiler can only warn and ignore the option if not recognized
14518      # So say no if there are warnings other than the usual output.
14519      $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
14520      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14521      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
14522        lt_cv_prog_compiler_pic_works_CXX=yes
14523      fi
14524    fi
14525    $RM conftest*
14526
14527 fi
14528 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
14529 $as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
14530
14531 if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
14532     case $lt_prog_compiler_pic_CXX in
14533      "" | " "*) ;;
14534      *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
14535      esac
14536 else
14537     lt_prog_compiler_pic_CXX=
14538      lt_prog_compiler_can_build_shared_CXX=no
14539 fi
14540
14541 fi
14542
14543
14544
14545 #
14546 # Check to make sure the static flag actually works.
14547 #
14548 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
14549 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
14550 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
14551 if test "${lt_cv_prog_compiler_static_works_CXX+set}" = set; then :
14552   $as_echo_n "(cached) " >&6
14553 else
14554   lt_cv_prog_compiler_static_works_CXX=no
14555    save_LDFLAGS="$LDFLAGS"
14556    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
14557    echo "$lt_simple_link_test_code" > conftest.$ac_ext
14558    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
14559      # The linker can only warn and ignore the option if not recognized
14560      # So say no if there are warnings
14561      if test -s conftest.err; then
14562        # Append any errors to the config.log.
14563        cat conftest.err 1>&5
14564        $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
14565        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14566        if diff conftest.exp conftest.er2 >/dev/null; then
14567          lt_cv_prog_compiler_static_works_CXX=yes
14568        fi
14569      else
14570        lt_cv_prog_compiler_static_works_CXX=yes
14571      fi
14572    fi
14573    $RM -r conftest*
14574    LDFLAGS="$save_LDFLAGS"
14575
14576 fi
14577 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
14578 $as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
14579
14580 if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
14581     :
14582 else
14583     lt_prog_compiler_static_CXX=
14584 fi
14585
14586
14587
14588
14589     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
14590 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
14591 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then :
14592   $as_echo_n "(cached) " >&6
14593 else
14594   lt_cv_prog_compiler_c_o_CXX=no
14595    $RM -r conftest 2>/dev/null
14596    mkdir conftest
14597    cd conftest
14598    mkdir out
14599    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14600
14601    lt_compiler_flag="-o out/conftest2.$ac_objext"
14602    # Insert the option either (1) after the last *FLAGS variable, or
14603    # (2) before a word containing "conftest.", or (3) at the end.
14604    # Note that $ac_compile itself does not contain backslashes and begins
14605    # with a dollar sign (not a hyphen), so the echo should work correctly.
14606    lt_compile=`echo "$ac_compile" | $SED \
14607    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14608    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14609    -e 's:$: $lt_compiler_flag:'`
14610    (eval echo "\"\$as_me:14610: $lt_compile\"" >&5)
14611    (eval "$lt_compile" 2>out/conftest.err)
14612    ac_status=$?
14613    cat out/conftest.err >&5
14614    echo "$as_me:14614: \$? = $ac_status" >&5
14615    if (exit $ac_status) && test -s out/conftest2.$ac_objext
14616    then
14617      # The compiler can only warn and ignore the option if not recognized
14618      # So say no if there are warnings
14619      $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
14620      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14621      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14622        lt_cv_prog_compiler_c_o_CXX=yes
14623      fi
14624    fi
14625    chmod u+w . 2>&5
14626    $RM conftest*
14627    # SGI C++ compiler will create directory out/ii_files/ for
14628    # template instantiation
14629    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
14630    $RM out/* && rmdir out
14631    cd ..
14632    $RM -r conftest
14633    $RM conftest*
14634
14635 fi
14636 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
14637 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
14638
14639
14640
14641     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
14642 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
14643 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then :
14644   $as_echo_n "(cached) " >&6
14645 else
14646   lt_cv_prog_compiler_c_o_CXX=no
14647    $RM -r conftest 2>/dev/null
14648    mkdir conftest
14649    cd conftest
14650    mkdir out
14651    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14652
14653    lt_compiler_flag="-o out/conftest2.$ac_objext"
14654    # Insert the option either (1) after the last *FLAGS variable, or
14655    # (2) before a word containing "conftest.", or (3) at the end.
14656    # Note that $ac_compile itself does not contain backslashes and begins
14657    # with a dollar sign (not a hyphen), so the echo should work correctly.
14658    lt_compile=`echo "$ac_compile" | $SED \
14659    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14660    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14661    -e 's:$: $lt_compiler_flag:'`
14662    (eval echo "\"\$as_me:14662: $lt_compile\"" >&5)
14663    (eval "$lt_compile" 2>out/conftest.err)
14664    ac_status=$?
14665    cat out/conftest.err >&5
14666    echo "$as_me:14666: \$? = $ac_status" >&5
14667    if (exit $ac_status) && test -s out/conftest2.$ac_objext
14668    then
14669      # The compiler can only warn and ignore the option if not recognized
14670      # So say no if there are warnings
14671      $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
14672      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14673      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14674        lt_cv_prog_compiler_c_o_CXX=yes
14675      fi
14676    fi
14677    chmod u+w . 2>&5
14678    $RM conftest*
14679    # SGI C++ compiler will create directory out/ii_files/ for
14680    # template instantiation
14681    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
14682    $RM out/* && rmdir out
14683    cd ..
14684    $RM -r conftest
14685    $RM conftest*
14686
14687 fi
14688 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
14689 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
14690
14691
14692
14693
14694 hard_links="nottested"
14695 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
14696   # do not overwrite the value of need_locks provided by the user
14697   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
14698 $as_echo_n "checking if we can lock with hard links... " >&6; }
14699   hard_links=yes
14700   $RM conftest*
14701   ln conftest.a conftest.b 2>/dev/null && hard_links=no
14702   touch conftest.a
14703   ln conftest.a conftest.b 2>&5 || hard_links=no
14704   ln conftest.a conftest.b 2>/dev/null && hard_links=no
14705   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
14706 $as_echo "$hard_links" >&6; }
14707   if test "$hard_links" = no; then
14708     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
14709 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
14710     need_locks=warn
14711   fi
14712 else
14713   need_locks=no
14714 fi
14715
14716
14717
14718     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
14719 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
14720
14721   export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14722   case $host_os in
14723   aix[4-9]*)
14724     # If we're using GNU nm, then we don't want the "-C" option.
14725     # -C means demangle to AIX nm, but means don't demangle with GNU nm
14726     if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
14727       export_symbols_cmds_CXX='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
14728     else
14729       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'
14730     fi
14731     ;;
14732   pw32*)
14733     export_symbols_cmds_CXX="$ltdll_cmds"
14734   ;;
14735   cygwin* | mingw* | cegcc*)
14736     export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/;/^.*[ ]__nm__/s/^.*[ ]__nm__\([^ ]*\)[ ][^ ]*/\1 DATA/;/^I[ ]/d;/^[AITW][ ]/s/.* //'\'' | sort | uniq > $export_symbols'
14737   ;;
14738   *)
14739     export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14740   ;;
14741   esac
14742   exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
14743
14744 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
14745 $as_echo "$ld_shlibs_CXX" >&6; }
14746 test "$ld_shlibs_CXX" = no && can_build_shared=no
14747
14748 with_gnu_ld_CXX=$with_gnu_ld
14749
14750
14751
14752
14753
14754
14755 #
14756 # Do we need to explicitly link libc?
14757 #
14758 case "x$archive_cmds_need_lc_CXX" in
14759 x|xyes)
14760   # Assume -lc should be added
14761   archive_cmds_need_lc_CXX=yes
14762
14763   if test "$enable_shared" = yes && test "$GCC" = yes; then
14764     case $archive_cmds_CXX in
14765     *'~'*)
14766       # FIXME: we may have to deal with multi-command sequences.
14767       ;;
14768     '$CC '*)
14769       # Test whether the compiler implicitly links with -lc since on some
14770       # systems, -lgcc has to come before -lc. If gcc already passes -lc
14771       # to ld, don't add -lc before -lgcc.
14772       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
14773 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
14774       $RM conftest*
14775       echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14776
14777       if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
14778   (eval $ac_compile) 2>&5
14779   ac_status=$?
14780   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14781   test $ac_status = 0; } 2>conftest.err; then
14782         soname=conftest
14783         lib=conftest
14784         libobjs=conftest.$ac_objext
14785         deplibs=
14786         wl=$lt_prog_compiler_wl_CXX
14787         pic_flag=$lt_prog_compiler_pic_CXX
14788         compiler_flags=-v
14789         linker_flags=-v
14790         verstring=
14791         output_objdir=.
14792         libname=conftest
14793         lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
14794         allow_undefined_flag_CXX=
14795         if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
14796   (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
14797   ac_status=$?
14798   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14799   test $ac_status = 0; }
14800         then
14801           archive_cmds_need_lc_CXX=no
14802         else
14803           archive_cmds_need_lc_CXX=yes
14804         fi
14805         allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
14806       else
14807         cat conftest.err 1>&5
14808       fi
14809       $RM conftest*
14810       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $archive_cmds_need_lc_CXX" >&5
14811 $as_echo "$archive_cmds_need_lc_CXX" >&6; }
14812       ;;
14813     esac
14814   fi
14815   ;;
14816 esac
14817
14818
14819
14820
14821
14822
14823
14824
14825
14826
14827
14828
14829
14830
14831
14832
14833
14834
14835
14836
14837
14838
14839
14840
14841
14842
14843
14844
14845
14846
14847
14848
14849
14850
14851
14852
14853
14854
14855
14856
14857
14858
14859
14860
14861
14862
14863
14864
14865
14866
14867
14868
14869
14870
14871
14872
14873
14874
14875
14876
14877
14878
14879
14880
14881     { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
14882 $as_echo_n "checking dynamic linker characteristics... " >&6; }
14883
14884 library_names_spec=
14885 libname_spec='lib$name'
14886 soname_spec=
14887 shrext_cmds=".so"
14888 postinstall_cmds=
14889 postuninstall_cmds=
14890 finish_cmds=
14891 finish_eval=
14892 shlibpath_var=
14893 shlibpath_overrides_runpath=unknown
14894 version_type=none
14895 dynamic_linker="$host_os ld.so"
14896 sys_lib_dlsearch_path_spec="/lib /usr/lib"
14897 need_lib_prefix=unknown
14898 hardcode_into_libs=no
14899
14900 # when you set need_version to no, make sure it does not cause -set_version
14901 # flags to be left without arguments
14902 need_version=unknown
14903
14904 case $host_os in
14905 aix3*)
14906   version_type=linux
14907   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
14908   shlibpath_var=LIBPATH
14909
14910   # AIX 3 has no versioning support, so we append a major version to the name.
14911   soname_spec='${libname}${release}${shared_ext}$major'
14912   ;;
14913
14914 aix[4-9]*)
14915   version_type=linux
14916   need_lib_prefix=no
14917   need_version=no
14918   hardcode_into_libs=yes
14919   if test "$host_cpu" = ia64; then
14920     # AIX 5 supports IA64
14921     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
14922     shlibpath_var=LD_LIBRARY_PATH
14923   else
14924     # With GCC up to 2.95.x, collect2 would create an import file
14925     # for dependence libraries.  The import file would start with
14926     # the line `#! .'.  This would cause the generated library to
14927     # depend on `.', always an invalid library.  This was fixed in
14928     # development snapshots of GCC prior to 3.0.
14929     case $host_os in
14930       aix4 | aix4.[01] | aix4.[01].*)
14931       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
14932            echo ' yes '
14933            echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
14934         :
14935       else
14936         can_build_shared=no
14937       fi
14938       ;;
14939     esac
14940     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
14941     # soname into executable. Probably we can add versioning support to
14942     # collect2, so additional links can be useful in future.
14943     if test "$aix_use_runtimelinking" = yes; then
14944       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
14945       # instead of lib<name>.a to let people know that these are not
14946       # typical AIX shared libraries.
14947       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14948     else
14949       # We preserve .a as extension for shared libraries through AIX4.2
14950       # and later when we are not doing run time linking.
14951       library_names_spec='${libname}${release}.a $libname.a'
14952       soname_spec='${libname}${release}${shared_ext}$major'
14953     fi
14954     shlibpath_var=LIBPATH
14955   fi
14956   ;;
14957
14958 amigaos*)
14959   case $host_cpu in
14960   powerpc)
14961     # Since July 2007 AmigaOS4 officially supports .so libraries.
14962     # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
14963     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14964     ;;
14965   m68k)
14966     library_names_spec='$libname.ixlibrary $libname.a'
14967     # Create ${libname}_ixlibrary.a entries in /sys/libs.
14968     finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$ECHO "X$lib" | $Xsed -e '\''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'
14969     ;;
14970   esac
14971   ;;
14972
14973 beos*)
14974   library_names_spec='${libname}${shared_ext}'
14975   dynamic_linker="$host_os ld.so"
14976   shlibpath_var=LIBRARY_PATH
14977   ;;
14978
14979 bsdi[45]*)
14980   version_type=linux
14981   need_version=no
14982   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14983   soname_spec='${libname}${release}${shared_ext}$major'
14984   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
14985   shlibpath_var=LD_LIBRARY_PATH
14986   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
14987   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
14988   # the default ld.so.conf also contains /usr/contrib/lib and
14989   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
14990   # libtool to hard-code these into programs
14991   ;;
14992
14993 cygwin* | mingw* | pw32* | cegcc*)
14994   version_type=windows
14995   shrext_cmds=".dll"
14996   need_version=no
14997   need_lib_prefix=no
14998
14999   case $GCC,$host_os in
15000   yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
15001     library_names_spec='$libname.dll.a'
15002     # DLL is installed to $(libdir)/../bin by postinstall_cmds
15003     postinstall_cmds='base_file=`basename \${file}`~
15004       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
15005       dldir=$destdir/`dirname \$dlpath`~
15006       test -d \$dldir || mkdir -p \$dldir~
15007       $install_prog $dir/$dlname \$dldir/$dlname~
15008       chmod a+x \$dldir/$dlname~
15009       if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
15010         eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
15011       fi'
15012     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
15013       dlpath=$dir/\$dldll~
15014        $RM \$dlpath'
15015     shlibpath_overrides_runpath=yes
15016
15017     case $host_os in
15018     cygwin*)
15019       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
15020       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15021       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
15022       ;;
15023     mingw* | cegcc*)
15024       # MinGW DLLs use traditional 'lib' prefix
15025       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15026       sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
15027       if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
15028         # It is most probably a Windows format PATH printed by
15029         # mingw gcc, but we are running on Cygwin. Gcc prints its search
15030         # path with ; separators, and with drive letters. We can handle the
15031         # drive letters (cygwin fileutils understands them), so leave them,
15032         # especially as we might pass files found there to a mingw objdump,
15033         # which wouldn't understand a cygwinified path. Ahh.
15034         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
15035       else
15036         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
15037       fi
15038       ;;
15039     pw32*)
15040       # pw32 DLLs use 'pw' prefix rather than 'lib'
15041       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15042       ;;
15043     esac
15044     ;;
15045
15046   *)
15047     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
15048     ;;
15049   esac
15050   dynamic_linker='Win32 ld.exe'
15051   # FIXME: first we should search . and the directory the executable is in
15052   shlibpath_var=PATH
15053   ;;
15054
15055 darwin* | rhapsody*)
15056   dynamic_linker="$host_os dyld"
15057   version_type=darwin
15058   need_lib_prefix=no
15059   need_version=no
15060   library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
15061   soname_spec='${libname}${release}${major}$shared_ext'
15062   shlibpath_overrides_runpath=yes
15063   shlibpath_var=DYLD_LIBRARY_PATH
15064   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
15065
15066   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
15067   ;;
15068
15069 dgux*)
15070   version_type=linux
15071   need_lib_prefix=no
15072   need_version=no
15073   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
15074   soname_spec='${libname}${release}${shared_ext}$major'
15075   shlibpath_var=LD_LIBRARY_PATH
15076   ;;
15077
15078 freebsd1*)
15079   dynamic_linker=no
15080   ;;
15081
15082 freebsd* | dragonfly*)
15083   # DragonFly does not have aout.  When/if they implement a new
15084   # versioning mechanism, adjust this.
15085   if test -x /usr/bin/objformat; then
15086     objformat=`/usr/bin/objformat`
15087   else
15088     case $host_os in
15089     freebsd[123]*) objformat=aout ;;
15090     *) objformat=elf ;;
15091     esac
15092   fi
15093   version_type=freebsd-$objformat
15094   case $version_type in
15095     freebsd-elf*)
15096       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15097       need_version=no
15098       need_lib_prefix=no
15099       ;;
15100     freebsd-*)
15101       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
15102       need_version=yes
15103       ;;
15104   esac
15105   shlibpath_var=LD_LIBRARY_PATH
15106   case $host_os in
15107   freebsd2*)
15108     shlibpath_overrides_runpath=yes
15109     ;;
15110   freebsd3.[01]* | freebsdelf3.[01]*)
15111     shlibpath_overrides_runpath=yes
15112     hardcode_into_libs=yes
15113     ;;
15114   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
15115   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
15116     shlibpath_overrides_runpath=no
15117     hardcode_into_libs=yes
15118     ;;
15119   *) # from 4.6 on, and DragonFly
15120     shlibpath_overrides_runpath=yes
15121     hardcode_into_libs=yes
15122     ;;
15123   esac
15124   ;;
15125
15126 gnu*)
15127   version_type=linux
15128   need_lib_prefix=no
15129   need_version=no
15130   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
15131   soname_spec='${libname}${release}${shared_ext}$major'
15132   shlibpath_var=LD_LIBRARY_PATH
15133   hardcode_into_libs=yes
15134   ;;
15135
15136 hpux9* | hpux10* | hpux11*)
15137   # Give a soname corresponding to the major version so that dld.sl refuses to
15138   # link against other versions.
15139   version_type=sunos
15140   need_lib_prefix=no
15141   need_version=no
15142   case $host_cpu in
15143   ia64*)
15144     shrext_cmds='.so'
15145     hardcode_into_libs=yes
15146     dynamic_linker="$host_os dld.so"
15147     shlibpath_var=LD_LIBRARY_PATH
15148     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15149     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15150     soname_spec='${libname}${release}${shared_ext}$major'
15151     if test "X$HPUX_IA64_MODE" = X32; then
15152       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
15153     else
15154       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
15155     fi
15156     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15157     ;;
15158   hppa*64*)
15159     shrext_cmds='.sl'
15160     hardcode_into_libs=yes
15161     dynamic_linker="$host_os dld.sl"
15162     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
15163     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15164     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15165     soname_spec='${libname}${release}${shared_ext}$major'
15166     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
15167     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15168     ;;
15169   *)
15170     shrext_cmds='.sl'
15171     dynamic_linker="$host_os dld.sl"
15172     shlibpath_var=SHLIB_PATH
15173     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
15174     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15175     soname_spec='${libname}${release}${shared_ext}$major'
15176     ;;
15177   esac
15178   # HP-UX runs *really* slowly unless shared libraries are mode 555.
15179   postinstall_cmds='chmod 555 $lib'
15180   ;;
15181
15182 interix[3-9]*)
15183   version_type=linux
15184   need_lib_prefix=no
15185   need_version=no
15186   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15187   soname_spec='${libname}${release}${shared_ext}$major'
15188   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
15189   shlibpath_var=LD_LIBRARY_PATH
15190   shlibpath_overrides_runpath=no
15191   hardcode_into_libs=yes
15192   ;;
15193
15194 irix5* | irix6* | nonstopux*)
15195   case $host_os in
15196     nonstopux*) version_type=nonstopux ;;
15197     *)
15198         if test "$lt_cv_prog_gnu_ld" = yes; then
15199                 version_type=linux
15200         else
15201                 version_type=irix
15202         fi ;;
15203   esac
15204   need_lib_prefix=no
15205   need_version=no
15206   soname_spec='${libname}${release}${shared_ext}$major'
15207   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
15208   case $host_os in
15209   irix5* | nonstopux*)
15210     libsuff= shlibsuff=
15211     ;;
15212   *)
15213     case $LD in # libtool.m4 will add one of these switches to LD
15214     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
15215       libsuff= shlibsuff= libmagic=32-bit;;
15216     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
15217       libsuff=32 shlibsuff=N32 libmagic=N32;;
15218     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
15219       libsuff=64 shlibsuff=64 libmagic=64-bit;;
15220     *) libsuff= shlibsuff= libmagic=never-match;;
15221     esac
15222     ;;
15223   esac
15224   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
15225   shlibpath_overrides_runpath=no
15226   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
15227   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
15228   hardcode_into_libs=yes
15229   ;;
15230
15231 # No shared lib support for Linux oldld, aout, or coff.
15232 linux*oldld* | linux*aout* | linux*coff*)
15233   dynamic_linker=no
15234   ;;
15235
15236 # This must be Linux ELF.
15237 linux* | k*bsd*-gnu)
15238   version_type=linux
15239   need_lib_prefix=no
15240   need_version=no
15241   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15242   soname_spec='${libname}${release}${shared_ext}$major'
15243   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
15244   shlibpath_var=LD_LIBRARY_PATH
15245   shlibpath_overrides_runpath=no
15246   # Some binutils ld are patched to set DT_RUNPATH
15247   save_LDFLAGS=$LDFLAGS
15248   save_libdir=$libdir
15249   eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
15250        LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
15251   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15252 /* end confdefs.h.  */
15253
15254 int
15255 main ()
15256 {
15257
15258   ;
15259   return 0;
15260 }
15261 _ACEOF
15262 if ac_fn_cxx_try_link "$LINENO"; then :
15263   if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
15264   shlibpath_overrides_runpath=yes
15265 fi
15266 fi
15267 rm -f core conftest.err conftest.$ac_objext \
15268     conftest$ac_exeext conftest.$ac_ext
15269   LDFLAGS=$save_LDFLAGS
15270   libdir=$save_libdir
15271
15272   # This implies no fast_install, which is unacceptable.
15273   # Some rework will be needed to allow for fast_install
15274   # before this can be enabled.
15275   hardcode_into_libs=yes
15276
15277   # Append ld.so.conf contents to the search path
15278   if test -f /etc/ld.so.conf; then
15279     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;/^$/d' | tr '\n' ' '`
15280     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
15281   fi
15282
15283   # We used to test for /lib/ld.so.1 and disable shared libraries on
15284   # powerpc, because MkLinux only supported shared libraries with the
15285   # GNU dynamic linker.  Since this was broken with cross compilers,
15286   # most powerpc-linux boxes support dynamic linking these days and
15287   # people can always --disable-shared, the test was removed, and we
15288   # assume the GNU/Linux dynamic linker is in use.
15289   dynamic_linker='GNU/Linux ld.so'
15290   ;;
15291
15292 netbsd*)
15293   version_type=sunos
15294   need_lib_prefix=no
15295   need_version=no
15296   if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
15297     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15298     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15299     dynamic_linker='NetBSD (a.out) ld.so'
15300   else
15301     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15302     soname_spec='${libname}${release}${shared_ext}$major'
15303     dynamic_linker='NetBSD ld.elf_so'
15304   fi
15305   shlibpath_var=LD_LIBRARY_PATH
15306   shlibpath_overrides_runpath=yes
15307   hardcode_into_libs=yes
15308   ;;
15309
15310 newsos6)
15311   version_type=linux
15312   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15313   shlibpath_var=LD_LIBRARY_PATH
15314   shlibpath_overrides_runpath=yes
15315   ;;
15316
15317 *nto* | *qnx*)
15318   version_type=qnx
15319   need_lib_prefix=no
15320   need_version=no
15321   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15322   soname_spec='${libname}${release}${shared_ext}$major'
15323   shlibpath_var=LD_LIBRARY_PATH
15324   shlibpath_overrides_runpath=no
15325   hardcode_into_libs=yes
15326   dynamic_linker='ldqnx.so'
15327   ;;
15328
15329 openbsd*)
15330   version_type=sunos
15331   sys_lib_dlsearch_path_spec="/usr/lib"
15332   need_lib_prefix=no
15333   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
15334   case $host_os in
15335     openbsd3.3 | openbsd3.3.*)  need_version=yes ;;
15336     *)                          need_version=no  ;;
15337   esac
15338   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15339   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15340   shlibpath_var=LD_LIBRARY_PATH
15341   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15342     case $host_os in
15343       openbsd2.[89] | openbsd2.[89].*)
15344         shlibpath_overrides_runpath=no
15345         ;;
15346       *)
15347         shlibpath_overrides_runpath=yes
15348         ;;
15349       esac
15350   else
15351     shlibpath_overrides_runpath=yes
15352   fi
15353   ;;
15354
15355 os2*)
15356   libname_spec='$name'
15357   shrext_cmds=".dll"
15358   need_lib_prefix=no
15359   library_names_spec='$libname${shared_ext} $libname.a'
15360   dynamic_linker='OS/2 ld.exe'
15361   shlibpath_var=LIBPATH
15362   ;;
15363
15364 osf3* | osf4* | osf5*)
15365   version_type=osf
15366   need_lib_prefix=no
15367   need_version=no
15368   soname_spec='${libname}${release}${shared_ext}$major'
15369   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15370   shlibpath_var=LD_LIBRARY_PATH
15371   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
15372   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
15373   ;;
15374
15375 rdos*)
15376   dynamic_linker=no
15377   ;;
15378
15379 solaris*)
15380   version_type=linux
15381   need_lib_prefix=no
15382   need_version=no
15383   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15384   soname_spec='${libname}${release}${shared_ext}$major'
15385   shlibpath_var=LD_LIBRARY_PATH
15386   shlibpath_overrides_runpath=yes
15387   hardcode_into_libs=yes
15388   # ldd complains unless libraries are executable
15389   postinstall_cmds='chmod +x $lib'
15390   ;;
15391
15392 sunos4*)
15393   version_type=sunos
15394   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15395   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
15396   shlibpath_var=LD_LIBRARY_PATH
15397   shlibpath_overrides_runpath=yes
15398   if test "$with_gnu_ld" = yes; then
15399     need_lib_prefix=no
15400   fi
15401   need_version=yes
15402   ;;
15403
15404 sysv4 | sysv4.3*)
15405   version_type=linux
15406   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15407   soname_spec='${libname}${release}${shared_ext}$major'
15408   shlibpath_var=LD_LIBRARY_PATH
15409   case $host_vendor in
15410     sni)
15411       shlibpath_overrides_runpath=no
15412       need_lib_prefix=no
15413       runpath_var=LD_RUN_PATH
15414       ;;
15415     siemens)
15416       need_lib_prefix=no
15417       ;;
15418     motorola)
15419       need_lib_prefix=no
15420       need_version=no
15421       shlibpath_overrides_runpath=no
15422       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
15423       ;;
15424   esac
15425   ;;
15426
15427 sysv4*MP*)
15428   if test -d /usr/nec ;then
15429     version_type=linux
15430     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
15431     soname_spec='$libname${shared_ext}.$major'
15432     shlibpath_var=LD_LIBRARY_PATH
15433   fi
15434   ;;
15435
15436 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
15437   version_type=freebsd-elf
15438   need_lib_prefix=no
15439   need_version=no
15440   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15441   soname_spec='${libname}${release}${shared_ext}$major'
15442   shlibpath_var=LD_LIBRARY_PATH
15443   shlibpath_overrides_runpath=yes
15444   hardcode_into_libs=yes
15445   if test "$with_gnu_ld" = yes; then
15446     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
15447   else
15448     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
15449     case $host_os in
15450       sco3.2v5*)
15451         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
15452         ;;
15453     esac
15454   fi
15455   sys_lib_dlsearch_path_spec='/usr/lib'
15456   ;;
15457
15458 tpf*)
15459   # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
15460   version_type=linux
15461   need_lib_prefix=no
15462   need_version=no
15463   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15464   shlibpath_var=LD_LIBRARY_PATH
15465   shlibpath_overrides_runpath=no
15466   hardcode_into_libs=yes
15467   ;;
15468
15469 uts4*)
15470   version_type=linux
15471   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15472   soname_spec='${libname}${release}${shared_ext}$major'
15473   shlibpath_var=LD_LIBRARY_PATH
15474   ;;
15475
15476 *)
15477   dynamic_linker=no
15478   ;;
15479 esac
15480 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
15481 $as_echo "$dynamic_linker" >&6; }
15482 test "$dynamic_linker" = no && can_build_shared=no
15483
15484 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
15485 if test "$GCC" = yes; then
15486   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
15487 fi
15488
15489 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
15490   sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
15491 fi
15492 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
15493   sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
15494 fi
15495
15496
15497
15498
15499
15500
15501
15502
15503
15504
15505
15506
15507
15508
15509
15510
15511
15512
15513
15514
15515
15516
15517
15518
15519
15520
15521
15522
15523
15524
15525
15526
15527
15528
15529
15530
15531     { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
15532 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
15533 hardcode_action_CXX=
15534 if test -n "$hardcode_libdir_flag_spec_CXX" ||
15535    test -n "$runpath_var_CXX" ||
15536    test "X$hardcode_automatic_CXX" = "Xyes" ; then
15537
15538   # We can hardcode non-existent directories.
15539   if test "$hardcode_direct_CXX" != no &&
15540      # If the only mechanism to avoid hardcoding is shlibpath_var, we
15541      # have to relink, otherwise we might link with an installed library
15542      # when we should be linking with a yet-to-be-installed one
15543      ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
15544      test "$hardcode_minus_L_CXX" != no; then
15545     # Linking always hardcodes the temporary library directory.
15546     hardcode_action_CXX=relink
15547   else
15548     # We can link without hardcoding, and we can hardcode nonexisting dirs.
15549     hardcode_action_CXX=immediate
15550   fi
15551 else
15552   # We cannot hardcode anything, or else we can only hardcode existing
15553   # directories.
15554   hardcode_action_CXX=unsupported
15555 fi
15556 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
15557 $as_echo "$hardcode_action_CXX" >&6; }
15558
15559 if test "$hardcode_action_CXX" = relink ||
15560    test "$inherit_rpath_CXX" = yes; then
15561   # Fast installation is not supported
15562   enable_fast_install=no
15563 elif test "$shlibpath_overrides_runpath" = yes ||
15564      test "$enable_shared" = no; then
15565   # Fast installation is not necessary
15566   enable_fast_install=needless
15567 fi
15568
15569
15570
15571
15572
15573
15574
15575   fi # test -n "$compiler"
15576
15577   CC=$lt_save_CC
15578   LDCXX=$LD
15579   LD=$lt_save_LD
15580   GCC=$lt_save_GCC
15581   with_gnu_ld=$lt_save_with_gnu_ld
15582   lt_cv_path_LDCXX=$lt_cv_path_LD
15583   lt_cv_path_LD=$lt_save_path_LD
15584   lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
15585   lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
15586 fi # test "$_lt_caught_CXX_error" != yes
15587
15588 ac_ext=c
15589 ac_cpp='$CPP $CPPFLAGS'
15590 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15591 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15592 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15593
15594
15595
15596
15597
15598
15599
15600
15601
15602
15603
15604
15605
15606         ac_config_commands="$ac_config_commands libtool"
15607
15608
15609
15610
15611 # Only expand once:
15612
15613
15614
15615
15616 if test x$use_libtool != xno; then
15617    DEFAULT_OBJECT_TYPE=".lo"
15618    DEFAULT_ARCHIVE_TYPE=".la"
15619    DEFAULT_SHARED_OBJECT_TYPE=".la"
15620    LIBTOOL="\$(LIBTOOL)"
15621    LIBTOOL_INSTALL_TARGET="libtool-install"
15622    LIBTOOL_UNINSTALL_TARGET="libtool-uninstall"
15623    LIBTOOL_CLEAN_TARGET="libtool-clean"
15624    QMAKE_LIBTOOL="${BUILD_DIR}/libtool"
15625    FD_PLUGIN_DIR="src/plugins/fd"
15626    have_plugins=yes
15627 else
15628    DEFAULT_OBJECT_TYPE=".o"
15629    DEFAULT_ARCHIVE_TYPE=".a"
15630    DEFAULT_SHARED_OBJECT_TYPE=".so"
15631    LIBTOOL="# \$(LIBTOOL)"
15632    LIBTOOL_INSTALL_TARGET=""
15633    LIBTOOL_UNINSTALL_TARGET=""
15634    LIBTOOL_CLEAN_TARGET=""
15635    QMAKE_LIBTOOL="# ${BUILD_DIR}/libtool"
15636    FD_PLUGIN_DIR=""
15637    have_plugins=no
15638 fi
15639
15640
15641
15642
15643
15644
15645
15646
15647
15648
15649
15650 # Check whether --enable-includes was given.
15651 if test "${enable_includes+set}" = set; then :
15652   enableval=$enable_includes;
15653        if test x$enableval = xyes; then
15654           install_includes=yes
15655        fi
15656
15657
15658 fi
15659
15660
15661
15662 if test x$use_libtool != xno -a x$install_includes = xyes; then
15663    INCLUDE_INSTALL_TARGET="install-includes"
15664    INCLUDE_UNINSTALL_TARGET="uninstall-includes"
15665 else
15666    INCLUDE_INSTALL_TARGET=""
15667    INCLUDE_UNINSTALL_TARGET=""
15668 fi
15669
15670
15671
15672
15673
15674 case $host_os in
15675   *cygwin* ) CYGWIN=yes;;
15676          * ) CYGWIN=no;;
15677 esac
15678
15679 if test $HAVE_UNAME=yes -a x`uname -s` = xSunOS
15680 then
15681
15682
15683 if $TRUEPRG; then
15684   HAVE_SUN_OS_TRUE=
15685   HAVE_SUN_OS_FALSE='#'
15686 else
15687   HAVE_SUN_OS_TRUE='#'
15688   HAVE_SUN_OS_FALSE=
15689 fi
15690         $as_echo "#define HAVE_SUN_OS 1" >>confdefs.h
15691
15692 else
15693
15694
15695 if $FALSEPRG; then
15696   HAVE_SUN_OS_TRUE=
15697   HAVE_SUN_OS_FALSE='#'
15698 else
15699   HAVE_SUN_OS_TRUE='#'
15700   HAVE_SUN_OS_FALSE=
15701 fi
15702 fi
15703
15704 if test $HAVE_UNAME=yes -a x`uname -s` = xOSF1
15705 then
15706
15707
15708 if $TRUEPRG; then
15709   HAVE_OSF1_OS_TRUE=
15710   HAVE_OSF1_OS_FALSE='#'
15711 else
15712   HAVE_OSF1_OS_TRUE='#'
15713   HAVE_OSF1_OS_FALSE=
15714 fi
15715         $as_echo "#define HAVE_OSF1_OS 1" >>confdefs.h
15716
15717 else
15718
15719
15720 if $FALSEPRG; then
15721   HAVE_OSF1_OS_TRUE=
15722   HAVE_OSF1_OS_FALSE='#'
15723 else
15724   HAVE_OSF1_OS_TRUE='#'
15725   HAVE_OSF1_OS_FALSE=
15726 fi
15727 fi
15728
15729 if test $HAVE_UNAME=yes -a x`uname -s` = xAIX
15730 then
15731
15732
15733 if $TRUEPRG; then
15734   HAVE_AIX_OS_TRUE=
15735   HAVE_AIX_OS_FALSE='#'
15736 else
15737   HAVE_AIX_OS_TRUE='#'
15738   HAVE_AIX_OS_FALSE=
15739 fi
15740         $as_echo "#define HAVE_AIX_OS 1" >>confdefs.h
15741
15742 else
15743
15744
15745 if $FALSEPRG; then
15746   HAVE_AIX_OS_TRUE=
15747   HAVE_AIX_OS_FALSE='#'
15748 else
15749   HAVE_AIX_OS_TRUE='#'
15750   HAVE_AIX_OS_FALSE=
15751 fi
15752 fi
15753
15754 if test $HAVE_UNAME=yes -a x`uname -s` = xHP-UX
15755 then
15756
15757
15758 if $TRUEPRG; then
15759   HAVE_HPUX_OS_TRUE=
15760   HAVE_HPUX_OS_FALSE='#'
15761 else
15762   HAVE_HPUX_OS_TRUE='#'
15763   HAVE_HPUX_OS_FALSE=
15764 fi
15765         $as_echo "#define HAVE_HPUX_OS 1" >>confdefs.h
15766
15767 else
15768
15769
15770 if $FALSEPRG; then
15771   HAVE_HPUX_OS_TRUE=
15772   HAVE_HPUX_OS_FALSE='#'
15773 else
15774   HAVE_HPUX_OS_TRUE='#'
15775   HAVE_HPUX_OS_FALSE=
15776 fi
15777 fi
15778
15779 if test $HAVE_UNAME=yes -a x`uname -s` = xLinux
15780 then
15781
15782
15783 if $TRUEPRG; then
15784   HAVE_LINUX_OS_TRUE=
15785   HAVE_LINUX_OS_FALSE='#'
15786 else
15787   HAVE_LINUX_OS_TRUE='#'
15788   HAVE_LINUX_OS_FALSE=
15789 fi
15790         $as_echo "#define HAVE_LINUX_OS 1" >>confdefs.h
15791
15792 else
15793
15794
15795 if $FALSEPRG; then
15796   HAVE_LINUX_OS_TRUE=
15797   HAVE_LINUX_OS_FALSE='#'
15798 else
15799   HAVE_LINUX_OS_TRUE='#'
15800   HAVE_LINUX_OS_FALSE=
15801 fi
15802 fi
15803
15804 if test $HAVE_UNAME=yes -a x`uname -s` = xFreeBSD
15805 then
15806
15807
15808 if $TRUEPRG; then
15809   HAVE_FREEBSD_OS_TRUE=
15810   HAVE_FREEBSD_OS_FALSE='#'
15811 else
15812   HAVE_FREEBSD_OS_TRUE='#'
15813   HAVE_FREEBSD_OS_FALSE=
15814 fi
15815         $as_echo "#define HAVE_FREEBSD_OS 1" >>confdefs.h
15816
15817 else
15818
15819
15820 if $FALSEPRG; then
15821   HAVE_FREEBSD_OS_TRUE=
15822   HAVE_FREEBSD_OS_FALSE='#'
15823 else
15824   HAVE_FREEBSD_OS_TRUE='#'
15825   HAVE_FREEBSD_OS_FALSE=
15826 fi
15827 fi
15828
15829 if test $HAVE_UNAME=yes -a x`uname -s` = xNetBSD
15830 then
15831
15832
15833 if $TRUEPRG; then
15834   HAVE_NETBSD_OS_TRUE=
15835   HAVE_NETBSD_OS_FALSE='#'
15836 else
15837   HAVE_NETBSD_OS_TRUE='#'
15838   HAVE_NETBSD_OS_FALSE=
15839 fi
15840         $as_echo "#define HAVE_NETBSD_OS 1" >>confdefs.h
15841
15842 else
15843
15844
15845 if $FALSEPRG; then
15846   HAVE_NETBSD_OS_TRUE=
15847   HAVE_NETBSD_OS_FALSE='#'
15848 else
15849   HAVE_NETBSD_OS_TRUE='#'
15850   HAVE_NETBSD_OS_FALSE=
15851 fi
15852 fi
15853
15854 if test $HAVE_UNAME=yes -a x`uname -s` = xOpenBSD
15855 then
15856
15857
15858 if $TRUEPRG; then
15859   HAVE_OPENBSD_OS_TRUE=
15860   HAVE_OPENBSD_OS_FALSE='#'
15861 else
15862   HAVE_OPENBSD_OS_TRUE='#'
15863   HAVE_OPENBSD_OS_FALSE=
15864 fi
15865         $as_echo "#define HAVE_OPENBSD_OS 1" >>confdefs.h
15866
15867 else
15868
15869
15870 if $FALSEPRG; then
15871   HAVE_OPENBSD_OS_TRUE=
15872   HAVE_OPENBSD_OS_FALSE='#'
15873 else
15874   HAVE_OPENBSD_OS_TRUE='#'
15875   HAVE_OPENBSD_OS_FALSE=
15876 fi
15877 fi
15878
15879 if test $HAVE_UNAME=yes -a x`uname -s` = xBSD/OS
15880 then
15881
15882
15883 if $TRUEPRG; then
15884   HAVE_BSDI_OS_TRUE=
15885   HAVE_BSDI_OS_FALSE='#'
15886 else
15887   HAVE_BSDI_OS_TRUE='#'
15888   HAVE_BSDI_OS_FALSE=
15889 fi
15890         $as_echo "#define HAVE_BSDI_OS 1" >>confdefs.h
15891
15892 else
15893
15894
15895 if $FALSEPRG; then
15896   HAVE_BSDI_OS_TRUE=
15897   HAVE_BSDI_OS_FALSE='#'
15898 else
15899   HAVE_BSDI_OS_TRUE='#'
15900   HAVE_BSDI_OS_FALSE=
15901 fi
15902 fi
15903
15904 if test $HAVE_UNAME=yes -a x`uname -s` = xSGI
15905 then
15906
15907
15908 if $TRUEPRG; then
15909   HAVE_SGI_OS_TRUE=
15910   HAVE_SGI_OS_FALSE='#'
15911 else
15912   HAVE_SGI_OS_TRUE='#'
15913   HAVE_SGI_OS_FALSE=
15914 fi
15915         $as_echo "#define HAVE_SGI_OS 1" >>confdefs.h
15916
15917 else
15918
15919
15920 if $FALSEPRG; then
15921   HAVE_SGI_OS_TRUE=
15922   HAVE_SGI_OS_FALSE='#'
15923 else
15924   HAVE_SGI_OS_TRUE='#'
15925   HAVE_SGI_OS_FALSE=
15926 fi
15927 fi
15928
15929 if test $HAVE_UNAME=yes -a x`uname -s` = xIRIX -o x`uname -s` = xIRIX64
15930 then
15931
15932
15933 if $TRUEPRG; then
15934   HAVE_IRIX_OS_TRUE=
15935   HAVE_IRIX_OS_FALSE='#'
15936 else
15937   HAVE_IRIX_OS_TRUE='#'
15938   HAVE_IRIX_OS_FALSE=
15939 fi
15940         $as_echo "#define HAVE_IRIX_OS 1" >>confdefs.h
15941
15942 else
15943
15944
15945 if $FALSEPRG; then
15946   HAVE_IRIX_OS_TRUE=
15947   HAVE_IRIX_OS_FALSE='#'
15948 else
15949   HAVE_IRIX_OS_TRUE='#'
15950   HAVE_IRIX_OS_FALSE=
15951 fi
15952 fi
15953
15954 if test $HAVE_UNAME=yes -a x`uname -s` = xDarwin
15955 then
15956
15957
15958 if $TRUEPRG; then
15959   HAVE_DARWIN_OS_TRUE=
15960   HAVE_DARWIN_OS_FALSE='#'
15961 else
15962   HAVE_DARWIN_OS_TRUE='#'
15963   HAVE_DARWIN_OS_FALSE=
15964 fi
15965     $as_echo "#define HAVE_DARWIN_OS 1" >>confdefs.h
15966
15967 else
15968
15969
15970 if $FALSEPRG; then
15971   HAVE_DARWIN_OS_TRUE=
15972   HAVE_DARWIN_OS_FALSE='#'
15973 else
15974   HAVE_DARWIN_OS_TRUE='#'
15975   HAVE_DARWIN_OS_FALSE=
15976 fi
15977 fi
15978
15979
15980 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Operating System Distribution" >&5
15981 $as_echo_n "checking for Operating System Distribution... " >&6; }
15982 if test "x$DISTNAME" != "x"
15983 then
15984         echo "distname set to $DISTNAME"
15985 elif test $HAVE_UNAME=yes -a x`uname -s` = xOSF1
15986 then
15987         DISTNAME=alpha
15988 elif test $HAVE_UNAME=yes -a x`uname -s` = xAIX
15989 then
15990         DISTNAME=aix
15991 elif test $HAVE_UNAME=yes -a x`uname -s` = xHP-UX
15992 then
15993         DISTNAME=hpux
15994 elif test $HAVE_UNAME=yes -a x`uname -s` = xSunOS
15995 then
15996         DISTNAME=solaris
15997 elif test $HAVE_UNAME=yes -a x`uname -s` = xFreeBSD
15998 then
15999         DISTNAME=freebsd
16000 elif test $HAVE_UNAME=yes -a x`uname -s` = xNetBSD
16001 then
16002         DISTNAME=netbsd
16003 elif test $HAVE_UNAME=yes -a x`uname -s` = xOpenBSD
16004 then
16005         DISTNAME=openbsd
16006 elif test $HAVE_UNAME=yes -a x`uname -s` = xIRIX
16007 then
16008         DISTNAME=irix
16009 elif test $HAVE_UNAME=yes -a x`uname -s` = xBSD/OS
16010 then
16011         DISTNAME=bsdi
16012 elif test -f /etc/SuSE-release
16013 then
16014         DISTNAME=suse
16015 elif test -d /etc/SuSEconfig
16016 then
16017         DISTNAME=suse5
16018 elif test -f /etc/mandrake-release
16019 then
16020         DISTNAME=mandrake
16021 elif test -f /etc/whitebox-release
16022 then
16023        DISTNAME=redhat
16024 elif test -f /etc/redhat-release
16025 then
16026         DISTNAME=redhat
16027 elif test -f /etc/gentoo-release
16028 then
16029         DISTNAME=gentoo
16030 elif test -f /etc/debian_version
16031 then
16032         DISTNAME=debian
16033 elif test -f /etc/slackware-version
16034 then
16035         DISTNAME=slackware
16036 elif test x$host_vendor = xapple
16037 then
16038     DISTNAME=osx
16039 elif test $HAVE_UNAME=yes -a x`uname -s` = xDarwin
16040 then
16041     DISTNAME=darwin
16042 elif test -f /etc/engarde-version
16043 then
16044         DISTNAME=engarde
16045 elif test -f /etc/arch-release
16046 then
16047         DISTNAME=archlinux
16048 elif test "$CYGWIN" = yes
16049 then
16050         DISTNAME=cygwin
16051         $as_echo "#define HAVE_CYGWIN 1" >>confdefs.h
16052
16053 else
16054         DISTNAME=unknown
16055 fi
16056 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
16057 $as_echo "done" >&6; }
16058
16059
16060 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
16061 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
16062 set x ${MAKE-make}
16063 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
16064 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
16065   $as_echo_n "(cached) " >&6
16066 else
16067   cat >conftest.make <<\_ACEOF
16068 SHELL = /bin/sh
16069 all:
16070         @echo '@@@%%%=$(MAKE)=@@@%%%'
16071 _ACEOF
16072 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
16073 case `${MAKE-make} -f conftest.make 2>/dev/null` in
16074   *@@@%%%=?*=@@@%%%*)
16075     eval ac_cv_prog_make_${ac_make}_set=yes;;
16076   *)
16077     eval ac_cv_prog_make_${ac_make}_set=no;;
16078 esac
16079 rm -f conftest.make
16080 fi
16081 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
16082   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16083 $as_echo "yes" >&6; }
16084   SET_MAKE=
16085 else
16086   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16087 $as_echo "no" >&6; }
16088   SET_MAKE="MAKE=${MAKE-make}"
16089 fi
16090
16091
16092
16093         MKINSTALLDIRS=
16094   if test -n "$ac_aux_dir"; then
16095     case "$ac_aux_dir" in
16096       /*) MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs" ;;
16097       *) MKINSTALLDIRS="\$(top_builddir)/$ac_aux_dir/mkinstalldirs" ;;
16098     esac
16099   fi
16100   if test -z "$MKINSTALLDIRS"; then
16101     MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs"
16102   fi
16103
16104
16105
16106   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
16107 $as_echo_n "checking whether NLS is requested... " >&6; }
16108     # Check whether --enable-nls was given.
16109 if test "${enable_nls+set}" = set; then :
16110   enableval=$enable_nls; USE_NLS=$enableval
16111 else
16112   USE_NLS=yes
16113 fi
16114
16115   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
16116 $as_echo "$USE_NLS" >&6; }
16117
16118
16119
16120
16121
16122
16123 # Prepare PATH_SEPARATOR.
16124 # The user is always right.
16125 if test "${PATH_SEPARATOR+set}" != set; then
16126   echo "#! /bin/sh" >conf$$.sh
16127   echo  "exit 0"   >>conf$$.sh
16128   chmod +x conf$$.sh
16129   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
16130     PATH_SEPARATOR=';'
16131   else
16132     PATH_SEPARATOR=:
16133   fi
16134   rm -f conf$$.sh
16135 fi
16136
16137 # Find out how to test for executable files. Don't use a zero-byte file,
16138 # as systems may use methods other than mode bits to determine executability.
16139 cat >conf$$.file <<_ASEOF
16140 #! /bin/sh
16141 exit 0
16142 _ASEOF
16143 chmod +x conf$$.file
16144 if test -x conf$$.file >/dev/null 2>&1; then
16145   ac_executable_p="test -x"
16146 else
16147   ac_executable_p="test -f"
16148 fi
16149 rm -f conf$$.file
16150
16151 # Extract the first word of "msgfmt", so it can be a program name with args.
16152 set dummy msgfmt; ac_word=$2
16153 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16154 $as_echo_n "checking for $ac_word... " >&6; }
16155 if test "${ac_cv_path_MSGFMT+set}" = set; then :
16156   $as_echo_n "(cached) " >&6
16157 else
16158   case "$MSGFMT" in
16159   [\\/]* | ?:[\\/]*)
16160     ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
16161     ;;
16162   *)
16163     ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
16164     for ac_dir in $PATH; do
16165       IFS="$ac_save_IFS"
16166       test -z "$ac_dir" && ac_dir=.
16167       for ac_exec_ext in '' $ac_executable_extensions; do
16168         if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
16169           echo "$as_me: trying $ac_dir/$ac_word..." >&5
16170           if $ac_dir/$ac_word --statistics /dev/null >&5 2>&1 &&
16171      (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
16172             ac_cv_path_MSGFMT="$ac_dir/$ac_word$ac_exec_ext"
16173             break 2
16174           fi
16175         fi
16176       done
16177     done
16178     IFS="$ac_save_IFS"
16179   test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
16180     ;;
16181 esac
16182 fi
16183 MSGFMT="$ac_cv_path_MSGFMT"
16184 if test "$MSGFMT" != ":"; then
16185   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGFMT" >&5
16186 $as_echo "$MSGFMT" >&6; }
16187 else
16188   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16189 $as_echo "no" >&6; }
16190 fi
16191
16192   # Extract the first word of "gmsgfmt", so it can be a program name with args.
16193 set dummy gmsgfmt; ac_word=$2
16194 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16195 $as_echo_n "checking for $ac_word... " >&6; }
16196 if test "${ac_cv_path_GMSGFMT+set}" = set; then :
16197   $as_echo_n "(cached) " >&6
16198 else
16199   case $GMSGFMT in
16200   [\\/]* | ?:[\\/]*)
16201   ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
16202   ;;
16203   *)
16204   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16205 for as_dir in $PATH
16206 do
16207   IFS=$as_save_IFS
16208   test -z "$as_dir" && as_dir=.
16209     for ac_exec_ext in '' $ac_executable_extensions; do
16210   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
16211     ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
16212     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16213     break 2
16214   fi
16215 done
16216   done
16217 IFS=$as_save_IFS
16218
16219   test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
16220   ;;
16221 esac
16222 fi
16223 GMSGFMT=$ac_cv_path_GMSGFMT
16224 if test -n "$GMSGFMT"; then
16225   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GMSGFMT" >&5
16226 $as_echo "$GMSGFMT" >&6; }
16227 else
16228   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16229 $as_echo "no" >&6; }
16230 fi
16231
16232
16233
16234
16235 # Prepare PATH_SEPARATOR.
16236 # The user is always right.
16237 if test "${PATH_SEPARATOR+set}" != set; then
16238   echo "#! /bin/sh" >conf$$.sh
16239   echo  "exit 0"   >>conf$$.sh
16240   chmod +x conf$$.sh
16241   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
16242     PATH_SEPARATOR=';'
16243   else
16244     PATH_SEPARATOR=:
16245   fi
16246   rm -f conf$$.sh
16247 fi
16248
16249 # Find out how to test for executable files. Don't use a zero-byte file,
16250 # as systems may use methods other than mode bits to determine executability.
16251 cat >conf$$.file <<_ASEOF
16252 #! /bin/sh
16253 exit 0
16254 _ASEOF
16255 chmod +x conf$$.file
16256 if test -x conf$$.file >/dev/null 2>&1; then
16257   ac_executable_p="test -x"
16258 else
16259   ac_executable_p="test -f"
16260 fi
16261 rm -f conf$$.file
16262
16263 # Extract the first word of "xgettext", so it can be a program name with args.
16264 set dummy xgettext; ac_word=$2
16265 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16266 $as_echo_n "checking for $ac_word... " >&6; }
16267 if test "${ac_cv_path_XGETTEXT+set}" = set; then :
16268   $as_echo_n "(cached) " >&6
16269 else
16270   case "$XGETTEXT" in
16271   [\\/]* | ?:[\\/]*)
16272     ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
16273     ;;
16274   *)
16275     ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
16276     for ac_dir in $PATH; do
16277       IFS="$ac_save_IFS"
16278       test -z "$ac_dir" && ac_dir=.
16279       for ac_exec_ext in '' $ac_executable_extensions; do
16280         if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
16281           echo "$as_me: trying $ac_dir/$ac_word..." >&5
16282           if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >&5 2>&1 &&
16283      (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
16284             ac_cv_path_XGETTEXT="$ac_dir/$ac_word$ac_exec_ext"
16285             break 2
16286           fi
16287         fi
16288       done
16289     done
16290     IFS="$ac_save_IFS"
16291   test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
16292     ;;
16293 esac
16294 fi
16295 XGETTEXT="$ac_cv_path_XGETTEXT"
16296 if test "$XGETTEXT" != ":"; then
16297   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XGETTEXT" >&5
16298 $as_echo "$XGETTEXT" >&6; }
16299 else
16300   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16301 $as_echo "no" >&6; }
16302 fi
16303
16304     rm -f messages.po
16305
16306
16307 # Prepare PATH_SEPARATOR.
16308 # The user is always right.
16309 if test "${PATH_SEPARATOR+set}" != set; then
16310   echo "#! /bin/sh" >conf$$.sh
16311   echo  "exit 0"   >>conf$$.sh
16312   chmod +x conf$$.sh
16313   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
16314     PATH_SEPARATOR=';'
16315   else
16316     PATH_SEPARATOR=:
16317   fi
16318   rm -f conf$$.sh
16319 fi
16320
16321 # Find out how to test for executable files. Don't use a zero-byte file,
16322 # as systems may use methods other than mode bits to determine executability.
16323 cat >conf$$.file <<_ASEOF
16324 #! /bin/sh
16325 exit 0
16326 _ASEOF
16327 chmod +x conf$$.file
16328 if test -x conf$$.file >/dev/null 2>&1; then
16329   ac_executable_p="test -x"
16330 else
16331   ac_executable_p="test -f"
16332 fi
16333 rm -f conf$$.file
16334
16335 # Extract the first word of "msgmerge", so it can be a program name with args.
16336 set dummy msgmerge; ac_word=$2
16337 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16338 $as_echo_n "checking for $ac_word... " >&6; }
16339 if test "${ac_cv_path_MSGMERGE+set}" = set; then :
16340   $as_echo_n "(cached) " >&6
16341 else
16342   case "$MSGMERGE" in
16343   [\\/]* | ?:[\\/]*)
16344     ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path.
16345     ;;
16346   *)
16347     ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
16348     for ac_dir in $PATH; do
16349       IFS="$ac_save_IFS"
16350       test -z "$ac_dir" && ac_dir=.
16351       for ac_exec_ext in '' $ac_executable_extensions; do
16352         if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
16353           echo "$as_me: trying $ac_dir/$ac_word..." >&5
16354           if $ac_dir/$ac_word --update -q /dev/null /dev/null >&5 2>&1; then
16355             ac_cv_path_MSGMERGE="$ac_dir/$ac_word$ac_exec_ext"
16356             break 2
16357           fi
16358         fi
16359       done
16360     done
16361     IFS="$ac_save_IFS"
16362   test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":"
16363     ;;
16364 esac
16365 fi
16366 MSGMERGE="$ac_cv_path_MSGMERGE"
16367 if test "$MSGMERGE" != ":"; then
16368   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGMERGE" >&5
16369 $as_echo "$MSGMERGE" >&6; }
16370 else
16371   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16372 $as_echo "no" >&6; }
16373 fi
16374
16375
16376       if test "$GMSGFMT" != ":"; then
16377             if $GMSGFMT --statistics /dev/null >/dev/null 2>&1 &&
16378        (if $GMSGFMT --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
16379       : ;
16380     else
16381       GMSGFMT=`echo "$GMSGFMT" | sed -e 's,^.*/,,'`
16382       { $as_echo "$as_me:${as_lineno-$LINENO}: result: found $GMSGFMT program is not GNU msgfmt; ignore it" >&5
16383 $as_echo "found $GMSGFMT program is not GNU msgfmt; ignore it" >&6; }
16384       GMSGFMT=":"
16385     fi
16386   fi
16387
16388       if test "$XGETTEXT" != ":"; then
16389             if $XGETTEXT --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 &&
16390        (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
16391       : ;
16392     else
16393       { $as_echo "$as_me:${as_lineno-$LINENO}: result: found xgettext program is not GNU xgettext; ignore it" >&5
16394 $as_echo "found xgettext program is not GNU xgettext; ignore it" >&6; }
16395       XGETTEXT=":"
16396     fi
16397         rm -f messages.po
16398   fi
16399
16400   ac_config_commands="$ac_config_commands default-1"
16401
16402
16403
16404       if test "X$prefix" = "XNONE"; then
16405     acl_final_prefix="$ac_default_prefix"
16406   else
16407     acl_final_prefix="$prefix"
16408   fi
16409   if test "X$exec_prefix" = "XNONE"; then
16410     acl_final_exec_prefix='${prefix}'
16411   else
16412     acl_final_exec_prefix="$exec_prefix"
16413   fi
16414   acl_save_prefix="$prefix"
16415   prefix="$acl_final_prefix"
16416   eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
16417   prefix="$acl_save_prefix"
16418
16419
16420 # Check whether --with-gnu-ld was given.
16421 if test "${with_gnu_ld+set}" = set; then :
16422   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
16423 else
16424   with_gnu_ld=no
16425 fi
16426
16427 # Prepare PATH_SEPARATOR.
16428 # The user is always right.
16429 if test "${PATH_SEPARATOR+set}" != set; then
16430   echo "#! /bin/sh" >conf$$.sh
16431   echo  "exit 0"   >>conf$$.sh
16432   chmod +x conf$$.sh
16433   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
16434     PATH_SEPARATOR=';'
16435   else
16436     PATH_SEPARATOR=:
16437   fi
16438   rm -f conf$$.sh
16439 fi
16440 ac_prog=ld
16441 if test "$GCC" = yes; then
16442   # Check if gcc -print-prog-name=ld gives a path.
16443   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by GCC" >&5
16444 $as_echo_n "checking for ld used by GCC... " >&6; }
16445   case $host in
16446   *-*-mingw*)
16447     # gcc leaves a trailing carriage return which upsets mingw
16448     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
16449   *)
16450     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
16451   esac
16452   case $ac_prog in
16453     # Accept absolute paths.
16454     [\\/]* | [A-Za-z]:[\\/]*)
16455       re_direlt='/[^/][^/]*/\.\./'
16456       # Canonicalize the path of ld
16457       ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
16458       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
16459         ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
16460       done
16461       test -z "$LD" && LD="$ac_prog"
16462       ;;
16463   "")
16464     # If it fails, then pretend we aren't using GCC.
16465     ac_prog=ld
16466     ;;
16467   *)
16468     # If it is relative, then search for the first ld in PATH.
16469     with_gnu_ld=unknown
16470     ;;
16471   esac
16472 elif test "$with_gnu_ld" = yes; then
16473   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
16474 $as_echo_n "checking for GNU ld... " >&6; }
16475 else
16476   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
16477 $as_echo_n "checking for non-GNU ld... " >&6; }
16478 fi
16479 if test "${acl_cv_path_LD+set}" = set; then :
16480   $as_echo_n "(cached) " >&6
16481 else
16482   if test -z "$LD"; then
16483   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
16484   for ac_dir in $PATH; do
16485     test -z "$ac_dir" && ac_dir=.
16486     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
16487       acl_cv_path_LD="$ac_dir/$ac_prog"
16488       # Check to see if the program is GNU ld.  I'd rather use --version,
16489       # but apparently some GNU ld's only accept -v.
16490       # Break only if it was the GNU/non-GNU ld that we prefer.
16491       case `"$acl_cv_path_LD" -v 2>&1 < /dev/null` in
16492       *GNU* | *'with BFD'*)
16493         test "$with_gnu_ld" != no && break ;;
16494       *)
16495         test "$with_gnu_ld" != yes && break ;;
16496       esac
16497     fi
16498   done
16499   IFS="$ac_save_ifs"
16500 else
16501   acl_cv_path_LD="$LD" # Let the user override the test with a path.
16502 fi
16503 fi
16504
16505 LD="$acl_cv_path_LD"
16506 if test -n "$LD"; then
16507   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
16508 $as_echo "$LD" >&6; }
16509 else
16510   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16511 $as_echo "no" >&6; }
16512 fi
16513 test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
16514 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
16515 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
16516 if test "${acl_cv_prog_gnu_ld+set}" = set; then :
16517   $as_echo_n "(cached) " >&6
16518 else
16519   # I'd rather use --version here, but apparently some GNU ld's only accept -v.
16520 case `$LD -v 2>&1 </dev/null` in
16521 *GNU* | *'with BFD'*)
16522   acl_cv_prog_gnu_ld=yes ;;
16523 *)
16524   acl_cv_prog_gnu_ld=no ;;
16525 esac
16526 fi
16527 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_prog_gnu_ld" >&5
16528 $as_echo "$acl_cv_prog_gnu_ld" >&6; }
16529 with_gnu_ld=$acl_cv_prog_gnu_ld
16530
16531
16532
16533
16534                                                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shared library run path origin" >&5
16535 $as_echo_n "checking for shared library run path origin... " >&6; }
16536 if test "${acl_cv_rpath+set}" = set; then :
16537   $as_echo_n "(cached) " >&6
16538 else
16539
16540     CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
16541     ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
16542     . ./conftest.sh
16543     rm -f ./conftest.sh
16544     acl_cv_rpath=done
16545
16546 fi
16547 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_rpath" >&5
16548 $as_echo "$acl_cv_rpath" >&6; }
16549   wl="$acl_cv_wl"
16550   libext="$acl_cv_libext"
16551   shlibext="$acl_cv_shlibext"
16552   hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
16553   hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
16554   hardcode_direct="$acl_cv_hardcode_direct"
16555   hardcode_minus_L="$acl_cv_hardcode_minus_L"
16556     # Check whether --enable-rpath was given.
16557 if test "${enable_rpath+set}" = set; then :
16558   enableval=$enable_rpath; :
16559 else
16560   enable_rpath=yes
16561 fi
16562
16563
16564
16565
16566
16567
16568
16569
16570     use_additional=yes
16571
16572   acl_save_prefix="$prefix"
16573   prefix="$acl_final_prefix"
16574   acl_save_exec_prefix="$exec_prefix"
16575   exec_prefix="$acl_final_exec_prefix"
16576
16577     eval additional_includedir=\"$includedir\"
16578     eval additional_libdir=\"$libdir\"
16579
16580   exec_prefix="$acl_save_exec_prefix"
16581   prefix="$acl_save_prefix"
16582
16583
16584 # Check whether --with-libiconv-prefix was given.
16585 if test "${with_libiconv_prefix+set}" = set; then :
16586   withval=$with_libiconv_prefix;
16587     if test "X$withval" = "Xno"; then
16588       use_additional=no
16589     else
16590       if test "X$withval" = "X"; then
16591
16592   acl_save_prefix="$prefix"
16593   prefix="$acl_final_prefix"
16594   acl_save_exec_prefix="$exec_prefix"
16595   exec_prefix="$acl_final_exec_prefix"
16596
16597           eval additional_includedir=\"$includedir\"
16598           eval additional_libdir=\"$libdir\"
16599
16600   exec_prefix="$acl_save_exec_prefix"
16601   prefix="$acl_save_prefix"
16602
16603       else
16604         additional_includedir="$withval/include"
16605         additional_libdir="$withval/lib"
16606       fi
16607     fi
16608
16609 fi
16610
16611       LIBICONV=
16612   LTLIBICONV=
16613   INCICONV=
16614   rpathdirs=
16615   ltrpathdirs=
16616   names_already_handled=
16617   names_next_round='iconv '
16618   while test -n "$names_next_round"; do
16619     names_this_round="$names_next_round"
16620     names_next_round=
16621     for name in $names_this_round; do
16622       already_handled=
16623       for n in $names_already_handled; do
16624         if test "$n" = "$name"; then
16625           already_handled=yes
16626           break
16627         fi
16628       done
16629       if test -z "$already_handled"; then
16630         names_already_handled="$names_already_handled $name"
16631                         uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
16632         eval value=\"\$HAVE_LIB$uppername\"
16633         if test -n "$value"; then
16634           if test "$value" = yes; then
16635             eval value=\"\$LIB$uppername\"
16636             test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
16637             eval value=\"\$LTLIB$uppername\"
16638             test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
16639           else
16640                                     :
16641           fi
16642         else
16643                               found_dir=
16644           found_la=
16645           found_so=
16646           found_a=
16647           if test $use_additional = yes; then
16648             if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
16649               found_dir="$additional_libdir"
16650               found_so="$additional_libdir/lib$name.$shlibext"
16651               if test -f "$additional_libdir/lib$name.la"; then
16652                 found_la="$additional_libdir/lib$name.la"
16653               fi
16654             else
16655               if test -f "$additional_libdir/lib$name.$libext"; then
16656                 found_dir="$additional_libdir"
16657                 found_a="$additional_libdir/lib$name.$libext"
16658                 if test -f "$additional_libdir/lib$name.la"; then
16659                   found_la="$additional_libdir/lib$name.la"
16660                 fi
16661               fi
16662             fi
16663           fi
16664           if test "X$found_dir" = "X"; then
16665             for x in $LDFLAGS $LTLIBICONV; do
16666
16667   acl_save_prefix="$prefix"
16668   prefix="$acl_final_prefix"
16669   acl_save_exec_prefix="$exec_prefix"
16670   exec_prefix="$acl_final_exec_prefix"
16671   eval x=\"$x\"
16672   exec_prefix="$acl_save_exec_prefix"
16673   prefix="$acl_save_prefix"
16674
16675               case "$x" in
16676                 -L*)
16677                   dir=`echo "X$x" | sed -e 's/^X-L//'`
16678                   if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
16679                     found_dir="$dir"
16680                     found_so="$dir/lib$name.$shlibext"
16681                     if test -f "$dir/lib$name.la"; then
16682                       found_la="$dir/lib$name.la"
16683                     fi
16684                   else
16685                     if test -f "$dir/lib$name.$libext"; then
16686                       found_dir="$dir"
16687                       found_a="$dir/lib$name.$libext"
16688                       if test -f "$dir/lib$name.la"; then
16689                         found_la="$dir/lib$name.la"
16690                       fi
16691                     fi
16692                   fi
16693                   ;;
16694               esac
16695               if test "X$found_dir" != "X"; then
16696                 break
16697               fi
16698             done
16699           fi
16700           if test "X$found_dir" != "X"; then
16701                         LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
16702             if test "X$found_so" != "X"; then
16703                                                         if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
16704                                 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
16705               else
16706                                                                                 haveit=
16707                 for x in $ltrpathdirs; do
16708                   if test "X$x" = "X$found_dir"; then
16709                     haveit=yes
16710                     break
16711                   fi
16712                 done
16713                 if test -z "$haveit"; then
16714                   ltrpathdirs="$ltrpathdirs $found_dir"
16715                 fi
16716                                 if test "$hardcode_direct" = yes; then
16717                                                       LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
16718                 else
16719                   if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
16720                                                             LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
16721                                                             haveit=
16722                     for x in $rpathdirs; do
16723                       if test "X$x" = "X$found_dir"; then
16724                         haveit=yes
16725                         break
16726                       fi
16727                     done
16728                     if test -z "$haveit"; then
16729                       rpathdirs="$rpathdirs $found_dir"
16730                     fi
16731                   else
16732                                                                                 haveit=
16733                     for x in $LDFLAGS $LIBICONV; do
16734
16735   acl_save_prefix="$prefix"
16736   prefix="$acl_final_prefix"
16737   acl_save_exec_prefix="$exec_prefix"
16738   exec_prefix="$acl_final_exec_prefix"
16739   eval x=\"$x\"
16740   exec_prefix="$acl_save_exec_prefix"
16741   prefix="$acl_save_prefix"
16742
16743                       if test "X$x" = "X-L$found_dir"; then
16744                         haveit=yes
16745                         break
16746                       fi
16747                     done
16748                     if test -z "$haveit"; then
16749                       LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
16750                     fi
16751                     if test "$hardcode_minus_L" != no; then
16752                                                                                         LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
16753                     else
16754                                                                                                                                                                                 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
16755                     fi
16756                   fi
16757                 fi
16758               fi
16759             else
16760               if test "X$found_a" != "X"; then
16761                                 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
16762               else
16763                                                 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
16764               fi
16765             fi
16766                         additional_includedir=
16767             case "$found_dir" in
16768               */lib | */lib/)
16769                 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
16770                 additional_includedir="$basedir/include"
16771                 ;;
16772             esac
16773             if test "X$additional_includedir" != "X"; then
16774                                                                                                                 if test "X$additional_includedir" != "X/usr/include"; then
16775                 haveit=
16776                 if test "X$additional_includedir" = "X/usr/local/include"; then
16777                   if test -n "$GCC"; then
16778                     case $host_os in
16779                       linux* | gnu* | k*bsd*-gnu) haveit=yes;;
16780                     esac
16781                   fi
16782                 fi
16783                 if test -z "$haveit"; then
16784                   for x in $CPPFLAGS $INCICONV; do
16785
16786   acl_save_prefix="$prefix"
16787   prefix="$acl_final_prefix"
16788   acl_save_exec_prefix="$exec_prefix"
16789   exec_prefix="$acl_final_exec_prefix"
16790   eval x=\"$x\"
16791   exec_prefix="$acl_save_exec_prefix"
16792   prefix="$acl_save_prefix"
16793
16794                     if test "X$x" = "X-I$additional_includedir"; then
16795                       haveit=yes
16796                       break
16797                     fi
16798                   done
16799                   if test -z "$haveit"; then
16800                     if test -d "$additional_includedir"; then
16801                                             INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
16802                     fi
16803                   fi
16804                 fi
16805               fi
16806             fi
16807                         if test -n "$found_la"; then
16808                                                         save_libdir="$libdir"
16809               case "$found_la" in
16810                 */* | *\\*) . "$found_la" ;;
16811                 *) . "./$found_la" ;;
16812               esac
16813               libdir="$save_libdir"
16814                             for dep in $dependency_libs; do
16815                 case "$dep" in
16816                   -L*)
16817                     additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
16818                                                                                                                                                                 if test "X$additional_libdir" != "X/usr/lib"; then
16819                       haveit=
16820                       if test "X$additional_libdir" = "X/usr/local/lib"; then
16821                         if test -n "$GCC"; then
16822                           case $host_os in
16823                             linux* | gnu* | k*bsd*-gnu) haveit=yes;;
16824                           esac
16825                         fi
16826                       fi
16827                       if test -z "$haveit"; then
16828                         haveit=
16829                         for x in $LDFLAGS $LIBICONV; do
16830
16831   acl_save_prefix="$prefix"
16832   prefix="$acl_final_prefix"
16833   acl_save_exec_prefix="$exec_prefix"
16834   exec_prefix="$acl_final_exec_prefix"
16835   eval x=\"$x\"
16836   exec_prefix="$acl_save_exec_prefix"
16837   prefix="$acl_save_prefix"
16838
16839                           if test "X$x" = "X-L$additional_libdir"; then
16840                             haveit=yes
16841                             break
16842                           fi
16843                         done
16844                         if test -z "$haveit"; then
16845                           if test -d "$additional_libdir"; then
16846                                                         LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
16847                           fi
16848                         fi
16849                         haveit=
16850                         for x in $LDFLAGS $LTLIBICONV; do
16851
16852   acl_save_prefix="$prefix"
16853   prefix="$acl_final_prefix"
16854   acl_save_exec_prefix="$exec_prefix"
16855   exec_prefix="$acl_final_exec_prefix"
16856   eval x=\"$x\"
16857   exec_prefix="$acl_save_exec_prefix"
16858   prefix="$acl_save_prefix"
16859
16860                           if test "X$x" = "X-L$additional_libdir"; then
16861                             haveit=yes
16862                             break
16863                           fi
16864                         done
16865                         if test -z "$haveit"; then
16866                           if test -d "$additional_libdir"; then
16867                                                         LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
16868                           fi
16869                         fi
16870                       fi
16871                     fi
16872                     ;;
16873                   -R*)
16874                     dir=`echo "X$dep" | sed -e 's/^X-R//'`
16875                     if test "$enable_rpath" != no; then
16876                                                                   haveit=
16877                       for x in $rpathdirs; do
16878                         if test "X$x" = "X$dir"; then
16879                           haveit=yes
16880                           break
16881                         fi
16882                       done
16883                       if test -z "$haveit"; then
16884                         rpathdirs="$rpathdirs $dir"
16885                       fi
16886                                                                   haveit=
16887                       for x in $ltrpathdirs; do
16888                         if test "X$x" = "X$dir"; then
16889                           haveit=yes
16890                           break
16891                         fi
16892                       done
16893                       if test -z "$haveit"; then
16894                         ltrpathdirs="$ltrpathdirs $dir"
16895                       fi
16896                     fi
16897                     ;;
16898                   -l*)
16899                                         names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
16900                     ;;
16901                   *.la)
16902                                                                                 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
16903                     ;;
16904                   *)
16905                                         LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
16906                     LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
16907                     ;;
16908                 esac
16909               done
16910             fi
16911           else
16912                                                             LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
16913             LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
16914           fi
16915         fi
16916       fi
16917     done
16918   done
16919   if test "X$rpathdirs" != "X"; then
16920     if test -n "$hardcode_libdir_separator"; then
16921                         alldirs=
16922       for found_dir in $rpathdirs; do
16923         alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
16924       done
16925             acl_save_libdir="$libdir"
16926       libdir="$alldirs"
16927       eval flag=\"$hardcode_libdir_flag_spec\"
16928       libdir="$acl_save_libdir"
16929       LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
16930     else
16931             for found_dir in $rpathdirs; do
16932         acl_save_libdir="$libdir"
16933         libdir="$found_dir"
16934         eval flag=\"$hardcode_libdir_flag_spec\"
16935         libdir="$acl_save_libdir"
16936         LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
16937       done
16938     fi
16939   fi
16940   if test "X$ltrpathdirs" != "X"; then
16941             for found_dir in $ltrpathdirs; do
16942       LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
16943     done
16944   fi
16945
16946
16947
16948
16949
16950
16951
16952
16953
16954
16955
16956
16957
16958
16959
16960
16961
16962
16963     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFPreferencesCopyAppValue" >&5
16964 $as_echo_n "checking for CFPreferencesCopyAppValue... " >&6; }
16965 if test "${gt_cv_func_CFPreferencesCopyAppValue+set}" = set; then :
16966   $as_echo_n "(cached) " >&6
16967 else
16968   gt_save_CPPFLAGS="$CPPFLAGS"
16969      CPPFLAGS="$CPPFLAGS -I/System/Library/Frameworks/CoreFoundation.framework/Headers"
16970      gt_save_LIBS="$LIBS"
16971      LIBS="$LIBS -framework CoreFoundation"
16972      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16973 /* end confdefs.h.  */
16974 #include <CFPreferences.h>
16975 int
16976 main ()
16977 {
16978 CFPreferencesCopyAppValue(NULL, NULL)
16979   ;
16980   return 0;
16981 }
16982 _ACEOF
16983 if ac_fn_c_try_link "$LINENO"; then :
16984   gt_cv_func_CFPreferencesCopyAppValue=yes
16985 else
16986   gt_cv_func_CFPreferencesCopyAppValue=no
16987 fi
16988 rm -f core conftest.err conftest.$ac_objext \
16989     conftest$ac_exeext conftest.$ac_ext
16990      CPPFLAGS="$gt_save_CPPFLAGS"
16991      LIBS="$gt_save_LIBS"
16992 fi
16993 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFPreferencesCopyAppValue" >&5
16994 $as_echo "$gt_cv_func_CFPreferencesCopyAppValue" >&6; }
16995   if test $gt_cv_func_CFPreferencesCopyAppValue = yes; then
16996
16997 $as_echo "#define HAVE_CFPREFERENCESCOPYAPPVALUE 1" >>confdefs.h
16998
16999   fi
17000     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFLocaleCopyCurrent" >&5
17001 $as_echo_n "checking for CFLocaleCopyCurrent... " >&6; }
17002 if test "${gt_cv_func_CFLocaleCopyCurrent+set}" = set; then :
17003   $as_echo_n "(cached) " >&6
17004 else
17005   gt_save_CPPFLAGS="$CPPFLAGS"
17006      CPPFLAGS="$CPPFLAGS -I/System/Library/Frameworks/CoreFoundation.framework/Headers"
17007      gt_save_LIBS="$LIBS"
17008      LIBS="$LIBS -framework CoreFoundation"
17009      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17010 /* end confdefs.h.  */
17011 #include <CFLocale.h>
17012 int
17013 main ()
17014 {
17015 CFLocaleCopyCurrent();
17016   ;
17017   return 0;
17018 }
17019 _ACEOF
17020 if ac_fn_c_try_link "$LINENO"; then :
17021   gt_cv_func_CFLocaleCopyCurrent=yes
17022 else
17023   gt_cv_func_CFLocaleCopyCurrent=no
17024 fi
17025 rm -f core conftest.err conftest.$ac_objext \
17026     conftest$ac_exeext conftest.$ac_ext
17027      CPPFLAGS="$gt_save_CPPFLAGS"
17028      LIBS="$gt_save_LIBS"
17029 fi
17030 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFLocaleCopyCurrent" >&5
17031 $as_echo "$gt_cv_func_CFLocaleCopyCurrent" >&6; }
17032   if test $gt_cv_func_CFLocaleCopyCurrent = yes; then
17033
17034 $as_echo "#define HAVE_CFLOCALECOPYCURRENT 1" >>confdefs.h
17035
17036   fi
17037   INTL_MACOSX_LIBS=
17038   if test $gt_cv_func_CFPreferencesCopyAppValue = yes || test $gt_cv_func_CFLocaleCopyCurrent = yes; then
17039     INTL_MACOSX_LIBS="-Wl,-framework -Wl,CoreFoundation"
17040   fi
17041
17042
17043
17044
17045   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
17046 $as_echo_n "checking whether NLS is requested... " >&6; }
17047     # Check whether --enable-nls was given.
17048 if test "${enable_nls+set}" = set; then :
17049   enableval=$enable_nls; USE_NLS=$enableval
17050 else
17051   USE_NLS=yes
17052 fi
17053
17054   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
17055 $as_echo "$USE_NLS" >&6; }
17056
17057
17058
17059
17060   LIBINTL=
17061   LTLIBINTL=
17062   POSUB=
17063
17064     if test "$USE_NLS" = "yes"; then
17065     gt_use_preinstalled_gnugettext=no
17066
17067
17068
17069
17070
17071
17072         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libc" >&5
17073 $as_echo_n "checking for GNU gettext in libc... " >&6; }
17074 if test "${gt_cv_func_gnugettext1_libc+set}" = set; then :
17075   $as_echo_n "(cached) " >&6
17076 else
17077   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17078 /* end confdefs.h.  */
17079 #include <libintl.h>
17080 extern int _nl_msg_cat_cntr;
17081 extern int *_nl_domain_bindings;
17082 int
17083 main ()
17084 {
17085 bindtextdomain ("", "");
17086 return * gettext ("") + _nl_msg_cat_cntr + *_nl_domain_bindings
17087   ;
17088   return 0;
17089 }
17090 _ACEOF
17091 if ac_fn_c_try_link "$LINENO"; then :
17092   gt_cv_func_gnugettext1_libc=yes
17093 else
17094   gt_cv_func_gnugettext1_libc=no
17095 fi
17096 rm -f core conftest.err conftest.$ac_objext \
17097     conftest$ac_exeext conftest.$ac_ext
17098 fi
17099 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_gnugettext1_libc" >&5
17100 $as_echo "$gt_cv_func_gnugettext1_libc" >&6; }
17101
17102         if test "$gt_cv_func_gnugettext1_libc" != "yes"; then
17103
17104
17105
17106
17107
17108           am_save_CPPFLAGS="$CPPFLAGS"
17109
17110   for element in $INCICONV; do
17111     haveit=
17112     for x in $CPPFLAGS; do
17113
17114   acl_save_prefix="$prefix"
17115   prefix="$acl_final_prefix"
17116   acl_save_exec_prefix="$exec_prefix"
17117   exec_prefix="$acl_final_exec_prefix"
17118   eval x=\"$x\"
17119   exec_prefix="$acl_save_exec_prefix"
17120   prefix="$acl_save_prefix"
17121
17122       if test "X$x" = "X$element"; then
17123         haveit=yes
17124         break
17125       fi
17126     done
17127     if test -z "$haveit"; then
17128       CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
17129     fi
17130   done
17131
17132
17133   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5
17134 $as_echo_n "checking for iconv... " >&6; }
17135 if test "${am_cv_func_iconv+set}" = set; then :
17136   $as_echo_n "(cached) " >&6
17137 else
17138
17139     am_cv_func_iconv="no, consider installing GNU libiconv"
17140     am_cv_lib_iconv=no
17141     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17142 /* end confdefs.h.  */
17143 #include <stdlib.h>
17144 #include <iconv.h>
17145 int
17146 main ()
17147 {
17148 iconv_t cd = iconv_open("","");
17149        iconv(cd,NULL,NULL,NULL,NULL);
17150        iconv_close(cd);
17151   ;
17152   return 0;
17153 }
17154 _ACEOF
17155 if ac_fn_c_try_link "$LINENO"; then :
17156   am_cv_func_iconv=yes
17157 fi
17158 rm -f core conftest.err conftest.$ac_objext \
17159     conftest$ac_exeext conftest.$ac_ext
17160     if test "$am_cv_func_iconv" != yes; then
17161       am_save_LIBS="$LIBS"
17162       LIBS="$LIBS $LIBICONV"
17163       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17164 /* end confdefs.h.  */
17165 #include <stdlib.h>
17166 #include <iconv.h>
17167 int
17168 main ()
17169 {
17170 iconv_t cd = iconv_open("","");
17171          iconv(cd,NULL,NULL,NULL,NULL);
17172          iconv_close(cd);
17173   ;
17174   return 0;
17175 }
17176 _ACEOF
17177 if ac_fn_c_try_link "$LINENO"; then :
17178   am_cv_lib_iconv=yes
17179         am_cv_func_iconv=yes
17180 fi
17181 rm -f core conftest.err conftest.$ac_objext \
17182     conftest$ac_exeext conftest.$ac_ext
17183       LIBS="$am_save_LIBS"
17184     fi
17185
17186 fi
17187 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5
17188 $as_echo "$am_cv_func_iconv" >&6; }
17189   if test "$am_cv_func_iconv" = yes; then
17190
17191 $as_echo "#define HAVE_ICONV 1" >>confdefs.h
17192
17193   fi
17194   if test "$am_cv_lib_iconv" = yes; then
17195     { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libiconv" >&5
17196 $as_echo_n "checking how to link with libiconv... " >&6; }
17197     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBICONV" >&5
17198 $as_echo "$LIBICONV" >&6; }
17199   else
17200             CPPFLAGS="$am_save_CPPFLAGS"
17201     LIBICONV=
17202     LTLIBICONV=
17203   fi
17204
17205
17206
17207
17208
17209
17210     use_additional=yes
17211
17212   acl_save_prefix="$prefix"
17213   prefix="$acl_final_prefix"
17214   acl_save_exec_prefix="$exec_prefix"
17215   exec_prefix="$acl_final_exec_prefix"
17216
17217     eval additional_includedir=\"$includedir\"
17218     eval additional_libdir=\"$libdir\"
17219
17220   exec_prefix="$acl_save_exec_prefix"
17221   prefix="$acl_save_prefix"
17222
17223
17224 # Check whether --with-libintl-prefix was given.
17225 if test "${with_libintl_prefix+set}" = set; then :
17226   withval=$with_libintl_prefix;
17227     if test "X$withval" = "Xno"; then
17228       use_additional=no
17229     else
17230       if test "X$withval" = "X"; then
17231
17232   acl_save_prefix="$prefix"
17233   prefix="$acl_final_prefix"
17234   acl_save_exec_prefix="$exec_prefix"
17235   exec_prefix="$acl_final_exec_prefix"
17236
17237           eval additional_includedir=\"$includedir\"
17238           eval additional_libdir=\"$libdir\"
17239
17240   exec_prefix="$acl_save_exec_prefix"
17241   prefix="$acl_save_prefix"
17242
17243       else
17244         additional_includedir="$withval/include"
17245         additional_libdir="$withval/lib"
17246       fi
17247     fi
17248
17249 fi
17250
17251       LIBINTL=
17252   LTLIBINTL=
17253   INCINTL=
17254   rpathdirs=
17255   ltrpathdirs=
17256   names_already_handled=
17257   names_next_round='intl '
17258   while test -n "$names_next_round"; do
17259     names_this_round="$names_next_round"
17260     names_next_round=
17261     for name in $names_this_round; do
17262       already_handled=
17263       for n in $names_already_handled; do
17264         if test "$n" = "$name"; then
17265           already_handled=yes
17266           break
17267         fi
17268       done
17269       if test -z "$already_handled"; then
17270         names_already_handled="$names_already_handled $name"
17271                         uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
17272         eval value=\"\$HAVE_LIB$uppername\"
17273         if test -n "$value"; then
17274           if test "$value" = yes; then
17275             eval value=\"\$LIB$uppername\"
17276             test -z "$value" || LIBINTL="${LIBINTL}${LIBINTL:+ }$value"
17277             eval value=\"\$LTLIB$uppername\"
17278             test -z "$value" || LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$value"
17279           else
17280                                     :
17281           fi
17282         else
17283                               found_dir=
17284           found_la=
17285           found_so=
17286           found_a=
17287           if test $use_additional = yes; then
17288             if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
17289               found_dir="$additional_libdir"
17290               found_so="$additional_libdir/lib$name.$shlibext"
17291               if test -f "$additional_libdir/lib$name.la"; then
17292                 found_la="$additional_libdir/lib$name.la"
17293               fi
17294             else
17295               if test -f "$additional_libdir/lib$name.$libext"; then
17296                 found_dir="$additional_libdir"
17297                 found_a="$additional_libdir/lib$name.$libext"
17298                 if test -f "$additional_libdir/lib$name.la"; then
17299                   found_la="$additional_libdir/lib$name.la"
17300                 fi
17301               fi
17302             fi
17303           fi
17304           if test "X$found_dir" = "X"; then
17305             for x in $LDFLAGS $LTLIBINTL; do
17306
17307   acl_save_prefix="$prefix"
17308   prefix="$acl_final_prefix"
17309   acl_save_exec_prefix="$exec_prefix"
17310   exec_prefix="$acl_final_exec_prefix"
17311   eval x=\"$x\"
17312   exec_prefix="$acl_save_exec_prefix"
17313   prefix="$acl_save_prefix"
17314
17315               case "$x" in
17316                 -L*)
17317                   dir=`echo "X$x" | sed -e 's/^X-L//'`
17318                   if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
17319                     found_dir="$dir"
17320                     found_so="$dir/lib$name.$shlibext"
17321                     if test -f "$dir/lib$name.la"; then
17322                       found_la="$dir/lib$name.la"
17323                     fi
17324                   else
17325                     if test -f "$dir/lib$name.$libext"; then
17326                       found_dir="$dir"
17327                       found_a="$dir/lib$name.$libext"
17328                       if test -f "$dir/lib$name.la"; then
17329                         found_la="$dir/lib$name.la"
17330                       fi
17331                     fi
17332                   fi
17333                   ;;
17334               esac
17335               if test "X$found_dir" != "X"; then
17336                 break
17337               fi
17338             done
17339           fi
17340           if test "X$found_dir" != "X"; then
17341                         LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$found_dir -l$name"
17342             if test "X$found_so" != "X"; then
17343                                                         if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
17344                                 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
17345               else
17346                                                                                 haveit=
17347                 for x in $ltrpathdirs; do
17348                   if test "X$x" = "X$found_dir"; then
17349                     haveit=yes
17350                     break
17351                   fi
17352                 done
17353                 if test -z "$haveit"; then
17354                   ltrpathdirs="$ltrpathdirs $found_dir"
17355                 fi
17356                                 if test "$hardcode_direct" = yes; then
17357                                                       LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
17358                 else
17359                   if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
17360                                                             LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
17361                                                             haveit=
17362                     for x in $rpathdirs; do
17363                       if test "X$x" = "X$found_dir"; then
17364                         haveit=yes
17365                         break
17366                       fi
17367                     done
17368                     if test -z "$haveit"; then
17369                       rpathdirs="$rpathdirs $found_dir"
17370                     fi
17371                   else
17372                                                                                 haveit=
17373                     for x in $LDFLAGS $LIBINTL; do
17374
17375   acl_save_prefix="$prefix"
17376   prefix="$acl_final_prefix"
17377   acl_save_exec_prefix="$exec_prefix"
17378   exec_prefix="$acl_final_exec_prefix"
17379   eval x=\"$x\"
17380   exec_prefix="$acl_save_exec_prefix"
17381   prefix="$acl_save_prefix"
17382
17383                       if test "X$x" = "X-L$found_dir"; then
17384                         haveit=yes
17385                         break
17386                       fi
17387                     done
17388                     if test -z "$haveit"; then
17389                       LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir"
17390                     fi
17391                     if test "$hardcode_minus_L" != no; then
17392                                                                                         LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
17393                     else
17394                                                                                                                                                                                 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
17395                     fi
17396                   fi
17397                 fi
17398               fi
17399             else
17400               if test "X$found_a" != "X"; then
17401                                 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_a"
17402               else
17403                                                 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir -l$name"
17404               fi
17405             fi
17406                         additional_includedir=
17407             case "$found_dir" in
17408               */lib | */lib/)
17409                 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
17410                 additional_includedir="$basedir/include"
17411                 ;;
17412             esac
17413             if test "X$additional_includedir" != "X"; then
17414                                                                                                                 if test "X$additional_includedir" != "X/usr/include"; then
17415                 haveit=
17416                 if test "X$additional_includedir" = "X/usr/local/include"; then
17417                   if test -n "$GCC"; then
17418                     case $host_os in
17419                       linux* | gnu* | k*bsd*-gnu) haveit=yes;;
17420                     esac
17421                   fi
17422                 fi
17423                 if test -z "$haveit"; then
17424                   for x in $CPPFLAGS $INCINTL; do
17425
17426   acl_save_prefix="$prefix"
17427   prefix="$acl_final_prefix"
17428   acl_save_exec_prefix="$exec_prefix"
17429   exec_prefix="$acl_final_exec_prefix"
17430   eval x=\"$x\"
17431   exec_prefix="$acl_save_exec_prefix"
17432   prefix="$acl_save_prefix"
17433
17434                     if test "X$x" = "X-I$additional_includedir"; then
17435                       haveit=yes
17436                       break
17437                     fi
17438                   done
17439                   if test -z "$haveit"; then
17440                     if test -d "$additional_includedir"; then
17441                                             INCINTL="${INCINTL}${INCINTL:+ }-I$additional_includedir"
17442                     fi
17443                   fi
17444                 fi
17445               fi
17446             fi
17447                         if test -n "$found_la"; then
17448                                                         save_libdir="$libdir"
17449               case "$found_la" in
17450                 */* | *\\*) . "$found_la" ;;
17451                 *) . "./$found_la" ;;
17452               esac
17453               libdir="$save_libdir"
17454                             for dep in $dependency_libs; do
17455                 case "$dep" in
17456                   -L*)
17457                     additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
17458                                                                                                                                                                 if test "X$additional_libdir" != "X/usr/lib"; then
17459                       haveit=
17460                       if test "X$additional_libdir" = "X/usr/local/lib"; then
17461                         if test -n "$GCC"; then
17462                           case $host_os in
17463                             linux* | gnu* | k*bsd*-gnu) haveit=yes;;
17464                           esac
17465                         fi
17466                       fi
17467                       if test -z "$haveit"; then
17468                         haveit=
17469                         for x in $LDFLAGS $LIBINTL; do
17470
17471   acl_save_prefix="$prefix"
17472   prefix="$acl_final_prefix"
17473   acl_save_exec_prefix="$exec_prefix"
17474   exec_prefix="$acl_final_exec_prefix"
17475   eval x=\"$x\"
17476   exec_prefix="$acl_save_exec_prefix"
17477   prefix="$acl_save_prefix"
17478
17479                           if test "X$x" = "X-L$additional_libdir"; then
17480                             haveit=yes
17481                             break
17482                           fi
17483                         done
17484                         if test -z "$haveit"; then
17485                           if test -d "$additional_libdir"; then
17486                                                         LIBINTL="${LIBINTL}${LIBINTL:+ }-L$additional_libdir"
17487                           fi
17488                         fi
17489                         haveit=
17490                         for x in $LDFLAGS $LTLIBINTL; do
17491
17492   acl_save_prefix="$prefix"
17493   prefix="$acl_final_prefix"
17494   acl_save_exec_prefix="$exec_prefix"
17495   exec_prefix="$acl_final_exec_prefix"
17496   eval x=\"$x\"
17497   exec_prefix="$acl_save_exec_prefix"
17498   prefix="$acl_save_prefix"
17499
17500                           if test "X$x" = "X-L$additional_libdir"; then
17501                             haveit=yes
17502                             break
17503                           fi
17504                         done
17505                         if test -z "$haveit"; then
17506                           if test -d "$additional_libdir"; then
17507                                                         LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$additional_libdir"
17508                           fi
17509                         fi
17510                       fi
17511                     fi
17512                     ;;
17513                   -R*)
17514                     dir=`echo "X$dep" | sed -e 's/^X-R//'`
17515                     if test "$enable_rpath" != no; then
17516                                                                   haveit=
17517                       for x in $rpathdirs; do
17518                         if test "X$x" = "X$dir"; then
17519                           haveit=yes
17520                           break
17521                         fi
17522                       done
17523                       if test -z "$haveit"; then
17524                         rpathdirs="$rpathdirs $dir"
17525                       fi
17526                                                                   haveit=
17527                       for x in $ltrpathdirs; do
17528                         if test "X$x" = "X$dir"; then
17529                           haveit=yes
17530                           break
17531                         fi
17532                       done
17533                       if test -z "$haveit"; then
17534                         ltrpathdirs="$ltrpathdirs $dir"
17535                       fi
17536                     fi
17537                     ;;
17538                   -l*)
17539                                         names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
17540                     ;;
17541                   *.la)
17542                                                                                 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
17543                     ;;
17544                   *)
17545                                         LIBINTL="${LIBINTL}${LIBINTL:+ }$dep"
17546                     LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$dep"
17547                     ;;
17548                 esac
17549               done
17550             fi
17551           else
17552                                                             LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
17553             LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-l$name"
17554           fi
17555         fi
17556       fi
17557     done
17558   done
17559   if test "X$rpathdirs" != "X"; then
17560     if test -n "$hardcode_libdir_separator"; then
17561                         alldirs=
17562       for found_dir in $rpathdirs; do
17563         alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
17564       done
17565             acl_save_libdir="$libdir"
17566       libdir="$alldirs"
17567       eval flag=\"$hardcode_libdir_flag_spec\"
17568       libdir="$acl_save_libdir"
17569       LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
17570     else
17571             for found_dir in $rpathdirs; do
17572         acl_save_libdir="$libdir"
17573         libdir="$found_dir"
17574         eval flag=\"$hardcode_libdir_flag_spec\"
17575         libdir="$acl_save_libdir"
17576         LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
17577       done
17578     fi
17579   fi
17580   if test "X$ltrpathdirs" != "X"; then
17581             for found_dir in $ltrpathdirs; do
17582       LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-R$found_dir"
17583     done
17584   fi
17585
17586           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libintl" >&5
17587 $as_echo_n "checking for GNU gettext in libintl... " >&6; }
17588 if test "${gt_cv_func_gnugettext1_libintl+set}" = set; then :
17589   $as_echo_n "(cached) " >&6
17590 else
17591   gt_save_CPPFLAGS="$CPPFLAGS"
17592             CPPFLAGS="$CPPFLAGS $INCINTL"
17593             gt_save_LIBS="$LIBS"
17594             LIBS="$LIBS $LIBINTL"
17595                         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17596 /* end confdefs.h.  */
17597 #include <libintl.h>
17598 extern int _nl_msg_cat_cntr;
17599 extern
17600 #ifdef __cplusplus
17601 "C"
17602 #endif
17603 const char *_nl_expand_alias (const char *);
17604 int
17605 main ()
17606 {
17607 bindtextdomain ("", "");
17608 return * gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias ("")
17609   ;
17610   return 0;
17611 }
17612 _ACEOF
17613 if ac_fn_c_try_link "$LINENO"; then :
17614   gt_cv_func_gnugettext1_libintl=yes
17615 else
17616   gt_cv_func_gnugettext1_libintl=no
17617 fi
17618 rm -f core conftest.err conftest.$ac_objext \
17619     conftest$ac_exeext conftest.$ac_ext
17620                         if test "$gt_cv_func_gnugettext1_libintl" != yes && test -n "$LIBICONV"; then
17621               LIBS="$LIBS $LIBICONV"
17622               cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17623 /* end confdefs.h.  */
17624 #include <libintl.h>
17625 extern int _nl_msg_cat_cntr;
17626 extern
17627 #ifdef __cplusplus
17628 "C"
17629 #endif
17630 const char *_nl_expand_alias (const char *);
17631 int
17632 main ()
17633 {
17634 bindtextdomain ("", "");
17635 return * gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias ("")
17636   ;
17637   return 0;
17638 }
17639 _ACEOF
17640 if ac_fn_c_try_link "$LINENO"; then :
17641   LIBINTL="$LIBINTL $LIBICONV"
17642                 LTLIBINTL="$LTLIBINTL $LTLIBICONV"
17643                 gt_cv_func_gnugettext1_libintl=yes
17644
17645 fi
17646 rm -f core conftest.err conftest.$ac_objext \
17647     conftest$ac_exeext conftest.$ac_ext
17648             fi
17649             CPPFLAGS="$gt_save_CPPFLAGS"
17650             LIBS="$gt_save_LIBS"
17651 fi
17652 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_gnugettext1_libintl" >&5
17653 $as_echo "$gt_cv_func_gnugettext1_libintl" >&6; }
17654         fi
17655
17656                                         if test "$gt_cv_func_gnugettext1_libc" = "yes" \
17657            || { test "$gt_cv_func_gnugettext1_libintl" = "yes" \
17658                 && test "$PACKAGE" != gettext-runtime \
17659                 && test "$PACKAGE" != gettext-tools; }; then
17660           gt_use_preinstalled_gnugettext=yes
17661         else
17662                     LIBINTL=
17663           LTLIBINTL=
17664           INCINTL=
17665         fi
17666
17667
17668
17669     if test -n "$INTL_MACOSX_LIBS"; then
17670       if test "$gt_use_preinstalled_gnugettext" = "yes" \
17671          || test "$nls_cv_use_gnu_gettext" = "yes"; then
17672                 LIBINTL="$LIBINTL $INTL_MACOSX_LIBS"
17673         LTLIBINTL="$LTLIBINTL $INTL_MACOSX_LIBS"
17674       fi
17675     fi
17676
17677     if test "$gt_use_preinstalled_gnugettext" = "yes" \
17678        || test "$nls_cv_use_gnu_gettext" = "yes"; then
17679
17680 $as_echo "#define ENABLE_NLS 1" >>confdefs.h
17681
17682     else
17683       USE_NLS=no
17684     fi
17685   fi
17686
17687   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use NLS" >&5
17688 $as_echo_n "checking whether to use NLS... " >&6; }
17689   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
17690 $as_echo "$USE_NLS" >&6; }
17691   if test "$USE_NLS" = "yes"; then
17692     { $as_echo "$as_me:${as_lineno-$LINENO}: checking where the gettext function comes from" >&5
17693 $as_echo_n "checking where the gettext function comes from... " >&6; }
17694     if test "$gt_use_preinstalled_gnugettext" = "yes"; then
17695       if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
17696         gt_source="external libintl"
17697       else
17698         gt_source="libc"
17699       fi
17700     else
17701       gt_source="included intl directory"
17702     fi
17703     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_source" >&5
17704 $as_echo "$gt_source" >&6; }
17705   fi
17706
17707   if test "$USE_NLS" = "yes"; then
17708
17709     if test "$gt_use_preinstalled_gnugettext" = "yes"; then
17710       if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
17711         { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libintl" >&5
17712 $as_echo_n "checking how to link with libintl... " >&6; }
17713         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBINTL" >&5
17714 $as_echo "$LIBINTL" >&6; }
17715
17716   for element in $INCINTL; do
17717     haveit=
17718     for x in $CPPFLAGS; do
17719
17720   acl_save_prefix="$prefix"
17721   prefix="$acl_final_prefix"
17722   acl_save_exec_prefix="$exec_prefix"
17723   exec_prefix="$acl_final_exec_prefix"
17724   eval x=\"$x\"
17725   exec_prefix="$acl_save_exec_prefix"
17726   prefix="$acl_save_prefix"
17727
17728       if test "X$x" = "X$element"; then
17729         haveit=yes
17730         break
17731       fi
17732     done
17733     if test -z "$haveit"; then
17734       CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
17735     fi
17736   done
17737
17738       fi
17739
17740
17741 $as_echo "#define HAVE_GETTEXT 1" >>confdefs.h
17742
17743
17744 $as_echo "#define HAVE_DCGETTEXT 1" >>confdefs.h
17745
17746     fi
17747
17748         POSUB=po
17749   fi
17750
17751
17752
17753     INTLLIBS="$LIBINTL"
17754
17755
17756
17757
17758
17759
17760
17761 os_name=`uname -s 2>/dev/null`
17762 if test x${prefix} = xNONE ; then
17763    if test `eval echo ${sysconfdir}` = NONE/etc ; then
17764       sysconfdir=/etc/bacula
17765    fi
17766
17767    if test `eval echo ${libdir}` = NONE/lib ; then
17768       case ${os_name} in
17769       Linux)
17770          os_processor=`uname -p 2>/dev/null`
17771          case ${os_processor} in
17772          x86_64)
17773             libdir=/usr/lib64
17774             ;;
17775          *)
17776             libdir=/usr/lib
17777             ;;
17778          esac
17779          ;;
17780       *)
17781          libdir=/usr/lib
17782          ;;
17783       esac
17784    fi
17785
17786    if test `eval echo ${includedir}` = NONE/include ; then
17787       includedir=/usr/include
17788    fi
17789
17790    if test `eval echo ${datarootdir}` = NONE/share ; then
17791       datarootdir=/usr/share
17792    fi
17793    prefix=
17794 fi
17795
17796 if test x${exec_prefix} = xNONE ; then
17797    exec_prefix=${prefix}
17798 fi
17799
17800 sysconfdir=`eval echo ${sysconfdir}`
17801 datarootdir=`eval echo ${datarootdir}`
17802 docdir=`eval echo ${docdir}`
17803 htmldir=`eval echo ${htmldir}`
17804 libdir=`eval echo ${libdir}`
17805 includedir=`eval echo ${includedir}`
17806 localedir=`eval echo ${datarootdir}/locale`
17807 cat >>confdefs.h <<_ACEOF
17808 #define SYSCONFDIR "$sysconfdir"
17809 _ACEOF
17810
17811 cat >>confdefs.h <<_ACEOF
17812 #define LOCALEDIR "$localedir"
17813 _ACEOF
17814
17815
17816 if test x$sbindir = x'${exec_prefix}/sbin' ; then
17817    sbindir=${exec_prefix}/sbin
17818 fi
17819 sbindir=`eval echo ${sbindir}`
17820
17821 if test x$mandir = x'${prefix}/man' ; then
17822    mandir=/usr/share/man
17823 fi
17824
17825 if test x$htmldir = x${docdir} ; then
17826    htmldir=`eval echo ${docdir}bacula/html`
17827 fi
17828
17829 if test x$docdir = x'/usr/share/doc/' ; then
17830    docdir=`eval echo ${docdir}bacula`
17831 fi
17832
17833
17834 for ac_prog in msgfmt
17835 do
17836   # Extract the first word of "$ac_prog", so it can be a program name with args.
17837 set dummy $ac_prog; ac_word=$2
17838 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17839 $as_echo_n "checking for $ac_word... " >&6; }
17840 if test "${ac_cv_path_MSGFMT+set}" = set; then :
17841   $as_echo_n "(cached) " >&6
17842 else
17843   case $MSGFMT in
17844   [\\/]* | ?:[\\/]*)
17845   ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
17846   ;;
17847   *)
17848   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17849 for as_dir in $PATH
17850 do
17851   IFS=$as_save_IFS
17852   test -z "$as_dir" && as_dir=.
17853     for ac_exec_ext in '' $ac_executable_extensions; do
17854   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
17855     ac_cv_path_MSGFMT="$as_dir/$ac_word$ac_exec_ext"
17856     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17857     break 2
17858   fi
17859 done
17860   done
17861 IFS=$as_save_IFS
17862
17863   ;;
17864 esac
17865 fi
17866 MSGFMT=$ac_cv_path_MSGFMT
17867 if test -n "$MSGFMT"; then
17868   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGFMT" >&5
17869 $as_echo "$MSGFMT" >&6; }
17870 else
17871   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17872 $as_echo "no" >&6; }
17873 fi
17874
17875
17876   test -n "$MSGFMT" && break
17877 done
17878 test -n "$MSGFMT" || MSGFMT="no"
17879
17880 if test "$MSGFMT" = "no"
17881 then
17882    echo 'msgfmt program not found, disabling NLS !'
17883    USE_NLS=no
17884    USE_INCLUDED_LIBINTL=no
17885 #else
17886
17887     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C Library 2 or newer" >&5
17888 $as_echo_n "checking whether we are using the GNU C Library 2 or newer... " >&6; }
17889 if test "${ac_cv_gnu_library_2+set}" = set; then :
17890   $as_echo_n "(cached) " >&6
17891 else
17892   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17893 /* end confdefs.h.  */
17894
17895 #include <features.h>
17896 #ifdef __GNU_LIBRARY__
17897  #if (__GLIBC__ >= 2)
17898   Lucky GNU user
17899  #endif
17900 #endif
17901
17902 _ACEOF
17903 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
17904   $EGREP "Lucky GNU user" >/dev/null 2>&1; then :
17905   ac_cv_gnu_library_2=yes
17906 else
17907   ac_cv_gnu_library_2=no
17908 fi
17909 rm -f conftest*
17910
17911
17912
17913 fi
17914 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_gnu_library_2" >&5
17915 $as_echo "$ac_cv_gnu_library_2" >&6; }
17916
17917     GLIBC2="$ac_cv_gnu_library_2"
17918
17919
17920 if test -n "$ac_tool_prefix"; then
17921   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
17922 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
17923 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17924 $as_echo_n "checking for $ac_word... " >&6; }
17925 if test "${ac_cv_prog_RANLIB+set}" = set; then :
17926   $as_echo_n "(cached) " >&6
17927 else
17928   if test -n "$RANLIB"; then
17929   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
17930 else
17931 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17932 for as_dir in $PATH
17933 do
17934   IFS=$as_save_IFS
17935   test -z "$as_dir" && as_dir=.
17936     for ac_exec_ext in '' $ac_executable_extensions; do
17937   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
17938     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
17939     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17940     break 2
17941   fi
17942 done
17943   done
17944 IFS=$as_save_IFS
17945
17946 fi
17947 fi
17948 RANLIB=$ac_cv_prog_RANLIB
17949 if test -n "$RANLIB"; then
17950   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
17951 $as_echo "$RANLIB" >&6; }
17952 else
17953   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17954 $as_echo "no" >&6; }
17955 fi
17956
17957
17958 fi
17959 if test -z "$ac_cv_prog_RANLIB"; then
17960   ac_ct_RANLIB=$RANLIB
17961   # Extract the first word of "ranlib", so it can be a program name with args.
17962 set dummy ranlib; ac_word=$2
17963 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17964 $as_echo_n "checking for $ac_word... " >&6; }
17965 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
17966   $as_echo_n "(cached) " >&6
17967 else
17968   if test -n "$ac_ct_RANLIB"; then
17969   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
17970 else
17971 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17972 for as_dir in $PATH
17973 do
17974   IFS=$as_save_IFS
17975   test -z "$as_dir" && as_dir=.
17976     for ac_exec_ext in '' $ac_executable_extensions; do
17977   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
17978     ac_cv_prog_ac_ct_RANLIB="ranlib"
17979     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17980     break 2
17981   fi
17982 done
17983   done
17984 IFS=$as_save_IFS
17985
17986 fi
17987 fi
17988 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
17989 if test -n "$ac_ct_RANLIB"; then
17990   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
17991 $as_echo "$ac_ct_RANLIB" >&6; }
17992 else
17993   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17994 $as_echo "no" >&6; }
17995 fi
17996
17997   if test "x$ac_ct_RANLIB" = x; then
17998     RANLIB=":"
17999   else
18000     case $cross_compiling:$ac_tool_warned in
18001 yes:)
18002 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
18003 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
18004 ac_tool_warned=yes ;;
18005 esac
18006     RANLIB=$ac_ct_RANLIB
18007   fi
18008 else
18009   RANLIB="$ac_cv_prog_RANLIB"
18010 fi
18011
18012
18013         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for strerror in -lcposix" >&5
18014 $as_echo_n "checking for strerror in -lcposix... " >&6; }
18015 if test "${ac_cv_lib_cposix_strerror+set}" = set; then :
18016   $as_echo_n "(cached) " >&6
18017 else
18018   ac_check_lib_save_LIBS=$LIBS
18019 LIBS="-lcposix  $LIBS"
18020 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18021 /* end confdefs.h.  */
18022
18023 /* Override any GCC internal prototype to avoid an error.
18024    Use char because int might match the return type of a GCC
18025    builtin and then its argument prototype would still apply.  */
18026 #ifdef __cplusplus
18027 extern "C"
18028 #endif
18029 char strerror ();
18030 int
18031 main ()
18032 {
18033 return strerror ();
18034   ;
18035   return 0;
18036 }
18037 _ACEOF
18038 if ac_fn_c_try_link "$LINENO"; then :
18039   ac_cv_lib_cposix_strerror=yes
18040 else
18041   ac_cv_lib_cposix_strerror=no
18042 fi
18043 rm -f core conftest.err conftest.$ac_objext \
18044     conftest$ac_exeext conftest.$ac_ext
18045 LIBS=$ac_check_lib_save_LIBS
18046 fi
18047 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_cposix_strerror" >&5
18048 $as_echo "$ac_cv_lib_cposix_strerror" >&6; }
18049 if test "x$ac_cv_lib_cposix_strerror" = x""yes; then :
18050   LIBS="$LIBS -lcposix"
18051 fi
18052
18053
18054
18055 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
18056 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
18057 if test "${ac_cv_c_const+set}" = set; then :
18058   $as_echo_n "(cached) " >&6
18059 else
18060   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18061 /* end confdefs.h.  */
18062
18063 int
18064 main ()
18065 {
18066 /* FIXME: Include the comments suggested by Paul. */
18067 #ifndef __cplusplus
18068   /* Ultrix mips cc rejects this.  */
18069   typedef int charset[2];
18070   const charset cs;
18071   /* SunOS 4.1.1 cc rejects this.  */
18072   char const *const *pcpcc;
18073   char **ppc;
18074   /* NEC SVR4.0.2 mips cc rejects this.  */
18075   struct point {int x, y;};
18076   static struct point const zero = {0,0};
18077   /* AIX XL C 1.02.0.0 rejects this.
18078      It does not let you subtract one const X* pointer from another in
18079      an arm of an if-expression whose if-part is not a constant
18080      expression */
18081   const char *g = "string";
18082   pcpcc = &g + (g ? g-g : 0);
18083   /* HPUX 7.0 cc rejects these. */
18084   ++pcpcc;
18085   ppc = (char**) pcpcc;
18086   pcpcc = (char const *const *) ppc;
18087   { /* SCO 3.2v4 cc rejects this.  */
18088     char *t;
18089     char const *s = 0 ? (char *) 0 : (char const *) 0;
18090
18091     *t++ = 0;
18092     if (s) return 0;
18093   }
18094   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
18095     int x[] = {25, 17};
18096     const int *foo = &x[0];
18097     ++foo;
18098   }
18099   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
18100     typedef const int *iptr;
18101     iptr p = 0;
18102     ++p;
18103   }
18104   { /* AIX XL C 1.02.0.0 rejects this saying
18105        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
18106     struct s { int j; const int *ap[3]; };
18107     struct s *b; b->j = 5;
18108   }
18109   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
18110     const int foo = 10;
18111     if (!foo) return 0;
18112   }
18113   return !cs[0] && !zero.x;
18114 #endif
18115
18116   ;
18117   return 0;
18118 }
18119 _ACEOF
18120 if ac_fn_c_try_compile "$LINENO"; then :
18121   ac_cv_c_const=yes
18122 else
18123   ac_cv_c_const=no
18124 fi
18125 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18126 fi
18127 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
18128 $as_echo "$ac_cv_c_const" >&6; }
18129 if test $ac_cv_c_const = no; then
18130
18131 $as_echo "#define const /**/" >>confdefs.h
18132
18133 fi
18134
18135
18136   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for signed" >&5
18137 $as_echo_n "checking for signed... " >&6; }
18138 if test "${bh_cv_c_signed+set}" = set; then :
18139   $as_echo_n "(cached) " >&6
18140 else
18141   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18142 /* end confdefs.h.  */
18143
18144 int
18145 main ()
18146 {
18147 signed char x;
18148   ;
18149   return 0;
18150 }
18151 _ACEOF
18152 if ac_fn_c_try_compile "$LINENO"; then :
18153   bh_cv_c_signed=yes
18154 else
18155   bh_cv_c_signed=no
18156 fi
18157 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18158 fi
18159 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bh_cv_c_signed" >&5
18160 $as_echo "$bh_cv_c_signed" >&6; }
18161   if test $bh_cv_c_signed = no; then
18162
18163 $as_echo "#define signed /**/" >>confdefs.h
18164
18165   fi
18166
18167 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
18168 $as_echo_n "checking for inline... " >&6; }
18169 if test "${ac_cv_c_inline+set}" = set; then :
18170   $as_echo_n "(cached) " >&6
18171 else
18172   ac_cv_c_inline=no
18173 for ac_kw in inline __inline__ __inline; do
18174   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18175 /* end confdefs.h.  */
18176 #ifndef __cplusplus
18177 typedef int foo_t;
18178 static $ac_kw foo_t static_foo () {return 0; }
18179 $ac_kw foo_t foo () {return 0; }
18180 #endif
18181
18182 _ACEOF
18183 if ac_fn_c_try_compile "$LINENO"; then :
18184   ac_cv_c_inline=$ac_kw
18185 fi
18186 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18187   test "$ac_cv_c_inline" != no && break
18188 done
18189
18190 fi
18191 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
18192 $as_echo "$ac_cv_c_inline" >&6; }
18193
18194 case $ac_cv_c_inline in
18195   inline | yes) ;;
18196   *)
18197     case $ac_cv_c_inline in
18198       no) ac_val=;;
18199       *) ac_val=$ac_cv_c_inline;;
18200     esac
18201     cat >>confdefs.h <<_ACEOF
18202 #ifndef __cplusplus
18203 #define inline $ac_val
18204 #endif
18205 _ACEOF
18206     ;;
18207 esac
18208
18209 ac_fn_c_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default"
18210 if test "x$ac_cv_type_off_t" = x""yes; then :
18211
18212 else
18213
18214 cat >>confdefs.h <<_ACEOF
18215 #define off_t long int
18216 _ACEOF
18217
18218 fi
18219
18220 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
18221 if test "x$ac_cv_type_size_t" = x""yes; then :
18222
18223 else
18224
18225 cat >>confdefs.h <<_ACEOF
18226 #define size_t unsigned int
18227 _ACEOF
18228
18229 fi
18230
18231
18232   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long" >&5
18233 $as_echo_n "checking for long long... " >&6; }
18234 if test "${ac_cv_type_long_long+set}" = set; then :
18235   $as_echo_n "(cached) " >&6
18236 else
18237   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18238 /* end confdefs.h.  */
18239 long long ll = 1LL; int i = 63;
18240 int
18241 main ()
18242 {
18243 long long llmax = (long long) -1;
18244      return ll << i | ll >> i | llmax / ll | llmax % ll;
18245   ;
18246   return 0;
18247 }
18248 _ACEOF
18249 if ac_fn_c_try_link "$LINENO"; then :
18250   ac_cv_type_long_long=yes
18251 else
18252   ac_cv_type_long_long=no
18253 fi
18254 rm -f core conftest.err conftest.$ac_objext \
18255     conftest$ac_exeext conftest.$ac_ext
18256 fi
18257 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_long" >&5
18258 $as_echo "$ac_cv_type_long_long" >&6; }
18259   if test $ac_cv_type_long_long = yes; then
18260
18261 $as_echo "#define HAVE_LONG_LONG 1" >>confdefs.h
18262
18263   fi
18264
18265
18266   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long double" >&5
18267 $as_echo_n "checking for long double... " >&6; }
18268 if test "${gt_cv_c_long_double+set}" = set; then :
18269   $as_echo_n "(cached) " >&6
18270 else
18271   if test "$GCC" = yes; then
18272        gt_cv_c_long_double=yes
18273      else
18274        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18275 /* end confdefs.h.  */
18276
18277          /* The Stardent Vistra knows sizeof(long double), but does not support it.  */
18278          long double foo = 0.0;
18279          /* On Ultrix 4.3 cc, long double is 4 and double is 8.  */
18280          int array [2*(sizeof(long double) >= sizeof(double)) - 1];
18281
18282 int
18283 main ()
18284 {
18285
18286   ;
18287   return 0;
18288 }
18289 _ACEOF
18290 if ac_fn_c_try_compile "$LINENO"; then :
18291   gt_cv_c_long_double=yes
18292 else
18293   gt_cv_c_long_double=no
18294 fi
18295 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18296      fi
18297 fi
18298 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_long_double" >&5
18299 $as_echo "$gt_cv_c_long_double" >&6; }
18300   if test $gt_cv_c_long_double = yes; then
18301
18302 $as_echo "#define HAVE_LONG_DOUBLE 1" >>confdefs.h
18303
18304   fi
18305
18306
18307   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wchar_t" >&5
18308 $as_echo_n "checking for wchar_t... " >&6; }
18309 if test "${gt_cv_c_wchar_t+set}" = set; then :
18310   $as_echo_n "(cached) " >&6
18311 else
18312   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18313 /* end confdefs.h.  */
18314 #include <stddef.h>
18315        wchar_t foo = (wchar_t)'\0';
18316 int
18317 main ()
18318 {
18319
18320   ;
18321   return 0;
18322 }
18323 _ACEOF
18324 if ac_fn_c_try_compile "$LINENO"; then :
18325   gt_cv_c_wchar_t=yes
18326 else
18327   gt_cv_c_wchar_t=no
18328 fi
18329 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18330 fi
18331 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_wchar_t" >&5
18332 $as_echo "$gt_cv_c_wchar_t" >&6; }
18333   if test $gt_cv_c_wchar_t = yes; then
18334
18335 $as_echo "#define HAVE_WCHAR_T 1" >>confdefs.h
18336
18337   fi
18338
18339
18340   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wint_t" >&5
18341 $as_echo_n "checking for wint_t... " >&6; }
18342 if test "${gt_cv_c_wint_t+set}" = set; then :
18343   $as_echo_n "(cached) " >&6
18344 else
18345   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18346 /* end confdefs.h.  */
18347 #include <wchar.h>
18348        wint_t foo = (wchar_t)'\0';
18349 int
18350 main ()
18351 {
18352
18353   ;
18354   return 0;
18355 }
18356 _ACEOF
18357 if ac_fn_c_try_compile "$LINENO"; then :
18358   gt_cv_c_wint_t=yes
18359 else
18360   gt_cv_c_wint_t=no
18361 fi
18362 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18363 fi
18364 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_wint_t" >&5
18365 $as_echo "$gt_cv_c_wint_t" >&6; }
18366   if test $gt_cv_c_wint_t = yes; then
18367
18368 $as_echo "#define HAVE_WINT_T 1" >>confdefs.h
18369
18370   fi
18371
18372
18373   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inttypes.h" >&5
18374 $as_echo_n "checking for inttypes.h... " >&6; }
18375 if test "${gl_cv_header_inttypes_h+set}" = set; then :
18376   $as_echo_n "(cached) " >&6
18377 else
18378   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18379 /* end confdefs.h.  */
18380 #include <sys/types.h>
18381 #include <inttypes.h>
18382 int
18383 main ()
18384 {
18385 uintmax_t i = (uintmax_t) -1;
18386   ;
18387   return 0;
18388 }
18389 _ACEOF
18390 if ac_fn_c_try_compile "$LINENO"; then :
18391   gl_cv_header_inttypes_h=yes
18392 else
18393   gl_cv_header_inttypes_h=no
18394 fi
18395 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18396 fi
18397 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_inttypes_h" >&5
18398 $as_echo "$gl_cv_header_inttypes_h" >&6; }
18399   if test $gl_cv_header_inttypes_h = yes; then
18400
18401 cat >>confdefs.h <<_ACEOF
18402 #define HAVE_INTTYPES_H_WITH_UINTMAX 1
18403 _ACEOF
18404
18405   fi
18406
18407
18408   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdint.h" >&5
18409 $as_echo_n "checking for stdint.h... " >&6; }
18410 if test "${gl_cv_header_stdint_h+set}" = set; then :
18411   $as_echo_n "(cached) " >&6
18412 else
18413   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18414 /* end confdefs.h.  */
18415 #include <sys/types.h>
18416 #include <stdint.h>
18417 int
18418 main ()
18419 {
18420 uintmax_t i = (uintmax_t) -1;
18421   ;
18422   return 0;
18423 }
18424 _ACEOF
18425 if ac_fn_c_try_compile "$LINENO"; then :
18426   gl_cv_header_stdint_h=yes
18427 else
18428   gl_cv_header_stdint_h=no
18429 fi
18430 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18431 fi
18432 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_stdint_h" >&5
18433 $as_echo "$gl_cv_header_stdint_h" >&6; }
18434   if test $gl_cv_header_stdint_h = yes; then
18435
18436 cat >>confdefs.h <<_ACEOF
18437 #define HAVE_STDINT_H_WITH_UINTMAX 1
18438 _ACEOF
18439
18440   fi
18441
18442
18443
18444
18445   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for intmax_t" >&5
18446 $as_echo_n "checking for intmax_t... " >&6; }
18447 if test "${gt_cv_c_intmax_t+set}" = set; then :
18448   $as_echo_n "(cached) " >&6
18449 else
18450   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18451 /* end confdefs.h.  */
18452
18453 #include <stddef.h>
18454 #include <stdlib.h>
18455 #if HAVE_STDINT_H_WITH_UINTMAX
18456 #include <stdint.h>
18457 #endif
18458 #if HAVE_INTTYPES_H_WITH_UINTMAX
18459 #include <inttypes.h>
18460 #endif
18461
18462 int
18463 main ()
18464 {
18465 intmax_t x = -1;
18466   ;
18467   return 0;
18468 }
18469 _ACEOF
18470 if ac_fn_c_try_compile "$LINENO"; then :
18471   gt_cv_c_intmax_t=yes
18472 else
18473   gt_cv_c_intmax_t=no
18474 fi
18475 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18476 fi
18477 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_intmax_t" >&5
18478 $as_echo "$gt_cv_c_intmax_t" >&6; }
18479   if test $gt_cv_c_intmax_t = yes; then
18480
18481 $as_echo "#define HAVE_INTMAX_T 1" >>confdefs.h
18482
18483   fi
18484
18485
18486
18487   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether printf() supports POSIX/XSI format strings" >&5
18488 $as_echo_n "checking whether printf() supports POSIX/XSI format strings... " >&6; }
18489 if test "${gt_cv_func_printf_posix+set}" = set; then :
18490   $as_echo_n "(cached) " >&6
18491 else
18492
18493       if test "$cross_compiling" = yes; then :
18494
18495         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18496 /* end confdefs.h.  */
18497
18498 #if defined __NetBSD__ || defined _MSC_VER || defined __MINGW32__ || defined __CYGWIN__
18499   notposix
18500 #endif
18501
18502 _ACEOF
18503 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
18504   $EGREP "notposix" >/dev/null 2>&1; then :
18505   gt_cv_func_printf_posix="guessing no"
18506 else
18507   gt_cv_func_printf_posix="guessing yes"
18508 fi
18509 rm -f conftest*
18510
18511
18512 else
18513   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18514 /* end confdefs.h.  */
18515
18516 #include <stdio.h>
18517 #include <string.h>
18518 /* The string "%2$d %1$d", with dollar characters protected from the shell's
18519    dollar expansion (possibly an autoconf bug).  */
18520 static char format[] = { '%', '2', '$', 'd', ' ', '%', '1', '$', 'd', '\0' };
18521 static char buf[100];
18522 int main ()
18523 {
18524   sprintf (buf, format, 33, 55);
18525   return (strcmp (buf, "55 33") != 0);
18526 }
18527 _ACEOF
18528 if ac_fn_c_try_run "$LINENO"; then :
18529   gt_cv_func_printf_posix=yes
18530 else
18531   gt_cv_func_printf_posix=no
18532 fi
18533 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
18534   conftest.$ac_objext conftest.beam conftest.$ac_ext
18535 fi
18536
18537
18538 fi
18539 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_printf_posix" >&5
18540 $as_echo "$gt_cv_func_printf_posix" >&6; }
18541   case $gt_cv_func_printf_posix in
18542     *yes)
18543
18544 $as_echo "#define HAVE_POSIX_PRINTF 1" >>confdefs.h
18545
18546       ;;
18547   esac
18548
18549 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
18550 # for constant arguments.  Useless!
18551 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5
18552 $as_echo_n "checking for working alloca.h... " >&6; }
18553 if test "${ac_cv_working_alloca_h+set}" = set; then :
18554   $as_echo_n "(cached) " >&6
18555 else
18556   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18557 /* end confdefs.h.  */
18558 #include <alloca.h>
18559 int
18560 main ()
18561 {
18562 char *p = (char *) alloca (2 * sizeof (int));
18563                           if (p) return 0;
18564   ;
18565   return 0;
18566 }
18567 _ACEOF
18568 if ac_fn_c_try_link "$LINENO"; then :
18569   ac_cv_working_alloca_h=yes
18570 else
18571   ac_cv_working_alloca_h=no
18572 fi
18573 rm -f core conftest.err conftest.$ac_objext \
18574     conftest$ac_exeext conftest.$ac_ext
18575 fi
18576 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5
18577 $as_echo "$ac_cv_working_alloca_h" >&6; }
18578 if test $ac_cv_working_alloca_h = yes; then
18579
18580 $as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h
18581
18582 fi
18583
18584 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5
18585 $as_echo_n "checking for alloca... " >&6; }
18586 if test "${ac_cv_func_alloca_works+set}" = set; then :
18587   $as_echo_n "(cached) " >&6
18588 else
18589   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18590 /* end confdefs.h.  */
18591 #ifdef __GNUC__
18592 # define alloca __builtin_alloca
18593 #else
18594 # ifdef _MSC_VER
18595 #  include <malloc.h>
18596 #  define alloca _alloca
18597 # else
18598 #  ifdef HAVE_ALLOCA_H
18599 #   include <alloca.h>
18600 #  else
18601 #   ifdef _AIX
18602  #pragma alloca
18603 #   else
18604 #    ifndef alloca /* predefined by HP cc +Olibcalls */
18605 char *alloca ();
18606 #    endif
18607 #   endif
18608 #  endif
18609 # endif
18610 #endif
18611
18612 int
18613 main ()
18614 {
18615 char *p = (char *) alloca (1);
18616                                     if (p) return 0;
18617   ;
18618   return 0;
18619 }
18620 _ACEOF
18621 if ac_fn_c_try_link "$LINENO"; then :
18622   ac_cv_func_alloca_works=yes
18623 else
18624   ac_cv_func_alloca_works=no
18625 fi
18626 rm -f core conftest.err conftest.$ac_objext \
18627     conftest$ac_exeext conftest.$ac_ext
18628 fi
18629 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5
18630 $as_echo "$ac_cv_func_alloca_works" >&6; }
18631
18632 if test $ac_cv_func_alloca_works = yes; then
18633
18634 $as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
18635
18636 else
18637   # The SVR3 libPW and SVR4 libucb both contain incompatible functions
18638 # that cause trouble.  Some versions do not even contain alloca or
18639 # contain a buggy version.  If you still want to use their alloca,
18640 # use ar to extract alloca.o from them instead of compiling alloca.c.
18641
18642 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
18643
18644 $as_echo "#define C_ALLOCA 1" >>confdefs.h
18645
18646
18647 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether \`alloca.c' needs Cray hooks" >&5
18648 $as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; }
18649 if test "${ac_cv_os_cray+set}" = set; then :
18650   $as_echo_n "(cached) " >&6
18651 else
18652   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18653 /* end confdefs.h.  */
18654 #if defined CRAY && ! defined CRAY2
18655 webecray
18656 #else
18657 wenotbecray
18658 #endif
18659
18660 _ACEOF
18661 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
18662   $EGREP "webecray" >/dev/null 2>&1; then :
18663   ac_cv_os_cray=yes
18664 else
18665   ac_cv_os_cray=no
18666 fi
18667 rm -f conftest*
18668
18669 fi
18670 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5
18671 $as_echo "$ac_cv_os_cray" >&6; }
18672 if test $ac_cv_os_cray = yes; then
18673   for ac_func in _getb67 GETB67 getb67; do
18674     as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
18675 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
18676 eval as_val=\$$as_ac_var
18677    if test "x$as_val" = x""yes; then :
18678
18679 cat >>confdefs.h <<_ACEOF
18680 #define CRAY_STACKSEG_END $ac_func
18681 _ACEOF
18682
18683     break
18684 fi
18685
18686   done
18687 fi
18688
18689 { $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5
18690 $as_echo_n "checking stack direction for C alloca... " >&6; }
18691 if test "${ac_cv_c_stack_direction+set}" = set; then :
18692   $as_echo_n "(cached) " >&6
18693 else
18694   if test "$cross_compiling" = yes; then :
18695   ac_cv_c_stack_direction=0
18696 else
18697   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18698 /* end confdefs.h.  */
18699 $ac_includes_default
18700 int
18701 find_stack_direction ()
18702 {
18703   static char *addr = 0;
18704   auto char dummy;
18705   if (addr == 0)
18706     {
18707       addr = &dummy;
18708       return find_stack_direction ();
18709     }
18710   else
18711     return (&dummy > addr) ? 1 : -1;
18712 }
18713
18714 int
18715 main ()
18716 {
18717   return find_stack_direction () < 0;
18718 }
18719 _ACEOF
18720 if ac_fn_c_try_run "$LINENO"; then :
18721   ac_cv_c_stack_direction=1
18722 else
18723   ac_cv_c_stack_direction=-1
18724 fi
18725 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
18726   conftest.$ac_objext conftest.beam conftest.$ac_ext
18727 fi
18728
18729 fi
18730 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5
18731 $as_echo "$ac_cv_c_stack_direction" >&6; }
18732 cat >>confdefs.h <<_ACEOF
18733 #define STACK_DIRECTION $ac_cv_c_stack_direction
18734 _ACEOF
18735
18736
18737 fi
18738
18739
18740
18741
18742   for ac_header in $ac_header_list
18743 do :
18744   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
18745 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
18746 "
18747 eval as_val=\$$as_ac_Header
18748    if test "x$as_val" = x""yes; then :
18749   cat >>confdefs.h <<_ACEOF
18750 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
18751 _ACEOF
18752
18753 fi
18754
18755 done
18756
18757
18758
18759
18760
18761
18762
18763
18764 for ac_func in getpagesize
18765 do :
18766   ac_fn_c_check_func "$LINENO" "getpagesize" "ac_cv_func_getpagesize"
18767 if test "x$ac_cv_func_getpagesize" = x""yes; then :
18768   cat >>confdefs.h <<_ACEOF
18769 #define HAVE_GETPAGESIZE 1
18770 _ACEOF
18771
18772 fi
18773 done
18774
18775 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap" >&5
18776 $as_echo_n "checking for working mmap... " >&6; }
18777 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then :
18778   $as_echo_n "(cached) " >&6
18779 else
18780   if test "$cross_compiling" = yes; then :
18781   ac_cv_func_mmap_fixed_mapped=no
18782 else
18783   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18784 /* end confdefs.h.  */
18785 $ac_includes_default
18786 /* malloc might have been renamed as rpl_malloc. */
18787 #undef malloc
18788
18789 /* Thanks to Mike Haertel and Jim Avera for this test.
18790    Here is a matrix of mmap possibilities:
18791         mmap private not fixed
18792         mmap private fixed at somewhere currently unmapped
18793         mmap private fixed at somewhere already mapped
18794         mmap shared not fixed
18795         mmap shared fixed at somewhere currently unmapped
18796         mmap shared fixed at somewhere already mapped
18797    For private mappings, we should verify that changes cannot be read()
18798    back from the file, nor mmap's back from the file at a different
18799    address.  (There have been systems where private was not correctly
18800    implemented like the infamous i386 svr4.0, and systems where the
18801    VM page cache was not coherent with the file system buffer cache
18802    like early versions of FreeBSD and possibly contemporary NetBSD.)
18803    For shared mappings, we should conversely verify that changes get
18804    propagated back to all the places they're supposed to be.
18805
18806    Grep wants private fixed already mapped.
18807    The main things grep needs to know about mmap are:
18808    * does it exist and is it safe to write into the mmap'd area
18809    * how to use it (BSD variants)  */
18810
18811 #include <fcntl.h>
18812 #include <sys/mman.h>
18813
18814 #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
18815 char *malloc ();
18816 #endif
18817
18818 /* This mess was copied from the GNU getpagesize.h.  */
18819 #ifndef HAVE_GETPAGESIZE
18820 # ifdef _SC_PAGESIZE
18821 #  define getpagesize() sysconf(_SC_PAGESIZE)
18822 # else /* no _SC_PAGESIZE */
18823 #  ifdef HAVE_SYS_PARAM_H
18824 #   include <sys/param.h>
18825 #   ifdef EXEC_PAGESIZE
18826 #    define getpagesize() EXEC_PAGESIZE
18827 #   else /* no EXEC_PAGESIZE */
18828 #    ifdef NBPG
18829 #     define getpagesize() NBPG * CLSIZE
18830 #     ifndef CLSIZE
18831 #      define CLSIZE 1
18832 #     endif /* no CLSIZE */
18833 #    else /* no NBPG */
18834 #     ifdef NBPC
18835 #      define getpagesize() NBPC
18836 #     else /* no NBPC */
18837 #      ifdef PAGESIZE
18838 #       define getpagesize() PAGESIZE
18839 #      endif /* PAGESIZE */
18840 #     endif /* no NBPC */
18841 #    endif /* no NBPG */
18842 #   endif /* no EXEC_PAGESIZE */
18843 #  else /* no HAVE_SYS_PARAM_H */
18844 #   define getpagesize() 8192   /* punt totally */
18845 #  endif /* no HAVE_SYS_PARAM_H */
18846 # endif /* no _SC_PAGESIZE */
18847
18848 #endif /* no HAVE_GETPAGESIZE */
18849
18850 int
18851 main ()
18852 {
18853   char *data, *data2, *data3;
18854   const char *cdata2;
18855   int i, pagesize;
18856   int fd, fd2;
18857
18858   pagesize = getpagesize ();
18859
18860   /* First, make a file with some known garbage in it. */
18861   data = (char *) malloc (pagesize);
18862   if (!data)
18863     return 1;
18864   for (i = 0; i < pagesize; ++i)
18865     *(data + i) = rand ();
18866   umask (0);
18867   fd = creat ("conftest.mmap", 0600);
18868   if (fd < 0)
18869     return 2;
18870   if (write (fd, data, pagesize) != pagesize)
18871     return 3;
18872   close (fd);
18873
18874   /* Next, check that the tail of a page is zero-filled.  File must have
18875      non-zero length, otherwise we risk SIGBUS for entire page.  */
18876   fd2 = open ("conftest.txt", O_RDWR | O_CREAT | O_TRUNC, 0600);
18877   if (fd2 < 0)
18878     return 4;
18879   cdata2 = "";
18880   if (write (fd2, cdata2, 1) != 1)
18881     return 5;
18882   data2 = (char *) mmap (0, pagesize, PROT_READ | PROT_WRITE, MAP_SHARED, fd2, 0L);
18883   if (data2 == MAP_FAILED)
18884     return 6;
18885   for (i = 0; i < pagesize; ++i)
18886     if (*(data2 + i))
18887       return 7;
18888   close (fd2);
18889   if (munmap (data2, pagesize))
18890     return 8;
18891
18892   /* Next, try to mmap the file at a fixed address which already has
18893      something else allocated at it.  If we can, also make sure that
18894      we see the same garbage.  */
18895   fd = open ("conftest.mmap", O_RDWR);
18896   if (fd < 0)
18897     return 9;
18898   if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
18899                      MAP_PRIVATE | MAP_FIXED, fd, 0L))
18900     return 10;
18901   for (i = 0; i < pagesize; ++i)
18902     if (*(data + i) != *(data2 + i))
18903       return 11;
18904
18905   /* Finally, make sure that changes to the mapped area do not
18906      percolate back to the file as seen by read().  (This is a bug on
18907      some variants of i386 svr4.0.)  */
18908   for (i = 0; i < pagesize; ++i)
18909     *(data2 + i) = *(data2 + i) + 1;
18910   data3 = (char *) malloc (pagesize);
18911   if (!data3)
18912     return 12;
18913   if (read (fd, data3, pagesize) != pagesize)
18914     return 13;
18915   for (i = 0; i < pagesize; ++i)
18916     if (*(data + i) != *(data3 + i))
18917       return 14;
18918   close (fd);
18919   return 0;
18920 }
18921 _ACEOF
18922 if ac_fn_c_try_run "$LINENO"; then :
18923   ac_cv_func_mmap_fixed_mapped=yes
18924 else
18925   ac_cv_func_mmap_fixed_mapped=no
18926 fi
18927 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
18928   conftest.$ac_objext conftest.beam conftest.$ac_ext
18929 fi
18930
18931 fi
18932 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_fixed_mapped" >&5
18933 $as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; }
18934 if test $ac_cv_func_mmap_fixed_mapped = yes; then
18935
18936 $as_echo "#define HAVE_MMAP 1" >>confdefs.h
18937
18938 fi
18939 rm -f conftest.mmap conftest.txt
18940
18941
18942     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C Library 2.1 or newer" >&5
18943 $as_echo_n "checking whether we are using the GNU C Library 2.1 or newer... " >&6; }
18944 if test "${ac_cv_gnu_library_2_1+set}" = set; then :
18945   $as_echo_n "(cached) " >&6
18946 else
18947   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18948 /* end confdefs.h.  */
18949
18950 #include <features.h>
18951 #ifdef __GNU_LIBRARY__
18952  #if (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 1) || (__GLIBC__ > 2)
18953   Lucky GNU user
18954  #endif
18955 #endif
18956
18957 _ACEOF
18958 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
18959   $EGREP "Lucky GNU user" >/dev/null 2>&1; then :
18960   ac_cv_gnu_library_2_1=yes
18961 else
18962   ac_cv_gnu_library_2_1=no
18963 fi
18964 rm -f conftest*
18965
18966
18967
18968 fi
18969 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_gnu_library_2_1" >&5
18970 $as_echo "$ac_cv_gnu_library_2_1" >&6; }
18971
18972     GLIBC21="$ac_cv_gnu_library_2_1"
18973
18974
18975
18976
18977   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether integer division by zero raises SIGFPE" >&5
18978 $as_echo_n "checking whether integer division by zero raises SIGFPE... " >&6; }
18979 if test "${gt_cv_int_divbyzero_sigfpe+set}" = set; then :
18980   $as_echo_n "(cached) " >&6
18981 else
18982
18983       if test "$cross_compiling" = yes; then :
18984
18985           # Guess based on the CPU.
18986           case "$host_cpu" in
18987             alpha* | i3456786 | m68k | s390*)
18988               gt_cv_int_divbyzero_sigfpe="guessing yes";;
18989             *)
18990               gt_cv_int_divbyzero_sigfpe="guessing no";;
18991           esac
18992
18993 else
18994   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18995 /* end confdefs.h.  */
18996
18997 #include <stdlib.h>
18998 #include <signal.h>
18999
19000 static void
19001 #ifdef __cplusplus
19002 sigfpe_handler (int sig)
19003 #else
19004 sigfpe_handler (sig) int sig;
19005 #endif
19006 {
19007   /* Exit with code 0 if SIGFPE, with code 1 if any other signal.  */
19008   exit (sig != SIGFPE);
19009 }
19010
19011 int x = 1;
19012 int y = 0;
19013 int z;
19014 int nan;
19015
19016 int main ()
19017 {
19018   signal (SIGFPE, sigfpe_handler);
19019 /* IRIX and AIX (when "xlc -qcheck" is used) yield signal SIGTRAP.  */
19020 #if (defined (__sgi) || defined (_AIX)) && defined (SIGTRAP)
19021   signal (SIGTRAP, sigfpe_handler);
19022 #endif
19023 /* Linux/SPARC yields signal SIGILL.  */
19024 #if defined (__sparc__) && defined (__linux__)
19025   signal (SIGILL, sigfpe_handler);
19026 #endif
19027
19028   z = x / y;
19029   nan = y / y;
19030   exit (1);
19031 }
19032
19033 _ACEOF
19034 if ac_fn_c_try_run "$LINENO"; then :
19035   gt_cv_int_divbyzero_sigfpe=yes
19036 else
19037   gt_cv_int_divbyzero_sigfpe=no
19038 fi
19039 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
19040   conftest.$ac_objext conftest.beam conftest.$ac_ext
19041 fi
19042
19043
19044 fi
19045 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_int_divbyzero_sigfpe" >&5
19046 $as_echo "$gt_cv_int_divbyzero_sigfpe" >&6; }
19047   case "$gt_cv_int_divbyzero_sigfpe" in
19048     *yes) value=1;;
19049     *) value=0;;
19050   esac
19051
19052 cat >>confdefs.h <<_ACEOF
19053 #define INTDIV0_RAISES_SIGFPE $value
19054 _ACEOF
19055
19056
19057
19058   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned long long" >&5
19059 $as_echo_n "checking for unsigned long long... " >&6; }
19060 if test "${ac_cv_type_unsigned_long_long+set}" = set; then :
19061   $as_echo_n "(cached) " >&6
19062 else
19063   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19064 /* end confdefs.h.  */
19065 unsigned long long ull = 1ULL; int i = 63;
19066 int
19067 main ()
19068 {
19069 unsigned long long ullmax = (unsigned long long) -1;
19070      return ull << i | ull >> i | ullmax / ull | ullmax % ull;
19071   ;
19072   return 0;
19073 }
19074 _ACEOF
19075 if ac_fn_c_try_link "$LINENO"; then :
19076   ac_cv_type_unsigned_long_long=yes
19077 else
19078   ac_cv_type_unsigned_long_long=no
19079 fi
19080 rm -f core conftest.err conftest.$ac_objext \
19081     conftest$ac_exeext conftest.$ac_ext
19082 fi
19083 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_unsigned_long_long" >&5
19084 $as_echo "$ac_cv_type_unsigned_long_long" >&6; }
19085   if test $ac_cv_type_unsigned_long_long = yes; then
19086
19087 $as_echo "#define HAVE_UNSIGNED_LONG_LONG 1" >>confdefs.h
19088
19089   fi
19090
19091
19092
19093
19094   if test $gl_cv_header_inttypes_h = no && test $gl_cv_header_stdint_h = no; then
19095
19096     test $ac_cv_type_unsigned_long_long = yes \
19097       && ac_type='unsigned long long' \
19098       || ac_type='unsigned long'
19099
19100 cat >>confdefs.h <<_ACEOF
19101 #define uintmax_t $ac_type
19102 _ACEOF
19103
19104   else
19105
19106 $as_echo "#define HAVE_UINTMAX_T 1" >>confdefs.h
19107
19108   fi
19109
19110
19111   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inttypes.h" >&5
19112 $as_echo_n "checking for inttypes.h... " >&6; }
19113 if test "${gt_cv_header_inttypes_h+set}" = set; then :
19114   $as_echo_n "(cached) " >&6
19115 else
19116
19117     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19118 /* end confdefs.h.  */
19119 #include <sys/types.h>
19120 #include <inttypes.h>
19121 int
19122 main ()
19123 {
19124
19125   ;
19126   return 0;
19127 }
19128 _ACEOF
19129 if ac_fn_c_try_compile "$LINENO"; then :
19130   gt_cv_header_inttypes_h=yes
19131 else
19132   gt_cv_header_inttypes_h=no
19133 fi
19134 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19135
19136 fi
19137 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_header_inttypes_h" >&5
19138 $as_echo "$gt_cv_header_inttypes_h" >&6; }
19139   if test $gt_cv_header_inttypes_h = yes; then
19140
19141 cat >>confdefs.h <<_ACEOF
19142 #define HAVE_INTTYPES_H 1
19143 _ACEOF
19144
19145   fi
19146
19147
19148
19149   if test $gt_cv_header_inttypes_h = yes; then
19150     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the inttypes.h PRIxNN macros are broken" >&5
19151 $as_echo_n "checking whether the inttypes.h PRIxNN macros are broken... " >&6; }
19152 if test "${gt_cv_inttypes_pri_broken+set}" = set; then :
19153   $as_echo_n "(cached) " >&6
19154 else
19155
19156         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19157 /* end confdefs.h.  */
19158 #include <inttypes.h>
19159 #ifdef PRId32
19160 char *p = PRId32;
19161 #endif
19162
19163 int
19164 main ()
19165 {
19166
19167   ;
19168   return 0;
19169 }
19170 _ACEOF
19171 if ac_fn_c_try_compile "$LINENO"; then :
19172   gt_cv_inttypes_pri_broken=no
19173 else
19174   gt_cv_inttypes_pri_broken=yes
19175 fi
19176 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19177
19178 fi
19179 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_inttypes_pri_broken" >&5
19180 $as_echo "$gt_cv_inttypes_pri_broken" >&6; }
19181   fi
19182   if test "$gt_cv_inttypes_pri_broken" = yes; then
19183
19184 cat >>confdefs.h <<_ACEOF
19185 #define PRI_MACROS_BROKEN 1
19186 _ACEOF
19187
19188   fi
19189
19190
19191   for ac_header in stdint.h
19192 do :
19193   ac_fn_c_check_header_mongrel "$LINENO" "stdint.h" "ac_cv_header_stdint_h" "$ac_includes_default"
19194 if test "x$ac_cv_header_stdint_h" = x""yes; then :
19195   cat >>confdefs.h <<_ACEOF
19196 #define HAVE_STDINT_H 1
19197 _ACEOF
19198
19199 fi
19200
19201 done
19202
19203     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SIZE_MAX" >&5
19204 $as_echo_n "checking for SIZE_MAX... " >&6; }
19205   result=
19206   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19207 /* end confdefs.h.  */
19208
19209 #include <limits.h>
19210 #if HAVE_STDINT_H
19211 #include <stdint.h>
19212 #endif
19213 #ifdef SIZE_MAX
19214 Found it
19215 #endif
19216
19217 _ACEOF
19218 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19219   $EGREP "Found it" >/dev/null 2>&1; then :
19220   result=yes
19221 fi
19222 rm -f conftest*
19223
19224   if test -z "$result"; then
19225                     if ac_fn_c_compute_int "$LINENO" "~(size_t)0 / 10" "res_hi"        "#include <stddef.h>"; then :
19226
19227 else
19228   result=?
19229 fi
19230
19231
19232     if ac_fn_c_compute_int "$LINENO" "~(size_t)0 % 10" "res_lo"        "#include <stddef.h>"; then :
19233
19234 else
19235   result=?
19236 fi
19237
19238
19239     if ac_fn_c_compute_int "$LINENO" "sizeof (size_t) <= sizeof (unsigned int)" "fits_in_uint"        "#include <stddef.h>"; then :
19240
19241 else
19242   result=?
19243 fi
19244
19245
19246     if test "$fits_in_uint" = 1; then
19247                   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19248 /* end confdefs.h.  */
19249 #include <stddef.h>
19250         extern size_t foo;
19251         extern unsigned long foo;
19252
19253 int
19254 main ()
19255 {
19256
19257   ;
19258   return 0;
19259 }
19260 _ACEOF
19261 if ac_fn_c_try_compile "$LINENO"; then :
19262   fits_in_uint=0
19263 fi
19264 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19265     fi
19266     if test -z "$result"; then
19267       if test "$fits_in_uint" = 1; then
19268         result="$res_hi$res_lo"U
19269       else
19270         result="$res_hi$res_lo"UL
19271       fi
19272     else
19273             result='~(size_t)0'
19274     fi
19275   fi
19276   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $result" >&5
19277 $as_echo "$result" >&6; }
19278   if test "$result" != yes; then
19279
19280 cat >>confdefs.h <<_ACEOF
19281 #define SIZE_MAX $result
19282 _ACEOF
19283
19284   fi
19285
19286
19287
19288
19289   for ac_header in stdint.h
19290 do :
19291   ac_fn_c_check_header_mongrel "$LINENO" "stdint.h" "ac_cv_header_stdint_h" "$ac_includes_default"
19292 if test "x$ac_cv_header_stdint_h" = x""yes; then :
19293   cat >>confdefs.h <<_ACEOF
19294 #define HAVE_STDINT_H 1
19295 _ACEOF
19296
19297 fi
19298
19299 done
19300
19301
19302
19303
19304
19305
19306
19307
19308   ac_fn_c_check_type "$LINENO" "ptrdiff_t" "ac_cv_type_ptrdiff_t" "$ac_includes_default"
19309 if test "x$ac_cv_type_ptrdiff_t" = x""yes; then :
19310
19311 else
19312
19313 $as_echo "#define ptrdiff_t long" >>confdefs.h
19314
19315
19316 fi
19317
19318   for ac_header in argz.h limits.h locale.h nl_types.h malloc.h stddef.h \
19319 stdlib.h string.h unistd.h sys/param.h
19320 do :
19321   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
19322 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
19323 eval as_val=\$$as_ac_Header
19324    if test "x$as_val" = x""yes; then :
19325   cat >>confdefs.h <<_ACEOF
19326 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
19327 _ACEOF
19328
19329 fi
19330
19331 done
19332
19333   for ac_func in asprintf fwprintf getcwd getegid geteuid getgid getuid \
19334 mempcpy munmap putenv setenv setlocale snprintf stpcpy strcasecmp strdup \
19335 strtoul tsearch wcslen __argz_count __argz_stringify __argz_next \
19336 __fsetlocking
19337 do :
19338   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
19339 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
19340 eval as_val=\$$as_ac_var
19341    if test "x$as_val" = x""yes; then :
19342   cat >>confdefs.h <<_ACEOF
19343 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
19344 _ACEOF
19345
19346 fi
19347 done
19348
19349
19350
19351   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether _snprintf is declared" >&5
19352 $as_echo_n "checking whether _snprintf is declared... " >&6; }
19353 if test "${ac_cv_have_decl__snprintf+set}" = set; then :
19354   $as_echo_n "(cached) " >&6
19355 else
19356   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19357 /* end confdefs.h.  */
19358 #include <stdio.h>
19359 int
19360 main ()
19361 {
19362
19363 #ifndef _snprintf
19364   char *p = (char *) _snprintf;
19365 #endif
19366
19367   ;
19368   return 0;
19369 }
19370 _ACEOF
19371 if ac_fn_c_try_compile "$LINENO"; then :
19372   ac_cv_have_decl__snprintf=yes
19373 else
19374   ac_cv_have_decl__snprintf=no
19375 fi
19376 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19377 fi
19378 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_decl__snprintf" >&5
19379 $as_echo "$ac_cv_have_decl__snprintf" >&6; }
19380   if test $ac_cv_have_decl__snprintf = yes; then
19381     gt_value=1
19382   else
19383     gt_value=0
19384   fi
19385
19386 cat >>confdefs.h <<_ACEOF
19387 #define HAVE_DECL__SNPRINTF $gt_value
19388 _ACEOF
19389
19390
19391
19392   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether _snwprintf is declared" >&5
19393 $as_echo_n "checking whether _snwprintf is declared... " >&6; }
19394 if test "${ac_cv_have_decl__snwprintf+set}" = set; then :
19395   $as_echo_n "(cached) " >&6
19396 else
19397   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19398 /* end confdefs.h.  */
19399 #include <stdio.h>
19400 int
19401 main ()
19402 {
19403
19404 #ifndef _snwprintf
19405   char *p = (char *) _snwprintf;
19406 #endif
19407
19408   ;
19409   return 0;
19410 }
19411 _ACEOF
19412 if ac_fn_c_try_compile "$LINENO"; then :
19413   ac_cv_have_decl__snwprintf=yes
19414 else
19415   ac_cv_have_decl__snwprintf=no
19416 fi
19417 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19418 fi
19419 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_decl__snwprintf" >&5
19420 $as_echo "$ac_cv_have_decl__snwprintf" >&6; }
19421   if test $ac_cv_have_decl__snwprintf = yes; then
19422     gt_value=1
19423   else
19424     gt_value=0
19425   fi
19426
19427 cat >>confdefs.h <<_ACEOF
19428 #define HAVE_DECL__SNWPRINTF $gt_value
19429 _ACEOF
19430
19431
19432
19433
19434   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether feof_unlocked is declared" >&5
19435 $as_echo_n "checking whether feof_unlocked is declared... " >&6; }
19436 if test "${ac_cv_have_decl_feof_unlocked+set}" = set; then :
19437   $as_echo_n "(cached) " >&6
19438 else
19439   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19440 /* end confdefs.h.  */
19441 #include <stdio.h>
19442 int
19443 main ()
19444 {
19445
19446 #ifndef feof_unlocked
19447   char *p = (char *) feof_unlocked;
19448 #endif
19449
19450   ;
19451   return 0;
19452 }
19453 _ACEOF
19454 if ac_fn_c_try_compile "$LINENO"; then :
19455   ac_cv_have_decl_feof_unlocked=yes
19456 else
19457   ac_cv_have_decl_feof_unlocked=no
19458 fi
19459 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19460 fi
19461 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_decl_feof_unlocked" >&5
19462 $as_echo "$ac_cv_have_decl_feof_unlocked" >&6; }
19463   if test $ac_cv_have_decl_feof_unlocked = yes; then
19464     gt_value=1
19465   else
19466     gt_value=0
19467   fi
19468
19469 cat >>confdefs.h <<_ACEOF
19470 #define HAVE_DECL_FEOF_UNLOCKED $gt_value
19471 _ACEOF
19472
19473
19474
19475   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether fgets_unlocked is declared" >&5
19476 $as_echo_n "checking whether fgets_unlocked is declared... " >&6; }
19477 if test "${ac_cv_have_decl_fgets_unlocked+set}" = set; then :
19478   $as_echo_n "(cached) " >&6
19479 else
19480   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19481 /* end confdefs.h.  */
19482 #include <stdio.h>
19483 int
19484 main ()
19485 {
19486
19487 #ifndef fgets_unlocked
19488   char *p = (char *) fgets_unlocked;
19489 #endif
19490
19491   ;
19492   return 0;
19493 }
19494 _ACEOF
19495 if ac_fn_c_try_compile "$LINENO"; then :
19496   ac_cv_have_decl_fgets_unlocked=yes
19497 else
19498   ac_cv_have_decl_fgets_unlocked=no
19499 fi
19500 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19501 fi
19502 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_decl_fgets_unlocked" >&5
19503 $as_echo "$ac_cv_have_decl_fgets_unlocked" >&6; }
19504   if test $ac_cv_have_decl_fgets_unlocked = yes; then
19505     gt_value=1
19506   else
19507     gt_value=0
19508   fi
19509
19510 cat >>confdefs.h <<_ACEOF
19511 #define HAVE_DECL_FGETS_UNLOCKED $gt_value
19512 _ACEOF
19513
19514
19515
19516   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether getc_unlocked is declared" >&5
19517 $as_echo_n "checking whether getc_unlocked is declared... " >&6; }
19518 if test "${ac_cv_have_decl_getc_unlocked+set}" = set; then :
19519   $as_echo_n "(cached) " >&6
19520 else
19521   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19522 /* end confdefs.h.  */
19523 #include <stdio.h>
19524 int
19525 main ()
19526 {
19527
19528 #ifndef getc_unlocked
19529   char *p = (char *) getc_unlocked;
19530 #endif
19531
19532   ;
19533   return 0;
19534 }
19535 _ACEOF
19536 if ac_fn_c_try_compile "$LINENO"; then :
19537   ac_cv_have_decl_getc_unlocked=yes
19538 else
19539   ac_cv_have_decl_getc_unlocked=no
19540 fi
19541 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19542 fi
19543 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_decl_getc_unlocked" >&5
19544 $as_echo "$ac_cv_have_decl_getc_unlocked" >&6; }
19545   if test $ac_cv_have_decl_getc_unlocked = yes; then
19546     gt_value=1
19547   else
19548     gt_value=0
19549   fi
19550
19551 cat >>confdefs.h <<_ACEOF
19552 #define HAVE_DECL_GETC_UNLOCKED $gt_value
19553 _ACEOF
19554
19555
19556
19557   case $gt_cv_func_printf_posix in
19558     *yes) HAVE_POSIX_PRINTF=1 ;;
19559     *) HAVE_POSIX_PRINTF=0 ;;
19560   esac
19561
19562   if test "$ac_cv_func_asprintf" = yes; then
19563     HAVE_ASPRINTF=1
19564   else
19565     HAVE_ASPRINTF=0
19566   fi
19567
19568   if test "$ac_cv_func_snprintf" = yes; then
19569     HAVE_SNPRINTF=1
19570   else
19571     HAVE_SNPRINTF=0
19572   fi
19573
19574   if test "$ac_cv_func_wprintf" = yes; then
19575     HAVE_WPRINTF=1
19576   else
19577     HAVE_WPRINTF=0
19578   fi
19579
19580
19581
19582
19583
19584
19585
19586           am_save_CPPFLAGS="$CPPFLAGS"
19587
19588   for element in $INCICONV; do
19589     haveit=
19590     for x in $CPPFLAGS; do
19591
19592   acl_save_prefix="$prefix"
19593   prefix="$acl_final_prefix"
19594   acl_save_exec_prefix="$exec_prefix"
19595   exec_prefix="$acl_final_exec_prefix"
19596   eval x=\"$x\"
19597   exec_prefix="$acl_save_exec_prefix"
19598   prefix="$acl_save_prefix"
19599
19600       if test "X$x" = "X$element"; then
19601         haveit=yes
19602         break
19603       fi
19604     done
19605     if test -z "$haveit"; then
19606       CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
19607     fi
19608   done
19609
19610
19611   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5
19612 $as_echo_n "checking for iconv... " >&6; }
19613 if test "${am_cv_func_iconv+set}" = set; then :
19614   $as_echo_n "(cached) " >&6
19615 else
19616
19617     am_cv_func_iconv="no, consider installing GNU libiconv"
19618     am_cv_lib_iconv=no
19619     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19620 /* end confdefs.h.  */
19621 #include <stdlib.h>
19622 #include <iconv.h>
19623 int
19624 main ()
19625 {
19626 iconv_t cd = iconv_open("","");
19627        iconv(cd,NULL,NULL,NULL,NULL);
19628        iconv_close(cd);
19629   ;
19630   return 0;
19631 }
19632 _ACEOF
19633 if ac_fn_c_try_link "$LINENO"; then :
19634   am_cv_func_iconv=yes
19635 fi
19636 rm -f core conftest.err conftest.$ac_objext \
19637     conftest$ac_exeext conftest.$ac_ext
19638     if test "$am_cv_func_iconv" != yes; then
19639       am_save_LIBS="$LIBS"
19640       LIBS="$LIBS $LIBICONV"
19641       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19642 /* end confdefs.h.  */
19643 #include <stdlib.h>
19644 #include <iconv.h>
19645 int
19646 main ()
19647 {
19648 iconv_t cd = iconv_open("","");
19649          iconv(cd,NULL,NULL,NULL,NULL);
19650          iconv_close(cd);
19651   ;
19652   return 0;
19653 }
19654 _ACEOF
19655 if ac_fn_c_try_link "$LINENO"; then :
19656   am_cv_lib_iconv=yes
19657         am_cv_func_iconv=yes
19658 fi
19659 rm -f core conftest.err conftest.$ac_objext \
19660     conftest$ac_exeext conftest.$ac_ext
19661       LIBS="$am_save_LIBS"
19662     fi
19663
19664 fi
19665 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5
19666 $as_echo "$am_cv_func_iconv" >&6; }
19667   if test "$am_cv_func_iconv" = yes; then
19668
19669 $as_echo "#define HAVE_ICONV 1" >>confdefs.h
19670
19671   fi
19672   if test "$am_cv_lib_iconv" = yes; then
19673     { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libiconv" >&5
19674 $as_echo_n "checking how to link with libiconv... " >&6; }
19675     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBICONV" >&5
19676 $as_echo "$LIBICONV" >&6; }
19677   else
19678             CPPFLAGS="$am_save_CPPFLAGS"
19679     LIBICONV=
19680     LTLIBICONV=
19681   fi
19682
19683
19684
19685   if test "$am_cv_func_iconv" = yes; then
19686     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv declaration" >&5
19687 $as_echo_n "checking for iconv declaration... " >&6; }
19688     if test "${am_cv_proto_iconv+set}" = set; then :
19689   $as_echo_n "(cached) " >&6
19690 else
19691
19692       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19693 /* end confdefs.h.  */
19694
19695 #include <stdlib.h>
19696 #include <iconv.h>
19697 extern
19698 #ifdef __cplusplus
19699 "C"
19700 #endif
19701 #if defined(__STDC__) || defined(__cplusplus)
19702 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
19703 #else
19704 size_t iconv();
19705 #endif
19706
19707 int
19708 main ()
19709 {
19710
19711   ;
19712   return 0;
19713 }
19714 _ACEOF
19715 if ac_fn_c_try_compile "$LINENO"; then :
19716   am_cv_proto_iconv_arg1=""
19717 else
19718   am_cv_proto_iconv_arg1="const"
19719 fi
19720 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19721       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);"
19722 fi
19723
19724     am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
19725     { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${ac_t:-
19726          }$am_cv_proto_iconv" >&5
19727 $as_echo "${ac_t:-
19728          }$am_cv_proto_iconv" >&6; }
19729
19730 cat >>confdefs.h <<_ACEOF
19731 #define ICONV_CONST $am_cv_proto_iconv_arg1
19732 _ACEOF
19733
19734   fi
19735
19736
19737   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nl_langinfo and CODESET" >&5
19738 $as_echo_n "checking for nl_langinfo and CODESET... " >&6; }
19739 if test "${am_cv_langinfo_codeset+set}" = set; then :
19740   $as_echo_n "(cached) " >&6
19741 else
19742   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19743 /* end confdefs.h.  */
19744 #include <langinfo.h>
19745 int
19746 main ()
19747 {
19748 char* cs = nl_langinfo(CODESET);
19749   ;
19750   return 0;
19751 }
19752 _ACEOF
19753 if ac_fn_c_try_link "$LINENO"; then :
19754   am_cv_langinfo_codeset=yes
19755 else
19756   am_cv_langinfo_codeset=no
19757 fi
19758 rm -f core conftest.err conftest.$ac_objext \
19759     conftest$ac_exeext conftest.$ac_ext
19760
19761 fi
19762 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_langinfo_codeset" >&5
19763 $as_echo "$am_cv_langinfo_codeset" >&6; }
19764   if test $am_cv_langinfo_codeset = yes; then
19765
19766 $as_echo "#define HAVE_LANGINFO_CODESET 1" >>confdefs.h
19767
19768   fi
19769
19770   if test $ac_cv_header_locale_h = yes; then
19771
19772   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LC_MESSAGES" >&5
19773 $as_echo_n "checking for LC_MESSAGES... " >&6; }
19774 if test "${gt_cv_val_LC_MESSAGES+set}" = set; then :
19775   $as_echo_n "(cached) " >&6
19776 else
19777   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19778 /* end confdefs.h.  */
19779 #include <locale.h>
19780 int
19781 main ()
19782 {
19783 return LC_MESSAGES
19784   ;
19785   return 0;
19786 }
19787 _ACEOF
19788 if ac_fn_c_try_link "$LINENO"; then :
19789   gt_cv_val_LC_MESSAGES=yes
19790 else
19791   gt_cv_val_LC_MESSAGES=no
19792 fi
19793 rm -f core conftest.err conftest.$ac_objext \
19794     conftest$ac_exeext conftest.$ac_ext
19795 fi
19796 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_val_LC_MESSAGES" >&5
19797 $as_echo "$gt_cv_val_LC_MESSAGES" >&6; }
19798   if test $gt_cv_val_LC_MESSAGES = yes; then
19799
19800 $as_echo "#define HAVE_LC_MESSAGES 1" >>confdefs.h
19801
19802   fi
19803
19804   fi
19805
19806   if test -n "$INTL_MACOSX_LIBS"; then
19807     CPPFLAGS="$CPPFLAGS -I/System/Library/Frameworks/CoreFoundation.framework/Headers"
19808   fi
19809
19810                       for ac_prog in bison
19811 do
19812   # Extract the first word of "$ac_prog", so it can be a program name with args.
19813 set dummy $ac_prog; ac_word=$2
19814 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19815 $as_echo_n "checking for $ac_word... " >&6; }
19816 if test "${ac_cv_prog_INTLBISON+set}" = set; then :
19817   $as_echo_n "(cached) " >&6
19818 else
19819   if test -n "$INTLBISON"; then
19820   ac_cv_prog_INTLBISON="$INTLBISON" # Let the user override the test.
19821 else
19822 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19823 for as_dir in $PATH
19824 do
19825   IFS=$as_save_IFS
19826   test -z "$as_dir" && as_dir=.
19827     for ac_exec_ext in '' $ac_executable_extensions; do
19828   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
19829     ac_cv_prog_INTLBISON="$ac_prog"
19830     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
19831     break 2
19832   fi
19833 done
19834   done
19835 IFS=$as_save_IFS
19836
19837 fi
19838 fi
19839 INTLBISON=$ac_cv_prog_INTLBISON
19840 if test -n "$INTLBISON"; then
19841   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INTLBISON" >&5
19842 $as_echo "$INTLBISON" >&6; }
19843 else
19844   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19845 $as_echo "no" >&6; }
19846 fi
19847
19848
19849   test -n "$INTLBISON" && break
19850 done
19851
19852   if test -z "$INTLBISON"; then
19853     ac_verc_fail=yes
19854   else
19855         { $as_echo "$as_me:${as_lineno-$LINENO}: checking version of bison" >&5
19856 $as_echo_n "checking version of bison... " >&6; }
19857     ac_prog_version=`$INTLBISON --version 2>&1 | sed -n 's/^.*GNU Bison.* \([0-9]*\.[0-9.]*\).*$/\1/p'`
19858     case $ac_prog_version in
19859       '') ac_prog_version="v. ?.??, bad"; ac_verc_fail=yes;;
19860       1.2[6-9]* | 1.[3-9][0-9]* | [2-9].*)
19861          ac_prog_version="$ac_prog_version, ok"; ac_verc_fail=no;;
19862       *) ac_prog_version="$ac_prog_version, bad"; ac_verc_fail=yes;;
19863     esac
19864     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_prog_version" >&5
19865 $as_echo "$ac_prog_version" >&6; }
19866   fi
19867   if test $ac_verc_fail = yes; then
19868     INTLBISON=:
19869   fi
19870
19871
19872
19873
19874
19875
19876
19877
19878
19879
19880
19881
19882
19883
19884
19885
19886     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFPreferencesCopyAppValue" >&5
19887 $as_echo_n "checking for CFPreferencesCopyAppValue... " >&6; }
19888 if test "${gt_cv_func_CFPreferencesCopyAppValue+set}" = set; then :
19889   $as_echo_n "(cached) " >&6
19890 else
19891   gt_save_CPPFLAGS="$CPPFLAGS"
19892      CPPFLAGS="$CPPFLAGS -I/System/Library/Frameworks/CoreFoundation.framework/Headers"
19893      gt_save_LIBS="$LIBS"
19894      LIBS="$LIBS -framework CoreFoundation"
19895      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19896 /* end confdefs.h.  */
19897 #include <CFPreferences.h>
19898 int
19899 main ()
19900 {
19901 CFPreferencesCopyAppValue(NULL, NULL)
19902   ;
19903   return 0;
19904 }
19905 _ACEOF
19906 if ac_fn_c_try_link "$LINENO"; then :
19907   gt_cv_func_CFPreferencesCopyAppValue=yes
19908 else
19909   gt_cv_func_CFPreferencesCopyAppValue=no
19910 fi
19911 rm -f core conftest.err conftest.$ac_objext \
19912     conftest$ac_exeext conftest.$ac_ext
19913      CPPFLAGS="$gt_save_CPPFLAGS"
19914      LIBS="$gt_save_LIBS"
19915 fi
19916 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFPreferencesCopyAppValue" >&5
19917 $as_echo "$gt_cv_func_CFPreferencesCopyAppValue" >&6; }
19918   if test $gt_cv_func_CFPreferencesCopyAppValue = yes; then
19919
19920 $as_echo "#define HAVE_CFPREFERENCESCOPYAPPVALUE 1" >>confdefs.h
19921
19922   fi
19923     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFLocaleCopyCurrent" >&5
19924 $as_echo_n "checking for CFLocaleCopyCurrent... " >&6; }
19925 if test "${gt_cv_func_CFLocaleCopyCurrent+set}" = set; then :
19926   $as_echo_n "(cached) " >&6
19927 else
19928   gt_save_CPPFLAGS="$CPPFLAGS"
19929      CPPFLAGS="$CPPFLAGS -I/System/Library/Frameworks/CoreFoundation.framework/Headers"
19930      gt_save_LIBS="$LIBS"
19931      LIBS="$LIBS -framework CoreFoundation"
19932      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19933 /* end confdefs.h.  */
19934 #include <CFLocale.h>
19935 int
19936 main ()
19937 {
19938 CFLocaleCopyCurrent();
19939   ;
19940   return 0;
19941 }
19942 _ACEOF
19943 if ac_fn_c_try_link "$LINENO"; then :
19944   gt_cv_func_CFLocaleCopyCurrent=yes
19945 else
19946   gt_cv_func_CFLocaleCopyCurrent=no
19947 fi
19948 rm -f core conftest.err conftest.$ac_objext \
19949     conftest$ac_exeext conftest.$ac_ext
19950      CPPFLAGS="$gt_save_CPPFLAGS"
19951      LIBS="$gt_save_LIBS"
19952 fi
19953 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFLocaleCopyCurrent" >&5
19954 $as_echo "$gt_cv_func_CFLocaleCopyCurrent" >&6; }
19955   if test $gt_cv_func_CFLocaleCopyCurrent = yes; then
19956
19957 $as_echo "#define HAVE_CFLOCALECOPYCURRENT 1" >>confdefs.h
19958
19959   fi
19960   INTL_MACOSX_LIBS=
19961   if test $gt_cv_func_CFPreferencesCopyAppValue = yes || test $gt_cv_func_CFLocaleCopyCurrent = yes; then
19962     INTL_MACOSX_LIBS="-Wl,-framework -Wl,CoreFoundation"
19963   fi
19964
19965
19966
19967
19968   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
19969 $as_echo_n "checking whether NLS is requested... " >&6; }
19970     # Check whether --enable-nls was given.
19971 if test "${enable_nls+set}" = set; then :
19972   enableval=$enable_nls; USE_NLS=$enableval
19973 else
19974   USE_NLS=yes
19975 fi
19976
19977   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
19978 $as_echo "$USE_NLS" >&6; }
19979
19980
19981
19982
19983     BUILD_INCLUDED_LIBINTL=no
19984     USE_INCLUDED_LIBINTL=no
19985
19986   LIBINTL=
19987   LTLIBINTL=
19988   POSUB=
19989
19990     if test "$USE_NLS" = "yes"; then
19991     gt_use_preinstalled_gnugettext=no
19992
19993       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether included gettext is requested" >&5
19994 $as_echo_n "checking whether included gettext is requested... " >&6; }
19995
19996 # Check whether --with-included-gettext was given.
19997 if test "${with_included_gettext+set}" = set; then :
19998   withval=$with_included_gettext; nls_cv_force_use_gnu_gettext=$withval
19999 else
20000   nls_cv_force_use_gnu_gettext=no
20001 fi
20002
20003       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $nls_cv_force_use_gnu_gettext" >&5
20004 $as_echo "$nls_cv_force_use_gnu_gettext" >&6; }
20005
20006       nls_cv_use_gnu_gettext="$nls_cv_force_use_gnu_gettext"
20007       if test "$nls_cv_force_use_gnu_gettext" != "yes"; then
20008
20009
20010
20011
20012
20013
20014         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libc" >&5
20015 $as_echo_n "checking for GNU gettext in libc... " >&6; }
20016 if test "${gt_cv_func_gnugettext1_libc+set}" = set; then :
20017   $as_echo_n "(cached) " >&6
20018 else
20019   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20020 /* end confdefs.h.  */
20021 #include <libintl.h>
20022 extern int _nl_msg_cat_cntr;
20023 extern int *_nl_domain_bindings;
20024 int
20025 main ()
20026 {
20027 bindtextdomain ("", "");
20028 return * gettext ("") + _nl_msg_cat_cntr + *_nl_domain_bindings
20029   ;
20030   return 0;
20031 }
20032 _ACEOF
20033 if ac_fn_c_try_link "$LINENO"; then :
20034   gt_cv_func_gnugettext1_libc=yes
20035 else
20036   gt_cv_func_gnugettext1_libc=no
20037 fi
20038 rm -f core conftest.err conftest.$ac_objext \
20039     conftest$ac_exeext conftest.$ac_ext
20040 fi
20041 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_gnugettext1_libc" >&5
20042 $as_echo "$gt_cv_func_gnugettext1_libc" >&6; }
20043
20044         if test "$gt_cv_func_gnugettext1_libc" != "yes"; then
20045
20046
20047
20048     use_additional=yes
20049
20050   acl_save_prefix="$prefix"
20051   prefix="$acl_final_prefix"
20052   acl_save_exec_prefix="$exec_prefix"
20053   exec_prefix="$acl_final_exec_prefix"
20054
20055     eval additional_includedir=\"$includedir\"
20056     eval additional_libdir=\"$libdir\"
20057
20058   exec_prefix="$acl_save_exec_prefix"
20059   prefix="$acl_save_prefix"
20060
20061
20062 # Check whether --with-libintl-prefix was given.
20063 if test "${with_libintl_prefix+set}" = set; then :
20064   withval=$with_libintl_prefix;
20065     if test "X$withval" = "Xno"; then
20066       use_additional=no
20067     else
20068       if test "X$withval" = "X"; then
20069
20070   acl_save_prefix="$prefix"
20071   prefix="$acl_final_prefix"
20072   acl_save_exec_prefix="$exec_prefix"
20073   exec_prefix="$acl_final_exec_prefix"
20074
20075           eval additional_includedir=\"$includedir\"
20076           eval additional_libdir=\"$libdir\"
20077
20078   exec_prefix="$acl_save_exec_prefix"
20079   prefix="$acl_save_prefix"
20080
20081       else
20082         additional_includedir="$withval/include"
20083         additional_libdir="$withval/lib"
20084       fi
20085     fi
20086
20087 fi
20088
20089       LIBINTL=
20090   LTLIBINTL=
20091   INCINTL=
20092   rpathdirs=
20093   ltrpathdirs=
20094   names_already_handled=
20095   names_next_round='intl '
20096   while test -n "$names_next_round"; do
20097     names_this_round="$names_next_round"
20098     names_next_round=
20099     for name in $names_this_round; do
20100       already_handled=
20101       for n in $names_already_handled; do
20102         if test "$n" = "$name"; then
20103           already_handled=yes
20104           break
20105         fi
20106       done
20107       if test -z "$already_handled"; then
20108         names_already_handled="$names_already_handled $name"
20109                         uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
20110         eval value=\"\$HAVE_LIB$uppername\"
20111         if test -n "$value"; then
20112           if test "$value" = yes; then
20113             eval value=\"\$LIB$uppername\"
20114             test -z "$value" || LIBINTL="${LIBINTL}${LIBINTL:+ }$value"
20115             eval value=\"\$LTLIB$uppername\"
20116             test -z "$value" || LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$value"
20117           else
20118                                     :
20119           fi
20120         else
20121                               found_dir=
20122           found_la=
20123           found_so=
20124           found_a=
20125           if test $use_additional = yes; then
20126             if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
20127               found_dir="$additional_libdir"
20128               found_so="$additional_libdir/lib$name.$shlibext"
20129               if test -f "$additional_libdir/lib$name.la"; then
20130                 found_la="$additional_libdir/lib$name.la"
20131               fi
20132             else
20133               if test -f "$additional_libdir/lib$name.$libext"; then
20134                 found_dir="$additional_libdir"
20135                 found_a="$additional_libdir/lib$name.$libext"
20136                 if test -f "$additional_libdir/lib$name.la"; then
20137                   found_la="$additional_libdir/lib$name.la"
20138                 fi
20139               fi
20140             fi
20141           fi
20142           if test "X$found_dir" = "X"; then
20143             for x in $LDFLAGS $LTLIBINTL; do
20144
20145   acl_save_prefix="$prefix"
20146   prefix="$acl_final_prefix"
20147   acl_save_exec_prefix="$exec_prefix"
20148   exec_prefix="$acl_final_exec_prefix"
20149   eval x=\"$x\"
20150   exec_prefix="$acl_save_exec_prefix"
20151   prefix="$acl_save_prefix"
20152
20153               case "$x" in
20154                 -L*)
20155                   dir=`echo "X$x" | sed -e 's/^X-L//'`
20156                   if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
20157                     found_dir="$dir"
20158                     found_so="$dir/lib$name.$shlibext"
20159                     if test -f "$dir/lib$name.la"; then
20160                       found_la="$dir/lib$name.la"
20161                     fi
20162                   else
20163                     if test -f "$dir/lib$name.$libext"; then
20164                       found_dir="$dir"
20165                       found_a="$dir/lib$name.$libext"
20166                       if test -f "$dir/lib$name.la"; then
20167                         found_la="$dir/lib$name.la"
20168                       fi
20169                     fi
20170                   fi
20171                   ;;
20172               esac
20173               if test "X$found_dir" != "X"; then
20174                 break
20175               fi
20176             done
20177           fi
20178           if test "X$found_dir" != "X"; then
20179                         LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$found_dir -l$name"
20180             if test "X$found_so" != "X"; then
20181                                                         if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
20182                                 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
20183               else
20184                                                                                 haveit=
20185                 for x in $ltrpathdirs; do
20186                   if test "X$x" = "X$found_dir"; then
20187                     haveit=yes
20188                     break
20189                   fi
20190                 done
20191                 if test -z "$haveit"; then
20192                   ltrpathdirs="$ltrpathdirs $found_dir"
20193                 fi
20194                                 if test "$hardcode_direct" = yes; then
20195                                                       LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
20196                 else
20197                   if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
20198                                                             LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
20199                                                             haveit=
20200                     for x in $rpathdirs; do
20201                       if test "X$x" = "X$found_dir"; then
20202                         haveit=yes
20203                         break
20204                       fi
20205                     done
20206                     if test -z "$haveit"; then
20207                       rpathdirs="$rpathdirs $found_dir"
20208                     fi
20209                   else
20210                                                                                 haveit=
20211                     for x in $LDFLAGS $LIBINTL; do
20212
20213   acl_save_prefix="$prefix"
20214   prefix="$acl_final_prefix"
20215   acl_save_exec_prefix="$exec_prefix"
20216   exec_prefix="$acl_final_exec_prefix"
20217   eval x=\"$x\"
20218   exec_prefix="$acl_save_exec_prefix"
20219   prefix="$acl_save_prefix"
20220
20221                       if test "X$x" = "X-L$found_dir"; then
20222                         haveit=yes
20223                         break
20224                       fi
20225                     done
20226                     if test -z "$haveit"; then
20227                       LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir"
20228                     fi
20229                     if test "$hardcode_minus_L" != no; then
20230                                                                                         LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
20231                     else
20232                                                                                                                                                                                 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
20233                     fi
20234                   fi
20235                 fi
20236               fi
20237             else
20238               if test "X$found_a" != "X"; then
20239                                 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_a"
20240               else
20241                                                 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir -l$name"
20242               fi
20243             fi
20244                         additional_includedir=
20245             case "$found_dir" in
20246               */lib | */lib/)
20247                 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
20248                 additional_includedir="$basedir/include"
20249                 ;;
20250             esac
20251             if test "X$additional_includedir" != "X"; then
20252                                                                                                                 if test "X$additional_includedir" != "X/usr/include"; then
20253                 haveit=
20254                 if test "X$additional_includedir" = "X/usr/local/include"; then
20255                   if test -n "$GCC"; then
20256                     case $host_os in
20257                       linux* | gnu* | k*bsd*-gnu) haveit=yes;;
20258                     esac
20259                   fi
20260                 fi
20261                 if test -z "$haveit"; then
20262                   for x in $CPPFLAGS $INCINTL; do
20263
20264   acl_save_prefix="$prefix"
20265   prefix="$acl_final_prefix"
20266   acl_save_exec_prefix="$exec_prefix"
20267   exec_prefix="$acl_final_exec_prefix"
20268   eval x=\"$x\"
20269   exec_prefix="$acl_save_exec_prefix"
20270   prefix="$acl_save_prefix"
20271
20272                     if test "X$x" = "X-I$additional_includedir"; then
20273                       haveit=yes
20274                       break
20275                     fi
20276                   done
20277                   if test -z "$haveit"; then
20278                     if test -d "$additional_includedir"; then
20279                                             INCINTL="${INCINTL}${INCINTL:+ }-I$additional_includedir"
20280                     fi
20281                   fi
20282                 fi
20283               fi
20284             fi
20285                         if test -n "$found_la"; then
20286                                                         save_libdir="$libdir"
20287               case "$found_la" in
20288                 */* | *\\*) . "$found_la" ;;
20289                 *) . "./$found_la" ;;
20290               esac
20291               libdir="$save_libdir"
20292                             for dep in $dependency_libs; do
20293                 case "$dep" in
20294                   -L*)
20295                     additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
20296                                                                                                                                                                 if test "X$additional_libdir" != "X/usr/lib"; then
20297                       haveit=
20298                       if test "X$additional_libdir" = "X/usr/local/lib"; then
20299                         if test -n "$GCC"; then
20300                           case $host_os in
20301                             linux* | gnu* | k*bsd*-gnu) haveit=yes;;
20302                           esac
20303                         fi
20304                       fi
20305                       if test -z "$haveit"; then
20306                         haveit=
20307                         for x in $LDFLAGS $LIBINTL; do
20308
20309   acl_save_prefix="$prefix"
20310   prefix="$acl_final_prefix"
20311   acl_save_exec_prefix="$exec_prefix"
20312   exec_prefix="$acl_final_exec_prefix"
20313   eval x=\"$x\"
20314   exec_prefix="$acl_save_exec_prefix"
20315   prefix="$acl_save_prefix"
20316
20317                           if test "X$x" = "X-L$additional_libdir"; then
20318                             haveit=yes
20319                             break
20320                           fi
20321                         done
20322                         if test -z "$haveit"; then
20323                           if test -d "$additional_libdir"; then
20324                                                         LIBINTL="${LIBINTL}${LIBINTL:+ }-L$additional_libdir"
20325                           fi
20326                         fi
20327                         haveit=
20328                         for x in $LDFLAGS $LTLIBINTL; do
20329
20330   acl_save_prefix="$prefix"
20331   prefix="$acl_final_prefix"
20332   acl_save_exec_prefix="$exec_prefix"
20333   exec_prefix="$acl_final_exec_prefix"
20334   eval x=\"$x\"
20335   exec_prefix="$acl_save_exec_prefix"
20336   prefix="$acl_save_prefix"
20337
20338                           if test "X$x" = "X-L$additional_libdir"; then
20339                             haveit=yes
20340                             break
20341                           fi
20342                         done
20343                         if test -z "$haveit"; then
20344                           if test -d "$additional_libdir"; then
20345                                                         LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$additional_libdir"
20346                           fi
20347                         fi
20348                       fi
20349                     fi
20350                     ;;
20351                   -R*)
20352                     dir=`echo "X$dep" | sed -e 's/^X-R//'`
20353                     if test "$enable_rpath" != no; then
20354                                                                   haveit=
20355                       for x in $rpathdirs; do
20356                         if test "X$x" = "X$dir"; then
20357                           haveit=yes
20358                           break
20359                         fi
20360                       done
20361                       if test -z "$haveit"; then
20362                         rpathdirs="$rpathdirs $dir"
20363                       fi
20364                                                                   haveit=
20365                       for x in $ltrpathdirs; do
20366                         if test "X$x" = "X$dir"; then
20367                           haveit=yes
20368                           break
20369                         fi
20370                       done
20371                       if test -z "$haveit"; then
20372                         ltrpathdirs="$ltrpathdirs $dir"
20373                       fi
20374                     fi
20375                     ;;
20376                   -l*)
20377                                         names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
20378                     ;;
20379                   *.la)
20380                                                                                 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
20381                     ;;
20382                   *)
20383                                         LIBINTL="${LIBINTL}${LIBINTL:+ }$dep"
20384                     LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$dep"
20385                     ;;
20386                 esac
20387               done
20388             fi
20389           else
20390                                                             LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
20391             LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-l$name"
20392           fi
20393         fi
20394       fi
20395     done
20396   done
20397   if test "X$rpathdirs" != "X"; then
20398     if test -n "$hardcode_libdir_separator"; then
20399                         alldirs=
20400       for found_dir in $rpathdirs; do
20401         alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
20402       done
20403             acl_save_libdir="$libdir"
20404       libdir="$alldirs"
20405       eval flag=\"$hardcode_libdir_flag_spec\"
20406       libdir="$acl_save_libdir"
20407       LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
20408     else
20409             for found_dir in $rpathdirs; do
20410         acl_save_libdir="$libdir"
20411         libdir="$found_dir"
20412         eval flag=\"$hardcode_libdir_flag_spec\"
20413         libdir="$acl_save_libdir"
20414         LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
20415       done
20416     fi
20417   fi
20418   if test "X$ltrpathdirs" != "X"; then
20419             for found_dir in $ltrpathdirs; do
20420       LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-R$found_dir"
20421     done
20422   fi
20423
20424           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libintl" >&5
20425 $as_echo_n "checking for GNU gettext in libintl... " >&6; }
20426 if test "${gt_cv_func_gnugettext1_libintl+set}" = set; then :
20427   $as_echo_n "(cached) " >&6
20428 else
20429   gt_save_CPPFLAGS="$CPPFLAGS"
20430             CPPFLAGS="$CPPFLAGS $INCINTL"
20431             gt_save_LIBS="$LIBS"
20432             LIBS="$LIBS $LIBINTL"
20433                         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20434 /* end confdefs.h.  */
20435 #include <libintl.h>
20436 extern int _nl_msg_cat_cntr;
20437 extern
20438 #ifdef __cplusplus
20439 "C"
20440 #endif
20441 const char *_nl_expand_alias (const char *);
20442 int
20443 main ()
20444 {
20445 bindtextdomain ("", "");
20446 return * gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias ("")
20447   ;
20448   return 0;
20449 }
20450 _ACEOF
20451 if ac_fn_c_try_link "$LINENO"; then :
20452   gt_cv_func_gnugettext1_libintl=yes
20453 else
20454   gt_cv_func_gnugettext1_libintl=no
20455 fi
20456 rm -f core conftest.err conftest.$ac_objext \
20457     conftest$ac_exeext conftest.$ac_ext
20458                         if test "$gt_cv_func_gnugettext1_libintl" != yes && test -n "$LIBICONV"; then
20459               LIBS="$LIBS $LIBICONV"
20460               cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20461 /* end confdefs.h.  */
20462 #include <libintl.h>
20463 extern int _nl_msg_cat_cntr;
20464 extern
20465 #ifdef __cplusplus
20466 "C"
20467 #endif
20468 const char *_nl_expand_alias (const char *);
20469 int
20470 main ()
20471 {
20472 bindtextdomain ("", "");
20473 return * gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias ("")
20474   ;
20475   return 0;
20476 }
20477 _ACEOF
20478 if ac_fn_c_try_link "$LINENO"; then :
20479   LIBINTL="$LIBINTL $LIBICONV"
20480                 LTLIBINTL="$LTLIBINTL $LTLIBICONV"
20481                 gt_cv_func_gnugettext1_libintl=yes
20482
20483 fi
20484 rm -f core conftest.err conftest.$ac_objext \
20485     conftest$ac_exeext conftest.$ac_ext
20486             fi
20487             CPPFLAGS="$gt_save_CPPFLAGS"
20488             LIBS="$gt_save_LIBS"
20489 fi
20490 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_gnugettext1_libintl" >&5
20491 $as_echo "$gt_cv_func_gnugettext1_libintl" >&6; }
20492         fi
20493
20494                                         if test "$gt_cv_func_gnugettext1_libc" = "yes" \
20495            || { test "$gt_cv_func_gnugettext1_libintl" = "yes" \
20496                 && test "$PACKAGE" != gettext-runtime \
20497                 && test "$PACKAGE" != gettext-tools; }; then
20498           gt_use_preinstalled_gnugettext=yes
20499         else
20500                     LIBINTL=
20501           LTLIBINTL=
20502           INCINTL=
20503         fi
20504
20505
20506         if test "$gt_use_preinstalled_gnugettext" != "yes"; then
20507                               nls_cv_use_gnu_gettext=yes
20508         fi
20509       fi
20510
20511       if test "$nls_cv_use_gnu_gettext" = "yes"; then
20512                 BUILD_INCLUDED_LIBINTL=yes
20513         USE_INCLUDED_LIBINTL=yes
20514         LIBINTL="\${top_builddir}/intl/libintl.a $LIBICONV"
20515         LTLIBINTL="\${top_builddir}/intl/libintl.a $LTLIBICONV"
20516         LIBS=`echo " $LIBS " | sed -e 's/ -lintl / /' -e 's/^ //' -e 's/ $//'`
20517       fi
20518
20519       CATOBJEXT=
20520       if test "$gt_use_preinstalled_gnugettext" = "yes" \
20521          || test "$nls_cv_use_gnu_gettext" = "yes"; then
20522                 CATOBJEXT=.gmo
20523       fi
20524
20525
20526     if test -n "$INTL_MACOSX_LIBS"; then
20527       if test "$gt_use_preinstalled_gnugettext" = "yes" \
20528          || test "$nls_cv_use_gnu_gettext" = "yes"; then
20529                 LIBINTL="$LIBINTL $INTL_MACOSX_LIBS"
20530         LTLIBINTL="$LTLIBINTL $INTL_MACOSX_LIBS"
20531       fi
20532     fi
20533
20534     if test "$gt_use_preinstalled_gnugettext" = "yes" \
20535        || test "$nls_cv_use_gnu_gettext" = "yes"; then
20536
20537 $as_echo "#define ENABLE_NLS 1" >>confdefs.h
20538
20539     else
20540       USE_NLS=no
20541     fi
20542   fi
20543
20544   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use NLS" >&5
20545 $as_echo_n "checking whether to use NLS... " >&6; }
20546   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
20547 $as_echo "$USE_NLS" >&6; }
20548   if test "$USE_NLS" = "yes"; then
20549     { $as_echo "$as_me:${as_lineno-$LINENO}: checking where the gettext function comes from" >&5
20550 $as_echo_n "checking where the gettext function comes from... " >&6; }
20551     if test "$gt_use_preinstalled_gnugettext" = "yes"; then
20552       if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
20553         gt_source="external libintl"
20554       else
20555         gt_source="libc"
20556       fi
20557     else
20558       gt_source="included intl directory"
20559     fi
20560     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_source" >&5
20561 $as_echo "$gt_source" >&6; }
20562   fi
20563
20564   if test "$USE_NLS" = "yes"; then
20565
20566     if test "$gt_use_preinstalled_gnugettext" = "yes"; then
20567       if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
20568         { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libintl" >&5
20569 $as_echo_n "checking how to link with libintl... " >&6; }
20570         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBINTL" >&5
20571 $as_echo "$LIBINTL" >&6; }
20572
20573   for element in $INCINTL; do
20574     haveit=
20575     for x in $CPPFLAGS; do
20576
20577   acl_save_prefix="$prefix"
20578   prefix="$acl_final_prefix"
20579   acl_save_exec_prefix="$exec_prefix"
20580   exec_prefix="$acl_final_exec_prefix"
20581   eval x=\"$x\"
20582   exec_prefix="$acl_save_exec_prefix"
20583   prefix="$acl_save_prefix"
20584
20585       if test "X$x" = "X$element"; then
20586         haveit=yes
20587         break
20588       fi
20589     done
20590     if test -z "$haveit"; then
20591       CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
20592     fi
20593   done
20594
20595       fi
20596
20597
20598 $as_echo "#define HAVE_GETTEXT 1" >>confdefs.h
20599
20600
20601 $as_echo "#define HAVE_DCGETTEXT 1" >>confdefs.h
20602
20603     fi
20604
20605         POSUB=po
20606   fi
20607
20608
20609             if test "$PACKAGE" = gettext-runtime || test "$PACKAGE" = gettext-tools; then
20610       BUILD_INCLUDED_LIBINTL=yes
20611     fi
20612
20613
20614
20615
20616
20617         nls_cv_header_intl=
20618     nls_cv_header_libgt=
20619
20620         DATADIRNAME=share
20621
20622
20623         INSTOBJEXT=.mo
20624
20625
20626         GENCAT=gencat
20627
20628
20629         INTLOBJS=
20630     if test "$USE_INCLUDED_LIBINTL" = yes; then
20631       INTLOBJS="\$(GETTOBJS)"
20632     fi
20633
20634
20635         INTL_LIBTOOL_SUFFIX_PREFIX=
20636
20637
20638
20639     INTLLIBS="$LIBINTL"
20640
20641
20642
20643
20644
20645
20646 fi
20647
20648 support_smartalloc=yes
20649 support_readline=yes
20650 support_conio=yes
20651 support_gnome=no
20652 support_bat=no
20653 support_wx_console=no
20654 support_tray_monitor=no
20655 support_tls=no
20656 support_crypto=no
20657 gnome_version=
20658 wx_version=
20659 support_static_tools=no
20660 support_static_fd=no
20661 support_static_sd=no
20662 support_static_dir=no
20663 support_static_cons=no
20664 support_python=no
20665 build_client_only=no
20666 build_dird=yes
20667 build_stored=yes
20668 db_backends=""
20669 support_lockmgr=no
20670
20671
20672 # Check whether --enable-gnome was given.
20673 if test "${enable_gnome+set}" = set; then :
20674   enableval=$enable_gnome;
20675        if test x$enableval = xyes; then
20676           support_gnome=yes
20677        fi
20678
20679
20680 fi
20681
20682
20683 GNOME_DIR=
20684 if test x$support_gnome = xyes; then
20685    as_fn_error "bgnome-console no longer supported" "$LINENO" 5
20686    as_fn_error "--enable-gnome option no longer supported" "$LINENO" 5
20687 fi
20688 # AC_SUBST(GNOME_DIR)
20689
20690 # Check whether --enable-bat was given.
20691 if test "${enable_bat+set}" = set; then :
20692   enableval=$enable_bat;
20693        if test x$enableval = xyes; then
20694
20695 $as_echo "#define HAVE_BAT 1" >>confdefs.h
20696
20697           support_bat=yes
20698        fi
20699
20700
20701 fi
20702
20703
20704 BAT_DIR=
20705 if test x$support_bat = xyes; then
20706    abc=`$PKGCONFIG --atleast-version=4.2 QtGui`
20707    pkg=$?
20708    if test $pkg = 0; then
20709       BAT_DIR=src/qt-console
20710    else
20711       as_fn_error "Unable to find Qt4 installation needed by bat" "$LINENO" 5
20712    fi
20713 fi
20714
20715 got_qwt=no
20716 QWT_INC=
20717 QWT_LDFLAGS=
20718 QWT_LIB=
20719 QWT=
20720 no_qwt=no
20721
20722
20723
20724
20725
20726
20727
20728
20729 # Check whether --enable-bwx-console was given.
20730 if test "${enable_bwx_console+set}" = set; then :
20731   enableval=$enable_bwx_console;
20732        if test x$enableval = xyes; then
20733           support_wx_console=yes
20734        fi
20735
20736
20737 fi
20738
20739
20740 WX_DIR=
20741 if test x$support_wx_console = xyes; then
20742    abc=`$WXCONFIG $WXFLAGS --cppflags`
20743    pkg=$?
20744    if test $pkg = 0; then
20745       wx_version="wxWidgets `$WXCONFIG $WXFLAGS --release`"
20746       WXCONS_CPPFLAGS=`$WXCONFIG $WXFLAGS --cppflags`
20747       WXCONS_LDFLAGS=`$WXCONFIG $WXFLAGS --libs`
20748
20749
20750
20751       WX_DIR="src/wx-console"
20752    else
20753       echo " "
20754       echo "wx-config program not found. bwx-console disabled."
20755       echo " "
20756       support_wx_console=no
20757    fi
20758 fi
20759
20760
20761 # Check whether --enable-tray-monitor was given.
20762 if test "${enable_tray_monitor+set}" = set; then :
20763   enableval=$enable_tray_monitor;
20764        if test x$enableval = xyes; then
20765           support_tray_monitor=yes
20766        fi
20767
20768
20769 fi
20770
20771
20772 TRAY_MONITOR_DIR=
20773 if test x$support_tray_monitor = xyes; then
20774    abc=`$PKGCONFIG --exists gtk+-2.0`
20775    pkg=$?
20776    if test $pkg = 0; then
20777       TRAY_MONITOR_CPPFLAGS=`$PKGCONFIG --cflags gtk+-2.0`
20778       TRAY_MONITOR_LDFLAGS=`$PKGCONFIG --libs gtk+-2.0`
20779
20780
20781       TRAY_MONITOR_DIR=src/tray-monitor
20782       abc=`$PKGCONFIG --atleast-version=2.4 gtk+-2.0`
20783       pkg=$?
20784       if test $pkg = 0; then
20785
20786 $as_echo "#define HAVE_GTK_2_4 1" >>confdefs.h
20787
20788       fi
20789    fi
20790 fi
20791
20792
20793 # Check whether --enable-smartalloc was given.
20794 if test "${enable_smartalloc+set}" = set; then :
20795   enableval=$enable_smartalloc;
20796        if test x$enableval = xno; then
20797           support_smartalloc=no
20798        fi
20799
20800
20801 fi
20802
20803
20804 if test x$support_smartalloc = xyes; then
20805
20806 $as_echo "#define SMARTALLOC 1" >>confdefs.h
20807
20808 fi
20809
20810 # Check whether --enable-lockmgr was given.
20811 if test "${enable_lockmgr+set}" = set; then :
20812   enableval=$enable_lockmgr;
20813        if test x$enableval = xyes; then
20814           support_lockmgr=yes
20815        fi
20816
20817
20818 fi
20819
20820
20821 if test x$support_lockmgr = xyes; then
20822
20823 $as_echo "#define _USE_LOCKMGR 1" >>confdefs.h
20824
20825 fi
20826
20827
20828 # Check whether --enable-static-tools was given.
20829 if test "${enable_static_tools+set}" = set; then :
20830   enableval=$enable_static_tools;
20831        if test x$enableval = xyes; then
20832           if test x$use_libtool = xyes; then
20833              as_fn_error "Libtool is enabled, not compatible with static tools,
20834   please rerun configure with --disable-libtool" "$LINENO" 5
20835           fi
20836           support_static_tools=yes
20837        fi
20838
20839
20840 fi
20841
20842
20843 TTOOL_LDFLAGS=
20844 if test x$support_static_tools = xyes; then
20845    TTOOL_LDFLAGS="-static"
20846 fi
20847
20848
20849 # Check whether --enable-static-fd was given.
20850 if test "${enable_static_fd+set}" = set; then :
20851   enableval=$enable_static_fd;
20852        if test x$enableval = xyes; then
20853           if test x$use_libtool = xyes; then
20854              as_fn_error "Libtool is enabled, not compatible with static tools,
20855   please rerun configure with --disable-libtool" "$LINENO" 5
20856           fi
20857           support_static_fd=yes
20858        fi
20859
20860
20861 fi
20862
20863
20864 STATIC_FD=
20865 if test x$support_static_fd = xyes; then
20866    STATIC_FD="static-bacula-fd"
20867 fi
20868
20869
20870 # Check whether --enable-static-sd was given.
20871 if test "${enable_static_sd+set}" = set; then :
20872   enableval=$enable_static_sd;
20873        if test x$enableval = xyes; then
20874           if test x$use_libtool = xyes; then
20875              as_fn_error "Libtool is enabled, not compatible with static tools,
20876   please rerun configure with --disable-libtool" "$LINENO" 5
20877           fi
20878           support_static_sd=yes
20879        fi
20880
20881
20882 fi
20883
20884
20885 STATIC_SD=
20886 if test x$support_static_sd = xyes; then
20887    STATIC_SD="static-bacula-sd"
20888 fi
20889
20890
20891 # Check whether --enable-static-dir was given.
20892 if test "${enable_static_dir+set}" = set; then :
20893   enableval=$enable_static_dir;
20894        if test x$enableval = xyes; then
20895           if test x$use_libtool = xyes; then
20896              as_fn_error "Libtool is enabled, not compatible with static tools,
20897   please rerun configure with --disable-libtool" "$LINENO" 5
20898           fi
20899           support_static_dir=yes
20900        fi
20901
20902
20903 fi
20904
20905
20906 STATIC_DIR=
20907 if test x$support_static_dir = xyes; then
20908    STATIC_DIR="static-bacula-dir"
20909 fi
20910
20911
20912 # Check whether --enable-static-cons was given.
20913 if test "${enable_static_cons+set}" = set; then :
20914   enableval=$enable_static_cons;
20915        if test x$enableval = xyes; then
20916           if test x$use_libtool = xyes; then
20917              as_fn_error "Libtool is enabled, not compatible with static tools,
20918   please rerun configure with --disable-libtool" "$LINENO" 5
20919           fi
20920           support_static_cons=yes
20921        fi
20922
20923
20924 fi
20925
20926
20927 STATIC_CONS=
20928 STATIC_GNOME_CONS=
20929 STATIC_WX_CONS=
20930 if test x$support_static_cons = xyes; then
20931    STATIC_CONS="static-bconsole"
20932    STATIC_GNOME_CONS="static-bgnome-console"
20933    STATIC_WX_CONS="static-bwx-console"
20934 fi
20935
20936
20937
20938
20939 # Check whether --enable-client-only was given.
20940 if test "${enable_client_only+set}" = set; then :
20941   enableval=$enable_client_only;
20942        if test x$enableval = xyes; then
20943           build_client_only=yes
20944           db_backends="None"
20945           DB_BACKENDS="none"
20946        fi
20947
20948
20949 fi
20950
20951 if test x$build_client_only = xno; then
20952    ALL_DIRS="subdirs"
20953 else
20954    ALL_DIRS=""
20955 fi
20956
20957
20958 # Check whether --enable-build-dird was given.
20959 if test "${enable_build_dird+set}" = set; then :
20960   enableval=$enable_build_dird;
20961        if test x$enableval = xno; then
20962           build_dird=no
20963        fi
20964
20965
20966 fi
20967
20968 if test x$build_dird = xyes; then
20969    DIRD_DIR="src/dird"
20970    DIR_TOOLS="DIRTOOLS"
20971 else
20972    DIRD_DIR=""
20973    DIR_TOOLS="NODIRTOOLS"
20974 fi
20975
20976
20977
20978 # Check whether --enable-build-stored was given.
20979 if test "${enable_build_stored+set}" = set; then :
20980   enableval=$enable_build_stored;
20981       if test x$enableval = xno; then
20982          build_stored=no
20983       fi
20984
20985
20986 fi
20987
20988 if test x$build_stored = xyes; then
20989    STORED_DIR="src/stored"
20990 else
20991    STORED_DIR=""
20992 fi
20993
20994
20995 # Check whether --enable-conio was given.
20996 if test "${enable_conio+set}" = set; then :
20997   enableval=$enable_conio;
20998        if test x$enableval = xno; then
20999           support_conio=no
21000        fi
21001
21002
21003 fi
21004
21005
21006
21007 support_ipv6=yes
21008 # Check whether --enable-ipv6 was given.
21009 if test "${enable_ipv6+set}" = set; then :
21010   enableval=$enable_ipv6;
21011        if test x$enableval = xno; then
21012           support_ipv6=no
21013        fi
21014
21015
21016 fi
21017
21018
21019 if test x$support_ipv6 = xyes; then
21020     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21021 /* end confdefs.h.  */
21022  #include <sys/types.h>
21023 #include <sys/socket.h>
21024 #include <netinet/in.h>
21025 int
21026 main ()
21027 {
21028 struct sockaddr_in6 s; struct in6_addr t=in6addr_any; int i=AF_INET6; s; t.s6_addr[0] = 0;
21029   ;
21030   return 0;
21031 }
21032 _ACEOF
21033 if ac_fn_c_try_link "$LINENO"; then :
21034   support_ipv6=yes
21035 else
21036   support_ipv6=no
21037 fi
21038 rm -f core conftest.err conftest.$ac_objext \
21039     conftest$ac_exeext conftest.$ac_ext
21040 fi
21041
21042 if test x$support_ipv6 = xyes; then
21043
21044 $as_echo "#define HAVE_IPV6 1" >>confdefs.h
21045
21046 fi
21047
21048 TERM_LIB=""
21049 ac_fn_c_check_header_mongrel "$LINENO" "curses.h" "ac_cv_header_curses_h" "$ac_includes_default"
21050 if test "x$ac_cv_header_curses_h" = x""yes; then :
21051
21052     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tgetent in -ltinfo" >&5
21053 $as_echo_n "checking for tgetent in -ltinfo... " >&6; }
21054 if test "${ac_cv_lib_tinfo_tgetent+set}" = set; then :
21055   $as_echo_n "(cached) " >&6
21056 else
21057   ac_check_lib_save_LIBS=$LIBS
21058 LIBS="-ltinfo  $LIBS"
21059 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21060 /* end confdefs.h.  */
21061
21062 /* Override any GCC internal prototype to avoid an error.
21063    Use char because int might match the return type of a GCC
21064    builtin and then its argument prototype would still apply.  */
21065 #ifdef __cplusplus
21066 extern "C"
21067 #endif
21068 char tgetent ();
21069 int
21070 main ()
21071 {
21072 return tgetent ();
21073   ;
21074   return 0;
21075 }
21076 _ACEOF
21077 if ac_fn_c_try_link "$LINENO"; then :
21078   ac_cv_lib_tinfo_tgetent=yes
21079 else
21080   ac_cv_lib_tinfo_tgetent=no
21081 fi
21082 rm -f core conftest.err conftest.$ac_objext \
21083     conftest$ac_exeext conftest.$ac_ext
21084 LIBS=$ac_check_lib_save_LIBS
21085 fi
21086 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tinfo_tgetent" >&5
21087 $as_echo "$ac_cv_lib_tinfo_tgetent" >&6; }
21088 if test "x$ac_cv_lib_tinfo_tgetent" = x""yes; then :
21089    TERM_LIB="-ltinfo"
21090 else
21091
21092       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tgetent in -lncurses" >&5
21093 $as_echo_n "checking for tgetent in -lncurses... " >&6; }
21094 if test "${ac_cv_lib_ncurses_tgetent+set}" = set; then :
21095   $as_echo_n "(cached) " >&6
21096 else
21097   ac_check_lib_save_LIBS=$LIBS
21098 LIBS="-lncurses  $LIBS"
21099 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21100 /* end confdefs.h.  */
21101
21102 /* Override any GCC internal prototype to avoid an error.
21103    Use char because int might match the return type of a GCC
21104    builtin and then its argument prototype would still apply.  */
21105 #ifdef __cplusplus
21106 extern "C"
21107 #endif
21108 char tgetent ();
21109 int
21110 main ()
21111 {
21112 return tgetent ();
21113   ;
21114   return 0;
21115 }
21116 _ACEOF
21117 if ac_fn_c_try_link "$LINENO"; then :
21118   ac_cv_lib_ncurses_tgetent=yes
21119 else
21120   ac_cv_lib_ncurses_tgetent=no
21121 fi
21122 rm -f core conftest.err conftest.$ac_objext \
21123     conftest$ac_exeext conftest.$ac_ext
21124 LIBS=$ac_check_lib_save_LIBS
21125 fi
21126 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ncurses_tgetent" >&5
21127 $as_echo "$ac_cv_lib_ncurses_tgetent" >&6; }
21128 if test "x$ac_cv_lib_ncurses_tgetent" = x""yes; then :
21129    TERM_LIB="-lncurses"
21130 else
21131
21132         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tgetent in -ltermcap" >&5
21133 $as_echo_n "checking for tgetent in -ltermcap... " >&6; }
21134 if test "${ac_cv_lib_termcap_tgetent+set}" = set; then :
21135   $as_echo_n "(cached) " >&6
21136 else
21137   ac_check_lib_save_LIBS=$LIBS
21138 LIBS="-ltermcap  $LIBS"
21139 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21140 /* end confdefs.h.  */
21141
21142 /* Override any GCC internal prototype to avoid an error.
21143    Use char because int might match the return type of a GCC
21144    builtin and then its argument prototype would still apply.  */
21145 #ifdef __cplusplus
21146 extern "C"
21147 #endif
21148 char tgetent ();
21149 int
21150 main ()
21151 {
21152 return tgetent ();
21153   ;
21154   return 0;
21155 }
21156 _ACEOF
21157 if ac_fn_c_try_link "$LINENO"; then :
21158   ac_cv_lib_termcap_tgetent=yes
21159 else
21160   ac_cv_lib_termcap_tgetent=no
21161 fi
21162 rm -f core conftest.err conftest.$ac_objext \
21163     conftest$ac_exeext conftest.$ac_ext
21164 LIBS=$ac_check_lib_save_LIBS
21165 fi
21166 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_termcap_tgetent" >&5
21167 $as_echo "$ac_cv_lib_termcap_tgetent" >&6; }
21168 if test "x$ac_cv_lib_termcap_tgetent" = x""yes; then :
21169    TERM_LIB="-ltermcap"
21170 fi
21171
21172
21173 fi
21174
21175
21176 fi
21177
21178
21179 else
21180     for ac_header in curses.h
21181 do :
21182   ac_fn_c_check_header_mongrel "$LINENO" "curses.h" "ac_cv_header_curses_h" "$ac_includes_default"
21183 if test "x$ac_cv_header_curses_h" = x""yes; then :
21184   cat >>confdefs.h <<_ACEOF
21185 #define HAVE_CURSES_H 1
21186 _ACEOF
21187
21188 fi
21189
21190 done
21191
21192      ac_fn_c_check_header_mongrel "$LINENO" "term.h" "ac_cv_header_term_h" "$ac_includes_default"
21193 if test "x$ac_cv_header_term_h" = x""yes; then :
21194    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tgetent in -lcurses" >&5
21195 $as_echo_n "checking for tgetent in -lcurses... " >&6; }
21196 if test "${ac_cv_lib_curses_tgetent+set}" = set; then :
21197   $as_echo_n "(cached) " >&6
21198 else
21199   ac_check_lib_save_LIBS=$LIBS
21200 LIBS="-lcurses  $LIBS"
21201 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21202 /* end confdefs.h.  */
21203
21204 /* Override any GCC internal prototype to avoid an error.
21205    Use char because int might match the return type of a GCC
21206    builtin and then its argument prototype would still apply.  */
21207 #ifdef __cplusplus
21208 extern "C"
21209 #endif
21210 char tgetent ();
21211 int
21212 main ()
21213 {
21214 return tgetent ();
21215   ;
21216   return 0;
21217 }
21218 _ACEOF
21219 if ac_fn_c_try_link "$LINENO"; then :
21220   ac_cv_lib_curses_tgetent=yes
21221 else
21222   ac_cv_lib_curses_tgetent=no
21223 fi
21224 rm -f core conftest.err conftest.$ac_objext \
21225     conftest$ac_exeext conftest.$ac_ext
21226 LIBS=$ac_check_lib_save_LIBS
21227 fi
21228 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_curses_tgetent" >&5
21229 $as_echo "$ac_cv_lib_curses_tgetent" >&6; }
21230 if test "x$ac_cv_lib_curses_tgetent" = x""yes; then :
21231    TERM_LIB="-lcurses"
21232 fi
21233
21234
21235 fi
21236
21237
21238
21239 fi
21240
21241
21242
21243
21244 got_conio="no"
21245 if test x$support_conio = xyes; then
21246    if test x$TERM_LIB != x; then
21247       CONS_LIBS=$TERM_LIB
21248       CONS_OBJ="conio.o"
21249       CONS_SRC="conio.c"
21250       got_conio="yes"
21251       support_readline=no
21252
21253 $as_echo "#define HAVE_CONIO 1" >>confdefs.h
21254
21255    else
21256       echo " "; echo "Required libraries not found. CONIO turned off ..."; echo " "],
21257    fi
21258 fi
21259
21260
21261 # Check whether --enable-readline was given.
21262 if test "${enable_readline+set}" = set; then :
21263   enableval=$enable_readline;
21264        if test x$enableval = xno; then
21265           support_readline=no
21266        fi
21267
21268
21269 fi
21270
21271 if test x$TERM_LIB = x ; then
21272    support_readline=no
21273 fi
21274
21275 got_readline="no"
21276 READLINE_SRC=
21277 if test x$support_readline = xyes; then
21278
21279 # Check whether --with-readline was given.
21280 if test "${with_readline+set}" = set; then :
21281   withval=$with_readline;
21282           case "$with_readline" in
21283           no)
21284              :
21285              ;;
21286           yes|*)
21287              if test -f ${with_readline}/readline.h; then
21288                 CONS_INC="-I${with_readline}"
21289                 CONS_LDFLAGS="-L$with_readline"
21290              elif test -f ${with_readline}/include/readline/readline.h; then
21291                 CONS_INC="-I${with_readline}/include/readline"
21292                 CONS_LDFLAGS="-L${with_readline}/lib"
21293                 with_readline="${with_readline}/include/readline"
21294              else
21295                 with_readline="/usr/include/readline"
21296              fi
21297
21298              as_ac_Header=`$as_echo "ac_cv_header_${with_readline}/readline.h" | $as_tr_sh`
21299 ac_fn_c_check_header_mongrel "$LINENO" "${with_readline}/readline.h" "$as_ac_Header" "$ac_includes_default"
21300 eval as_val=\$$as_ac_Header
21301    if test "x$as_val" = x""yes; then :
21302
21303
21304 $as_echo "#define HAVE_READLINE 1" >>confdefs.h
21305
21306                     CONS_LIBS="-lreadline -lhistory $TERM_LIB"
21307                     got_readline="yes"
21308
21309 else
21310
21311                     echo " "
21312                     echo "readline.h not found. readline turned off ..."
21313                     echo " "
21314
21315
21316 fi
21317
21318
21319              ;;
21320           esac
21321
21322 else
21323
21324                  ac_fn_c_check_header_mongrel "$LINENO" "/usr/include/readline/readline.h" "ac_cv_header__usr_include_readline_readline_h" "$ac_includes_default"
21325 if test "x$ac_cv_header__usr_include_readline_readline_h" = x""yes; then :
21326
21327
21328 $as_echo "#define HAVE_READLINE 1" >>confdefs.h
21329
21330                 got_readline="yes"
21331                 CONS_INC="-I/usr/include/readline"
21332                 CONS_LIBS="-lreadline $TERM_LIB"
21333
21334 else
21335
21336                                 as_ac_Header=`$as_echo "ac_cv_header_${TOP_DIR}/depkgs/readline/readline.h" | $as_tr_sh`
21337 ac_fn_c_check_header_mongrel "$LINENO" "${TOP_DIR}/depkgs/readline/readline.h" "$as_ac_Header" "$ac_includes_default"
21338 eval as_val=\$$as_ac_Header
21339    if test "x$as_val" = x""yes; then :
21340
21341
21342 $as_echo "#define HAVE_READLINE 1" >>confdefs.h
21343
21344                         got_readline="yes"
21345                         CONS_INC="-I${TOP_DIR}/depkgs/readline"
21346                         CONS_LIBS="-lreadline -lhistory $TERM_LIB"
21347                         CONS_LDFLAGS="-L${TOP_DIR}/depkgs/readline"
21348                         PRTREADLINE_SRC="${TOP_DIR}/depkgs/readline"
21349
21350 else
21351
21352                         echo " "
21353                         echo "readline.h not found. readline turned off ..."
21354                         echo " "
21355
21356
21357 fi
21358
21359
21360
21361
21362 fi
21363
21364
21365
21366
21367 fi
21368
21369 fi
21370
21371
21372
21373
21374
21375
21376
21377
21378 MAKE_SHELL=/bin/sh
21379
21380 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat file-mode macros are broken" >&5
21381 $as_echo_n "checking whether stat file-mode macros are broken... " >&6; }
21382 if test "${ac_cv_header_stat_broken+set}" = set; then :
21383   $as_echo_n "(cached) " >&6
21384 else
21385   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21386 /* end confdefs.h.  */
21387 #include <sys/types.h>
21388 #include <sys/stat.h>
21389
21390 #if defined S_ISBLK && defined S_IFDIR
21391 extern char c1[S_ISBLK (S_IFDIR) ? -1 : 1];
21392 #endif
21393
21394 #if defined S_ISBLK && defined S_IFCHR
21395 extern char c2[S_ISBLK (S_IFCHR) ? -1 : 1];
21396 #endif
21397
21398 #if defined S_ISLNK && defined S_IFREG
21399 extern char c3[S_ISLNK (S_IFREG) ? -1 : 1];
21400 #endif
21401
21402 #if defined S_ISSOCK && defined S_IFREG
21403 extern char c4[S_ISSOCK (S_IFREG) ? -1 : 1];
21404 #endif
21405
21406 _ACEOF
21407 if ac_fn_c_try_compile "$LINENO"; then :
21408   ac_cv_header_stat_broken=no
21409 else
21410   ac_cv_header_stat_broken=yes
21411 fi
21412 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21413 fi
21414 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stat_broken" >&5
21415 $as_echo "$ac_cv_header_stat_broken" >&6; }
21416 if test $ac_cv_header_stat_broken = yes; then
21417
21418 $as_echo "#define STAT_MACROS_BROKEN 1" >>confdefs.h
21419
21420 fi
21421
21422 ac_header_dirent=no
21423 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
21424   as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
21425 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_hdr that defines DIR" >&5
21426 $as_echo_n "checking for $ac_hdr that defines DIR... " >&6; }
21427 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then :
21428   $as_echo_n "(cached) " >&6
21429 else
21430   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21431 /* end confdefs.h.  */
21432 #include <sys/types.h>
21433 #include <$ac_hdr>
21434
21435 int
21436 main ()
21437 {
21438 if ((DIR *) 0)
21439 return 0;
21440   ;
21441   return 0;
21442 }
21443 _ACEOF
21444 if ac_fn_c_try_compile "$LINENO"; then :
21445   eval "$as_ac_Header=yes"
21446 else
21447   eval "$as_ac_Header=no"
21448 fi
21449 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21450 fi
21451 eval ac_res=\$$as_ac_Header
21452                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
21453 $as_echo "$ac_res" >&6; }
21454 eval as_val=\$$as_ac_Header
21455    if test "x$as_val" = x""yes; then :
21456   cat >>confdefs.h <<_ACEOF
21457 #define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
21458 _ACEOF
21459
21460 ac_header_dirent=$ac_hdr; break
21461 fi
21462
21463 done
21464 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
21465 if test $ac_header_dirent = dirent.h; then
21466   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
21467 $as_echo_n "checking for library containing opendir... " >&6; }
21468 if test "${ac_cv_search_opendir+set}" = set; then :
21469   $as_echo_n "(cached) " >&6
21470 else
21471   ac_func_search_save_LIBS=$LIBS
21472 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21473 /* end confdefs.h.  */
21474
21475 /* Override any GCC internal prototype to avoid an error.
21476    Use char because int might match the return type of a GCC
21477    builtin and then its argument prototype would still apply.  */
21478 #ifdef __cplusplus
21479 extern "C"
21480 #endif
21481 char opendir ();
21482 int
21483 main ()
21484 {
21485 return opendir ();
21486   ;
21487   return 0;
21488 }
21489 _ACEOF
21490 for ac_lib in '' dir; do
21491   if test -z "$ac_lib"; then
21492     ac_res="none required"
21493   else
21494     ac_res=-l$ac_lib
21495     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
21496   fi
21497   if ac_fn_c_try_link "$LINENO"; then :
21498   ac_cv_search_opendir=$ac_res
21499 fi
21500 rm -f core conftest.err conftest.$ac_objext \
21501     conftest$ac_exeext
21502   if test "${ac_cv_search_opendir+set}" = set; then :
21503   break
21504 fi
21505 done
21506 if test "${ac_cv_search_opendir+set}" = set; then :
21507
21508 else
21509   ac_cv_search_opendir=no
21510 fi
21511 rm conftest.$ac_ext
21512 LIBS=$ac_func_search_save_LIBS
21513 fi
21514 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
21515 $as_echo "$ac_cv_search_opendir" >&6; }
21516 ac_res=$ac_cv_search_opendir
21517 if test "$ac_res" != no; then :
21518   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
21519
21520 fi
21521
21522 else
21523   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
21524 $as_echo_n "checking for library containing opendir... " >&6; }
21525 if test "${ac_cv_search_opendir+set}" = set; then :
21526   $as_echo_n "(cached) " >&6
21527 else
21528   ac_func_search_save_LIBS=$LIBS
21529 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21530 /* end confdefs.h.  */
21531
21532 /* Override any GCC internal prototype to avoid an error.
21533    Use char because int might match the return type of a GCC
21534    builtin and then its argument prototype would still apply.  */
21535 #ifdef __cplusplus
21536 extern "C"
21537 #endif
21538 char opendir ();
21539 int
21540 main ()
21541 {
21542 return opendir ();
21543   ;
21544   return 0;
21545 }
21546 _ACEOF
21547 for ac_lib in '' x; do
21548   if test -z "$ac_lib"; then
21549     ac_res="none required"
21550   else
21551     ac_res=-l$ac_lib
21552     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
21553   fi
21554   if ac_fn_c_try_link "$LINENO"; then :
21555   ac_cv_search_opendir=$ac_res
21556 fi
21557 rm -f core conftest.err conftest.$ac_objext \
21558     conftest$ac_exeext
21559   if test "${ac_cv_search_opendir+set}" = set; then :
21560   break
21561 fi
21562 done
21563 if test "${ac_cv_search_opendir+set}" = set; then :
21564
21565 else
21566   ac_cv_search_opendir=no
21567 fi
21568 rm conftest.$ac_ext
21569 LIBS=$ac_func_search_save_LIBS
21570 fi
21571 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
21572 $as_echo "$ac_cv_search_opendir" >&6; }
21573 ac_res=$ac_cv_search_opendir
21574 if test "$ac_res" != no; then :
21575   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
21576
21577 fi
21578
21579 fi
21580
21581 for ac_func in strcasecmp select setenv putenv tcgetattr lstat lchown
21582 do :
21583   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
21584 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
21585 eval as_val=\$$as_ac_var
21586    if test "x$as_val" = x""yes; then :
21587   cat >>confdefs.h <<_ACEOF
21588 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
21589 _ACEOF
21590
21591 fi
21592 done
21593
21594 for ac_func in nanosleep nl_langinfo
21595 do :
21596   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
21597 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
21598 eval as_val=\$$as_ac_var
21599    if test "x$as_val" = x""yes; then :
21600   cat >>confdefs.h <<_ACEOF
21601 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
21602 _ACEOF
21603
21604 fi
21605 done
21606
21607 for ac_header in varargs.h
21608 do :
21609   ac_fn_c_check_header_mongrel "$LINENO" "varargs.h" "ac_cv_header_varargs_h" "$ac_includes_default"
21610 if test "x$ac_cv_header_varargs_h" = x""yes; then :
21611   cat >>confdefs.h <<_ACEOF
21612 #define HAVE_VARARGS_H 1
21613 _ACEOF
21614
21615 fi
21616
21617 done
21618
21619
21620
21621 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Python support" >&5
21622 $as_echo_n "checking for Python support... " >&6; }
21623
21624 # Check whether --with-python was given.
21625 if test "${with_python+set}" = set; then :
21626   withval=$with_python;
21627        PYTHON_INCDIR=
21628        PYTHON_LIBS=
21629        if test "$withval" != "no"; then
21630           if test "$withval" = "yes"; then
21631              if test -e /usr/bin/python-config ; then
21632                 PYTHON_INCDIR=`/usr/bin/python-config --includes`
21633                 PYTHON_LIBS=`/usr/bin/python-config --libs`
21634              else
21635                 for python_root in /usr /usr/local /usr/sfw; do
21636                    for ver in python2.2 python2.3 python2.4 python2.5 python2.6 python3; do
21637                       if test -f $python_root/include/${ver}/Python.h; then
21638                          PYTHON_INCDIR=-I$python_root/include/${ver}
21639                          if test -d $python_root/lib64/${ver}/config; then
21640                             PYTHON_LIBS="-L$python_root/lib64/${ver}/config -l${ver}"
21641                          else
21642                             PYTHON_LIBS="-L$python_root/lib/${ver}/config -l${ver}"
21643                          fi
21644                          break
21645                       fi
21646                    done
21647                 done
21648
21649                 if test x$PYTHON_INCDIR = x; then
21650                    if test -f $prefix/include/Python.h; then
21651                       PYTHON_INCDIR=-I$prefix/include
21652                       if test -d $prefix/lib64/config; then
21653                          PYTHON_LIBS="-L$prefix/lib64/config -lpython"
21654                       else
21655                          PYTHON_LIBS="-L$prefix/lib/config -lpython"
21656                       fi
21657                    else
21658                       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21659 $as_echo "no" >&6; }
21660                       as_fn_error "Unable to find Python.h in standard locations" "$LINENO" 5
21661                    fi
21662                 fi
21663              fi
21664           else
21665              if test -e $withval/bin/python-config ; then
21666                 PYTHON_INCDIR=`$withval/bin/python-config --includes`
21667                 PYTHON_LIBS=`$withval/bin/python-config --libs`
21668              elif test -f $withval/Python.h; then
21669                 PYTHON_INCDIR=-I$withval
21670                 PYTHON_LIBS="-L$withval/config -lpython"
21671              elif test -f $withval/include/Python.h; then
21672                 PYTHON_INCDIR=-I$withval/include
21673                 if test -d $withval/lib64/config; then
21674                    PYTHON_LIBS="-L$withval/lib64/config -lpython"
21675                 else
21676                    PYTHON_LIBS="-L$withval/lib/config -lpython"
21677                 fi
21678              elif test -f $withval/include/python/Python.h; then
21679                 PYTHON_INCDIR=-I$withval/include/python
21680                 if test -d $withval/lib64/python/config; then
21681                    PYTHON_LIBS="-L$withval/lib64/python/config -lpython"
21682                 else
21683                    PYTHON_LIBS="-L$withval/lib/python/config -lpython"
21684                 fi
21685              else
21686                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21687 $as_echo "no" >&6; }
21688                 as_fn_error "Invalid Python directory $withval - unable to find Python.h under $withval" "$LINENO" 5
21689              fi
21690           fi
21691
21692           $as_echo "#define HAVE_PYTHON 1" >>confdefs.h
21693
21694           { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21695 $as_echo "yes" >&6; }
21696           support_python=yes
21697           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for more Python libs" >&5
21698 $as_echo "$as_me: checking for more Python libs" >&6;}
21699           saved_LIBS="$LIBS"; LIBS=
21700           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing shm_open" >&5
21701 $as_echo_n "checking for library containing shm_open... " >&6; }
21702 if test "${ac_cv_search_shm_open+set}" = set; then :
21703   $as_echo_n "(cached) " >&6
21704 else
21705   ac_func_search_save_LIBS=$LIBS
21706 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21707 /* end confdefs.h.  */
21708
21709 /* Override any GCC internal prototype to avoid an error.
21710    Use char because int might match the return type of a GCC
21711    builtin and then its argument prototype would still apply.  */
21712 #ifdef __cplusplus
21713 extern "C"
21714 #endif
21715 char shm_open ();
21716 int
21717 main ()
21718 {
21719 return shm_open ();
21720   ;
21721   return 0;
21722 }
21723 _ACEOF
21724 for ac_lib in '' rt; do
21725   if test -z "$ac_lib"; then
21726     ac_res="none required"
21727   else
21728     ac_res=-l$ac_lib
21729     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
21730   fi
21731   if ac_fn_c_try_link "$LINENO"; then :
21732   ac_cv_search_shm_open=$ac_res
21733 fi
21734 rm -f core conftest.err conftest.$ac_objext \
21735     conftest$ac_exeext
21736   if test "${ac_cv_search_shm_open+set}" = set; then :
21737   break
21738 fi
21739 done
21740 if test "${ac_cv_search_shm_open+set}" = set; then :
21741
21742 else
21743   ac_cv_search_shm_open=no
21744 fi
21745 rm conftest.$ac_ext
21746 LIBS=$ac_func_search_save_LIBS
21747 fi
21748 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_shm_open" >&5
21749 $as_echo "$ac_cv_search_shm_open" >&6; }
21750 ac_res=$ac_cv_search_shm_open
21751 if test "$ac_res" != no; then :
21752   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
21753
21754 fi
21755
21756           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for openpty in -lutil" >&5
21757 $as_echo_n "checking for openpty in -lutil... " >&6; }
21758 if test "${ac_cv_lib_util_openpty+set}" = set; then :
21759   $as_echo_n "(cached) " >&6
21760 else
21761   ac_check_lib_save_LIBS=$LIBS
21762 LIBS="-lutil  $LIBS"
21763 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21764 /* end confdefs.h.  */
21765
21766 /* Override any GCC internal prototype to avoid an error.
21767    Use char because int might match the return type of a GCC
21768    builtin and then its argument prototype would still apply.  */
21769 #ifdef __cplusplus
21770 extern "C"
21771 #endif
21772 char openpty ();
21773 int
21774 main ()
21775 {
21776 return openpty ();
21777   ;
21778   return 0;
21779 }
21780 _ACEOF
21781 if ac_fn_c_try_link "$LINENO"; then :
21782   ac_cv_lib_util_openpty=yes
21783 else
21784   ac_cv_lib_util_openpty=no
21785 fi
21786 rm -f core conftest.err conftest.$ac_objext \
21787     conftest$ac_exeext conftest.$ac_ext
21788 LIBS=$ac_check_lib_save_LIBS
21789 fi
21790 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_util_openpty" >&5
21791 $as_echo "$ac_cv_lib_util_openpty" >&6; }
21792 if test "x$ac_cv_lib_util_openpty" = x""yes; then :
21793   cat >>confdefs.h <<_ACEOF
21794 #define HAVE_LIBUTIL 1
21795 _ACEOF
21796
21797   LIBS="-lutil $LIBS"
21798
21799 fi
21800
21801           PYTHON_LIBS="$PYTHON_LIBS $LIBS"
21802           LIBS="$saved_LIBS"
21803        else
21804           { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21805 $as_echo "no" >&6; }
21806        fi
21807
21808 else
21809
21810        { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21811 $as_echo "no" >&6; }
21812
21813
21814 fi
21815
21816
21817
21818
21819 ac_fn_c_check_func "$LINENO" "socket" "ac_cv_func_socket"
21820 if test "x$ac_cv_func_socket" = x""yes; then :
21821   { $as_echo "$as_me:${as_lineno-$LINENO}: result: using libc's socket" >&5
21822 $as_echo "using libc's socket" >&6; }
21823 else
21824   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socket in -lxnet" >&5
21825 $as_echo_n "checking for socket in -lxnet... " >&6; }
21826 if test "${ac_cv_lib_xnet_socket+set}" = set; then :
21827   $as_echo_n "(cached) " >&6
21828 else
21829   ac_check_lib_save_LIBS=$LIBS
21830 LIBS="-lxnet  $LIBS"
21831 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21832 /* end confdefs.h.  */
21833
21834 /* Override any GCC internal prototype to avoid an error.
21835    Use char because int might match the return type of a GCC
21836    builtin and then its argument prototype would still apply.  */
21837 #ifdef __cplusplus
21838 extern "C"
21839 #endif
21840 char socket ();
21841 int
21842 main ()
21843 {
21844 return socket ();
21845   ;
21846   return 0;
21847 }
21848 _ACEOF
21849 if ac_fn_c_try_link "$LINENO"; then :
21850   ac_cv_lib_xnet_socket=yes
21851 else
21852   ac_cv_lib_xnet_socket=no
21853 fi
21854 rm -f core conftest.err conftest.$ac_objext \
21855     conftest$ac_exeext conftest.$ac_ext
21856 LIBS=$ac_check_lib_save_LIBS
21857 fi
21858 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_xnet_socket" >&5
21859 $as_echo "$ac_cv_lib_xnet_socket" >&6; }
21860 if test "x$ac_cv_lib_xnet_socket" = x""yes; then :
21861   cat >>confdefs.h <<_ACEOF
21862 #define HAVE_LIBXNET 1
21863 _ACEOF
21864
21865   LIBS="-lxnet $LIBS"
21866
21867 fi
21868
21869     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socket in -lsocket" >&5
21870 $as_echo_n "checking for socket in -lsocket... " >&6; }
21871 if test "${ac_cv_lib_socket_socket+set}" = set; then :
21872   $as_echo_n "(cached) " >&6
21873 else
21874   ac_check_lib_save_LIBS=$LIBS
21875 LIBS="-lsocket  $LIBS"
21876 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21877 /* end confdefs.h.  */
21878
21879 /* Override any GCC internal prototype to avoid an error.
21880    Use char because int might match the return type of a GCC
21881    builtin and then its argument prototype would still apply.  */
21882 #ifdef __cplusplus
21883 extern "C"
21884 #endif
21885 char socket ();
21886 int
21887 main ()
21888 {
21889 return socket ();
21890   ;
21891   return 0;
21892 }
21893 _ACEOF
21894 if ac_fn_c_try_link "$LINENO"; then :
21895   ac_cv_lib_socket_socket=yes
21896 else
21897   ac_cv_lib_socket_socket=no
21898 fi
21899 rm -f core conftest.err conftest.$ac_objext \
21900     conftest$ac_exeext conftest.$ac_ext
21901 LIBS=$ac_check_lib_save_LIBS
21902 fi
21903 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_socket" >&5
21904 $as_echo "$ac_cv_lib_socket_socket" >&6; }
21905 if test "x$ac_cv_lib_socket_socket" = x""yes; then :
21906   cat >>confdefs.h <<_ACEOF
21907 #define HAVE_LIBSOCKET 1
21908 _ACEOF
21909
21910   LIBS="-lsocket $LIBS"
21911
21912 fi
21913
21914     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socket in -linet" >&5
21915 $as_echo_n "checking for socket in -linet... " >&6; }
21916 if test "${ac_cv_lib_inet_socket+set}" = set; then :
21917   $as_echo_n "(cached) " >&6
21918 else
21919   ac_check_lib_save_LIBS=$LIBS
21920 LIBS="-linet  $LIBS"
21921 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21922 /* end confdefs.h.  */
21923
21924 /* Override any GCC internal prototype to avoid an error.
21925    Use char because int might match the return type of a GCC
21926    builtin and then its argument prototype would still apply.  */
21927 #ifdef __cplusplus
21928 extern "C"
21929 #endif
21930 char socket ();
21931 int
21932 main ()
21933 {
21934 return socket ();
21935   ;
21936   return 0;
21937 }
21938 _ACEOF
21939 if ac_fn_c_try_link "$LINENO"; then :
21940   ac_cv_lib_inet_socket=yes
21941 else
21942   ac_cv_lib_inet_socket=no
21943 fi
21944 rm -f core conftest.err conftest.$ac_objext \
21945     conftest$ac_exeext conftest.$ac_ext
21946 LIBS=$ac_check_lib_save_LIBS
21947 fi
21948 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_inet_socket" >&5
21949 $as_echo "$ac_cv_lib_inet_socket" >&6; }
21950 if test "x$ac_cv_lib_inet_socket" = x""yes; then :
21951   cat >>confdefs.h <<_ACEOF
21952 #define HAVE_LIBINET 1
21953 _ACEOF
21954
21955   LIBS="-linet $LIBS"
21956
21957 fi
21958
21959 fi
21960
21961
21962 TCPW_MSG="no"
21963 WRAPLIBS=""
21964
21965 # Check whether --with-tcp-wrappers was given.
21966 if test "${with_tcp_wrappers+set}" = set; then :
21967   withval=$with_tcp_wrappers;
21968        if test "x$withval" != "xno" ; then
21969           saved_LIBS="$LIBS"
21970           LIBS="$saved_LIBS -lwrap"
21971           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing nanosleep" >&5
21972 $as_echo_n "checking for library containing nanosleep... " >&6; }
21973 if test "${ac_cv_search_nanosleep+set}" = set; then :
21974   $as_echo_n "(cached) " >&6
21975 else
21976   ac_func_search_save_LIBS=$LIBS
21977 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21978 /* end confdefs.h.  */
21979
21980 /* Override any GCC internal prototype to avoid an error.
21981    Use char because int might match the return type of a GCC
21982    builtin and then its argument prototype would still apply.  */
21983 #ifdef __cplusplus
21984 extern "C"
21985 #endif
21986 char nanosleep ();
21987 int
21988 main ()
21989 {
21990 return nanosleep ();
21991   ;
21992   return 0;
21993 }
21994 _ACEOF
21995 for ac_lib in '' rt; do
21996   if test -z "$ac_lib"; then
21997     ac_res="none required"
21998   else
21999     ac_res=-l$ac_lib
22000     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
22001   fi
22002   if ac_fn_c_try_link "$LINENO"; then :
22003   ac_cv_search_nanosleep=$ac_res
22004 fi
22005 rm -f core conftest.err conftest.$ac_objext \
22006     conftest$ac_exeext
22007   if test "${ac_cv_search_nanosleep+set}" = set; then :
22008   break
22009 fi
22010 done
22011 if test "${ac_cv_search_nanosleep+set}" = set; then :
22012
22013 else
22014   ac_cv_search_nanosleep=no
22015 fi
22016 rm conftest.$ac_ext
22017 LIBS=$ac_func_search_save_LIBS
22018 fi
22019 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_nanosleep" >&5
22020 $as_echo "$ac_cv_search_nanosleep" >&6; }
22021 ac_res=$ac_cv_search_nanosleep
22022 if test "$ac_res" != no; then :
22023   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
22024
22025 fi
22026
22027           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libwrap" >&5
22028 $as_echo_n "checking for libwrap... " >&6; }
22029           cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22030 /* end confdefs.h.  */
22031
22032                #include <sys/types.h>
22033                #include <tcpd.h>
22034                int deny_severity = 0;
22035                int allow_severity = 0;
22036                struct request_info *req;
22037
22038 int
22039 main ()
22040 {
22041
22042                 hosts_access(req);
22043
22044   ;
22045   return 0;
22046 }
22047 _ACEOF
22048 if ac_fn_c_try_link "$LINENO"; then :
22049
22050                  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22051 $as_echo "yes" >&6; }
22052
22053 $as_echo "#define HAVE_LIBWRAP 1" >>confdefs.h
22054
22055                  TCPW_MSG="yes"
22056                  LIBS="$saved_LIBS"
22057                  WRAPLIBS="-lwrap"
22058
22059 else
22060
22061                  LIBS="$saved_LIBS -lwrap -lnsl"
22062                  WRAPLIBS="$saved_LIBS -lwrap -lnsl"
22063                  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22064 /* end confdefs.h.  */
22065
22066                        #include <sys/types.h>
22067                        #include <tcpd.h>
22068                        int deny_severity = 0;
22069                        int allow_severity = 0;
22070                        struct request_info *req;
22071
22072 int
22073 main ()
22074 {
22075
22076                        hosts_access(req);
22077
22078   ;
22079   return 0;
22080 }
22081 _ACEOF
22082 if ac_fn_c_try_link "$LINENO"; then :
22083
22084                       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22085 $as_echo "yes" >&6; }
22086
22087 $as_echo "#define HAVE_LIBWRAP 1" >>confdefs.h
22088
22089                       TCPW_MSG="yes"
22090                       LIBS="$saved_LIBS"
22091                       WRAPLIBS="-lwrap"
22092
22093 else
22094
22095                       as_fn_error "*** libwrap missing" "$LINENO" 5
22096
22097
22098 fi
22099 rm -f core conftest.err conftest.$ac_objext \
22100     conftest$ac_exeext conftest.$ac_ext
22101
22102
22103 fi
22104 rm -f core conftest.err conftest.$ac_objext \
22105     conftest$ac_exeext conftest.$ac_ext
22106        fi
22107
22108
22109 fi
22110
22111
22112 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OpenSSL" >&5
22113 $as_echo_n "checking for OpenSSL... " >&6; }
22114
22115 # Check whether --with-openssl was given.
22116 if test "${with_openssl+set}" = set; then :
22117   withval=$with_openssl;
22118         with_openssl_directory=${withval}
22119
22120
22121 fi
22122
22123
22124 if test "x$with_openssl_directory" != "xno"; then
22125    OPENSSL_LIBS="-lssl -lcrypto"
22126    OPENSSL_INC=""
22127
22128    if test "x$with_openssl_directory" != "xyes" && test x"${with_openssl_directory}" != "x"; then
22129       #
22130       # Make sure the $with_openssl_directory also makes sense
22131       #
22132       if test -d "$with_openssl_directory/lib" -a -d "$with_openssl_directory/include"; then
22133          OPENSSL_LIBS="-L$with_openssl_directory/lib $OPENSSL_LIBS"
22134          OPENSSL_INC="-I$with_openssl_directory/include $OPENSSL_INC"
22135       fi
22136    fi
22137
22138    saved_LIBS="${LIBS}"
22139    saved_CFLAGS="${CFLAGS}"
22140    LIBS="${saved_LIBS} ${OPENSSL_LIBS}"
22141    CFLAGS="${saved_CFLAGS} ${OPENSSL_INC}"
22142
22143    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22144 /* end confdefs.h.  */
22145
22146           #include <openssl/ssl.h>
22147
22148 int
22149 main ()
22150 {
22151
22152            CRYPTO_set_id_callback(NULL);
22153
22154   ;
22155   return 0;
22156 }
22157 _ACEOF
22158 if ac_fn_c_try_link "$LINENO"; then :
22159
22160           support_tls="yes"
22161           support_crypto="yes"
22162
22163 else
22164
22165           support_tls="no"
22166           support_crypto="no"
22167
22168
22169 fi
22170 rm -f core conftest.err conftest.$ac_objext \
22171     conftest$ac_exeext conftest.$ac_ext
22172
22173    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22174 /* end confdefs.h.  */
22175
22176           #include <openssl/evp.h>
22177
22178 int
22179 main ()
22180 {
22181
22182           EVP_sha512();
22183
22184   ;
22185   return 0;
22186 }
22187 _ACEOF
22188 if ac_fn_c_try_link "$LINENO"; then :
22189
22190           ac_cv_openssl_sha2="yes"
22191
22192 else
22193
22194           ac_cv_openssl_sha2="no"
22195
22196
22197 fi
22198 rm -f core conftest.err conftest.$ac_objext \
22199     conftest$ac_exeext conftest.$ac_ext
22200
22201                cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22202 /* end confdefs.h.  */
22203
22204           #include <openssl/evp.h>
22205
22206 int
22207 main ()
22208 {
22209
22210           EVP_aes_192_cbc();
22211
22212   ;
22213   return 0;
22214 }
22215 _ACEOF
22216 if ac_fn_c_try_link "$LINENO"; then :
22217
22218           ac_cv_openssl_export="no"
22219
22220 else
22221
22222           ac_cv_openssl_export="yes"
22223
22224
22225 fi
22226 rm -f core conftest.err conftest.$ac_objext \
22227     conftest$ac_exeext conftest.$ac_ext
22228
22229    if test "$support_tls" = "yes"; then
22230
22231 $as_echo "#define HAVE_OPENSSL 1" >>confdefs.h
22232
22233
22234 $as_echo "#define HAVE_TLS 1" >>confdefs.h
22235
22236
22237 $as_echo "#define HAVE_CRYPTO 1" >>confdefs.h
22238
22239    fi
22240
22241    if test "$ac_cv_openssl_sha2" = "yes"; then
22242
22243 $as_echo "#define HAVE_SHA2 1" >>confdefs.h
22244
22245    fi
22246
22247    if test "$ac_cv_openssl_export" = "yes"; then
22248
22249 $as_echo "#define HAVE_OPENSSL_EXPORT_LIBRARY 1" >>confdefs.h
22250
22251    fi
22252
22253    if test "$support_crypto" = "yes"; then
22254       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EVP_PKEY_encrypt_old in -lcrypto" >&5
22255 $as_echo_n "checking for EVP_PKEY_encrypt_old in -lcrypto... " >&6; }
22256 if test "${ac_cv_lib_crypto_EVP_PKEY_encrypt_old+set}" = set; then :
22257   $as_echo_n "(cached) " >&6
22258 else
22259   ac_check_lib_save_LIBS=$LIBS
22260 LIBS="-lcrypto  $LIBS"
22261 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22262 /* end confdefs.h.  */
22263
22264 /* Override any GCC internal prototype to avoid an error.
22265    Use char because int might match the return type of a GCC
22266    builtin and then its argument prototype would still apply.  */
22267 #ifdef __cplusplus
22268 extern "C"
22269 #endif
22270 char EVP_PKEY_encrypt_old ();
22271 int
22272 main ()
22273 {
22274 return EVP_PKEY_encrypt_old ();
22275   ;
22276   return 0;
22277 }
22278 _ACEOF
22279 if ac_fn_c_try_link "$LINENO"; then :
22280   ac_cv_lib_crypto_EVP_PKEY_encrypt_old=yes
22281 else
22282   ac_cv_lib_crypto_EVP_PKEY_encrypt_old=no
22283 fi
22284 rm -f core conftest.err conftest.$ac_objext \
22285     conftest$ac_exeext conftest.$ac_ext
22286 LIBS=$ac_check_lib_save_LIBS
22287 fi
22288 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypto_EVP_PKEY_encrypt_old" >&5
22289 $as_echo "$ac_cv_lib_crypto_EVP_PKEY_encrypt_old" >&6; }
22290 if test "x$ac_cv_lib_crypto_EVP_PKEY_encrypt_old" = x""yes; then :
22291
22292 $as_echo "#define HAVE_OPENSSLv1 1" >>confdefs.h
22293
22294 fi
22295
22296    fi
22297
22298    LIBS="${saved_LIBS}"
22299    CFLAGS="${saved_CFLAGS}"
22300 else
22301    support_tls="no"
22302    support_crypto="no"
22303    OPENSSL_LIBS=""
22304    OPENSSL_INC=""
22305 fi
22306 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $support_tls" >&5
22307 $as_echo "$support_tls" >&6; }
22308
22309 if test "$support_tls" = "no"; then
22310    OPENSSL_LIBS=""
22311    OPENSSL_INC=""
22312 fi
22313 if test "$support_crypto" = "no"; then
22314    OPENSSL_LIBS=""
22315    OPENSSL_INC=""
22316 fi
22317
22318
22319
22320
22321 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5
22322 $as_echo_n "checking for library containing dlopen... " >&6; }
22323 if test "${ac_cv_search_dlopen+set}" = set; then :
22324   $as_echo_n "(cached) " >&6
22325 else
22326   ac_func_search_save_LIBS=$LIBS
22327 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22328 /* end confdefs.h.  */
22329
22330 /* Override any GCC internal prototype to avoid an error.
22331    Use char because int might match the return type of a GCC
22332    builtin and then its argument prototype would still apply.  */
22333 #ifdef __cplusplus
22334 extern "C"
22335 #endif
22336 char dlopen ();
22337 int
22338 main ()
22339 {
22340 return dlopen ();
22341   ;
22342   return 0;
22343 }
22344 _ACEOF
22345 for ac_lib in '' dl; do
22346   if test -z "$ac_lib"; then
22347     ac_res="none required"
22348   else
22349     ac_res=-l$ac_lib
22350     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
22351   fi
22352   if ac_fn_c_try_link "$LINENO"; then :
22353   ac_cv_search_dlopen=$ac_res
22354 fi
22355 rm -f core conftest.err conftest.$ac_objext \
22356     conftest$ac_exeext
22357   if test "${ac_cv_search_dlopen+set}" = set; then :
22358   break
22359 fi
22360 done
22361 if test "${ac_cv_search_dlopen+set}" = set; then :
22362
22363 else
22364   ac_cv_search_dlopen=no
22365 fi
22366 rm conftest.$ac_ext
22367 LIBS=$ac_func_search_save_LIBS
22368 fi
22369 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5
22370 $as_echo "$ac_cv_search_dlopen" >&6; }
22371 ac_res=$ac_cv_search_dlopen
22372 if test "$ac_res" != no; then :
22373   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
22374
22375 fi
22376
22377
22378 working_dir=`eval echo ${prefix}/var/bacula/working`
22379
22380 # Check whether --with-working-dir was given.
22381 if test "${with_working_dir+set}" = set; then :
22382   withval=$with_working_dir;
22383        if test "x$withval" != "xno" ; then
22384          working_dir=$withval
22385        fi
22386
22387
22388 fi
22389
22390
22391
22392
22393 archivedir=/tmp
22394
22395 # Check whether --with-archivedir was given.
22396 if test "${with_archivedir+set}" = set; then :
22397   withval=$with_archivedir;
22398        if test "x$withval" != "xno" ; then
22399           archivedir=$withval
22400        fi
22401
22402
22403 fi
22404
22405
22406
22407
22408 basename=`hostname`
22409
22410 # Check whether --with-basename was given.
22411 if test "${with_basename+set}" = set; then :
22412   withval=$with_basename;
22413        if test "x$withval" != "xno" ; then
22414           basename=$withval
22415        fi
22416
22417
22418 fi
22419
22420
22421
22422
22423 hostname=`uname -n | cut -d '.' -f 1`
22424 if test x${hostname} = x ; then
22425   hostname="localhost"
22426 fi
22427
22428 # Check whether --with-hostname was given.
22429 if test "${with_hostname+set}" = set; then :
22430   withval=$with_hostname;
22431        if test "x$withval" != "xno" ; then
22432          hostname=$withval
22433        fi
22434
22435
22436 fi
22437
22438
22439
22440
22441
22442 scriptdir=`eval echo ${sysconfdir}`
22443
22444 # Check whether --with-scriptdir was given.
22445 if test "${with_scriptdir+set}" = set; then :
22446   withval=$with_scriptdir;
22447        if test "x$withval" != "xno" ; then
22448           scriptdir=$withval
22449        fi
22450
22451
22452 fi
22453
22454
22455
22456
22457
22458 bsrdir=/tmp
22459
22460 # Check whether --with-bsrdir was given.
22461 if test "${with_bsrdir+set}" = set; then :
22462   withval=$with_bsrdir;
22463        if test "x$withval" != "xno" ; then
22464           bsrdir=$withval
22465        fi
22466
22467
22468 fi
22469
22470
22471
22472
22473 logdir=/tmp
22474
22475 # Check whether --with-logdir was given.
22476 if test "${with_logdir+set}" = set; then :
22477   withval=$with_logdir;
22478        if test "x$withval" != "xno" ; then
22479           logdir=$withval
22480        fi
22481
22482
22483 fi
22484
22485
22486
22487
22488
22489 # ------------------------------------------
22490 # Where to place plugindir (plugin files)
22491 # ------------------------------------------
22492 plugindir=`eval echo ${libdir}`
22493
22494 # Check whether --with-plugindir was given.
22495 if test "${with_plugindir+set}" = set; then :
22496   withval=$with_plugindir;
22497        if test "x$withval" != "xno" ; then
22498           plugindir=$withval
22499        fi
22500
22501
22502 fi
22503
22504
22505
22506
22507 dump_email=root@localhost
22508
22509 # Check whether --with-dump-email was given.
22510 if test "${with_dump_email+set}" = set; then :
22511   withval=$with_dump_email;
22512        if test "x$withval" != "xno" ; then
22513           dump_email=$withval
22514        fi
22515
22516
22517 fi
22518
22519
22520
22521
22522 job_email=root@localhost
22523
22524 # Check whether --with-job-email was given.
22525 if test "${with_job_email+set}" = set; then :
22526   withval=$with_job_email;
22527        if test "x$withval" != "xno" ; then
22528           job_email=$withval
22529        fi
22530
22531
22532 fi
22533
22534
22535
22536
22537 smtp_host=localhost
22538
22539 # Check whether --with-smtp_host was given.
22540 if test "${with_smtp_host+set}" = set; then :
22541   withval=$with_smtp_host;
22542        if test "x$withval" != "xno" ; then
22543           smtp_host=$withval
22544        fi
22545
22546
22547 fi
22548
22549
22550
22551
22552 piddir=/var/run
22553
22554 # Check whether --with-pid-dir was given.
22555 if test "${with_pid_dir+set}" = set; then :
22556   withval=$with_pid_dir;
22557        if test "x$withval" != "xno" ; then
22558           piddir=$withval
22559        fi
22560
22561
22562 fi
22563
22564
22565 cat >>confdefs.h <<_ACEOF
22566 #define _PATH_BACULA_PIDDIR "$piddir"
22567 _ACEOF
22568
22569
22570
22571 subsysdir=/var/run/subsys
22572 if test -d /var/run/subsys; then
22573    subsysdir=/var/run/subsys
22574 elif test -d /var/lock/subsys; then
22575    subsysdir=/var/lock/subsys
22576 else
22577    subsysdir=/var/run/subsys
22578 fi
22579
22580 # Check whether --with-subsys-dir was given.
22581 if test "${with_subsys_dir+set}" = set; then :
22582   withval=$with_subsys_dir;
22583        if test "x$withval" != "xno" ; then
22584           subsysdir=$withval
22585        fi
22586
22587
22588 fi
22589
22590
22591
22592
22593 baseport=9101
22594
22595 # Check whether --with-baseport was given.
22596 if test "${with_baseport+set}" = set; then :
22597   withval=$with_baseport;
22598        if test "x$withval" != "xno" ; then
22599           baseport=$withval
22600        fi
22601
22602
22603 fi
22604
22605
22606
22607 dir_port=`expr $baseport`
22608 fd_port=`expr $baseport + 1`
22609 sd_port=`expr $fd_port + 1`
22610
22611
22612
22613
22614
22615 dir_password=
22616
22617 # Check whether --with-dir-password was given.
22618 if test "${with_dir_password+set}" = set; then :
22619   withval=$with_dir_password;
22620        if test "x$withval" != "xno" ; then
22621           dir_password=$withval
22622        fi
22623
22624
22625 fi
22626
22627
22628 if test "x$dir_password" = "x" ; then
22629    if test "x$OPENSSL" = "xnone" ; then
22630       key=`autoconf/randpass 33`
22631    else
22632       key=`openssl rand -base64 33`
22633    fi
22634    dir_password=$key
22635 fi
22636
22637 fd_password=
22638
22639 # Check whether --with-fd-password was given.
22640 if test "${with_fd_password+set}" = set; then :
22641   withval=$with_fd_password;
22642        if test "x$withval" != "xno" ; then
22643           fd_password=$withval
22644        fi
22645
22646
22647 fi
22648
22649
22650 if test "x$fd_password" = "x" ; then
22651    if test "x$OPENSSL" = "xnone" ; then
22652       key=`autoconf/randpass 37`
22653    else
22654       key=`openssl rand -base64 33`
22655    fi
22656    fd_password=$key
22657 fi
22658
22659 sd_password=
22660
22661 # Check whether --with-sd-password was given.
22662 if test "${with_sd_password+set}" = set; then :
22663   withval=$with_sd_password;
22664        if test "x$withval" != "xno" ; then
22665           sd_password=$withval
22666        fi
22667
22668
22669 fi
22670
22671
22672 if test "x$sd_password" = "x" ; then
22673    if test "x$OPENSSL" = "xnone" ; then
22674       key=`autoconf/randpass 41`
22675    else
22676       key=`openssl rand -base64 33`
22677    fi
22678    sd_password=$key
22679 fi
22680
22681 mon_dir_password=
22682
22683 # Check whether --with-mon-dir-password was given.
22684 if test "${with_mon_dir_password+set}" = set; then :
22685   withval=$with_mon_dir_password;
22686        if test "x$withval" != "xno" ; then
22687           mon_dir_password=$withval
22688        fi
22689
22690
22691 fi
22692
22693
22694 if test "x$mon_dir_password" = "x" ; then
22695    if test "x$OPENSSL" = "xnone" ; then
22696       key=`autoconf/randpass 33`
22697    else
22698       key=`openssl rand -base64 33`
22699    fi
22700    mon_dir_password=$key
22701 fi
22702
22703 mon_fd_password=
22704
22705 # Check whether --with-mon-fd-password was given.
22706 if test "${with_mon_fd_password+set}" = set; then :
22707   withval=$with_mon_fd_password;
22708        if test "x$withval" != "xno" ; then
22709           mon_fd_password=$withval
22710        fi
22711
22712
22713 fi
22714
22715
22716 if test "x$mon_fd_password" = "x" ; then
22717    if test "x$OPENSSL" = "xnone" ; then
22718       key=`autoconf/randpass 37`
22719    else
22720       key=`openssl rand -base64 33`
22721    fi
22722    mon_fd_password=$key
22723 fi
22724
22725 mon_sd_password=
22726
22727 # Check whether --with-mon-sd-password was given.
22728 if test "${with_mon_sd_password+set}" = set; then :
22729   withval=$with_mon_sd_password;
22730        if test "x$withval" != "xno" ; then
22731           mon_sd_password=$withval
22732        fi
22733
22734
22735 fi
22736
22737
22738 if test "x$mon_sd_password" = "x" ; then
22739    if test "x$OPENSSL" = "xnone" ; then
22740       key=`autoconf/randpass 41`
22741    else
22742       key=`openssl rand -base64 33`
22743    fi
22744    mon_sd_password=$key
22745 fi
22746
22747
22748
22749
22750
22751
22752
22753
22754 db_name=bacula
22755
22756 # Check whether --with-db_name was given.
22757 if test "${with_db_name+set}" = set; then :
22758   withval=$with_db_name;
22759        if test "x$withval" != "x" ; then
22760           db_name=$withval
22761        fi
22762
22763
22764 fi
22765
22766
22767
22768 db_user=bacula
22769
22770 # Check whether --with-db_user was given.
22771 if test "${with_db_user+set}" = set; then :
22772   withval=$with_db_user;
22773        if test "x$withval" != "x" ; then
22774           db_user=$withval
22775        fi
22776
22777
22778 fi
22779
22780
22781
22782 db_password=
22783
22784 # Check whether --with-db_password was given.
22785 if test "${with_db_password+set}" = set; then :
22786   withval=$with_db_password;
22787        if test "x$withval" != "x" ; then
22788           db_password=$withval
22789        fi
22790
22791
22792 fi
22793
22794
22795
22796 db_port=" "
22797
22798 # Check whether --with-db_port was given.
22799 if test "${with_db_port+set}" = set; then :
22800   withval=$with_db_port;
22801        if test "x$withval" != "x" ; then
22802           db_port=$withval
22803        fi
22804
22805
22806 fi
22807
22808
22809
22810 #
22811 # Handle users and groups for each daemon
22812 #
22813 dir_user=
22814
22815 # Check whether --with-dir_user was given.
22816 if test "${with_dir_user+set}" = set; then :
22817   withval=$with_dir_user;
22818        if test "x$withval" != "x" ; then
22819            dir_user=$withval
22820        fi
22821
22822
22823 fi
22824
22825
22826 dir_group=
22827
22828 # Check whether --with-dir_group was given.
22829 if test "${with_dir_group+set}" = set; then :
22830   withval=$with_dir_group;
22831        if test "x$withval" != "x" ; then
22832           dir_group=$withval
22833        fi
22834
22835
22836 fi
22837
22838
22839 sd_user=
22840
22841 # Check whether --with-sd_user was given.
22842 if test "${with_sd_user+set}" = set; then :
22843   withval=$with_sd_user;
22844        if test "x$withval" != "x" ; then
22845           sd_user=$withval
22846        fi
22847
22848
22849 fi
22850
22851
22852 sd_group=
22853
22854 # Check whether --with-sd_group was given.
22855 if test "${with_sd_group+set}" = set; then :
22856   withval=$with_sd_group;
22857        if test "x$withval" != "x" ; then
22858           sd_group=$withval
22859        fi
22860
22861
22862 fi
22863
22864
22865 fd_user=
22866
22867 # Check whether --with-fd_user was given.
22868 if test "${with_fd_user+set}" = set; then :
22869   withval=$with_fd_user;
22870        if test "x$withval" != "x" ; then
22871           fd_user=$withval
22872        fi
22873
22874
22875 fi
22876
22877
22878 fd_group=
22879
22880 # Check whether --with-fd_group was given.
22881 if test "${with_fd_group+set}" = set; then :
22882   withval=$with_fd_group;
22883        if test "x$withval" != "x" ; then
22884           fd_group=$withval
22885        fi
22886
22887
22888 fi
22889
22890
22891
22892
22893
22894
22895
22896
22897
22898 SBINPERM=0750
22899
22900 # Check whether --with-sbin-perm was given.
22901 if test "${with_sbin_perm+set}" = set; then :
22902   withval=$with_sbin_perm;
22903        if test "x$withval" != "x" ; then
22904           SBINPERM=$withval
22905        fi
22906
22907
22908 fi
22909
22910
22911
22912
22913
22914 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PostgreSQL support" >&5
22915 $as_echo_n "checking for PostgreSQL support... " >&6; }
22916
22917 # Check whether --with-postgresql was given.
22918 if test "${with_postgresql+set}" = set; then :
22919   withval=$with_postgresql;
22920   if test "$withval" != "no"; then
22921       if test "$withval" = "yes"; then
22922           PG_CONFIG=`which pg_config`
22923           if test -n "$PG_CONFIG"; then
22924               POSTGRESQL_INCDIR=`"$PG_CONFIG" --includedir`
22925               POSTGRESQL_LIBDIR=`"$PG_CONFIG" --libdir`
22926               POSTGRESQL_BINDIR=`"$PG_CONFIG" --bindir`
22927           elif test -f /usr/local/include/libpq-fe.h; then
22928               POSTGRESQL_INCDIR=/usr/local/include
22929               if test -d /usr/local/lib64; then
22930                  POSTGRESQL_LIBDIR=/usr/local/lib64
22931               else
22932                  POSTGRESQL_LIBDIR=/usr/local/lib
22933               fi
22934               POSTGRESQL_BINDIR=/usr/local/bin
22935           elif test -f /usr/include/libpq-fe.h; then
22936               POSTGRESQL_INCDIR=/usr/include
22937               if test -d /usr/lib64; then
22938                  POSTGRESQL_LIBDIR=/usr/lib64
22939               else
22940                  POSTGRESQL_LIBDIR=/usr/lib
22941               fi
22942               POSTGRESQL_BINDIR=/usr/bin
22943           elif test -f /usr/include/pgsql/libpq-fe.h; then
22944               POSTGRESQL_INCDIR=/usr/include/pgsql
22945               if test -d /usr/lib64/pgsql; then
22946                  POSTGRESQL_LIBDIR=/usr/lib64/pgsql
22947               else
22948                  POSTGRESQL_LIBDIR=/usr/lib/pgsql
22949               fi
22950               POSTGRESQL_BINDIR=/usr/bin
22951           elif test -f /usr/include/postgresql/libpq-fe.h; then
22952               POSTGRESQL_INCDIR=/usr/include/postgresql
22953               if test -d /usr/lib64/postgresql; then
22954                  POSTGRESQL_LIBDIR=/usr/lib64/postgresql
22955               else
22956                  POSTGRESQL_LIBDIR=/usr/lib/postgresql
22957               fi
22958               POSTGRESQL_BINDIR=/usr/bin
22959           else
22960               { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22961 $as_echo "no" >&6; }
22962               as_fn_error "Unable to find libpq-fe.h in standard locations" "$LINENO" 5
22963           fi
22964       elif test -f $withval/include/libpq-fe.h; then
22965           POSTGRESQL_INCDIR=$withval/include
22966           POSTGRESQL_LIBDIR=$withval/lib
22967           POSTGRESQL_BINDIR=$withval/bin
22968       elif test -f $withval/include/postgresql/libpq-fe.h; then
22969           POSTGRESQL_INCDIR=$withval/include/postgresql
22970           if test -d $withval/lib64; then
22971               POSTGRESQL_LIBDIR=$withval/lib64
22972           else
22973               POSTGRESQL_LIBDIR=$withval/lib
22974           fi
22975           POSTGRESQL_BINDIR=$withval/bin
22976       else
22977           { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22978 $as_echo "no" >&6; }
22979           as_fn_error "Invalid PostgreSQL directory $withval - unable to find libpq-fe.h under $withval" "$LINENO" 5
22980       fi
22981
22982 $as_echo "#define HAVE_POSTGRESQL 1" >>confdefs.h
22983
22984      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22985 $as_echo "yes" >&6; }
22986
22987      POSTGRESQL_INCLUDE=-I$POSTGRESQL_INCDIR
22988      POSTGRESQL_LIBS="-R $POSTGRESQL_LIBDIR -L$POSTGRESQL_LIBDIR -lpq"
22989      ac_fn_c_check_func "$LINENO" "crypt" "ac_cv_func_crypt"
22990 if test "x$ac_cv_func_crypt" = x""yes; then :
22991
22992 else
22993   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for crypt in -lcrypt" >&5
22994 $as_echo_n "checking for crypt in -lcrypt... " >&6; }
22995 if test "${ac_cv_lib_crypt_crypt+set}" = set; then :
22996   $as_echo_n "(cached) " >&6
22997 else
22998   ac_check_lib_save_LIBS=$LIBS
22999 LIBS="-lcrypt  $LIBS"
23000 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23001 /* end confdefs.h.  */
23002
23003 /* Override any GCC internal prototype to avoid an error.
23004    Use char because int might match the return type of a GCC
23005    builtin and then its argument prototype would still apply.  */
23006 #ifdef __cplusplus
23007 extern "C"
23008 #endif
23009 char crypt ();
23010 int
23011 main ()
23012 {
23013 return crypt ();
23014   ;
23015   return 0;
23016 }
23017 _ACEOF
23018 if ac_fn_c_try_link "$LINENO"; then :
23019   ac_cv_lib_crypt_crypt=yes
23020 else
23021   ac_cv_lib_crypt_crypt=no
23022 fi
23023 rm -f core conftest.err conftest.$ac_objext \
23024     conftest$ac_exeext conftest.$ac_ext
23025 LIBS=$ac_check_lib_save_LIBS
23026 fi
23027 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypt_crypt" >&5
23028 $as_echo "$ac_cv_lib_crypt_crypt" >&6; }
23029 if test "x$ac_cv_lib_crypt_crypt" = x""yes; then :
23030   POSTGRESQL_LIBS="$POSTGRESQL_LIBS -lcrypt"
23031 fi
23032
23033 fi
23034
23035      POSTGRESQL_LIB=$POSTGRESQL_LIBDIR/libpq.a
23036      DB_LIBS="${DB_LIBS} ${POSTGRESQL_LIBS}"
23037
23038      if test -z "${db_backends}"; then
23039          db_backends="PostgreSQL"
23040      else
23041          db_backends="${db_backends} PostgreSQL"
23042      fi
23043      if test -z "${DB_BACKENDS}"; then
23044          DB_BACKENDS="postgresql"
23045      else
23046          DB_BACKENDS="${DB_BACKENDS} postgresql"
23047      fi
23048   else
23049      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23050 $as_echo "no" >&6; }
23051   fi
23052
23053 else
23054
23055   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23056 $as_echo "no" >&6; }
23057
23058 fi
23059
23060
23061
23062
23063
23064
23065
23066
23067 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MySQL support" >&5
23068 $as_echo_n "checking for MySQL support... " >&6; }
23069
23070 # Check whether --with-mysql was given.
23071 if test "${with_mysql+set}" = set; then :
23072   withval=$with_mysql;
23073   if test "$withval" != "no"; then
23074         if test "$withval" = "yes"; then
23075            if test -f /usr/local/mysql/include/mysql/mysql.h; then
23076                    MYSQL_INCDIR=/usr/local/mysql/include/mysql
23077                    if test -f /usr/local/mysql/lib64/mysql/libmysqlclient_r.a \
23078                         -o -f /usr/local/mysql/lib64/mysql/libmysqlclient_r.so; then
23079                            MYSQL_LIBDIR=/usr/local/mysql/lib64/mysql
23080                    else
23081                            MYSQL_LIBDIR=/usr/local/mysql/lib/mysql
23082                    fi
23083                    MYSQL_BINDIR=/usr/local/mysql/bin
23084            elif test -f /usr/include/mysql/mysql.h; then
23085                    MYSQL_INCDIR=/usr/include/mysql
23086                    if test -f /usr/lib64/mysql/libmysqlclient_r.a \
23087                         -o -f /usr/lib64/mysql/libmysqlclient_r.so; then
23088                            MYSQL_LIBDIR=/usr/lib64/mysql
23089                    elif test -f /usr/lib64/libmysqlclient_r.a \
23090                         -o -f /usr/lib64/libmysqlclient_r.so; then
23091                            MYSQL_LIBDIR=/usr/lib64
23092                    elif test -f /usr/lib/mysql/libmysqlclient_r.a \
23093                           -o -f /usr/lib/mysql/libmysqlclient_r.so; then
23094                            MYSQL_LIBDIR=/usr/lib/mysql
23095                    else
23096                            MYSQL_LIBDIR=/usr/lib
23097                    fi
23098                    MYSQL_BINDIR=/usr/bin
23099            elif test -f /usr/include/mysql.h; then
23100                    MYSQL_INCDIR=/usr/include
23101                    if test -f /usr/lib64/libmysqlclient_r.a \
23102                         -o -f /usr/lib64/libmysqlclient_r.so; then
23103                            MYSQL_LIBDIR=/usr/lib64
23104                    else
23105                            MYSQL_LIBDIR=/usr/lib
23106                    fi
23107                    MYSQL_BINDIR=/usr/bin
23108            elif test -f /usr/local/include/mysql/mysql.h; then
23109                    MYSQL_INCDIR=/usr/local/include/mysql
23110                    if test -f /usr/local/lib64/mysql/libmysqlclient_r.a \
23111                         -o -f /usr/local/lib64/mysql/libmysqlclient_r.so; then
23112                            MYSQL_LIBDIR=/usr/local/lib64/mysql
23113                    else
23114                            MYSQL_LIBDIR=/usr/local/lib/mysql
23115                    fi
23116                    MYSQL_BINDIR=/usr/local/bin
23117            elif test -f /usr/local/include/mysql.h; then
23118                    MYSQL_INCDIR=/usr/local/include
23119                    if test -f /usr/local/lib64/libmysqlclient_r.a \
23120                         -o -f /usr/local/lib64/libmysqlclient_r.so; then
23121                            MYSQL_LIBDIR=/usr/local/lib64
23122                    else
23123                            MYSQL_LIBDIR=/usr/local/lib
23124                    fi
23125                    MYSQL_BINDIR=/usr/local/bin
23126            else
23127               { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23128 $as_echo "no" >&6; }
23129               as_fn_error "Unable to find mysql.h in standard locations" "$LINENO" 5
23130            fi
23131         else
23132            if test -f $withval/include/mysql/mysql.h; then
23133               MYSQL_INCDIR=$withval/include/mysql
23134               if test -f $withval/lib64/mysql/libmysqlclient_r.a \
23135                    -o -f $withval/lib64/mysql/libmysqlclient_r.so; then
23136                  MYSQL_LIBDIR=$withval/lib64/mysql
23137               elif test -f $withval/lib64/libmysqlclient_r.a \
23138                    -o -f $withval/lib64/libmysqlclient_r.so; then
23139                  MYSQL_LIBDIR=$withval/lib64
23140               elif test -f $withval/lib/libmysqlclient_r.a \
23141                    -o -f $withval/lib/libmysqlclient_r.so; then
23142                  MYSQL_LIBDIR=$withval/lib
23143               else
23144                  MYSQL_LIBDIR=$withval/lib/mysql
23145               fi
23146               MYSQL_BINDIR=$withval/bin
23147            elif test -f $withval/include/mysql.h; then
23148               MYSQL_INCDIR=$withval/include
23149               if test -f $withval/lib64/libmysqlclient_r.a \
23150                    -o -f $withval/lib64/libmysqlclient_r.so; then
23151                  MYSQL_LIBDIR=$withval/lib64
23152               else
23153                  MYSQL_LIBDIR=$withval/lib
23154               fi
23155               MYSQL_BINDIR=$withval/bin
23156            else
23157               { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23158 $as_echo "no" >&6; }
23159               as_fn_error "Invalid MySQL directory $withval - unable to find mysql.h under $withval" "$LINENO" 5
23160            fi
23161         fi
23162      MYSQL_INCLUDE=-I$MYSQL_INCDIR
23163      if test -f $MYSQL_LIBDIR/libmysqlclient_r.a \
23164           -o -f $MYSQL_LIBDIR/libmysqlclient_r.so; then
23165         MYSQL_LIBS="-R $MYSQL_LIBDIR -L$MYSQL_LIBDIR -lmysqlclient_r -lz"
23166
23167 $as_echo "#define HAVE_THREAD_SAFE_MYSQL 1" >>confdefs.h
23168
23169         DB_LIBS="${DB_LIBS} ${MYSQL_LIBS}"
23170      fi
23171      MYSQL_LIB=$MYSQL_LIBDIR/libmysqlclient_r.a
23172
23173
23174 $as_echo "#define HAVE_MYSQL 1" >>confdefs.h
23175
23176      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
23177 $as_echo "yes" >&6; }
23178
23179      if test -z "${db_backends}" ; then
23180          db_backends="MySQL"
23181      else
23182          db_backends="${db_backends} MySQL"
23183      fi
23184      if test -z "${DB_BACKENDS}" ; then
23185          DB_BACKENDS="mysql"
23186      else
23187          DB_BACKENDS="${DB_BACKENDS} mysql"
23188      fi
23189   else
23190      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23191 $as_echo "no" >&6; }
23192   fi
23193
23194
23195 fi
23196
23197
23198
23199 # Check whether --with-embedded-mysql was given.
23200 if test "${with_embedded_mysql+set}" = set; then :
23201   withval=$with_embedded_mysql;
23202   if test "$withval" != "no"; then
23203         if test "$withval" = "yes"; then
23204                 if test -f /usr/local/mysql/include/mysql/mysql.h; then
23205                         MYSQL_INCDIR=/usr/local/mysql/include/mysql
23206                         if test -d /usr/local/mysql/lib64/mysql; then
23207                                 MYSQL_LIBDIR=/usr/local/mysql/lib64/mysql
23208                         else
23209                                 MYSQL_LIBDIR=/usr/local/mysql/lib/mysql
23210                         fi
23211                         MYSQL_BINDIR=/usr/local/mysql/bin
23212                 elif test -f /usr/include/mysql/mysql.h; then
23213                         MYSQL_INCDIR=/usr/include/mysql
23214                         if test -d /usr/lib64/mysql; then
23215                                 MYSQL_LIBDIR=/usr/lib64/mysql
23216                         else
23217                                 MYSQL_LIBDIR=/usr/lib/mysql
23218                         fi
23219                         MYSQL_BINDIR=/usr/bin
23220                 elif test -f /usr/include/mysql.h; then
23221                         MYSQL_INCDIR=/usr/include
23222                         if test -d /usr/lib64; then
23223                                 MYSQL_LIBDIR=/usr/lib64
23224                         else
23225                                 MYSQL_LIBDIR=/usr/lib
23226                         fi
23227                         MYSQL_BINDIR=/usr/bin
23228                 elif test -f /usr/local/include/mysql/mysql.h; then
23229                         MYSQL_INCDIR=/usr/local/include/mysql
23230                         if test -d /usr/local/lib64/mysql; then
23231                                 MYSQL_LIBDIR=/usr/local/lib64/mysql
23232                         else
23233                                 MYSQL_LIBDIR=/usr/local/lib/mysql
23234                         fi
23235                         MYSQL_BINDIR=/usr/local/bin
23236                 elif test -f /usr/local/include/mysql.h; then
23237                         MYSQL_INCDIR=/usr/local/include
23238                         if test -d /usr/local/lib64; then
23239                                 MYSQL_LIBDIR=/usr/local/lib64
23240                         else
23241                                 MYSQL_LIBDIR=/usr/local/lib
23242                         fi
23243                         MYSQL_BINDIR=/usr/local/bin
23244                 else
23245                    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23246 $as_echo "no" >&6; }
23247                    as_fn_error "Unable to find mysql.h in standard locations" "$LINENO" 5
23248                 fi
23249         else
23250                 if test -f $withval/include/mysql/mysql.h; then
23251                         MYSQL_INCDIR=$withval/include/mysql
23252                         if test -d $withval/lib64/mysql; then
23253                                 MYSQL_LIBDIR=$withval/lib64/mysql
23254                         else
23255                                 MYSQL_LIBDIR=$withval/lib/mysql
23256                         fi
23257                         MYSQL_BINDIR=$withval/bin
23258                 elif test -f $withval/include/mysql.h; then
23259                         MYSQL_INCDIR=$withval/include
23260                         if test -d $withval/lib64; then
23261                                 MYSQL_LIBDIR=$withval/lib64
23262                         else
23263                                 MYSQL_LIBDIR=$withval/lib
23264                         fi
23265                         MYSQL_BINDIR=$withval/bin
23266                 else
23267                    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23268 $as_echo "no" >&6; }
23269                    as_fn_error "Invalid MySQL directory $withval - unable to find mysql.h under $withval" "$LINENO" 5
23270                 fi
23271         fi
23272      MYSQL_INCLUDE=-I$MYSQL_INCDIR
23273      MYSQL_LIBS="-R $MYSQL_LIBDIR -L$MYSQL_LIBDIR -lmysqld -lz -lm -lcrypt"
23274      MYSQL_LIB=$MYSQL_LIBDIR/libmysqld.a
23275      DB_LIBS="${DB_LIBS} ${MYSQL_LIBS}"
23276
23277
23278 $as_echo "#define HAVE_MYSQL 1" >>confdefs.h
23279
23280
23281 $as_echo "#define HAVE_EMBEDDED_MYSQL 1" >>confdefs.h
23282
23283      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
23284 $as_echo "yes" >&6; }
23285
23286      if test -z "${db_backends}"; then
23287          db_backends="MySQL"
23288      else
23289          db_backends="${db_backends} MySQL"
23290      fi
23291      if test -z "${DB_BACKENDS}"; then
23292          DB_BACKENDS="mysql"
23293      else
23294          DB_BACKENDS="${DB_BACKENDS} mysql"
23295      fi
23296   else
23297      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23298 $as_echo "no" >&6; }
23299   fi
23300
23301
23302 fi
23303
23304
23305
23306
23307
23308
23309
23310
23311
23312 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SQLite3 support" >&5
23313 $as_echo_n "checking for SQLite3 support... " >&6; }
23314
23315 # Check whether --with-sqlite3 was given.
23316 if test "${with_sqlite3+set}" = set; then :
23317   withval=$with_sqlite3;
23318   if test "$withval" != "no"; then
23319      if test "$withval" = "yes"; then
23320         if test -f /usr/local/include/sqlite3.h; then
23321            SQLITE_INCDIR=/usr/local/include
23322            if test -d /usr/local/lib64; then
23323               SQLITE_LIBDIR=/usr/local/lib64
23324            else
23325               SQLITE_LIBDIR=/usr/local/lib
23326            fi
23327            SQLITE_BINDIR=/usr/local/bin
23328         elif test -f /usr/include/sqlite3.h; then
23329            SQLITE_INCDIR=/usr/include
23330            if test -d /usr/lib64; then
23331               SQLITE_LIBDIR=/usr/lib64
23332            else
23333               SQLITE_LIBDIR=/usr/lib
23334            fi
23335            SQLITE_BINDIR=/usr/bin
23336         elif test -f $prefix/include/sqlite3.h; then
23337            SQLITE_INCDIR=$prefix/include
23338            if test -d $prefix/lib64; then
23339               SQLITE_LIBDIR=$prefix/lib64
23340            else
23341               SQLITE_LIBDIR=$prefix/lib
23342            fi
23343            SQLITE_BINDIR=$prefix/bin
23344         else
23345            { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23346 $as_echo "no" >&6; }
23347            as_fn_error "Unable to find sqlite3.h in standard locations" "$LINENO" 5
23348         fi
23349      else
23350         if test -f $withval/sqlite3.h; then
23351            SQLITE_INCDIR=$withval
23352            SQLITE_LIBDIR=$withval
23353            SQLITE_BINDIR=$withval
23354         elif test -f $withval/include/sqlite3.h; then
23355            SQLITE_INCDIR=$withval/include
23356            if test -d $withval/lib64; then
23357               SQLITE_LIBDIR=$withval/lib64
23358            else
23359               SQLITE_LIBDIR=$withval/lib
23360            fi
23361            SQLITE_BINDIR=$withval/bin
23362         else
23363            { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23364 $as_echo "no" >&6; }
23365            as_fn_error "Invalid SQLite3 directory $withval - unable to find sqlite3.h under $withval" "$LINENO" 5
23366         fi
23367      fi
23368      SQLITE_INCLUDE=-I$SQLITE_INCDIR
23369      SQLITE_LIBS="-R $SQLITE_LIBDIR -L$SQLITE_LIBDIR -lsqlite3"
23370      SQLITE_LIB=$SQLITE_LIBDIR/libsqlite3.a
23371      DB_LIBS="${DB_LIBS} ${SQLITE_LIBS}"
23372
23373
23374 $as_echo "#define HAVE_SQLITE3 1" >>confdefs.h
23375
23376      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
23377 $as_echo "yes" >&6; }
23378
23379      if test -z "${db_backends}"; then
23380          db_backends="SQLite3"
23381      else
23382          db_backends="${db_backends} SQLite3"
23383      fi
23384      if test -z "${DB_BACKENDS}"; then
23385          DB_BACKENDS="sqlite3"
23386      else
23387          DB_BACKENDS="${DB_BACKENDS} sqlite3"
23388      fi
23389   else
23390      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23391 $as_echo "no" >&6; }
23392   fi
23393
23394 else
23395
23396   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23397 $as_echo "no" >&6; }
23398
23399 fi
23400
23401
23402
23403
23404
23405
23406
23407 #BA_CHECK_INGRES_DB
23408
23409 #BA_CHECK_DBI_DB
23410
23411 #BA_CHECK_DBI_DRIVER
23412
23413 if test "x${db_backends}" = "x" ; then
23414    echo " "
23415    echo " "
23416    echo "You have not specified either --enable-client-only or one of the"
23417    echo "supported databases: MySQL, PostgreSQL, or SQLite3."
23418    echo "This is not permitted. Please reconfigure."
23419    echo " "
23420    echo "Aborting the configuration ..."
23421    echo " "
23422    echo " "
23423    exit 1
23424 fi
23425
23426 case `echo $DB_BACKENDS | wc -w | sed -e 's/^ *//'` in
23427    1)
23428       DEFAULT_DB_TYPE="${DB_BACKENDS}"
23429       if test x$use_libtool = xno; then
23430          SHARED_CATALOG_TARGETS=""
23431       else
23432          SHARED_CATALOG_TARGETS="libbaccats-${DEFAULT_DB_TYPE}.la"
23433       fi
23434       ;;
23435    *)
23436                         DEFAULT_DB_TYPE=`echo ${DB_BACKENDS} | cut -d' ' -f1`
23437
23438                         if test x$use_libtool = xno; then
23439          echo " "
23440          echo " "
23441          echo "You have specified two or more of the"
23442          echo "supported databases: MySQL, PostgreSQL, or SQLite3."
23443          echo "This is not permitted when not using libtool Please reconfigure."
23444          echo " "
23445          echo "Aborting the configuration ..."
23446          echo " "
23447          echo " "
23448          exit 1
23449       fi
23450
23451       SHARED_CATALOG_TARGETS=""
23452       for db_type in ${DB_BACKENDS}
23453       do
23454          if test -z "${SHARED_CATALOG_TARGETS}"; then
23455             SHARED_CATALOG_TARGETS="libbaccats-${db_type}.la"
23456          else
23457             SHARED_CATALOG_TARGETS="${SHARED_CATALOG_TARGETS} libbaccats-${db_type}.la"
23458          fi
23459       done
23460       ;;
23461 esac
23462
23463 if test x$use_libtool = xyes; then
23464    DB_LIBS=""
23465 fi
23466
23467
23468
23469
23470
23471
23472 support_batch_insert=yes
23473 # Check whether --enable-batch-insert was given.
23474 if test "${enable_batch_insert+set}" = set; then :
23475   enableval=$enable_batch_insert;
23476        if test x$enableval = xno; then
23477           support_batch_insert=no
23478        fi
23479
23480
23481 fi
23482
23483
23484 if test x$support_batch_insert = xyes; then
23485
23486 $as_echo "#define USE_BATCH_FILE_INSERT 1" >>confdefs.h
23487
23488 fi
23489
23490 if test ! -z "$MYSQL_LIB"; then
23491    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mysql_thread_safe in -lmysql_r" >&5
23492 $as_echo_n "checking for mysql_thread_safe in -lmysql_r... " >&6; }
23493 if test "${ac_cv_lib_mysql_r_mysql_thread_safe+set}" = set; then :
23494   $as_echo_n "(cached) " >&6
23495 else
23496   ac_check_lib_save_LIBS=$LIBS
23497 LIBS="-lmysql_r  $LIBS"
23498 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23499 /* end confdefs.h.  */
23500
23501 /* Override any GCC internal prototype to avoid an error.
23502    Use char because int might match the return type of a GCC
23503    builtin and then its argument prototype would still apply.  */
23504 #ifdef __cplusplus
23505 extern "C"
23506 #endif
23507 char mysql_thread_safe ();
23508 int
23509 main ()
23510 {
23511 return mysql_thread_safe ();
23512   ;
23513   return 0;
23514 }
23515 _ACEOF
23516 if ac_fn_c_try_link "$LINENO"; then :
23517   ac_cv_lib_mysql_r_mysql_thread_safe=yes
23518 else
23519   ac_cv_lib_mysql_r_mysql_thread_safe=no
23520 fi
23521 rm -f core conftest.err conftest.$ac_objext \
23522     conftest$ac_exeext conftest.$ac_ext
23523 LIBS=$ac_check_lib_save_LIBS
23524 fi
23525 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mysql_r_mysql_thread_safe" >&5
23526 $as_echo "$ac_cv_lib_mysql_r_mysql_thread_safe" >&6; }
23527 if test "x$ac_cv_lib_mysql_r_mysql_thread_safe" = x""yes; then :
23528
23529 $as_echo "#define HAVE_MYSQL_THREAD_SAFE 1" >>confdefs.h
23530
23531 fi
23532
23533 fi
23534
23535 if test ! -z "SQLITE_LIB"; then
23536    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sqlite3_threadsafe in -lsqlite3" >&5
23537 $as_echo_n "checking for sqlite3_threadsafe in -lsqlite3... " >&6; }
23538 if test "${ac_cv_lib_sqlite3_sqlite3_threadsafe+set}" = set; then :
23539   $as_echo_n "(cached) " >&6
23540 else
23541   ac_check_lib_save_LIBS=$LIBS
23542 LIBS="-lsqlite3  $LIBS"
23543 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23544 /* end confdefs.h.  */
23545
23546 /* Override any GCC internal prototype to avoid an error.
23547    Use char because int might match the return type of a GCC
23548    builtin and then its argument prototype would still apply.  */
23549 #ifdef __cplusplus
23550 extern "C"
23551 #endif
23552 char sqlite3_threadsafe ();
23553 int
23554 main ()
23555 {
23556 return sqlite3_threadsafe ();
23557   ;
23558   return 0;
23559 }
23560 _ACEOF
23561 if ac_fn_c_try_link "$LINENO"; then :
23562   ac_cv_lib_sqlite3_sqlite3_threadsafe=yes
23563 else
23564   ac_cv_lib_sqlite3_sqlite3_threadsafe=no
23565 fi
23566 rm -f core conftest.err conftest.$ac_objext \
23567     conftest$ac_exeext conftest.$ac_ext
23568 LIBS=$ac_check_lib_save_LIBS
23569 fi
23570 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_sqlite3_sqlite3_threadsafe" >&5
23571 $as_echo "$ac_cv_lib_sqlite3_sqlite3_threadsafe" >&6; }
23572 if test "x$ac_cv_lib_sqlite3_sqlite3_threadsafe" = x""yes; then :
23573
23574 $as_echo "#define HAVE_SQLITE3_THREADSAFE 1" >>confdefs.h
23575
23576 fi
23577
23578 fi
23579
23580 if test ! -z "$POSTGRESQL_LIB"; then
23581       saved_LIBS="${LIBS}"
23582    LIBS="${saved_LIBS} ${POSTGRESQL_LIB}"
23583
23584    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PQisthreadsafe in -lpq" >&5
23585 $as_echo_n "checking for PQisthreadsafe in -lpq... " >&6; }
23586 if test "${ac_cv_lib_pq_PQisthreadsafe+set}" = set; then :
23587   $as_echo_n "(cached) " >&6
23588 else
23589   ac_check_lib_save_LIBS=$LIBS
23590 LIBS="-lpq  $LIBS"
23591 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23592 /* end confdefs.h.  */
23593
23594 /* Override any GCC internal prototype to avoid an error.
23595    Use char because int might match the return type of a GCC
23596    builtin and then its argument prototype would still apply.  */
23597 #ifdef __cplusplus
23598 extern "C"
23599 #endif
23600 char PQisthreadsafe ();
23601 int
23602 main ()
23603 {
23604 return PQisthreadsafe ();
23605   ;
23606   return 0;
23607 }
23608 _ACEOF
23609 if ac_fn_c_try_link "$LINENO"; then :
23610   ac_cv_lib_pq_PQisthreadsafe=yes
23611 else
23612   ac_cv_lib_pq_PQisthreadsafe=no
23613 fi
23614 rm -f core conftest.err conftest.$ac_objext \
23615     conftest$ac_exeext conftest.$ac_ext
23616 LIBS=$ac_check_lib_save_LIBS
23617 fi
23618 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pq_PQisthreadsafe" >&5
23619 $as_echo "$ac_cv_lib_pq_PQisthreadsafe" >&6; }
23620 if test "x$ac_cv_lib_pq_PQisthreadsafe" = x""yes; then :
23621
23622 $as_echo "#define HAVE_PQISTHREADSAFE 1" >>confdefs.h
23623
23624 fi
23625
23626    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PQputCopyData in -lpq" >&5
23627 $as_echo_n "checking for PQputCopyData in -lpq... " >&6; }
23628 if test "${ac_cv_lib_pq_PQputCopyData+set}" = set; then :
23629   $as_echo_n "(cached) " >&6
23630 else
23631   ac_check_lib_save_LIBS=$LIBS
23632 LIBS="-lpq  $LIBS"
23633 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23634 /* end confdefs.h.  */
23635
23636 /* Override any GCC internal prototype to avoid an error.
23637    Use char because int might match the return type of a GCC
23638    builtin and then its argument prototype would still apply.  */
23639 #ifdef __cplusplus
23640 extern "C"
23641 #endif
23642 char PQputCopyData ();
23643 int
23644 main ()
23645 {
23646 return PQputCopyData ();
23647   ;
23648   return 0;
23649 }
23650 _ACEOF
23651 if ac_fn_c_try_link "$LINENO"; then :
23652   ac_cv_lib_pq_PQputCopyData=yes
23653 else
23654   ac_cv_lib_pq_PQputCopyData=no
23655 fi
23656 rm -f core conftest.err conftest.$ac_objext \
23657     conftest$ac_exeext conftest.$ac_ext
23658 LIBS=$ac_check_lib_save_LIBS
23659 fi
23660 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pq_PQputCopyData" >&5
23661 $as_echo "$ac_cv_lib_pq_PQputCopyData" >&6; }
23662 if test "x$ac_cv_lib_pq_PQputCopyData" = x""yes; then :
23663
23664 $as_echo "#define HAVE_PQ_COPY 1" >>confdefs.h
23665
23666 fi
23667
23668    if test "x$ac_cv_lib_pq_PQputCopyData" = "xyes"; then
23669       if test $support_batch_insert = yes ; then
23670
23671 $as_echo "#define HAVE_POSTGRESQL_BATCH_FILE_INSERT 1" >>confdefs.h
23672
23673       fi
23674    fi
23675
23676    if test x$ac_cv_lib_pq_PQisthreadsafe != xyes -a x$support_batch_insert = xyes
23677    then
23678       echo "WARNING: Your PostgreSQL client library is too old to detect "
23679       echo "if it was compiled with --enable-thread-safety, consider to "
23680       echo "upgrade it in order to avoid problems with Batch insert mode"
23681       echo
23682    fi
23683
23684       LIBS="${saved_LIBS}"
23685 fi
23686
23687 if test ! -z "$DBI_LIBS"; then
23688             DB_BACKENDS="${DB_BACKENDS} ${DB_PROG}"
23689
23690             if test $DB_PROG = postgresql; then
23691       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PQisthreadsafe in -lpq" >&5
23692 $as_echo_n "checking for PQisthreadsafe in -lpq... " >&6; }
23693 if test "${ac_cv_lib_pq_PQisthreadsafe+set}" = set; then :
23694   $as_echo_n "(cached) " >&6
23695 else
23696   ac_check_lib_save_LIBS=$LIBS
23697 LIBS="-lpq  $LIBS"
23698 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23699 /* end confdefs.h.  */
23700
23701 /* Override any GCC internal prototype to avoid an error.
23702    Use char because int might match the return type of a GCC
23703    builtin and then its argument prototype would still apply.  */
23704 #ifdef __cplusplus
23705 extern "C"
23706 #endif
23707 char PQisthreadsafe ();
23708 int
23709 main ()
23710 {
23711 return PQisthreadsafe ();
23712   ;
23713   return 0;
23714 }
23715 _ACEOF
23716 if ac_fn_c_try_link "$LINENO"; then :
23717   ac_cv_lib_pq_PQisthreadsafe=yes
23718 else
23719   ac_cv_lib_pq_PQisthreadsafe=no
23720 fi
23721 rm -f core conftest.err conftest.$ac_objext \
23722     conftest$ac_exeext conftest.$ac_ext
23723 LIBS=$ac_check_lib_save_LIBS
23724 fi
23725 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pq_PQisthreadsafe" >&5
23726 $as_echo "$ac_cv_lib_pq_PQisthreadsafe" >&6; }
23727 if test "x$ac_cv_lib_pq_PQisthreadsafe" = x""yes; then :
23728   $as_echo "#define HAVE_PQISTHREADSAFE 1" >>confdefs.h
23729
23730 fi
23731
23732       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PQputCopyData in -lpq" >&5
23733 $as_echo_n "checking for PQputCopyData in -lpq... " >&6; }
23734 if test "${ac_cv_lib_pq_PQputCopyData+set}" = set; then :
23735   $as_echo_n "(cached) " >&6
23736 else
23737   ac_check_lib_save_LIBS=$LIBS
23738 LIBS="-lpq  $LIBS"
23739 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23740 /* end confdefs.h.  */
23741
23742 /* Override any GCC internal prototype to avoid an error.
23743    Use char because int might match the return type of a GCC
23744    builtin and then its argument prototype would still apply.  */
23745 #ifdef __cplusplus
23746 extern "C"
23747 #endif
23748 char PQputCopyData ();
23749 int
23750 main ()
23751 {
23752 return PQputCopyData ();
23753   ;
23754   return 0;
23755 }
23756 _ACEOF
23757 if ac_fn_c_try_link "$LINENO"; then :
23758   ac_cv_lib_pq_PQputCopyData=yes
23759 else
23760   ac_cv_lib_pq_PQputCopyData=no
23761 fi
23762 rm -f core conftest.err conftest.$ac_objext \
23763     conftest$ac_exeext conftest.$ac_ext
23764 LIBS=$ac_check_lib_save_LIBS
23765 fi
23766 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pq_PQputCopyData" >&5
23767 $as_echo "$ac_cv_lib_pq_PQputCopyData" >&6; }
23768 if test "x$ac_cv_lib_pq_PQputCopyData" = x""yes; then :
23769   $as_echo "#define HAVE_PQ_COPY 1" >>confdefs.h
23770
23771 fi
23772
23773       test "x$ac_cv_lib_pq_PQputCopyData" = "xyes"
23774       pkg=$?
23775       if test $pkg = 0; then
23776          if test $support_batch_insert = yes ; then
23777
23778 $as_echo "#define HAVE_DBI_BATCH_FILE_INSERT 1" >>confdefs.h
23779
23780          fi
23781       fi
23782    fi
23783 else
23784             uncomment_dbi="#"
23785 fi
23786
23787
23788
23789 $as_echo "#define PROTOTYPES 1" >>confdefs.h
23790
23791
23792 if test -z "$CFLAGS" -o "$CFLAGS" = "-g -O2"; then
23793    if test -z "$CCOPTS"; then
23794       CCOPTS='-g -O2 -Wall'
23795    fi
23796    CFLAGS="$CCOPTS"
23797 fi
23798
23799
23800
23801 largefile_support="no"
23802
23803    # Check whether --enable-largefile was given.
23804 if test "${enable_largefile+set}" = set; then :
23805   enableval=$enable_largefile;
23806 fi
23807
23808    if test "$enable_largefile" != no; then
23809      if test -n "$ac_tool_prefix"; then
23810   # Extract the first word of "${ac_tool_prefix}getconf", so it can be a program name with args.
23811 set dummy ${ac_tool_prefix}getconf; ac_word=$2
23812 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
23813 $as_echo_n "checking for $ac_word... " >&6; }
23814 if test "${ac_cv_prog_GETCONF+set}" = set; then :
23815   $as_echo_n "(cached) " >&6
23816 else
23817   if test -n "$GETCONF"; then
23818   ac_cv_prog_GETCONF="$GETCONF" # Let the user override the test.
23819 else
23820 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23821 for as_dir in $PATH
23822 do
23823   IFS=$as_save_IFS
23824   test -z "$as_dir" && as_dir=.
23825     for ac_exec_ext in '' $ac_executable_extensions; do
23826   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
23827     ac_cv_prog_GETCONF="${ac_tool_prefix}getconf"
23828     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
23829     break 2
23830   fi
23831 done
23832   done
23833 IFS=$as_save_IFS
23834
23835 fi
23836 fi
23837 GETCONF=$ac_cv_prog_GETCONF
23838 if test -n "$GETCONF"; then
23839   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GETCONF" >&5
23840 $as_echo "$GETCONF" >&6; }
23841 else
23842   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23843 $as_echo "no" >&6; }
23844 fi
23845
23846
23847 fi
23848 if test -z "$ac_cv_prog_GETCONF"; then
23849   ac_ct_GETCONF=$GETCONF
23850   # Extract the first word of "getconf", so it can be a program name with args.
23851 set dummy getconf; ac_word=$2
23852 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
23853 $as_echo_n "checking for $ac_word... " >&6; }
23854 if test "${ac_cv_prog_ac_ct_GETCONF+set}" = set; then :
23855   $as_echo_n "(cached) " >&6
23856 else
23857   if test -n "$ac_ct_GETCONF"; then
23858   ac_cv_prog_ac_ct_GETCONF="$ac_ct_GETCONF" # Let the user override the test.
23859 else
23860 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23861 for as_dir in $PATH
23862 do
23863   IFS=$as_save_IFS
23864   test -z "$as_dir" && as_dir=.
23865     for ac_exec_ext in '' $ac_executable_extensions; do
23866   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
23867     ac_cv_prog_ac_ct_GETCONF="getconf"
23868     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
23869     break 2
23870   fi
23871 done
23872   done
23873 IFS=$as_save_IFS
23874
23875 fi
23876 fi
23877 ac_ct_GETCONF=$ac_cv_prog_ac_ct_GETCONF
23878 if test -n "$ac_ct_GETCONF"; then
23879   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GETCONF" >&5
23880 $as_echo "$ac_ct_GETCONF" >&6; }
23881 else
23882   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23883 $as_echo "no" >&6; }
23884 fi
23885
23886   if test "x$ac_ct_GETCONF" = x; then
23887     GETCONF=""
23888   else
23889     case $cross_compiling:$ac_tool_warned in
23890 yes:)
23891 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
23892 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
23893 ac_tool_warned=yes ;;
23894 esac
23895     GETCONF=$ac_ct_GETCONF
23896   fi
23897 else
23898   GETCONF="$ac_cv_prog_GETCONF"
23899 fi
23900
23901      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFLAGS value to request large file support" >&5
23902 $as_echo_n "checking for CFLAGS value to request large file support... " >&6; }
23903 if test "${ac_cv_sys_largefile_CFLAGS+set}" = set; then :
23904   $as_echo_n "(cached) " >&6
23905 else
23906   ac_cv_sys_largefile_CFLAGS=`($GETCONF LFS_CFLAGS) 2>/dev/null` || {
23907         ac_cv_sys_largefile_CFLAGS=no
23908         case "$host_os" in
23909            # IRIX 6.2 and later require cc -n32.
23910            irix6.[2-9]* | irix6.1[0-9]* | irix[7-9].* | irix[1-9][0-9]*)
23911              if test "$GCC" != yes; then
23912                ac_cv_sys_largefile_CFLAGS=-n32
23913              fi
23914              ac_save_CC="$CC"
23915              CC="$CC $ac_cv_sys_largefile_CFLAGS"
23916              cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23917 /* end confdefs.h.  */
23918
23919 int
23920 main ()
23921 {
23922
23923   ;
23924   return 0;
23925 }
23926 _ACEOF
23927 if ac_fn_c_try_link "$LINENO"; then :
23928
23929 else
23930   ac_cv_sys_largefile_CFLAGS=no
23931 fi
23932 rm -f core conftest.err conftest.$ac_objext \
23933     conftest$ac_exeext conftest.$ac_ext
23934              CC="$ac_save_CC"
23935            esac
23936       }
23937 fi
23938 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CFLAGS" >&5
23939 $as_echo "$ac_cv_sys_largefile_CFLAGS" >&6; }
23940      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LDFLAGS value to request large file support" >&5
23941 $as_echo_n "checking for LDFLAGS value to request large file support... " >&6; }
23942 if test "${ac_cv_sys_largefile_LDFLAGS+set}" = set; then :
23943   $as_echo_n "(cached) " >&6
23944 else
23945   ac_cv_sys_largefile_LDFLAGS=`($GETCONF LFS_LDFLAGS) 2>/dev/null` || {
23946         ac_cv_sys_largefile_LDFLAGS=no
23947
23948       }
23949 fi
23950 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_LDFLAGS" >&5
23951 $as_echo "$ac_cv_sys_largefile_LDFLAGS" >&6; }
23952      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LIBS value to request large file support" >&5
23953 $as_echo_n "checking for LIBS value to request large file support... " >&6; }
23954 if test "${ac_cv_sys_largefile_LIBS+set}" = set; then :
23955   $as_echo_n "(cached) " >&6
23956 else
23957   ac_cv_sys_largefile_LIBS=`($GETCONF LFS_LIBS) 2>/dev/null` || {
23958         ac_cv_sys_largefile_LIBS=no
23959
23960       }
23961 fi
23962 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_LIBS" >&5
23963 $as_echo "$ac_cv_sys_largefile_LIBS" >&6; }
23964
23965      for ac_flag in $ac_cv_sys_largefile_CFLAGS no; do
23966        case "$ac_flag" in
23967        no) ;;
23968        -D_FILE_OFFSET_BITS=*) ;;
23969        -D_LARGEFILE_SOURCE | -D_LARGEFILE_SOURCE=*) ;;
23970        -D_LARGE_FILES | -D_LARGE_FILES=*) ;;
23971        -D?* | -I?*)
23972          case "$ac_flag" in
23973    no) ;;
23974    ?*)
23975      case "$CPPFLAGS" in
23976      '') CPPFLAGS="$ac_flag" ;;
23977      *) CPPFLAGS=$CPPFLAGS' '"$ac_flag" ;;
23978      esac ;;
23979    esac ;;
23980        *)
23981          case "$ac_flag" in
23982    no) ;;
23983    ?*)
23984      case "$CFLAGS" in
23985      '') CFLAGS="$ac_flag" ;;
23986      *) CFLAGS=$CFLAGS' '"$ac_flag" ;;
23987      esac ;;
23988    esac ;;
23989        esac
23990      done
23991      case "$ac_cv_sys_largefile_LDFLAGS" in
23992    no) ;;
23993    ?*)
23994      case "$LDFLAGS" in
23995      '') LDFLAGS="$ac_cv_sys_largefile_LDFLAGS" ;;
23996      *) LDFLAGS=$LDFLAGS' '"$ac_cv_sys_largefile_LDFLAGS" ;;
23997      esac ;;
23998    esac
23999      case "$ac_cv_sys_largefile_LIBS" in
24000    no) ;;
24001    ?*)
24002      case "$LIBS" in
24003      '') LIBS="$ac_cv_sys_largefile_LIBS" ;;
24004      *) LIBS=$LIBS' '"$ac_cv_sys_largefile_LIBS" ;;
24005      esac ;;
24006    esac
24007      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS" >&5
24008 $as_echo_n "checking for _FILE_OFFSET_BITS... " >&6; }
24009 if test "${ac_cv_sys_file_offset_bits+set}" = set; then :
24010   $as_echo_n "(cached) " >&6
24011 else
24012   ac_cv_sys_file_offset_bits=no
24013       ac_cv_sys_file_offset_bits=64
24014       for ac_flag in $ac_cv_sys_largefile_CFLAGS no; do
24015         case "$ac_flag" in
24016         -D_FILE_OFFSET_BITS)
24017           ac_cv_sys_file_offset_bits=1 ;;
24018         -D_FILE_OFFSET_BITS=*)
24019           ac_cv_sys_file_offset_bits=`expr " $ac_flag" : '[^=]*=\(.*\)'` ;;
24020         esac
24021       done
24022
24023 fi
24024 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
24025 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
24026    if test "$ac_cv_sys_file_offset_bits" != no; then
24027
24028 cat >>confdefs.h <<_ACEOF
24029 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
24030 _ACEOF
24031
24032    fi
24033      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGEFILE_SOURCE" >&5
24034 $as_echo_n "checking for _LARGEFILE_SOURCE... " >&6; }
24035 if test "${ac_cv_sys_largefile_source+set}" = set; then :
24036   $as_echo_n "(cached) " >&6
24037 else
24038   ac_cv_sys_largefile_source=no
24039       ac_cv_sys_largefile_source=1
24040       for ac_flag in $ac_cv_sys_largefile_CFLAGS no; do
24041         case "$ac_flag" in
24042         -D_LARGEFILE_SOURCE)
24043           ac_cv_sys_largefile_source=1 ;;
24044         -D_LARGEFILE_SOURCE=*)
24045           ac_cv_sys_largefile_source=`expr " $ac_flag" : '[^=]*=\(.*\)'` ;;
24046         esac
24047       done
24048
24049 fi
24050 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_source" >&5
24051 $as_echo "$ac_cv_sys_largefile_source" >&6; }
24052    if test "$ac_cv_sys_largefile_source" != no; then
24053
24054 cat >>confdefs.h <<_ACEOF
24055 #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
24056 _ACEOF
24057
24058    fi
24059      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES" >&5
24060 $as_echo_n "checking for _LARGE_FILES... " >&6; }
24061 if test "${ac_cv_sys_large_files+set}" = set; then :
24062   $as_echo_n "(cached) " >&6
24063 else
24064   ac_cv_sys_large_files=no
24065       ac_cv_sys_large_files=1
24066       for ac_flag in $ac_cv_sys_largefile_CFLAGS no; do
24067         case "$ac_flag" in
24068         -D_LARGE_FILES)
24069           ac_cv_sys_large_files=1 ;;
24070         -D_LARGE_FILES=*)
24071           ac_cv_sys_large_files=`expr " $ac_flag" : '[^=]*=\(.*\)'` ;;
24072         esac
24073       done
24074
24075 fi
24076 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
24077 $as_echo "$ac_cv_sys_large_files" >&6; }
24078    if test "$ac_cv_sys_large_files" != no; then
24079
24080 cat >>confdefs.h <<_ACEOF
24081 #define _LARGE_FILES $ac_cv_sys_large_files
24082 _ACEOF
24083
24084    fi
24085    fi
24086
24087
24088 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for X" >&5
24089 $as_echo_n "checking for X... " >&6; }
24090
24091
24092 # Check whether --with-x was given.
24093 if test "${with_x+set}" = set; then :
24094   withval=$with_x;
24095 fi
24096
24097 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
24098 if test "x$with_x" = xno; then
24099   # The user explicitly disabled X.
24100   have_x=disabled
24101 else
24102   case $x_includes,$x_libraries in #(
24103     *\'*) as_fn_error "cannot use X directory names containing '" "$LINENO" 5;; #(
24104     *,NONE | NONE,*) if test "${ac_cv_have_x+set}" = set; then :
24105   $as_echo_n "(cached) " >&6
24106 else
24107   # One or both of the vars are not set, and there is no cached value.
24108 ac_x_includes=no ac_x_libraries=no
24109 rm -f -r conftest.dir
24110 if mkdir conftest.dir; then
24111   cd conftest.dir
24112   cat >Imakefile <<'_ACEOF'
24113 incroot:
24114         @echo incroot='${INCROOT}'
24115 usrlibdir:
24116         @echo usrlibdir='${USRLIBDIR}'
24117 libdir:
24118         @echo libdir='${LIBDIR}'
24119 _ACEOF
24120   if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
24121     # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
24122     for ac_var in incroot usrlibdir libdir; do
24123       eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
24124     done
24125     # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
24126     for ac_extension in a so sl dylib la dll; do
24127       if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
24128          test -f "$ac_im_libdir/libX11.$ac_extension"; then
24129         ac_im_usrlibdir=$ac_im_libdir; break
24130       fi
24131     done
24132     # Screen out bogus values from the imake configuration.  They are
24133     # bogus both because they are the default anyway, and because
24134     # using them would break gcc on systems where it needs fixed includes.
24135     case $ac_im_incroot in
24136         /usr/include) ac_x_includes= ;;
24137         *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
24138     esac
24139     case $ac_im_usrlibdir in
24140         /usr/lib | /usr/lib64 | /lib | /lib64) ;;
24141         *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
24142     esac
24143   fi
24144   cd ..
24145   rm -f -r conftest.dir
24146 fi
24147
24148 # Standard set of common directories for X headers.
24149 # Check X11 before X11Rn because it is often a symlink to the current release.
24150 ac_x_header_dirs='
24151 /usr/X11/include
24152 /usr/X11R7/include
24153 /usr/X11R6/include
24154 /usr/X11R5/include
24155 /usr/X11R4/include
24156
24157 /usr/include/X11
24158 /usr/include/X11R7
24159 /usr/include/X11R6
24160 /usr/include/X11R5
24161 /usr/include/X11R4
24162
24163 /usr/local/X11/include
24164 /usr/local/X11R7/include
24165 /usr/local/X11R6/include
24166 /usr/local/X11R5/include
24167 /usr/local/X11R4/include
24168
24169 /usr/local/include/X11
24170 /usr/local/include/X11R7
24171 /usr/local/include/X11R6
24172 /usr/local/include/X11R5
24173 /usr/local/include/X11R4
24174
24175 /usr/X386/include
24176 /usr/x386/include
24177 /usr/XFree86/include/X11
24178
24179 /usr/include
24180 /usr/local/include
24181 /usr/unsupported/include
24182 /usr/athena/include
24183 /usr/local/x11r5/include
24184 /usr/lpp/Xamples/include
24185
24186 /usr/openwin/include
24187 /usr/openwin/share/include'
24188
24189 if test "$ac_x_includes" = no; then
24190   # Guess where to find include files, by looking for Xlib.h.
24191   # First, try using that file with no special directory specified.
24192   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24193 /* end confdefs.h.  */
24194 #include <X11/Xlib.h>
24195 _ACEOF
24196 if ac_fn_c_try_cpp "$LINENO"; then :
24197   # We can compile using X headers with no special include directory.
24198 ac_x_includes=
24199 else
24200   for ac_dir in $ac_x_header_dirs; do
24201   if test -r "$ac_dir/X11/Xlib.h"; then
24202     ac_x_includes=$ac_dir
24203     break
24204   fi
24205 done
24206 fi
24207 rm -f conftest.err conftest.$ac_ext
24208 fi # $ac_x_includes = no
24209
24210 if test "$ac_x_libraries" = no; then
24211   # Check for the libraries.
24212   # See if we find them without any special options.
24213   # Don't add to $LIBS permanently.
24214   ac_save_LIBS=$LIBS
24215   LIBS="-lX11 $LIBS"
24216   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24217 /* end confdefs.h.  */
24218 #include <X11/Xlib.h>
24219 int
24220 main ()
24221 {
24222 XrmInitialize ()
24223   ;
24224   return 0;
24225 }
24226 _ACEOF
24227 if ac_fn_c_try_link "$LINENO"; then :
24228   LIBS=$ac_save_LIBS
24229 # We can link X programs with no special library path.
24230 ac_x_libraries=
24231 else
24232   LIBS=$ac_save_LIBS
24233 for ac_dir in `$as_echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
24234 do
24235   # Don't even attempt the hair of trying to link an X program!
24236   for ac_extension in a so sl dylib la dll; do
24237     if test -r "$ac_dir/libX11.$ac_extension"; then
24238       ac_x_libraries=$ac_dir
24239       break 2
24240     fi
24241   done
24242 done
24243 fi
24244 rm -f core conftest.err conftest.$ac_objext \
24245     conftest$ac_exeext conftest.$ac_ext
24246 fi # $ac_x_libraries = no
24247
24248 case $ac_x_includes,$ac_x_libraries in #(
24249   no,* | *,no | *\'*)
24250     # Didn't find X, or a directory has "'" in its name.
24251     ac_cv_have_x="have_x=no";; #(
24252   *)
24253     # Record where we found X for the cache.
24254     ac_cv_have_x="have_x=yes\
24255         ac_x_includes='$ac_x_includes'\
24256         ac_x_libraries='$ac_x_libraries'"
24257 esac
24258 fi
24259 ;; #(
24260     *) have_x=yes;;
24261   esac
24262   eval "$ac_cv_have_x"
24263 fi # $with_x != no
24264
24265 if test "$have_x" != yes; then
24266   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_x" >&5
24267 $as_echo "$have_x" >&6; }
24268   no_x=yes
24269 else
24270   # If each of the values was on the command line, it overrides each guess.
24271   test "x$x_includes" = xNONE && x_includes=$ac_x_includes
24272   test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
24273   # Update the cache value to reflect the command line values.
24274   ac_cv_have_x="have_x=yes\
24275         ac_x_includes='$x_includes'\
24276         ac_x_libraries='$x_libraries'"
24277   { $as_echo "$as_me:${as_lineno-$LINENO}: result: libraries $x_libraries, headers $x_includes" >&5
24278 $as_echo "libraries $x_libraries, headers $x_includes" >&6; }
24279 fi
24280
24281 if test "$no_x" = yes; then
24282   # Not all programs may use this symbol, but it does not hurt to define it.
24283
24284 $as_echo "#define X_DISPLAY_MISSING 1" >>confdefs.h
24285
24286   X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
24287 else
24288   if test -n "$x_includes"; then
24289     X_CFLAGS="$X_CFLAGS -I$x_includes"
24290   fi
24291
24292   # It would also be nice to do this for all -L options, not just this one.
24293   if test -n "$x_libraries"; then
24294     X_LIBS="$X_LIBS -L$x_libraries"
24295     # For Solaris; some versions of Sun CC require a space after -R and
24296     # others require no space.  Words are not sufficient . . . .
24297     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -R must be followed by a space" >&5
24298 $as_echo_n "checking whether -R must be followed by a space... " >&6; }
24299     ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
24300     ac_xsave_c_werror_flag=$ac_c_werror_flag
24301     ac_c_werror_flag=yes
24302     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24303 /* end confdefs.h.  */
24304
24305 int
24306 main ()
24307 {
24308
24309   ;
24310   return 0;
24311 }
24312 _ACEOF
24313 if ac_fn_c_try_link "$LINENO"; then :
24314   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24315 $as_echo "no" >&6; }
24316        X_LIBS="$X_LIBS -R$x_libraries"
24317 else
24318   LIBS="$ac_xsave_LIBS -R $x_libraries"
24319        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24320 /* end confdefs.h.  */
24321
24322 int
24323 main ()
24324 {
24325
24326   ;
24327   return 0;
24328 }
24329 _ACEOF
24330 if ac_fn_c_try_link "$LINENO"; then :
24331   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
24332 $as_echo "yes" >&6; }
24333           X_LIBS="$X_LIBS -R $x_libraries"
24334 else
24335   { $as_echo "$as_me:${as_lineno-$LINENO}: result: neither works" >&5
24336 $as_echo "neither works" >&6; }
24337 fi
24338 rm -f core conftest.err conftest.$ac_objext \
24339     conftest$ac_exeext conftest.$ac_ext
24340 fi
24341 rm -f core conftest.err conftest.$ac_objext \
24342     conftest$ac_exeext conftest.$ac_ext
24343     ac_c_werror_flag=$ac_xsave_c_werror_flag
24344     LIBS=$ac_xsave_LIBS
24345   fi
24346
24347   # Check for system-dependent libraries X programs must link with.
24348   # Do this before checking for the system-independent R6 libraries
24349   # (-lICE), since we may need -lsocket or whatever for X linking.
24350
24351   if test "$ISC" = yes; then
24352     X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
24353   else
24354     # Martyn Johnson says this is needed for Ultrix, if the X
24355     # libraries were built with DECnet support.  And Karl Berry says
24356     # the Alpha needs dnet_stub (dnet does not exist).
24357     ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
24358     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24359 /* end confdefs.h.  */
24360
24361 /* Override any GCC internal prototype to avoid an error.
24362    Use char because int might match the return type of a GCC
24363    builtin and then its argument prototype would still apply.  */
24364 #ifdef __cplusplus
24365 extern "C"
24366 #endif
24367 char XOpenDisplay ();
24368 int
24369 main ()
24370 {
24371 return XOpenDisplay ();
24372   ;
24373   return 0;
24374 }
24375 _ACEOF
24376 if ac_fn_c_try_link "$LINENO"; then :
24377
24378 else
24379   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet" >&5
24380 $as_echo_n "checking for dnet_ntoa in -ldnet... " >&6; }
24381 if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then :
24382   $as_echo_n "(cached) " >&6
24383 else
24384   ac_check_lib_save_LIBS=$LIBS
24385 LIBS="-ldnet  $LIBS"
24386 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24387 /* end confdefs.h.  */
24388
24389 /* Override any GCC internal prototype to avoid an error.
24390    Use char because int might match the return type of a GCC
24391    builtin and then its argument prototype would still apply.  */
24392 #ifdef __cplusplus
24393 extern "C"
24394 #endif
24395 char dnet_ntoa ();
24396 int
24397 main ()
24398 {
24399 return dnet_ntoa ();
24400   ;
24401   return 0;
24402 }
24403 _ACEOF
24404 if ac_fn_c_try_link "$LINENO"; then :
24405   ac_cv_lib_dnet_dnet_ntoa=yes
24406 else
24407   ac_cv_lib_dnet_dnet_ntoa=no
24408 fi
24409 rm -f core conftest.err conftest.$ac_objext \
24410     conftest$ac_exeext conftest.$ac_ext
24411 LIBS=$ac_check_lib_save_LIBS
24412 fi
24413 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
24414 $as_echo "$ac_cv_lib_dnet_dnet_ntoa" >&6; }
24415 if test "x$ac_cv_lib_dnet_dnet_ntoa" = x""yes; then :
24416   X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
24417 fi
24418
24419     if test $ac_cv_lib_dnet_dnet_ntoa = no; then
24420       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet_stub" >&5
24421 $as_echo_n "checking for dnet_ntoa in -ldnet_stub... " >&6; }
24422 if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then :
24423   $as_echo_n "(cached) " >&6
24424 else
24425   ac_check_lib_save_LIBS=$LIBS
24426 LIBS="-ldnet_stub  $LIBS"
24427 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24428 /* end confdefs.h.  */
24429
24430 /* Override any GCC internal prototype to avoid an error.
24431    Use char because int might match the return type of a GCC
24432    builtin and then its argument prototype would still apply.  */
24433 #ifdef __cplusplus
24434 extern "C"
24435 #endif
24436 char dnet_ntoa ();
24437 int
24438 main ()
24439 {
24440 return dnet_ntoa ();
24441   ;
24442   return 0;
24443 }
24444 _ACEOF
24445 if ac_fn_c_try_link "$LINENO"; then :
24446   ac_cv_lib_dnet_stub_dnet_ntoa=yes
24447 else
24448   ac_cv_lib_dnet_stub_dnet_ntoa=no
24449 fi
24450 rm -f core conftest.err conftest.$ac_objext \
24451     conftest$ac_exeext conftest.$ac_ext
24452 LIBS=$ac_check_lib_save_LIBS
24453 fi
24454 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
24455 $as_echo "$ac_cv_lib_dnet_stub_dnet_ntoa" >&6; }
24456 if test "x$ac_cv_lib_dnet_stub_dnet_ntoa" = x""yes; then :
24457   X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
24458 fi
24459
24460     fi
24461 fi
24462 rm -f core conftest.err conftest.$ac_objext \
24463     conftest$ac_exeext conftest.$ac_ext
24464     LIBS="$ac_xsave_LIBS"
24465
24466     # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
24467     # to get the SysV transport functions.
24468     # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
24469     # needs -lnsl.
24470     # The nsl library prevents programs from opening the X display
24471     # on Irix 5.2, according to T.E. Dickey.
24472     # The functions gethostbyname, getservbyname, and inet_addr are
24473     # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
24474     ac_fn_c_check_func "$LINENO" "gethostbyname" "ac_cv_func_gethostbyname"
24475 if test "x$ac_cv_func_gethostbyname" = x""yes; then :
24476
24477 fi
24478
24479     if test $ac_cv_func_gethostbyname = no; then
24480       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lnsl" >&5
24481 $as_echo_n "checking for gethostbyname in -lnsl... " >&6; }
24482 if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then :
24483   $as_echo_n "(cached) " >&6
24484 else
24485   ac_check_lib_save_LIBS=$LIBS
24486 LIBS="-lnsl  $LIBS"
24487 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24488 /* end confdefs.h.  */
24489
24490 /* Override any GCC internal prototype to avoid an error.
24491    Use char because int might match the return type of a GCC
24492    builtin and then its argument prototype would still apply.  */
24493 #ifdef __cplusplus
24494 extern "C"
24495 #endif
24496 char gethostbyname ();
24497 int
24498 main ()
24499 {
24500 return gethostbyname ();
24501   ;
24502   return 0;
24503 }
24504 _ACEOF
24505 if ac_fn_c_try_link "$LINENO"; then :
24506   ac_cv_lib_nsl_gethostbyname=yes
24507 else
24508   ac_cv_lib_nsl_gethostbyname=no
24509 fi
24510 rm -f core conftest.err conftest.$ac_objext \
24511     conftest$ac_exeext conftest.$ac_ext
24512 LIBS=$ac_check_lib_save_LIBS
24513 fi
24514 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_gethostbyname" >&5
24515 $as_echo "$ac_cv_lib_nsl_gethostbyname" >&6; }
24516 if test "x$ac_cv_lib_nsl_gethostbyname" = x""yes; then :
24517   X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
24518 fi
24519
24520       if test $ac_cv_lib_nsl_gethostbyname = no; then
24521         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lbsd" >&5
24522 $as_echo_n "checking for gethostbyname in -lbsd... " >&6; }
24523 if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then :
24524   $as_echo_n "(cached) " >&6
24525 else
24526   ac_check_lib_save_LIBS=$LIBS
24527 LIBS="-lbsd  $LIBS"
24528 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24529 /* end confdefs.h.  */
24530
24531 /* Override any GCC internal prototype to avoid an error.
24532    Use char because int might match the return type of a GCC
24533    builtin and then its argument prototype would still apply.  */
24534 #ifdef __cplusplus
24535 extern "C"
24536 #endif
24537 char gethostbyname ();
24538 int
24539 main ()
24540 {
24541 return gethostbyname ();
24542   ;
24543   return 0;
24544 }
24545 _ACEOF
24546 if ac_fn_c_try_link "$LINENO"; then :
24547   ac_cv_lib_bsd_gethostbyname=yes
24548 else
24549   ac_cv_lib_bsd_gethostbyname=no
24550 fi
24551 rm -f core conftest.err conftest.$ac_objext \
24552     conftest$ac_exeext conftest.$ac_ext
24553 LIBS=$ac_check_lib_save_LIBS
24554 fi
24555 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bsd_gethostbyname" >&5
24556 $as_echo "$ac_cv_lib_bsd_gethostbyname" >&6; }
24557 if test "x$ac_cv_lib_bsd_gethostbyname" = x""yes; then :
24558   X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
24559 fi
24560
24561       fi
24562     fi
24563
24564     # lieder@skyler.mavd.honeywell.com says without -lsocket,
24565     # socket/setsockopt and other routines are undefined under SCO ODT
24566     # 2.0.  But -lsocket is broken on IRIX 5.2 (and is not necessary
24567     # on later versions), says Simon Leinen: it contains gethostby*
24568     # variants that don't use the name server (or something).  -lsocket
24569     # must be given before -lnsl if both are needed.  We assume that
24570     # if connect needs -lnsl, so does gethostbyname.
24571     ac_fn_c_check_func "$LINENO" "connect" "ac_cv_func_connect"
24572 if test "x$ac_cv_func_connect" = x""yes; then :
24573
24574 fi
24575
24576     if test $ac_cv_func_connect = no; then
24577       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for connect in -lsocket" >&5
24578 $as_echo_n "checking for connect in -lsocket... " >&6; }
24579 if test "${ac_cv_lib_socket_connect+set}" = set; then :
24580   $as_echo_n "(cached) " >&6
24581 else
24582   ac_check_lib_save_LIBS=$LIBS
24583 LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
24584 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24585 /* end confdefs.h.  */
24586
24587 /* Override any GCC internal prototype to avoid an error.
24588    Use char because int might match the return type of a GCC
24589    builtin and then its argument prototype would still apply.  */
24590 #ifdef __cplusplus
24591 extern "C"
24592 #endif
24593 char connect ();
24594 int
24595 main ()
24596 {
24597 return connect ();
24598   ;
24599   return 0;
24600 }
24601 _ACEOF
24602 if ac_fn_c_try_link "$LINENO"; then :
24603   ac_cv_lib_socket_connect=yes
24604 else
24605   ac_cv_lib_socket_connect=no
24606 fi
24607 rm -f core conftest.err conftest.$ac_objext \
24608     conftest$ac_exeext conftest.$ac_ext
24609 LIBS=$ac_check_lib_save_LIBS
24610 fi
24611 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_connect" >&5
24612 $as_echo "$ac_cv_lib_socket_connect" >&6; }
24613 if test "x$ac_cv_lib_socket_connect" = x""yes; then :
24614   X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
24615 fi
24616
24617     fi
24618
24619     # Guillermo Gomez says -lposix is necessary on A/UX.
24620     ac_fn_c_check_func "$LINENO" "remove" "ac_cv_func_remove"
24621 if test "x$ac_cv_func_remove" = x""yes; then :
24622
24623 fi
24624
24625     if test $ac_cv_func_remove = no; then
24626       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for remove in -lposix" >&5
24627 $as_echo_n "checking for remove in -lposix... " >&6; }
24628 if test "${ac_cv_lib_posix_remove+set}" = set; then :
24629   $as_echo_n "(cached) " >&6
24630 else
24631   ac_check_lib_save_LIBS=$LIBS
24632 LIBS="-lposix  $LIBS"
24633 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24634 /* end confdefs.h.  */
24635
24636 /* Override any GCC internal prototype to avoid an error.
24637    Use char because int might match the return type of a GCC
24638    builtin and then its argument prototype would still apply.  */
24639 #ifdef __cplusplus
24640 extern "C"
24641 #endif
24642 char remove ();
24643 int
24644 main ()
24645 {
24646 return remove ();
24647   ;
24648   return 0;
24649 }
24650 _ACEOF
24651 if ac_fn_c_try_link "$LINENO"; then :
24652   ac_cv_lib_posix_remove=yes
24653 else
24654   ac_cv_lib_posix_remove=no
24655 fi
24656 rm -f core conftest.err conftest.$ac_objext \
24657     conftest$ac_exeext conftest.$ac_ext
24658 LIBS=$ac_check_lib_save_LIBS
24659 fi
24660 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_posix_remove" >&5
24661 $as_echo "$ac_cv_lib_posix_remove" >&6; }
24662 if test "x$ac_cv_lib_posix_remove" = x""yes; then :
24663   X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
24664 fi
24665
24666     fi
24667
24668     # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
24669     ac_fn_c_check_func "$LINENO" "shmat" "ac_cv_func_shmat"
24670 if test "x$ac_cv_func_shmat" = x""yes; then :
24671
24672 fi
24673
24674     if test $ac_cv_func_shmat = no; then
24675       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shmat in -lipc" >&5
24676 $as_echo_n "checking for shmat in -lipc... " >&6; }
24677 if test "${ac_cv_lib_ipc_shmat+set}" = set; then :
24678   $as_echo_n "(cached) " >&6
24679 else
24680   ac_check_lib_save_LIBS=$LIBS
24681 LIBS="-lipc  $LIBS"
24682 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24683 /* end confdefs.h.  */
24684
24685 /* Override any GCC internal prototype to avoid an error.
24686    Use char because int might match the return type of a GCC
24687    builtin and then its argument prototype would still apply.  */
24688 #ifdef __cplusplus
24689 extern "C"
24690 #endif
24691 char shmat ();
24692 int
24693 main ()
24694 {
24695 return shmat ();
24696   ;
24697   return 0;
24698 }
24699 _ACEOF
24700 if ac_fn_c_try_link "$LINENO"; then :
24701   ac_cv_lib_ipc_shmat=yes
24702 else
24703   ac_cv_lib_ipc_shmat=no
24704 fi
24705 rm -f core conftest.err conftest.$ac_objext \
24706     conftest$ac_exeext conftest.$ac_ext
24707 LIBS=$ac_check_lib_save_LIBS
24708 fi
24709 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ipc_shmat" >&5
24710 $as_echo "$ac_cv_lib_ipc_shmat" >&6; }
24711 if test "x$ac_cv_lib_ipc_shmat" = x""yes; then :
24712   X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
24713 fi
24714
24715     fi
24716   fi
24717
24718   # Check for libraries that X11R6 Xt/Xaw programs need.
24719   ac_save_LDFLAGS=$LDFLAGS
24720   test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
24721   # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
24722   # check for ICE first), but we must link in the order -lSM -lICE or
24723   # we get undefined symbols.  So assume we have SM if we have ICE.
24724   # These have to be linked with before -lX11, unlike the other
24725   # libraries we check for below, so use a different variable.
24726   # John Interrante, Karl Berry
24727   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for IceConnectionNumber in -lICE" >&5
24728 $as_echo_n "checking for IceConnectionNumber in -lICE... " >&6; }
24729 if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then :
24730   $as_echo_n "(cached) " >&6
24731 else
24732   ac_check_lib_save_LIBS=$LIBS
24733 LIBS="-lICE $X_EXTRA_LIBS $LIBS"
24734 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24735 /* end confdefs.h.  */
24736
24737 /* Override any GCC internal prototype to avoid an error.
24738    Use char because int might match the return type of a GCC
24739    builtin and then its argument prototype would still apply.  */
24740 #ifdef __cplusplus
24741 extern "C"
24742 #endif
24743 char IceConnectionNumber ();
24744 int
24745 main ()
24746 {
24747 return IceConnectionNumber ();
24748   ;
24749   return 0;
24750 }
24751 _ACEOF
24752 if ac_fn_c_try_link "$LINENO"; then :
24753   ac_cv_lib_ICE_IceConnectionNumber=yes
24754 else
24755   ac_cv_lib_ICE_IceConnectionNumber=no
24756 fi
24757 rm -f core conftest.err conftest.$ac_objext \
24758     conftest$ac_exeext conftest.$ac_ext
24759 LIBS=$ac_check_lib_save_LIBS
24760 fi
24761 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
24762 $as_echo "$ac_cv_lib_ICE_IceConnectionNumber" >&6; }
24763 if test "x$ac_cv_lib_ICE_IceConnectionNumber" = x""yes; then :
24764   X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
24765 fi
24766
24767   LDFLAGS=$ac_save_LDFLAGS
24768
24769 fi
24770
24771
24772 for ac_header in \
24773    assert.h \
24774    fcntl.h \
24775    grp.h \
24776    pwd.h \
24777    libc.h \
24778    limits.h \
24779    stdarg.h \
24780    stdlib.h \
24781    stdint.h \
24782    string.h \
24783    strings.h \
24784    termios.h \
24785    termcap.h \
24786    term.h \
24787    unistd.h \
24788    sys/bitypes.h \
24789    sys/byteorder.h \
24790    sys/ioctl.h \
24791    sys/select.h \
24792    sys/socket.h \
24793    sys/sockio.h \
24794    sys/stat.h \
24795    sys/time.h \
24796    sys/types.h \
24797    arpa/nameser.h \
24798    mtio.h \
24799    sys/mtio.h \
24800    sys/tape.h \
24801    regex.h \
24802
24803 do :
24804   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
24805 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
24806 eval as_val=\$$as_ac_Header
24807    if test "x$as_val" = x""yes; then :
24808   cat >>confdefs.h <<_ACEOF
24809 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
24810 _ACEOF
24811
24812 fi
24813
24814 done
24815
24816 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
24817 $as_echo_n "checking for ANSI C header files... " >&6; }
24818 if test "${ac_cv_header_stdc+set}" = set; then :
24819   $as_echo_n "(cached) " >&6
24820 else
24821   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24822 /* end confdefs.h.  */
24823 #include <stdlib.h>
24824 #include <stdarg.h>
24825 #include <string.h>
24826 #include <float.h>
24827
24828 int
24829 main ()
24830 {
24831
24832   ;
24833   return 0;
24834 }
24835 _ACEOF
24836 if ac_fn_c_try_compile "$LINENO"; then :
24837   ac_cv_header_stdc=yes
24838 else
24839   ac_cv_header_stdc=no
24840 fi
24841 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24842
24843 if test $ac_cv_header_stdc = yes; then
24844   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
24845   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24846 /* end confdefs.h.  */
24847 #include <string.h>
24848
24849 _ACEOF
24850 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
24851   $EGREP "memchr" >/dev/null 2>&1; then :
24852
24853 else
24854   ac_cv_header_stdc=no
24855 fi
24856 rm -f conftest*
24857
24858 fi
24859
24860 if test $ac_cv_header_stdc = yes; then
24861   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
24862   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24863 /* end confdefs.h.  */
24864 #include <stdlib.h>
24865
24866 _ACEOF
24867 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
24868   $EGREP "free" >/dev/null 2>&1; then :
24869
24870 else
24871   ac_cv_header_stdc=no
24872 fi
24873 rm -f conftest*
24874
24875 fi
24876
24877 if test $ac_cv_header_stdc = yes; then
24878   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
24879   if test "$cross_compiling" = yes; then :
24880   :
24881 else
24882   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24883 /* end confdefs.h.  */
24884 #include <ctype.h>
24885 #include <stdlib.h>
24886 #if ((' ' & 0x0FF) == 0x020)
24887 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
24888 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
24889 #else
24890 # define ISLOWER(c) \
24891                    (('a' <= (c) && (c) <= 'i') \
24892                      || ('j' <= (c) && (c) <= 'r') \
24893                      || ('s' <= (c) && (c) <= 'z'))
24894 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
24895 #endif
24896
24897 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
24898 int
24899 main ()
24900 {
24901   int i;
24902   for (i = 0; i < 256; i++)
24903     if (XOR (islower (i), ISLOWER (i))
24904         || toupper (i) != TOUPPER (i))
24905       return 2;
24906   return 0;
24907 }
24908 _ACEOF
24909 if ac_fn_c_try_run "$LINENO"; then :
24910
24911 else
24912   ac_cv_header_stdc=no
24913 fi
24914 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
24915   conftest.$ac_objext conftest.beam conftest.$ac_ext
24916 fi
24917
24918 fi
24919 fi
24920 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
24921 $as_echo "$ac_cv_header_stdc" >&6; }
24922 if test $ac_cv_header_stdc = yes; then
24923
24924 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
24925
24926 fi
24927
24928 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether sys/types.h defines makedev" >&5
24929 $as_echo_n "checking whether sys/types.h defines makedev... " >&6; }
24930 if test "${ac_cv_header_sys_types_h_makedev+set}" = set; then :
24931   $as_echo_n "(cached) " >&6
24932 else
24933   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24934 /* end confdefs.h.  */
24935 #include <sys/types.h>
24936 int
24937 main ()
24938 {
24939 return makedev(0, 0);
24940   ;
24941   return 0;
24942 }
24943 _ACEOF
24944 if ac_fn_c_try_link "$LINENO"; then :
24945   ac_cv_header_sys_types_h_makedev=yes
24946 else
24947   ac_cv_header_sys_types_h_makedev=no
24948 fi
24949 rm -f core conftest.err conftest.$ac_objext \
24950     conftest$ac_exeext conftest.$ac_ext
24951
24952 fi
24953 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_types_h_makedev" >&5
24954 $as_echo "$ac_cv_header_sys_types_h_makedev" >&6; }
24955
24956 if test $ac_cv_header_sys_types_h_makedev = no; then
24957 ac_fn_c_check_header_mongrel "$LINENO" "sys/mkdev.h" "ac_cv_header_sys_mkdev_h" "$ac_includes_default"
24958 if test "x$ac_cv_header_sys_mkdev_h" = x""yes; then :
24959
24960 $as_echo "#define MAJOR_IN_MKDEV 1" >>confdefs.h
24961
24962 fi
24963
24964
24965
24966   if test $ac_cv_header_sys_mkdev_h = no; then
24967     ac_fn_c_check_header_mongrel "$LINENO" "sys/sysmacros.h" "ac_cv_header_sys_sysmacros_h" "$ac_includes_default"
24968 if test "x$ac_cv_header_sys_sysmacros_h" = x""yes; then :
24969
24970 $as_echo "#define MAJOR_IN_SYSMACROS 1" >>confdefs.h
24971
24972 fi
24973
24974
24975   fi
24976 fi
24977
24978 ac_header_dirent=no
24979 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
24980   as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
24981 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_hdr that defines DIR" >&5
24982 $as_echo_n "checking for $ac_hdr that defines DIR... " >&6; }
24983 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then :
24984   $as_echo_n "(cached) " >&6
24985 else
24986   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24987 /* end confdefs.h.  */
24988 #include <sys/types.h>
24989 #include <$ac_hdr>
24990
24991 int
24992 main ()
24993 {
24994 if ((DIR *) 0)
24995 return 0;
24996   ;
24997   return 0;
24998 }
24999 _ACEOF
25000 if ac_fn_c_try_compile "$LINENO"; then :
25001   eval "$as_ac_Header=yes"
25002 else
25003   eval "$as_ac_Header=no"
25004 fi
25005 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25006 fi
25007 eval ac_res=\$$as_ac_Header
25008                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
25009 $as_echo "$ac_res" >&6; }
25010 eval as_val=\$$as_ac_Header
25011    if test "x$as_val" = x""yes; then :
25012   cat >>confdefs.h <<_ACEOF
25013 #define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
25014 _ACEOF
25015
25016 ac_header_dirent=$ac_hdr; break
25017 fi
25018
25019 done
25020 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
25021 if test $ac_header_dirent = dirent.h; then
25022   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
25023 $as_echo_n "checking for library containing opendir... " >&6; }
25024 if test "${ac_cv_search_opendir+set}" = set; then :
25025   $as_echo_n "(cached) " >&6
25026 else
25027   ac_func_search_save_LIBS=$LIBS
25028 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25029 /* end confdefs.h.  */
25030
25031 /* Override any GCC internal prototype to avoid an error.
25032    Use char because int might match the return type of a GCC
25033    builtin and then its argument prototype would still apply.  */
25034 #ifdef __cplusplus
25035 extern "C"
25036 #endif
25037 char opendir ();
25038 int
25039 main ()
25040 {
25041 return opendir ();
25042   ;
25043   return 0;
25044 }
25045 _ACEOF
25046 for ac_lib in '' dir; do
25047   if test -z "$ac_lib"; then
25048     ac_res="none required"
25049   else
25050     ac_res=-l$ac_lib
25051     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
25052   fi
25053   if ac_fn_c_try_link "$LINENO"; then :
25054   ac_cv_search_opendir=$ac_res
25055 fi
25056 rm -f core conftest.err conftest.$ac_objext \
25057     conftest$ac_exeext
25058   if test "${ac_cv_search_opendir+set}" = set; then :
25059   break
25060 fi
25061 done
25062 if test "${ac_cv_search_opendir+set}" = set; then :
25063
25064 else
25065   ac_cv_search_opendir=no
25066 fi
25067 rm conftest.$ac_ext
25068 LIBS=$ac_func_search_save_LIBS
25069 fi
25070 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
25071 $as_echo "$ac_cv_search_opendir" >&6; }
25072 ac_res=$ac_cv_search_opendir
25073 if test "$ac_res" != no; then :
25074   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
25075
25076 fi
25077
25078 else
25079   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
25080 $as_echo_n "checking for library containing opendir... " >&6; }
25081 if test "${ac_cv_search_opendir+set}" = set; then :
25082   $as_echo_n "(cached) " >&6
25083 else
25084   ac_func_search_save_LIBS=$LIBS
25085 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25086 /* end confdefs.h.  */
25087
25088 /* Override any GCC internal prototype to avoid an error.
25089    Use char because int might match the return type of a GCC
25090    builtin and then its argument prototype would still apply.  */
25091 #ifdef __cplusplus
25092 extern "C"
25093 #endif
25094 char opendir ();
25095 int
25096 main ()
25097 {
25098 return opendir ();
25099   ;
25100   return 0;
25101 }
25102 _ACEOF
25103 for ac_lib in '' x; do
25104   if test -z "$ac_lib"; then
25105     ac_res="none required"
25106   else
25107     ac_res=-l$ac_lib
25108     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
25109   fi
25110   if ac_fn_c_try_link "$LINENO"; then :
25111   ac_cv_search_opendir=$ac_res
25112 fi
25113 rm -f core conftest.err conftest.$ac_objext \
25114     conftest$ac_exeext
25115   if test "${ac_cv_search_opendir+set}" = set; then :
25116   break
25117 fi
25118 done
25119 if test "${ac_cv_search_opendir+set}" = set; then :
25120
25121 else
25122   ac_cv_search_opendir=no
25123 fi
25124 rm conftest.$ac_ext
25125 LIBS=$ac_func_search_save_LIBS
25126 fi
25127 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
25128 $as_echo "$ac_cv_search_opendir" >&6; }
25129 ac_res=$ac_cv_search_opendir
25130 if test "$ac_res" != no; then :
25131   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
25132
25133 fi
25134
25135 fi
25136
25137 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat file-mode macros are broken" >&5
25138 $as_echo_n "checking whether stat file-mode macros are broken... " >&6; }
25139 if test "${ac_cv_header_stat_broken+set}" = set; then :
25140   $as_echo_n "(cached) " >&6
25141 else
25142   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25143 /* end confdefs.h.  */
25144 #include <sys/types.h>
25145 #include <sys/stat.h>
25146
25147 #if defined S_ISBLK && defined S_IFDIR
25148 extern char c1[S_ISBLK (S_IFDIR) ? -1 : 1];
25149 #endif
25150
25151 #if defined S_ISBLK && defined S_IFCHR
25152 extern char c2[S_ISBLK (S_IFCHR) ? -1 : 1];
25153 #endif
25154
25155 #if defined S_ISLNK && defined S_IFREG
25156 extern char c3[S_ISLNK (S_IFREG) ? -1 : 1];
25157 #endif
25158
25159 #if defined S_ISSOCK && defined S_IFREG
25160 extern char c4[S_ISSOCK (S_IFREG) ? -1 : 1];
25161 #endif
25162
25163 _ACEOF
25164 if ac_fn_c_try_compile "$LINENO"; then :
25165   ac_cv_header_stat_broken=no
25166 else
25167   ac_cv_header_stat_broken=yes
25168 fi
25169 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25170 fi
25171 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stat_broken" >&5
25172 $as_echo "$ac_cv_header_stat_broken" >&6; }
25173 if test $ac_cv_header_stat_broken = yes; then
25174
25175 $as_echo "#define STAT_MACROS_BROKEN 1" >>confdefs.h
25176
25177 fi
25178
25179 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sys/wait.h that is POSIX.1 compatible" >&5
25180 $as_echo_n "checking for sys/wait.h that is POSIX.1 compatible... " >&6; }
25181 if test "${ac_cv_header_sys_wait_h+set}" = set; then :
25182   $as_echo_n "(cached) " >&6
25183 else
25184   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25185 /* end confdefs.h.  */
25186 #include <sys/types.h>
25187 #include <sys/wait.h>
25188 #ifndef WEXITSTATUS
25189 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
25190 #endif
25191 #ifndef WIFEXITED
25192 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
25193 #endif
25194
25195 int
25196 main ()
25197 {
25198   int s;
25199   wait (&s);
25200   s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
25201   ;
25202   return 0;
25203 }
25204 _ACEOF
25205 if ac_fn_c_try_compile "$LINENO"; then :
25206   ac_cv_header_sys_wait_h=yes
25207 else
25208   ac_cv_header_sys_wait_h=no
25209 fi
25210 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25211 fi
25212 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_wait_h" >&5
25213 $as_echo "$ac_cv_header_sys_wait_h" >&6; }
25214 if test $ac_cv_header_sys_wait_h = yes; then
25215
25216 $as_echo "#define HAVE_SYS_WAIT_H 1" >>confdefs.h
25217
25218 fi
25219
25220 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
25221 $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
25222 if test "${ac_cv_header_time+set}" = set; then :
25223   $as_echo_n "(cached) " >&6
25224 else
25225   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25226 /* end confdefs.h.  */
25227 #include <sys/types.h>
25228 #include <sys/time.h>
25229 #include <time.h>
25230
25231 int
25232 main ()
25233 {
25234 if ((struct tm *) 0)
25235 return 0;
25236   ;
25237   return 0;
25238 }
25239 _ACEOF
25240 if ac_fn_c_try_compile "$LINENO"; then :
25241   ac_cv_header_time=yes
25242 else
25243   ac_cv_header_time=no
25244 fi
25245 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25246 fi
25247 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
25248 $as_echo "$ac_cv_header_time" >&6; }
25249 if test $ac_cv_header_time = yes; then
25250
25251 $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
25252
25253 fi
25254
25255 ac_fn_c_check_member "$LINENO" "struct stat" "st_blksize" "ac_cv_member_struct_stat_st_blksize" "$ac_includes_default"
25256 if test "x$ac_cv_member_struct_stat_st_blksize" = x""yes; then :
25257
25258 cat >>confdefs.h <<_ACEOF
25259 #define HAVE_STRUCT_STAT_ST_BLKSIZE 1
25260 _ACEOF
25261
25262
25263 $as_echo "#define HAVE_ST_BLKSIZE 1" >>confdefs.h
25264
25265 fi
25266
25267
25268 ac_fn_c_check_member "$LINENO" "struct stat" "st_blocks" "ac_cv_member_struct_stat_st_blocks" "$ac_includes_default"
25269 if test "x$ac_cv_member_struct_stat_st_blocks" = x""yes; then :
25270
25271 cat >>confdefs.h <<_ACEOF
25272 #define HAVE_STRUCT_STAT_ST_BLOCKS 1
25273 _ACEOF
25274
25275
25276 $as_echo "#define HAVE_ST_BLOCKS 1" >>confdefs.h
25277
25278 else
25279   case " $LIBOBJS " in
25280   *" fileblocks.$ac_objext "* ) ;;
25281   *) LIBOBJS="$LIBOBJS fileblocks.$ac_objext"
25282  ;;
25283 esac
25284
25285 fi
25286
25287
25288 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct tm is in sys/time.h or time.h" >&5
25289 $as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
25290 if test "${ac_cv_struct_tm+set}" = set; then :
25291   $as_echo_n "(cached) " >&6
25292 else
25293   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25294 /* end confdefs.h.  */
25295 #include <sys/types.h>
25296 #include <time.h>
25297
25298 int
25299 main ()
25300 {
25301 struct tm tm;
25302                                      int *p = &tm.tm_sec;
25303                                      return !p;
25304   ;
25305   return 0;
25306 }
25307 _ACEOF
25308 if ac_fn_c_try_compile "$LINENO"; then :
25309   ac_cv_struct_tm=time.h
25310 else
25311   ac_cv_struct_tm=sys/time.h
25312 fi
25313 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25314 fi
25315 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm" >&5
25316 $as_echo "$ac_cv_struct_tm" >&6; }
25317 if test $ac_cv_struct_tm = sys/time.h; then
25318
25319 $as_echo "#define TM_IN_SYS_TIME 1" >>confdefs.h
25320
25321 fi
25322
25323 ac_fn_c_check_member "$LINENO" "struct tm" "tm_zone" "ac_cv_member_struct_tm_tm_zone" "#include <sys/types.h>
25324 #include <$ac_cv_struct_tm>
25325
25326 "
25327 if test "x$ac_cv_member_struct_tm_tm_zone" = x""yes; then :
25328
25329 cat >>confdefs.h <<_ACEOF
25330 #define HAVE_STRUCT_TM_TM_ZONE 1
25331 _ACEOF
25332
25333
25334 fi
25335
25336 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
25337
25338 $as_echo "#define HAVE_TM_ZONE 1" >>confdefs.h
25339
25340 else
25341   ac_fn_c_check_decl "$LINENO" "tzname" "ac_cv_have_decl_tzname" "#include <time.h>
25342 "
25343 if test "x$ac_cv_have_decl_tzname" = x""yes; then :
25344   ac_have_decl=1
25345 else
25346   ac_have_decl=0
25347 fi
25348
25349 cat >>confdefs.h <<_ACEOF
25350 #define HAVE_DECL_TZNAME $ac_have_decl
25351 _ACEOF
25352
25353   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tzname" >&5
25354 $as_echo_n "checking for tzname... " >&6; }
25355 if test "${ac_cv_var_tzname+set}" = set; then :
25356   $as_echo_n "(cached) " >&6
25357 else
25358   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25359 /* end confdefs.h.  */
25360 #include <time.h>
25361 #if !HAVE_DECL_TZNAME
25362 extern char *tzname[];
25363 #endif
25364
25365 int
25366 main ()
25367 {
25368 return tzname[0][0];
25369   ;
25370   return 0;
25371 }
25372 _ACEOF
25373 if ac_fn_c_try_link "$LINENO"; then :
25374   ac_cv_var_tzname=yes
25375 else
25376   ac_cv_var_tzname=no
25377 fi
25378 rm -f core conftest.err conftest.$ac_objext \
25379     conftest$ac_exeext conftest.$ac_ext
25380 fi
25381 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_var_tzname" >&5
25382 $as_echo "$ac_cv_var_tzname" >&6; }
25383   if test $ac_cv_var_tzname = yes; then
25384
25385 $as_echo "#define HAVE_TZNAME 1" >>confdefs.h
25386
25387   fi
25388 fi
25389
25390
25391 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for utime.h" >&5
25392 $as_echo_n "checking for utime.h... " >&6; }
25393 if test "${ba_cv_header_utime_h+set}" = set; then :
25394   $as_echo_n "(cached) " >&6
25395 else
25396
25397        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25398 /* end confdefs.h.  */
25399
25400               #include <sys/types.h>
25401               #include <utime.h>
25402
25403 int
25404 main ()
25405 {
25406
25407               struct utimbuf foo
25408
25409   ;
25410   return 0;
25411 }
25412 _ACEOF
25413 if ac_fn_c_try_compile "$LINENO"; then :
25414
25415               ba_cv_header_utime_h=yes
25416
25417 else
25418
25419               ba_cv_header_utime_h=no
25420
25421
25422 fi
25423 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25424
25425
25426 fi
25427 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ba_cv_header_utime_h" >&5
25428 $as_echo "$ba_cv_header_utime_h" >&6; }
25429 test $ba_cv_header_utime_h = yes &&
25430 $as_echo "#define HAVE_UTIME_H 1" >>confdefs.h
25431
25432
25433 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socklen_t" >&5
25434 $as_echo_n "checking for socklen_t... " >&6; }
25435 if test "${ba_cv_header_socklen_t+set}" = set; then :
25436   $as_echo_n "(cached) " >&6
25437 else
25438
25439        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25440 /* end confdefs.h.  */
25441
25442               #include <sys/types.h>
25443               #include <sys/socket.h>
25444
25445 int
25446 main ()
25447 {
25448
25449               socklen_t x
25450
25451   ;
25452   return 0;
25453 }
25454 _ACEOF
25455 if ac_fn_c_try_compile "$LINENO"; then :
25456
25457              ba_cv_header_socklen_t=yes
25458
25459 else
25460
25461              ba_cv_header_socklen_t=no
25462
25463
25464 fi
25465 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25466
25467
25468 fi
25469 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ba_cv_header_socklen_t" >&5
25470 $as_echo "$ba_cv_header_socklen_t" >&6; }
25471 test $ba_cv_header_socklen_t = yes &&
25472 $as_echo "#define HAVE_SOCKLEN_T 1" >>confdefs.h
25473
25474
25475 ac_ext=cpp
25476 ac_cpp='$CXXCPP $CPPFLAGS'
25477 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25478 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25479 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
25480
25481 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ioctl_req_t" >&5
25482 $as_echo_n "checking for ioctl_req_t... " >&6; }
25483 if test "${ba_cv_header_ioctl_req_t+set}" = set; then :
25484   $as_echo_n "(cached) " >&6
25485 else
25486
25487        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25488 /* end confdefs.h.  */
25489
25490               #include <unistd.h>
25491               #include <sys/types.h>
25492               #include <sys/ioctl.h>
25493
25494 int
25495 main ()
25496 {
25497
25498               int (*d_ioctl)(int fd, unsigned long int request, ...);
25499               d_ioctl = ::ioctl;
25500
25501   ;
25502   return 0;
25503 }
25504 _ACEOF
25505 if ac_fn_cxx_try_compile "$LINENO"; then :
25506
25507              ba_cv_header_ioctl_req_t=yes
25508
25509 else
25510
25511              ba_cv_header_ioctl_req_t=no
25512
25513
25514 fi
25515 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25516
25517
25518 fi
25519 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ba_cv_header_ioctl_req_t" >&5
25520 $as_echo "$ba_cv_header_ioctl_req_t" >&6; }
25521 test $ba_cv_header_ioctl_req_t = yes &&
25522 $as_echo "#define HAVE_IOCTL_ULINT_REQUEST 1" >>confdefs.h
25523
25524
25525 ac_ext=c
25526 ac_cpp='$CPP $CPPFLAGS'
25527 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25528 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25529 ac_compiler_gnu=$ac_cv_c_compiler_gnu
25530
25531
25532 ac_ext=cpp
25533 ac_cpp='$CXXCPP $CPPFLAGS'
25534 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25535 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25536 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
25537
25538 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for typeof" >&5
25539 $as_echo_n "checking for typeof... " >&6; }
25540 if test "${ba_cv_have_typeof+set}" = set; then :
25541   $as_echo_n "(cached) " >&6
25542 else
25543
25544        if test "$cross_compiling" = yes; then :
25545
25546               ba_cv_have_typeof=no
25547
25548
25549 else
25550   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25551 /* end confdefs.h.  */
25552
25553               main(){char *a = 0; a = (typeof a)a;}
25554
25555 _ACEOF
25556 if ac_fn_cxx_try_run "$LINENO"; then :
25557
25558               ba_cv_have_typeof=yes
25559
25560 else
25561
25562               ba_cv_have_typeof=no
25563
25564 fi
25565 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
25566   conftest.$ac_objext conftest.beam conftest.$ac_ext
25567 fi
25568
25569
25570
25571 fi
25572 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ba_cv_have_typeof" >&5
25573 $as_echo "$ba_cv_have_typeof" >&6; }
25574 test $ba_cv_have_typeof = yes &&
25575 $as_echo "#define HAVE_TYPEOF 1" >>confdefs.h
25576
25577 ac_ext=c
25578 ac_cpp='$CPP $CPPFLAGS'
25579 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25580 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25581 ac_compiler_gnu=$ac_cv_c_compiler_gnu
25582
25583
25584 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
25585 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
25586 if test "${ac_cv_c_const+set}" = set; then :
25587   $as_echo_n "(cached) " >&6
25588 else
25589   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25590 /* end confdefs.h.  */
25591
25592 int
25593 main ()
25594 {
25595 /* FIXME: Include the comments suggested by Paul. */
25596 #ifndef __cplusplus
25597   /* Ultrix mips cc rejects this.  */
25598   typedef int charset[2];
25599   const charset cs;
25600   /* SunOS 4.1.1 cc rejects this.  */
25601   char const *const *pcpcc;
25602   char **ppc;
25603   /* NEC SVR4.0.2 mips cc rejects this.  */
25604   struct point {int x, y;};
25605   static struct point const zero = {0,0};
25606   /* AIX XL C 1.02.0.0 rejects this.
25607      It does not let you subtract one const X* pointer from another in
25608      an arm of an if-expression whose if-part is not a constant
25609      expression */
25610   const char *g = "string";
25611   pcpcc = &g + (g ? g-g : 0);
25612   /* HPUX 7.0 cc rejects these. */
25613   ++pcpcc;
25614   ppc = (char**) pcpcc;
25615   pcpcc = (char const *const *) ppc;
25616   { /* SCO 3.2v4 cc rejects this.  */
25617     char *t;
25618     char const *s = 0 ? (char *) 0 : (char const *) 0;
25619
25620     *t++ = 0;
25621     if (s) return 0;
25622   }
25623   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
25624     int x[] = {25, 17};
25625     const int *foo = &x[0];
25626     ++foo;
25627   }
25628   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
25629     typedef const int *iptr;
25630     iptr p = 0;
25631     ++p;
25632   }
25633   { /* AIX XL C 1.02.0.0 rejects this saying
25634        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
25635     struct s { int j; const int *ap[3]; };
25636     struct s *b; b->j = 5;
25637   }
25638   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
25639     const int foo = 10;
25640     if (!foo) return 0;
25641   }
25642   return !cs[0] && !zero.x;
25643 #endif
25644
25645   ;
25646   return 0;
25647 }
25648 _ACEOF
25649 if ac_fn_c_try_compile "$LINENO"; then :
25650   ac_cv_c_const=yes
25651 else
25652   ac_cv_c_const=no
25653 fi
25654 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25655 fi
25656 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
25657 $as_echo "$ac_cv_c_const" >&6; }
25658 if test $ac_cv_c_const = no; then
25659
25660 $as_echo "#define const /**/" >>confdefs.h
25661
25662 fi
25663
25664
25665  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
25666 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
25667 if test "${ac_cv_c_bigendian+set}" = set; then :
25668   $as_echo_n "(cached) " >&6
25669 else
25670   ac_cv_c_bigendian=unknown
25671     # See if we're dealing with a universal compiler.
25672     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25673 /* end confdefs.h.  */
25674 #ifndef __APPLE_CC__
25675                not a universal capable compiler
25676              #endif
25677              typedef int dummy;
25678
25679 _ACEOF
25680 if ac_fn_c_try_compile "$LINENO"; then :
25681
25682         # Check for potential -arch flags.  It is not universal unless
25683         # there are at least two -arch flags with different values.
25684         ac_arch=
25685         ac_prev=
25686         for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
25687          if test -n "$ac_prev"; then
25688            case $ac_word in
25689              i?86 | x86_64 | ppc | ppc64)
25690                if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
25691                  ac_arch=$ac_word
25692                else
25693                  ac_cv_c_bigendian=universal
25694                  break
25695                fi
25696                ;;
25697            esac
25698            ac_prev=
25699          elif test "x$ac_word" = "x-arch"; then
25700            ac_prev=arch
25701          fi
25702        done
25703 fi
25704 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25705     if test $ac_cv_c_bigendian = unknown; then
25706       # See if sys/param.h defines the BYTE_ORDER macro.
25707       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25708 /* end confdefs.h.  */
25709 #include <sys/types.h>
25710              #include <sys/param.h>
25711
25712 int
25713 main ()
25714 {
25715 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
25716                      && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
25717                      && LITTLE_ENDIAN)
25718               bogus endian macros
25719              #endif
25720
25721   ;
25722   return 0;
25723 }
25724 _ACEOF
25725 if ac_fn_c_try_compile "$LINENO"; then :
25726   # It does; now see whether it defined to BIG_ENDIAN or not.
25727          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25728 /* end confdefs.h.  */
25729 #include <sys/types.h>
25730                 #include <sys/param.h>
25731
25732 int
25733 main ()
25734 {
25735 #if BYTE_ORDER != BIG_ENDIAN
25736                  not big endian
25737                 #endif
25738
25739   ;
25740   return 0;
25741 }
25742 _ACEOF
25743 if ac_fn_c_try_compile "$LINENO"; then :
25744   ac_cv_c_bigendian=yes
25745 else
25746   ac_cv_c_bigendian=no
25747 fi
25748 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25749 fi
25750 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25751     fi
25752     if test $ac_cv_c_bigendian = unknown; then
25753       # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
25754       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25755 /* end confdefs.h.  */
25756 #include <limits.h>
25757
25758 int
25759 main ()
25760 {
25761 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
25762               bogus endian macros
25763              #endif
25764
25765   ;
25766   return 0;
25767 }
25768 _ACEOF
25769 if ac_fn_c_try_compile "$LINENO"; then :
25770   # It does; now see whether it defined to _BIG_ENDIAN or not.
25771          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25772 /* end confdefs.h.  */
25773 #include <limits.h>
25774
25775 int
25776 main ()
25777 {
25778 #ifndef _BIG_ENDIAN
25779                  not big endian
25780                 #endif
25781
25782   ;
25783   return 0;
25784 }
25785 _ACEOF
25786 if ac_fn_c_try_compile "$LINENO"; then :
25787   ac_cv_c_bigendian=yes
25788 else
25789   ac_cv_c_bigendian=no
25790 fi
25791 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25792 fi
25793 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25794     fi
25795     if test $ac_cv_c_bigendian = unknown; then
25796       # Compile a test program.
25797       if test "$cross_compiling" = yes; then :
25798   # Try to guess by grepping values from an object file.
25799          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25800 /* end confdefs.h.  */
25801 short int ascii_mm[] =
25802                   { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
25803                 short int ascii_ii[] =
25804                   { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
25805                 int use_ascii (int i) {
25806                   return ascii_mm[i] + ascii_ii[i];
25807                 }
25808                 short int ebcdic_ii[] =
25809                   { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
25810                 short int ebcdic_mm[] =
25811                   { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
25812                 int use_ebcdic (int i) {
25813                   return ebcdic_mm[i] + ebcdic_ii[i];
25814                 }
25815                 extern int foo;
25816
25817 int
25818 main ()
25819 {
25820 return use_ascii (foo) == use_ebcdic (foo);
25821   ;
25822   return 0;
25823 }
25824 _ACEOF
25825 if ac_fn_c_try_compile "$LINENO"; then :
25826   if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
25827               ac_cv_c_bigendian=yes
25828             fi
25829             if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
25830               if test "$ac_cv_c_bigendian" = unknown; then
25831                 ac_cv_c_bigendian=no
25832               else
25833                 # finding both strings is unlikely to happen, but who knows?
25834                 ac_cv_c_bigendian=unknown
25835               fi
25836             fi
25837 fi
25838 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25839 else
25840   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25841 /* end confdefs.h.  */
25842 $ac_includes_default
25843 int
25844 main ()
25845 {
25846
25847              /* Are we little or big endian?  From Harbison&Steele.  */
25848              union
25849              {
25850                long int l;
25851                char c[sizeof (long int)];
25852              } u;
25853              u.l = 1;
25854              return u.c[sizeof (long int) - 1] == 1;
25855
25856   ;
25857   return 0;
25858 }
25859 _ACEOF
25860 if ac_fn_c_try_run "$LINENO"; then :
25861   ac_cv_c_bigendian=no
25862 else
25863   ac_cv_c_bigendian=yes
25864 fi
25865 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
25866   conftest.$ac_objext conftest.beam conftest.$ac_ext
25867 fi
25868
25869     fi
25870 fi
25871 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
25872 $as_echo "$ac_cv_c_bigendian" >&6; }
25873  case $ac_cv_c_bigendian in #(
25874    yes)
25875
25876 $as_echo "#define HAVE_BIG_ENDIAN 1" >>confdefs.h
25877 ;; #(
25878    no)
25879
25880 $as_echo "#define HAVE_LITTLE_ENDIAN 1" >>confdefs.h
25881  ;; #(
25882    universal)
25883
25884 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
25885
25886      ;; #(
25887    *)
25888      as_fn_error "unknown endianness
25889  presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
25890  esac
25891
25892
25893 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to get filesystem type" >&5
25894 $as_echo_n "checking how to get filesystem type... " >&6; }
25895 fstype=no
25896 # The order of these tests is important.
25897 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25898 /* end confdefs.h.  */
25899
25900        #include <sys/statvfs.h>
25901        #include <sys/fstyp.h>
25902
25903 _ACEOF
25904 if ac_fn_c_try_cpp "$LINENO"; then :
25905   $as_echo "#define FSTYPE_STATVFS 1" >>confdefs.h
25906  fstype=SVR4
25907
25908 fi
25909 rm -f conftest.err conftest.$ac_ext
25910 if test $fstype = no; then
25911    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25912 /* end confdefs.h.  */
25913
25914           #include <sys/statfs.h>
25915           #include <sys/fstyp.h>
25916
25917 _ACEOF
25918 if ac_fn_c_try_cpp "$LINENO"; then :
25919   $as_echo "#define FSTYPE_USG_STATFS 1" >>confdefs.h
25920  fstype=SVR3
25921
25922 fi
25923 rm -f conftest.err conftest.$ac_ext
25924 fi
25925 if test $fstype = no; then
25926    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25927 /* end confdefs.h.  */
25928
25929           #include <sys/statfs.h>
25930           #include <sys/vmount.h>
25931
25932 _ACEOF
25933 if ac_fn_c_try_cpp "$LINENO"; then :
25934   $as_echo "#define FSTYPE_AIX_STATFS 1" >>confdefs.h
25935  fstype=AIX
25936
25937 fi
25938 rm -f conftest.err conftest.$ac_ext
25939 fi
25940 if test $fstype = no; then
25941    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25942 /* end confdefs.h.  */
25943
25944           #include <mntent.h>
25945
25946 _ACEOF
25947 if ac_fn_c_try_cpp "$LINENO"; then :
25948   $as_echo "#define FSTYPE_MNTENT 1" >>confdefs.h
25949  fstype=4.3BSD
25950
25951 fi
25952 rm -f conftest.err conftest.$ac_ext
25953 fi
25954 if test $fstype = no; then
25955    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25956 /* end confdefs.h.  */
25957 #include <sys/mount.h>
25958
25959 _ACEOF
25960 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
25961   $EGREP "f_type;" >/dev/null 2>&1; then :
25962   $as_echo "#define FSTYPE_STATFS 1" >>confdefs.h
25963  fstype=4.4BSD/OSF1
25964 fi
25965 rm -f conftest*
25966
25967 fi
25968 if test $fstype = no; then
25969    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25970 /* end confdefs.h.  */
25971
25972           #include <sys/mount.h>
25973           #include <sys/fs_types.h>
25974
25975 _ACEOF
25976 if ac_fn_c_try_cpp "$LINENO"; then :
25977   $as_echo "#define FSTYPE_GETMNT 1" >>confdefs.h
25978  fstype=Ultrix
25979
25980 fi
25981 rm -f conftest.err conftest.$ac_ext
25982 fi
25983 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $fstype" >&5
25984 $as_echo "$fstype" >&6; }
25985
25986 ac_fn_c_check_header_mongrel "$LINENO" "sys/statvfs.h" "ac_cv_header_sys_statvfs_h" "$ac_includes_default"
25987 if test "x$ac_cv_header_sys_statvfs_h" = x""yes; then :
25988
25989 $as_echo "#define HAVE_SYS_STATVFS_H 1" >>confdefs.h
25990
25991 fi
25992
25993
25994
25995 ac_ext=cpp
25996 ac_cpp='$CXXCPP $CPPFLAGS'
25997 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25998 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25999 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
26000
26001
26002 for ac_header in cxxabi.h execinfo.h
26003 do :
26004   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
26005 ac_fn_cxx_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
26006 eval as_val=\$$as_ac_Header
26007    if test "x$as_val" = x""yes; then :
26008   cat >>confdefs.h <<_ACEOF
26009 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
26010 _ACEOF
26011
26012 $as_echo "#define HAVE_BACKTRACE 1" >>confdefs.h
26013
26014 fi
26015
26016 done
26017
26018 ac_ext=c
26019 ac_cpp='$CPP $CPPFLAGS'
26020 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26021 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26022 ac_compiler_gnu=$ac_cv_c_compiler_gnu
26023
26024
26025 { $as_echo "$as_me:${as_lineno-$LINENO}: checking return type of signal handlers" >&5
26026 $as_echo_n "checking return type of signal handlers... " >&6; }
26027 if test "${ac_cv_type_signal+set}" = set; then :
26028   $as_echo_n "(cached) " >&6
26029 else
26030   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26031 /* end confdefs.h.  */
26032 #include <sys/types.h>
26033 #include <signal.h>
26034
26035 int
26036 main ()
26037 {
26038 return *(signal (0, 0)) (0) == 1;
26039   ;
26040   return 0;
26041 }
26042 _ACEOF
26043 if ac_fn_c_try_compile "$LINENO"; then :
26044   ac_cv_type_signal=int
26045 else
26046   ac_cv_type_signal=void
26047 fi
26048 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26049 fi
26050 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_signal" >&5
26051 $as_echo "$ac_cv_type_signal" >&6; }
26052
26053 cat >>confdefs.h <<_ACEOF
26054 #define RETSIGTYPE $ac_cv_type_signal
26055 _ACEOF
26056
26057
26058
26059   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for type of signal functions" >&5
26060 $as_echo_n "checking for type of signal functions... " >&6; }
26061   if test "${bash_cv_signal_vintage+set}" = set; then :
26062   $as_echo_n "(cached) " >&6
26063 else
26064
26065     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26066 /* end confdefs.h.  */
26067 #include <signal.h>
26068 int
26069 main ()
26070 {
26071
26072       sigset_t ss;
26073       struct sigaction sa;
26074       sigemptyset(&ss); sigsuspend(&ss);
26075       sigaction(SIGINT, &sa, (struct sigaction *) 0);
26076       sigprocmask(SIG_BLOCK, &ss, (sigset_t *) 0);
26077
26078   ;
26079   return 0;
26080 }
26081 _ACEOF
26082 if ac_fn_c_try_link "$LINENO"; then :
26083   bash_cv_signal_vintage="posix"
26084 else
26085
26086       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26087 /* end confdefs.h.  */
26088 #include <signal.h>
26089 int
26090 main ()
26091 {
26092
26093           int mask = sigmask(SIGINT);
26094           sigsetmask(mask); sigblock(mask); sigpause(mask);
26095
26096   ;
26097   return 0;
26098 }
26099 _ACEOF
26100 if ac_fn_c_try_link "$LINENO"; then :
26101   bash_cv_signal_vintage="4.2bsd"
26102 else
26103
26104         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26105 /* end confdefs.h.  */
26106
26107           #include <signal.h>
26108           RETSIGTYPE foo() { }
26109 int
26110 main ()
26111 {
26112
26113                   int mask = sigmask(SIGINT);
26114                   sigset(SIGINT, foo); sigrelse(SIGINT);
26115                   sighold(SIGINT); sigpause(SIGINT);
26116
26117   ;
26118   return 0;
26119 }
26120 _ACEOF
26121 if ac_fn_c_try_link "$LINENO"; then :
26122   bash_cv_signal_vintage="svr3"
26123 else
26124   bash_cv_signal_vintage="v7"
26125
26126 fi
26127 rm -f core conftest.err conftest.$ac_objext \
26128     conftest$ac_exeext conftest.$ac_ext
26129
26130 fi
26131 rm -f core conftest.err conftest.$ac_objext \
26132     conftest$ac_exeext conftest.$ac_ext
26133
26134 fi
26135 rm -f core conftest.err conftest.$ac_objext \
26136     conftest$ac_exeext conftest.$ac_ext
26137
26138 fi
26139
26140   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bash_cv_signal_vintage" >&5
26141 $as_echo "$bash_cv_signal_vintage" >&6; }
26142   if test "$bash_cv_signal_vintage" = "posix"; then
26143     $as_echo "#define HAVE_POSIX_SIGNALS 1" >>confdefs.h
26144
26145   elif test "$bash_cv_signal_vintage" = "4.2bsd"; then
26146     $as_echo "#define HAVE_BSD_SIGNALS 1" >>confdefs.h
26147
26148   elif test "$bash_cv_signal_vintage" = "svr3"; then
26149     $as_echo "#define HAVE_USG_SIGHOLD 1" >>confdefs.h
26150
26151   fi
26152
26153 ac_fn_c_check_type "$LINENO" "mode_t" "ac_cv_type_mode_t" "$ac_includes_default"
26154 if test "x$ac_cv_type_mode_t" = x""yes; then :
26155
26156 else
26157
26158 cat >>confdefs.h <<_ACEOF
26159 #define mode_t int
26160 _ACEOF
26161
26162 fi
26163
26164 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uid_t in sys/types.h" >&5
26165 $as_echo_n "checking for uid_t in sys/types.h... " >&6; }
26166 if test "${ac_cv_type_uid_t+set}" = set; then :
26167   $as_echo_n "(cached) " >&6
26168 else
26169   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26170 /* end confdefs.h.  */
26171 #include <sys/types.h>
26172
26173 _ACEOF
26174 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
26175   $EGREP "uid_t" >/dev/null 2>&1; then :
26176   ac_cv_type_uid_t=yes
26177 else
26178   ac_cv_type_uid_t=no
26179 fi
26180 rm -f conftest*
26181
26182 fi
26183 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_uid_t" >&5
26184 $as_echo "$ac_cv_type_uid_t" >&6; }
26185 if test $ac_cv_type_uid_t = no; then
26186
26187 $as_echo "#define uid_t int" >>confdefs.h
26188
26189
26190 $as_echo "#define gid_t int" >>confdefs.h
26191
26192 fi
26193
26194 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
26195 if test "x$ac_cv_type_size_t" = x""yes; then :
26196
26197 else
26198
26199 cat >>confdefs.h <<_ACEOF
26200 #define size_t unsigned int
26201 _ACEOF
26202
26203 fi
26204
26205 ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
26206 if test "x$ac_cv_type_pid_t" = x""yes; then :
26207
26208 else
26209
26210 cat >>confdefs.h <<_ACEOF
26211 #define pid_t int
26212 _ACEOF
26213
26214 fi
26215
26216 ac_fn_c_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default"
26217 if test "x$ac_cv_type_off_t" = x""yes; then :
26218
26219 else
26220
26221 cat >>confdefs.h <<_ACEOF
26222 #define off_t long int
26223 _ACEOF
26224
26225 fi
26226
26227
26228   ac_fn_c_check_type "$LINENO" "intptr_t" "ac_cv_type_intptr_t" "$ac_includes_default"
26229 if test "x$ac_cv_type_intptr_t" = x""yes; then :
26230
26231 $as_echo "#define HAVE_INTPTR_T 1" >>confdefs.h
26232
26233 else
26234   for ac_type in 'int' 'long int' 'long long int'; do
26235        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26236 /* end confdefs.h.  */
26237 $ac_includes_default
26238 int
26239 main ()
26240 {
26241 static int test_array [1 - 2 * !(sizeof (void *) <= sizeof ($ac_type))];
26242 test_array [0] = 0
26243
26244   ;
26245   return 0;
26246 }
26247 _ACEOF
26248 if ac_fn_c_try_compile "$LINENO"; then :
26249
26250 cat >>confdefs.h <<_ACEOF
26251 #define intptr_t $ac_type
26252 _ACEOF
26253
26254           ac_type=
26255 fi
26256 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26257        test -z "$ac_type" && break
26258      done
26259 fi
26260
26261
26262
26263   ac_fn_c_check_type "$LINENO" "uintptr_t" "ac_cv_type_uintptr_t" "$ac_includes_default"
26264 if test "x$ac_cv_type_uintptr_t" = x""yes; then :
26265
26266 $as_echo "#define HAVE_UINTPTR_T 1" >>confdefs.h
26267
26268 else
26269   for ac_type in 'unsigned int' 'unsigned long int' \
26270         'unsigned long long int'; do
26271        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26272 /* end confdefs.h.  */
26273 $ac_includes_default
26274 int
26275 main ()
26276 {
26277 static int test_array [1 - 2 * !(sizeof (void *) <= sizeof ($ac_type))];
26278 test_array [0] = 0
26279
26280   ;
26281   return 0;
26282 }
26283 _ACEOF
26284 if ac_fn_c_try_compile "$LINENO"; then :
26285
26286 cat >>confdefs.h <<_ACEOF
26287 #define uintptr_t $ac_type
26288 _ACEOF
26289
26290           ac_type=
26291 fi
26292 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26293        test -z "$ac_type" && break
26294      done
26295 fi
26296
26297
26298 ac_fn_c_check_type "$LINENO" "ino_t" "ac_cv_type_ino_t" "$ac_includes_default"
26299 if test "x$ac_cv_type_ino_t" = x""yes; then :
26300
26301 else
26302
26303 cat >>confdefs.h <<_ACEOF
26304 #define ino_t unsigned long
26305 _ACEOF
26306
26307 fi
26308
26309 ac_fn_c_check_type "$LINENO" "dev_t" "ac_cv_type_dev_t" "$ac_includes_default"
26310 if test "x$ac_cv_type_dev_t" = x""yes; then :
26311
26312 else
26313
26314 cat >>confdefs.h <<_ACEOF
26315 #define dev_t unsigned long
26316 _ACEOF
26317
26318 fi
26319
26320 ac_fn_c_check_type "$LINENO" "daddr_t" "ac_cv_type_daddr_t" "$ac_includes_default"
26321 if test "x$ac_cv_type_daddr_t" = x""yes; then :
26322
26323 else
26324
26325 cat >>confdefs.h <<_ACEOF
26326 #define daddr_t long
26327 _ACEOF
26328
26329 fi
26330
26331 ac_fn_c_check_type "$LINENO" "major_t" "ac_cv_type_major_t" "$ac_includes_default"
26332 if test "x$ac_cv_type_major_t" = x""yes; then :
26333
26334 else
26335
26336 cat >>confdefs.h <<_ACEOF
26337 #define major_t int
26338 _ACEOF
26339
26340 fi
26341
26342 ac_fn_c_check_type "$LINENO" "minor_t" "ac_cv_type_minor_t" "$ac_includes_default"
26343 if test "x$ac_cv_type_minor_t" = x""yes; then :
26344
26345 else
26346
26347 cat >>confdefs.h <<_ACEOF
26348 #define minor_t int
26349 _ACEOF
26350
26351 fi
26352
26353 ac_fn_c_check_type "$LINENO" "ssize_t" "ac_cv_type_ssize_t" "$ac_includes_default"
26354 if test "x$ac_cv_type_ssize_t" = x""yes; then :
26355
26356 else
26357
26358 cat >>confdefs.h <<_ACEOF
26359 #define ssize_t int
26360 _ACEOF
26361
26362 fi
26363
26364 ac_fn_c_check_member "$LINENO" "struct stat" "st_blocks" "ac_cv_member_struct_stat_st_blocks" "$ac_includes_default"
26365 if test "x$ac_cv_member_struct_stat_st_blocks" = x""yes; then :
26366
26367 cat >>confdefs.h <<_ACEOF
26368 #define HAVE_STRUCT_STAT_ST_BLOCKS 1
26369 _ACEOF
26370
26371
26372 $as_echo "#define HAVE_ST_BLOCKS 1" >>confdefs.h
26373
26374 else
26375   case " $LIBOBJS " in
26376   *" fileblocks.$ac_objext "* ) ;;
26377   *) LIBOBJS="$LIBOBJS fileblocks.$ac_objext"
26378  ;;
26379 esac
26380
26381 fi
26382
26383
26384 ac_fn_c_check_member "$LINENO" "struct stat" "st_rdev" "ac_cv_member_struct_stat_st_rdev" "$ac_includes_default"
26385 if test "x$ac_cv_member_struct_stat_st_rdev" = x""yes; then :
26386
26387 cat >>confdefs.h <<_ACEOF
26388 #define HAVE_STRUCT_STAT_ST_RDEV 1
26389 _ACEOF
26390
26391
26392 $as_echo "#define HAVE_ST_RDEV 1" >>confdefs.h
26393
26394 fi
26395
26396
26397 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct tm is in sys/time.h or time.h" >&5
26398 $as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
26399 if test "${ac_cv_struct_tm+set}" = set; then :
26400   $as_echo_n "(cached) " >&6
26401 else
26402   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26403 /* end confdefs.h.  */
26404 #include <sys/types.h>
26405 #include <time.h>
26406
26407 int
26408 main ()
26409 {
26410 struct tm tm;
26411                                      int *p = &tm.tm_sec;
26412                                      return !p;
26413   ;
26414   return 0;
26415 }
26416 _ACEOF
26417 if ac_fn_c_try_compile "$LINENO"; then :
26418   ac_cv_struct_tm=time.h
26419 else
26420   ac_cv_struct_tm=sys/time.h
26421 fi
26422 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26423 fi
26424 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm" >&5
26425 $as_echo "$ac_cv_struct_tm" >&6; }
26426 if test $ac_cv_struct_tm = sys/time.h; then
26427
26428 $as_echo "#define TM_IN_SYS_TIME 1" >>confdefs.h
26429
26430 fi
26431
26432 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
26433 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
26434 if test "${ac_cv_c_const+set}" = set; then :
26435   $as_echo_n "(cached) " >&6
26436 else
26437   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26438 /* end confdefs.h.  */
26439
26440 int
26441 main ()
26442 {
26443 /* FIXME: Include the comments suggested by Paul. */
26444 #ifndef __cplusplus
26445   /* Ultrix mips cc rejects this.  */
26446   typedef int charset[2];
26447   const charset cs;
26448   /* SunOS 4.1.1 cc rejects this.  */
26449   char const *const *pcpcc;
26450   char **ppc;
26451   /* NEC SVR4.0.2 mips cc rejects this.  */
26452   struct point {int x, y;};
26453   static struct point const zero = {0,0};
26454   /* AIX XL C 1.02.0.0 rejects this.
26455      It does not let you subtract one const X* pointer from another in
26456      an arm of an if-expression whose if-part is not a constant
26457      expression */
26458   const char *g = "string";
26459   pcpcc = &g + (g ? g-g : 0);
26460   /* HPUX 7.0 cc rejects these. */
26461   ++pcpcc;
26462   ppc = (char**) pcpcc;
26463   pcpcc = (char const *const *) ppc;
26464   { /* SCO 3.2v4 cc rejects this.  */
26465     char *t;
26466     char const *s = 0 ? (char *) 0 : (char const *) 0;
26467
26468     *t++ = 0;
26469     if (s) return 0;
26470   }
26471   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
26472     int x[] = {25, 17};
26473     const int *foo = &x[0];
26474     ++foo;
26475   }
26476   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
26477     typedef const int *iptr;
26478     iptr p = 0;
26479     ++p;
26480   }
26481   { /* AIX XL C 1.02.0.0 rejects this saying
26482        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
26483     struct s { int j; const int *ap[3]; };
26484     struct s *b; b->j = 5;
26485   }
26486   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
26487     const int foo = 10;
26488     if (!foo) return 0;
26489   }
26490   return !cs[0] && !zero.x;
26491 #endif
26492
26493   ;
26494   return 0;
26495 }
26496 _ACEOF
26497 if ac_fn_c_try_compile "$LINENO"; then :
26498   ac_cv_c_const=yes
26499 else
26500   ac_cv_c_const=no
26501 fi
26502 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26503 fi
26504 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
26505 $as_echo "$ac_cv_c_const" >&6; }
26506 if test $ac_cv_c_const = no; then
26507
26508 $as_echo "#define const /**/" >>confdefs.h
26509
26510 fi
26511
26512
26513 # The cast to long int works around a bug in the HP C Compiler
26514 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
26515 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
26516 # This bug is HP SR number 8606223364.
26517 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of char" >&5
26518 $as_echo_n "checking size of char... " >&6; }
26519 if test "${ac_cv_sizeof_char+set}" = set; then :
26520   $as_echo_n "(cached) " >&6
26521 else
26522   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (char))" "ac_cv_sizeof_char"        "$ac_includes_default"; then :
26523
26524 else
26525   if test "$ac_cv_type_char" = yes; then
26526      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
26527 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
26528 { as_fn_set_status 77
26529 as_fn_error "cannot compute sizeof (char)
26530 See \`config.log' for more details." "$LINENO" 5; }; }
26531    else
26532      ac_cv_sizeof_char=0
26533    fi
26534 fi
26535
26536 fi
26537 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_char" >&5
26538 $as_echo "$ac_cv_sizeof_char" >&6; }
26539
26540
26541
26542 cat >>confdefs.h <<_ACEOF
26543 #define SIZEOF_CHAR $ac_cv_sizeof_char
26544 _ACEOF
26545
26546
26547 # The cast to long int works around a bug in the HP C Compiler
26548 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
26549 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
26550 # This bug is HP SR number 8606223364.
26551 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of short int" >&5
26552 $as_echo_n "checking size of short int... " >&6; }
26553 if test "${ac_cv_sizeof_short_int+set}" = set; then :
26554   $as_echo_n "(cached) " >&6
26555 else
26556   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (short int))" "ac_cv_sizeof_short_int"        "$ac_includes_default"; then :
26557
26558 else
26559   if test "$ac_cv_type_short_int" = yes; then
26560      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
26561 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
26562 { as_fn_set_status 77
26563 as_fn_error "cannot compute sizeof (short int)
26564 See \`config.log' for more details." "$LINENO" 5; }; }
26565    else
26566      ac_cv_sizeof_short_int=0
26567    fi
26568 fi
26569
26570 fi
26571 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_short_int" >&5
26572 $as_echo "$ac_cv_sizeof_short_int" >&6; }
26573
26574
26575
26576 cat >>confdefs.h <<_ACEOF
26577 #define SIZEOF_SHORT_INT $ac_cv_sizeof_short_int
26578 _ACEOF
26579
26580
26581 # The cast to long int works around a bug in the HP C Compiler
26582 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
26583 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
26584 # This bug is HP SR number 8606223364.
26585 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5
26586 $as_echo_n "checking size of int... " >&6; }
26587 if test "${ac_cv_sizeof_int+set}" = set; then :
26588   $as_echo_n "(cached) " >&6
26589 else
26590   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int"        "$ac_includes_default"; then :
26591
26592 else
26593   if test "$ac_cv_type_int" = yes; then
26594      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
26595 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
26596 { as_fn_set_status 77
26597 as_fn_error "cannot compute sizeof (int)
26598 See \`config.log' for more details." "$LINENO" 5; }; }
26599    else
26600      ac_cv_sizeof_int=0
26601    fi
26602 fi
26603
26604 fi
26605 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5
26606 $as_echo "$ac_cv_sizeof_int" >&6; }
26607
26608
26609
26610 cat >>confdefs.h <<_ACEOF
26611 #define SIZEOF_INT $ac_cv_sizeof_int
26612 _ACEOF
26613
26614
26615 # The cast to long int works around a bug in the HP C Compiler
26616 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
26617 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
26618 # This bug is HP SR number 8606223364.
26619 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long int" >&5
26620 $as_echo_n "checking size of long int... " >&6; }
26621 if test "${ac_cv_sizeof_long_int+set}" = set; then :
26622   $as_echo_n "(cached) " >&6
26623 else
26624   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long int))" "ac_cv_sizeof_long_int"        "$ac_includes_default"; then :
26625
26626 else
26627   if test "$ac_cv_type_long_int" = yes; then
26628      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
26629 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
26630 { as_fn_set_status 77
26631 as_fn_error "cannot compute sizeof (long int)
26632 See \`config.log' for more details." "$LINENO" 5; }; }
26633    else
26634      ac_cv_sizeof_long_int=0
26635    fi
26636 fi
26637
26638 fi
26639 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_int" >&5
26640 $as_echo "$ac_cv_sizeof_long_int" >&6; }
26641
26642
26643
26644 cat >>confdefs.h <<_ACEOF
26645 #define SIZEOF_LONG_INT $ac_cv_sizeof_long_int
26646 _ACEOF
26647
26648
26649 # The cast to long int works around a bug in the HP C Compiler
26650 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
26651 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
26652 # This bug is HP SR number 8606223364.
26653 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long long int" >&5
26654 $as_echo_n "checking size of long long int... " >&6; }
26655 if test "${ac_cv_sizeof_long_long_int+set}" = set; then :
26656   $as_echo_n "(cached) " >&6
26657 else
26658   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long long int))" "ac_cv_sizeof_long_long_int"        "$ac_includes_default"; then :
26659
26660 else
26661   if test "$ac_cv_type_long_long_int" = yes; then
26662      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
26663 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
26664 { as_fn_set_status 77
26665 as_fn_error "cannot compute sizeof (long long int)
26666 See \`config.log' for more details." "$LINENO" 5; }; }
26667    else
26668      ac_cv_sizeof_long_long_int=0
26669    fi
26670 fi
26671
26672 fi
26673 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_long_int" >&5
26674 $as_echo "$ac_cv_sizeof_long_long_int" >&6; }
26675
26676
26677
26678 cat >>confdefs.h <<_ACEOF
26679 #define SIZEOF_LONG_LONG_INT $ac_cv_sizeof_long_long_int
26680 _ACEOF
26681
26682
26683 # The cast to long int works around a bug in the HP C Compiler
26684 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
26685 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
26686 # This bug is HP SR number 8606223364.
26687 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int *" >&5
26688 $as_echo_n "checking size of int *... " >&6; }
26689 if test "${ac_cv_sizeof_int_p+set}" = set; then :
26690   $as_echo_n "(cached) " >&6
26691 else
26692   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int *))" "ac_cv_sizeof_int_p"        "$ac_includes_default"; then :
26693
26694 else
26695   if test "$ac_cv_type_int_p" = yes; then
26696      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
26697 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
26698 { as_fn_set_status 77
26699 as_fn_error "cannot compute sizeof (int *)
26700 See \`config.log' for more details." "$LINENO" 5; }; }
26701    else
26702      ac_cv_sizeof_int_p=0
26703    fi
26704 fi
26705
26706 fi
26707 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int_p" >&5
26708 $as_echo "$ac_cv_sizeof_int_p" >&6; }
26709
26710
26711
26712 cat >>confdefs.h <<_ACEOF
26713 #define SIZEOF_INT_P $ac_cv_sizeof_int_p
26714 _ACEOF
26715
26716
26717
26718 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for u_int type" >&5
26719 $as_echo_n "checking for u_int type... " >&6; }
26720 if test "${ac_cv_have_u_int+set}" = set; then :
26721   $as_echo_n "(cached) " >&6
26722 else
26723
26724        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26725 /* end confdefs.h.  */
26726
26727               #include <sys/types.h>
26728
26729 int
26730 main ()
26731 {
26732
26733               u_int a; a = 1;
26734
26735   ;
26736   return 0;
26737 }
26738 _ACEOF
26739 if ac_fn_c_try_compile "$LINENO"; then :
26740
26741               ac_cv_have_u_int="yes"
26742
26743 else
26744
26745               ac_cv_have_u_int="no"
26746
26747
26748 fi
26749 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26750
26751
26752 fi
26753 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_u_int" >&5
26754 $as_echo "$ac_cv_have_u_int" >&6; }
26755 if test "x$ac_cv_have_u_int" = "xyes" ; then
26756    $as_echo "#define HAVE_U_INT 1" >>confdefs.h
26757
26758    have_u_int=1
26759 fi
26760
26761 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for intmax_t type" >&5
26762 $as_echo_n "checking for intmax_t type... " >&6; }
26763 if test "${ac_cv_have_intmax_t+set}" = set; then :
26764   $as_echo_n "(cached) " >&6
26765 else
26766
26767        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26768 /* end confdefs.h.  */
26769
26770               #include <sys/types.h>
26771
26772 int
26773 main ()
26774 {
26775
26776               intmax_t a; a = 1;
26777
26778   ;
26779   return 0;
26780 }
26781 _ACEOF
26782 if ac_fn_c_try_compile "$LINENO"; then :
26783
26784               ac_cv_have_intmax_t="yes"
26785
26786 else
26787
26788               cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26789 /* end confdefs.h.  */
26790
26791                      #include <stdint.h>
26792
26793 int
26794 main ()
26795 {
26796
26797                      intmax_t a; a = 1;
26798
26799   ;
26800   return 0;
26801 }
26802 _ACEOF
26803 if ac_fn_c_try_compile "$LINENO"; then :
26804
26805                      ac_cv_have_intmax_t="yes"
26806
26807 else
26808
26809                      ac_cv_have_intmax_t="no"
26810
26811
26812 fi
26813 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26814
26815
26816 fi
26817 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26818
26819
26820 fi
26821 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_intmax_t" >&5
26822 $as_echo "$ac_cv_have_intmax_t" >&6; }
26823 if test "x$ac_cv_have_intmax_t" = "xyes" ; then
26824    $as_echo "#define HAVE_INTMAX_T 1" >>confdefs.h
26825
26826    have_intmax_t=1
26827 fi
26828
26829 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for u_intmax_t type" >&5
26830 $as_echo_n "checking for u_intmax_t type... " >&6; }
26831 if test "${ac_cv_have_u_intmax_t+set}" = set; then :
26832   $as_echo_n "(cached) " >&6
26833 else
26834
26835        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26836 /* end confdefs.h.  */
26837
26838               #include <sys/types.h>
26839
26840 int
26841 main ()
26842 {
26843
26844               u_intmax_t a; a = 1;
26845
26846   ;
26847   return 0;
26848 }
26849 _ACEOF
26850 if ac_fn_c_try_compile "$LINENO"; then :
26851
26852               ac_cv_have_u_intmax_t="yes"
26853
26854 else
26855
26856               cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26857 /* end confdefs.h.  */
26858
26859                      #include <stdint.h>
26860
26861 int
26862 main ()
26863 {
26864
26865                     u_intmax_t a; a = 1;
26866
26867   ;
26868   return 0;
26869 }
26870 _ACEOF
26871 if ac_fn_c_try_compile "$LINENO"; then :
26872
26873                     ac_cv_have_u_intmax_t="yes"
26874
26875 else
26876
26877                     ac_cv_have_u_intmax_t="no"
26878
26879
26880 fi
26881 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26882
26883
26884 fi
26885 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26886
26887
26888 fi
26889 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_u_intmax_t" >&5
26890 $as_echo "$ac_cv_have_u_intmax_t" >&6; }
26891 if test "x$ac_cv_have_u_intmax_t" = "xyes" ; then
26892    $as_echo "#define HAVE_U_INTMAX_T 1" >>confdefs.h
26893
26894    have_u_intmax_t=1
26895 fi
26896
26897 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for intXX_t types" >&5
26898 $as_echo_n "checking for intXX_t types... " >&6; }
26899 if test "${ac_cv_have_intxx_t+set}" = set; then :
26900   $as_echo_n "(cached) " >&6
26901 else
26902
26903        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26904 /* end confdefs.h.  */
26905
26906               #include <sys/types.h>
26907
26908 int
26909 main ()
26910 {
26911
26912               int8_t a; int16_t b; int32_t c; a = b = c = 1;
26913
26914   ;
26915   return 0;
26916 }
26917 _ACEOF
26918 if ac_fn_c_try_compile "$LINENO"; then :
26919
26920               ac_cv_have_intxx_t="yes"
26921
26922 else
26923
26924               ac_cv_have_intxx_t="no"
26925
26926
26927 fi
26928 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26929
26930
26931 fi
26932 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_intxx_t" >&5
26933 $as_echo "$ac_cv_have_intxx_t" >&6; }
26934 if test "x$ac_cv_have_intxx_t" = "xyes" ; then
26935    $as_echo "#define HAVE_INTXX_T 1" >>confdefs.h
26936
26937    have_intxx_t=1
26938 fi
26939
26940 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for int64_t type" >&5
26941 $as_echo_n "checking for int64_t type... " >&6; }
26942 if test "${ac_cv_have_int64_t+set}" = set; then :
26943   $as_echo_n "(cached) " >&6
26944 else
26945
26946        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26947 /* end confdefs.h.  */
26948
26949               #include <sys/types.h>
26950
26951 int
26952 main ()
26953 {
26954
26955               int64_t a; a = 1;
26956
26957   ;
26958   return 0;
26959 }
26960 _ACEOF
26961 if ac_fn_c_try_compile "$LINENO"; then :
26962
26963               ac_cv_have_int64_t="yes"
26964
26965 else
26966
26967               ac_cv_have_int64_t="no"
26968
26969
26970 fi
26971 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26972
26973
26974 fi
26975 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_int64_t" >&5
26976 $as_echo "$ac_cv_have_int64_t" >&6; }
26977 if test "x$ac_cv_have_int64_t" = "xyes" ; then
26978    $as_echo "#define HAVE_INT64_T 1" >>confdefs.h
26979
26980    have_int64_t=1
26981 fi
26982
26983 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for u_intXX_t types" >&5
26984 $as_echo_n "checking for u_intXX_t types... " >&6; }
26985 if test "${ac_cv_have_u_intxx_t+set}" = set; then :
26986   $as_echo_n "(cached) " >&6
26987 else
26988
26989        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26990 /* end confdefs.h.  */
26991
26992               #include <sys/types.h>
26993
26994 int
26995 main ()
26996 {
26997
26998               u_int8_t a; u_int16_t b; u_int32_t c; a = b = c = 1;
26999
27000   ;
27001   return 0;
27002 }
27003 _ACEOF
27004 if ac_fn_c_try_compile "$LINENO"; then :
27005
27006              ac_cv_have_u_intxx_t="yes"
27007
27008 else
27009
27010              ac_cv_have_u_intxx_t="no"
27011
27012
27013 fi
27014 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27015
27016
27017 fi
27018 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_u_intxx_t" >&5
27019 $as_echo "$ac_cv_have_u_intxx_t" >&6; }
27020 if test "x$ac_cv_have_u_intxx_t" = "xyes" ; then
27021    $as_echo "#define HAVE_U_INTXX_T 1" >>confdefs.h
27022
27023    have_u_intxx_t=1
27024 fi
27025
27026 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for u_int64_t types" >&5
27027 $as_echo_n "checking for u_int64_t types... " >&6; }
27028 if test "${ac_cv_have_u_int64_t+set}" = set; then :
27029   $as_echo_n "(cached) " >&6
27030 else
27031
27032        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27033 /* end confdefs.h.  */
27034
27035               #include <sys/types.h>
27036
27037 int
27038 main ()
27039 {
27040
27041               u_int64_t a; a = 1;
27042
27043   ;
27044   return 0;
27045 }
27046 _ACEOF
27047 if ac_fn_c_try_compile "$LINENO"; then :
27048
27049              ac_cv_have_u_int64_t="yes"
27050
27051 else
27052
27053              ac_cv_have_u_int64_t="no"
27054
27055
27056 fi
27057 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27058
27059
27060 fi
27061 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_u_int64_t" >&5
27062 $as_echo "$ac_cv_have_u_int64_t" >&6; }
27063 if test "x$ac_cv_have_u_int64_t" = "xyes" ; then
27064    $as_echo "#define HAVE_U_INT64_T 1" >>confdefs.h
27065
27066    have_u_int64_t=1
27067 fi
27068
27069 if (test -z "$have_u_intxx_t" || test -z "$have_intxx_t" && \
27070     test "x$ac_cv_header_sys_bitypes_h" = "xyes")
27071 then
27072    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for intXX_t and u_intXX_t types in sys/bitypes.h" >&5
27073 $as_echo_n "checking for intXX_t and u_intXX_t types in sys/bitypes.h... " >&6; }
27074    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27075 /* end confdefs.h.  */
27076
27077           #include <sys/bitypes.h>
27078
27079 int
27080 main ()
27081 {
27082
27083           int8_t a; int16_t b; int32_t c;
27084           u_int8_t e; u_int16_t f; u_int32_t g;
27085           a = b = c = e = f = g = 1;
27086
27087   ;
27088   return 0;
27089 }
27090 _ACEOF
27091 if ac_fn_c_try_compile "$LINENO"; then :
27092
27093           $as_echo "#define HAVE_U_INTXX_T 1" >>confdefs.h
27094
27095           $as_echo "#define HAVE_INTXX_T 1" >>confdefs.h
27096
27097           $as_echo "#define HAVE_SYS_BITYPES_H 1" >>confdefs.h
27098
27099           { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
27100 $as_echo "yes" >&6; }
27101
27102 else
27103
27104           { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27105 $as_echo "no" >&6; }
27106
27107
27108 fi
27109 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27110 fi
27111
27112 if test -z "$have_u_intxx_t" ; then
27113    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uintXX_t types" >&5
27114 $as_echo_n "checking for uintXX_t types... " >&6; }
27115 if test "${ac_cv_have_uintxx_t+set}" = set; then :
27116   $as_echo_n "(cached) " >&6
27117 else
27118
27119           cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27120 /* end confdefs.h.  */
27121
27122                  #include <sys/types.h>
27123
27124 int
27125 main ()
27126 {
27127
27128                  uint8_t a; uint16_t b;
27129                  uint32_t c; a = b = c = 1;
27130
27131   ;
27132   return 0;
27133 }
27134 _ACEOF
27135 if ac_fn_c_try_compile "$LINENO"; then :
27136
27137                 ac_cv_have_uintxx_t="yes"
27138
27139 else
27140
27141                 ac_cv_have_uintxx_t="no"
27142
27143
27144 fi
27145 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27146
27147
27148 fi
27149 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_uintxx_t" >&5
27150 $as_echo "$ac_cv_have_uintxx_t" >&6; }
27151    if test "x$ac_cv_have_uintxx_t" = "xyes" ; then
27152       $as_echo "#define HAVE_UINTXX_T 1" >>confdefs.h
27153
27154    fi
27155 fi
27156
27157 if (test -z "$have_u_int64_t" || test -z "$have_int64_t" && \
27158     test "x$ac_cv_header_sys_bitypes_h" = "xyes")
27159 then
27160    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for int64_t and u_int64_t types in sys/bitypes.h" >&5
27161 $as_echo_n "checking for int64_t and u_int64_t types in sys/bitypes.h... " >&6; }
27162    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27163 /* end confdefs.h.  */
27164
27165           #include <sys/bitypes.h>
27166
27167 int
27168 main ()
27169 {
27170
27171           int64_t a; u_int64_t b;
27172           a = b = 1;
27173
27174   ;
27175   return 0;
27176 }
27177 _ACEOF
27178 if ac_fn_c_try_compile "$LINENO"; then :
27179
27180           $as_echo "#define HAVE_U_INT64_T 1" >>confdefs.h
27181
27182           $as_echo "#define HAVE_INT64_T 1" >>confdefs.h
27183
27184           { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
27185 $as_echo "yes" >&6; }
27186
27187 else
27188
27189           { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27190 $as_echo "no" >&6; }
27191
27192
27193 fi
27194 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27195 fi
27196
27197 if (test -z "$have_uintxx_t" && \
27198     test "x$ac_cv_header_sys_bitypes_h" = "xyes")
27199 then
27200    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uintXX_t types in sys/bitypes.h" >&5
27201 $as_echo_n "checking for uintXX_t types in sys/bitypes.h... " >&6; }
27202    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27203 /* end confdefs.h.  */
27204
27205           #include <sys/bitypes.h>
27206
27207 int
27208 main ()
27209 {
27210
27211           uint8_t a; uint16_t b;
27212           uint32_t c; a = b = c = 1;
27213
27214   ;
27215   return 0;
27216 }
27217 _ACEOF
27218 if ac_fn_c_try_compile "$LINENO"; then :
27219
27220           $as_echo "#define HAVE_UINTXX_T 1" >>confdefs.h
27221
27222           { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
27223 $as_echo "yes" >&6; }
27224
27225 else
27226
27227           { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27228 $as_echo "no" >&6; }
27229
27230
27231 fi
27232 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27233 fi
27234
27235 for ac_func in \
27236    fork \
27237    getcwd \
27238    gethostname \
27239    getpid \
27240    gettimeofday \
27241    setpgid \
27242    setpgrp \
27243    setsid \
27244    signal \
27245    strerror \
27246    strncmp \
27247    strncpy \
27248    vfprintf \
27249
27250 do :
27251   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
27252 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
27253 eval as_val=\$$as_ac_var
27254    if test "x$as_val" = x""yes; then :
27255   cat >>confdefs.h <<_ACEOF
27256 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
27257 _ACEOF
27258
27259 else
27260   echo 'configure: cannot find needed function.'; exit 1
27261
27262 fi
27263 done
27264
27265
27266 for ac_func in getpagesize
27267 do :
27268   ac_fn_c_check_func "$LINENO" "getpagesize" "ac_cv_func_getpagesize"
27269 if test "x$ac_cv_func_getpagesize" = x""yes; then :
27270   cat >>confdefs.h <<_ACEOF
27271 #define HAVE_GETPAGESIZE 1
27272 _ACEOF
27273
27274 $as_echo "#define HAVE_GETPAGESIZE 1" >>confdefs.h
27275
27276 fi
27277 done
27278
27279 for ac_func in malloc_trim
27280 do :
27281   ac_fn_c_check_func "$LINENO" "malloc_trim" "ac_cv_func_malloc_trim"
27282 if test "x$ac_cv_func_malloc_trim" = x""yes; then :
27283   cat >>confdefs.h <<_ACEOF
27284 #define HAVE_MALLOC_TRIM 1
27285 _ACEOF
27286
27287 $as_echo "#define HAVE_MALLOC_TRIM 1" >>confdefs.h
27288
27289 fi
27290 done
27291
27292
27293 for ac_func in fchdir
27294 do :
27295   ac_fn_c_check_func "$LINENO" "fchdir" "ac_cv_func_fchdir"
27296 if test "x$ac_cv_func_fchdir" = x""yes; then :
27297   cat >>confdefs.h <<_ACEOF
27298 #define HAVE_FCHDIR 1
27299 _ACEOF
27300  $as_echo "#define HAVE_FCHDIR 1" >>confdefs.h
27301
27302 fi
27303 done
27304
27305 for ac_func in strtoll
27306 do :
27307   ac_fn_c_check_func "$LINENO" "strtoll" "ac_cv_func_strtoll"
27308 if test "x$ac_cv_func_strtoll" = x""yes; then :
27309   cat >>confdefs.h <<_ACEOF
27310 #define HAVE_STRTOLL 1
27311 _ACEOF
27312  $as_echo "#define HAVE_STRTOLL 1" >>confdefs.h
27313
27314 fi
27315 done
27316
27317 for ac_func in posix_fadvise
27318 do :
27319   ac_fn_c_check_func "$LINENO" "posix_fadvise" "ac_cv_func_posix_fadvise"
27320 if test "x$ac_cv_func_posix_fadvise" = x""yes; then :
27321   cat >>confdefs.h <<_ACEOF
27322 #define HAVE_POSIX_FADVISE 1
27323 _ACEOF
27324
27325 fi
27326 done
27327
27328 for ac_func in fdatasync
27329 do :
27330   ac_fn_c_check_func "$LINENO" "fdatasync" "ac_cv_func_fdatasync"
27331 if test "x$ac_cv_func_fdatasync" = x""yes; then :
27332   cat >>confdefs.h <<_ACEOF
27333 #define HAVE_FDATASYNC 1
27334 _ACEOF
27335
27336 fi
27337 done
27338
27339
27340 for ac_func in chflags
27341 do :
27342   ac_fn_c_check_func "$LINENO" "chflags" "ac_cv_func_chflags"
27343 if test "x$ac_cv_func_chflags" = x""yes; then :
27344   cat >>confdefs.h <<_ACEOF
27345 #define HAVE_CHFLAGS 1
27346 _ACEOF
27347
27348 fi
27349 done
27350
27351
27352 for ac_func in snprintf vsnprintf gethostid fseeko
27353 do :
27354   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
27355 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
27356 eval as_val=\$$as_ac_var
27357    if test "x$as_val" = x""yes; then :
27358   cat >>confdefs.h <<_ACEOF
27359 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
27360 _ACEOF
27361
27362 fi
27363 done
27364
27365
27366 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for va_copy" >&5
27367 $as_echo_n "checking for va_copy... " >&6; }
27368 if test "${ba_cv_va_copy+set}" = set; then :
27369   $as_echo_n "(cached) " >&6
27370 else
27371
27372        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27373 /* end confdefs.h.  */
27374
27375               #include <stdarg.h>
27376               void use_va_copy(va_list args){va_list args2; va_copy(args2,args); va_end(args2);}
27377               void call_use_va_copy(int junk,...){va_list args; va_start(args,junk); use_va_copy(args); va_end(args);}
27378
27379 int
27380 main ()
27381 {
27382
27383               call_use_va_copy(1,2,3)
27384
27385   ;
27386   return 0;
27387 }
27388 _ACEOF
27389 if ac_fn_c_try_link "$LINENO"; then :
27390
27391               ba_cv_va_copy=yes,
27392
27393 else
27394
27395               ba_cv_va_copy=no
27396
27397
27398 fi
27399 rm -f core conftest.err conftest.$ac_objext \
27400     conftest$ac_exeext conftest.$ac_ext
27401
27402
27403 fi
27404 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ba_cv_va_copy" >&5
27405 $as_echo "$ba_cv_va_copy" >&6; }
27406 test $ba_cv_va_copy = yes &&
27407 $as_echo "#define HAVE_VA_COPY 1" >>confdefs.h
27408
27409
27410 for ac_func in localtime_r readdir_r strerror_r gethostbyname_r
27411 do :
27412   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
27413 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
27414 eval as_val=\$$as_ac_var
27415    if test "x$as_val" = x""yes; then :
27416   cat >>confdefs.h <<_ACEOF
27417 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
27418 _ACEOF
27419
27420 fi
27421 done
27422
27423
27424 # If resolver functions are not in libc check for -lnsl or -lresolv.
27425 ac_fn_c_check_func "$LINENO" "gethostbyname_r" "ac_cv_func_gethostbyname_r"
27426 if test "x$ac_cv_func_gethostbyname_r" = x""yes; then :
27427   { $as_echo "$as_me:${as_lineno-$LINENO}: result: using libc's resolver" >&5
27428 $as_echo "using libc's resolver" >&6; }
27429 else
27430   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname_r in -lnsl" >&5
27431 $as_echo_n "checking for gethostbyname_r in -lnsl... " >&6; }
27432 if test "${ac_cv_lib_nsl_gethostbyname_r+set}" = set; then :
27433   $as_echo_n "(cached) " >&6
27434 else
27435   ac_check_lib_save_LIBS=$LIBS
27436 LIBS="-lnsl  $LIBS"
27437 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27438 /* end confdefs.h.  */
27439
27440 /* Override any GCC internal prototype to avoid an error.
27441    Use char because int might match the return type of a GCC
27442    builtin and then its argument prototype would still apply.  */
27443 #ifdef __cplusplus
27444 extern "C"
27445 #endif
27446 char gethostbyname_r ();
27447 int
27448 main ()
27449 {
27450 return gethostbyname_r ();
27451   ;
27452   return 0;
27453 }
27454 _ACEOF
27455 if ac_fn_c_try_link "$LINENO"; then :
27456   ac_cv_lib_nsl_gethostbyname_r=yes
27457 else
27458   ac_cv_lib_nsl_gethostbyname_r=no
27459 fi
27460 rm -f core conftest.err conftest.$ac_objext \
27461     conftest$ac_exeext conftest.$ac_ext
27462 LIBS=$ac_check_lib_save_LIBS
27463 fi
27464 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_gethostbyname_r" >&5
27465 $as_echo "$ac_cv_lib_nsl_gethostbyname_r" >&6; }
27466 if test "x$ac_cv_lib_nsl_gethostbyname_r" = x""yes; then :
27467   cat >>confdefs.h <<_ACEOF
27468 #define HAVE_LIBNSL 1
27469 _ACEOF
27470
27471   LIBS="-lnsl $LIBS"
27472
27473 fi
27474
27475     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname_r in -lresolv" >&5
27476 $as_echo_n "checking for gethostbyname_r in -lresolv... " >&6; }
27477 if test "${ac_cv_lib_resolv_gethostbyname_r+set}" = set; then :
27478   $as_echo_n "(cached) " >&6
27479 else
27480   ac_check_lib_save_LIBS=$LIBS
27481 LIBS="-lresolv  $LIBS"
27482 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27483 /* end confdefs.h.  */
27484
27485 /* Override any GCC internal prototype to avoid an error.
27486    Use char because int might match the return type of a GCC
27487    builtin and then its argument prototype would still apply.  */
27488 #ifdef __cplusplus
27489 extern "C"
27490 #endif
27491 char gethostbyname_r ();
27492 int
27493 main ()
27494 {
27495 return gethostbyname_r ();
27496   ;
27497   return 0;
27498 }
27499 _ACEOF
27500 if ac_fn_c_try_link "$LINENO"; then :
27501   ac_cv_lib_resolv_gethostbyname_r=yes
27502 else
27503   ac_cv_lib_resolv_gethostbyname_r=no
27504 fi
27505 rm -f core conftest.err conftest.$ac_objext \
27506     conftest$ac_exeext conftest.$ac_ext
27507 LIBS=$ac_check_lib_save_LIBS
27508 fi
27509 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_resolv_gethostbyname_r" >&5
27510 $as_echo "$ac_cv_lib_resolv_gethostbyname_r" >&6; }
27511 if test "x$ac_cv_lib_resolv_gethostbyname_r" = x""yes; then :
27512   cat >>confdefs.h <<_ACEOF
27513 #define HAVE_LIBRESOLV 1
27514 _ACEOF
27515
27516   LIBS="-lresolv $LIBS"
27517
27518 fi
27519
27520 fi
27521
27522
27523 for ac_func in inet_pton
27524 do :
27525   ac_fn_c_check_func "$LINENO" "inet_pton" "ac_cv_func_inet_pton"
27526 if test "x$ac_cv_func_inet_pton" = x""yes; then :
27527   cat >>confdefs.h <<_ACEOF
27528 #define HAVE_INET_PTON 1
27529 _ACEOF
27530  $as_echo "#define HAVE_INET_PTON 1" >>confdefs.h
27531
27532 fi
27533 done
27534
27535 for ac_func in inet_ntop
27536 do :
27537   ac_fn_c_check_func "$LINENO" "inet_ntop" "ac_cv_func_inet_ntop"
27538 if test "x$ac_cv_func_inet_ntop" = x""yes; then :
27539   cat >>confdefs.h <<_ACEOF
27540 #define HAVE_INET_NTOP 1
27541 _ACEOF
27542  $as_echo "#define HAVE_INET_NTOP 1" >>confdefs.h
27543
27544 fi
27545 done
27546
27547 for ac_func in gethostbyname2
27548 do :
27549   ac_fn_c_check_func "$LINENO" "gethostbyname2" "ac_cv_func_gethostbyname2"
27550 if test "x$ac_cv_func_gethostbyname2" = x""yes; then :
27551   cat >>confdefs.h <<_ACEOF
27552 #define HAVE_GETHOSTBYNAME2 1
27553 _ACEOF
27554  $as_echo "#define HAVE_GETHOSTBYNAME2 1" >>confdefs.h
27555
27556 fi
27557 done
27558
27559
27560 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct sockaddr has a sa_len field" >&5
27561 $as_echo_n "checking for struct sockaddr has a sa_len field... " >&6; }
27562 if test "${ac_cv_struct_sockaddr_sa_len+set}" = set; then :
27563   $as_echo_n "(cached) " >&6
27564 else
27565
27566        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27567 /* end confdefs.h.  */
27568
27569               #include <sys/socket.h>
27570
27571 int
27572 main ()
27573 {
27574
27575               struct sockaddr s; s.sa_len;
27576
27577   ;
27578   return 0;
27579 }
27580 _ACEOF
27581 if ac_fn_c_try_compile "$LINENO"; then :
27582
27583              ac_cv_struct_sockaddr_sa_len=yes
27584
27585 else
27586   ac_cv_struct_sockaddr_sa_len=no
27587
27588
27589 fi
27590 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27591
27592
27593 fi
27594 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_sockaddr_sa_len" >&5
27595 $as_echo "$ac_cv_struct_sockaddr_sa_len" >&6; }
27596
27597 if test $ac_cv_struct_sockaddr_sa_len = yes; then
27598
27599 $as_echo "#define HAVE_SA_LEN 1" >>confdefs.h
27600
27601 fi
27602
27603 for ac_func in strftime
27604 do :
27605   ac_fn_c_check_func "$LINENO" "strftime" "ac_cv_func_strftime"
27606 if test "x$ac_cv_func_strftime" = x""yes; then :
27607   cat >>confdefs.h <<_ACEOF
27608 #define HAVE_STRFTIME 1
27609 _ACEOF
27610
27611 else
27612   # strftime is in -lintl on SCO UNIX.
27613 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for strftime in -lintl" >&5
27614 $as_echo_n "checking for strftime in -lintl... " >&6; }
27615 if test "${ac_cv_lib_intl_strftime+set}" = set; then :
27616   $as_echo_n "(cached) " >&6
27617 else
27618   ac_check_lib_save_LIBS=$LIBS
27619 LIBS="-lintl  $LIBS"
27620 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27621 /* end confdefs.h.  */
27622
27623 /* Override any GCC internal prototype to avoid an error.
27624    Use char because int might match the return type of a GCC
27625    builtin and then its argument prototype would still apply.  */
27626 #ifdef __cplusplus
27627 extern "C"
27628 #endif
27629 char strftime ();
27630 int
27631 main ()
27632 {
27633 return strftime ();
27634   ;
27635   return 0;
27636 }
27637 _ACEOF
27638 if ac_fn_c_try_link "$LINENO"; then :
27639   ac_cv_lib_intl_strftime=yes
27640 else
27641   ac_cv_lib_intl_strftime=no
27642 fi
27643 rm -f core conftest.err conftest.$ac_objext \
27644     conftest$ac_exeext conftest.$ac_ext
27645 LIBS=$ac_check_lib_save_LIBS
27646 fi
27647 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_intl_strftime" >&5
27648 $as_echo "$ac_cv_lib_intl_strftime" >&6; }
27649 if test "x$ac_cv_lib_intl_strftime" = x""yes; then :
27650   $as_echo "#define HAVE_STRFTIME 1" >>confdefs.h
27651
27652 LIBS="-lintl $LIBS"
27653 fi
27654
27655 fi
27656 done
27657
27658 for ac_func in vprintf
27659 do :
27660   ac_fn_c_check_func "$LINENO" "vprintf" "ac_cv_func_vprintf"
27661 if test "x$ac_cv_func_vprintf" = x""yes; then :
27662   cat >>confdefs.h <<_ACEOF
27663 #define HAVE_VPRINTF 1
27664 _ACEOF
27665
27666 ac_fn_c_check_func "$LINENO" "_doprnt" "ac_cv_func__doprnt"
27667 if test "x$ac_cv_func__doprnt" = x""yes; then :
27668
27669 $as_echo "#define HAVE_DOPRNT 1" >>confdefs.h
27670
27671 fi
27672
27673 fi
27674 done
27675
27676
27677 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
27678 # for constant arguments.  Useless!
27679 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5
27680 $as_echo_n "checking for working alloca.h... " >&6; }
27681 if test "${ac_cv_working_alloca_h+set}" = set; then :
27682   $as_echo_n "(cached) " >&6
27683 else
27684   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27685 /* end confdefs.h.  */
27686 #include <alloca.h>
27687 int
27688 main ()
27689 {
27690 char *p = (char *) alloca (2 * sizeof (int));
27691                           if (p) return 0;
27692   ;
27693   return 0;
27694 }
27695 _ACEOF
27696 if ac_fn_c_try_link "$LINENO"; then :
27697   ac_cv_working_alloca_h=yes
27698 else
27699   ac_cv_working_alloca_h=no
27700 fi
27701 rm -f core conftest.err conftest.$ac_objext \
27702     conftest$ac_exeext conftest.$ac_ext
27703 fi
27704 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5
27705 $as_echo "$ac_cv_working_alloca_h" >&6; }
27706 if test $ac_cv_working_alloca_h = yes; then
27707
27708 $as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h
27709
27710 fi
27711
27712 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5
27713 $as_echo_n "checking for alloca... " >&6; }
27714 if test "${ac_cv_func_alloca_works+set}" = set; then :
27715   $as_echo_n "(cached) " >&6
27716 else
27717   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27718 /* end confdefs.h.  */
27719 #ifdef __GNUC__
27720 # define alloca __builtin_alloca
27721 #else
27722 # ifdef _MSC_VER
27723 #  include <malloc.h>
27724 #  define alloca _alloca
27725 # else
27726 #  ifdef HAVE_ALLOCA_H
27727 #   include <alloca.h>
27728 #  else
27729 #   ifdef _AIX
27730  #pragma alloca
27731 #   else
27732 #    ifndef alloca /* predefined by HP cc +Olibcalls */
27733 char *alloca ();
27734 #    endif
27735 #   endif
27736 #  endif
27737 # endif
27738 #endif
27739
27740 int
27741 main ()
27742 {
27743 char *p = (char *) alloca (1);
27744                                     if (p) return 0;
27745   ;
27746   return 0;
27747 }
27748 _ACEOF
27749 if ac_fn_c_try_link "$LINENO"; then :
27750   ac_cv_func_alloca_works=yes
27751 else
27752   ac_cv_func_alloca_works=no
27753 fi
27754 rm -f core conftest.err conftest.$ac_objext \
27755     conftest$ac_exeext conftest.$ac_ext
27756 fi
27757 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5
27758 $as_echo "$ac_cv_func_alloca_works" >&6; }
27759
27760 if test $ac_cv_func_alloca_works = yes; then
27761
27762 $as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
27763
27764 else
27765   # The SVR3 libPW and SVR4 libucb both contain incompatible functions
27766 # that cause trouble.  Some versions do not even contain alloca or
27767 # contain a buggy version.  If you still want to use their alloca,
27768 # use ar to extract alloca.o from them instead of compiling alloca.c.
27769
27770 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
27771
27772 $as_echo "#define C_ALLOCA 1" >>confdefs.h
27773
27774
27775 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether \`alloca.c' needs Cray hooks" >&5
27776 $as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; }
27777 if test "${ac_cv_os_cray+set}" = set; then :
27778   $as_echo_n "(cached) " >&6
27779 else
27780   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27781 /* end confdefs.h.  */
27782 #if defined CRAY && ! defined CRAY2
27783 webecray
27784 #else
27785 wenotbecray
27786 #endif
27787
27788 _ACEOF
27789 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
27790   $EGREP "webecray" >/dev/null 2>&1; then :
27791   ac_cv_os_cray=yes
27792 else
27793   ac_cv_os_cray=no
27794 fi
27795 rm -f conftest*
27796
27797 fi
27798 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5
27799 $as_echo "$ac_cv_os_cray" >&6; }
27800 if test $ac_cv_os_cray = yes; then
27801   for ac_func in _getb67 GETB67 getb67; do
27802     as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
27803 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
27804 eval as_val=\$$as_ac_var
27805    if test "x$as_val" = x""yes; then :
27806
27807 cat >>confdefs.h <<_ACEOF
27808 #define CRAY_STACKSEG_END $ac_func
27809 _ACEOF
27810
27811     break
27812 fi
27813
27814   done
27815 fi
27816
27817 { $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5
27818 $as_echo_n "checking stack direction for C alloca... " >&6; }
27819 if test "${ac_cv_c_stack_direction+set}" = set; then :
27820   $as_echo_n "(cached) " >&6
27821 else
27822   if test "$cross_compiling" = yes; then :
27823   ac_cv_c_stack_direction=0
27824 else
27825   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27826 /* end confdefs.h.  */
27827 $ac_includes_default
27828 int
27829 find_stack_direction ()
27830 {
27831   static char *addr = 0;
27832   auto char dummy;
27833   if (addr == 0)
27834     {
27835       addr = &dummy;
27836       return find_stack_direction ();
27837     }
27838   else
27839     return (&dummy > addr) ? 1 : -1;
27840 }
27841
27842 int
27843 main ()
27844 {
27845   return find_stack_direction () < 0;
27846 }
27847 _ACEOF
27848 if ac_fn_c_try_run "$LINENO"; then :
27849   ac_cv_c_stack_direction=1
27850 else
27851   ac_cv_c_stack_direction=-1
27852 fi
27853 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
27854   conftest.$ac_objext conftest.beam conftest.$ac_ext
27855 fi
27856
27857 fi
27858 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5
27859 $as_echo "$ac_cv_c_stack_direction" >&6; }
27860 cat >>confdefs.h <<_ACEOF
27861 #define STACK_DIRECTION $ac_cv_c_stack_direction
27862 _ACEOF
27863
27864
27865 fi
27866
27867 # getmntent is in the standard C library on UNICOS, in -lsun on Irix 4,
27868 # -lseq on Dynix/PTX, -lgen on Unixware.
27869 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing getmntent" >&5
27870 $as_echo_n "checking for library containing getmntent... " >&6; }
27871 if test "${ac_cv_search_getmntent+set}" = set; then :
27872   $as_echo_n "(cached) " >&6
27873 else
27874   ac_func_search_save_LIBS=$LIBS
27875 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27876 /* end confdefs.h.  */
27877
27878 /* Override any GCC internal prototype to avoid an error.
27879    Use char because int might match the return type of a GCC
27880    builtin and then its argument prototype would still apply.  */
27881 #ifdef __cplusplus
27882 extern "C"
27883 #endif
27884 char getmntent ();
27885 int
27886 main ()
27887 {
27888 return getmntent ();
27889   ;
27890   return 0;
27891 }
27892 _ACEOF
27893 for ac_lib in '' sun seq gen; do
27894   if test -z "$ac_lib"; then
27895     ac_res="none required"
27896   else
27897     ac_res=-l$ac_lib
27898     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
27899   fi
27900   if ac_fn_c_try_link "$LINENO"; then :
27901   ac_cv_search_getmntent=$ac_res
27902 fi
27903 rm -f core conftest.err conftest.$ac_objext \
27904     conftest$ac_exeext
27905   if test "${ac_cv_search_getmntent+set}" = set; then :
27906   break
27907 fi
27908 done
27909 if test "${ac_cv_search_getmntent+set}" = set; then :
27910
27911 else
27912   ac_cv_search_getmntent=no
27913 fi
27914 rm conftest.$ac_ext
27915 LIBS=$ac_func_search_save_LIBS
27916 fi
27917 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_getmntent" >&5
27918 $as_echo "$ac_cv_search_getmntent" >&6; }
27919 ac_res=$ac_cv_search_getmntent
27920 if test "$ac_res" != no; then :
27921   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
27922   ac_cv_func_getmntent=yes
27923
27924 $as_echo "#define HAVE_GETMNTENT 1" >>confdefs.h
27925
27926 else
27927   ac_cv_func_getmntent=no
27928 fi
27929
27930
27931 for ac_func in getmntinfo
27932 do :
27933   ac_fn_c_check_func "$LINENO" "getmntinfo" "ac_cv_func_getmntinfo"
27934 if test "x$ac_cv_func_getmntinfo" = x""yes; then :
27935   cat >>confdefs.h <<_ACEOF
27936 #define HAVE_GETMNTINFO 1
27937 _ACEOF
27938  $as_echo "#define HAVE_GETMNTINFO 1" >>confdefs.h
27939
27940 fi
27941 done
27942
27943 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether closedir returns void" >&5
27944 $as_echo_n "checking whether closedir returns void... " >&6; }
27945 if test "${ac_cv_func_closedir_void+set}" = set; then :
27946   $as_echo_n "(cached) " >&6
27947 else
27948   if test "$cross_compiling" = yes; then :
27949   ac_cv_func_closedir_void=yes
27950 else
27951   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27952 /* end confdefs.h.  */
27953 $ac_includes_default
27954 #include <$ac_header_dirent>
27955 #ifndef __cplusplus
27956 int closedir ();
27957 #endif
27958
27959 int
27960 main ()
27961 {
27962 return closedir (opendir (".")) != 0;
27963   ;
27964   return 0;
27965 }
27966 _ACEOF
27967 if ac_fn_c_try_run "$LINENO"; then :
27968   ac_cv_func_closedir_void=no
27969 else
27970   ac_cv_func_closedir_void=yes
27971 fi
27972 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
27973   conftest.$ac_objext conftest.beam conftest.$ac_ext
27974 fi
27975
27976 fi
27977 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_closedir_void" >&5
27978 $as_echo "$ac_cv_func_closedir_void" >&6; }
27979 if test $ac_cv_func_closedir_void = yes; then
27980
27981 $as_echo "#define CLOSEDIR_VOID 1" >>confdefs.h
27982
27983 fi
27984
27985 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether setpgrp takes no argument" >&5
27986 $as_echo_n "checking whether setpgrp takes no argument... " >&6; }
27987 if test "${ac_cv_func_setpgrp_void+set}" = set; then :
27988   $as_echo_n "(cached) " >&6
27989 else
27990   if test "$cross_compiling" = yes; then :
27991   as_fn_error "cannot check setpgrp when cross compiling" "$LINENO" 5
27992 else
27993   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27994 /* end confdefs.h.  */
27995 $ac_includes_default
27996 int
27997 main ()
27998 {
27999 /* If this system has a BSD-style setpgrp which takes arguments,
28000   setpgrp(1, 1) will fail with ESRCH and return -1, in that case
28001   exit successfully. */
28002   return setpgrp (1,1) != -1;
28003   ;
28004   return 0;
28005 }
28006 _ACEOF
28007 if ac_fn_c_try_run "$LINENO"; then :
28008   ac_cv_func_setpgrp_void=no
28009 else
28010   ac_cv_func_setpgrp_void=yes
28011 fi
28012 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
28013   conftest.$ac_objext conftest.beam conftest.$ac_ext
28014 fi
28015
28016 fi
28017 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_setpgrp_void" >&5
28018 $as_echo "$ac_cv_func_setpgrp_void" >&6; }
28019 if test $ac_cv_func_setpgrp_void = yes; then
28020
28021 $as_echo "#define SETPGRP_VOID 1" >>confdefs.h
28022
28023 fi
28024             # AC_FUNC_FNMATCH    dnl use local version
28025
28026 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gettext in -lintl" >&5
28027 $as_echo_n "checking for gettext in -lintl... " >&6; }
28028 if test "${ac_cv_lib_intl_gettext+set}" = set; then :
28029   $as_echo_n "(cached) " >&6
28030 else
28031   ac_check_lib_save_LIBS=$LIBS
28032 LIBS="-lintl  $LIBS"
28033 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28034 /* end confdefs.h.  */
28035
28036 /* Override any GCC internal prototype to avoid an error.
28037    Use char because int might match the return type of a GCC
28038    builtin and then its argument prototype would still apply.  */
28039 #ifdef __cplusplus
28040 extern "C"
28041 #endif
28042 char gettext ();
28043 int
28044 main ()
28045 {
28046 return gettext ();
28047   ;
28048   return 0;
28049 }
28050 _ACEOF
28051 if ac_fn_c_try_link "$LINENO"; then :
28052   ac_cv_lib_intl_gettext=yes
28053 else
28054   ac_cv_lib_intl_gettext=no
28055 fi
28056 rm -f core conftest.err conftest.$ac_objext \
28057     conftest$ac_exeext conftest.$ac_ext
28058 LIBS=$ac_check_lib_save_LIBS
28059 fi
28060 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_intl_gettext" >&5
28061 $as_echo "$ac_cv_lib_intl_gettext" >&6; }
28062 if test "x$ac_cv_lib_intl_gettext" = x""yes; then :
28063   LIBS="$LIBS -lintl"
28064 fi
28065
28066
28067 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getpwnam in -lsun" >&5
28068 $as_echo_n "checking for getpwnam in -lsun... " >&6; }
28069 if test "${ac_cv_lib_sun_getpwnam+set}" = set; then :
28070   $as_echo_n "(cached) " >&6
28071 else
28072   ac_check_lib_save_LIBS=$LIBS
28073 LIBS="-lsun  $LIBS"
28074 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28075 /* end confdefs.h.  */
28076
28077 /* Override any GCC internal prototype to avoid an error.
28078    Use char because int might match the return type of a GCC
28079    builtin and then its argument prototype would still apply.  */
28080 #ifdef __cplusplus
28081 extern "C"
28082 #endif
28083 char getpwnam ();
28084 int
28085 main ()
28086 {
28087 return getpwnam ();
28088   ;
28089   return 0;
28090 }
28091 _ACEOF
28092 if ac_fn_c_try_link "$LINENO"; then :
28093   ac_cv_lib_sun_getpwnam=yes
28094 else
28095   ac_cv_lib_sun_getpwnam=no
28096 fi
28097 rm -f core conftest.err conftest.$ac_objext \
28098     conftest$ac_exeext conftest.$ac_ext
28099 LIBS=$ac_check_lib_save_LIBS
28100 fi
28101 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_sun_getpwnam" >&5
28102 $as_echo "$ac_cv_lib_sun_getpwnam" >&6; }
28103 if test "x$ac_cv_lib_sun_getpwnam" = x""yes; then :
28104   cat >>confdefs.h <<_ACEOF
28105 #define HAVE_LIBSUN 1
28106 _ACEOF
28107
28108   LIBS="-lsun $LIBS"
28109
28110 fi
28111
28112
28113 for ac_header in zlib.h
28114 do :
28115   ac_fn_c_check_header_mongrel "$LINENO" "zlib.h" "ac_cv_header_zlib_h" "$ac_includes_default"
28116 if test "x$ac_cv_header_zlib_h" = x""yes; then :
28117   cat >>confdefs.h <<_ACEOF
28118 #define HAVE_ZLIB_H 1
28119 _ACEOF
28120
28121 fi
28122
28123 done
28124
28125 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for deflate in -lz" >&5
28126 $as_echo_n "checking for deflate in -lz... " >&6; }
28127 if test "${ac_cv_lib_z_deflate+set}" = set; then :
28128   $as_echo_n "(cached) " >&6
28129 else
28130   ac_check_lib_save_LIBS=$LIBS
28131 LIBS="-lz  $LIBS"
28132 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28133 /* end confdefs.h.  */
28134
28135 /* Override any GCC internal prototype to avoid an error.
28136    Use char because int might match the return type of a GCC
28137    builtin and then its argument prototype would still apply.  */
28138 #ifdef __cplusplus
28139 extern "C"
28140 #endif
28141 char deflate ();
28142 int
28143 main ()
28144 {
28145 return deflate ();
28146   ;
28147   return 0;
28148 }
28149 _ACEOF
28150 if ac_fn_c_try_link "$LINENO"; then :
28151   ac_cv_lib_z_deflate=yes
28152 else
28153   ac_cv_lib_z_deflate=no
28154 fi
28155 rm -f core conftest.err conftest.$ac_objext \
28156     conftest$ac_exeext conftest.$ac_ext
28157 LIBS=$ac_check_lib_save_LIBS
28158 fi
28159 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_deflate" >&5
28160 $as_echo "$ac_cv_lib_z_deflate" >&6; }
28161 if test "x$ac_cv_lib_z_deflate" = x""yes; then :
28162   ZLIBS="-lz"
28163 fi
28164
28165 have_zlib=no
28166 if test x$ZLIBS = x-lz; then
28167    $as_echo "#define HAVE_LIBZ 1" >>confdefs.h
28168
28169    have_zlib=yes
28170 fi
28171
28172
28173 support_acl=auto
28174 # Check whether --enable-acl was given.
28175 if test "${enable_acl+set}" = set; then :
28176   enableval=$enable_acl;
28177        if test x$enableval = xyes; then
28178           support_acl=yes
28179        elif test x$enableval = xno; then
28180           support_acl=no
28181        fi
28182
28183
28184 fi
28185
28186
28187 have_acl=no
28188 have_extended_acl=no
28189 if test x$support_acl = xyes -o x$support_acl = xauto; then
28190    ac_fn_c_check_header_mongrel "$LINENO" "sys/acl.h" "ac_cv_header_sys_acl_h" "$ac_includes_default"
28191 if test "x$ac_cv_header_sys_acl_h" = x""yes; then :
28192
28193 $as_echo "#define HAVE_SYS_ACL_H 1" >>confdefs.h
28194
28195 fi
28196
28197
28198
28199             ac_fn_c_check_func "$LINENO" "acl_get_file" "ac_cv_func_acl_get_file"
28200 if test "x$ac_cv_func_acl_get_file" = x""yes; then :
28201
28202           have_acl=yes
28203
28204
28205 fi
28206
28207
28208             if test $have_acl = no; then
28209       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for acl_get_file in -lacl" >&5
28210 $as_echo_n "checking for acl_get_file in -lacl... " >&6; }
28211 if test "${ac_cv_lib_acl_acl_get_file+set}" = set; then :
28212   $as_echo_n "(cached) " >&6
28213 else
28214   ac_check_lib_save_LIBS=$LIBS
28215 LIBS="-lacl  $LIBS"
28216 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28217 /* end confdefs.h.  */
28218
28219 /* Override any GCC internal prototype to avoid an error.
28220    Use char because int might match the return type of a GCC
28221    builtin and then its argument prototype would still apply.  */
28222 #ifdef __cplusplus
28223 extern "C"
28224 #endif
28225 char acl_get_file ();
28226 int
28227 main ()
28228 {
28229 return acl_get_file ();
28230   ;
28231   return 0;
28232 }
28233 _ACEOF
28234 if ac_fn_c_try_link "$LINENO"; then :
28235   ac_cv_lib_acl_acl_get_file=yes
28236 else
28237   ac_cv_lib_acl_acl_get_file=no
28238 fi
28239 rm -f core conftest.err conftest.$ac_objext \
28240     conftest$ac_exeext conftest.$ac_ext
28241 LIBS=$ac_check_lib_save_LIBS
28242 fi
28243 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_acl_acl_get_file" >&5
28244 $as_echo "$ac_cv_lib_acl_acl_get_file" >&6; }
28245 if test "x$ac_cv_lib_acl_acl_get_file" = x""yes; then :
28246
28247              have_acl=yes
28248              if test $have_afs = yes; then
28249                                                                 if test -d /usr/lib64/; then
28250                    FDLIBS="-L/usr/lib64 -lacl $FDLIBS"
28251                 else
28252                    FDLIBS="-L/usr/lib -lacl $FDLIBS"
28253                 fi
28254              else
28255                 FDLIBS="-lacl $FDLIBS"
28256              fi
28257
28258
28259 fi
28260
28261    fi
28262
28263                if test $have_acl = no -a \
28264            x${HAVE_OSF1_OS_TRUE} = x; then
28265       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for acl_get_file in -lpacl" >&5
28266 $as_echo_n "checking for acl_get_file in -lpacl... " >&6; }
28267 if test "${ac_cv_lib_pacl_acl_get_file+set}" = set; then :
28268   $as_echo_n "(cached) " >&6
28269 else
28270   ac_check_lib_save_LIBS=$LIBS
28271 LIBS="-lpacl  $LIBS"
28272 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28273 /* end confdefs.h.  */
28274
28275 /* Override any GCC internal prototype to avoid an error.
28276    Use char because int might match the return type of a GCC
28277    builtin and then its argument prototype would still apply.  */
28278 #ifdef __cplusplus
28279 extern "C"
28280 #endif
28281 char acl_get_file ();
28282 int
28283 main ()
28284 {
28285 return acl_get_file ();
28286   ;
28287   return 0;
28288 }
28289 _ACEOF
28290 if ac_fn_c_try_link "$LINENO"; then :
28291   ac_cv_lib_pacl_acl_get_file=yes
28292 else
28293   ac_cv_lib_pacl_acl_get_file=no
28294 fi
28295 rm -f core conftest.err conftest.$ac_objext \
28296     conftest$ac_exeext conftest.$ac_ext
28297 LIBS=$ac_check_lib_save_LIBS
28298 fi
28299 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pacl_acl_get_file" >&5
28300 $as_echo "$ac_cv_lib_pacl_acl_get_file" >&6; }
28301 if test "x$ac_cv_lib_pacl_acl_get_file" = x""yes; then :
28302
28303              have_acl=yes
28304              FDLIBS="-lpacl $FDLIBS"
28305
28306
28307 fi
28308
28309
28310       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ACL_TYPE_DEFAULT_DIR in acl.h include file" >&5
28311 $as_echo_n "checking for ACL_TYPE_DEFAULT_DIR in acl.h include file... " >&6; }
28312       grep ACL_TYPE_DEFAULT_DIR /usr/include/sys/acl.h > /dev/null 2>&1
28313       if test $? = 0; then
28314
28315 $as_echo "#define HAVE_ACL_TYPE_DEFAULT_DIR 1" >>confdefs.h
28316
28317          { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28318 $as_echo "yes" >&6; }
28319       else
28320          { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28321 $as_echo "no" >&6; }
28322       fi
28323    fi
28324
28325             if test $have_acl = yes -a \
28326            x${HAVE_DARWIN_OS_TRUE} = x; then
28327       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ACL_TYPE_EXTENDED in acl.h include file" >&5
28328 $as_echo_n "checking for ACL_TYPE_EXTENDED in acl.h include file... " >&6; }
28329       grep ACL_TYPE_EXTENDED /usr/include/sys/acl.h > /dev/null 2>&1
28330       if test $? = 0; then
28331
28332 $as_echo "#define HAVE_ACL_TYPE_EXTENDED 1" >>confdefs.h
28333
28334          { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28335 $as_echo "yes" >&6; }
28336       else
28337          { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28338 $as_echo "no" >&6; }
28339       fi
28340    fi
28341
28342             if test $have_acl = yes -a \
28343            x${HAVE_FREEBSD_OS_TRUE} = x; then
28344       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ACL_TYPE_NFS4 in acl.h include file" >&5
28345 $as_echo_n "checking for ACL_TYPE_NFS4 in acl.h include file... " >&6; }
28346       grep ACL_TYPE_NFS4 /usr/include/sys/acl.h > /dev/null 2>&1
28347       if test $? = 0; then
28348
28349 $as_echo "#define HAVE_ACL_TYPE_NFS4 1" >>confdefs.h
28350
28351          { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28352 $as_echo "yes" >&6; }
28353       else
28354          { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28355 $as_echo "no" >&6; }
28356       fi
28357    fi
28358
28359             if test $have_acl = no -a \
28360            x${HAVE_SUN_OS_TRUE} = x; then
28361       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for acltotext in -lsec" >&5
28362 $as_echo_n "checking for acltotext in -lsec... " >&6; }
28363 if test "${ac_cv_lib_sec_acltotext+set}" = set; then :
28364   $as_echo_n "(cached) " >&6
28365 else
28366   ac_check_lib_save_LIBS=$LIBS
28367 LIBS="-lsec  $LIBS"
28368 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28369 /* end confdefs.h.  */
28370
28371 /* Override any GCC internal prototype to avoid an error.
28372    Use char because int might match the return type of a GCC
28373    builtin and then its argument prototype would still apply.  */
28374 #ifdef __cplusplus
28375 extern "C"
28376 #endif
28377 char acltotext ();
28378 int
28379 main ()
28380 {
28381 return acltotext ();
28382   ;
28383   return 0;
28384 }
28385 _ACEOF
28386 if ac_fn_c_try_link "$LINENO"; then :
28387   ac_cv_lib_sec_acltotext=yes
28388 else
28389   ac_cv_lib_sec_acltotext=no
28390 fi
28391 rm -f core conftest.err conftest.$ac_objext \
28392     conftest$ac_exeext conftest.$ac_ext
28393 LIBS=$ac_check_lib_save_LIBS
28394 fi
28395 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_sec_acltotext" >&5
28396 $as_echo "$ac_cv_lib_sec_acltotext" >&6; }
28397 if test "x$ac_cv_lib_sec_acltotext" = x""yes; then :
28398
28399              have_acl=yes
28400              FDLIBS="-lsec $FDLIBS"
28401
28402              { $as_echo "$as_me:${as_lineno-$LINENO}: checking for acl_totext in -lsec" >&5
28403 $as_echo_n "checking for acl_totext in -lsec... " >&6; }
28404 if test "${ac_cv_lib_sec_acl_totext+set}" = set; then :
28405   $as_echo_n "(cached) " >&6
28406 else
28407   ac_check_lib_save_LIBS=$LIBS
28408 LIBS="-lsec  $LIBS"
28409 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28410 /* end confdefs.h.  */
28411
28412 /* Override any GCC internal prototype to avoid an error.
28413    Use char because int might match the return type of a GCC
28414    builtin and then its argument prototype would still apply.  */
28415 #ifdef __cplusplus
28416 extern "C"
28417 #endif
28418 char acl_totext ();
28419 int
28420 main ()
28421 {
28422 return acl_totext ();
28423   ;
28424   return 0;
28425 }
28426 _ACEOF
28427 if ac_fn_c_try_link "$LINENO"; then :
28428   ac_cv_lib_sec_acl_totext=yes
28429 else
28430   ac_cv_lib_sec_acl_totext=no
28431 fi
28432 rm -f core conftest.err conftest.$ac_objext \
28433     conftest$ac_exeext conftest.$ac_ext
28434 LIBS=$ac_check_lib_save_LIBS
28435 fi
28436 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_sec_acl_totext" >&5
28437 $as_echo "$ac_cv_lib_sec_acl_totext" >&6; }
28438 if test "x$ac_cv_lib_sec_acl_totext" = x""yes; then :
28439
28440                     have_extended_acl=yes
28441
28442
28443 fi
28444
28445
28446
28447 fi
28448
28449    fi
28450
28451             if test $have_acl = no -a \
28452            x${HAVE_AIX_OS_TRUE} = x; then
28453       ac_fn_c_check_func "$LINENO" "acl_get" "ac_cv_func_acl_get"
28454 if test "x$ac_cv_func_acl_get" = x""yes; then :
28455
28456              have_acl=yes
28457
28458              ac_fn_c_check_func "$LINENO" "aclx_get" "ac_cv_func_aclx_get"
28459 if test "x$ac_cv_func_aclx_get" = x""yes; then :
28460
28461                     have_extended_acl=yes
28462
28463
28464 fi
28465
28466
28467
28468 fi
28469
28470    fi
28471
28472    if test x$support_acl = xyes -a $have_acl != yes; then
28473       as_fn_error "acl support explicitly enabled but no supported acl implementation found,
28474   please either load the acl libraries or rerun configure without --enable-acl" "$LINENO" 5
28475    else
28476       if test $have_acl = yes; then
28477
28478 $as_echo "#define HAVE_ACL 1" >>confdefs.h
28479
28480       fi
28481
28482       if test $have_extended_acl = yes; then
28483
28484 $as_echo "#define HAVE_EXTENDED_ACL 1" >>confdefs.h
28485
28486       fi
28487    fi
28488 fi
28489
28490 support_xattr=auto
28491 # Check whether --enable-xattr was given.
28492 if test "${enable_xattr+set}" = set; then :
28493   enableval=$enable_xattr;
28494        if test x$enableval = xyes; then
28495           support_xattr=yes
28496        elif test x$enableval = xno; then
28497           support_xattr=no
28498        fi
28499
28500
28501 fi
28502
28503
28504 have_xattr=no
28505 if test x$support_xattr = xyes -o x$support_xattr = xauto; then
28506                if test x${HAVE_FREEBSD_OS_TRUE} = x -o \
28507            x${HAVE_NETBSD_OS_TRUE} = x -o \
28508            x${HAVE_OPENBSD_OS_TRUE} = x; then
28509       ac_fn_c_check_header_mongrel "$LINENO" "sys/extattr.h" "ac_cv_header_sys_extattr_h" "$ac_includes_default"
28510 if test "x$ac_cv_header_sys_extattr_h" = x""yes; then :
28511
28512 $as_echo "#define HAVE_SYS_EXTATTR_H 1" >>confdefs.h
28513
28514 fi
28515
28516
28517       ac_fn_c_check_header_mongrel "$LINENO" "libutil.h" "ac_cv_header_libutil_h" "$ac_includes_default"
28518 if test "x$ac_cv_header_libutil_h" = x""yes; then :
28519
28520 $as_echo "#define HAVE_LIBUTIL_H 1" >>confdefs.h
28521
28522 fi
28523
28524
28525       for ac_func in extattr_get_link extattr_set_link extattr_list_link
28526 do :
28527   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
28528 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
28529 eval as_val=\$$as_ac_var
28530    if test "x$as_val" = x""yes; then :
28531   cat >>confdefs.h <<_ACEOF
28532 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
28533 _ACEOF
28534
28535              have_xattr=yes
28536
28537 $as_echo "#define HAVE_EXTATTR_GET_LINK 1" >>confdefs.h
28538
28539
28540 $as_echo "#define HAVE_EXTATTR_SET_LINK 1" >>confdefs.h
28541
28542
28543 $as_echo "#define HAVE_EXTATTR_LIST_LINK 1" >>confdefs.h
28544
28545
28546
28547 fi
28548 done
28549
28550
28551       if test $have_xattr = no; then
28552          for ac_func in extattr_get_file extattr_set_file extattr_list_file
28553 do :
28554   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
28555 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
28556 eval as_val=\$$as_ac_var
28557    if test "x$as_val" = x""yes; then :
28558   cat >>confdefs.h <<_ACEOF
28559 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
28560 _ACEOF
28561
28562                 have_xattr=yes
28563
28564 $as_echo "#define HAVE_EXTATTR_GET_FILE 1" >>confdefs.h
28565
28566
28567 $as_echo "#define HAVE_EXTATTR_SET_FILE 1" >>confdefs.h
28568
28569
28570 $as_echo "#define HAVE_EXTATTR_LIST_FILE 1" >>confdefs.h
28571
28572
28573
28574 fi
28575 done
28576
28577       fi
28578
28579       if test $have_xattr = yes; then
28580          have_extattr_string_in_libc=no
28581          for ac_func in extattr_namespace_to_string extattr_string_to_namespace
28582 do :
28583   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
28584 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
28585 eval as_val=\$$as_ac_var
28586    if test "x$as_val" = x""yes; then :
28587   cat >>confdefs.h <<_ACEOF
28588 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
28589 _ACEOF
28590
28591                 have_extattr_string_in_libc=yes
28592
28593 $as_echo "#define HAVE_EXTATTR_NAMESPACE_TO_STRING 1" >>confdefs.h
28594
28595
28596 $as_echo "#define HAVE_EXTATTR_STRING_TO_NAMESPACE 1" >>confdefs.h
28597
28598
28599
28600 fi
28601 done
28602
28603
28604                                  if test $have_extattr_string_in_libc = no; then
28605             { $as_echo "$as_me:${as_lineno-$LINENO}: checking for extattr_namespace_to_string extattr_string_to_namespace in -lutil" >&5
28606 $as_echo_n "checking for extattr_namespace_to_string extattr_string_to_namespace in -lutil... " >&6; }
28607 if test "${ac_cv_lib_util_extattr_namespace_to_string_extattr_string_to_namespace+set}" = set; then :
28608   $as_echo_n "(cached) " >&6
28609 else
28610   ac_check_lib_save_LIBS=$LIBS
28611 LIBS="-lutil  $LIBS"
28612 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28613 /* end confdefs.h.  */
28614
28615 /* Override any GCC internal prototype to avoid an error.
28616    Use char because int might match the return type of a GCC
28617    builtin and then its argument prototype would still apply.  */
28618 #ifdef __cplusplus
28619 extern "C"
28620 #endif
28621 char extattr_namespace_to_string extattr_string_to_namespace ();
28622 int
28623 main ()
28624 {
28625 return extattr_namespace_to_string extattr_string_to_namespace ();
28626   ;
28627   return 0;
28628 }
28629 _ACEOF
28630 if ac_fn_c_try_link "$LINENO"; then :
28631   ac_cv_lib_util_extattr_namespace_to_string_extattr_string_to_namespace=yes
28632 else
28633   ac_cv_lib_util_extattr_namespace_to_string_extattr_string_to_namespace=no
28634 fi
28635 rm -f core conftest.err conftest.$ac_objext \
28636     conftest$ac_exeext conftest.$ac_ext
28637 LIBS=$ac_check_lib_save_LIBS
28638 fi
28639 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_util_extattr_namespace_to_string_extattr_string_to_namespace" >&5
28640 $as_echo "$ac_cv_lib_util_extattr_namespace_to_string_extattr_string_to_namespace" >&6; }
28641 if test "x$ac_cv_lib_util_extattr_namespace_to_string_extattr_string_to_namespace" = x""yes; then :
28642
28643
28644 $as_echo "#define HAVE_EXTATTR_NAMESPACE_TO_STRING 1" >>confdefs.h
28645
28646
28647 $as_echo "#define HAVE_EXTATTR_STRING_TO_NAMESPACE 1" >>confdefs.h
28648
28649                    FDLIBS="-lutil $FDLIBS"
28650
28651
28652 fi
28653
28654          fi
28655       fi
28656    fi
28657
28658                if test $have_xattr = no -a \
28659            x${HAVE_AIX_OS_TRUE} = x; then
28660       ac_fn_c_check_header_mongrel "$LINENO" "sys/ea.h" "ac_cv_header_sys_ea_h" "$ac_includes_default"
28661 if test "x$ac_cv_header_sys_ea_h" = x""yes; then :
28662
28663 $as_echo "#define HAVE_SYS_EA_H 1" >>confdefs.h
28664
28665 fi
28666
28667
28668       for ac_func in llistea lgetea lsetea
28669 do :
28670   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
28671 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
28672 eval as_val=\$$as_ac_var
28673    if test "x$as_val" = x""yes; then :
28674   cat >>confdefs.h <<_ACEOF
28675 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
28676 _ACEOF
28677
28678              have_xattr=yes
28679
28680 $as_echo "#define HAVE_LLISTEA 1" >>confdefs.h
28681
28682
28683 $as_echo "#define HAVE_LGETEA 1" >>confdefs.h
28684
28685
28686 $as_echo "#define HAVE_LSETEA 1" >>confdefs.h
28687
28688
28689
28690 fi
28691 done
28692
28693
28694       if test $have_xattr = no; then
28695          for ac_func in listea getea setea
28696 do :
28697   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
28698 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
28699 eval as_val=\$$as_ac_var
28700    if test "x$as_val" = x""yes; then :
28701   cat >>confdefs.h <<_ACEOF
28702 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
28703 _ACEOF
28704
28705                 have_xattr=yes
28706
28707 $as_echo "#define HAVE_LISTEA 1" >>confdefs.h
28708
28709
28710 $as_echo "#define HAVE_GETEA 1" >>confdefs.h
28711
28712
28713 $as_echo "#define HAVE_SETEA 1" >>confdefs.h
28714
28715
28716
28717 fi
28718 done
28719
28720       fi
28721    fi
28722
28723                if test $have_xattr = no -a \
28724            x${HAVE_OSF1_OS_TRUE} = x; then
28725       ac_fn_c_check_header_mongrel "$LINENO" "sys/proplist.h" "ac_cv_header_sys_proplist_h" "$ac_includes_default"
28726 if test "x$ac_cv_header_sys_proplist_h" = x""yes; then :
28727
28728 $as_echo "#define HAVE_SYS_PROPLIST_H 1" >>confdefs.h
28729
28730 fi
28731
28732
28733       for ac_func in getproplist get_proplist_entry sizeof_proplist_entry add_proplist_entry setproplist
28734 do :
28735   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
28736 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
28737 eval as_val=\$$as_ac_var
28738    if test "x$as_val" = x""yes; then :
28739   cat >>confdefs.h <<_ACEOF
28740 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
28741 _ACEOF
28742
28743              have_xattr=yes
28744
28745 $as_echo "#define HAVE_GETPROPLIST 1" >>confdefs.h
28746
28747
28748 $as_echo "#define HAVE_GET_PROPLIST_ENTRY 1" >>confdefs.h
28749
28750
28751 $as_echo "#define HAVE_SIZEOF_PROPLIST_ENTRY 1" >>confdefs.h
28752
28753
28754 $as_echo "#define HAVE_ADD_PROPLIST_ENTRY 1" >>confdefs.h
28755
28756
28757 $as_echo "#define HAVE_SETPROPLIST 1" >>confdefs.h
28758
28759
28760
28761 fi
28762 done
28763
28764    fi
28765
28766                if test $have_xattr = no -a \
28767            x${HAVE_SUN_OS_TRUE} = x; then
28768       ac_fn_c_check_header_mongrel "$LINENO" "sys/attr.h" "ac_cv_header_sys_attr_h" "$ac_includes_default"
28769 if test "x$ac_cv_header_sys_attr_h" = x""yes; then :
28770
28771 $as_echo "#define HAVE_SYS_ATTR_H 1" >>confdefs.h
28772
28773 fi
28774
28775
28776       ac_fn_c_check_header_mongrel "$LINENO" "sys/nvpair.h" "ac_cv_header_sys_nvpair_h" "$ac_includes_default"
28777 if test "x$ac_cv_header_sys_nvpair_h" = x""yes; then :
28778
28779 $as_echo "#define HAVE_SYS_NVPAIR_H 1" >>confdefs.h
28780
28781 fi
28782
28783
28784       ac_fn_c_check_header_mongrel "$LINENO" "attr.h" "ac_cv_header_attr_h" "$ac_includes_default"
28785 if test "x$ac_cv_header_attr_h" = x""yes; then :
28786
28787 $as_echo "#define HAVE_ATTR_H 1" >>confdefs.h
28788
28789 fi
28790
28791
28792
28793       for ac_func in openat fstatat unlinkat fchownat futimesat
28794 do :
28795   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
28796 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
28797 eval as_val=\$$as_ac_var
28798    if test "x$as_val" = x""yes; then :
28799   cat >>confdefs.h <<_ACEOF
28800 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
28801 _ACEOF
28802
28803              have_xattr=yes
28804
28805 $as_echo "#define HAVE_OPENAT 1" >>confdefs.h
28806
28807
28808 $as_echo "#define HAVE_FSTATAT 1" >>confdefs.h
28809
28810
28811 $as_echo "#define HAVE_UNLINKAT 1" >>confdefs.h
28812
28813
28814 $as_echo "#define HAVE_FCHOWNAT 1" >>confdefs.h
28815
28816
28817 $as_echo "#define HAVE_FUTIMESAT 1" >>confdefs.h
28818
28819
28820
28821 fi
28822 done
28823
28824
28825       if test $have_xattr = yes; then
28826          { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nvlist_next_nvpair in -lnvpair" >&5
28827 $as_echo_n "checking for nvlist_next_nvpair in -lnvpair... " >&6; }
28828 if test "${ac_cv_lib_nvpair_nvlist_next_nvpair+set}" = set; then :
28829   $as_echo_n "(cached) " >&6
28830 else
28831   ac_check_lib_save_LIBS=$LIBS
28832 LIBS="-lnvpair  $LIBS"
28833 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28834 /* end confdefs.h.  */
28835
28836 /* Override any GCC internal prototype to avoid an error.
28837    Use char because int might match the return type of a GCC
28838    builtin and then its argument prototype would still apply.  */
28839 #ifdef __cplusplus
28840 extern "C"
28841 #endif
28842 char nvlist_next_nvpair ();
28843 int
28844 main ()
28845 {
28846 return nvlist_next_nvpair ();
28847   ;
28848   return 0;
28849 }
28850 _ACEOF
28851 if ac_fn_c_try_link "$LINENO"; then :
28852   ac_cv_lib_nvpair_nvlist_next_nvpair=yes
28853 else
28854   ac_cv_lib_nvpair_nvlist_next_nvpair=no
28855 fi
28856 rm -f core conftest.err conftest.$ac_objext \
28857     conftest$ac_exeext conftest.$ac_ext
28858 LIBS=$ac_check_lib_save_LIBS
28859 fi
28860 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nvpair_nvlist_next_nvpair" >&5
28861 $as_echo "$ac_cv_lib_nvpair_nvlist_next_nvpair" >&6; }
28862 if test "x$ac_cv_lib_nvpair_nvlist_next_nvpair" = x""yes; then :
28863
28864
28865 $as_echo "#define HAVE_NVLIST_NEXT_NVPAIR 1" >>confdefs.h
28866
28867                 FDLIBS="-lnvpair $FDLIBS"
28868
28869
28870 fi
28871
28872       fi
28873    fi
28874
28875             if test $have_xattr = no; then
28876       ac_fn_c_check_header_mongrel "$LINENO" "sys/xattr.h" "ac_cv_header_sys_xattr_h" "$ac_includes_default"
28877 if test "x$ac_cv_header_sys_xattr_h" = x""yes; then :
28878
28879 $as_echo "#define HAVE_SYS_XATTR_H 1" >>confdefs.h
28880
28881 fi
28882
28883
28884       for ac_func in llistxattr lgetxattr lsetxattr
28885 do :
28886   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
28887 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
28888 eval as_val=\$$as_ac_var
28889    if test "x$as_val" = x""yes; then :
28890   cat >>confdefs.h <<_ACEOF
28891 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
28892 _ACEOF
28893
28894              have_xattr=yes
28895
28896 $as_echo "#define HAVE_LLISTXATTR 1" >>confdefs.h
28897
28898
28899 $as_echo "#define HAVE_LGETXATTR 1" >>confdefs.h
28900
28901
28902 $as_echo "#define HAVE_LSETXATTR 1" >>confdefs.h
28903
28904
28905
28906 fi
28907 done
28908
28909
28910       if test $have_xattr = no; then
28911          for ac_func in listxattr getxattr setxattr
28912 do :
28913   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
28914 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
28915 eval as_val=\$$as_ac_var
28916    if test "x$as_val" = x""yes; then :
28917   cat >>confdefs.h <<_ACEOF
28918 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
28919 _ACEOF
28920
28921                 have_xattr=yes
28922
28923 $as_echo "#define HAVE_LISTXATTR 1" >>confdefs.h
28924
28925
28926 $as_echo "#define HAVE_GETXATTR 1" >>confdefs.h
28927
28928
28929 $as_echo "#define HAVE_SETXATTR 1" >>confdefs.h
28930
28931
28932
28933 fi
28934 done
28935
28936       fi
28937    fi
28938
28939    if test x$support_xattr = xyes -a $have_xattr != yes; then
28940       as_fn_error "xattr support explicitly enabled but no supported xattr implementation found,
28941   please either load the xattr libraries or rerun configure without --enable-xattr" "$LINENO" 5
28942    else
28943       if test $have_xattr = yes; then
28944
28945 $as_echo "#define HAVE_XATTR 1" >>confdefs.h
28946
28947       fi
28948    fi
28949 fi
28950
28951 PTHREAD_LIB=""
28952 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_create in -lpthread" >&5
28953 $as_echo_n "checking for pthread_create in -lpthread... " >&6; }
28954 if test "${ac_cv_lib_pthread_pthread_create+set}" = set; then :
28955   $as_echo_n "(cached) " >&6
28956 else
28957   ac_check_lib_save_LIBS=$LIBS
28958 LIBS="-lpthread  $LIBS"
28959 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28960 /* end confdefs.h.  */
28961
28962 /* Override any GCC internal prototype to avoid an error.
28963    Use char because int might match the return type of a GCC
28964    builtin and then its argument prototype would still apply.  */
28965 #ifdef __cplusplus
28966 extern "C"
28967 #endif
28968 char pthread_create ();
28969 int
28970 main ()
28971 {
28972 return pthread_create ();
28973   ;
28974   return 0;
28975 }
28976 _ACEOF
28977 if ac_fn_c_try_link "$LINENO"; then :
28978   ac_cv_lib_pthread_pthread_create=yes
28979 else
28980   ac_cv_lib_pthread_pthread_create=no
28981 fi
28982 rm -f core conftest.err conftest.$ac_objext \
28983     conftest$ac_exeext conftest.$ac_ext
28984 LIBS=$ac_check_lib_save_LIBS
28985 fi
28986 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_pthread_create" >&5
28987 $as_echo "$ac_cv_lib_pthread_pthread_create" >&6; }
28988 if test "x$ac_cv_lib_pthread_pthread_create" = x""yes; then :
28989   PTHREAD_LIB="-lpthread"
28990 else
28991
28992        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_create in -lpthreads" >&5
28993 $as_echo_n "checking for pthread_create in -lpthreads... " >&6; }
28994 if test "${ac_cv_lib_pthreads_pthread_create+set}" = set; then :
28995   $as_echo_n "(cached) " >&6
28996 else
28997   ac_check_lib_save_LIBS=$LIBS
28998 LIBS="-lpthreads  $LIBS"
28999 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29000 /* end confdefs.h.  */
29001
29002 /* Override any GCC internal prototype to avoid an error.
29003    Use char because int might match the return type of a GCC
29004    builtin and then its argument prototype would still apply.  */
29005 #ifdef __cplusplus
29006 extern "C"
29007 #endif
29008 char pthread_create ();
29009 int
29010 main ()
29011 {
29012 return pthread_create ();
29013   ;
29014   return 0;
29015 }
29016 _ACEOF
29017 if ac_fn_c_try_link "$LINENO"; then :
29018   ac_cv_lib_pthreads_pthread_create=yes
29019 else
29020   ac_cv_lib_pthreads_pthread_create=no
29021 fi
29022 rm -f core conftest.err conftest.$ac_objext \
29023     conftest$ac_exeext conftest.$ac_ext
29024 LIBS=$ac_check_lib_save_LIBS
29025 fi
29026 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthreads_pthread_create" >&5
29027 $as_echo "$ac_cv_lib_pthreads_pthread_create" >&6; }
29028 if test "x$ac_cv_lib_pthreads_pthread_create" = x""yes; then :
29029   PTHREAD_LIB="-lpthreads"
29030 else
29031
29032               { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_create in -lc_r" >&5
29033 $as_echo_n "checking for pthread_create in -lc_r... " >&6; }
29034 if test "${ac_cv_lib_c_r_pthread_create+set}" = set; then :
29035   $as_echo_n "(cached) " >&6
29036 else
29037   ac_check_lib_save_LIBS=$LIBS
29038 LIBS="-lc_r  $LIBS"
29039 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29040 /* end confdefs.h.  */
29041
29042 /* Override any GCC internal prototype to avoid an error.
29043    Use char because int might match the return type of a GCC
29044    builtin and then its argument prototype would still apply.  */
29045 #ifdef __cplusplus
29046 extern "C"
29047 #endif
29048 char pthread_create ();
29049 int
29050 main ()
29051 {
29052 return pthread_create ();
29053   ;
29054   return 0;
29055 }
29056 _ACEOF
29057 if ac_fn_c_try_link "$LINENO"; then :
29058   ac_cv_lib_c_r_pthread_create=yes
29059 else
29060   ac_cv_lib_c_r_pthread_create=no
29061 fi
29062 rm -f core conftest.err conftest.$ac_objext \
29063     conftest$ac_exeext conftest.$ac_ext
29064 LIBS=$ac_check_lib_save_LIBS
29065 fi
29066 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_r_pthread_create" >&5
29067 $as_echo "$ac_cv_lib_c_r_pthread_create" >&6; }
29068 if test "x$ac_cv_lib_c_r_pthread_create" = x""yes; then :
29069   PTHREAD_LIB="-lc_r"
29070 else
29071
29072                      ac_fn_c_check_func "$LINENO" "pthread_create" "ac_cv_func_pthread_create"
29073 if test "x$ac_cv_func_pthread_create" = x""yes; then :
29074
29075 fi
29076
29077
29078
29079 fi
29080
29081
29082
29083 fi
29084
29085
29086
29087 fi
29088
29089
29090 for ac_header in sys/prctl.h sys/capability.h
29091 do :
29092   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
29093 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
29094 eval as_val=\$$as_ac_Header
29095    if test "x$as_val" = x""yes; then :
29096   cat >>confdefs.h <<_ACEOF
29097 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
29098 _ACEOF
29099
29100 fi
29101
29102 done
29103
29104 for ac_func in prctl setreuid
29105 do :
29106   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
29107 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
29108 eval as_val=\$$as_ac_var
29109    if test "x$as_val" = x""yes; then :
29110   cat >>confdefs.h <<_ACEOF
29111 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
29112 _ACEOF
29113
29114 fi
29115 done
29116
29117 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cap_set_proc in -lcap" >&5
29118 $as_echo_n "checking for cap_set_proc in -lcap... " >&6; }
29119 if test "${ac_cv_lib_cap_cap_set_proc+set}" = set; then :
29120   $as_echo_n "(cached) " >&6
29121 else
29122   ac_check_lib_save_LIBS=$LIBS
29123 LIBS="-lcap  $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 cap_set_proc ();
29134 int
29135 main ()
29136 {
29137 return cap_set_proc ();
29138   ;
29139   return 0;
29140 }
29141 _ACEOF
29142 if ac_fn_c_try_link "$LINENO"; then :
29143   ac_cv_lib_cap_cap_set_proc=yes
29144 else
29145   ac_cv_lib_cap_cap_set_proc=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_cap_cap_set_proc" >&5
29152 $as_echo "$ac_cv_lib_cap_cap_set_proc" >&6; }
29153 if test "x$ac_cv_lib_cap_cap_set_proc" = x""yes; then :
29154   CAP_LIBS="-lcap"
29155 else
29156   CAP_LIBS=
29157 fi
29158
29159 if test x$CAP_LIBS = x-lcap; then
29160
29161 $as_echo "#define HAVE_LIBCAP 1" >>confdefs.h
29162
29163 fi
29164
29165
29166
29167 $as_echo "#define FDLIBS 1" >>confdefs.h
29168
29169
29170 CFLAGS=${CFLAGS--O}
29171
29172 if test x$have_gcc = xyes ; then
29173    CPPFLAGS="$CPPFLAGS -fno-strict-aliasing -fno-exceptions -fno-rtti"
29174    CFLAGS="$CFLAGS -fno-strict-aliasing -fno-exceptions -fno-rtti"
29175 fi
29176 LDFLAGS=${LDFLAGS--O}
29177 CPPFLAGS="$CPPFLAGS"
29178 CFLAGS="$CFLAGS"
29179
29180
29181
29182
29183
29184
29185
29186
29187
29188
29189
29190
29191
29192
29193
29194 OBJLIST=
29195
29196
29197 lld="lld"
29198 llu="llu"
29199
29200 WCFLAGS=
29201 WLDFLAGS=
29202
29203 PFILES="platforms/Makefile"
29204 PSCMD="ps -e"
29205 WIN32=
29206 MACOSX=
29207
29208 hostname=`uname -n | cut -d '.' -f 1`
29209 if test x${hostname} = x ; then
29210    hostname="localhost"
29211 fi
29212 ping -c 1 $hostname 2>/dev/null 1>/dev/null
29213 if test ! $? = 0; then
29214   hostname="localhost"
29215 fi
29216
29217 case "$DISTNAME" in
29218 aix)
29219    DISTVER=`uname -r`
29220    PSCMD="ps -e -o pid,comm"
29221    PFILES="${PFILES} \
29222       platforms/aix/Makefile"
29223    TAPEDRIVE="/dev/rmt0.1"
29224   ;;
29225 alpha)
29226    DISTVER=`uname -r`
29227    PTHREAD_LIB="-lpthread -lexc"
29228    if test "${CC}" = "gcc" ; then
29229       lld="lld"
29230       llu="llu"
29231    else
29232       lld="ld"
29233       llu="lu"
29234    fi
29235    TAPEDRIVE="/dev/nrmt0"
29236   ;;
29237 bsdi)
29238    DISTVER=`uname -a |awk '{print $3}'`
29239    TAPEDRIVE="/dev/nrmt0"
29240    PTHREAD_LIB="-pthread"
29241    CFLAGS="${CFLAGS} -pthread"
29242    PSCMD="ps -ax -o pid,command"
29243    lld="qd"
29244    llu="qu"
29245    PFILES="${PFILES} \
29246        platforms/bsdi/Makefile \
29247        platforms/bsdi/bacula-fd \
29248        platforms/bsdi/bacula-sd \
29249        platforms/bsdi/bacula-dir"
29250    largefile_support="yes"
29251   ;;
29252 cygwin)
29253    DISTVER=`uname -a |awk '{print $3}'`
29254    TAPEDRIVE="/dev/nrst0"
29255    WIN32=win32
29256    WCFLAGS="-mwindows"
29257    WLDFLAGS="-mwindows"
29258   ;;
29259 darwin)
29260    DISTVER=`uname -r`
29261    TAPEDRIVE="/dev/nst0"
29262    PSCMD="ps -e -o pid,command"
29263    MACOSX=macosx
29264    PFILES="${PFILES} \
29265       platforms/darwin/Makefile"
29266   ;;
29267 osx)
29268    DISTVER=`uname -r`
29269    TAPEDRIVE="/dev/nst0"
29270    PSCMD="ps -e -o pid,command"
29271    MACOSX=macosx
29272    PFILES="${PFILES} \
29273       platforms/osx/Makefile"
29274   ;;
29275 debian)
29276    if `test -f /etc/apt/sources.list && grep -q ubuntu /etc/apt/sources.list`; then
29277       DISTNAME="ubuntu"
29278    fi
29279    DISTVER=`cat /etc/debian_version`
29280    if test -f /etc/lsb-release ; then
29281       . /etc/lsb-release
29282       if test "x$DISTRIB_ID" != "x" ; then
29283          DISTNAME=$DISTRIB_ID
29284       fi
29285       if test "x$DISTRIB_RELEASE" != "x" ; then
29286          DISTVER=$DISTRIB_RELEASE
29287       fi
29288    fi
29289    if test "$DISTNAME" = "Ubuntu" ; then
29290       DISTNAME="ubuntu"
29291    fi
29292    TAPEDRIVE="/dev/nst0"
29293    PSCMD="ps -e -o pid,command"
29294    if test "$DISTNAME" = "ubuntu" ; then
29295       PFILES="${PFILES} \
29296          platforms/ubuntu/Makefile \
29297          platforms/ubuntu/bacula-fd \
29298          platforms/ubuntu/bacula-sd \
29299          platforms/ubuntu/bacula-dir"
29300    else
29301       PFILES="${PFILES} \
29302          platforms/debian/Makefile \
29303          platforms/debian/bacula-fd \
29304          platforms/debian/bacula-sd \
29305          platforms/debian/bacula-dir"
29306    fi
29307   ;;
29308 freebsd)
29309    DISTVER=`uname -a |awk '{print $3}'`
29310    VER=`echo $DISTVER | cut -c 1`
29311    if test x$VER = x4 ; then
29312       PTHREAD_LIB="${PTHREAD_LIBS:--pthread}"
29313       CFLAGS="${CFLAGS} ${PTHREAD_CFLAGS:--pthread}"
29314    fi
29315    lld="qd"
29316    llu="qu"
29317    TAPEDRIVE="/dev/nrsa0"
29318    PSCMD="ps -ax -o pid,command"
29319    PFILES="${PFILES} \
29320        platforms/freebsd/Makefile \
29321        platforms/freebsd/bacula-fd \
29322        platforms/freebsd/bacula-sd \
29323        platforms/freebsd/bacula-dir"
29324    largefile_support="yes"
29325   ;;
29326 hpux)
29327    PSCMD="UNIX95=1; ps -e -o pid,comm"
29328    CFLAGS="${CFLAGS} -D_XOPEN_SOURCE_EXTENDED=1"
29329    DISTVER=`uname -r`
29330    TAPEDRIVE="/dev/rmt/0hnb"
29331    PTHREAD_LIB="-lpthread"
29332    $as_echo "#define _INCLUDE_LONGLONG 1" >>confdefs.h
29333
29334   ;;
29335 irix)
29336    DISTVER=`uname -r`
29337    TAPEDRIVE="/dev/rmt/0cbn"
29338    PSCMD="ps -e -o pid,comm"
29339    PFILES="${PFILES} \
29340        platforms/irix/Makefile \
29341        platforms/irix/bacula-fd \
29342        platforms/irix/bacula-sd \
29343        platforms/irix/bacula-dir"
29344   ;;
29345 netbsd)
29346    DISTVER=`uname -a |awk '{print $3}'`
29347    lld="qd"
29348    llu="qu"
29349    TAPEDRIVE="/dev/nrst0"
29350    PSCMD="ps -ax -o pid,command"
29351    PTHREAD_LIB="-pthread"
29352    CFLAGS="${CFLAGS} -pthread"
29353   ;;
29354 openbsd)
29355    DISTVER=`uname -a |awk '{print $3}'`
29356    lld="qd"
29357    llu="qu"
29358    TAPEDRIVE="/dev/nrst0"
29359    PSCMD="ps -ax -o pid,command"
29360    PTHREAD_LIB="-pthread"
29361    CFLAGS="${CFLAGS} -pthread"
29362    PFILES="${PFILES} \
29363        platforms/openbsd/Makefile \
29364        platforms/openbsd/bacula-fd \
29365        platforms/openbsd/bacula-sd \
29366        platforms/openbsd/bacula-dir"
29367   ;;
29368 redhat)
29369    if test -f /etc/whitebox-release ; then
29370       f=/etc/whitebox-release
29371    else
29372       f=/etc/redhat-release
29373    fi
29374    if test `cat $f | grep release |\
29375          cut -f 3 -d ' '`x = "Enterprise"x ; then
29376       DISTVER="Enterprise "`cat $f | grep release |\
29377           cut -f 6 -d ' '`
29378    else
29379        DISTVER=`cat /etc/redhat-release | grep release |\
29380            cut -f 5 -d ' '`
29381    fi
29382    TAPEDRIVE="/dev/nst0"
29383    PSCMD="ps -e -o pid,command"
29384    PFILES="${PFILES} \
29385        platforms/redhat/Makefile \
29386        platforms/redhat/bacula-fd \
29387        platforms/redhat/bacula-sd \
29388        platforms/redhat/bacula-dir
29389        "
29390   ;;
29391 mandrake)
29392    DISTVER=`cat /etc/mandrake-release | grep release |\
29393       cut -f 5 -d ' '`
29394    TAPEDRIVE="/dev/nst0"
29395    PSCMD="ps -e -o pid,command"
29396    PFILES="${PFILES} \
29397        platforms/mandrake/Makefile \
29398        platforms/mandrake/bacula-fd \
29399        platforms/mandrake/bacula-sd \
29400        platforms/mandrake/bacula-dir \
29401        "
29402   ;;
29403 gentoo)
29404    DISTVER=`awk '/version / {print $5}' < /etc/gentoo-release`
29405    TAPEDRIVE="/dev/nst0"
29406    PSCMD="ps -e -o pid,command"
29407    PFILES="${PFILES} \
29408        platforms/gentoo/Makefile \
29409     platforms/gentoo/bacula-init \
29410        platforms/gentoo/bacula-fd \
29411        platforms/gentoo/bacula-sd \
29412        platforms/gentoo/bacula-dir"
29413   ;;
29414 slackware)
29415    DISTVER=`cat /etc/slackware-version`
29416    TAPEDRIVE="/dev/nst0"
29417    PSCMD="ps -e -o pid,command"
29418    PFILES="${PFILES} \
29419        platforms/slackware/Makefile \
29420        platforms/slackware/rc.bacula-fd \
29421        platforms/slackware/rc.bacula-sd \
29422        platforms/slackware/rc.bacula-dir\
29423        platforms/slackware/functions.bacula"
29424   ;;
29425 solaris)
29426    DISTVER=`uname -r`
29427    TAPEDRIVE="/dev/rmt/0cbn"
29428    PSCMD="ps -e -o pid,comm"
29429    PFILES="${PFILES} \
29430        platforms/solaris/Makefile \
29431        platforms/solaris/bacula-fd \
29432        platforms/solaris/bacula-sd \
29433        platforms/solaris/bacula-dir"
29434    case ${DISTVER} in
29435    5.5|5.6)
29436       $as_echo "#define HAVE_OLD_SOCKOPT 1" >>confdefs.h
29437
29438       $as_echo "#define USE_THR_SETCONCURRENCY 1" >>confdefs.h
29439
29440       ;;
29441    5.7|5.8)
29442       $as_echo "#define USE_THR_SETCONCURRENCY 1" >>confdefs.h
29443
29444       ;;
29445    *)
29446       ;;
29447    esac
29448    LIBS="$LIBS -lresolv -lrt"
29449   ;;
29450 suse)
29451    DISTVER=`cat /etc/SuSE-release |grep VERSION|\
29452        cut -f 3 -d ' '`
29453    TAPEDRIVE="/dev/nst0"
29454    PSCMD="ps -e -o pid,command"
29455    PFILES="${PFILES} \
29456        platforms/suse/Makefile \
29457        platforms/suse/bacula-fd \
29458        platforms/suse/bacula-sd \
29459        platforms/suse/bacula-dir \
29460        platforms/suse/bacula"
29461   ;;
29462 suse5)
29463    DISTNAME=suse
29464    DISTVER=5.x
29465    TAPEDRIVE="/dev/nst0"
29466    PSCMD="ps -e -o pid,command"
29467    PFILES="${PFILES} \
29468        platforms/suse/Makefile \
29469        platforms/suse/bacula-fd \
29470        platforms/suse/bacula-sd \
29471        platforms/suse/bacula-dir"
29472   ;;
29473 unknown)
29474    DISTVER=unknown
29475    TAPEDRIVE="/dev/nst0"
29476   ;;
29477 *)
29478   echo " === Something went wrong. Unknown DISTNAME $DISTNAME ==="
29479   ;;
29480 esac
29481
29482
29483
29484 LIBS="$PTHREAD_LIB $LIBS"
29485
29486 cat >>confdefs.h <<_ACEOF
29487 #define lld "$lld"
29488 _ACEOF
29489
29490 cat >>confdefs.h <<_ACEOF
29491 #define llu "$llu"
29492 _ACEOF
29493
29494
29495
29496
29497
29498
29499
29500
29501 MCOMMON=./autoconf/Make.common
29502
29503
29504 if test "x${subsysdir}" = "x${sbindir}" ; then
29505    echo " "
29506    echo " "
29507    echo "You have set both --sbindir and --with-subsys-dir"
29508    echo "  equal to: ${subsysdir} "
29509    echo "This is not permitted. Please reconfigure."
29510    echo " "
29511    echo "Aborting configuration ..."
29512    echo " "
29513    echo " "
29514    exit 1
29515 fi
29516
29517 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/bacula.desktop.gnome1 scripts/bacula.desktop.gnome2 scripts/bacula.desktop.gnome1.consolehelper scripts/bacula.desktop.gnome2.consolehelper scripts/bacula.desktop.gnome1.xsu scripts/bacula.desktop.gnome2.xsu scripts/bgnome-console.console_apps scripts/mtx-changer scripts/disk-changer scripts/dvd-handler scripts/dvd-simulator scripts/bacula-tray-monitor.desktop scripts/logwatch/Makefile scripts/logwatch/logfile.bacula.conf scripts/wxconsole.console_apps scripts/wxconsole.desktop.consolehelper scripts/wxconsole.desktop.xsu 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/tray-monitor/tray-monitor.pro src/qt-console/tray-monitor/tray-monitor.conf src/qt-console/bat.conf src/qt-console/bat.pro src/qt-console/bat.pro.mingw32 src/qt-console/install_conf_file src/wx-console/Makefile src/wx-console/bwx-console.conf src/tray-monitor/Makefile src/tray-monitor/tray-monitor.conf 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/findlib/Makefile src/tools/Makefile src/plugins/fd/Makefile src/plugins/sd/Makefile src/plugins/dir/Makefile src/win32/Makefile.inc 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 $PFILES"
29518
29519 ac_config_commands="$ac_config_commands default"
29520
29521 cat >confcache <<\_ACEOF
29522 # This file is a shell script that caches the results of configure
29523 # tests run on this system so they can be shared between configure
29524 # scripts and configure runs, see configure's option --config-cache.
29525 # It is not useful on other systems.  If it contains results you don't
29526 # want to keep, you may remove or edit it.
29527 #
29528 # config.status only pays attention to the cache file if you give it
29529 # the --recheck option to rerun configure.
29530 #
29531 # `ac_cv_env_foo' variables (set or unset) will be overridden when
29532 # loading this file, other *unset* `ac_cv_foo' will be assigned the
29533 # following values.
29534
29535 _ACEOF
29536
29537 # The following way of writing the cache mishandles newlines in values,
29538 # but we know of no workaround that is simple, portable, and efficient.
29539 # So, we kill variables containing newlines.
29540 # Ultrix sh set writes to stderr and can't be redirected directly,
29541 # and sets the high bit in the cache file unless we assign to the vars.
29542 (
29543   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
29544     eval ac_val=\$$ac_var
29545     case $ac_val in #(
29546     *${as_nl}*)
29547       case $ac_var in #(
29548       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
29549 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
29550       esac
29551       case $ac_var in #(
29552       _ | IFS | as_nl) ;; #(
29553       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
29554       *) { eval $ac_var=; unset $ac_var;} ;;
29555       esac ;;
29556     esac
29557   done
29558
29559   (set) 2>&1 |
29560     case $as_nl`(ac_space=' '; set) 2>&1` in #(
29561     *${as_nl}ac_space=\ *)
29562       # `set' does not quote correctly, so add quotes: double-quote
29563       # substitution turns \\\\ into \\, and sed turns \\ into \.
29564       sed -n \
29565         "s/'/'\\\\''/g;
29566           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
29567       ;; #(
29568     *)
29569       # `set' quotes correctly as required by POSIX, so do not add quotes.
29570       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
29571       ;;
29572     esac |
29573     sort
29574 ) |
29575   sed '
29576      /^ac_cv_env_/b end
29577      t clear
29578      :clear
29579      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
29580      t end
29581      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
29582      :end' >>confcache
29583 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
29584   if test -w "$cache_file"; then
29585     test "x$cache_file" != "x/dev/null" &&
29586       { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
29587 $as_echo "$as_me: updating cache $cache_file" >&6;}
29588     cat confcache >$cache_file
29589   else
29590     { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
29591 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
29592   fi
29593 fi
29594 rm -f confcache
29595
29596 test "x$prefix" = xNONE && prefix=$ac_default_prefix
29597 # Let make expand exec_prefix.
29598 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
29599
29600 DEFS=-DHAVE_CONFIG_H
29601
29602 ac_libobjs=
29603 ac_ltlibobjs=
29604 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
29605   # 1. Remove the extension, and $U if already installed.
29606   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
29607   ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
29608   # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
29609   #    will be set to the directory where LIBOBJS objects are built.
29610   as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
29611   as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
29612 done
29613 LIBOBJS=$ac_libobjs
29614
29615 LTLIBOBJS=$ac_ltlibobjs
29616
29617
29618
29619
29620 : ${CONFIG_STATUS=./config.status}
29621 ac_write_fail=0
29622 ac_clean_files_save=$ac_clean_files
29623 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
29624 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
29625 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
29626 as_write_fail=0
29627 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
29628 #! $SHELL
29629 # Generated by $as_me.
29630 # Run this file to recreate the current configuration.
29631 # Compiler output produced by configure, useful for debugging
29632 # configure, is in config.log if it exists.
29633
29634 debug=false
29635 ac_cs_recheck=false
29636 ac_cs_silent=false
29637
29638 SHELL=\${CONFIG_SHELL-$SHELL}
29639 export SHELL
29640 _ASEOF
29641 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
29642 ## -------------------- ##
29643 ## M4sh Initialization. ##
29644 ## -------------------- ##
29645
29646 # Be more Bourne compatible
29647 DUALCASE=1; export DUALCASE # for MKS sh
29648 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
29649   emulate sh
29650   NULLCMD=:
29651   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
29652   # is contrary to our usage.  Disable this feature.
29653   alias -g '${1+"$@"}'='"$@"'
29654   setopt NO_GLOB_SUBST
29655 else
29656   case `(set -o) 2>/dev/null` in #(
29657   *posix*) :
29658     set -o posix ;; #(
29659   *) :
29660      ;;
29661 esac
29662 fi
29663
29664
29665 as_nl='
29666 '
29667 export as_nl
29668 # Printing a long string crashes Solaris 7 /usr/bin/printf.
29669 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
29670 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
29671 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
29672 # Prefer a ksh shell builtin over an external printf program on Solaris,
29673 # but without wasting forks for bash or zsh.
29674 if test -z "$BASH_VERSION$ZSH_VERSION" \
29675     && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
29676   as_echo='print -r --'
29677   as_echo_n='print -rn --'
29678 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
29679   as_echo='printf %s\n'
29680   as_echo_n='printf %s'
29681 else
29682   if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
29683     as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
29684     as_echo_n='/usr/ucb/echo -n'
29685   else
29686     as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
29687     as_echo_n_body='eval
29688       arg=$1;
29689       case $arg in #(
29690       *"$as_nl"*)
29691         expr "X$arg" : "X\\(.*\\)$as_nl";
29692         arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
29693       esac;
29694       expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
29695     '
29696     export as_echo_n_body
29697     as_echo_n='sh -c $as_echo_n_body as_echo'
29698   fi
29699   export as_echo_body
29700   as_echo='sh -c $as_echo_body as_echo'
29701 fi
29702
29703 # The user is always right.
29704 if test "${PATH_SEPARATOR+set}" != set; then
29705   PATH_SEPARATOR=:
29706   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
29707     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
29708       PATH_SEPARATOR=';'
29709   }
29710 fi
29711
29712
29713 # IFS
29714 # We need space, tab and new line, in precisely that order.  Quoting is
29715 # there to prevent editors from complaining about space-tab.
29716 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
29717 # splitting by setting IFS to empty value.)
29718 IFS=" ""        $as_nl"
29719
29720 # Find who we are.  Look in the path if we contain no directory separator.
29721 case $0 in #((
29722   *[\\/]* ) as_myself=$0 ;;
29723   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29724 for as_dir in $PATH
29725 do
29726   IFS=$as_save_IFS
29727   test -z "$as_dir" && as_dir=.
29728     test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
29729   done
29730 IFS=$as_save_IFS
29731
29732      ;;
29733 esac
29734 # We did not find ourselves, most probably we were run as `sh COMMAND'
29735 # in which case we are not to be found in the path.
29736 if test "x$as_myself" = x; then
29737   as_myself=$0
29738 fi
29739 if test ! -f "$as_myself"; then
29740   $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
29741   exit 1
29742 fi
29743
29744 # Unset variables that we do not need and which cause bugs (e.g. in
29745 # pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
29746 # suppresses any "Segmentation fault" message there.  '((' could
29747 # trigger a bug in pdksh 5.2.14.
29748 for as_var in BASH_ENV ENV MAIL MAILPATH
29749 do eval test x\${$as_var+set} = xset \
29750   && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
29751 done
29752 PS1='$ '
29753 PS2='> '
29754 PS4='+ '
29755
29756 # NLS nuisances.
29757 LC_ALL=C
29758 export LC_ALL
29759 LANGUAGE=C
29760 export LANGUAGE
29761
29762 # CDPATH.
29763 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
29764
29765
29766 # as_fn_error ERROR [LINENO LOG_FD]
29767 # ---------------------------------
29768 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
29769 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
29770 # script with status $?, using 1 if that was 0.
29771 as_fn_error ()
29772 {
29773   as_status=$?; test $as_status -eq 0 && as_status=1
29774   if test "$3"; then
29775     as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
29776     $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
29777   fi
29778   $as_echo "$as_me: error: $1" >&2
29779   as_fn_exit $as_status
29780 } # as_fn_error
29781
29782
29783 # as_fn_set_status STATUS
29784 # -----------------------
29785 # Set $? to STATUS, without forking.
29786 as_fn_set_status ()
29787 {
29788   return $1
29789 } # as_fn_set_status
29790
29791 # as_fn_exit STATUS
29792 # -----------------
29793 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
29794 as_fn_exit ()
29795 {
29796   set +e
29797   as_fn_set_status $1
29798   exit $1
29799 } # as_fn_exit
29800
29801 # as_fn_unset VAR
29802 # ---------------
29803 # Portably unset VAR.
29804 as_fn_unset ()
29805 {
29806   { eval $1=; unset $1;}
29807 }
29808 as_unset=as_fn_unset
29809 # as_fn_append VAR VALUE
29810 # ----------------------
29811 # Append the text in VALUE to the end of the definition contained in VAR. Take
29812 # advantage of any shell optimizations that allow amortized linear growth over
29813 # repeated appends, instead of the typical quadratic growth present in naive
29814 # implementations.
29815 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
29816   eval 'as_fn_append ()
29817   {
29818     eval $1+=\$2
29819   }'
29820 else
29821   as_fn_append ()
29822   {
29823     eval $1=\$$1\$2
29824   }
29825 fi # as_fn_append
29826
29827 # as_fn_arith ARG...
29828 # ------------------
29829 # Perform arithmetic evaluation on the ARGs, and store the result in the
29830 # global $as_val. Take advantage of shells that can avoid forks. The arguments
29831 # must be portable across $(()) and expr.
29832 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
29833   eval 'as_fn_arith ()
29834   {
29835     as_val=$(( $* ))
29836   }'
29837 else
29838   as_fn_arith ()
29839   {
29840     as_val=`expr "$@" || test $? -eq 1`
29841   }
29842 fi # as_fn_arith
29843
29844
29845 if expr a : '\(a\)' >/dev/null 2>&1 &&
29846    test "X`expr 00001 : '.*\(...\)'`" = X001; then
29847   as_expr=expr
29848 else
29849   as_expr=false
29850 fi
29851
29852 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
29853   as_basename=basename
29854 else
29855   as_basename=false
29856 fi
29857
29858 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
29859   as_dirname=dirname
29860 else
29861   as_dirname=false
29862 fi
29863
29864 as_me=`$as_basename -- "$0" ||
29865 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
29866          X"$0" : 'X\(//\)$' \| \
29867          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
29868 $as_echo X/"$0" |
29869     sed '/^.*\/\([^/][^/]*\)\/*$/{
29870             s//\1/
29871             q
29872           }
29873           /^X\/\(\/\/\)$/{
29874             s//\1/
29875             q
29876           }
29877           /^X\/\(\/\).*/{
29878             s//\1/
29879             q
29880           }
29881           s/.*/./; q'`
29882
29883 # Avoid depending upon Character Ranges.
29884 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
29885 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
29886 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
29887 as_cr_digits='0123456789'
29888 as_cr_alnum=$as_cr_Letters$as_cr_digits
29889
29890 ECHO_C= ECHO_N= ECHO_T=
29891 case `echo -n x` in #(((((
29892 -n*)
29893   case `echo 'xy\c'` in
29894   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
29895   xy)  ECHO_C='\c';;
29896   *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
29897        ECHO_T=' ';;
29898   esac;;
29899 *)
29900   ECHO_N='-n';;
29901 esac
29902
29903 rm -f conf$$ conf$$.exe conf$$.file
29904 if test -d conf$$.dir; then
29905   rm -f conf$$.dir/conf$$.file
29906 else
29907   rm -f conf$$.dir
29908   mkdir conf$$.dir 2>/dev/null
29909 fi
29910 if (echo >conf$$.file) 2>/dev/null; then
29911   if ln -s conf$$.file conf$$ 2>/dev/null; then
29912     as_ln_s='ln -s'
29913     # ... but there are two gotchas:
29914     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
29915     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
29916     # In both cases, we have to default to `cp -p'.
29917     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
29918       as_ln_s='cp -p'
29919   elif ln conf$$.file conf$$ 2>/dev/null; then
29920     as_ln_s=ln
29921   else
29922     as_ln_s='cp -p'
29923   fi
29924 else
29925   as_ln_s='cp -p'
29926 fi
29927 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
29928 rmdir conf$$.dir 2>/dev/null
29929
29930
29931 # as_fn_mkdir_p
29932 # -------------
29933 # Create "$as_dir" as a directory, including parents if necessary.
29934 as_fn_mkdir_p ()
29935 {
29936
29937   case $as_dir in #(
29938   -*) as_dir=./$as_dir;;
29939   esac
29940   test -d "$as_dir" || eval $as_mkdir_p || {
29941     as_dirs=
29942     while :; do
29943       case $as_dir in #(
29944       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
29945       *) as_qdir=$as_dir;;
29946       esac
29947       as_dirs="'$as_qdir' $as_dirs"
29948       as_dir=`$as_dirname -- "$as_dir" ||
29949 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
29950          X"$as_dir" : 'X\(//\)[^/]' \| \
29951          X"$as_dir" : 'X\(//\)$' \| \
29952          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
29953 $as_echo X"$as_dir" |
29954     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
29955             s//\1/
29956             q
29957           }
29958           /^X\(\/\/\)[^/].*/{
29959             s//\1/
29960             q
29961           }
29962           /^X\(\/\/\)$/{
29963             s//\1/
29964             q
29965           }
29966           /^X\(\/\).*/{
29967             s//\1/
29968             q
29969           }
29970           s/.*/./; q'`
29971       test -d "$as_dir" && break
29972     done
29973     test -z "$as_dirs" || eval "mkdir $as_dirs"
29974   } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
29975
29976
29977 } # as_fn_mkdir_p
29978 if mkdir -p . 2>/dev/null; then
29979   as_mkdir_p='mkdir -p "$as_dir"'
29980 else
29981   test -d ./-p && rmdir ./-p
29982   as_mkdir_p=false
29983 fi
29984
29985 if test -x / >/dev/null 2>&1; then
29986   as_test_x='test -x'
29987 else
29988   if ls -dL / >/dev/null 2>&1; then
29989     as_ls_L_option=L
29990   else
29991     as_ls_L_option=
29992   fi
29993   as_test_x='
29994     eval sh -c '\''
29995       if test -d "$1"; then
29996         test -d "$1/.";
29997       else
29998         case $1 in #(
29999         -*)set "./$1";;
30000         esac;
30001         case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
30002         ???[sx]*):;;*)false;;esac;fi
30003     '\'' sh
30004   '
30005 fi
30006 as_executable_p=$as_test_x
30007
30008 # Sed expression to map a string onto a valid CPP name.
30009 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
30010
30011 # Sed expression to map a string onto a valid variable name.
30012 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
30013
30014
30015 exec 6>&1
30016 ## ----------------------------------- ##
30017 ## Main body of $CONFIG_STATUS script. ##
30018 ## ----------------------------------- ##
30019 _ASEOF
30020 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
30021
30022 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
30023 # Save the log message, to keep $0 and so on meaningful, and to
30024 # report actual input values of CONFIG_FILES etc. instead of their
30025 # values after options handling.
30026 ac_log="
30027 This file was extended by bacula $as_me 5.1.14, which was
30028 generated by GNU Autoconf 2.65.  Invocation command line was
30029
30030   CONFIG_FILES    = $CONFIG_FILES
30031   CONFIG_HEADERS  = $CONFIG_HEADERS
30032   CONFIG_LINKS    = $CONFIG_LINKS
30033   CONFIG_COMMANDS = $CONFIG_COMMANDS
30034   $ $0 $@
30035
30036 on `(hostname || uname -n) 2>/dev/null | sed 1q`
30037 "
30038
30039 _ACEOF
30040
30041 case $ac_config_files in *"
30042 "*) set x $ac_config_files; shift; ac_config_files=$*;;
30043 esac
30044
30045 case $ac_config_headers in *"
30046 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
30047 esac
30048
30049
30050 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
30051 # Files that config.status was made for.
30052 config_files="$ac_config_files"
30053 config_headers="$ac_config_headers"
30054 config_commands="$ac_config_commands"
30055
30056 _ACEOF
30057
30058 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
30059 ac_cs_usage="\
30060 \`$as_me' instantiates files and other configuration actions
30061 from templates according to the current configuration.  Unless the files
30062 and actions are specified as TAGs, all are instantiated by default.
30063
30064 Usage: $0 [OPTION]... [TAG]...
30065
30066   -h, --help       print this help, then exit
30067   -V, --version    print version number and configuration settings, then exit
30068       --config     print configuration, then exit
30069   -q, --quiet, --silent
30070                    do not print progress messages
30071   -d, --debug      don't remove temporary files
30072       --recheck    update $as_me by reconfiguring in the same conditions
30073       --file=FILE[:TEMPLATE]
30074                    instantiate the configuration file FILE
30075       --header=FILE[:TEMPLATE]
30076                    instantiate the configuration header FILE
30077
30078 Configuration files:
30079 $config_files
30080
30081 Configuration headers:
30082 $config_headers
30083
30084 Configuration commands:
30085 $config_commands
30086
30087 Report bugs to the package provider."
30088
30089 _ACEOF
30090 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
30091 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
30092 ac_cs_version="\\
30093 bacula config.status 5.1.14
30094 configured by $0, generated by GNU Autoconf 2.65,
30095   with options \\"\$ac_cs_config\\"
30096
30097 Copyright (C) 2009 Free Software Foundation, Inc.
30098 This config.status script is free software; the Free Software Foundation
30099 gives unlimited permission to copy, distribute and modify it."
30100
30101 ac_pwd='$ac_pwd'
30102 srcdir='$srcdir'
30103 INSTALL='$INSTALL'
30104 AWK='$AWK'
30105 test -n "\$AWK" || AWK=awk
30106 _ACEOF
30107
30108 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
30109 # The default lists apply if the user does not specify any file.
30110 ac_need_defaults=:
30111 while test $# != 0
30112 do
30113   case $1 in
30114   --*=*)
30115     ac_option=`expr "X$1" : 'X\([^=]*\)='`
30116     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
30117     ac_shift=:
30118     ;;
30119   *)
30120     ac_option=$1
30121     ac_optarg=$2
30122     ac_shift=shift
30123     ;;
30124   esac
30125
30126   case $ac_option in
30127   # Handling of the options.
30128   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
30129     ac_cs_recheck=: ;;
30130   --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
30131     $as_echo "$ac_cs_version"; exit ;;
30132   --config | --confi | --conf | --con | --co | --c )
30133     $as_echo "$ac_cs_config"; exit ;;
30134   --debug | --debu | --deb | --de | --d | -d )
30135     debug=: ;;
30136   --file | --fil | --fi | --f )
30137     $ac_shift
30138     case $ac_optarg in
30139     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
30140     esac
30141     as_fn_append CONFIG_FILES " '$ac_optarg'"
30142     ac_need_defaults=false;;
30143   --header | --heade | --head | --hea )
30144     $ac_shift
30145     case $ac_optarg in
30146     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
30147     esac
30148     as_fn_append CONFIG_HEADERS " '$ac_optarg'"
30149     ac_need_defaults=false;;
30150   --he | --h)
30151     # Conflict between --help and --header
30152     as_fn_error "ambiguous option: \`$1'
30153 Try \`$0 --help' for more information.";;
30154   --help | --hel | -h )
30155     $as_echo "$ac_cs_usage"; exit ;;
30156   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
30157   | -silent | --silent | --silen | --sile | --sil | --si | --s)
30158     ac_cs_silent=: ;;
30159
30160   # This is an error.
30161   -*) as_fn_error "unrecognized option: \`$1'
30162 Try \`$0 --help' for more information." ;;
30163
30164   *) as_fn_append ac_config_targets " $1"
30165      ac_need_defaults=false ;;
30166
30167   esac
30168   shift
30169 done
30170
30171 ac_configure_extra_args=
30172
30173 if $ac_cs_silent; then
30174   exec 6>/dev/null
30175   ac_configure_extra_args="$ac_configure_extra_args --silent"
30176 fi
30177
30178 _ACEOF
30179 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
30180 if \$ac_cs_recheck; then
30181   set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
30182   shift
30183   \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
30184   CONFIG_SHELL='$SHELL'
30185   export CONFIG_SHELL
30186   exec "\$@"
30187 fi
30188
30189 _ACEOF
30190 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
30191 exec 5>>config.log
30192 {
30193   echo
30194   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
30195 ## Running $as_me. ##
30196 _ASBOX
30197   $as_echo "$ac_log"
30198 } >&5
30199
30200 _ACEOF
30201 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
30202 #
30203 # INIT-COMMANDS
30204 #
30205
30206
30207 # The HP-UX ksh and POSIX shell print the target directory to stdout
30208 # if CDPATH is set.
30209 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
30210
30211 sed_quote_subst='$sed_quote_subst'
30212 double_quote_subst='$double_quote_subst'
30213 delay_variable_subst='$delay_variable_subst'
30214 macro_version='`$ECHO "X$macro_version" | $Xsed -e "$delay_single_quote_subst"`'
30215 macro_revision='`$ECHO "X$macro_revision" | $Xsed -e "$delay_single_quote_subst"`'
30216 enable_shared='`$ECHO "X$enable_shared" | $Xsed -e "$delay_single_quote_subst"`'
30217 enable_static='`$ECHO "X$enable_static" | $Xsed -e "$delay_single_quote_subst"`'
30218 pic_mode='`$ECHO "X$pic_mode" | $Xsed -e "$delay_single_quote_subst"`'
30219 enable_fast_install='`$ECHO "X$enable_fast_install" | $Xsed -e "$delay_single_quote_subst"`'
30220 host_alias='`$ECHO "X$host_alias" | $Xsed -e "$delay_single_quote_subst"`'
30221 host='`$ECHO "X$host" | $Xsed -e "$delay_single_quote_subst"`'
30222 host_os='`$ECHO "X$host_os" | $Xsed -e "$delay_single_quote_subst"`'
30223 build_alias='`$ECHO "X$build_alias" | $Xsed -e "$delay_single_quote_subst"`'
30224 build='`$ECHO "X$build" | $Xsed -e "$delay_single_quote_subst"`'
30225 build_os='`$ECHO "X$build_os" | $Xsed -e "$delay_single_quote_subst"`'
30226 SED='`$ECHO "X$SED" | $Xsed -e "$delay_single_quote_subst"`'
30227 Xsed='`$ECHO "X$Xsed" | $Xsed -e "$delay_single_quote_subst"`'
30228 GREP='`$ECHO "X$GREP" | $Xsed -e "$delay_single_quote_subst"`'
30229 EGREP='`$ECHO "X$EGREP" | $Xsed -e "$delay_single_quote_subst"`'
30230 FGREP='`$ECHO "X$FGREP" | $Xsed -e "$delay_single_quote_subst"`'
30231 LD='`$ECHO "X$LD" | $Xsed -e "$delay_single_quote_subst"`'
30232 NM='`$ECHO "X$NM" | $Xsed -e "$delay_single_quote_subst"`'
30233 LN_S='`$ECHO "X$LN_S" | $Xsed -e "$delay_single_quote_subst"`'
30234 max_cmd_len='`$ECHO "X$max_cmd_len" | $Xsed -e "$delay_single_quote_subst"`'
30235 ac_objext='`$ECHO "X$ac_objext" | $Xsed -e "$delay_single_quote_subst"`'
30236 exeext='`$ECHO "X$exeext" | $Xsed -e "$delay_single_quote_subst"`'
30237 lt_unset='`$ECHO "X$lt_unset" | $Xsed -e "$delay_single_quote_subst"`'
30238 lt_SP2NL='`$ECHO "X$lt_SP2NL" | $Xsed -e "$delay_single_quote_subst"`'
30239 lt_NL2SP='`$ECHO "X$lt_NL2SP" | $Xsed -e "$delay_single_quote_subst"`'
30240 reload_flag='`$ECHO "X$reload_flag" | $Xsed -e "$delay_single_quote_subst"`'
30241 reload_cmds='`$ECHO "X$reload_cmds" | $Xsed -e "$delay_single_quote_subst"`'
30242 OBJDUMP='`$ECHO "X$OBJDUMP" | $Xsed -e "$delay_single_quote_subst"`'
30243 deplibs_check_method='`$ECHO "X$deplibs_check_method" | $Xsed -e "$delay_single_quote_subst"`'
30244 file_magic_cmd='`$ECHO "X$file_magic_cmd" | $Xsed -e "$delay_single_quote_subst"`'
30245 AR='`$ECHO "X$AR" | $Xsed -e "$delay_single_quote_subst"`'
30246 AR_FLAGS='`$ECHO "X$AR_FLAGS" | $Xsed -e "$delay_single_quote_subst"`'
30247 STRIP='`$ECHO "X$STRIP" | $Xsed -e "$delay_single_quote_subst"`'
30248 RANLIB='`$ECHO "X$RANLIB" | $Xsed -e "$delay_single_quote_subst"`'
30249 old_postinstall_cmds='`$ECHO "X$old_postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
30250 old_postuninstall_cmds='`$ECHO "X$old_postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
30251 old_archive_cmds='`$ECHO "X$old_archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
30252 CC='`$ECHO "X$CC" | $Xsed -e "$delay_single_quote_subst"`'
30253 CFLAGS='`$ECHO "X$CFLAGS" | $Xsed -e "$delay_single_quote_subst"`'
30254 compiler='`$ECHO "X$compiler" | $Xsed -e "$delay_single_quote_subst"`'
30255 GCC='`$ECHO "X$GCC" | $Xsed -e "$delay_single_quote_subst"`'
30256 lt_cv_sys_global_symbol_pipe='`$ECHO "X$lt_cv_sys_global_symbol_pipe" | $Xsed -e "$delay_single_quote_subst"`'
30257 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "X$lt_cv_sys_global_symbol_to_cdecl" | $Xsed -e "$delay_single_quote_subst"`'
30258 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "X$lt_cv_sys_global_symbol_to_c_name_address" | $Xsed -e "$delay_single_quote_subst"`'
30259 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix='`$ECHO "X$lt_cv_sys_global_symbol_to_c_name_address_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`'
30260 objdir='`$ECHO "X$objdir" | $Xsed -e "$delay_single_quote_subst"`'
30261 SHELL='`$ECHO "X$SHELL" | $Xsed -e "$delay_single_quote_subst"`'
30262 ECHO='`$ECHO "X$ECHO" | $Xsed -e "$delay_single_quote_subst"`'
30263 MAGIC_CMD='`$ECHO "X$MAGIC_CMD" | $Xsed -e "$delay_single_quote_subst"`'
30264 lt_prog_compiler_no_builtin_flag='`$ECHO "X$lt_prog_compiler_no_builtin_flag" | $Xsed -e "$delay_single_quote_subst"`'
30265 lt_prog_compiler_wl='`$ECHO "X$lt_prog_compiler_wl" | $Xsed -e "$delay_single_quote_subst"`'
30266 lt_prog_compiler_pic='`$ECHO "X$lt_prog_compiler_pic" | $Xsed -e "$delay_single_quote_subst"`'
30267 lt_prog_compiler_static='`$ECHO "X$lt_prog_compiler_static" | $Xsed -e "$delay_single_quote_subst"`'
30268 lt_cv_prog_compiler_c_o='`$ECHO "X$lt_cv_prog_compiler_c_o" | $Xsed -e "$delay_single_quote_subst"`'
30269 need_locks='`$ECHO "X$need_locks" | $Xsed -e "$delay_single_quote_subst"`'
30270 DSYMUTIL='`$ECHO "X$DSYMUTIL" | $Xsed -e "$delay_single_quote_subst"`'
30271 NMEDIT='`$ECHO "X$NMEDIT" | $Xsed -e "$delay_single_quote_subst"`'
30272 LIPO='`$ECHO "X$LIPO" | $Xsed -e "$delay_single_quote_subst"`'
30273 OTOOL='`$ECHO "X$OTOOL" | $Xsed -e "$delay_single_quote_subst"`'
30274 OTOOL64='`$ECHO "X$OTOOL64" | $Xsed -e "$delay_single_quote_subst"`'
30275 libext='`$ECHO "X$libext" | $Xsed -e "$delay_single_quote_subst"`'
30276 shrext_cmds='`$ECHO "X$shrext_cmds" | $Xsed -e "$delay_single_quote_subst"`'
30277 extract_expsyms_cmds='`$ECHO "X$extract_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
30278 archive_cmds_need_lc='`$ECHO "X$archive_cmds_need_lc" | $Xsed -e "$delay_single_quote_subst"`'
30279 enable_shared_with_static_runtimes='`$ECHO "X$enable_shared_with_static_runtimes" | $Xsed -e "$delay_single_quote_subst"`'
30280 export_dynamic_flag_spec='`$ECHO "X$export_dynamic_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
30281 whole_archive_flag_spec='`$ECHO "X$whole_archive_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
30282 compiler_needs_object='`$ECHO "X$compiler_needs_object" | $Xsed -e "$delay_single_quote_subst"`'
30283 old_archive_from_new_cmds='`$ECHO "X$old_archive_from_new_cmds" | $Xsed -e "$delay_single_quote_subst"`'
30284 old_archive_from_expsyms_cmds='`$ECHO "X$old_archive_from_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
30285 archive_cmds='`$ECHO "X$archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
30286 archive_expsym_cmds='`$ECHO "X$archive_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
30287 module_cmds='`$ECHO "X$module_cmds" | $Xsed -e "$delay_single_quote_subst"`'
30288 module_expsym_cmds='`$ECHO "X$module_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
30289 with_gnu_ld='`$ECHO "X$with_gnu_ld" | $Xsed -e "$delay_single_quote_subst"`'
30290 allow_undefined_flag='`$ECHO "X$allow_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
30291 no_undefined_flag='`$ECHO "X$no_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
30292 hardcode_libdir_flag_spec='`$ECHO "X$hardcode_libdir_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
30293 hardcode_libdir_flag_spec_ld='`$ECHO "X$hardcode_libdir_flag_spec_ld" | $Xsed -e "$delay_single_quote_subst"`'
30294 hardcode_libdir_separator='`$ECHO "X$hardcode_libdir_separator" | $Xsed -e "$delay_single_quote_subst"`'
30295 hardcode_direct='`$ECHO "X$hardcode_direct" | $Xsed -e "$delay_single_quote_subst"`'
30296 hardcode_direct_absolute='`$ECHO "X$hardcode_direct_absolute" | $Xsed -e "$delay_single_quote_subst"`'
30297 hardcode_minus_L='`$ECHO "X$hardcode_minus_L" | $Xsed -e "$delay_single_quote_subst"`'
30298 hardcode_shlibpath_var='`$ECHO "X$hardcode_shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
30299 hardcode_automatic='`$ECHO "X$hardcode_automatic" | $Xsed -e "$delay_single_quote_subst"`'
30300 inherit_rpath='`$ECHO "X$inherit_rpath" | $Xsed -e "$delay_single_quote_subst"`'
30301 link_all_deplibs='`$ECHO "X$link_all_deplibs" | $Xsed -e "$delay_single_quote_subst"`'
30302 fix_srcfile_path='`$ECHO "X$fix_srcfile_path" | $Xsed -e "$delay_single_quote_subst"`'
30303 always_export_symbols='`$ECHO "X$always_export_symbols" | $Xsed -e "$delay_single_quote_subst"`'
30304 export_symbols_cmds='`$ECHO "X$export_symbols_cmds" | $Xsed -e "$delay_single_quote_subst"`'
30305 exclude_expsyms='`$ECHO "X$exclude_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
30306 include_expsyms='`$ECHO "X$include_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
30307 prelink_cmds='`$ECHO "X$prelink_cmds" | $Xsed -e "$delay_single_quote_subst"`'
30308 file_list_spec='`$ECHO "X$file_list_spec" | $Xsed -e "$delay_single_quote_subst"`'
30309 variables_saved_for_relink='`$ECHO "X$variables_saved_for_relink" | $Xsed -e "$delay_single_quote_subst"`'
30310 need_lib_prefix='`$ECHO "X$need_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`'
30311 need_version='`$ECHO "X$need_version" | $Xsed -e "$delay_single_quote_subst"`'
30312 version_type='`$ECHO "X$version_type" | $Xsed -e "$delay_single_quote_subst"`'
30313 runpath_var='`$ECHO "X$runpath_var" | $Xsed -e "$delay_single_quote_subst"`'
30314 shlibpath_var='`$ECHO "X$shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
30315 shlibpath_overrides_runpath='`$ECHO "X$shlibpath_overrides_runpath" | $Xsed -e "$delay_single_quote_subst"`'
30316 libname_spec='`$ECHO "X$libname_spec" | $Xsed -e "$delay_single_quote_subst"`'
30317 library_names_spec='`$ECHO "X$library_names_spec" | $Xsed -e "$delay_single_quote_subst"`'
30318 soname_spec='`$ECHO "X$soname_spec" | $Xsed -e "$delay_single_quote_subst"`'
30319 postinstall_cmds='`$ECHO "X$postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
30320 postuninstall_cmds='`$ECHO "X$postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
30321 finish_cmds='`$ECHO "X$finish_cmds" | $Xsed -e "$delay_single_quote_subst"`'
30322 finish_eval='`$ECHO "X$finish_eval" | $Xsed -e "$delay_single_quote_subst"`'
30323 hardcode_into_libs='`$ECHO "X$hardcode_into_libs" | $Xsed -e "$delay_single_quote_subst"`'
30324 sys_lib_search_path_spec='`$ECHO "X$sys_lib_search_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
30325 sys_lib_dlsearch_path_spec='`$ECHO "X$sys_lib_dlsearch_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
30326 hardcode_action='`$ECHO "X$hardcode_action" | $Xsed -e "$delay_single_quote_subst"`'
30327 enable_dlopen='`$ECHO "X$enable_dlopen" | $Xsed -e "$delay_single_quote_subst"`'
30328 enable_dlopen_self='`$ECHO "X$enable_dlopen_self" | $Xsed -e "$delay_single_quote_subst"`'
30329 enable_dlopen_self_static='`$ECHO "X$enable_dlopen_self_static" | $Xsed -e "$delay_single_quote_subst"`'
30330 old_striplib='`$ECHO "X$old_striplib" | $Xsed -e "$delay_single_quote_subst"`'
30331 striplib='`$ECHO "X$striplib" | $Xsed -e "$delay_single_quote_subst"`'
30332 compiler_lib_search_dirs='`$ECHO "X$compiler_lib_search_dirs" | $Xsed -e "$delay_single_quote_subst"`'
30333 predep_objects='`$ECHO "X$predep_objects" | $Xsed -e "$delay_single_quote_subst"`'
30334 postdep_objects='`$ECHO "X$postdep_objects" | $Xsed -e "$delay_single_quote_subst"`'
30335 predeps='`$ECHO "X$predeps" | $Xsed -e "$delay_single_quote_subst"`'
30336 postdeps='`$ECHO "X$postdeps" | $Xsed -e "$delay_single_quote_subst"`'
30337 compiler_lib_search_path='`$ECHO "X$compiler_lib_search_path" | $Xsed -e "$delay_single_quote_subst"`'
30338 LD_CXX='`$ECHO "X$LD_CXX" | $Xsed -e "$delay_single_quote_subst"`'
30339 old_archive_cmds_CXX='`$ECHO "X$old_archive_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
30340 compiler_CXX='`$ECHO "X$compiler_CXX" | $Xsed -e "$delay_single_quote_subst"`'
30341 GCC_CXX='`$ECHO "X$GCC_CXX" | $Xsed -e "$delay_single_quote_subst"`'
30342 lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "X$lt_prog_compiler_no_builtin_flag_CXX" | $Xsed -e "$delay_single_quote_subst"`'
30343 lt_prog_compiler_wl_CXX='`$ECHO "X$lt_prog_compiler_wl_CXX" | $Xsed -e "$delay_single_quote_subst"`'
30344 lt_prog_compiler_pic_CXX='`$ECHO "X$lt_prog_compiler_pic_CXX" | $Xsed -e "$delay_single_quote_subst"`'
30345 lt_prog_compiler_static_CXX='`$ECHO "X$lt_prog_compiler_static_CXX" | $Xsed -e "$delay_single_quote_subst"`'
30346 lt_cv_prog_compiler_c_o_CXX='`$ECHO "X$lt_cv_prog_compiler_c_o_CXX" | $Xsed -e "$delay_single_quote_subst"`'
30347 archive_cmds_need_lc_CXX='`$ECHO "X$archive_cmds_need_lc_CXX" | $Xsed -e "$delay_single_quote_subst"`'
30348 enable_shared_with_static_runtimes_CXX='`$ECHO "X$enable_shared_with_static_runtimes_CXX" | $Xsed -e "$delay_single_quote_subst"`'
30349 export_dynamic_flag_spec_CXX='`$ECHO "X$export_dynamic_flag_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
30350 whole_archive_flag_spec_CXX='`$ECHO "X$whole_archive_flag_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
30351 compiler_needs_object_CXX='`$ECHO "X$compiler_needs_object_CXX" | $Xsed -e "$delay_single_quote_subst"`'
30352 old_archive_from_new_cmds_CXX='`$ECHO "X$old_archive_from_new_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
30353 old_archive_from_expsyms_cmds_CXX='`$ECHO "X$old_archive_from_expsyms_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
30354 archive_cmds_CXX='`$ECHO "X$archive_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
30355 archive_expsym_cmds_CXX='`$ECHO "X$archive_expsym_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
30356 module_cmds_CXX='`$ECHO "X$module_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
30357 module_expsym_cmds_CXX='`$ECHO "X$module_expsym_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
30358 with_gnu_ld_CXX='`$ECHO "X$with_gnu_ld_CXX" | $Xsed -e "$delay_single_quote_subst"`'
30359 allow_undefined_flag_CXX='`$ECHO "X$allow_undefined_flag_CXX" | $Xsed -e "$delay_single_quote_subst"`'
30360 no_undefined_flag_CXX='`$ECHO "X$no_undefined_flag_CXX" | $Xsed -e "$delay_single_quote_subst"`'
30361 hardcode_libdir_flag_spec_CXX='`$ECHO "X$hardcode_libdir_flag_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
30362 hardcode_libdir_flag_spec_ld_CXX='`$ECHO "X$hardcode_libdir_flag_spec_ld_CXX" | $Xsed -e "$delay_single_quote_subst"`'
30363 hardcode_libdir_separator_CXX='`$ECHO "X$hardcode_libdir_separator_CXX" | $Xsed -e "$delay_single_quote_subst"`'
30364 hardcode_direct_CXX='`$ECHO "X$hardcode_direct_CXX" | $Xsed -e "$delay_single_quote_subst"`'
30365 hardcode_direct_absolute_CXX='`$ECHO "X$hardcode_direct_absolute_CXX" | $Xsed -e "$delay_single_quote_subst"`'
30366 hardcode_minus_L_CXX='`$ECHO "X$hardcode_minus_L_CXX" | $Xsed -e "$delay_single_quote_subst"`'
30367 hardcode_shlibpath_var_CXX='`$ECHO "X$hardcode_shlibpath_var_CXX" | $Xsed -e "$delay_single_quote_subst"`'
30368 hardcode_automatic_CXX='`$ECHO "X$hardcode_automatic_CXX" | $Xsed -e "$delay_single_quote_subst"`'
30369 inherit_rpath_CXX='`$ECHO "X$inherit_rpath_CXX" | $Xsed -e "$delay_single_quote_subst"`'
30370 link_all_deplibs_CXX='`$ECHO "X$link_all_deplibs_CXX" | $Xsed -e "$delay_single_quote_subst"`'
30371 fix_srcfile_path_CXX='`$ECHO "X$fix_srcfile_path_CXX" | $Xsed -e "$delay_single_quote_subst"`'
30372 always_export_symbols_CXX='`$ECHO "X$always_export_symbols_CXX" | $Xsed -e "$delay_single_quote_subst"`'
30373 export_symbols_cmds_CXX='`$ECHO "X$export_symbols_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
30374 exclude_expsyms_CXX='`$ECHO "X$exclude_expsyms_CXX" | $Xsed -e "$delay_single_quote_subst"`'
30375 include_expsyms_CXX='`$ECHO "X$include_expsyms_CXX" | $Xsed -e "$delay_single_quote_subst"`'
30376 prelink_cmds_CXX='`$ECHO "X$prelink_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
30377 file_list_spec_CXX='`$ECHO "X$file_list_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
30378 hardcode_action_CXX='`$ECHO "X$hardcode_action_CXX" | $Xsed -e "$delay_single_quote_subst"`'
30379 compiler_lib_search_dirs_CXX='`$ECHO "X$compiler_lib_search_dirs_CXX" | $Xsed -e "$delay_single_quote_subst"`'
30380 predep_objects_CXX='`$ECHO "X$predep_objects_CXX" | $Xsed -e "$delay_single_quote_subst"`'
30381 postdep_objects_CXX='`$ECHO "X$postdep_objects_CXX" | $Xsed -e "$delay_single_quote_subst"`'
30382 predeps_CXX='`$ECHO "X$predeps_CXX" | $Xsed -e "$delay_single_quote_subst"`'
30383 postdeps_CXX='`$ECHO "X$postdeps_CXX" | $Xsed -e "$delay_single_quote_subst"`'
30384 compiler_lib_search_path_CXX='`$ECHO "X$compiler_lib_search_path_CXX" | $Xsed -e "$delay_single_quote_subst"`'
30385
30386 LTCC='$LTCC'
30387 LTCFLAGS='$LTCFLAGS'
30388 compiler='$compiler_DEFAULT'
30389
30390 # Quote evaled strings.
30391 for var in SED \
30392 GREP \
30393 EGREP \
30394 FGREP \
30395 LD \
30396 NM \
30397 LN_S \
30398 lt_SP2NL \
30399 lt_NL2SP \
30400 reload_flag \
30401 OBJDUMP \
30402 deplibs_check_method \
30403 file_magic_cmd \
30404 AR \
30405 AR_FLAGS \
30406 STRIP \
30407 RANLIB \
30408 CC \
30409 CFLAGS \
30410 compiler \
30411 lt_cv_sys_global_symbol_pipe \
30412 lt_cv_sys_global_symbol_to_cdecl \
30413 lt_cv_sys_global_symbol_to_c_name_address \
30414 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
30415 SHELL \
30416 ECHO \
30417 lt_prog_compiler_no_builtin_flag \
30418 lt_prog_compiler_wl \
30419 lt_prog_compiler_pic \
30420 lt_prog_compiler_static \
30421 lt_cv_prog_compiler_c_o \
30422 need_locks \
30423 DSYMUTIL \
30424 NMEDIT \
30425 LIPO \
30426 OTOOL \
30427 OTOOL64 \
30428 shrext_cmds \
30429 export_dynamic_flag_spec \
30430 whole_archive_flag_spec \
30431 compiler_needs_object \
30432 with_gnu_ld \
30433 allow_undefined_flag \
30434 no_undefined_flag \
30435 hardcode_libdir_flag_spec \
30436 hardcode_libdir_flag_spec_ld \
30437 hardcode_libdir_separator \
30438 fix_srcfile_path \
30439 exclude_expsyms \
30440 include_expsyms \
30441 file_list_spec \
30442 variables_saved_for_relink \
30443 libname_spec \
30444 library_names_spec \
30445 soname_spec \
30446 finish_eval \
30447 old_striplib \
30448 striplib \
30449 compiler_lib_search_dirs \
30450 predep_objects \
30451 postdep_objects \
30452 predeps \
30453 postdeps \
30454 compiler_lib_search_path \
30455 LD_CXX \
30456 compiler_CXX \
30457 lt_prog_compiler_no_builtin_flag_CXX \
30458 lt_prog_compiler_wl_CXX \
30459 lt_prog_compiler_pic_CXX \
30460 lt_prog_compiler_static_CXX \
30461 lt_cv_prog_compiler_c_o_CXX \
30462 export_dynamic_flag_spec_CXX \
30463 whole_archive_flag_spec_CXX \
30464 compiler_needs_object_CXX \
30465 with_gnu_ld_CXX \
30466 allow_undefined_flag_CXX \
30467 no_undefined_flag_CXX \
30468 hardcode_libdir_flag_spec_CXX \
30469 hardcode_libdir_flag_spec_ld_CXX \
30470 hardcode_libdir_separator_CXX \
30471 fix_srcfile_path_CXX \
30472 exclude_expsyms_CXX \
30473 include_expsyms_CXX \
30474 file_list_spec_CXX \
30475 compiler_lib_search_dirs_CXX \
30476 predep_objects_CXX \
30477 postdep_objects_CXX \
30478 predeps_CXX \
30479 postdeps_CXX \
30480 compiler_lib_search_path_CXX; do
30481     case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
30482     *[\\\\\\\`\\"\\\$]*)
30483       eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
30484       ;;
30485     *)
30486       eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
30487       ;;
30488     esac
30489 done
30490
30491 # Double-quote double-evaled strings.
30492 for var in reload_cmds \
30493 old_postinstall_cmds \
30494 old_postuninstall_cmds \
30495 old_archive_cmds \
30496 extract_expsyms_cmds \
30497 old_archive_from_new_cmds \
30498 old_archive_from_expsyms_cmds \
30499 archive_cmds \
30500 archive_expsym_cmds \
30501 module_cmds \
30502 module_expsym_cmds \
30503 export_symbols_cmds \
30504 prelink_cmds \
30505 postinstall_cmds \
30506 postuninstall_cmds \
30507 finish_cmds \
30508 sys_lib_search_path_spec \
30509 sys_lib_dlsearch_path_spec \
30510 old_archive_cmds_CXX \
30511 old_archive_from_new_cmds_CXX \
30512 old_archive_from_expsyms_cmds_CXX \
30513 archive_cmds_CXX \
30514 archive_expsym_cmds_CXX \
30515 module_cmds_CXX \
30516 module_expsym_cmds_CXX \
30517 export_symbols_cmds_CXX \
30518 prelink_cmds_CXX; do
30519     case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
30520     *[\\\\\\\`\\"\\\$]*)
30521       eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
30522       ;;
30523     *)
30524       eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
30525       ;;
30526     esac
30527 done
30528
30529 # Fix-up fallback echo if it was mangled by the above quoting rules.
30530 case \$lt_ECHO in
30531 *'\\\$0 --fallback-echo"')  lt_ECHO=\`\$ECHO "X\$lt_ECHO" | \$Xsed -e 's/\\\\\\\\\\\\\\\$0 --fallback-echo"\$/\$0 --fallback-echo"/'\`
30532   ;;
30533 esac
30534
30535 ac_aux_dir='$ac_aux_dir'
30536 xsi_shell='$xsi_shell'
30537 lt_shell_append='$lt_shell_append'
30538
30539 # See if we are running on zsh, and set the options which allow our
30540 # commands through without removal of \ escapes INIT.
30541 if test -n "\${ZSH_VERSION+set}" ; then
30542    setopt NO_GLOB_SUBST
30543 fi
30544
30545
30546     PACKAGE='$PACKAGE'
30547     VERSION='$VERSION'
30548     TIMESTAMP='$TIMESTAMP'
30549     RM='$RM'
30550     ofile='$ofile'
30551
30552
30553
30554
30555
30556 # Capture the value of obsolete ALL_LINGUAS because we need it to compute
30557     # POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES, CATALOGS. But hide it
30558     # from automake.
30559     eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"'
30560     # Capture the value of LINGUAS because we need it to compute CATALOGS.
30561     LINGUAS="${LINGUAS-%UNSET%}"
30562
30563
30564 _ACEOF
30565
30566 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
30567
30568 # Handling of arguments.
30569 for ac_config_target in $ac_config_targets
30570 do
30571   case $ac_config_target in
30572     "src/config.h") CONFIG_HEADERS="$CONFIG_HEADERS src/config.h:autoconf/config.h.in" ;;
30573     "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
30574     "default-1") CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
30575     "autoconf/Make.common") CONFIG_FILES="$CONFIG_FILES autoconf/Make.common" ;;
30576     "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
30577     "manpages/Makefile") CONFIG_FILES="$CONFIG_FILES manpages/Makefile" ;;
30578     "scripts/btraceback") CONFIG_FILES="$CONFIG_FILES scripts/btraceback" ;;
30579     "scripts/bconsole") CONFIG_FILES="$CONFIG_FILES scripts/bconsole" ;;
30580     "scripts/bacula") CONFIG_FILES="$CONFIG_FILES scripts/bacula" ;;
30581     "scripts/bacula-ctl-dir") CONFIG_FILES="$CONFIG_FILES scripts/bacula-ctl-dir" ;;
30582     "scripts/bacula-ctl-fd") CONFIG_FILES="$CONFIG_FILES scripts/bacula-ctl-fd" ;;
30583     "scripts/bacula-ctl-sd") CONFIG_FILES="$CONFIG_FILES scripts/bacula-ctl-sd" ;;
30584     "scripts/devel_bacula") CONFIG_FILES="$CONFIG_FILES scripts/devel_bacula" ;;
30585     "scripts/Makefile") CONFIG_FILES="$CONFIG_FILES scripts/Makefile" ;;
30586     "scripts/logrotate") CONFIG_FILES="$CONFIG_FILES scripts/logrotate" ;;
30587     "scripts/bacula.desktop.gnome1") CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome1" ;;
30588     "scripts/bacula.desktop.gnome2") CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome2" ;;
30589     "scripts/bacula.desktop.gnome1.consolehelper") CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome1.consolehelper" ;;
30590     "scripts/bacula.desktop.gnome2.consolehelper") CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome2.consolehelper" ;;
30591     "scripts/bacula.desktop.gnome1.xsu") CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome1.xsu" ;;
30592     "scripts/bacula.desktop.gnome2.xsu") CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome2.xsu" ;;
30593     "scripts/bgnome-console.console_apps") CONFIG_FILES="$CONFIG_FILES scripts/bgnome-console.console_apps" ;;
30594     "scripts/mtx-changer") CONFIG_FILES="$CONFIG_FILES scripts/mtx-changer" ;;
30595     "scripts/disk-changer") CONFIG_FILES="$CONFIG_FILES scripts/disk-changer" ;;
30596     "scripts/dvd-handler") CONFIG_FILES="$CONFIG_FILES scripts/dvd-handler" ;;
30597     "scripts/dvd-simulator") CONFIG_FILES="$CONFIG_FILES scripts/dvd-simulator" ;;
30598     "scripts/bacula-tray-monitor.desktop") CONFIG_FILES="$CONFIG_FILES scripts/bacula-tray-monitor.desktop" ;;
30599     "scripts/logwatch/Makefile") CONFIG_FILES="$CONFIG_FILES scripts/logwatch/Makefile" ;;
30600     "scripts/logwatch/logfile.bacula.conf") CONFIG_FILES="$CONFIG_FILES scripts/logwatch/logfile.bacula.conf" ;;
30601     "scripts/wxconsole.console_apps") CONFIG_FILES="$CONFIG_FILES scripts/wxconsole.console_apps" ;;
30602     "scripts/wxconsole.desktop.consolehelper") CONFIG_FILES="$CONFIG_FILES scripts/wxconsole.desktop.consolehelper" ;;
30603     "scripts/wxconsole.desktop.xsu") CONFIG_FILES="$CONFIG_FILES scripts/wxconsole.desktop.xsu" ;;
30604     "scripts/bat.desktop") CONFIG_FILES="$CONFIG_FILES scripts/bat.desktop" ;;
30605     "scripts/bat.desktop.xsu") CONFIG_FILES="$CONFIG_FILES scripts/bat.desktop.xsu" ;;
30606     "scripts/bat.desktop.consolehelper") CONFIG_FILES="$CONFIG_FILES scripts/bat.desktop.consolehelper" ;;
30607     "scripts/bat.console_apps") CONFIG_FILES="$CONFIG_FILES scripts/bat.console_apps" ;;
30608     "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
30609     "src/host.h") CONFIG_FILES="$CONFIG_FILES src/host.h" ;;
30610     "src/console/Makefile") CONFIG_FILES="$CONFIG_FILES src/console/Makefile" ;;
30611     "src/console/bconsole.conf") CONFIG_FILES="$CONFIG_FILES src/console/bconsole.conf" ;;
30612     "src/qt-console/tray-monitor/tray-monitor.pro") CONFIG_FILES="$CONFIG_FILES src/qt-console/tray-monitor/tray-monitor.pro" ;;
30613     "src/qt-console/tray-monitor/tray-monitor.conf") CONFIG_FILES="$CONFIG_FILES src/qt-console/tray-monitor/tray-monitor.conf" ;;
30614     "src/qt-console/bat.conf") CONFIG_FILES="$CONFIG_FILES src/qt-console/bat.conf" ;;
30615     "src/qt-console/bat.pro") CONFIG_FILES="$CONFIG_FILES src/qt-console/bat.pro" ;;
30616     "src/qt-console/bat.pro.mingw32") CONFIG_FILES="$CONFIG_FILES src/qt-console/bat.pro.mingw32" ;;
30617     "src/qt-console/install_conf_file") CONFIG_FILES="$CONFIG_FILES src/qt-console/install_conf_file" ;;
30618     "src/wx-console/Makefile") CONFIG_FILES="$CONFIG_FILES src/wx-console/Makefile" ;;
30619     "src/wx-console/bwx-console.conf") CONFIG_FILES="$CONFIG_FILES src/wx-console/bwx-console.conf" ;;
30620     "src/tray-monitor/Makefile") CONFIG_FILES="$CONFIG_FILES src/tray-monitor/Makefile" ;;
30621     "src/tray-monitor/tray-monitor.conf") CONFIG_FILES="$CONFIG_FILES src/tray-monitor/tray-monitor.conf" ;;
30622     "src/dird/Makefile") CONFIG_FILES="$CONFIG_FILES src/dird/Makefile" ;;
30623     "src/dird/bacula-dir.conf") CONFIG_FILES="$CONFIG_FILES src/dird/bacula-dir.conf" ;;
30624     "src/lib/Makefile") CONFIG_FILES="$CONFIG_FILES src/lib/Makefile" ;;
30625     "src/stored/Makefile") CONFIG_FILES="$CONFIG_FILES src/stored/Makefile" ;;
30626     "src/stored/bacula-sd.conf") CONFIG_FILES="$CONFIG_FILES src/stored/bacula-sd.conf" ;;
30627     "src/filed/Makefile") CONFIG_FILES="$CONFIG_FILES src/filed/Makefile" ;;
30628     "src/filed/bacula-fd.conf") CONFIG_FILES="$CONFIG_FILES src/filed/bacula-fd.conf" ;;
30629     "src/cats/Makefile") CONFIG_FILES="$CONFIG_FILES src/cats/Makefile" ;;
30630     "src/cats/make_catalog_backup.pl") CONFIG_FILES="$CONFIG_FILES src/cats/make_catalog_backup.pl" ;;
30631     "src/cats/make_catalog_backup") CONFIG_FILES="$CONFIG_FILES src/cats/make_catalog_backup" ;;
30632     "src/cats/delete_catalog_backup") CONFIG_FILES="$CONFIG_FILES src/cats/delete_catalog_backup" ;;
30633     "src/cats/create_postgresql_database") CONFIG_FILES="$CONFIG_FILES src/cats/create_postgresql_database" ;;
30634     "src/cats/update_postgresql_tables") CONFIG_FILES="$CONFIG_FILES src/cats/update_postgresql_tables" ;;
30635     "src/cats/make_postgresql_tables") CONFIG_FILES="$CONFIG_FILES src/cats/make_postgresql_tables" ;;
30636     "src/cats/grant_postgresql_privileges") CONFIG_FILES="$CONFIG_FILES src/cats/grant_postgresql_privileges" ;;
30637     "src/cats/drop_postgresql_tables") CONFIG_FILES="$CONFIG_FILES src/cats/drop_postgresql_tables" ;;
30638     "src/cats/drop_postgresql_database") CONFIG_FILES="$CONFIG_FILES src/cats/drop_postgresql_database" ;;
30639     "src/cats/create_mysql_database") CONFIG_FILES="$CONFIG_FILES src/cats/create_mysql_database" ;;
30640     "src/cats/update_mysql_tables") CONFIG_FILES="$CONFIG_FILES src/cats/update_mysql_tables" ;;
30641     "src/cats/make_mysql_tables") CONFIG_FILES="$CONFIG_FILES src/cats/make_mysql_tables" ;;
30642     "src/cats/grant_mysql_privileges") CONFIG_FILES="$CONFIG_FILES src/cats/grant_mysql_privileges" ;;
30643     "src/cats/drop_mysql_tables") CONFIG_FILES="$CONFIG_FILES src/cats/drop_mysql_tables" ;;
30644     "src/cats/drop_mysql_database") CONFIG_FILES="$CONFIG_FILES src/cats/drop_mysql_database" ;;
30645     "src/cats/create_sqlite3_database") CONFIG_FILES="$CONFIG_FILES src/cats/create_sqlite3_database" ;;
30646     "src/cats/update_sqlite3_tables") CONFIG_FILES="$CONFIG_FILES src/cats/update_sqlite3_tables" ;;
30647     "src/cats/make_sqlite3_tables") CONFIG_FILES="$CONFIG_FILES src/cats/make_sqlite3_tables" ;;
30648     "src/cats/grant_sqlite3_privileges") CONFIG_FILES="$CONFIG_FILES src/cats/grant_sqlite3_privileges" ;;
30649     "src/cats/drop_sqlite3_tables") CONFIG_FILES="$CONFIG_FILES src/cats/drop_sqlite3_tables" ;;
30650     "src/cats/drop_sqlite3_database") CONFIG_FILES="$CONFIG_FILES src/cats/drop_sqlite3_database" ;;
30651     "src/cats/sqlite") CONFIG_FILES="$CONFIG_FILES src/cats/sqlite" ;;
30652     "src/cats/mysql") CONFIG_FILES="$CONFIG_FILES src/cats/mysql" ;;
30653     "src/cats/create_bacula_database") CONFIG_FILES="$CONFIG_FILES src/cats/create_bacula_database" ;;
30654     "src/cats/update_bacula_tables") CONFIG_FILES="$CONFIG_FILES src/cats/update_bacula_tables" ;;
30655     "src/cats/grant_bacula_privileges") CONFIG_FILES="$CONFIG_FILES src/cats/grant_bacula_privileges" ;;
30656     "src/cats/make_bacula_tables") CONFIG_FILES="$CONFIG_FILES src/cats/make_bacula_tables" ;;
30657     "src/cats/drop_bacula_tables") CONFIG_FILES="$CONFIG_FILES src/cats/drop_bacula_tables" ;;
30658     "src/cats/drop_bacula_database") CONFIG_FILES="$CONFIG_FILES src/cats/drop_bacula_database" ;;
30659     "src/findlib/Makefile") CONFIG_FILES="$CONFIG_FILES src/findlib/Makefile" ;;
30660     "src/tools/Makefile") CONFIG_FILES="$CONFIG_FILES src/tools/Makefile" ;;
30661     "src/plugins/fd/Makefile") CONFIG_FILES="$CONFIG_FILES src/plugins/fd/Makefile" ;;
30662     "src/plugins/sd/Makefile") CONFIG_FILES="$CONFIG_FILES src/plugins/sd/Makefile" ;;
30663     "src/plugins/dir/Makefile") CONFIG_FILES="$CONFIG_FILES src/plugins/dir/Makefile" ;;
30664     "src/win32/Makefile.inc") CONFIG_FILES="$CONFIG_FILES src/win32/Makefile.inc" ;;
30665     "po/Makefile.in") CONFIG_FILES="$CONFIG_FILES po/Makefile.in" ;;
30666     "updatedb/update_mysql_tables_9_to_10") CONFIG_FILES="$CONFIG_FILES updatedb/update_mysql_tables_9_to_10" ;;
30667     "updatedb/update_sqlite3_tables_9_to_10") CONFIG_FILES="$CONFIG_FILES updatedb/update_sqlite3_tables_9_to_10" ;;
30668     "updatedb/update_postgresql_tables_9_to_10") CONFIG_FILES="$CONFIG_FILES updatedb/update_postgresql_tables_9_to_10" ;;
30669     "updatedb/update_mysql_tables_10_to_11") CONFIG_FILES="$CONFIG_FILES updatedb/update_mysql_tables_10_to_11" ;;
30670     "updatedb/update_sqlite3_tables_10_to_11") CONFIG_FILES="$CONFIG_FILES updatedb/update_sqlite3_tables_10_to_11" ;;
30671     "updatedb/update_postgresql_tables_10_to_11") CONFIG_FILES="$CONFIG_FILES updatedb/update_postgresql_tables_10_to_11" ;;
30672     "updatedb/update_mysql_tables_11_to_12") CONFIG_FILES="$CONFIG_FILES updatedb/update_mysql_tables_11_to_12" ;;
30673     "updatedb/update_sqlite3_tables_11_to_12") CONFIG_FILES="$CONFIG_FILES updatedb/update_sqlite3_tables_11_to_12" ;;
30674     "updatedb/update_postgresql_tables_11_to_12") CONFIG_FILES="$CONFIG_FILES updatedb/update_postgresql_tables_11_to_12" ;;
30675     "examples/nagios/check_bacula/Makefile") CONFIG_FILES="$CONFIG_FILES examples/nagios/check_bacula/Makefile" ;;
30676     "$PFILES") CONFIG_FILES="$CONFIG_FILES $PFILES" ;;
30677     "default") CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
30678
30679   *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
30680   esac
30681 done
30682
30683
30684 # If the user did not use the arguments to specify the items to instantiate,
30685 # then the envvar interface is used.  Set only those that are not.
30686 # We use the long form for the default assignment because of an extremely
30687 # bizarre bug on SunOS 4.1.3.
30688 if $ac_need_defaults; then
30689   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
30690   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
30691   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
30692 fi
30693
30694 # Have a temporary directory for convenience.  Make it in the build tree
30695 # simply because there is no reason against having it here, and in addition,
30696 # creating and moving files from /tmp can sometimes cause problems.
30697 # Hook for its removal unless debugging.
30698 # Note that there is a small window in which the directory will not be cleaned:
30699 # after its creation but before its name has been assigned to `$tmp'.
30700 $debug ||
30701 {
30702   tmp=
30703   trap 'exit_status=$?
30704   { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
30705 ' 0
30706   trap 'as_fn_exit 1' 1 2 13 15
30707 }
30708 # Create a (secure) tmp directory for tmp files.
30709
30710 {
30711   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
30712   test -n "$tmp" && test -d "$tmp"
30713 }  ||
30714 {
30715   tmp=./conf$$-$RANDOM
30716   (umask 077 && mkdir "$tmp")
30717 } || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
30718
30719 # Set up the scripts for CONFIG_FILES section.
30720 # No need to generate them if there are no CONFIG_FILES.
30721 # This happens for instance with `./config.status config.h'.
30722 if test -n "$CONFIG_FILES"; then
30723
30724 if $AWK 'BEGIN { getline <"/dev/null" }' </dev/null 2>/dev/null; then
30725   ac_cs_awk_getline=:
30726   ac_cs_awk_pipe_init=
30727   ac_cs_awk_read_file='
30728       while ((getline aline < (F[key])) > 0)
30729         print(aline)
30730       close(F[key])'
30731   ac_cs_awk_pipe_fini=
30732 else
30733   ac_cs_awk_getline=false
30734   ac_cs_awk_pipe_init="print \"cat <<'|#_!!_#|' &&\""
30735   ac_cs_awk_read_file='
30736       print "|#_!!_#|"
30737       print "cat " F[key] " &&"
30738       '$ac_cs_awk_pipe_init
30739   # The final `:' finishes the AND list.
30740   ac_cs_awk_pipe_fini='END { print "|#_!!_#|"; print ":" }'
30741 fi
30742 ac_cr=`echo X | tr X '\015'`
30743 # On cygwin, bash can eat \r inside `` if the user requested igncr.
30744 # But we know of no other shell where ac_cr would be empty at this
30745 # point, so we can use a bashism as a fallback.
30746 if test "x$ac_cr" = x; then
30747   eval ac_cr=\$\'\\r\'
30748 fi
30749 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
30750 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
30751   ac_cs_awk_cr='\r'
30752 else
30753   ac_cs_awk_cr=$ac_cr
30754 fi
30755
30756 echo 'BEGIN {' >"$tmp/subs1.awk" &&
30757 _ACEOF
30758
30759 # Create commands to substitute file output variables.
30760 {
30761   echo "cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1" &&
30762   echo 'cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&' &&
30763   echo "$ac_subst_files" | sed 's/.*/F["&"]="$&"/' &&
30764   echo "_ACAWK" &&
30765   echo "_ACEOF"
30766 } >conf$$files.sh &&
30767 . ./conf$$files.sh ||
30768   as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
30769 rm -f conf$$files.sh
30770
30771 {
30772   echo "cat >conf$$subs.awk <<_ACEOF" &&
30773   echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
30774   echo "_ACEOF"
30775 } >conf$$subs.sh ||
30776   as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
30777 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
30778 ac_delim='%!_!# '
30779 for ac_last_try in false false false false false :; do
30780   . ./conf$$subs.sh ||
30781     as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
30782
30783   ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
30784   if test $ac_delim_n = $ac_delim_num; then
30785     break
30786   elif $ac_last_try; then
30787     as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
30788   else
30789     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
30790   fi
30791 done
30792 rm -f conf$$subs.sh
30793
30794 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
30795 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
30796 _ACEOF
30797 sed -n '
30798 h
30799 s/^/S["/; s/!.*/"]=/
30800 p
30801 g
30802 s/^[^!]*!//
30803 :repl
30804 t repl
30805 s/'"$ac_delim"'$//
30806 t delim
30807 :nl
30808 h
30809 s/\(.\{148\}\)..*/\1/
30810 t more1
30811 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
30812 p
30813 n
30814 b repl
30815 :more1
30816 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
30817 p
30818 g
30819 s/.\{148\}//
30820 t nl
30821 :delim
30822 h
30823 s/\(.\{148\}\)..*/\1/
30824 t more2
30825 s/["\\]/\\&/g; s/^/"/; s/$/"/
30826 p
30827 b
30828 :more2
30829 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
30830 p
30831 g
30832 s/.\{148\}//
30833 t delim
30834 ' <conf$$subs.awk | sed '
30835 /^[^""]/{
30836   N
30837   s/\n//
30838 }
30839 ' >>$CONFIG_STATUS || ac_write_fail=1
30840 rm -f conf$$subs.awk
30841 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
30842 _ACAWK
30843 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
30844   for (key in S) S_is_set[key] = 1
30845   FS = "\a"
30846   \$ac_cs_awk_pipe_init
30847 }
30848 {
30849   line = $ 0
30850   nfields = split(line, field, "@")
30851   substed = 0
30852   len = length(field[1])
30853   for (i = 2; i < nfields; i++) {
30854     key = field[i]
30855     keylen = length(key)
30856     if (S_is_set[key]) {
30857       value = S[key]
30858       line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
30859       len += length(value) + length(field[++i])
30860       substed = 1
30861     } else
30862       len += 1 + keylen
30863   }
30864   if (nfields == 3 && !substed) {
30865     key = field[2]
30866     if (F[key] != "" && line ~ /^[       ]*@.*@[         ]*$/) {
30867       \$ac_cs_awk_read_file
30868       next
30869     }
30870   }
30871   print line
30872 }
30873 \$ac_cs_awk_pipe_fini
30874 _ACAWK
30875 _ACEOF
30876 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
30877 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
30878   sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
30879 else
30880   cat
30881 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
30882   || as_fn_error "could not setup config files machinery" "$LINENO" 5
30883 _ACEOF
30884
30885 # VPATH may cause trouble with some makes, so we remove $(srcdir),
30886 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
30887 # trailing colons and then remove the whole line if VPATH becomes empty
30888 # (actually we leave an empty line to preserve line numbers).
30889 if test "x$srcdir" = x.; then
30890   ac_vpsub='/^[  ]*VPATH[        ]*=/{
30891 s/:*\$(srcdir):*/:/
30892 s/:*\${srcdir}:*/:/
30893 s/:*@srcdir@:*/:/
30894 s/^\([^=]*=[     ]*\):*/\1/
30895 s/:*$//
30896 s/^[^=]*=[       ]*$//
30897 }'
30898 fi
30899
30900 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
30901 fi # test -n "$CONFIG_FILES"
30902
30903 # Set up the scripts for CONFIG_HEADERS section.
30904 # No need to generate them if there are no CONFIG_HEADERS.
30905 # This happens for instance with `./config.status Makefile'.
30906 if test -n "$CONFIG_HEADERS"; then
30907 cat >"$tmp/defines.awk" <<\_ACAWK ||
30908 BEGIN {
30909 _ACEOF
30910
30911 # Transform confdefs.h into an awk script `defines.awk', embedded as
30912 # here-document in config.status, that substitutes the proper values into
30913 # config.h.in to produce config.h.
30914
30915 # Create a delimiter string that does not exist in confdefs.h, to ease
30916 # handling of long lines.
30917 ac_delim='%!_!# '
30918 for ac_last_try in false false :; do
30919   ac_t=`sed -n "/$ac_delim/p" confdefs.h`
30920   if test -z "$ac_t"; then
30921     break
30922   elif $ac_last_try; then
30923     as_fn_error "could not make $CONFIG_HEADERS" "$LINENO" 5
30924   else
30925     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
30926   fi
30927 done
30928
30929 # For the awk script, D is an array of macro values keyed by name,
30930 # likewise P contains macro parameters if any.  Preserve backslash
30931 # newline sequences.
30932
30933 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
30934 sed -n '
30935 s/.\{148\}/&'"$ac_delim"'/g
30936 t rset
30937 :rset
30938 s/^[     ]*#[    ]*define[       ][      ]*/ /
30939 t def
30940 d
30941 :def
30942 s/\\$//
30943 t bsnl
30944 s/["\\]/\\&/g
30945 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
30946 D["\1"]=" \3"/p
30947 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2"/p
30948 d
30949 :bsnl
30950 s/["\\]/\\&/g
30951 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
30952 D["\1"]=" \3\\\\\\n"\\/p
30953 t cont
30954 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
30955 t cont
30956 d
30957 :cont
30958 n
30959 s/.\{148\}/&'"$ac_delim"'/g
30960 t clear
30961 :clear
30962 s/\\$//
30963 t bsnlc
30964 s/["\\]/\\&/g; s/^/"/; s/$/"/p
30965 d
30966 :bsnlc
30967 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
30968 b cont
30969 ' <confdefs.h | sed '
30970 s/'"$ac_delim"'/"\\\
30971 "/g' >>$CONFIG_STATUS || ac_write_fail=1
30972
30973 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
30974   for (key in D) D_is_set[key] = 1
30975   FS = "\a"
30976 }
30977 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
30978   line = \$ 0
30979   split(line, arg, " ")
30980   if (arg[1] == "#") {
30981     defundef = arg[2]
30982     mac1 = arg[3]
30983   } else {
30984     defundef = substr(arg[1], 2)
30985     mac1 = arg[2]
30986   }
30987   split(mac1, mac2, "(") #)
30988   macro = mac2[1]
30989   prefix = substr(line, 1, index(line, defundef) - 1)
30990   if (D_is_set[macro]) {
30991     # Preserve the white space surrounding the "#".
30992     print prefix "define", macro P[macro] D[macro]
30993     next
30994   } else {
30995     # Replace #undef with comments.  This is necessary, for example,
30996     # in the case of _POSIX_SOURCE, which is predefined and required
30997     # on some systems where configure will not decide to define it.
30998     if (defundef == "undef") {
30999       print "/*", prefix defundef, macro, "*/"
31000       next
31001     }
31002   }
31003 }
31004 { print }
31005 _ACAWK
31006 _ACEOF
31007 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
31008   as_fn_error "could not setup config headers machinery" "$LINENO" 5
31009 fi # test -n "$CONFIG_HEADERS"
31010
31011
31012 eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
31013 shift
31014 for ac_tag
31015 do
31016   case $ac_tag in
31017   :[FHLC]) ac_mode=$ac_tag; continue;;
31018   esac
31019   case $ac_mode$ac_tag in
31020   :[FHL]*:*);;
31021   :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
31022   :[FH]-) ac_tag=-:-;;
31023   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
31024   esac
31025   ac_save_IFS=$IFS
31026   IFS=:
31027   set x $ac_tag
31028   IFS=$ac_save_IFS
31029   shift
31030   ac_file=$1
31031   shift
31032
31033   case $ac_mode in
31034   :L) ac_source=$1;;
31035   :[FH])
31036     ac_file_inputs=
31037     for ac_f
31038     do
31039       case $ac_f in
31040       -) ac_f="$tmp/stdin";;
31041       *) # Look for the file first in the build tree, then in the source tree
31042          # (if the path is not absolute).  The absolute path cannot be DOS-style,
31043          # because $ac_f cannot contain `:'.
31044          test -f "$ac_f" ||
31045            case $ac_f in
31046            [\\/$]*) false;;
31047            *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
31048            esac ||
31049            as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
31050       esac
31051       case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
31052       as_fn_append ac_file_inputs " '$ac_f'"
31053     done
31054
31055     # Let's still pretend it is `configure' which instantiates (i.e., don't
31056     # use $as_me), people would be surprised to read:
31057     #    /* config.h.  Generated by config.status.  */
31058     configure_input='Generated from '`
31059           $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
31060         `' by configure.'
31061     if test x"$ac_file" != x-; then
31062       configure_input="$ac_file.  $configure_input"
31063       { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
31064 $as_echo "$as_me: creating $ac_file" >&6;}
31065     fi
31066     # Neutralize special characters interpreted by sed in replacement strings.
31067     case $configure_input in #(
31068     *\&* | *\|* | *\\* )
31069        ac_sed_conf_input=`$as_echo "$configure_input" |
31070        sed 's/[\\\\&|]/\\\\&/g'`;; #(
31071     *) ac_sed_conf_input=$configure_input;;
31072     esac
31073
31074     case $ac_tag in
31075     *:-:* | *:-) cat >"$tmp/stdin" \
31076       || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
31077     esac
31078     ;;
31079   esac
31080
31081   ac_dir=`$as_dirname -- "$ac_file" ||
31082 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
31083          X"$ac_file" : 'X\(//\)[^/]' \| \
31084          X"$ac_file" : 'X\(//\)$' \| \
31085          X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
31086 $as_echo X"$ac_file" |
31087     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
31088             s//\1/
31089             q
31090           }
31091           /^X\(\/\/\)[^/].*/{
31092             s//\1/
31093             q
31094           }
31095           /^X\(\/\/\)$/{
31096             s//\1/
31097             q
31098           }
31099           /^X\(\/\).*/{
31100             s//\1/
31101             q
31102           }
31103           s/.*/./; q'`
31104   as_dir="$ac_dir"; as_fn_mkdir_p
31105   ac_builddir=.
31106
31107 case "$ac_dir" in
31108 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
31109 *)
31110   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
31111   # A ".." for each directory in $ac_dir_suffix.
31112   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
31113   case $ac_top_builddir_sub in
31114   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
31115   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
31116   esac ;;
31117 esac
31118 ac_abs_top_builddir=$ac_pwd
31119 ac_abs_builddir=$ac_pwd$ac_dir_suffix
31120 # for backward compatibility:
31121 ac_top_builddir=$ac_top_build_prefix
31122
31123 case $srcdir in
31124   .)  # We are building in place.
31125     ac_srcdir=.
31126     ac_top_srcdir=$ac_top_builddir_sub
31127     ac_abs_top_srcdir=$ac_pwd ;;
31128   [\\/]* | ?:[\\/]* )  # Absolute name.
31129     ac_srcdir=$srcdir$ac_dir_suffix;
31130     ac_top_srcdir=$srcdir
31131     ac_abs_top_srcdir=$srcdir ;;
31132   *) # Relative name.
31133     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
31134     ac_top_srcdir=$ac_top_build_prefix$srcdir
31135     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
31136 esac
31137 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
31138
31139
31140   case $ac_mode in
31141   :F)
31142   #
31143   # CONFIG_FILE
31144   #
31145
31146   case $INSTALL in
31147   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
31148   *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
31149   esac
31150 _ACEOF
31151
31152 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
31153 # If the template does not know about datarootdir, expand it.
31154 # FIXME: This hack should be removed a few years after 2.60.
31155 ac_datarootdir_hack=; ac_datarootdir_seen=
31156 ac_sed_dataroot='
31157 /datarootdir/ {
31158   p
31159   q
31160 }
31161 /@datadir@/p
31162 /@docdir@/p
31163 /@infodir@/p
31164 /@localedir@/p
31165 /@mandir@/p'
31166 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
31167 *datarootdir*) ac_datarootdir_seen=yes;;
31168 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
31169   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
31170 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
31171 _ACEOF
31172 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
31173   ac_datarootdir_hack='
31174   s&@datadir@&$datadir&g
31175   s&@docdir@&$docdir&g
31176   s&@infodir@&$infodir&g
31177   s&@localedir@&$localedir&g
31178   s&@mandir@&$mandir&g
31179   s&\\\${datarootdir}&$datarootdir&g' ;;
31180 esac
31181 _ACEOF
31182
31183 # Neutralize VPATH when `$srcdir' = `.'.
31184 # Shell code in configure.ac might set extrasub.
31185 # FIXME: do we really want to maintain this feature?
31186 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
31187 ac_sed_extra="$ac_vpsub
31188 $extrasub
31189 _ACEOF
31190 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
31191 :t
31192 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
31193 s|@configure_input@|$ac_sed_conf_input|;t t
31194 s&@top_builddir@&$ac_top_builddir_sub&;t t
31195 s&@top_build_prefix@&$ac_top_build_prefix&;t t
31196 s&@srcdir@&$ac_srcdir&;t t
31197 s&@abs_srcdir@&$ac_abs_srcdir&;t t
31198 s&@top_srcdir@&$ac_top_srcdir&;t t
31199 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
31200 s&@builddir@&$ac_builddir&;t t
31201 s&@abs_builddir@&$ac_abs_builddir&;t t
31202 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
31203 s&@INSTALL@&$ac_INSTALL&;t t
31204 $ac_datarootdir_hack
31205 "
31206 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" |
31207 if $ac_cs_awk_getline; then
31208   $AWK -f "$tmp/subs.awk"
31209 else
31210   $AWK -f "$tmp/subs.awk" | $SHELL
31211 fi >$tmp/out \
31212   || as_fn_error "could not create $ac_file" "$LINENO" 5
31213
31214 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
31215   { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
31216   { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
31217   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
31218 which seems to be undefined.  Please make sure it is defined." >&5
31219 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
31220 which seems to be undefined.  Please make sure it is defined." >&2;}
31221
31222   rm -f "$tmp/stdin"
31223   case $ac_file in
31224   -) cat "$tmp/out" && rm -f "$tmp/out";;
31225   *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
31226   esac \
31227   || as_fn_error "could not create $ac_file" "$LINENO" 5
31228  ;;
31229   :H)
31230   #
31231   # CONFIG_HEADER
31232   #
31233   if test x"$ac_file" != x-; then
31234     {
31235       $as_echo "/* $configure_input  */" \
31236       && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
31237     } >"$tmp/config.h" \
31238       || as_fn_error "could not create $ac_file" "$LINENO" 5
31239     if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
31240       { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
31241 $as_echo "$as_me: $ac_file is unchanged" >&6;}
31242     else
31243       rm -f "$ac_file"
31244       mv "$tmp/config.h" "$ac_file" \
31245         || as_fn_error "could not create $ac_file" "$LINENO" 5
31246     fi
31247   else
31248     $as_echo "/* $configure_input  */" \
31249       && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
31250       || as_fn_error "could not create -" "$LINENO" 5
31251   fi
31252  ;;
31253
31254   :C)  { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
31255 $as_echo "$as_me: executing $ac_file commands" >&6;}
31256  ;;
31257   esac
31258
31259
31260   case $ac_file$ac_mode in
31261     "libtool":C)
31262
31263     # See if we are running on zsh, and set the options which allow our
31264     # commands through without removal of \ escapes.
31265     if test -n "${ZSH_VERSION+set}" ; then
31266       setopt NO_GLOB_SUBST
31267     fi
31268
31269     cfgfile="${ofile}T"
31270     trap "$RM \"$cfgfile\"; exit 1" 1 2 15
31271     $RM "$cfgfile"
31272
31273     cat <<_LT_EOF >> "$cfgfile"
31274 #! $SHELL
31275
31276 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
31277 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
31278 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
31279 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
31280 #
31281 #   Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
31282 #                 2006, 2007, 2008 Free Software Foundation, Inc.
31283 #   Written by Gordon Matzigkeit, 1996
31284 #
31285 #   This file is part of GNU Libtool.
31286 #
31287 # GNU Libtool is free software; you can redistribute it and/or
31288 # modify it under the terms of the GNU General Public License as
31289 # published by the Free Software Foundation; either version 2 of
31290 # the License, or (at your option) any later version.
31291 #
31292 # As a special exception to the GNU General Public License,
31293 # if you distribute this file as part of a program or library that
31294 # is built using GNU Libtool, you may include this file under the
31295 # same distribution terms that you use for the rest of that program.
31296 #
31297 # GNU Libtool is distributed in the hope that it will be useful,
31298 # but WITHOUT ANY WARRANTY; without even the implied warranty of
31299 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
31300 # GNU General Public License for more details.
31301 #
31302 # You should have received a copy of the GNU General Public License
31303 # along with GNU Libtool; see the file COPYING.  If not, a copy
31304 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
31305 # obtained by writing to the Free Software Foundation, Inc.,
31306 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
31307
31308
31309 # The names of the tagged configurations supported by this script.
31310 available_tags="CXX "
31311
31312 # ### BEGIN LIBTOOL CONFIG
31313
31314 # Which release of libtool.m4 was used?
31315 macro_version=$macro_version
31316 macro_revision=$macro_revision
31317
31318 # Whether or not to build shared libraries.
31319 build_libtool_libs=$enable_shared
31320
31321 # Whether or not to build static libraries.
31322 build_old_libs=$enable_static
31323
31324 # What type of objects to build.
31325 pic_mode=$pic_mode
31326
31327 # Whether or not to optimize for fast installation.
31328 fast_install=$enable_fast_install
31329
31330 # The host system.
31331 host_alias=$host_alias
31332 host=$host
31333 host_os=$host_os
31334
31335 # The build system.
31336 build_alias=$build_alias
31337 build=$build
31338 build_os=$build_os
31339
31340 # A sed program that does not truncate output.
31341 SED=$lt_SED
31342
31343 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
31344 Xsed="\$SED -e 1s/^X//"
31345
31346 # A grep program that handles long lines.
31347 GREP=$lt_GREP
31348
31349 # An ERE matcher.
31350 EGREP=$lt_EGREP
31351
31352 # A literal string matcher.
31353 FGREP=$lt_FGREP
31354
31355 # A BSD- or MS-compatible name lister.
31356 NM=$lt_NM
31357
31358 # Whether we need soft or hard links.
31359 LN_S=$lt_LN_S
31360
31361 # What is the maximum length of a command?
31362 max_cmd_len=$max_cmd_len
31363
31364 # Object file suffix (normally "o").
31365 objext=$ac_objext
31366
31367 # Executable file suffix (normally "").
31368 exeext=$exeext
31369
31370 # whether the shell understands "unset".
31371 lt_unset=$lt_unset
31372
31373 # turn spaces into newlines.
31374 SP2NL=$lt_lt_SP2NL
31375
31376 # turn newlines into spaces.
31377 NL2SP=$lt_lt_NL2SP
31378
31379 # How to create reloadable object files.
31380 reload_flag=$lt_reload_flag
31381 reload_cmds=$lt_reload_cmds
31382
31383 # An object symbol dumper.
31384 OBJDUMP=$lt_OBJDUMP
31385
31386 # Method to check whether dependent libraries are shared objects.
31387 deplibs_check_method=$lt_deplibs_check_method
31388
31389 # Command to use when deplibs_check_method == "file_magic".
31390 file_magic_cmd=$lt_file_magic_cmd
31391
31392 # The archiver.
31393 AR=$lt_AR
31394 AR_FLAGS=$lt_AR_FLAGS
31395
31396 # A symbol stripping program.
31397 STRIP=$lt_STRIP
31398
31399 # Commands used to install an old-style archive.
31400 RANLIB=$lt_RANLIB
31401 old_postinstall_cmds=$lt_old_postinstall_cmds
31402 old_postuninstall_cmds=$lt_old_postuninstall_cmds
31403
31404 # A C compiler.
31405 LTCC=$lt_CC
31406
31407 # LTCC compiler flags.
31408 LTCFLAGS=$lt_CFLAGS
31409
31410 # Take the output of nm and produce a listing of raw symbols and C names.
31411 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
31412
31413 # Transform the output of nm in a proper C declaration.
31414 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
31415
31416 # Transform the output of nm in a C name address pair.
31417 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
31418
31419 # Transform the output of nm in a C name address pair when lib prefix is needed.
31420 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
31421
31422 # The name of the directory that contains temporary libtool files.
31423 objdir=$objdir
31424
31425 # Shell to use when invoking shell scripts.
31426 SHELL=$lt_SHELL
31427
31428 # An echo program that does not interpret backslashes.
31429 ECHO=$lt_ECHO
31430
31431 # Used to examine libraries when file_magic_cmd begins with "file".
31432 MAGIC_CMD=$MAGIC_CMD
31433
31434 # Must we lock files when doing compilation?
31435 need_locks=$lt_need_locks
31436
31437 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
31438 DSYMUTIL=$lt_DSYMUTIL
31439
31440 # Tool to change global to local symbols on Mac OS X.
31441 NMEDIT=$lt_NMEDIT
31442
31443 # Tool to manipulate fat objects and archives on Mac OS X.
31444 LIPO=$lt_LIPO
31445
31446 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
31447 OTOOL=$lt_OTOOL
31448
31449 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
31450 OTOOL64=$lt_OTOOL64
31451
31452 # Old archive suffix (normally "a").
31453 libext=$libext
31454
31455 # Shared library suffix (normally ".so").
31456 shrext_cmds=$lt_shrext_cmds
31457
31458 # The commands to extract the exported symbol list from a shared archive.
31459 extract_expsyms_cmds=$lt_extract_expsyms_cmds
31460
31461 # Variables whose values should be saved in libtool wrapper scripts and
31462 # restored at link time.
31463 variables_saved_for_relink=$lt_variables_saved_for_relink
31464
31465 # Do we need the "lib" prefix for modules?
31466 need_lib_prefix=$need_lib_prefix
31467
31468 # Do we need a version for libraries?
31469 need_version=$need_version
31470
31471 # Library versioning type.
31472 version_type=$version_type
31473
31474 # Shared library runtime path variable.
31475 runpath_var=$runpath_var
31476
31477 # Shared library path variable.
31478 shlibpath_var=$shlibpath_var
31479
31480 # Is shlibpath searched before the hard-coded library search path?
31481 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
31482
31483 # Format of library name prefix.
31484 libname_spec=$lt_libname_spec
31485
31486 # List of archive names.  First name is the real one, the rest are links.
31487 # The last name is the one that the linker finds with -lNAME
31488 library_names_spec=$lt_library_names_spec
31489
31490 # The coded name of the library, if different from the real name.
31491 soname_spec=$lt_soname_spec
31492
31493 # Command to use after installation of a shared archive.
31494 postinstall_cmds=$lt_postinstall_cmds
31495
31496 # Command to use after uninstallation of a shared archive.
31497 postuninstall_cmds=$lt_postuninstall_cmds
31498
31499 # Commands used to finish a libtool library installation in a directory.
31500 finish_cmds=$lt_finish_cmds
31501
31502 # As "finish_cmds", except a single script fragment to be evaled but
31503 # not shown.
31504 finish_eval=$lt_finish_eval
31505
31506 # Whether we should hardcode library paths into libraries.
31507 hardcode_into_libs=$hardcode_into_libs
31508
31509 # Compile-time system search path for libraries.
31510 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
31511
31512 # Run-time system search path for libraries.
31513 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
31514
31515 # Whether dlopen is supported.
31516 dlopen_support=$enable_dlopen
31517
31518 # Whether dlopen of programs is supported.
31519 dlopen_self=$enable_dlopen_self
31520
31521 # Whether dlopen of statically linked programs is supported.
31522 dlopen_self_static=$enable_dlopen_self_static
31523
31524 # Commands to strip libraries.
31525 old_striplib=$lt_old_striplib
31526 striplib=$lt_striplib
31527
31528
31529 # The linker used to build libraries.
31530 LD=$lt_LD
31531
31532 # Commands used to build an old-style archive.
31533 old_archive_cmds=$lt_old_archive_cmds
31534
31535 # A language specific compiler.
31536 CC=$lt_compiler
31537
31538 # Is the compiler the GNU compiler?
31539 with_gcc=$GCC
31540
31541 # Compiler flag to turn off builtin functions.
31542 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
31543
31544 # How to pass a linker flag through the compiler.
31545 wl=$lt_lt_prog_compiler_wl
31546
31547 # Additional compiler flags for building library objects.
31548 pic_flag=$lt_lt_prog_compiler_pic
31549
31550 # Compiler flag to prevent dynamic linking.
31551 link_static_flag=$lt_lt_prog_compiler_static
31552
31553 # Does compiler simultaneously support -c and -o options?
31554 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
31555
31556 # Whether or not to add -lc for building shared libraries.
31557 build_libtool_need_lc=$archive_cmds_need_lc
31558
31559 # Whether or not to disallow shared libs when runtime libs are static.
31560 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
31561
31562 # Compiler flag to allow reflexive dlopens.
31563 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
31564
31565 # Compiler flag to generate shared objects directly from archives.
31566 whole_archive_flag_spec=$lt_whole_archive_flag_spec
31567
31568 # Whether the compiler copes with passing no objects directly.
31569 compiler_needs_object=$lt_compiler_needs_object
31570
31571 # Create an old-style archive from a shared archive.
31572 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
31573
31574 # Create a temporary old-style archive to link instead of a shared archive.
31575 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
31576
31577 # Commands used to build a shared archive.
31578 archive_cmds=$lt_archive_cmds
31579 archive_expsym_cmds=$lt_archive_expsym_cmds
31580
31581 # Commands used to build a loadable module if different from building
31582 # a shared archive.
31583 module_cmds=$lt_module_cmds
31584 module_expsym_cmds=$lt_module_expsym_cmds
31585
31586 # Whether we are building with GNU ld or not.
31587 with_gnu_ld=$lt_with_gnu_ld
31588
31589 # Flag that allows shared libraries with undefined symbols to be built.
31590 allow_undefined_flag=$lt_allow_undefined_flag
31591
31592 # Flag that enforces no undefined symbols.
31593 no_undefined_flag=$lt_no_undefined_flag
31594
31595 # Flag to hardcode \$libdir into a binary during linking.
31596 # This must work even if \$libdir does not exist
31597 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
31598
31599 # If ld is used when linking, flag to hardcode \$libdir into a binary
31600 # during linking.  This must work even if \$libdir does not exist.
31601 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
31602
31603 # Whether we need a single "-rpath" flag with a separated argument.
31604 hardcode_libdir_separator=$lt_hardcode_libdir_separator
31605
31606 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
31607 # DIR into the resulting binary.
31608 hardcode_direct=$hardcode_direct
31609
31610 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
31611 # DIR into the resulting binary and the resulting library dependency is
31612 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
31613 # library is relocated.
31614 hardcode_direct_absolute=$hardcode_direct_absolute
31615
31616 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
31617 # into the resulting binary.
31618 hardcode_minus_L=$hardcode_minus_L
31619
31620 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
31621 # into the resulting binary.
31622 hardcode_shlibpath_var=$hardcode_shlibpath_var
31623
31624 # Set to "yes" if building a shared library automatically hardcodes DIR
31625 # into the library and all subsequent libraries and executables linked
31626 # against it.
31627 hardcode_automatic=$hardcode_automatic
31628
31629 # Set to yes if linker adds runtime paths of dependent libraries
31630 # to runtime path list.
31631 inherit_rpath=$inherit_rpath
31632
31633 # Whether libtool must link a program against all its dependency libraries.
31634 link_all_deplibs=$link_all_deplibs
31635
31636 # Fix the shell variable \$srcfile for the compiler.
31637 fix_srcfile_path=$lt_fix_srcfile_path
31638
31639 # Set to "yes" if exported symbols are required.
31640 always_export_symbols=$always_export_symbols
31641
31642 # The commands to list exported symbols.
31643 export_symbols_cmds=$lt_export_symbols_cmds
31644
31645 # Symbols that should not be listed in the preloaded symbols.
31646 exclude_expsyms=$lt_exclude_expsyms
31647
31648 # Symbols that must always be exported.
31649 include_expsyms=$lt_include_expsyms
31650
31651 # Commands necessary for linking programs (against libraries) with templates.
31652 prelink_cmds=$lt_prelink_cmds
31653
31654 # Specify filename containing input files.
31655 file_list_spec=$lt_file_list_spec
31656
31657 # How to hardcode a shared library path into an executable.
31658 hardcode_action=$hardcode_action
31659
31660 # The directories searched by this compiler when creating a shared library.
31661 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
31662
31663 # Dependencies to place before and after the objects being linked to
31664 # create a shared library.
31665 predep_objects=$lt_predep_objects
31666 postdep_objects=$lt_postdep_objects
31667 predeps=$lt_predeps
31668 postdeps=$lt_postdeps
31669
31670 # The library search path used internally by the compiler when linking
31671 # a shared library.
31672 compiler_lib_search_path=$lt_compiler_lib_search_path
31673
31674 # ### END LIBTOOL CONFIG
31675
31676 _LT_EOF
31677
31678   case $host_os in
31679   aix3*)
31680     cat <<\_LT_EOF >> "$cfgfile"
31681 # AIX sometimes has problems with the GCC collect2 program.  For some
31682 # reason, if we set the COLLECT_NAMES environment variable, the problems
31683 # vanish in a puff of smoke.
31684 if test "X${COLLECT_NAMES+set}" != Xset; then
31685   COLLECT_NAMES=
31686   export COLLECT_NAMES
31687 fi
31688 _LT_EOF
31689     ;;
31690   esac
31691
31692
31693 ltmain="$ac_aux_dir/ltmain.sh"
31694
31695
31696   # We use sed instead of cat because bash on DJGPP gets confused if
31697   # if finds mixed CR/LF and LF-only lines.  Since sed operates in
31698   # text mode, it properly converts lines to CR/LF.  This bash problem
31699   # is reportedly fixed, but why not run on old versions too?
31700   sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
31701     || (rm -f "$cfgfile"; exit 1)
31702
31703   case $xsi_shell in
31704   yes)
31705     cat << \_LT_EOF >> "$cfgfile"
31706
31707 # func_dirname file append nondir_replacement
31708 # Compute the dirname of FILE.  If nonempty, add APPEND to the result,
31709 # otherwise set result to NONDIR_REPLACEMENT.
31710 func_dirname ()
31711 {
31712   case ${1} in
31713     */*) func_dirname_result="${1%/*}${2}" ;;
31714     *  ) func_dirname_result="${3}" ;;
31715   esac
31716 }
31717
31718 # func_basename file
31719 func_basename ()
31720 {
31721   func_basename_result="${1##*/}"
31722 }
31723
31724 # func_dirname_and_basename file append nondir_replacement
31725 # perform func_basename and func_dirname in a single function
31726 # call:
31727 #   dirname:  Compute the dirname of FILE.  If nonempty,
31728 #             add APPEND to the result, otherwise set result
31729 #             to NONDIR_REPLACEMENT.
31730 #             value returned in "$func_dirname_result"
31731 #   basename: Compute filename of FILE.
31732 #             value retuned in "$func_basename_result"
31733 # Implementation must be kept synchronized with func_dirname
31734 # and func_basename. For efficiency, we do not delegate to
31735 # those functions but instead duplicate the functionality here.
31736 func_dirname_and_basename ()
31737 {
31738   case ${1} in
31739     */*) func_dirname_result="${1%/*}${2}" ;;
31740     *  ) func_dirname_result="${3}" ;;
31741   esac
31742   func_basename_result="${1##*/}"
31743 }
31744
31745 # func_stripname prefix suffix name
31746 # strip PREFIX and SUFFIX off of NAME.
31747 # PREFIX and SUFFIX must not contain globbing or regex special
31748 # characters, hashes, percent signs, but SUFFIX may contain a leading
31749 # dot (in which case that matches only a dot).
31750 func_stripname ()
31751 {
31752   # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
31753   # positional parameters, so assign one to ordinary parameter first.
31754   func_stripname_result=${3}
31755   func_stripname_result=${func_stripname_result#"${1}"}
31756   func_stripname_result=${func_stripname_result%"${2}"}
31757 }
31758
31759 # func_opt_split
31760 func_opt_split ()
31761 {
31762   func_opt_split_opt=${1%%=*}
31763   func_opt_split_arg=${1#*=}
31764 }
31765
31766 # func_lo2o object
31767 func_lo2o ()
31768 {
31769   case ${1} in
31770     *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
31771     *)    func_lo2o_result=${1} ;;
31772   esac
31773 }
31774
31775 # func_xform libobj-or-source
31776 func_xform ()
31777 {
31778   func_xform_result=${1%.*}.lo
31779 }
31780
31781 # func_arith arithmetic-term...
31782 func_arith ()
31783 {
31784   func_arith_result=$(( $* ))
31785 }
31786
31787 # func_len string
31788 # STRING may not start with a hyphen.
31789 func_len ()
31790 {
31791   func_len_result=${#1}
31792 }
31793
31794 _LT_EOF
31795     ;;
31796   *) # Bourne compatible functions.
31797     cat << \_LT_EOF >> "$cfgfile"
31798
31799 # func_dirname file append nondir_replacement
31800 # Compute the dirname of FILE.  If nonempty, add APPEND to the result,
31801 # otherwise set result to NONDIR_REPLACEMENT.
31802 func_dirname ()
31803 {
31804   # Extract subdirectory from the argument.
31805   func_dirname_result=`$ECHO "X${1}" | $Xsed -e "$dirname"`
31806   if test "X$func_dirname_result" = "X${1}"; then
31807     func_dirname_result="${3}"
31808   else
31809     func_dirname_result="$func_dirname_result${2}"
31810   fi
31811 }
31812
31813 # func_basename file
31814 func_basename ()
31815 {
31816   func_basename_result=`$ECHO "X${1}" | $Xsed -e "$basename"`
31817 }
31818
31819
31820 # func_stripname prefix suffix name
31821 # strip PREFIX and SUFFIX off of NAME.
31822 # PREFIX and SUFFIX must not contain globbing or regex special
31823 # characters, hashes, percent signs, but SUFFIX may contain a leading
31824 # dot (in which case that matches only a dot).
31825 # func_strip_suffix prefix name
31826 func_stripname ()
31827 {
31828   case ${2} in
31829     .*) func_stripname_result=`$ECHO "X${3}" \
31830            | $Xsed -e "s%^${1}%%" -e "s%\\\\${2}\$%%"`;;
31831     *)  func_stripname_result=`$ECHO "X${3}" \
31832            | $Xsed -e "s%^${1}%%" -e "s%${2}\$%%"`;;
31833   esac
31834 }
31835
31836 # sed scripts:
31837 my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
31838 my_sed_long_arg='1s/^-[^=]*=//'
31839
31840 # func_opt_split
31841 func_opt_split ()
31842 {
31843   func_opt_split_opt=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_opt"`
31844   func_opt_split_arg=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_arg"`
31845 }
31846
31847 # func_lo2o object
31848 func_lo2o ()
31849 {
31850   func_lo2o_result=`$ECHO "X${1}" | $Xsed -e "$lo2o"`
31851 }
31852
31853 # func_xform libobj-or-source
31854 func_xform ()
31855 {
31856   func_xform_result=`$ECHO "X${1}" | $Xsed -e 's/\.[^.]*$/.lo/'`
31857 }
31858
31859 # func_arith arithmetic-term...
31860 func_arith ()
31861 {
31862   func_arith_result=`expr "$@"`
31863 }
31864
31865 # func_len string
31866 # STRING may not start with a hyphen.
31867 func_len ()
31868 {
31869   func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
31870 }
31871
31872 _LT_EOF
31873 esac
31874
31875 case $lt_shell_append in
31876   yes)
31877     cat << \_LT_EOF >> "$cfgfile"
31878
31879 # func_append var value
31880 # Append VALUE to the end of shell variable VAR.
31881 func_append ()
31882 {
31883   eval "$1+=\$2"
31884 }
31885 _LT_EOF
31886     ;;
31887   *)
31888     cat << \_LT_EOF >> "$cfgfile"
31889
31890 # func_append var value
31891 # Append VALUE to the end of shell variable VAR.
31892 func_append ()
31893 {
31894   eval "$1=\$$1\$2"
31895 }
31896
31897 _LT_EOF
31898     ;;
31899   esac
31900
31901
31902   sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
31903     || (rm -f "$cfgfile"; exit 1)
31904
31905   mv -f "$cfgfile" "$ofile" ||
31906     (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
31907   chmod +x "$ofile"
31908
31909
31910     cat <<_LT_EOF >> "$ofile"
31911
31912 # ### BEGIN LIBTOOL TAG CONFIG: CXX
31913
31914 # The linker used to build libraries.
31915 LD=$lt_LD_CXX
31916
31917 # Commands used to build an old-style archive.
31918 old_archive_cmds=$lt_old_archive_cmds_CXX
31919
31920 # A language specific compiler.
31921 CC=$lt_compiler_CXX
31922
31923 # Is the compiler the GNU compiler?
31924 with_gcc=$GCC_CXX
31925
31926 # Compiler flag to turn off builtin functions.
31927 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
31928
31929 # How to pass a linker flag through the compiler.
31930 wl=$lt_lt_prog_compiler_wl_CXX
31931
31932 # Additional compiler flags for building library objects.
31933 pic_flag=$lt_lt_prog_compiler_pic_CXX
31934
31935 # Compiler flag to prevent dynamic linking.
31936 link_static_flag=$lt_lt_prog_compiler_static_CXX
31937
31938 # Does compiler simultaneously support -c and -o options?
31939 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
31940
31941 # Whether or not to add -lc for building shared libraries.
31942 build_libtool_need_lc=$archive_cmds_need_lc_CXX
31943
31944 # Whether or not to disallow shared libs when runtime libs are static.
31945 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
31946
31947 # Compiler flag to allow reflexive dlopens.
31948 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
31949
31950 # Compiler flag to generate shared objects directly from archives.
31951 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
31952
31953 # Whether the compiler copes with passing no objects directly.
31954 compiler_needs_object=$lt_compiler_needs_object_CXX
31955
31956 # Create an old-style archive from a shared archive.
31957 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
31958
31959 # Create a temporary old-style archive to link instead of a shared archive.
31960 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
31961
31962 # Commands used to build a shared archive.
31963 archive_cmds=$lt_archive_cmds_CXX
31964 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
31965
31966 # Commands used to build a loadable module if different from building
31967 # a shared archive.
31968 module_cmds=$lt_module_cmds_CXX
31969 module_expsym_cmds=$lt_module_expsym_cmds_CXX
31970
31971 # Whether we are building with GNU ld or not.
31972 with_gnu_ld=$lt_with_gnu_ld_CXX
31973
31974 # Flag that allows shared libraries with undefined symbols to be built.
31975 allow_undefined_flag=$lt_allow_undefined_flag_CXX
31976
31977 # Flag that enforces no undefined symbols.
31978 no_undefined_flag=$lt_no_undefined_flag_CXX
31979
31980 # Flag to hardcode \$libdir into a binary during linking.
31981 # This must work even if \$libdir does not exist
31982 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
31983
31984 # If ld is used when linking, flag to hardcode \$libdir into a binary
31985 # during linking.  This must work even if \$libdir does not exist.
31986 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
31987
31988 # Whether we need a single "-rpath" flag with a separated argument.
31989 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
31990
31991 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
31992 # DIR into the resulting binary.
31993 hardcode_direct=$hardcode_direct_CXX
31994
31995 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
31996 # DIR into the resulting binary and the resulting library dependency is
31997 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
31998 # library is relocated.
31999 hardcode_direct_absolute=$hardcode_direct_absolute_CXX
32000
32001 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
32002 # into the resulting binary.
32003 hardcode_minus_L=$hardcode_minus_L_CXX
32004
32005 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
32006 # into the resulting binary.
32007 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
32008
32009 # Set to "yes" if building a shared library automatically hardcodes DIR
32010 # into the library and all subsequent libraries and executables linked
32011 # against it.
32012 hardcode_automatic=$hardcode_automatic_CXX
32013
32014 # Set to yes if linker adds runtime paths of dependent libraries
32015 # to runtime path list.
32016 inherit_rpath=$inherit_rpath_CXX
32017
32018 # Whether libtool must link a program against all its dependency libraries.
32019 link_all_deplibs=$link_all_deplibs_CXX
32020
32021 # Fix the shell variable \$srcfile for the compiler.
32022 fix_srcfile_path=$lt_fix_srcfile_path_CXX
32023
32024 # Set to "yes" if exported symbols are required.
32025 always_export_symbols=$always_export_symbols_CXX
32026
32027 # The commands to list exported symbols.
32028 export_symbols_cmds=$lt_export_symbols_cmds_CXX
32029
32030 # Symbols that should not be listed in the preloaded symbols.
32031 exclude_expsyms=$lt_exclude_expsyms_CXX
32032
32033 # Symbols that must always be exported.
32034 include_expsyms=$lt_include_expsyms_CXX
32035
32036 # Commands necessary for linking programs (against libraries) with templates.
32037 prelink_cmds=$lt_prelink_cmds_CXX
32038
32039 # Specify filename containing input files.
32040 file_list_spec=$lt_file_list_spec_CXX
32041
32042 # How to hardcode a shared library path into an executable.
32043 hardcode_action=$hardcode_action_CXX
32044
32045 # The directories searched by this compiler when creating a shared library.
32046 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
32047
32048 # Dependencies to place before and after the objects being linked to
32049 # create a shared library.
32050 predep_objects=$lt_predep_objects_CXX
32051 postdep_objects=$lt_postdep_objects_CXX
32052 predeps=$lt_predeps_CXX
32053 postdeps=$lt_postdeps_CXX
32054
32055 # The library search path used internally by the compiler when linking
32056 # a shared library.
32057 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
32058
32059 # ### END LIBTOOL TAG CONFIG: CXX
32060 _LT_EOF
32061
32062  ;;
32063     "default-1":C)
32064     for ac_file in $CONFIG_FILES; do
32065       # Support "outfile[:infile[:infile...]]"
32066       case "$ac_file" in
32067         *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
32068       esac
32069       # PO directories have a Makefile.in generated from Makefile.in.in.
32070       case "$ac_file" in */Makefile.in)
32071         # Adjust a relative srcdir.
32072         ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
32073         ac_dir_suffix="/`echo "$ac_dir"|sed 's%^\./%%'`"
32074         ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
32075         # In autoconf-2.13 it is called $ac_given_srcdir.
32076         # In autoconf-2.50 it is called $srcdir.
32077         test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
32078         case "$ac_given_srcdir" in
32079           .)  top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
32080           /*) top_srcdir="$ac_given_srcdir" ;;
32081           *)  top_srcdir="$ac_dots$ac_given_srcdir" ;;
32082         esac
32083         # Treat a directory as a PO directory if and only if it has a
32084         # POTFILES.in file. This allows packages to have multiple PO
32085         # directories under different names or in different locations.
32086         if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
32087           rm -f "$ac_dir/POTFILES"
32088           test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
32089           cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[   ]*\$/d" -e "s,.*,     $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES"
32090           POMAKEFILEDEPS="POTFILES.in"
32091           # ALL_LINGUAS, POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES depend
32092           # on $ac_dir but don't depend on user-specified configuration
32093           # parameters.
32094           if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
32095             # The LINGUAS file contains the set of available languages.
32096             if test -n "$OBSOLETE_ALL_LINGUAS"; then
32097               test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete"
32098             fi
32099             ALL_LINGUAS_=`sed -e "/^#/d" -e "s/#.*//" "$ac_given_srcdir/$ac_dir/LINGUAS"`
32100             # Hide the ALL_LINGUAS assigment from automake.
32101             eval 'ALL_LINGUAS''=$ALL_LINGUAS_'
32102             POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS"
32103           else
32104             # The set of available languages was given in configure.in.
32105             eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS'
32106           fi
32107           # Compute POFILES
32108           # as      $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).po)
32109           # Compute UPDATEPOFILES
32110           # as      $(foreach lang, $(ALL_LINGUAS), $(lang).po-update)
32111           # Compute DUMMYPOFILES
32112           # as      $(foreach lang, $(ALL_LINGUAS), $(lang).nop)
32113           # Compute GMOFILES
32114           # as      $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).gmo)
32115           case "$ac_given_srcdir" in
32116             .) srcdirpre= ;;
32117             *) srcdirpre='$(srcdir)/' ;;
32118           esac
32119           POFILES=
32120           UPDATEPOFILES=
32121           DUMMYPOFILES=
32122           GMOFILES=
32123           for lang in $ALL_LINGUAS; do
32124             POFILES="$POFILES $srcdirpre$lang.po"
32125             UPDATEPOFILES="$UPDATEPOFILES $lang.po-update"
32126             DUMMYPOFILES="$DUMMYPOFILES $lang.nop"
32127             GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
32128           done
32129           # CATALOGS depends on both $ac_dir and the user's LINGUAS
32130           # environment variable.
32131           INST_LINGUAS=
32132           if test -n "$ALL_LINGUAS"; then
32133             for presentlang in $ALL_LINGUAS; do
32134               useit=no
32135               if test "%UNSET%" != "$LINGUAS"; then
32136                 desiredlanguages="$LINGUAS"
32137               else
32138                 desiredlanguages="$ALL_LINGUAS"
32139               fi
32140               for desiredlang in $desiredlanguages; do
32141                 # Use the presentlang catalog if desiredlang is
32142                 #   a. equal to presentlang, or
32143                 #   b. a variant of presentlang (because in this case,
32144                 #      presentlang can be used as a fallback for messages
32145                 #      which are not translated in the desiredlang catalog).
32146                 case "$desiredlang" in
32147                   "$presentlang"*) useit=yes;;
32148                 esac
32149               done
32150               if test $useit = yes; then
32151                 INST_LINGUAS="$INST_LINGUAS $presentlang"
32152               fi
32153             done
32154           fi
32155           CATALOGS=
32156           if test -n "$INST_LINGUAS"; then
32157             for lang in $INST_LINGUAS; do
32158               CATALOGS="$CATALOGS $lang.gmo"
32159             done
32160           fi
32161           test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
32162           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"
32163           for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do
32164             if test -f "$f"; then
32165               case "$f" in
32166                 *.orig | *.bak | *~) ;;
32167                 *) cat "$f" >> "$ac_dir/Makefile" ;;
32168               esac
32169             fi
32170           done
32171         fi
32172         ;;
32173       esac
32174     done ;;
32175     "default":C)
32176  ;;
32177
32178   esac
32179 done # for ac_tag
32180
32181
32182 as_fn_exit 0
32183 _ACEOF
32184 ac_clean_files=$ac_clean_files_save
32185
32186 test $ac_write_fail = 0 ||
32187   as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
32188
32189
32190 # configure is writing to config.log, and then calls config.status.
32191 # config.status does its own redirection, appending to config.log.
32192 # Unfortunately, on DOS this fails, as config.log is still kept open
32193 # by configure, so config.status won't be able to write to it; its
32194 # output is simply discarded.  So we exec the FD to /dev/null,
32195 # effectively closing config.log, so it can be properly (re)opened and
32196 # appended to by config.status.  When coming back to configure, we
32197 # need to make the FD available again.
32198 if test "$no_create" != yes; then
32199   ac_cs_success=:
32200   ac_config_status_args=
32201   test "$silent" = yes &&
32202     ac_config_status_args="$ac_config_status_args --quiet"
32203   exec 5>/dev/null
32204   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
32205   exec 5>>config.log
32206   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
32207   # would make configure fail if this is the last instruction.
32208   $ac_cs_success || as_fn_exit $?
32209 fi
32210 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
32211   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
32212 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
32213 fi
32214
32215
32216 if test "${support_bat}" = "yes" ; then
32217    if test "x$QMAKE" = "xnone"; then
32218       as_fn_error "Could not find qmake $PATH. Check your Qt installation" "$LINENO" 5
32219    fi
32220
32221    cd src/qt-console
32222    echo "Creating bat Makefile"
32223    touch bat
32224    chmod 755 bat
32225    rm -f Makefile
32226    $QMAKE
32227    ${MAKE:-make} clean
32228    cd ${BUILD_DIR}
32229 fi
32230
32231 if test X"$GCC" = "Xyes" ; then
32232   echo "Doing make of dependencies"
32233   ${MAKE:-make} depend
32234 fi
32235
32236 cd src/qt-console
32237 chmod 755 install_conf_file build-depkgs-qt-console
32238 cd ${BUILD_DIR}
32239
32240 cd scripts
32241 chmod 755 bacula btraceback mtx-changer
32242 chmod 755 dvd-handler dvd-simulator
32243 chmod 755 bconsole mtx-changer devel_bacula logrotate
32244 cd ..
32245
32246 c=updatedb
32247 chmod 755 $c/update_mysql_tables_10_to_11   $c/update_sqlite3_tables_10_to_11
32248 chmod 755 $c/update_postgresql_tables_10_to_11
32249 chmod 755 $c/update_mysql_tables_11_to_12   $c/update_sqlite3_tables_11_to_12
32250 chmod 755 $c/update_postgresql_tables_11_to_12
32251
32252
32253 c=src/cats
32254
32255 chmod 755 $c/create_bacula_database   $c/update_bacula_tables  $c/make_bacula_tables
32256 chmod 755 $c/grant_bacula_privileges  $c/drop_bacula_tables    $c/drop_bacula_database
32257
32258 chmod 755 $c/create_mysql_database    $c/update_mysql_tables   $c/make_mysql_tables
32259 chmod 755 $c/grant_mysql_privileges   $c/drop_mysql_tables     $c/drop_mysql_database
32260
32261 chmod 755 $c/create_sqlite3_database   $c/update_sqlite3_tables  $c/make_sqlite3_tables
32262 chmod 755 $c/grant_sqlite3_privileges  $c/drop_sqlite3_tables    $c/drop_sqlite3_database
32263
32264 chmod 755 $c/create_postgresql_database  $c/update_postgresql_tables $c/make_postgresql_tables
32265 chmod 755 $c/grant_postgresql_privileges $c/drop_postgresql_tables   $c/drop_postgresql_database
32266
32267 #chmod 755 $c/create_ingres_database  $c/update_ingres_tables $c/make_ingres_tables
32268 #chmod 755 $c/grant_ingres_privileges $c/drop_ingres_tables   $c/drop_ingres_database
32269
32270
32271 chmod 755 $c/make_catalog_backup $c/delete_catalog_backup  $c/make_catalog_backup.pl
32272 chmod 755 $c/sqlite
32273 chmod 755 $c/mysql
32274
32275 chmod 755 src/win32/build-depkgs-mingw32
32276
32277 if test "x$ac_cv_sys_largefile_CFLAGS" != "xno" ; then
32278    largefile_support="yes"
32279 fi
32280
32281 if test X"$GCC" = "Xyes" ; then
32282                CCVERSION=`${CC} --version | tr '\n' ' ' | cut -f 3 -d ' '`
32283    if test "x${CCVERSION}" = "x" ; then
32284       CCVERSION=`${CC} --version | tr '\n' ' ' | cut -f 1 -d ' '`
32285    fi
32286    CXXVERSION=`${CXX} --version | tr '\n' ' ' | cut -f 3 -d ' '`
32287    if test x"${CXXVERSION}" = x ; then
32288       CXXVERSION=`${CXX} --version | tr '\n' ' ' | cut -f 1 -d ' '`
32289    fi
32290 fi
32291
32292 # clean up any old junk
32293 echo " "
32294 echo "Cleaning up"
32295 echo " "
32296 ${MAKE:-make} clean
32297
32298 echo "
32299 Configuration on `date`:
32300
32301    Host:                     ${host}${post_host} -- ${DISTNAME} ${DISTVER}
32302    Bacula version:           ${BACULA} ${VERSION} (${DATE})
32303    Source code location:     ${srcdir}
32304    Install binaries:         ${sbindir}
32305    Install libraries:        ${libdir}
32306    Install config files:     ${sysconfdir}
32307    Scripts directory:        ${scriptdir}
32308    Archive directory:        ${archivedir}
32309    Working directory:        ${working_dir}
32310    PID directory:            ${piddir}
32311    Subsys directory:         ${subsysdir}
32312    Man directory:            ${mandir}
32313    Data directory:           ${datarootdir}
32314    Plugin directory:         ${plugindir}
32315    C Compiler:               ${CC} ${CCVERSION}
32316    C++ Compiler:             ${CXX} ${CXXVERSION}
32317    Compiler flags:           ${WCFLAGS} ${CFLAGS}
32318    Linker flags:             ${WLDFLAGS} ${LDFLAGS}
32319    Libraries:                ${LIBS}
32320    Statically Linked Tools:  ${support_static_tools}
32321    Statically Linked FD:     ${support_static_fd}
32322    Statically Linked SD:     ${support_static_sd}
32323    Statically Linked DIR:    ${support_static_dir}
32324    Statically Linked CONS:   ${support_static_cons}
32325    Database backends:        ${db_backends}
32326    Database port:            ${db_port}
32327    Database name:            ${db_name}
32328    Database user:            ${db_user}
32329
32330    Job Output Email:         ${job_email}
32331    Traceback Email:          ${dump_email}
32332    SMTP Host Address:        ${smtp_host}
32333
32334    Director Port:            ${dir_port}
32335    File daemon Port:         ${fd_port}
32336    Storage daemon Port:      ${sd_port}
32337
32338    Director User:            ${dir_user}
32339    Director Group:           ${dir_group}
32340    Storage Daemon User:      ${sd_user}
32341    Storage DaemonGroup:      ${sd_group}
32342    File Daemon User:         ${fd_user}
32343    File Daemon Group:        ${fd_group}
32344
32345    Large file support:      $largefile_support
32346    Bacula conio support:    ${got_conio} ${CONS_LIBS}
32347    readline support:        ${got_readline} ${PRTREADLINE_SRC}
32348    TCP Wrappers support:    ${TCPW_MSG} ${WRAPLIBS}
32349    TLS support:             ${support_tls}
32350    Encryption support:      ${support_crypto}
32351    ZLIB support:            ${have_zlib}
32352    enable-smartalloc:       ${support_smartalloc}
32353    enable-lockmgr:          ${support_lockmgr}
32354    bat support:             ${support_bat}
32355    enable-gnome:            ${support_gnome} ${gnome_version}
32356    enable-bwx-console:      ${support_wx_console} ${wx_version}
32357    enable-tray-monitor:     ${support_tray_monitor}
32358    client-only:             ${build_client_only}
32359    build-dird:              ${build_dird}
32360    build-stored:            ${build_stored}
32361    Plugin support:          ${have_plugins}
32362    AFS support:             ${have_afs}
32363    ACL support:             ${have_acl}
32364    XATTR support:           ${have_xattr}
32365    Python support:          ${support_python} ${PYTHON_LIBS}
32366    Batch insert enabled:    ${support_batch_insert}
32367
32368   " > config.out
32369
32370 # create a small shell script useful for support with
32371 # configure options and config.out info
32372 cat > scripts/bacula_config << EOF
32373 #!/bin/sh
32374 cat << __EOC__
32375 $ $0 $ac_configure_args
32376 EOF
32377 cat config.out >> scripts/bacula_config
32378 echo __EOC__ >> scripts/bacula_config
32379 chmod 755 scripts/bacula_config
32380
32381 cat config.out