]> git.sur5r.net Git - bacula/bacula/blob - bacula/configure
483d915eff9bae8fb7cddd643ef449b9d7fd346f
[bacula/bacula] / bacula / configure
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.65.
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=
700 PACKAGE_TARNAME=
701 PACKAGE_VERSION=
702 PACKAGE_STRING=
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 AFS_LIBS
761 AFS_CFLAGS
762 ZLIBS
763 LIBOBJS
764 X_EXTRA_LIBS
765 X_LIBS
766 X_PRE_LIBS
767 X_CFLAGS
768 XMKMF
769 GETCONF
770 SHARED_CATALOG_TARGETS
771 DEFAULT_DB_TYPE
772 DB_LIBS
773 DB_BACKENDS
774 DB_PROG_LIB
775 DB_PROG
776 uncomment_dbi
777 DBI_DBD_DRIVERDIR
778 DBI_BINDIR
779 DBI_INCLUDE
780 DBI_LIBS
781 INGRES_BINDIR
782 INGRES_INCLUDE
783 INGRES_LIBS
784 SQLITE_BINDIR
785 SQLITE_INCLUDE
786 SQLITE_LIBS
787 MYSQL_BINDIR
788 MYSQL_INCLUDE
789 MYSQL_LIBS
790 POSTGRESQL_BINDIR
791 POSTGRESQL_INCLUDE
792 POSTGRESQL_LIBS
793 SBINPERM
794 fd_group
795 fd_user
796 sd_group
797 sd_user
798 dir_group
799 dir_user
800 db_port
801 db_password
802 db_user
803 db_name
804 mon_sd_password
805 mon_fd_password
806 mon_dir_password
807 sd_password
808 fd_password
809 dir_password
810 sd_port
811 fd_port
812 dir_port
813 baseport
814 subsysdir
815 piddir
816 smtp_host
817 job_email
818 dump_email
819 plugindir
820 logdir
821 bsrdir
822 scriptdir
823 hostname
824 basename
825 archivedir
826 working_dir
827 OPENSSL_INC
828 OPENSSL_LIBS
829 PYTHON_INCDIR
830 PYTHON_LIBS
831 READLINE_SRC
832 CONS_LDFLAGS
833 CONS_LIBS
834 CONS_SRC
835 CONS_OBJ
836 CONS_INC
837 STORED_DIR
838 DIR_TOOLS
839 DIRD_DIR
840 ALL_DIRS
841 STATIC_WX_CONS
842 STATIC_GNOME_CONS
843 STATIC_CONS
844 STATIC_DIR
845 STATIC_SD
846 STATIC_FD
847 TTOOL_LDFLAGS
848 TRAY_MONITOR_DIR
849 TRAY_MONITOR_LDFLAGS
850 TRAY_MONITOR_CPPFLAGS
851 WX_DIR
852 WXCONS_LDFLAGS
853 WXCONS_CPPFLAGS
854 QWT
855 QWT_LIB
856 QWT_LDFLAGS
857 QWT_INC
858 BAT_DIR
859 INTL_LIBTOOL_SUFFIX_PREFIX
860 INTLOBJS
861 GENCAT
862 INSTOBJEXT
863 DATADIRNAME
864 CATOBJEXT
865 USE_INCLUDED_LIBINTL
866 BUILD_INCLUDED_LIBINTL
867 INTLBISON
868 HAVE_WPRINTF
869 HAVE_SNPRINTF
870 HAVE_ASPRINTF
871 HAVE_POSIX_PRINTF
872 GLIBC21
873 ALLOCA
874 GLIBC2
875 POSUB
876 LTLIBINTL
877 LIBINTL
878 INTLLIBS
879 LTLIBICONV
880 LIBICONV
881 INTL_MACOSX_LIBS
882 MSGMERGE
883 XGETTEXT
884 GMSGFMT
885 MSGFMT
886 USE_NLS
887 MKINSTALLDIRS
888 SET_MAKE
889 HAVE_DARWIN_OS_FALSE
890 HAVE_DARWIN_OS_TRUE
891 HAVE_IRIX_OS_FALSE
892 HAVE_IRIX_OS_TRUE
893 HAVE_SGI_OS_FALSE
894 HAVE_SGI_OS_TRUE
895 HAVE_BSDI_OS_FALSE
896 HAVE_BSDI_OS_TRUE
897 HAVE_OPENBSD_OS_FALSE
898 HAVE_OPENBSD_OS_TRUE
899 HAVE_NETBSD_OS_FALSE
900 HAVE_NETBSD_OS_TRUE
901 HAVE_FREEBSD_OS_FALSE
902 HAVE_FREEBSD_OS_TRUE
903 HAVE_LINUX_OS_FALSE
904 HAVE_LINUX_OS_TRUE
905 HAVE_HPUX_OS_FALSE
906 HAVE_HPUX_OS_TRUE
907 HAVE_AIX_OS_FALSE
908 HAVE_AIX_OS_TRUE
909 HAVE_OSF1_OS_FALSE
910 HAVE_OSF1_OS_TRUE
911 HAVE_SUN_OS_FALSE
912 HAVE_SUN_OS_TRUE
913 INCLUDE_UNINSTALL_TARGET
914 INCLUDE_INSTALL_TARGET
915 FD_PLUGIN_DIR
916 QMAKE_LIBTOOL
917 LIBTOOL_CLEAN_TARGET
918 LIBTOOL_UNINSTALL_TARGET
919 LIBTOOL_INSTALL_TARGET
920 DEFAULT_SHARED_OBJECT_TYPE
921 DEFAULT_ARCHIVE_TYPE
922 DEFAULT_OBJECT_TYPE
923 CXXCPP
924 OTOOL64
925 OTOOL
926 LIPO
927 NMEDIT
928 DSYMUTIL
929 lt_ECHO
930 RANLIB
931 STRIP
932 OBJDUMP
933 LN_S
934 NM
935 ac_ct_DUMPBIN
936 DUMPBIN
937 LD
938 FGREP
939 host_os
940 host_vendor
941 host_cpu
942 host
943 build_os
944 build_vendor
945 build_cpu
946 build
947 LIBTOOL
948 LOCAL_DEFS
949 LOCAL_LDFLAGS
950 LOCAL_CFLAGS
951 LOCAL_LIBS
952 MAKE_SHELL
953 ARFLAGS
954 AWK
955 PIDOF
956 CDRECORD
957 WXFLAGS
958 WXCONFIG
959 GMAKE
960 QMAKE
961 PKGCONFIG
962 DVDRWFORMAT
963 DVDRWMEDIAINFO
964 GROWISOFS
965 PYTHON
966 MKISOFS
967 DD
968 MTX
969 OPENSSL
970 AR
971 TBL
972 CMP
973 ECHO
974 SED
975 CP
976 REMOVE
977 MV
978 INSTALL_DATA
979 INSTALL_SCRIPT
980 INSTALL_PROGRAM
981 EGREP
982 GREP
983 CPP
984 ac_ct_CXX
985 CXXFLAGS
986 CXX
987 OBJEXT
988 EXEEXT
989 ac_ct_CC
990 CPPFLAGS
991 LDFLAGS
992 CFLAGS
993 CC
994 LIBBACFIND_LT_RELEASE
995 LIBBACCATS_LT_RELEASE
996 LIBBACSQL_LT_RELEASE
997 LIBBACPY_LT_RELEASE
998 LIBBACCFG_LT_RELEASE
999 LIBBAC_LT_RELEASE
1000 BDB_VERSION
1001 post_host
1002 BACULA
1003 LSMDATE
1004 DATE
1005 VERSION
1006 FALSEPRG
1007 TRUEPRG
1008 WIN32TOPDIR
1009 WIN32MAINDIR
1010 WIN32BUILDDIR
1011 TOP_DIR
1012 BUILD_DIR
1013 target_alias
1014 host_alias
1015 build_alias
1016 LIBS
1017 ECHO_T
1018 ECHO_N
1019 ECHO_C
1020 DEFS
1021 mandir
1022 localedir
1023 libdir
1024 psdir
1025 pdfdir
1026 dvidir
1027 htmldir
1028 infodir
1029 docdir
1030 oldincludedir
1031 includedir
1032 localstatedir
1033 sharedstatedir
1034 sysconfdir
1035 datadir
1036 datarootdir
1037 libexecdir
1038 sbindir
1039 bindir
1040 program_transform_name
1041 prefix
1042 exec_prefix
1043 PACKAGE_URL
1044 PACKAGE_BUGREPORT
1045 PACKAGE_STRING
1046 PACKAGE_VERSION
1047 PACKAGE_TARNAME
1048 PACKAGE_NAME
1049 PATH_SEPARATOR
1050 SHELL'
1051 ac_subst_files='MCOMMON'
1052 ac_user_opts='
1053 enable_option_checking
1054 enable_libtool
1055 enable_shared
1056 enable_static
1057 with_pic
1058 enable_fast_install
1059 with_gnu_ld
1060 enable_libtool_lock
1061 enable_includes
1062 enable_nls
1063 enable_rpath
1064 with_libiconv_prefix
1065 with_libintl_prefix
1066 with_included_gettext
1067 enable_gnome
1068 enable_bat
1069 enable_bwx_console
1070 enable_tray_monitor
1071 enable_smartalloc
1072 enable_lockmgr
1073 enable_static_tools
1074 enable_static_fd
1075 enable_static_sd
1076 enable_static_dir
1077 enable_static_cons
1078 enable_client_only
1079 enable_build_dird
1080 enable_build_stored
1081 enable_conio
1082 enable_ipv6
1083 enable_readline
1084 with_readline
1085 with_python
1086 with_tcp_wrappers
1087 with_openssl
1088 with_working_dir
1089 with_archivedir
1090 with_basename
1091 with_hostname
1092 with_scriptdir
1093 with_bsrdir
1094 with_logdir
1095 with_plugindir
1096 with_dump_email
1097 with_job_email
1098 with_smtp_host
1099 with_pid_dir
1100 with_subsys_dir
1101 with_baseport
1102 with_dir_password
1103 with_fd_password
1104 with_sd_password
1105 with_mon_dir_password
1106 with_mon_fd_password
1107 with_mon_sd_password
1108 with_db_name
1109 with_db_user
1110 with_db_password
1111 with_db_port
1112 with_dir_user
1113 with_dir_group
1114 with_sd_user
1115 with_sd_group
1116 with_fd_user
1117 with_fd_group
1118 with_sbin_perm
1119 with_postgresql
1120 with_mysql
1121 with_embedded_mysql
1122 with_sqlite3
1123 with_ingres
1124 with_dbi
1125 with_dbi_driver
1126 enable_batch_insert
1127 enable_largefile
1128 with_x
1129 enable_afs
1130 with_afsdir
1131 enable_acl
1132 enable_xattr
1133 '
1134       ac_precious_vars='build_alias
1135 host_alias
1136 target_alias
1137 CC
1138 CFLAGS
1139 LDFLAGS
1140 LIBS
1141 CPPFLAGS
1142 CXX
1143 CXXFLAGS
1144 CCC
1145 CPP
1146 WXCONFIG
1147 WXFLAGS
1148 CXXCPP
1149 XMKMF'
1150
1151
1152 # Initialize some variables set by options.
1153 ac_init_help=
1154 ac_init_version=false
1155 ac_unrecognized_opts=
1156 ac_unrecognized_sep=
1157 # The variables have the same names as the options, with
1158 # dashes changed to underlines.
1159 cache_file=/dev/null
1160 exec_prefix=NONE
1161 no_create=
1162 no_recursion=
1163 prefix=NONE
1164 program_prefix=NONE
1165 program_suffix=NONE
1166 program_transform_name=s,x,x,
1167 silent=
1168 site=
1169 srcdir=
1170 verbose=
1171 x_includes=NONE
1172 x_libraries=NONE
1173
1174 # Installation directory options.
1175 # These are left unexpanded so users can "make install exec_prefix=/foo"
1176 # and all the variables that are supposed to be based on exec_prefix
1177 # by default will actually change.
1178 # Use braces instead of parens because sh, perl, etc. also accept them.
1179 # (The list follows the same order as the GNU Coding Standards.)
1180 bindir='${exec_prefix}/bin'
1181 sbindir='${exec_prefix}/sbin'
1182 libexecdir='${exec_prefix}/libexec'
1183 datarootdir='${prefix}/share'
1184 datadir='${datarootdir}'
1185 sysconfdir='${prefix}/etc'
1186 sharedstatedir='${prefix}/com'
1187 localstatedir='${prefix}/var'
1188 includedir='${prefix}/include'
1189 oldincludedir='/usr/include'
1190 docdir='${datarootdir}/doc/${PACKAGE}'
1191 infodir='${datarootdir}/info'
1192 htmldir='${docdir}'
1193 dvidir='${docdir}'
1194 pdfdir='${docdir}'
1195 psdir='${docdir}'
1196 libdir='${exec_prefix}/lib'
1197 localedir='${datarootdir}/locale'
1198 mandir='${datarootdir}/man'
1199
1200 ac_prev=
1201 ac_dashdash=
1202 for ac_option
1203 do
1204   # If the previous option needs an argument, assign it.
1205   if test -n "$ac_prev"; then
1206     eval $ac_prev=\$ac_option
1207     ac_prev=
1208     continue
1209   fi
1210
1211   case $ac_option in
1212   *=*)  ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1213   *)    ac_optarg=yes ;;
1214   esac
1215
1216   # Accept the important Cygnus configure options, so we can diagnose typos.
1217
1218   case $ac_dashdash$ac_option in
1219   --)
1220     ac_dashdash=yes ;;
1221
1222   -bindir | --bindir | --bindi | --bind | --bin | --bi)
1223     ac_prev=bindir ;;
1224   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1225     bindir=$ac_optarg ;;
1226
1227   -build | --build | --buil | --bui | --bu)
1228     ac_prev=build_alias ;;
1229   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1230     build_alias=$ac_optarg ;;
1231
1232   -cache-file | --cache-file | --cache-fil | --cache-fi \
1233   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1234     ac_prev=cache_file ;;
1235   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1236   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1237     cache_file=$ac_optarg ;;
1238
1239   --config-cache | -C)
1240     cache_file=config.cache ;;
1241
1242   -datadir | --datadir | --datadi | --datad)
1243     ac_prev=datadir ;;
1244   -datadir=* | --datadir=* | --datadi=* | --datad=*)
1245     datadir=$ac_optarg ;;
1246
1247   -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1248   | --dataroo | --dataro | --datar)
1249     ac_prev=datarootdir ;;
1250   -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1251   | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1252     datarootdir=$ac_optarg ;;
1253
1254   -disable-* | --disable-*)
1255     ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1256     # Reject names that are not valid shell variable names.
1257     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1258       as_fn_error "invalid feature name: $ac_useropt"
1259     ac_useropt_orig=$ac_useropt
1260     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1261     case $ac_user_opts in
1262       *"
1263 "enable_$ac_useropt"
1264 "*) ;;
1265       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1266          ac_unrecognized_sep=', ';;
1267     esac
1268     eval enable_$ac_useropt=no ;;
1269
1270   -docdir | --docdir | --docdi | --doc | --do)
1271     ac_prev=docdir ;;
1272   -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1273     docdir=$ac_optarg ;;
1274
1275   -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1276     ac_prev=dvidir ;;
1277   -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1278     dvidir=$ac_optarg ;;
1279
1280   -enable-* | --enable-*)
1281     ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1282     # Reject names that are not valid shell variable names.
1283     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1284       as_fn_error "invalid feature name: $ac_useropt"
1285     ac_useropt_orig=$ac_useropt
1286     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1287     case $ac_user_opts in
1288       *"
1289 "enable_$ac_useropt"
1290 "*) ;;
1291       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1292          ac_unrecognized_sep=', ';;
1293     esac
1294     eval enable_$ac_useropt=\$ac_optarg ;;
1295
1296   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1297   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1298   | --exec | --exe | --ex)
1299     ac_prev=exec_prefix ;;
1300   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1301   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1302   | --exec=* | --exe=* | --ex=*)
1303     exec_prefix=$ac_optarg ;;
1304
1305   -gas | --gas | --ga | --g)
1306     # Obsolete; use --with-gas.
1307     with_gas=yes ;;
1308
1309   -help | --help | --hel | --he | -h)
1310     ac_init_help=long ;;
1311   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1312     ac_init_help=recursive ;;
1313   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1314     ac_init_help=short ;;
1315
1316   -host | --host | --hos | --ho)
1317     ac_prev=host_alias ;;
1318   -host=* | --host=* | --hos=* | --ho=*)
1319     host_alias=$ac_optarg ;;
1320
1321   -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1322     ac_prev=htmldir ;;
1323   -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1324   | --ht=*)
1325     htmldir=$ac_optarg ;;
1326
1327   -includedir | --includedir | --includedi | --included | --include \
1328   | --includ | --inclu | --incl | --inc)
1329     ac_prev=includedir ;;
1330   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1331   | --includ=* | --inclu=* | --incl=* | --inc=*)
1332     includedir=$ac_optarg ;;
1333
1334   -infodir | --infodir | --infodi | --infod | --info | --inf)
1335     ac_prev=infodir ;;
1336   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1337     infodir=$ac_optarg ;;
1338
1339   -libdir | --libdir | --libdi | --libd)
1340     ac_prev=libdir ;;
1341   -libdir=* | --libdir=* | --libdi=* | --libd=*)
1342     libdir=$ac_optarg ;;
1343
1344   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1345   | --libexe | --libex | --libe)
1346     ac_prev=libexecdir ;;
1347   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1348   | --libexe=* | --libex=* | --libe=*)
1349     libexecdir=$ac_optarg ;;
1350
1351   -localedir | --localedir | --localedi | --localed | --locale)
1352     ac_prev=localedir ;;
1353   -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1354     localedir=$ac_optarg ;;
1355
1356   -localstatedir | --localstatedir | --localstatedi | --localstated \
1357   | --localstate | --localstat | --localsta | --localst | --locals)
1358     ac_prev=localstatedir ;;
1359   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1360   | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1361     localstatedir=$ac_optarg ;;
1362
1363   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1364     ac_prev=mandir ;;
1365   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1366     mandir=$ac_optarg ;;
1367
1368   -nfp | --nfp | --nf)
1369     # Obsolete; use --without-fp.
1370     with_fp=no ;;
1371
1372   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1373   | --no-cr | --no-c | -n)
1374     no_create=yes ;;
1375
1376   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1377   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1378     no_recursion=yes ;;
1379
1380   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1381   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1382   | --oldin | --oldi | --old | --ol | --o)
1383     ac_prev=oldincludedir ;;
1384   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1385   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1386   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1387     oldincludedir=$ac_optarg ;;
1388
1389   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1390     ac_prev=prefix ;;
1391   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1392     prefix=$ac_optarg ;;
1393
1394   -program-prefix | --program-prefix | --program-prefi | --program-pref \
1395   | --program-pre | --program-pr | --program-p)
1396     ac_prev=program_prefix ;;
1397   -program-prefix=* | --program-prefix=* | --program-prefi=* \
1398   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1399     program_prefix=$ac_optarg ;;
1400
1401   -program-suffix | --program-suffix | --program-suffi | --program-suff \
1402   | --program-suf | --program-su | --program-s)
1403     ac_prev=program_suffix ;;
1404   -program-suffix=* | --program-suffix=* | --program-suffi=* \
1405   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1406     program_suffix=$ac_optarg ;;
1407
1408   -program-transform-name | --program-transform-name \
1409   | --program-transform-nam | --program-transform-na \
1410   | --program-transform-n | --program-transform- \
1411   | --program-transform | --program-transfor \
1412   | --program-transfo | --program-transf \
1413   | --program-trans | --program-tran \
1414   | --progr-tra | --program-tr | --program-t)
1415     ac_prev=program_transform_name ;;
1416   -program-transform-name=* | --program-transform-name=* \
1417   | --program-transform-nam=* | --program-transform-na=* \
1418   | --program-transform-n=* | --program-transform-=* \
1419   | --program-transform=* | --program-transfor=* \
1420   | --program-transfo=* | --program-transf=* \
1421   | --program-trans=* | --program-tran=* \
1422   | --progr-tra=* | --program-tr=* | --program-t=*)
1423     program_transform_name=$ac_optarg ;;
1424
1425   -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1426     ac_prev=pdfdir ;;
1427   -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1428     pdfdir=$ac_optarg ;;
1429
1430   -psdir | --psdir | --psdi | --psd | --ps)
1431     ac_prev=psdir ;;
1432   -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1433     psdir=$ac_optarg ;;
1434
1435   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1436   | -silent | --silent | --silen | --sile | --sil)
1437     silent=yes ;;
1438
1439   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1440     ac_prev=sbindir ;;
1441   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1442   | --sbi=* | --sb=*)
1443     sbindir=$ac_optarg ;;
1444
1445   -sharedstatedir | --sharedstatedir | --sharedstatedi \
1446   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1447   | --sharedst | --shareds | --shared | --share | --shar \
1448   | --sha | --sh)
1449     ac_prev=sharedstatedir ;;
1450   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1451   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1452   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1453   | --sha=* | --sh=*)
1454     sharedstatedir=$ac_optarg ;;
1455
1456   -site | --site | --sit)
1457     ac_prev=site ;;
1458   -site=* | --site=* | --sit=*)
1459     site=$ac_optarg ;;
1460
1461   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1462     ac_prev=srcdir ;;
1463   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1464     srcdir=$ac_optarg ;;
1465
1466   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1467   | --syscon | --sysco | --sysc | --sys | --sy)
1468     ac_prev=sysconfdir ;;
1469   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1470   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1471     sysconfdir=$ac_optarg ;;
1472
1473   -target | --target | --targe | --targ | --tar | --ta | --t)
1474     ac_prev=target_alias ;;
1475   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1476     target_alias=$ac_optarg ;;
1477
1478   -v | -verbose | --verbose | --verbos | --verbo | --verb)
1479     verbose=yes ;;
1480
1481   -version | --version | --versio | --versi | --vers | -V)
1482     ac_init_version=: ;;
1483
1484   -with-* | --with-*)
1485     ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
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--with-$ac_useropt_orig"
1496          ac_unrecognized_sep=', ';;
1497     esac
1498     eval with_$ac_useropt=\$ac_optarg ;;
1499
1500   -without-* | --without-*)
1501     ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1502     # Reject names that are not valid shell variable names.
1503     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1504       as_fn_error "invalid package name: $ac_useropt"
1505     ac_useropt_orig=$ac_useropt
1506     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1507     case $ac_user_opts in
1508       *"
1509 "with_$ac_useropt"
1510 "*) ;;
1511       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1512          ac_unrecognized_sep=', ';;
1513     esac
1514     eval with_$ac_useropt=no ;;
1515
1516   --x)
1517     # Obsolete; use --with-x.
1518     with_x=yes ;;
1519
1520   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1521   | --x-incl | --x-inc | --x-in | --x-i)
1522     ac_prev=x_includes ;;
1523   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1524   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1525     x_includes=$ac_optarg ;;
1526
1527   -x-libraries | --x-libraries | --x-librarie | --x-librari \
1528   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1529     ac_prev=x_libraries ;;
1530   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1531   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1532     x_libraries=$ac_optarg ;;
1533
1534   -*) as_fn_error "unrecognized option: \`$ac_option'
1535 Try \`$0 --help' for more information."
1536     ;;
1537
1538   *=*)
1539     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1540     # Reject names that are not valid shell variable names.
1541     case $ac_envvar in #(
1542       '' | [0-9]* | *[!_$as_cr_alnum]* )
1543       as_fn_error "invalid variable name: \`$ac_envvar'" ;;
1544     esac
1545     eval $ac_envvar=\$ac_optarg
1546     export $ac_envvar ;;
1547
1548   *)
1549     # FIXME: should be removed in autoconf 3.0.
1550     $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1551     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1552       $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1553     : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1554     ;;
1555
1556   esac
1557 done
1558
1559 if test -n "$ac_prev"; then
1560   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1561   as_fn_error "missing argument to $ac_option"
1562 fi
1563
1564 if test -n "$ac_unrecognized_opts"; then
1565   case $enable_option_checking in
1566     no) ;;
1567     fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;;
1568     *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1569   esac
1570 fi
1571
1572 # Check all directory arguments for consistency.
1573 for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
1574                 datadir sysconfdir sharedstatedir localstatedir includedir \
1575                 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1576                 libdir localedir mandir
1577 do
1578   eval ac_val=\$$ac_var
1579   # Remove trailing slashes.
1580   case $ac_val in
1581     */ )
1582       ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1583       eval $ac_var=\$ac_val;;
1584   esac
1585   # Be sure to have absolute directory names.
1586   case $ac_val in
1587     [\\/$]* | ?:[\\/]* )  continue;;
1588     NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1589   esac
1590   as_fn_error "expected an absolute directory name for --$ac_var: $ac_val"
1591 done
1592
1593 # There might be people who depend on the old broken behavior: `$host'
1594 # used to hold the argument of --host etc.
1595 # FIXME: To remove some day.
1596 build=$build_alias
1597 host=$host_alias
1598 target=$target_alias
1599
1600 # FIXME: To remove some day.
1601 if test "x$host_alias" != x; then
1602   if test "x$build_alias" = x; then
1603     cross_compiling=maybe
1604     $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1605     If a cross compiler is detected then cross compile mode will be used." >&2
1606   elif test "x$build_alias" != "x$host_alias"; then
1607     cross_compiling=yes
1608   fi
1609 fi
1610
1611 ac_tool_prefix=
1612 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1613
1614 test "$silent" = yes && exec 6>/dev/null
1615
1616
1617 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1618 ac_ls_di=`ls -di .` &&
1619 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1620   as_fn_error "working directory cannot be determined"
1621 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1622   as_fn_error "pwd does not report name of working directory"
1623
1624
1625 # Find the source files, if location was not specified.
1626 if test -z "$srcdir"; then
1627   ac_srcdir_defaulted=yes
1628   # Try the directory containing this script, then the parent directory.
1629   ac_confdir=`$as_dirname -- "$as_myself" ||
1630 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1631          X"$as_myself" : 'X\(//\)[^/]' \| \
1632          X"$as_myself" : 'X\(//\)$' \| \
1633          X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1634 $as_echo X"$as_myself" |
1635     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1636             s//\1/
1637             q
1638           }
1639           /^X\(\/\/\)[^/].*/{
1640             s//\1/
1641             q
1642           }
1643           /^X\(\/\/\)$/{
1644             s//\1/
1645             q
1646           }
1647           /^X\(\/\).*/{
1648             s//\1/
1649             q
1650           }
1651           s/.*/./; q'`
1652   srcdir=$ac_confdir
1653   if test ! -r "$srcdir/$ac_unique_file"; then
1654     srcdir=..
1655   fi
1656 else
1657   ac_srcdir_defaulted=no
1658 fi
1659 if test ! -r "$srcdir/$ac_unique_file"; then
1660   test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1661   as_fn_error "cannot find sources ($ac_unique_file) in $srcdir"
1662 fi
1663 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1664 ac_abs_confdir=`(
1665         cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
1666         pwd)`
1667 # When building in place, set srcdir=.
1668 if test "$ac_abs_confdir" = "$ac_pwd"; then
1669   srcdir=.
1670 fi
1671 # Remove unnecessary trailing slashes from srcdir.
1672 # Double slashes in file names in object file debugging info
1673 # mess up M-x gdb in Emacs.
1674 case $srcdir in
1675 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1676 esac
1677 for ac_var in $ac_precious_vars; do
1678   eval ac_env_${ac_var}_set=\${${ac_var}+set}
1679   eval ac_env_${ac_var}_value=\$${ac_var}
1680   eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1681   eval ac_cv_env_${ac_var}_value=\$${ac_var}
1682 done
1683
1684 #
1685 # Report the --help message.
1686 #
1687 if test "$ac_init_help" = "long"; then
1688   # Omit some internal or obsolete options to make the list less imposing.
1689   # This message is too long to be a string in the A/UX 3.1 sh.
1690   cat <<_ACEOF
1691 \`configure' configures this package to adapt to many kinds of systems.
1692
1693 Usage: $0 [OPTION]... [VAR=VALUE]...
1694
1695 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1696 VAR=VALUE.  See below for descriptions of some of the useful variables.
1697
1698 Defaults for the options are specified in brackets.
1699
1700 Configuration:
1701   -h, --help              display this help and exit
1702       --help=short        display options specific to this package
1703       --help=recursive    display the short help of all the included packages
1704   -V, --version           display version information and exit
1705   -q, --quiet, --silent   do not print \`checking...' messages
1706       --cache-file=FILE   cache test results in FILE [disabled]
1707   -C, --config-cache      alias for \`--cache-file=config.cache'
1708   -n, --no-create         do not create output files
1709       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1710
1711 Installation directories:
1712   --prefix=PREFIX         install architecture-independent files in PREFIX
1713                           [$ac_default_prefix]
1714   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1715                           [PREFIX]
1716
1717 By default, \`make install' will install all the files in
1718 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1719 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1720 for instance \`--prefix=\$HOME'.
1721
1722 For better control, use the options below.
1723
1724 Fine tuning of the installation directories:
1725   --bindir=DIR            user executables [EPREFIX/bin]
1726   --sbindir=DIR           system admin executables [EPREFIX/sbin]
1727   --libexecdir=DIR        program executables [EPREFIX/libexec]
1728   --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1729   --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1730   --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1731   --libdir=DIR            object code libraries [EPREFIX/lib]
1732   --includedir=DIR        C header files [PREFIX/include]
1733   --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1734   --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1735   --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1736   --infodir=DIR           info documentation [DATAROOTDIR/info]
1737   --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1738   --mandir=DIR            man documentation [DATAROOTDIR/man]
1739   --docdir=DIR            documentation root [DATAROOTDIR/doc/PACKAGE]
1740   --htmldir=DIR           html documentation [DOCDIR]
1741   --dvidir=DIR            dvi documentation [DOCDIR]
1742   --pdfdir=DIR            pdf documentation [DOCDIR]
1743   --psdir=DIR             ps documentation [DOCDIR]
1744 _ACEOF
1745
1746   cat <<\_ACEOF
1747
1748 X features:
1749   --x-includes=DIR    X include files are in DIR
1750   --x-libraries=DIR   X library files are in DIR
1751
1752 System types:
1753   --build=BUILD     configure for building on BUILD [guessed]
1754   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1755 _ACEOF
1756 fi
1757
1758 if test -n "$ac_init_help"; then
1759
1760   cat <<\_ACEOF
1761
1762 Optional Features:
1763   --disable-option-checking  ignore unrecognized --enable/--with options
1764   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1765   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1766   --enable-libtool        enable building using GNU libtool [default=yes]
1767   --enable-shared[=PKGS]  build shared libraries [default=yes]
1768   --enable-static[=PKGS]  build static libraries [default=no]
1769   --enable-fast-install[=PKGS]
1770                           optimize for fast installation [default=yes]
1771   --disable-libtool-lock  avoid locking (might break parallel builds)
1772   --enable-includes       enable installing of include files [default=no]
1773   --disable-nls           do not use Native Language Support
1774   --disable-rpath         do not hardcode runtime library paths
1775   --enable-gnome          enable build of bgnome-console GUI [default=no]
1776   --enable-bat            enable build of bat Qt4 GUI [default=no]
1777   --enable-bwx-console    enable build of wxWidgets console [default=no]
1778   --enable-tray-monitor   enable build of Gnome tray monitor (compatible with
1779                           KDE [default=no]
1780   --enable-smartalloc     enable smartalloc debugging support [default=no]
1781   --enable-lockmgr        enable lock manager support [default=no]
1782   --enable-static-tools   enable static tape tools [default=no]
1783   --enable-static-fd      enable static File daemon [default=no]
1784   --enable-static-sd      enable static Storage daemon [default=no]
1785   --enable-static-dir     enable static Director [default=no]
1786   --enable-static-cons    enable static Console [default=no]
1787   --enable-client-only    build client (File daemon) only [default=no]
1788   --enable-build-dird     enable building of dird (Director) [default=yes]
1789   --enable-build-stored   enable building of stored (Storage daemon)
1790                           [default=yes]
1791   --disable-conio         disable conio support [default=no]
1792   --enable-ipv6           enable ipv6 support [default=yes]
1793   --disable-readline      disable readline support [default=yes]
1794   --enable-batch-insert   enable the DB batch insert code [default=yes]
1795   --disable-largefile     omit support for large files
1796   --disable-afs           disable afs support [default=auto]
1797   --disable-acl           disable acl support [default=auto]
1798   --disable-xattr         disable xattr support [default=auto]
1799
1800 Optional Packages:
1801   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1802   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1803   --with-pic              try to use only PIC/non-PIC objects [default=use
1804                           both]
1805   --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1806   --with-gnu-ld           assume the C compiler uses GNU ld default=no
1807   --with-libiconv-prefix[=DIR]  search for libiconv in DIR/include and DIR/lib
1808   --without-libiconv-prefix     don't search for libiconv in includedir and libdir
1809   --with-libintl-prefix[=DIR]  search for libintl in DIR/include and DIR/lib
1810   --without-libintl-prefix     don't search for libintl in includedir and libdir
1811   --with-included-gettext use the GNU gettext library included here
1812   --with-readline[=DIR]   specify readline library directory
1813   --with-python[=DIR]     Include Python support. DIR is the Python base
1814                           install directory, default is to search through a
1815                           number of common places for the Python files.
1816   --with-tcp-wrappers[=DIR]
1817                           enable tcpwrappers support
1818   --with-openssl[=DIR]    Include OpenSSL support. DIR is the OpenSSL base
1819   --with-working-dir=PATH specify path of Bacula working directory
1820   --with-archivedir=PATH  specify path of SD archive directory
1821   --with-basename=RESNAME specify base resource name for daemons
1822   --with-hostname=RESNAME specify host name for daemons
1823   --with-scriptdir=PATH   specify path of Bacula scripts directory
1824   --with-bsrdir=PATH      specify path of Bacula bsrs directory
1825   --with-logdir=PATH      specify path of Bacula logs directory
1826   --with-plugindir=PATH   specify path of Bacula plugins directory
1827   --with-dump-email=EMAIL dump email address
1828   --with-job-email=EMAIL  job output email address
1829   --with-smtp-host=HOST   SMTP mail host address
1830   --with-pid-dir=PATH     specify location of Bacula pid files
1831   --with-subsys-dir=PATH  specify location of Bacula subsys file
1832   --with-baseport=PORT    specify base port address for daemons
1833   --with-dir-password=PASSWORD
1834                           specify Director's password
1835   --with-fd-password=PASSWORD
1836                           specify Client's password
1837   --with-sd-password=PASSWORD
1838                           specify Storage daemon's password
1839   --with-mon-dir-password=PASSWORD
1840                           specify Director's password used by the monitor
1841   --with-mon-fd-password=PASSWORD
1842                           specify Client's password used by the monitor
1843   --with-mon-sd-password=PASSWORD
1844                           specify Storage daemon's password used by the
1845                           monitor
1846   --with-db-name=DBNAME   specify database name [default=bacula]
1847   --with-db-user=UNAME    specify database user [default=bacula]
1848   --with-db-password=PWD  specify database password [default=*none*]
1849   --with-db-port=DBPORT   specify a database port [default=null]
1850   --with-dir-user=USER    specify user for Director daemon
1851   --with-dir-group=GROUP  specify group for Director daemon
1852   --with-sd-user=USER     specify user for Storage daemon
1853   --with-sd-group=GROUP   specify group for Storage daemon
1854   --with-fd-user=USER     specify user for File daemon
1855   --with-fd-group=GROUP   specify group for File daemon
1856   --with-sbin-perm=MODE   specify permissions for sbin binaries [default=0750]
1857   --with-postgresql[=DIR] Include PostgreSQL support. DIR is the PostgreSQL
1858                           base install directory, [default=/usr/local/pgsql]
1859   --with-mysql[=DIR]      Include MySQL support. DIR is the MySQL base install
1860                           directory, default is to search through a number of
1861                           common places for the MySQL files.
1862   --with-embedded-mysql[=DIR]
1863                           Include MySQL support. DIR is the MySQL base install
1864                           directory, default is to search through a number of
1865                           common places for the MySQL files.
1866   --with-sqlite3[=DIR]    Include SQLite3 support. DIR is the SQLite3 base
1867                           install directory, default is to search through a
1868                           number of common places for the SQLite3 files.
1869   --with-ingres[=DIR]     Include Ingres support. DIR is the Ingres base
1870                           install directory, default is to search through a
1871                           number of common places for the Ingres files.
1872   --with-dbi[=DIR]        Include DBI support. DIR is the DBD base install
1873                           directory, default is to search through a number of
1874                           common places for the DBI files.
1875   --with-dbi-driver[=DRIVER]
1876                           Suport for DBI driver. DRIVER is the one DBI driver
1877                           like Mysql, Postgresql, others. Default is to not
1878                           configure any driver.
1879   --with-x                use the X Window System
1880   --with-afsdir[=DIR]     Directory holding AFS includes/libs
1881
1882 Some influential environment variables:
1883   CC          C compiler command
1884   CFLAGS      C compiler flags
1885   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1886               nonstandard directory <lib dir>
1887   LIBS        libraries to pass to the linker, e.g. -l<library>
1888   CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1889               you have headers in a nonstandard directory <include dir>
1890   CXX         C++ compiler command
1891   CXXFLAGS    C++ compiler flags
1892   CPP         C preprocessor
1893   WXCONFIG    wx-config command. On some systems, you must set it to
1894               wx-config-2.6 to use wxWidgets 2.6.
1895   WXFLAGS     Parameters to pass to wx-config (e.g. --unicode=no).
1896   CXXCPP      C++ preprocessor
1897   XMKMF       Path to xmkmf, Makefile generator for X Window System
1898
1899 Use these variables to override the choices made by `configure' or to help
1900 it to find libraries and programs with nonstandard names/locations.
1901
1902 Report bugs to the package provider.
1903 _ACEOF
1904 ac_status=$?
1905 fi
1906
1907 if test "$ac_init_help" = "recursive"; then
1908   # If there are subdirs, report their specific --help.
1909   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1910     test -d "$ac_dir" ||
1911       { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1912       continue
1913     ac_builddir=.
1914
1915 case "$ac_dir" in
1916 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1917 *)
1918   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1919   # A ".." for each directory in $ac_dir_suffix.
1920   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1921   case $ac_top_builddir_sub in
1922   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1923   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1924   esac ;;
1925 esac
1926 ac_abs_top_builddir=$ac_pwd
1927 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1928 # for backward compatibility:
1929 ac_top_builddir=$ac_top_build_prefix
1930
1931 case $srcdir in
1932   .)  # We are building in place.
1933     ac_srcdir=.
1934     ac_top_srcdir=$ac_top_builddir_sub
1935     ac_abs_top_srcdir=$ac_pwd ;;
1936   [\\/]* | ?:[\\/]* )  # Absolute name.
1937     ac_srcdir=$srcdir$ac_dir_suffix;
1938     ac_top_srcdir=$srcdir
1939     ac_abs_top_srcdir=$srcdir ;;
1940   *) # Relative name.
1941     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1942     ac_top_srcdir=$ac_top_build_prefix$srcdir
1943     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1944 esac
1945 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1946
1947     cd "$ac_dir" || { ac_status=$?; continue; }
1948     # Check for guested configure.
1949     if test -f "$ac_srcdir/configure.gnu"; then
1950       echo &&
1951       $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1952     elif test -f "$ac_srcdir/configure"; then
1953       echo &&
1954       $SHELL "$ac_srcdir/configure" --help=recursive
1955     else
1956       $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1957     fi || ac_status=$?
1958     cd "$ac_pwd" || { ac_status=$?; break; }
1959   done
1960 fi
1961
1962 test -n "$ac_init_help" && exit $ac_status
1963 if $ac_init_version; then
1964   cat <<\_ACEOF
1965 configure
1966 generated by GNU Autoconf 2.65
1967
1968 Copyright (C) 2009 Free Software Foundation, Inc.
1969 This configure script is free software; the Free Software Foundation
1970 gives unlimited permission to copy, distribute and modify it.
1971 _ACEOF
1972   exit
1973 fi
1974
1975 ## ------------------------ ##
1976 ## Autoconf initialization. ##
1977 ## ------------------------ ##
1978
1979 # ac_fn_c_try_compile LINENO
1980 # --------------------------
1981 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1982 ac_fn_c_try_compile ()
1983 {
1984   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1985   rm -f conftest.$ac_objext
1986   if { { ac_try="$ac_compile"
1987 case "(($ac_try" in
1988   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1989   *) ac_try_echo=$ac_try;;
1990 esac
1991 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1992 $as_echo "$ac_try_echo"; } >&5
1993   (eval "$ac_compile") 2>conftest.err
1994   ac_status=$?
1995   if test -s conftest.err; then
1996     grep -v '^ *+' conftest.err >conftest.er1
1997     cat conftest.er1 >&5
1998     mv -f conftest.er1 conftest.err
1999   fi
2000   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2001   test $ac_status = 0; } && {
2002          test -z "$ac_c_werror_flag" ||
2003          test ! -s conftest.err
2004        } && test -s conftest.$ac_objext; then :
2005   ac_retval=0
2006 else
2007   $as_echo "$as_me: failed program was:" >&5
2008 sed 's/^/| /' conftest.$ac_ext >&5
2009
2010         ac_retval=1
2011 fi
2012   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2013   as_fn_set_status $ac_retval
2014
2015 } # ac_fn_c_try_compile
2016
2017 # ac_fn_cxx_try_compile LINENO
2018 # ----------------------------
2019 # Try to compile conftest.$ac_ext, and return whether this succeeded.
2020 ac_fn_cxx_try_compile ()
2021 {
2022   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2023   rm -f conftest.$ac_objext
2024   if { { ac_try="$ac_compile"
2025 case "(($ac_try" in
2026   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2027   *) ac_try_echo=$ac_try;;
2028 esac
2029 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2030 $as_echo "$ac_try_echo"; } >&5
2031   (eval "$ac_compile") 2>conftest.err
2032   ac_status=$?
2033   if test -s conftest.err; then
2034     grep -v '^ *+' conftest.err >conftest.er1
2035     cat conftest.er1 >&5
2036     mv -f conftest.er1 conftest.err
2037   fi
2038   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2039   test $ac_status = 0; } && {
2040          test -z "$ac_cxx_werror_flag" ||
2041          test ! -s conftest.err
2042        } && test -s conftest.$ac_objext; then :
2043   ac_retval=0
2044 else
2045   $as_echo "$as_me: failed program was:" >&5
2046 sed 's/^/| /' conftest.$ac_ext >&5
2047
2048         ac_retval=1
2049 fi
2050   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2051   as_fn_set_status $ac_retval
2052
2053 } # ac_fn_cxx_try_compile
2054
2055 # ac_fn_c_try_cpp LINENO
2056 # ----------------------
2057 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2058 ac_fn_c_try_cpp ()
2059 {
2060   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2061   if { { ac_try="$ac_cpp conftest.$ac_ext"
2062 case "(($ac_try" in
2063   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2064   *) ac_try_echo=$ac_try;;
2065 esac
2066 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2067 $as_echo "$ac_try_echo"; } >&5
2068   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2069   ac_status=$?
2070   if test -s conftest.err; then
2071     grep -v '^ *+' conftest.err >conftest.er1
2072     cat conftest.er1 >&5
2073     mv -f conftest.er1 conftest.err
2074   fi
2075   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2076   test $ac_status = 0; } >/dev/null && {
2077          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
2078          test ! -s conftest.err
2079        }; then :
2080   ac_retval=0
2081 else
2082   $as_echo "$as_me: failed program was:" >&5
2083 sed 's/^/| /' conftest.$ac_ext >&5
2084
2085     ac_retval=1
2086 fi
2087   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2088   as_fn_set_status $ac_retval
2089
2090 } # ac_fn_c_try_cpp
2091
2092 # ac_fn_c_try_link LINENO
2093 # -----------------------
2094 # Try to link conftest.$ac_ext, and return whether this succeeded.
2095 ac_fn_c_try_link ()
2096 {
2097   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2098   rm -f conftest.$ac_objext conftest$ac_exeext
2099   if { { ac_try="$ac_link"
2100 case "(($ac_try" in
2101   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2102   *) ac_try_echo=$ac_try;;
2103 esac
2104 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2105 $as_echo "$ac_try_echo"; } >&5
2106   (eval "$ac_link") 2>conftest.err
2107   ac_status=$?
2108   if test -s conftest.err; then
2109     grep -v '^ *+' conftest.err >conftest.er1
2110     cat conftest.er1 >&5
2111     mv -f conftest.er1 conftest.err
2112   fi
2113   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2114   test $ac_status = 0; } && {
2115          test -z "$ac_c_werror_flag" ||
2116          test ! -s conftest.err
2117        } && test -s conftest$ac_exeext && {
2118          test "$cross_compiling" = yes ||
2119          $as_test_x conftest$ac_exeext
2120        }; then :
2121   ac_retval=0
2122 else
2123   $as_echo "$as_me: failed program was:" >&5
2124 sed 's/^/| /' conftest.$ac_ext >&5
2125
2126         ac_retval=1
2127 fi
2128   # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2129   # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2130   # interfere with the next link command; also delete a directory that is
2131   # left behind by Apple's compiler.  We do this before executing the actions.
2132   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2133   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2134   as_fn_set_status $ac_retval
2135
2136 } # ac_fn_c_try_link
2137
2138 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
2139 # -------------------------------------------------------
2140 # Tests whether HEADER exists and can be compiled using the include files in
2141 # INCLUDES, setting the cache variable VAR accordingly.
2142 ac_fn_c_check_header_compile ()
2143 {
2144   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2145   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2146 $as_echo_n "checking for $2... " >&6; }
2147 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2148   $as_echo_n "(cached) " >&6
2149 else
2150   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2151 /* end confdefs.h.  */
2152 $4
2153 #include <$2>
2154 _ACEOF
2155 if ac_fn_c_try_compile "$LINENO"; then :
2156   eval "$3=yes"
2157 else
2158   eval "$3=no"
2159 fi
2160 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2161 fi
2162 eval ac_res=\$$3
2163                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2164 $as_echo "$ac_res" >&6; }
2165   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2166
2167 } # ac_fn_c_check_header_compile
2168
2169 # ac_fn_c_try_run LINENO
2170 # ----------------------
2171 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
2172 # that executables *can* be run.
2173 ac_fn_c_try_run ()
2174 {
2175   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2176   if { { ac_try="$ac_link"
2177 case "(($ac_try" in
2178   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2179   *) ac_try_echo=$ac_try;;
2180 esac
2181 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2182 $as_echo "$ac_try_echo"; } >&5
2183   (eval "$ac_link") 2>&5
2184   ac_status=$?
2185   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2186   test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
2187   { { case "(($ac_try" in
2188   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2189   *) ac_try_echo=$ac_try;;
2190 esac
2191 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2192 $as_echo "$ac_try_echo"; } >&5
2193   (eval "$ac_try") 2>&5
2194   ac_status=$?
2195   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2196   test $ac_status = 0; }; }; then :
2197   ac_retval=0
2198 else
2199   $as_echo "$as_me: program exited with status $ac_status" >&5
2200        $as_echo "$as_me: failed program was:" >&5
2201 sed 's/^/| /' conftest.$ac_ext >&5
2202
2203        ac_retval=$ac_status
2204 fi
2205   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2206   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2207   as_fn_set_status $ac_retval
2208
2209 } # ac_fn_c_try_run
2210
2211 # ac_fn_c_check_func LINENO FUNC VAR
2212 # ----------------------------------
2213 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2214 ac_fn_c_check_func ()
2215 {
2216   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2217   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2218 $as_echo_n "checking for $2... " >&6; }
2219 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2220   $as_echo_n "(cached) " >&6
2221 else
2222   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2223 /* end confdefs.h.  */
2224 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2225    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
2226 #define $2 innocuous_$2
2227
2228 /* System header to define __stub macros and hopefully few prototypes,
2229     which can conflict with char $2 (); below.
2230     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2231     <limits.h> exists even on freestanding compilers.  */
2232
2233 #ifdef __STDC__
2234 # include <limits.h>
2235 #else
2236 # include <assert.h>
2237 #endif
2238
2239 #undef $2
2240
2241 /* Override any GCC internal prototype to avoid an error.
2242    Use char because int might match the return type of a GCC
2243    builtin and then its argument prototype would still apply.  */
2244 #ifdef __cplusplus
2245 extern "C"
2246 #endif
2247 char $2 ();
2248 /* The GNU C library defines this for functions which it implements
2249     to always fail with ENOSYS.  Some functions are actually named
2250     something starting with __ and the normal name is an alias.  */
2251 #if defined __stub_$2 || defined __stub___$2
2252 choke me
2253 #endif
2254
2255 int
2256 main ()
2257 {
2258 return $2 ();
2259   ;
2260   return 0;
2261 }
2262 _ACEOF
2263 if ac_fn_c_try_link "$LINENO"; then :
2264   eval "$3=yes"
2265 else
2266   eval "$3=no"
2267 fi
2268 rm -f core conftest.err conftest.$ac_objext \
2269     conftest$ac_exeext conftest.$ac_ext
2270 fi
2271 eval ac_res=\$$3
2272                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2273 $as_echo "$ac_res" >&6; }
2274   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2275
2276 } # ac_fn_c_check_func
2277
2278 # ac_fn_cxx_try_cpp LINENO
2279 # ------------------------
2280 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2281 ac_fn_cxx_try_cpp ()
2282 {
2283   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2284   if { { ac_try="$ac_cpp conftest.$ac_ext"
2285 case "(($ac_try" in
2286   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2287   *) ac_try_echo=$ac_try;;
2288 esac
2289 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2290 $as_echo "$ac_try_echo"; } >&5
2291   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2292   ac_status=$?
2293   if test -s conftest.err; then
2294     grep -v '^ *+' conftest.err >conftest.er1
2295     cat conftest.er1 >&5
2296     mv -f conftest.er1 conftest.err
2297   fi
2298   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2299   test $ac_status = 0; } >/dev/null && {
2300          test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
2301          test ! -s conftest.err
2302        }; then :
2303   ac_retval=0
2304 else
2305   $as_echo "$as_me: failed program was:" >&5
2306 sed 's/^/| /' conftest.$ac_ext >&5
2307
2308     ac_retval=1
2309 fi
2310   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2311   as_fn_set_status $ac_retval
2312
2313 } # ac_fn_cxx_try_cpp
2314
2315 # ac_fn_cxx_try_link LINENO
2316 # -------------------------
2317 # Try to link conftest.$ac_ext, and return whether this succeeded.
2318 ac_fn_cxx_try_link ()
2319 {
2320   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2321   rm -f conftest.$ac_objext conftest$ac_exeext
2322   if { { ac_try="$ac_link"
2323 case "(($ac_try" in
2324   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2325   *) ac_try_echo=$ac_try;;
2326 esac
2327 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2328 $as_echo "$ac_try_echo"; } >&5
2329   (eval "$ac_link") 2>conftest.err
2330   ac_status=$?
2331   if test -s conftest.err; then
2332     grep -v '^ *+' conftest.err >conftest.er1
2333     cat conftest.er1 >&5
2334     mv -f conftest.er1 conftest.err
2335   fi
2336   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2337   test $ac_status = 0; } && {
2338          test -z "$ac_cxx_werror_flag" ||
2339          test ! -s conftest.err
2340        } && test -s conftest$ac_exeext && {
2341          test "$cross_compiling" = yes ||
2342          $as_test_x conftest$ac_exeext
2343        }; then :
2344   ac_retval=0
2345 else
2346   $as_echo "$as_me: failed program was:" >&5
2347 sed 's/^/| /' conftest.$ac_ext >&5
2348
2349         ac_retval=1
2350 fi
2351   # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2352   # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2353   # interfere with the next link command; also delete a directory that is
2354   # left behind by Apple's compiler.  We do this before executing the actions.
2355   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2356   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2357   as_fn_set_status $ac_retval
2358
2359 } # ac_fn_cxx_try_link
2360
2361 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2362 # -------------------------------------------
2363 # Tests whether TYPE exists after having included INCLUDES, setting cache
2364 # variable VAR accordingly.
2365 ac_fn_c_check_type ()
2366 {
2367   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2368   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2369 $as_echo_n "checking for $2... " >&6; }
2370 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2371   $as_echo_n "(cached) " >&6
2372 else
2373   eval "$3=no"
2374   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2375 /* end confdefs.h.  */
2376 $4
2377 int
2378 main ()
2379 {
2380 if (sizeof ($2))
2381          return 0;
2382   ;
2383   return 0;
2384 }
2385 _ACEOF
2386 if ac_fn_c_try_compile "$LINENO"; then :
2387   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2388 /* end confdefs.h.  */
2389 $4
2390 int
2391 main ()
2392 {
2393 if (sizeof (($2)))
2394             return 0;
2395   ;
2396   return 0;
2397 }
2398 _ACEOF
2399 if ac_fn_c_try_compile "$LINENO"; then :
2400
2401 else
2402   eval "$3=yes"
2403 fi
2404 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2405 fi
2406 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2407 fi
2408 eval ac_res=\$$3
2409                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2410 $as_echo "$ac_res" >&6; }
2411   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2412
2413 } # ac_fn_c_check_type
2414
2415 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
2416 # -------------------------------------------------------
2417 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
2418 # the include files in INCLUDES and setting the cache variable VAR
2419 # accordingly.
2420 ac_fn_c_check_header_mongrel ()
2421 {
2422   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2423   if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2424   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2425 $as_echo_n "checking for $2... " >&6; }
2426 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2427   $as_echo_n "(cached) " >&6
2428 fi
2429 eval ac_res=\$$3
2430                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2431 $as_echo "$ac_res" >&6; }
2432 else
2433   # Is the header compilable?
2434 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
2435 $as_echo_n "checking $2 usability... " >&6; }
2436 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2437 /* end confdefs.h.  */
2438 $4
2439 #include <$2>
2440 _ACEOF
2441 if ac_fn_c_try_compile "$LINENO"; then :
2442   ac_header_compiler=yes
2443 else
2444   ac_header_compiler=no
2445 fi
2446 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2447 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2448 $as_echo "$ac_header_compiler" >&6; }
2449
2450 # Is the header present?
2451 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2452 $as_echo_n "checking $2 presence... " >&6; }
2453 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2454 /* end confdefs.h.  */
2455 #include <$2>
2456 _ACEOF
2457 if ac_fn_c_try_cpp "$LINENO"; then :
2458   ac_header_preproc=yes
2459 else
2460   ac_header_preproc=no
2461 fi
2462 rm -f conftest.err conftest.$ac_ext
2463 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2464 $as_echo "$ac_header_preproc" >&6; }
2465
2466 # So?  What about this header?
2467 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
2468   yes:no: )
2469     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2470 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2471     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2472 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2473     ;;
2474   no:yes:* )
2475     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2476 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2477     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     check for missing prerequisite headers?" >&5
2478 $as_echo "$as_me: WARNING: $2:     check for missing prerequisite headers?" >&2;}
2479     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2480 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2481     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&5
2482 $as_echo "$as_me: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&2;}
2483     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2484 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2485     ;;
2486 esac
2487   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2488 $as_echo_n "checking for $2... " >&6; }
2489 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2490   $as_echo_n "(cached) " >&6
2491 else
2492   eval "$3=\$ac_header_compiler"
2493 fi
2494 eval ac_res=\$$3
2495                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2496 $as_echo "$ac_res" >&6; }
2497 fi
2498   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2499
2500 } # ac_fn_c_check_header_mongrel
2501
2502 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2503 # --------------------------------------------
2504 # Tries to find the compile-time value of EXPR in a program that includes
2505 # INCLUDES, setting VAR accordingly. Returns whether the value could be
2506 # computed
2507 ac_fn_c_compute_int ()
2508 {
2509   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2510   if test "$cross_compiling" = yes; then
2511     # Depending upon the size, compute the lo and hi bounds.
2512 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2513 /* end confdefs.h.  */
2514 $4
2515 int
2516 main ()
2517 {
2518 static int test_array [1 - 2 * !(($2) >= 0)];
2519 test_array [0] = 0
2520
2521   ;
2522   return 0;
2523 }
2524 _ACEOF
2525 if ac_fn_c_try_compile "$LINENO"; then :
2526   ac_lo=0 ac_mid=0
2527   while :; do
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) <= $ac_mid)];
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=$ac_mid; break
2543 else
2544   as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2545                         if test $ac_lo -le $ac_mid; then
2546                           ac_lo= ac_hi=
2547                           break
2548                         fi
2549                         as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2550 fi
2551 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2552   done
2553 else
2554   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2555 /* end confdefs.h.  */
2556 $4
2557 int
2558 main ()
2559 {
2560 static int test_array [1 - 2 * !(($2) < 0)];
2561 test_array [0] = 0
2562
2563   ;
2564   return 0;
2565 }
2566 _ACEOF
2567 if ac_fn_c_try_compile "$LINENO"; then :
2568   ac_hi=-1 ac_mid=-1
2569   while :; do
2570     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2571 /* end confdefs.h.  */
2572 $4
2573 int
2574 main ()
2575 {
2576 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2577 test_array [0] = 0
2578
2579   ;
2580   return 0;
2581 }
2582 _ACEOF
2583 if ac_fn_c_try_compile "$LINENO"; then :
2584   ac_lo=$ac_mid; break
2585 else
2586   as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2587                         if test $ac_mid -le $ac_hi; then
2588                           ac_lo= ac_hi=
2589                           break
2590                         fi
2591                         as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2592 fi
2593 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2594   done
2595 else
2596   ac_lo= ac_hi=
2597 fi
2598 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2599 fi
2600 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2601 # Binary search between lo and hi bounds.
2602 while test "x$ac_lo" != "x$ac_hi"; do
2603   as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2604   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2605 /* end confdefs.h.  */
2606 $4
2607 int
2608 main ()
2609 {
2610 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2611 test_array [0] = 0
2612
2613   ;
2614   return 0;
2615 }
2616 _ACEOF
2617 if ac_fn_c_try_compile "$LINENO"; then :
2618   ac_hi=$ac_mid
2619 else
2620   as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2621 fi
2622 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2623 done
2624 case $ac_lo in #((
2625 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2626 '') ac_retval=1 ;;
2627 esac
2628   else
2629     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2630 /* end confdefs.h.  */
2631 $4
2632 static long int longval () { return $2; }
2633 static unsigned long int ulongval () { return $2; }
2634 #include <stdio.h>
2635 #include <stdlib.h>
2636 int
2637 main ()
2638 {
2639
2640   FILE *f = fopen ("conftest.val", "w");
2641   if (! f)
2642     return 1;
2643   if (($2) < 0)
2644     {
2645       long int i = longval ();
2646       if (i != ($2))
2647         return 1;
2648       fprintf (f, "%ld", i);
2649     }
2650   else
2651     {
2652       unsigned long int i = ulongval ();
2653       if (i != ($2))
2654         return 1;
2655       fprintf (f, "%lu", i);
2656     }
2657   /* Do not output a trailing newline, as this causes \r\n confusion
2658      on some platforms.  */
2659   return ferror (f) || fclose (f) != 0;
2660
2661   ;
2662   return 0;
2663 }
2664 _ACEOF
2665 if ac_fn_c_try_run "$LINENO"; then :
2666   echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2667 else
2668   ac_retval=1
2669 fi
2670 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2671   conftest.$ac_objext conftest.beam conftest.$ac_ext
2672 rm -f conftest.val
2673
2674   fi
2675   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2676   as_fn_set_status $ac_retval
2677
2678 } # ac_fn_c_compute_int
2679
2680 # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
2681 # ----------------------------------------------------
2682 # Tries to find if the field MEMBER exists in type AGGR, after including
2683 # INCLUDES, setting cache variable VAR accordingly.
2684 ac_fn_c_check_member ()
2685 {
2686   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2687   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2688 $as_echo_n "checking for $2.$3... " >&6; }
2689 if { as_var=$4; eval "test \"\${$as_var+set}\" = set"; }; then :
2690   $as_echo_n "(cached) " >&6
2691 else
2692   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2693 /* end confdefs.h.  */
2694 $5
2695 int
2696 main ()
2697 {
2698 static $2 ac_aggr;
2699 if (ac_aggr.$3)
2700 return 0;
2701   ;
2702   return 0;
2703 }
2704 _ACEOF
2705 if ac_fn_c_try_compile "$LINENO"; then :
2706   eval "$4=yes"
2707 else
2708   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2709 /* end confdefs.h.  */
2710 $5
2711 int
2712 main ()
2713 {
2714 static $2 ac_aggr;
2715 if (sizeof ac_aggr.$3)
2716 return 0;
2717   ;
2718   return 0;
2719 }
2720 _ACEOF
2721 if ac_fn_c_try_compile "$LINENO"; then :
2722   eval "$4=yes"
2723 else
2724   eval "$4=no"
2725 fi
2726 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2727 fi
2728 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2729 fi
2730 eval ac_res=\$$4
2731                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2732 $as_echo "$ac_res" >&6; }
2733   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2734
2735 } # ac_fn_c_check_member
2736
2737 # ac_fn_c_check_decl LINENO SYMBOL VAR
2738 # ------------------------------------
2739 # Tests whether SYMBOL is declared, setting cache variable VAR accordingly.
2740 ac_fn_c_check_decl ()
2741 {
2742   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2743   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $2 is declared" >&5
2744 $as_echo_n "checking whether $2 is declared... " >&6; }
2745 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2746   $as_echo_n "(cached) " >&6
2747 else
2748   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2749 /* end confdefs.h.  */
2750 $4
2751 int
2752 main ()
2753 {
2754 #ifndef $2
2755   (void) $2;
2756 #endif
2757
2758   ;
2759   return 0;
2760 }
2761 _ACEOF
2762 if ac_fn_c_try_compile "$LINENO"; then :
2763   eval "$3=yes"
2764 else
2765   eval "$3=no"
2766 fi
2767 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2768 fi
2769 eval ac_res=\$$3
2770                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2771 $as_echo "$ac_res" >&6; }
2772   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2773
2774 } # ac_fn_c_check_decl
2775
2776 # ac_fn_cxx_try_run LINENO
2777 # ------------------------
2778 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
2779 # that executables *can* be run.
2780 ac_fn_cxx_try_run ()
2781 {
2782   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2783   if { { ac_try="$ac_link"
2784 case "(($ac_try" in
2785   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2786   *) ac_try_echo=$ac_try;;
2787 esac
2788 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2789 $as_echo "$ac_try_echo"; } >&5
2790   (eval "$ac_link") 2>&5
2791   ac_status=$?
2792   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2793   test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
2794   { { case "(($ac_try" in
2795   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2796   *) ac_try_echo=$ac_try;;
2797 esac
2798 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2799 $as_echo "$ac_try_echo"; } >&5
2800   (eval "$ac_try") 2>&5
2801   ac_status=$?
2802   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2803   test $ac_status = 0; }; }; then :
2804   ac_retval=0
2805 else
2806   $as_echo "$as_me: program exited with status $ac_status" >&5
2807        $as_echo "$as_me: failed program was:" >&5
2808 sed 's/^/| /' conftest.$ac_ext >&5
2809
2810        ac_retval=$ac_status
2811 fi
2812   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2813   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2814   as_fn_set_status $ac_retval
2815
2816 } # ac_fn_cxx_try_run
2817 cat >config.log <<_ACEOF
2818 This file contains any messages produced by compilers while
2819 running configure, to aid debugging if configure makes a mistake.
2820
2821 It was created by $as_me, which was
2822 generated by GNU Autoconf 2.65.  Invocation command line was
2823
2824   $ $0 $@
2825
2826 _ACEOF
2827 exec 5>>config.log
2828 {
2829 cat <<_ASUNAME
2830 ## --------- ##
2831 ## Platform. ##
2832 ## --------- ##
2833
2834 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2835 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2836 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2837 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2838 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2839
2840 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2841 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
2842
2843 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
2844 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
2845 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2846 /usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
2847 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
2848 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
2849 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
2850
2851 _ASUNAME
2852
2853 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2854 for as_dir in $PATH
2855 do
2856   IFS=$as_save_IFS
2857   test -z "$as_dir" && as_dir=.
2858     $as_echo "PATH: $as_dir"
2859   done
2860 IFS=$as_save_IFS
2861
2862 } >&5
2863
2864 cat >&5 <<_ACEOF
2865
2866
2867 ## ----------- ##
2868 ## Core tests. ##
2869 ## ----------- ##
2870
2871 _ACEOF
2872
2873
2874 # Keep a trace of the command line.
2875 # Strip out --no-create and --no-recursion so they do not pile up.
2876 # Strip out --silent because we don't want to record it for future runs.
2877 # Also quote any args containing shell meta-characters.
2878 # Make two passes to allow for proper duplicate-argument suppression.
2879 ac_configure_args=
2880 ac_configure_args0=
2881 ac_configure_args1=
2882 ac_must_keep_next=false
2883 for ac_pass in 1 2
2884 do
2885   for ac_arg
2886   do
2887     case $ac_arg in
2888     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2889     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2890     | -silent | --silent | --silen | --sile | --sil)
2891       continue ;;
2892     *\'*)
2893       ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2894     esac
2895     case $ac_pass in
2896     1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2897     2)
2898       as_fn_append ac_configure_args1 " '$ac_arg'"
2899       if test $ac_must_keep_next = true; then
2900         ac_must_keep_next=false # Got value, back to normal.
2901       else
2902         case $ac_arg in
2903           *=* | --config-cache | -C | -disable-* | --disable-* \
2904           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2905           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2906           | -with-* | --with-* | -without-* | --without-* | --x)
2907             case "$ac_configure_args0 " in
2908               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2909             esac
2910             ;;
2911           -* ) ac_must_keep_next=true ;;
2912         esac
2913       fi
2914       as_fn_append ac_configure_args " '$ac_arg'"
2915       ;;
2916     esac
2917   done
2918 done
2919 { ac_configure_args0=; unset ac_configure_args0;}
2920 { ac_configure_args1=; unset ac_configure_args1;}
2921
2922 # When interrupted or exit'd, cleanup temporary files, and complete
2923 # config.log.  We remove comments because anyway the quotes in there
2924 # would cause problems or look ugly.
2925 # WARNING: Use '\'' to represent an apostrophe within the trap.
2926 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2927 trap 'exit_status=$?
2928   # Save into config.log some information that might help in debugging.
2929   {
2930     echo
2931
2932     cat <<\_ASBOX
2933 ## ---------------- ##
2934 ## Cache variables. ##
2935 ## ---------------- ##
2936 _ASBOX
2937     echo
2938     # The following way of writing the cache mishandles newlines in values,
2939 (
2940   for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2941     eval ac_val=\$$ac_var
2942     case $ac_val in #(
2943     *${as_nl}*)
2944       case $ac_var in #(
2945       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2946 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2947       esac
2948       case $ac_var in #(
2949       _ | IFS | as_nl) ;; #(
2950       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2951       *) { eval $ac_var=; unset $ac_var;} ;;
2952       esac ;;
2953     esac
2954   done
2955   (set) 2>&1 |
2956     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2957     *${as_nl}ac_space=\ *)
2958       sed -n \
2959         "s/'\''/'\''\\\\'\'''\''/g;
2960           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2961       ;; #(
2962     *)
2963       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2964       ;;
2965     esac |
2966     sort
2967 )
2968     echo
2969
2970     cat <<\_ASBOX
2971 ## ----------------- ##
2972 ## Output variables. ##
2973 ## ----------------- ##
2974 _ASBOX
2975     echo
2976     for ac_var in $ac_subst_vars
2977     do
2978       eval ac_val=\$$ac_var
2979       case $ac_val in
2980       *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2981       esac
2982       $as_echo "$ac_var='\''$ac_val'\''"
2983     done | sort
2984     echo
2985
2986     if test -n "$ac_subst_files"; then
2987       cat <<\_ASBOX
2988 ## ------------------- ##
2989 ## File substitutions. ##
2990 ## ------------------- ##
2991 _ASBOX
2992       echo
2993       for ac_var in $ac_subst_files
2994       do
2995         eval ac_val=\$$ac_var
2996         case $ac_val in
2997         *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2998         esac
2999         $as_echo "$ac_var='\''$ac_val'\''"
3000       done | sort
3001       echo
3002     fi
3003
3004     if test -s confdefs.h; then
3005       cat <<\_ASBOX
3006 ## ----------- ##
3007 ## confdefs.h. ##
3008 ## ----------- ##
3009 _ASBOX
3010       echo
3011       cat confdefs.h
3012       echo
3013     fi
3014     test "$ac_signal" != 0 &&
3015       $as_echo "$as_me: caught signal $ac_signal"
3016     $as_echo "$as_me: exit $exit_status"
3017   } >&5
3018   rm -f core *.core core.conftest.* &&
3019     rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
3020     exit $exit_status
3021 ' 0
3022 for ac_signal in 1 2 13 15; do
3023   trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
3024 done
3025 ac_signal=0
3026
3027 # confdefs.h avoids OS command line length limits that DEFS can exceed.
3028 rm -f -r conftest* confdefs.h
3029
3030 $as_echo "/* confdefs.h */" > confdefs.h
3031
3032 # Predefined preprocessor variables.
3033
3034 cat >>confdefs.h <<_ACEOF
3035 #define PACKAGE_NAME "$PACKAGE_NAME"
3036 _ACEOF
3037
3038 cat >>confdefs.h <<_ACEOF
3039 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
3040 _ACEOF
3041
3042 cat >>confdefs.h <<_ACEOF
3043 #define PACKAGE_VERSION "$PACKAGE_VERSION"
3044 _ACEOF
3045
3046 cat >>confdefs.h <<_ACEOF
3047 #define PACKAGE_STRING "$PACKAGE_STRING"
3048 _ACEOF
3049
3050 cat >>confdefs.h <<_ACEOF
3051 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
3052 _ACEOF
3053
3054 cat >>confdefs.h <<_ACEOF
3055 #define PACKAGE_URL "$PACKAGE_URL"
3056 _ACEOF
3057
3058
3059 # Let the site file select an alternate cache file if it wants to.
3060 # Prefer an explicitly selected file to automatically selected ones.
3061 ac_site_file1=NONE
3062 ac_site_file2=NONE
3063 if test -n "$CONFIG_SITE"; then
3064   ac_site_file1=$CONFIG_SITE
3065 elif test "x$prefix" != xNONE; then
3066   ac_site_file1=$prefix/share/config.site
3067   ac_site_file2=$prefix/etc/config.site
3068 else
3069   ac_site_file1=$ac_default_prefix/share/config.site
3070   ac_site_file2=$ac_default_prefix/etc/config.site
3071 fi
3072 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
3073 do
3074   test "x$ac_site_file" = xNONE && continue
3075   if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
3076     { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
3077 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
3078     sed 's/^/| /' "$ac_site_file" >&5
3079     . "$ac_site_file"
3080   fi
3081 done
3082
3083 if test -r "$cache_file"; then
3084   # Some versions of bash will fail to source /dev/null (special files
3085   # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
3086   if test /dev/null != "$cache_file" && test -f "$cache_file"; then
3087     { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
3088 $as_echo "$as_me: loading cache $cache_file" >&6;}
3089     case $cache_file in
3090       [\\/]* | ?:[\\/]* ) . "$cache_file";;
3091       *)                      . "./$cache_file";;
3092     esac
3093   fi
3094 else
3095   { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
3096 $as_echo "$as_me: creating cache $cache_file" >&6;}
3097   >$cache_file
3098 fi
3099
3100 as_fn_append ac_header_list " stdlib.h"
3101 as_fn_append ac_header_list " unistd.h"
3102 as_fn_append ac_header_list " sys/param.h"
3103 # Check that the precious variables saved in the cache have kept the same
3104 # value.
3105 ac_cache_corrupted=false
3106 for ac_var in $ac_precious_vars; do
3107   eval ac_old_set=\$ac_cv_env_${ac_var}_set
3108   eval ac_new_set=\$ac_env_${ac_var}_set
3109   eval ac_old_val=\$ac_cv_env_${ac_var}_value
3110   eval ac_new_val=\$ac_env_${ac_var}_value
3111   case $ac_old_set,$ac_new_set in
3112     set,)
3113       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
3114 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
3115       ac_cache_corrupted=: ;;
3116     ,set)
3117       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
3118 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
3119       ac_cache_corrupted=: ;;
3120     ,);;
3121     *)
3122       if test "x$ac_old_val" != "x$ac_new_val"; then
3123         # differences in whitespace do not lead to failure.
3124         ac_old_val_w=`echo x $ac_old_val`
3125         ac_new_val_w=`echo x $ac_new_val`
3126         if test "$ac_old_val_w" != "$ac_new_val_w"; then
3127           { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
3128 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
3129           ac_cache_corrupted=:
3130         else
3131           { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
3132 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
3133           eval $ac_var=\$ac_old_val
3134         fi
3135         { $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
3136 $as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
3137         { $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
3138 $as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
3139       fi;;
3140   esac
3141   # Pass precious variables to config.status.
3142   if test "$ac_new_set" = set; then
3143     case $ac_new_val in
3144     *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
3145     *) ac_arg=$ac_var=$ac_new_val ;;
3146     esac
3147     case " $ac_configure_args " in
3148       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
3149       *) as_fn_append ac_configure_args " '$ac_arg'" ;;
3150     esac
3151   fi
3152 done
3153 if $ac_cache_corrupted; then
3154   { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3155 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3156   { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
3157 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
3158   as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
3159 fi
3160 ## -------------------- ##
3161 ## Main body of script. ##
3162 ## -------------------- ##
3163
3164 ac_ext=c
3165 ac_cpp='$CPP $CPPFLAGS'
3166 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3167 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3168 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3169
3170
3171 BUILD_DIR=`pwd`
3172 cd ..
3173 TOP_DIR=`pwd`
3174 cd ${BUILD_DIR}
3175
3176
3177 ac_aux_dir=
3178 for ac_dir in ${BUILD_DIR}/autoconf "$srcdir"/${BUILD_DIR}/autoconf; do
3179   for ac_t in install-sh install.sh shtool; do
3180     if test -f "$ac_dir/$ac_t"; then
3181       ac_aux_dir=$ac_dir
3182       ac_install_sh="$ac_aux_dir/$ac_t -c"
3183       break 2
3184     fi
3185   done
3186 done
3187 if test -z "$ac_aux_dir"; then
3188   as_fn_error "cannot find install-sh, install.sh, or shtool in ${BUILD_DIR}/autoconf \"$srcdir\"/${BUILD_DIR}/autoconf" "$LINENO" 5
3189 fi
3190
3191 # These three variables are undocumented and unsupported,
3192 # and are intended to be withdrawn in a future Autoconf release.
3193 # They can cause serious problems if a builder's source tree is in a directory
3194 # whose full name contains unusual characters.
3195 ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
3196 ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
3197 ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
3198
3199
3200 ac_config_headers="$ac_config_headers src/config.h:autoconf/config.h.in"
3201
3202
3203 WIN32BUILDDIR=${BUILD_DIR}/src/win32
3204 WIN32MAINDIR=${BUILD_DIR}
3205 WIN32TOPDIR=${TOP_DIR}
3206
3207
3208
3209
3210 for ac_prog in true
3211 do
3212   # Extract the first word of "$ac_prog", so it can be a program name with args.
3213 set dummy $ac_prog; ac_word=$2
3214 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3215 $as_echo_n "checking for $ac_word... " >&6; }
3216 if test "${ac_cv_path_TRUEPRG+set}" = set; then :
3217   $as_echo_n "(cached) " >&6
3218 else
3219   case $TRUEPRG in
3220   [\\/]* | ?:[\\/]*)
3221   ac_cv_path_TRUEPRG="$TRUEPRG" # Let the user override the test with a path.
3222   ;;
3223   *)
3224   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3225 for as_dir in $PATH
3226 do
3227   IFS=$as_save_IFS
3228   test -z "$as_dir" && as_dir=.
3229     for ac_exec_ext in '' $ac_executable_extensions; do
3230   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3231     ac_cv_path_TRUEPRG="$as_dir/$ac_word$ac_exec_ext"
3232     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3233     break 2
3234   fi
3235 done
3236   done
3237 IFS=$as_save_IFS
3238
3239   ;;
3240 esac
3241 fi
3242 TRUEPRG=$ac_cv_path_TRUEPRG
3243 if test -n "$TRUEPRG"; then
3244   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TRUEPRG" >&5
3245 $as_echo "$TRUEPRG" >&6; }
3246 else
3247   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3248 $as_echo "no" >&6; }
3249 fi
3250
3251
3252   test -n "$TRUEPRG" && break
3253 done
3254 test -n "$TRUEPRG" || TRUEPRG=":"
3255
3256 for ac_prog in false
3257 do
3258   # Extract the first word of "$ac_prog", so it can be a program name with args.
3259 set dummy $ac_prog; ac_word=$2
3260 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3261 $as_echo_n "checking for $ac_word... " >&6; }
3262 if test "${ac_cv_path_FALSEPRG+set}" = set; then :
3263   $as_echo_n "(cached) " >&6
3264 else
3265   case $FALSEPRG in
3266   [\\/]* | ?:[\\/]*)
3267   ac_cv_path_FALSEPRG="$FALSEPRG" # Let the user override the test with a path.
3268   ;;
3269   *)
3270   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3271 for as_dir in $PATH
3272 do
3273   IFS=$as_save_IFS
3274   test -z "$as_dir" && as_dir=.
3275     for ac_exec_ext in '' $ac_executable_extensions; do
3276   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3277     ac_cv_path_FALSEPRG="$as_dir/$ac_word$ac_exec_ext"
3278     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3279     break 2
3280   fi
3281 done
3282   done
3283 IFS=$as_save_IFS
3284
3285   ;;
3286 esac
3287 fi
3288 FALSEPRG=$ac_cv_path_FALSEPRG
3289 if test -n "$FALSEPRG"; then
3290   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FALSEPRG" >&5
3291 $as_echo "$FALSEPRG" >&6; }
3292 else
3293   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3294 $as_echo "no" >&6; }
3295 fi
3296
3297
3298   test -n "$FALSEPRG" && break
3299 done
3300 test -n "$FALSEPRG" || FALSEPRG=":"
3301
3302
3303
3304 post_host=
3305 if test "x$BACULA" != x; then
3306    post_host=`echo -${BACULA} | tr 'A-Z ' 'a-z-'`
3307 fi
3308 BACULA=${BACULA:-Bacula}
3309 VERSION=`sed -n -e 's/^.*VERSION.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
3310 DATE=`sed -n -e 's/^.* \t*BDATE.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
3311 LSMDATE=`sed -n -e 's/^.*LSMDATE.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
3312 BDB_VERSION=`sed -n -e 's/^.*BDB_VERSION \(.*\)$/\1/p' ${srcdir}/src/cats/cats.h`
3313
3314 LIBBAC_LT_RELEASE=`sed -n -e 's/^#.*LIBBAC_LT_RELEASE.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
3315 LIBBACCFG_LT_RELEASE=`sed -n -e 's/^#.*LIBBACCFG_LT_RELEASE.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
3316 LIBBACPY_LT_RELEASE=`sed -n -e 's/^#.*LIBBACPY_LT_RELEASE.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
3317
3318 LIBBAC_LT_RELEASE=${LIBBAC_LT_RELEASE:-$VERSION}
3319 LIBBACCFG_LT_RELEASE=${LIBBACCFG_LT_RELEASE:-$VERSION}
3320 LIBBACPY_LT_RELEASE=${LIBBACPY_LT_RELEASE:-$VERSION}
3321
3322
3323 LIBBACSQL_LT_RELEASE=`sed -n -e 's/^#.*LIBBACSQL_LT_RELEASE.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
3324 LIBBACCATS_LT_RELEASE=`sed -n -e 's/^#.*LIBBACCATS_LT_RELEASE.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
3325
3326 LIBBACSQL_LT_RELEASE=${LIBBACSQL_LT_RELEASE:-$VERSION}
3327 LIBBACCATS_LT_RELEASE=${LIBBACCATS_LT_RELEASE:-$VERSION}
3328
3329
3330 LIBBACFIND_LT_RELEASE=`sed -n -e 's/^#.*LIBBACFIND_LT_RELEASE.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
3331
3332 LIBBACFIND_LT_RELEASE=${LIBBACFIND_LT_RELEASE:-$VERSION}
3333
3334
3335 echo "configuring for ${BACULA} $VERSION ($DATE)"
3336
3337
3338
3339 ac_ext=c
3340 ac_cpp='$CPP $CPPFLAGS'
3341 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3342 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3343 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3344 if test -n "$ac_tool_prefix"; then
3345   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3346 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3347 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3348 $as_echo_n "checking for $ac_word... " >&6; }
3349 if test "${ac_cv_prog_CC+set}" = set; then :
3350   $as_echo_n "(cached) " >&6
3351 else
3352   if test -n "$CC"; then
3353   ac_cv_prog_CC="$CC" # Let the user override the test.
3354 else
3355 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3356 for as_dir in $PATH
3357 do
3358   IFS=$as_save_IFS
3359   test -z "$as_dir" && as_dir=.
3360     for ac_exec_ext in '' $ac_executable_extensions; do
3361   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3362     ac_cv_prog_CC="${ac_tool_prefix}gcc"
3363     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3364     break 2
3365   fi
3366 done
3367   done
3368 IFS=$as_save_IFS
3369
3370 fi
3371 fi
3372 CC=$ac_cv_prog_CC
3373 if test -n "$CC"; then
3374   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3375 $as_echo "$CC" >&6; }
3376 else
3377   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3378 $as_echo "no" >&6; }
3379 fi
3380
3381
3382 fi
3383 if test -z "$ac_cv_prog_CC"; then
3384   ac_ct_CC=$CC
3385   # Extract the first word of "gcc", so it can be a program name with args.
3386 set dummy gcc; ac_word=$2
3387 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3388 $as_echo_n "checking for $ac_word... " >&6; }
3389 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3390   $as_echo_n "(cached) " >&6
3391 else
3392   if test -n "$ac_ct_CC"; then
3393   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3394 else
3395 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3396 for as_dir in $PATH
3397 do
3398   IFS=$as_save_IFS
3399   test -z "$as_dir" && as_dir=.
3400     for ac_exec_ext in '' $ac_executable_extensions; do
3401   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3402     ac_cv_prog_ac_ct_CC="gcc"
3403     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3404     break 2
3405   fi
3406 done
3407   done
3408 IFS=$as_save_IFS
3409
3410 fi
3411 fi
3412 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3413 if test -n "$ac_ct_CC"; then
3414   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3415 $as_echo "$ac_ct_CC" >&6; }
3416 else
3417   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3418 $as_echo "no" >&6; }
3419 fi
3420
3421   if test "x$ac_ct_CC" = x; then
3422     CC=""
3423   else
3424     case $cross_compiling:$ac_tool_warned in
3425 yes:)
3426 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3427 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3428 ac_tool_warned=yes ;;
3429 esac
3430     CC=$ac_ct_CC
3431   fi
3432 else
3433   CC="$ac_cv_prog_CC"
3434 fi
3435
3436 if test -z "$CC"; then
3437           if test -n "$ac_tool_prefix"; then
3438     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3439 set dummy ${ac_tool_prefix}cc; ac_word=$2
3440 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3441 $as_echo_n "checking for $ac_word... " >&6; }
3442 if test "${ac_cv_prog_CC+set}" = set; then :
3443   $as_echo_n "(cached) " >&6
3444 else
3445   if test -n "$CC"; then
3446   ac_cv_prog_CC="$CC" # Let the user override the test.
3447 else
3448 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3449 for as_dir in $PATH
3450 do
3451   IFS=$as_save_IFS
3452   test -z "$as_dir" && as_dir=.
3453     for ac_exec_ext in '' $ac_executable_extensions; do
3454   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3455     ac_cv_prog_CC="${ac_tool_prefix}cc"
3456     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3457     break 2
3458   fi
3459 done
3460   done
3461 IFS=$as_save_IFS
3462
3463 fi
3464 fi
3465 CC=$ac_cv_prog_CC
3466 if test -n "$CC"; then
3467   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3468 $as_echo "$CC" >&6; }
3469 else
3470   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3471 $as_echo "no" >&6; }
3472 fi
3473
3474
3475   fi
3476 fi
3477 if test -z "$CC"; then
3478   # Extract the first word of "cc", so it can be a program name with args.
3479 set dummy cc; ac_word=$2
3480 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3481 $as_echo_n "checking for $ac_word... " >&6; }
3482 if test "${ac_cv_prog_CC+set}" = set; then :
3483   $as_echo_n "(cached) " >&6
3484 else
3485   if test -n "$CC"; then
3486   ac_cv_prog_CC="$CC" # Let the user override the test.
3487 else
3488   ac_prog_rejected=no
3489 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3490 for as_dir in $PATH
3491 do
3492   IFS=$as_save_IFS
3493   test -z "$as_dir" && as_dir=.
3494     for ac_exec_ext in '' $ac_executable_extensions; do
3495   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3496     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3497        ac_prog_rejected=yes
3498        continue
3499      fi
3500     ac_cv_prog_CC="cc"
3501     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3502     break 2
3503   fi
3504 done
3505   done
3506 IFS=$as_save_IFS
3507
3508 if test $ac_prog_rejected = yes; then
3509   # We found a bogon in the path, so make sure we never use it.
3510   set dummy $ac_cv_prog_CC
3511   shift
3512   if test $# != 0; then
3513     # We chose a different compiler from the bogus one.
3514     # However, it has the same basename, so the bogon will be chosen
3515     # first if we set CC to just the basename; use the full file name.
3516     shift
3517     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3518   fi
3519 fi
3520 fi
3521 fi
3522 CC=$ac_cv_prog_CC
3523 if test -n "$CC"; then
3524   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3525 $as_echo "$CC" >&6; }
3526 else
3527   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3528 $as_echo "no" >&6; }
3529 fi
3530
3531
3532 fi
3533 if test -z "$CC"; then
3534   if test -n "$ac_tool_prefix"; then
3535   for ac_prog in cl.exe
3536   do
3537     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3538 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3539 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3540 $as_echo_n "checking for $ac_word... " >&6; }
3541 if test "${ac_cv_prog_CC+set}" = set; then :
3542   $as_echo_n "(cached) " >&6
3543 else
3544   if test -n "$CC"; then
3545   ac_cv_prog_CC="$CC" # Let the user override the test.
3546 else
3547 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3548 for as_dir in $PATH
3549 do
3550   IFS=$as_save_IFS
3551   test -z "$as_dir" && as_dir=.
3552     for ac_exec_ext in '' $ac_executable_extensions; do
3553   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3554     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3555     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3556     break 2
3557   fi
3558 done
3559   done
3560 IFS=$as_save_IFS
3561
3562 fi
3563 fi
3564 CC=$ac_cv_prog_CC
3565 if test -n "$CC"; then
3566   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3567 $as_echo "$CC" >&6; }
3568 else
3569   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3570 $as_echo "no" >&6; }
3571 fi
3572
3573
3574     test -n "$CC" && break
3575   done
3576 fi
3577 if test -z "$CC"; then
3578   ac_ct_CC=$CC
3579   for ac_prog in cl.exe
3580 do
3581   # Extract the first word of "$ac_prog", so it can be a program name with args.
3582 set dummy $ac_prog; ac_word=$2
3583 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3584 $as_echo_n "checking for $ac_word... " >&6; }
3585 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3586   $as_echo_n "(cached) " >&6
3587 else
3588   if test -n "$ac_ct_CC"; then
3589   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3590 else
3591 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3592 for as_dir in $PATH
3593 do
3594   IFS=$as_save_IFS
3595   test -z "$as_dir" && as_dir=.
3596     for ac_exec_ext in '' $ac_executable_extensions; do
3597   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3598     ac_cv_prog_ac_ct_CC="$ac_prog"
3599     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3600     break 2
3601   fi
3602 done
3603   done
3604 IFS=$as_save_IFS
3605
3606 fi
3607 fi
3608 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3609 if test -n "$ac_ct_CC"; then
3610   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3611 $as_echo "$ac_ct_CC" >&6; }
3612 else
3613   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3614 $as_echo "no" >&6; }
3615 fi
3616
3617
3618   test -n "$ac_ct_CC" && break
3619 done
3620
3621   if test "x$ac_ct_CC" = x; then
3622     CC=""
3623   else
3624     case $cross_compiling:$ac_tool_warned in
3625 yes:)
3626 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3627 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3628 ac_tool_warned=yes ;;
3629 esac
3630     CC=$ac_ct_CC
3631   fi
3632 fi
3633
3634 fi
3635
3636
3637 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3638 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3639 as_fn_error "no acceptable C compiler found in \$PATH
3640 See \`config.log' for more details." "$LINENO" 5; }
3641
3642 # Provide some information about the compiler.
3643 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3644 set X $ac_compile
3645 ac_compiler=$2
3646 for ac_option in --version -v -V -qversion; do
3647   { { ac_try="$ac_compiler $ac_option >&5"
3648 case "(($ac_try" in
3649   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3650   *) ac_try_echo=$ac_try;;
3651 esac
3652 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3653 $as_echo "$ac_try_echo"; } >&5
3654   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3655   ac_status=$?
3656   if test -s conftest.err; then
3657     sed '10a\
3658 ... rest of stderr output deleted ...
3659          10q' conftest.err >conftest.er1
3660     cat conftest.er1 >&5
3661   fi
3662   rm -f conftest.er1 conftest.err
3663   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3664   test $ac_status = 0; }
3665 done
3666
3667 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3668 /* end confdefs.h.  */
3669
3670 int
3671 main ()
3672 {
3673
3674   ;
3675   return 0;
3676 }
3677 _ACEOF
3678 ac_clean_files_save=$ac_clean_files
3679 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3680 # Try to create an executable without -o first, disregard a.out.
3681 # It will help us diagnose broken compilers, and finding out an intuition
3682 # of exeext.
3683 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3684 $as_echo_n "checking whether the C compiler works... " >&6; }
3685 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3686
3687 # The possible output files:
3688 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3689
3690 ac_rmfiles=
3691 for ac_file in $ac_files
3692 do
3693   case $ac_file in
3694     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3695     * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3696   esac
3697 done
3698 rm -f $ac_rmfiles
3699
3700 if { { ac_try="$ac_link_default"
3701 case "(($ac_try" in
3702   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3703   *) ac_try_echo=$ac_try;;
3704 esac
3705 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3706 $as_echo "$ac_try_echo"; } >&5
3707   (eval "$ac_link_default") 2>&5
3708   ac_status=$?
3709   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3710   test $ac_status = 0; }; then :
3711   # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3712 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3713 # in a Makefile.  We should not override ac_cv_exeext if it was cached,
3714 # so that the user can short-circuit this test for compilers unknown to
3715 # Autoconf.
3716 for ac_file in $ac_files ''
3717 do
3718   test -f "$ac_file" || continue
3719   case $ac_file in
3720     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3721         ;;
3722     [ab].out )
3723         # We found the default executable, but exeext='' is most
3724         # certainly right.
3725         break;;
3726     *.* )
3727         if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3728         then :; else
3729            ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3730         fi
3731         # We set ac_cv_exeext here because the later test for it is not
3732         # safe: cross compilers may not add the suffix if given an `-o'
3733         # argument, so we may need to know it at that point already.
3734         # Even if this section looks crufty: it has the advantage of
3735         # actually working.
3736         break;;
3737     * )
3738         break;;
3739   esac
3740 done
3741 test "$ac_cv_exeext" = no && ac_cv_exeext=
3742
3743 else
3744   ac_file=''
3745 fi
3746 if test -z "$ac_file"; then :
3747   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3748 $as_echo "no" >&6; }
3749 $as_echo "$as_me: failed program was:" >&5
3750 sed 's/^/| /' conftest.$ac_ext >&5
3751
3752 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3753 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3754 { as_fn_set_status 77
3755 as_fn_error "C compiler cannot create executables
3756 See \`config.log' for more details." "$LINENO" 5; }; }
3757 else
3758   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3759 $as_echo "yes" >&6; }
3760 fi
3761 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3762 $as_echo_n "checking for C compiler default output file name... " >&6; }
3763 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3764 $as_echo "$ac_file" >&6; }
3765 ac_exeext=$ac_cv_exeext
3766
3767 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3768 ac_clean_files=$ac_clean_files_save
3769 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3770 $as_echo_n "checking for suffix of executables... " >&6; }
3771 if { { ac_try="$ac_link"
3772 case "(($ac_try" in
3773   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3774   *) ac_try_echo=$ac_try;;
3775 esac
3776 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3777 $as_echo "$ac_try_echo"; } >&5
3778   (eval "$ac_link") 2>&5
3779   ac_status=$?
3780   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3781   test $ac_status = 0; }; then :
3782   # If both `conftest.exe' and `conftest' are `present' (well, observable)
3783 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
3784 # work properly (i.e., refer to `conftest.exe'), while it won't with
3785 # `rm'.
3786 for ac_file in conftest.exe conftest conftest.*; do
3787   test -f "$ac_file" || continue
3788   case $ac_file in
3789     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3790     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3791           break;;
3792     * ) break;;
3793   esac
3794 done
3795 else
3796   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3797 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3798 as_fn_error "cannot compute suffix of executables: cannot compile and link
3799 See \`config.log' for more details." "$LINENO" 5; }
3800 fi
3801 rm -f conftest conftest$ac_cv_exeext
3802 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3803 $as_echo "$ac_cv_exeext" >&6; }
3804
3805 rm -f conftest.$ac_ext
3806 EXEEXT=$ac_cv_exeext
3807 ac_exeext=$EXEEXT
3808 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3809 /* end confdefs.h.  */
3810 #include <stdio.h>
3811 int
3812 main ()
3813 {
3814 FILE *f = fopen ("conftest.out", "w");
3815  return ferror (f) || fclose (f) != 0;
3816
3817   ;
3818   return 0;
3819 }
3820 _ACEOF
3821 ac_clean_files="$ac_clean_files conftest.out"
3822 # Check that the compiler produces executables we can run.  If not, either
3823 # the compiler is broken, or we cross compile.
3824 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3825 $as_echo_n "checking whether we are cross compiling... " >&6; }
3826 if test "$cross_compiling" != yes; then
3827   { { ac_try="$ac_link"
3828 case "(($ac_try" in
3829   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3830   *) ac_try_echo=$ac_try;;
3831 esac
3832 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3833 $as_echo "$ac_try_echo"; } >&5
3834   (eval "$ac_link") 2>&5
3835   ac_status=$?
3836   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3837   test $ac_status = 0; }
3838   if { ac_try='./conftest$ac_cv_exeext'
3839   { { case "(($ac_try" in
3840   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3841   *) ac_try_echo=$ac_try;;
3842 esac
3843 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3844 $as_echo "$ac_try_echo"; } >&5
3845   (eval "$ac_try") 2>&5
3846   ac_status=$?
3847   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3848   test $ac_status = 0; }; }; then
3849     cross_compiling=no
3850   else
3851     if test "$cross_compiling" = maybe; then
3852         cross_compiling=yes
3853     else
3854         { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3855 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3856 as_fn_error "cannot run C compiled programs.
3857 If you meant to cross compile, use \`--host'.
3858 See \`config.log' for more details." "$LINENO" 5; }
3859     fi
3860   fi
3861 fi
3862 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3863 $as_echo "$cross_compiling" >&6; }
3864
3865 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3866 ac_clean_files=$ac_clean_files_save
3867 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3868 $as_echo_n "checking for suffix of object files... " >&6; }
3869 if test "${ac_cv_objext+set}" = set; then :
3870   $as_echo_n "(cached) " >&6
3871 else
3872   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3873 /* end confdefs.h.  */
3874
3875 int
3876 main ()
3877 {
3878
3879   ;
3880   return 0;
3881 }
3882 _ACEOF
3883 rm -f conftest.o conftest.obj
3884 if { { ac_try="$ac_compile"
3885 case "(($ac_try" in
3886   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3887   *) ac_try_echo=$ac_try;;
3888 esac
3889 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3890 $as_echo "$ac_try_echo"; } >&5
3891   (eval "$ac_compile") 2>&5
3892   ac_status=$?
3893   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3894   test $ac_status = 0; }; then :
3895   for ac_file in conftest.o conftest.obj conftest.*; do
3896   test -f "$ac_file" || continue;
3897   case $ac_file in
3898     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3899     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3900        break;;
3901   esac
3902 done
3903 else
3904   $as_echo "$as_me: failed program was:" >&5
3905 sed 's/^/| /' conftest.$ac_ext >&5
3906
3907 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3908 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3909 as_fn_error "cannot compute suffix of object files: cannot compile
3910 See \`config.log' for more details." "$LINENO" 5; }
3911 fi
3912 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3913 fi
3914 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3915 $as_echo "$ac_cv_objext" >&6; }
3916 OBJEXT=$ac_cv_objext
3917 ac_objext=$OBJEXT
3918 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3919 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3920 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
3921   $as_echo_n "(cached) " >&6
3922 else
3923   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3924 /* end confdefs.h.  */
3925
3926 int
3927 main ()
3928 {
3929 #ifndef __GNUC__
3930        choke me
3931 #endif
3932
3933   ;
3934   return 0;
3935 }
3936 _ACEOF
3937 if ac_fn_c_try_compile "$LINENO"; then :
3938   ac_compiler_gnu=yes
3939 else
3940   ac_compiler_gnu=no
3941 fi
3942 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3943 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3944
3945 fi
3946 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3947 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3948 if test $ac_compiler_gnu = yes; then
3949   GCC=yes
3950 else
3951   GCC=
3952 fi
3953 ac_test_CFLAGS=${CFLAGS+set}
3954 ac_save_CFLAGS=$CFLAGS
3955 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3956 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3957 if test "${ac_cv_prog_cc_g+set}" = set; then :
3958   $as_echo_n "(cached) " >&6
3959 else
3960   ac_save_c_werror_flag=$ac_c_werror_flag
3961    ac_c_werror_flag=yes
3962    ac_cv_prog_cc_g=no
3963    CFLAGS="-g"
3964    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3965 /* end confdefs.h.  */
3966
3967 int
3968 main ()
3969 {
3970
3971   ;
3972   return 0;
3973 }
3974 _ACEOF
3975 if ac_fn_c_try_compile "$LINENO"; then :
3976   ac_cv_prog_cc_g=yes
3977 else
3978   CFLAGS=""
3979       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3980 /* end confdefs.h.  */
3981
3982 int
3983 main ()
3984 {
3985
3986   ;
3987   return 0;
3988 }
3989 _ACEOF
3990 if ac_fn_c_try_compile "$LINENO"; then :
3991
3992 else
3993   ac_c_werror_flag=$ac_save_c_werror_flag
3994          CFLAGS="-g"
3995          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3996 /* end confdefs.h.  */
3997
3998 int
3999 main ()
4000 {
4001
4002   ;
4003   return 0;
4004 }
4005 _ACEOF
4006 if ac_fn_c_try_compile "$LINENO"; then :
4007   ac_cv_prog_cc_g=yes
4008 fi
4009 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4010 fi
4011 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4012 fi
4013 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4014    ac_c_werror_flag=$ac_save_c_werror_flag
4015 fi
4016 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4017 $as_echo "$ac_cv_prog_cc_g" >&6; }
4018 if test "$ac_test_CFLAGS" = set; then
4019   CFLAGS=$ac_save_CFLAGS
4020 elif test $ac_cv_prog_cc_g = yes; then
4021   if test "$GCC" = yes; then
4022     CFLAGS="-g -O2"
4023   else
4024     CFLAGS="-g"
4025   fi
4026 else
4027   if test "$GCC" = yes; then
4028     CFLAGS="-O2"
4029   else
4030     CFLAGS=
4031   fi
4032 fi
4033 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4034 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4035 if test "${ac_cv_prog_cc_c89+set}" = set; then :
4036   $as_echo_n "(cached) " >&6
4037 else
4038   ac_cv_prog_cc_c89=no
4039 ac_save_CC=$CC
4040 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4041 /* end confdefs.h.  */
4042 #include <stdarg.h>
4043 #include <stdio.h>
4044 #include <sys/types.h>
4045 #include <sys/stat.h>
4046 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
4047 struct buf { int x; };
4048 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4049 static char *e (p, i)
4050      char **p;
4051      int i;
4052 {
4053   return p[i];
4054 }
4055 static char *f (char * (*g) (char **, int), char **p, ...)
4056 {
4057   char *s;
4058   va_list v;
4059   va_start (v,p);
4060   s = g (p, va_arg (v,int));
4061   va_end (v);
4062   return s;
4063 }
4064
4065 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
4066    function prototypes and stuff, but not '\xHH' hex character constants.
4067    These don't provoke an error unfortunately, instead are silently treated
4068    as 'x'.  The following induces an error, until -std is added to get
4069    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
4070    array size at least.  It's necessary to write '\x00'==0 to get something
4071    that's true only with -std.  */
4072 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4073
4074 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4075    inside strings and character constants.  */
4076 #define FOO(x) 'x'
4077 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4078
4079 int test (int i, double x);
4080 struct s1 {int (*f) (int a);};
4081 struct s2 {int (*f) (double a);};
4082 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4083 int argc;
4084 char **argv;
4085 int
4086 main ()
4087 {
4088 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
4089   ;
4090   return 0;
4091 }
4092 _ACEOF
4093 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4094         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4095 do
4096   CC="$ac_save_CC $ac_arg"
4097   if ac_fn_c_try_compile "$LINENO"; then :
4098   ac_cv_prog_cc_c89=$ac_arg
4099 fi
4100 rm -f core conftest.err conftest.$ac_objext
4101   test "x$ac_cv_prog_cc_c89" != "xno" && break
4102 done
4103 rm -f conftest.$ac_ext
4104 CC=$ac_save_CC
4105
4106 fi
4107 # AC_CACHE_VAL
4108 case "x$ac_cv_prog_cc_c89" in
4109   x)
4110     { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4111 $as_echo "none needed" >&6; } ;;
4112   xno)
4113     { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4114 $as_echo "unsupported" >&6; } ;;
4115   *)
4116     CC="$CC $ac_cv_prog_cc_c89"
4117     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4118 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4119 esac
4120 if test "x$ac_cv_prog_cc_c89" != xno; then :
4121
4122 fi
4123
4124 ac_ext=c
4125 ac_cpp='$CPP $CPPFLAGS'
4126 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4127 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4128 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4129
4130 ac_ext=cpp
4131 ac_cpp='$CXXCPP $CPPFLAGS'
4132 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4133 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4134 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4135 if test -z "$CXX"; then
4136   if test -n "$CCC"; then
4137     CXX=$CCC
4138   else
4139     if test -n "$ac_tool_prefix"; then
4140   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4141   do
4142     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4143 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4144 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4145 $as_echo_n "checking for $ac_word... " >&6; }
4146 if test "${ac_cv_prog_CXX+set}" = set; then :
4147   $as_echo_n "(cached) " >&6
4148 else
4149   if test -n "$CXX"; then
4150   ac_cv_prog_CXX="$CXX" # Let the user override the test.
4151 else
4152 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4153 for as_dir in $PATH
4154 do
4155   IFS=$as_save_IFS
4156   test -z "$as_dir" && as_dir=.
4157     for ac_exec_ext in '' $ac_executable_extensions; do
4158   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4159     ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
4160     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4161     break 2
4162   fi
4163 done
4164   done
4165 IFS=$as_save_IFS
4166
4167 fi
4168 fi
4169 CXX=$ac_cv_prog_CXX
4170 if test -n "$CXX"; then
4171   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
4172 $as_echo "$CXX" >&6; }
4173 else
4174   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4175 $as_echo "no" >&6; }
4176 fi
4177
4178
4179     test -n "$CXX" && break
4180   done
4181 fi
4182 if test -z "$CXX"; then
4183   ac_ct_CXX=$CXX
4184   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4185 do
4186   # Extract the first word of "$ac_prog", so it can be a program name with args.
4187 set dummy $ac_prog; ac_word=$2
4188 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4189 $as_echo_n "checking for $ac_word... " >&6; }
4190 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then :
4191   $as_echo_n "(cached) " >&6
4192 else
4193   if test -n "$ac_ct_CXX"; then
4194   ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
4195 else
4196 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4197 for as_dir in $PATH
4198 do
4199   IFS=$as_save_IFS
4200   test -z "$as_dir" && as_dir=.
4201     for ac_exec_ext in '' $ac_executable_extensions; do
4202   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4203     ac_cv_prog_ac_ct_CXX="$ac_prog"
4204     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4205     break 2
4206   fi
4207 done
4208   done
4209 IFS=$as_save_IFS
4210
4211 fi
4212 fi
4213 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
4214 if test -n "$ac_ct_CXX"; then
4215   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
4216 $as_echo "$ac_ct_CXX" >&6; }
4217 else
4218   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4219 $as_echo "no" >&6; }
4220 fi
4221
4222
4223   test -n "$ac_ct_CXX" && break
4224 done
4225
4226   if test "x$ac_ct_CXX" = x; then
4227     CXX="g++"
4228   else
4229     case $cross_compiling:$ac_tool_warned in
4230 yes:)
4231 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4232 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4233 ac_tool_warned=yes ;;
4234 esac
4235     CXX=$ac_ct_CXX
4236   fi
4237 fi
4238
4239   fi
4240 fi
4241 # Provide some information about the compiler.
4242 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
4243 set X $ac_compile
4244 ac_compiler=$2
4245 for ac_option in --version -v -V -qversion; do
4246   { { ac_try="$ac_compiler $ac_option >&5"
4247 case "(($ac_try" in
4248   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4249   *) ac_try_echo=$ac_try;;
4250 esac
4251 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4252 $as_echo "$ac_try_echo"; } >&5
4253   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4254   ac_status=$?
4255   if test -s conftest.err; then
4256     sed '10a\
4257 ... rest of stderr output deleted ...
4258          10q' conftest.err >conftest.er1
4259     cat conftest.er1 >&5
4260   fi
4261   rm -f conftest.er1 conftest.err
4262   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4263   test $ac_status = 0; }
4264 done
4265
4266 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
4267 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
4268 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then :
4269   $as_echo_n "(cached) " >&6
4270 else
4271   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4272 /* end confdefs.h.  */
4273
4274 int
4275 main ()
4276 {
4277 #ifndef __GNUC__
4278        choke me
4279 #endif
4280
4281   ;
4282   return 0;
4283 }
4284 _ACEOF
4285 if ac_fn_cxx_try_compile "$LINENO"; then :
4286   ac_compiler_gnu=yes
4287 else
4288   ac_compiler_gnu=no
4289 fi
4290 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4291 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
4292
4293 fi
4294 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
4295 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
4296 if test $ac_compiler_gnu = yes; then
4297   GXX=yes
4298 else
4299   GXX=
4300 fi
4301 ac_test_CXXFLAGS=${CXXFLAGS+set}
4302 ac_save_CXXFLAGS=$CXXFLAGS
4303 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
4304 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
4305 if test "${ac_cv_prog_cxx_g+set}" = set; then :
4306   $as_echo_n "(cached) " >&6
4307 else
4308   ac_save_cxx_werror_flag=$ac_cxx_werror_flag
4309    ac_cxx_werror_flag=yes
4310    ac_cv_prog_cxx_g=no
4311    CXXFLAGS="-g"
4312    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4313 /* end confdefs.h.  */
4314
4315 int
4316 main ()
4317 {
4318
4319   ;
4320   return 0;
4321 }
4322 _ACEOF
4323 if ac_fn_cxx_try_compile "$LINENO"; then :
4324   ac_cv_prog_cxx_g=yes
4325 else
4326   CXXFLAGS=""
4327       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4328 /* end confdefs.h.  */
4329
4330 int
4331 main ()
4332 {
4333
4334   ;
4335   return 0;
4336 }
4337 _ACEOF
4338 if ac_fn_cxx_try_compile "$LINENO"; then :
4339
4340 else
4341   ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4342          CXXFLAGS="-g"
4343          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4344 /* end confdefs.h.  */
4345
4346 int
4347 main ()
4348 {
4349
4350   ;
4351   return 0;
4352 }
4353 _ACEOF
4354 if ac_fn_cxx_try_compile "$LINENO"; then :
4355   ac_cv_prog_cxx_g=yes
4356 fi
4357 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4358 fi
4359 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4360 fi
4361 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4362    ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4363 fi
4364 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
4365 $as_echo "$ac_cv_prog_cxx_g" >&6; }
4366 if test "$ac_test_CXXFLAGS" = set; then
4367   CXXFLAGS=$ac_save_CXXFLAGS
4368 elif test $ac_cv_prog_cxx_g = yes; then
4369   if test "$GXX" = yes; then
4370     CXXFLAGS="-g -O2"
4371   else
4372     CXXFLAGS="-g"
4373   fi
4374 else
4375   if test "$GXX" = yes; then
4376     CXXFLAGS="-O2"
4377   else
4378     CXXFLAGS=
4379   fi
4380 fi
4381 ac_ext=c
4382 ac_cpp='$CPP $CPPFLAGS'
4383 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4384 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4385 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4386
4387 if test "x$CC" != xcc; then
4388   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC and cc understand -c and -o together" >&5
4389 $as_echo_n "checking whether $CC and cc understand -c and -o together... " >&6; }
4390 else
4391   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether cc understands -c and -o together" >&5
4392 $as_echo_n "checking whether cc understands -c and -o together... " >&6; }
4393 fi
4394 set dummy $CC; ac_cc=`$as_echo "$2" |
4395                       sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
4396 if { as_var=ac_cv_prog_cc_${ac_cc}_c_o; eval "test \"\${$as_var+set}\" = set"; }; then :
4397   $as_echo_n "(cached) " >&6
4398 else
4399   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4400 /* end confdefs.h.  */
4401
4402 int
4403 main ()
4404 {
4405
4406   ;
4407   return 0;
4408 }
4409 _ACEOF
4410 # Make sure it works both with $CC and with simple cc.
4411 # We do the test twice because some compilers refuse to overwrite an
4412 # existing .o file with -o, though they will create one.
4413 ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
4414 rm -f conftest2.*
4415 if { { case "(($ac_try" in
4416   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4417   *) ac_try_echo=$ac_try;;
4418 esac
4419 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4420 $as_echo "$ac_try_echo"; } >&5
4421   (eval "$ac_try") 2>&5
4422   ac_status=$?
4423   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4424   test $ac_status = 0; } &&
4425    test -f conftest2.$ac_objext && { { case "(($ac_try" in
4426   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4427   *) ac_try_echo=$ac_try;;
4428 esac
4429 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4430 $as_echo "$ac_try_echo"; } >&5
4431   (eval "$ac_try") 2>&5
4432   ac_status=$?
4433   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4434   test $ac_status = 0; };
4435 then
4436   eval ac_cv_prog_cc_${ac_cc}_c_o=yes
4437   if test "x$CC" != xcc; then
4438     # Test first that cc exists at all.
4439     if { ac_try='cc -c conftest.$ac_ext >&5'
4440   { { case "(($ac_try" in
4441   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4442   *) ac_try_echo=$ac_try;;
4443 esac
4444 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4445 $as_echo "$ac_try_echo"; } >&5
4446   (eval "$ac_try") 2>&5
4447   ac_status=$?
4448   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4449   test $ac_status = 0; }; }; then
4450       ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
4451       rm -f conftest2.*
4452       if { { case "(($ac_try" in
4453   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4454   *) ac_try_echo=$ac_try;;
4455 esac
4456 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4457 $as_echo "$ac_try_echo"; } >&5
4458   (eval "$ac_try") 2>&5
4459   ac_status=$?
4460   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4461   test $ac_status = 0; } &&
4462          test -f conftest2.$ac_objext && { { case "(($ac_try" in
4463   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4464   *) ac_try_echo=$ac_try;;
4465 esac
4466 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4467 $as_echo "$ac_try_echo"; } >&5
4468   (eval "$ac_try") 2>&5
4469   ac_status=$?
4470   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4471   test $ac_status = 0; };
4472       then
4473         # cc works too.
4474         :
4475       else
4476         # cc exists but doesn't like -o.
4477         eval ac_cv_prog_cc_${ac_cc}_c_o=no
4478       fi
4479     fi
4480   fi
4481 else
4482   eval ac_cv_prog_cc_${ac_cc}_c_o=no
4483 fi
4484 rm -f core conftest*
4485
4486 fi
4487 if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then
4488   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4489 $as_echo "yes" >&6; }
4490 else
4491   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4492 $as_echo "no" >&6; }
4493
4494 $as_echo "#define NO_MINUS_C_MINUS_O 1" >>confdefs.h
4495
4496 fi
4497
4498 ac_ext=c
4499 ac_cpp='$CPP $CPPFLAGS'
4500 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4501 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4502 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4503 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4504 $as_echo_n "checking how to run the C preprocessor... " >&6; }
4505 # On Suns, sometimes $CPP names a directory.
4506 if test -n "$CPP" && test -d "$CPP"; then
4507   CPP=
4508 fi
4509 if test -z "$CPP"; then
4510   if test "${ac_cv_prog_CPP+set}" = set; then :
4511   $as_echo_n "(cached) " >&6
4512 else
4513       # Double quotes because CPP needs to be expanded
4514     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4515     do
4516       ac_preproc_ok=false
4517 for ac_c_preproc_warn_flag in '' yes
4518 do
4519   # Use a header file that comes with gcc, so configuring glibc
4520   # with a fresh cross-compiler works.
4521   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4522   # <limits.h> exists even on freestanding compilers.
4523   # On the NeXT, cc -E runs the code through the compiler's parser,
4524   # not just through cpp. "Syntax error" is here to catch this case.
4525   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4526 /* end confdefs.h.  */
4527 #ifdef __STDC__
4528 # include <limits.h>
4529 #else
4530 # include <assert.h>
4531 #endif
4532                      Syntax error
4533 _ACEOF
4534 if ac_fn_c_try_cpp "$LINENO"; then :
4535
4536 else
4537   # Broken: fails on valid input.
4538 continue
4539 fi
4540 rm -f conftest.err conftest.$ac_ext
4541
4542   # OK, works on sane cases.  Now check whether nonexistent headers
4543   # can be detected and how.
4544   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4545 /* end confdefs.h.  */
4546 #include <ac_nonexistent.h>
4547 _ACEOF
4548 if ac_fn_c_try_cpp "$LINENO"; then :
4549   # Broken: success on invalid input.
4550 continue
4551 else
4552   # Passes both tests.
4553 ac_preproc_ok=:
4554 break
4555 fi
4556 rm -f conftest.err conftest.$ac_ext
4557
4558 done
4559 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4560 rm -f conftest.err conftest.$ac_ext
4561 if $ac_preproc_ok; then :
4562   break
4563 fi
4564
4565     done
4566     ac_cv_prog_CPP=$CPP
4567
4568 fi
4569   CPP=$ac_cv_prog_CPP
4570 else
4571   ac_cv_prog_CPP=$CPP
4572 fi
4573 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4574 $as_echo "$CPP" >&6; }
4575 ac_preproc_ok=false
4576 for ac_c_preproc_warn_flag in '' yes
4577 do
4578   # Use a header file that comes with gcc, so configuring glibc
4579   # with a fresh cross-compiler works.
4580   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4581   # <limits.h> exists even on freestanding compilers.
4582   # On the NeXT, cc -E runs the code through the compiler's parser,
4583   # not just through cpp. "Syntax error" is here to catch this case.
4584   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4585 /* end confdefs.h.  */
4586 #ifdef __STDC__
4587 # include <limits.h>
4588 #else
4589 # include <assert.h>
4590 #endif
4591                      Syntax error
4592 _ACEOF
4593 if ac_fn_c_try_cpp "$LINENO"; then :
4594
4595 else
4596   # Broken: fails on valid input.
4597 continue
4598 fi
4599 rm -f conftest.err conftest.$ac_ext
4600
4601   # OK, works on sane cases.  Now check whether nonexistent headers
4602   # can be detected and how.
4603   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4604 /* end confdefs.h.  */
4605 #include <ac_nonexistent.h>
4606 _ACEOF
4607 if ac_fn_c_try_cpp "$LINENO"; then :
4608   # Broken: success on invalid input.
4609 continue
4610 else
4611   # Passes both tests.
4612 ac_preproc_ok=:
4613 break
4614 fi
4615 rm -f conftest.err conftest.$ac_ext
4616
4617 done
4618 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4619 rm -f conftest.err conftest.$ac_ext
4620 if $ac_preproc_ok; then :
4621
4622 else
4623   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4624 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4625 as_fn_error "C preprocessor \"$CPP\" fails sanity check
4626 See \`config.log' for more details." "$LINENO" 5; }
4627 fi
4628
4629 ac_ext=c
4630 ac_cpp='$CPP $CPPFLAGS'
4631 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4632 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4633 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4634
4635
4636 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4637 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4638 if test "${ac_cv_path_GREP+set}" = set; then :
4639   $as_echo_n "(cached) " >&6
4640 else
4641   if test -z "$GREP"; then
4642   ac_path_GREP_found=false
4643   # Loop through the user's path and test for each of PROGNAME-LIST
4644   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4645 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4646 do
4647   IFS=$as_save_IFS
4648   test -z "$as_dir" && as_dir=.
4649     for ac_prog in grep ggrep; do
4650     for ac_exec_ext in '' $ac_executable_extensions; do
4651       ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4652       { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4653 # Check for GNU ac_path_GREP and select it if it is found.
4654   # Check for GNU $ac_path_GREP
4655 case `"$ac_path_GREP" --version 2>&1` in
4656 *GNU*)
4657   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4658 *)
4659   ac_count=0
4660   $as_echo_n 0123456789 >"conftest.in"
4661   while :
4662   do
4663     cat "conftest.in" "conftest.in" >"conftest.tmp"
4664     mv "conftest.tmp" "conftest.in"
4665     cp "conftest.in" "conftest.nl"
4666     $as_echo 'GREP' >> "conftest.nl"
4667     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4668     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4669     as_fn_arith $ac_count + 1 && ac_count=$as_val
4670     if test $ac_count -gt ${ac_path_GREP_max-0}; then
4671       # Best one so far, save it but keep looking for a better one
4672       ac_cv_path_GREP="$ac_path_GREP"
4673       ac_path_GREP_max=$ac_count
4674     fi
4675     # 10*(2^10) chars as input seems more than enough
4676     test $ac_count -gt 10 && break
4677   done
4678   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4679 esac
4680
4681       $ac_path_GREP_found && break 3
4682     done
4683   done
4684   done
4685 IFS=$as_save_IFS
4686   if test -z "$ac_cv_path_GREP"; then
4687     as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4688   fi
4689 else
4690   ac_cv_path_GREP=$GREP
4691 fi
4692
4693 fi
4694 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4695 $as_echo "$ac_cv_path_GREP" >&6; }
4696  GREP="$ac_cv_path_GREP"
4697
4698
4699 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4700 $as_echo_n "checking for egrep... " >&6; }
4701 if test "${ac_cv_path_EGREP+set}" = set; then :
4702   $as_echo_n "(cached) " >&6
4703 else
4704   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4705    then ac_cv_path_EGREP="$GREP -E"
4706    else
4707      if test -z "$EGREP"; then
4708   ac_path_EGREP_found=false
4709   # Loop through the user's path and test for each of PROGNAME-LIST
4710   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4711 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4712 do
4713   IFS=$as_save_IFS
4714   test -z "$as_dir" && as_dir=.
4715     for ac_prog in egrep; do
4716     for ac_exec_ext in '' $ac_executable_extensions; do
4717       ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4718       { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4719 # Check for GNU ac_path_EGREP and select it if it is found.
4720   # Check for GNU $ac_path_EGREP
4721 case `"$ac_path_EGREP" --version 2>&1` in
4722 *GNU*)
4723   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4724 *)
4725   ac_count=0
4726   $as_echo_n 0123456789 >"conftest.in"
4727   while :
4728   do
4729     cat "conftest.in" "conftest.in" >"conftest.tmp"
4730     mv "conftest.tmp" "conftest.in"
4731     cp "conftest.in" "conftest.nl"
4732     $as_echo 'EGREP' >> "conftest.nl"
4733     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4734     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4735     as_fn_arith $ac_count + 1 && ac_count=$as_val
4736     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4737       # Best one so far, save it but keep looking for a better one
4738       ac_cv_path_EGREP="$ac_path_EGREP"
4739       ac_path_EGREP_max=$ac_count
4740     fi
4741     # 10*(2^10) chars as input seems more than enough
4742     test $ac_count -gt 10 && break
4743   done
4744   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4745 esac
4746
4747       $ac_path_EGREP_found && break 3
4748     done
4749   done
4750   done
4751 IFS=$as_save_IFS
4752   if test -z "$ac_cv_path_EGREP"; then
4753     as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4754   fi
4755 else
4756   ac_cv_path_EGREP=$EGREP
4757 fi
4758
4759    fi
4760 fi
4761 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4762 $as_echo "$ac_cv_path_EGREP" >&6; }
4763  EGREP="$ac_cv_path_EGREP"
4764
4765
4766 if test $ac_cv_c_compiler_gnu = yes; then
4767     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC needs -traditional" >&5
4768 $as_echo_n "checking whether $CC needs -traditional... " >&6; }
4769 if test "${ac_cv_prog_gcc_traditional+set}" = set; then :
4770   $as_echo_n "(cached) " >&6
4771 else
4772     ac_pattern="Autoconf.*'x'"
4773   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4774 /* end confdefs.h.  */
4775 #include <sgtty.h>
4776 Autoconf TIOCGETP
4777 _ACEOF
4778 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4779   $EGREP "$ac_pattern" >/dev/null 2>&1; then :
4780   ac_cv_prog_gcc_traditional=yes
4781 else
4782   ac_cv_prog_gcc_traditional=no
4783 fi
4784 rm -f conftest*
4785
4786
4787   if test $ac_cv_prog_gcc_traditional = no; then
4788     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4789 /* end confdefs.h.  */
4790 #include <termio.h>
4791 Autoconf TCGETA
4792 _ACEOF
4793 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4794   $EGREP "$ac_pattern" >/dev/null 2>&1; then :
4795   ac_cv_prog_gcc_traditional=yes
4796 fi
4797 rm -f conftest*
4798
4799   fi
4800 fi
4801 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_gcc_traditional" >&5
4802 $as_echo "$ac_cv_prog_gcc_traditional" >&6; }
4803   if test $ac_cv_prog_gcc_traditional = yes; then
4804     CC="$CC -traditional"
4805   fi
4806 fi
4807
4808 BASECC=`basename $CC`
4809 have_gcc=no
4810 if test "x$BASECC" = xgcc; then
4811    $as_echo "#define HAVE_GCC 1" >>confdefs.h
4812
4813    have_gcc=yes
4814 fi
4815 # Extract the first word of "$CXX", so it can be a program name with args.
4816 set dummy $CXX; ac_word=$2
4817 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4818 $as_echo_n "checking for $ac_word... " >&6; }
4819 if test "${ac_cv_path_CXX+set}" = set; then :
4820   $as_echo_n "(cached) " >&6
4821 else
4822   case $CXX in
4823   [\\/]* | ?:[\\/]*)
4824   ac_cv_path_CXX="$CXX" # Let the user override the test with a path.
4825   ;;
4826   *)
4827   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4828 for as_dir in $PATH
4829 do
4830   IFS=$as_save_IFS
4831   test -z "$as_dir" && as_dir=.
4832     for ac_exec_ext in '' $ac_executable_extensions; do
4833   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4834     ac_cv_path_CXX="$as_dir/$ac_word$ac_exec_ext"
4835     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4836     break 2
4837   fi
4838 done
4839   done
4840 IFS=$as_save_IFS
4841
4842   test -z "$ac_cv_path_CXX" && ac_cv_path_CXX="$CXX"
4843   ;;
4844 esac
4845 fi
4846 CXX=$ac_cv_path_CXX
4847 if test -n "$CXX"; then
4848   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
4849 $as_echo "$CXX" >&6; }
4850 else
4851   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4852 $as_echo "no" >&6; }
4853 fi
4854
4855
4856 if test ! -e $CXX; then
4857    as_fn_error "Unable to find C++ compiler" "$LINENO" 5
4858 fi
4859
4860 # Find a good install program.  We prefer a C program (faster),
4861 # so one script is as good as another.  But avoid the broken or
4862 # incompatible versions:
4863 # SysV /etc/install, /usr/sbin/install
4864 # SunOS /usr/etc/install
4865 # IRIX /sbin/install
4866 # AIX /bin/install
4867 # AmigaOS /C/install, which installs bootblocks on floppy discs
4868 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
4869 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
4870 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
4871 # OS/2's system install, which has a completely different semantic
4872 # ./install, which can be erroneously created by make from ./install.sh.
4873 # Reject install programs that cannot install multiple files.
4874 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
4875 $as_echo_n "checking for a BSD-compatible install... " >&6; }
4876 if test -z "$INSTALL"; then
4877 if test "${ac_cv_path_install+set}" = set; then :
4878   $as_echo_n "(cached) " >&6
4879 else
4880   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4881 for as_dir in $PATH
4882 do
4883   IFS=$as_save_IFS
4884   test -z "$as_dir" && as_dir=.
4885     # Account for people who put trailing slashes in PATH elements.
4886 case $as_dir/ in #((
4887   ./ | .// | /[cC]/* | \
4888   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
4889   ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
4890   /usr/ucb/* ) ;;
4891   *)
4892     # OSF1 and SCO ODT 3.0 have their own names for install.
4893     # Don't use installbsd from OSF since it installs stuff as root
4894     # by default.
4895     for ac_prog in ginstall scoinst install; do
4896       for ac_exec_ext in '' $ac_executable_extensions; do
4897         if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
4898           if test $ac_prog = install &&
4899             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4900             # AIX install.  It has an incompatible calling convention.
4901             :
4902           elif test $ac_prog = install &&
4903             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4904             # program-specific install script used by HP pwplus--don't use.
4905             :
4906           else
4907             rm -rf conftest.one conftest.two conftest.dir
4908             echo one > conftest.one
4909             echo two > conftest.two
4910             mkdir conftest.dir
4911             if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
4912               test -s conftest.one && test -s conftest.two &&
4913               test -s conftest.dir/conftest.one &&
4914               test -s conftest.dir/conftest.two
4915             then
4916               ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
4917               break 3
4918             fi
4919           fi
4920         fi
4921       done
4922     done
4923     ;;
4924 esac
4925
4926   done
4927 IFS=$as_save_IFS
4928
4929 rm -rf conftest.one conftest.two conftest.dir
4930
4931 fi
4932   if test "${ac_cv_path_install+set}" = set; then
4933     INSTALL=$ac_cv_path_install
4934   else
4935     # As a last resort, use the slow shell script.  Don't cache a
4936     # value for INSTALL within a source directory, because that will
4937     # break other packages using the cache if that directory is
4938     # removed, or if the value is a relative name.
4939     INSTALL=$ac_install_sh
4940   fi
4941 fi
4942 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
4943 $as_echo "$INSTALL" >&6; }
4944
4945 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
4946 # It thinks the first close brace ends the variable substitution.
4947 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
4948
4949 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
4950
4951 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
4952
4953 # Extract the first word of "mv", so it can be a program name with args.
4954 set dummy mv; ac_word=$2
4955 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4956 $as_echo_n "checking for $ac_word... " >&6; }
4957 if test "${ac_cv_path_MV+set}" = set; then :
4958   $as_echo_n "(cached) " >&6
4959 else
4960   case $MV in
4961   [\\/]* | ?:[\\/]*)
4962   ac_cv_path_MV="$MV" # Let the user override the test with a path.
4963   ;;
4964   *)
4965   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4966 for as_dir in $PATH
4967 do
4968   IFS=$as_save_IFS
4969   test -z "$as_dir" && as_dir=.
4970     for ac_exec_ext in '' $ac_executable_extensions; do
4971   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4972     ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
4973     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4974     break 2
4975   fi
4976 done
4977   done
4978 IFS=$as_save_IFS
4979
4980   test -z "$ac_cv_path_MV" && ac_cv_path_MV="mv"
4981   ;;
4982 esac
4983 fi
4984 MV=$ac_cv_path_MV
4985 if test -n "$MV"; then
4986   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MV" >&5
4987 $as_echo "$MV" >&6; }
4988 else
4989   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4990 $as_echo "no" >&6; }
4991 fi
4992
4993
4994 # Extract the first word of "rm", so it can be a program name with args.
4995 set dummy rm; ac_word=$2
4996 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4997 $as_echo_n "checking for $ac_word... " >&6; }
4998 if test "${ac_cv_path_REMOVE+set}" = set; then :
4999   $as_echo_n "(cached) " >&6
5000 else
5001   case $REMOVE in
5002   [\\/]* | ?:[\\/]*)
5003   ac_cv_path_REMOVE="$REMOVE" # Let the user override the test with a path.
5004   ;;
5005   *)
5006   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5007 for as_dir in $PATH
5008 do
5009   IFS=$as_save_IFS
5010   test -z "$as_dir" && as_dir=.
5011     for ac_exec_ext in '' $ac_executable_extensions; do
5012   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5013     ac_cv_path_REMOVE="$as_dir/$ac_word$ac_exec_ext"
5014     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5015     break 2
5016   fi
5017 done
5018   done
5019 IFS=$as_save_IFS
5020
5021   test -z "$ac_cv_path_REMOVE" && ac_cv_path_REMOVE="rm"
5022   ;;
5023 esac
5024 fi
5025 REMOVE=$ac_cv_path_REMOVE
5026 if test -n "$REMOVE"; then
5027   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $REMOVE" >&5
5028 $as_echo "$REMOVE" >&6; }
5029 else
5030   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5031 $as_echo "no" >&6; }
5032 fi
5033
5034
5035 # Extract the first word of "cp", so it can be a program name with args.
5036 set dummy cp; ac_word=$2
5037 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5038 $as_echo_n "checking for $ac_word... " >&6; }
5039 if test "${ac_cv_path_CP+set}" = set; then :
5040   $as_echo_n "(cached) " >&6
5041 else
5042   case $CP in
5043   [\\/]* | ?:[\\/]*)
5044   ac_cv_path_CP="$CP" # Let the user override the test with a path.
5045   ;;
5046   *)
5047   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5048 for as_dir in $PATH
5049 do
5050   IFS=$as_save_IFS
5051   test -z "$as_dir" && as_dir=.
5052     for ac_exec_ext in '' $ac_executable_extensions; do
5053   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5054     ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext"
5055     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5056     break 2
5057   fi
5058 done
5059   done
5060 IFS=$as_save_IFS
5061
5062   test -z "$ac_cv_path_CP" && ac_cv_path_CP="cp"
5063   ;;
5064 esac
5065 fi
5066 CP=$ac_cv_path_CP
5067 if test -n "$CP"; then
5068   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CP" >&5
5069 $as_echo "$CP" >&6; }
5070 else
5071   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5072 $as_echo "no" >&6; }
5073 fi
5074
5075
5076 # Extract the first word of "sed", so it can be a program name with args.
5077 set dummy sed; ac_word=$2
5078 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5079 $as_echo_n "checking for $ac_word... " >&6; }
5080 if test "${ac_cv_path_SED+set}" = set; then :
5081   $as_echo_n "(cached) " >&6
5082 else
5083   case $SED in
5084   [\\/]* | ?:[\\/]*)
5085   ac_cv_path_SED="$SED" # Let the user override the test with a path.
5086   ;;
5087   *)
5088   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5089 for as_dir in $PATH
5090 do
5091   IFS=$as_save_IFS
5092   test -z "$as_dir" && as_dir=.
5093     for ac_exec_ext in '' $ac_executable_extensions; do
5094   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5095     ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
5096     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5097     break 2
5098   fi
5099 done
5100   done
5101 IFS=$as_save_IFS
5102
5103   test -z "$ac_cv_path_SED" && ac_cv_path_SED="sed"
5104   ;;
5105 esac
5106 fi
5107 SED=$ac_cv_path_SED
5108 if test -n "$SED"; then
5109   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SED" >&5
5110 $as_echo "$SED" >&6; }
5111 else
5112   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5113 $as_echo "no" >&6; }
5114 fi
5115
5116
5117 # Extract the first word of "echo", so it can be a program name with args.
5118 set dummy echo; ac_word=$2
5119 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5120 $as_echo_n "checking for $ac_word... " >&6; }
5121 if test "${ac_cv_path_ECHO+set}" = set; then :
5122   $as_echo_n "(cached) " >&6
5123 else
5124   case $ECHO in
5125   [\\/]* | ?:[\\/]*)
5126   ac_cv_path_ECHO="$ECHO" # Let the user override the test with a path.
5127   ;;
5128   *)
5129   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5130 for as_dir in $PATH
5131 do
5132   IFS=$as_save_IFS
5133   test -z "$as_dir" && as_dir=.
5134     for ac_exec_ext in '' $ac_executable_extensions; do
5135   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5136     ac_cv_path_ECHO="$as_dir/$ac_word$ac_exec_ext"
5137     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5138     break 2
5139   fi
5140 done
5141   done
5142 IFS=$as_save_IFS
5143
5144   test -z "$ac_cv_path_ECHO" && ac_cv_path_ECHO="echo"
5145   ;;
5146 esac
5147 fi
5148 ECHO=$ac_cv_path_ECHO
5149 if test -n "$ECHO"; then
5150   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ECHO" >&5
5151 $as_echo "$ECHO" >&6; }
5152 else
5153   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5154 $as_echo "no" >&6; }
5155 fi
5156
5157
5158 # Extract the first word of "cmp", so it can be a program name with args.
5159 set dummy cmp; ac_word=$2
5160 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5161 $as_echo_n "checking for $ac_word... " >&6; }
5162 if test "${ac_cv_path_CMP+set}" = set; then :
5163   $as_echo_n "(cached) " >&6
5164 else
5165   case $CMP in
5166   [\\/]* | ?:[\\/]*)
5167   ac_cv_path_CMP="$CMP" # Let the user override the test with a path.
5168   ;;
5169   *)
5170   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5171 for as_dir in $PATH
5172 do
5173   IFS=$as_save_IFS
5174   test -z "$as_dir" && as_dir=.
5175     for ac_exec_ext in '' $ac_executable_extensions; do
5176   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5177     ac_cv_path_CMP="$as_dir/$ac_word$ac_exec_ext"
5178     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5179     break 2
5180   fi
5181 done
5182   done
5183 IFS=$as_save_IFS
5184
5185   test -z "$ac_cv_path_CMP" && ac_cv_path_CMP="cmp"
5186   ;;
5187 esac
5188 fi
5189 CMP=$ac_cv_path_CMP
5190 if test -n "$CMP"; then
5191   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CMP" >&5
5192 $as_echo "$CMP" >&6; }
5193 else
5194   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5195 $as_echo "no" >&6; }
5196 fi
5197
5198
5199 # Extract the first word of "tbl", so it can be a program name with args.
5200 set dummy tbl; ac_word=$2
5201 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5202 $as_echo_n "checking for $ac_word... " >&6; }
5203 if test "${ac_cv_path_TBL+set}" = set; then :
5204   $as_echo_n "(cached) " >&6
5205 else
5206   case $TBL in
5207   [\\/]* | ?:[\\/]*)
5208   ac_cv_path_TBL="$TBL" # Let the user override the test with a path.
5209   ;;
5210   *)
5211   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5212 for as_dir in $PATH
5213 do
5214   IFS=$as_save_IFS
5215   test -z "$as_dir" && as_dir=.
5216     for ac_exec_ext in '' $ac_executable_extensions; do
5217   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5218     ac_cv_path_TBL="$as_dir/$ac_word$ac_exec_ext"
5219     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5220     break 2
5221   fi
5222 done
5223   done
5224 IFS=$as_save_IFS
5225
5226   test -z "$ac_cv_path_TBL" && ac_cv_path_TBL="tbl"
5227   ;;
5228 esac
5229 fi
5230 TBL=$ac_cv_path_TBL
5231 if test -n "$TBL"; then
5232   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TBL" >&5
5233 $as_echo "$TBL" >&6; }
5234 else
5235   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5236 $as_echo "no" >&6; }
5237 fi
5238
5239
5240 # Extract the first word of "ar", so it can be a program name with args.
5241 set dummy ar; ac_word=$2
5242 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5243 $as_echo_n "checking for $ac_word... " >&6; }
5244 if test "${ac_cv_path_AR+set}" = set; then :
5245   $as_echo_n "(cached) " >&6
5246 else
5247   case $AR in
5248   [\\/]* | ?:[\\/]*)
5249   ac_cv_path_AR="$AR" # Let the user override the test with a path.
5250   ;;
5251   *)
5252   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5253 for as_dir in $PATH
5254 do
5255   IFS=$as_save_IFS
5256   test -z "$as_dir" && as_dir=.
5257     for ac_exec_ext in '' $ac_executable_extensions; do
5258   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5259     ac_cv_path_AR="$as_dir/$ac_word$ac_exec_ext"
5260     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5261     break 2
5262   fi
5263 done
5264   done
5265 IFS=$as_save_IFS
5266
5267   test -z "$ac_cv_path_AR" && ac_cv_path_AR="ar"
5268   ;;
5269 esac
5270 fi
5271 AR=$ac_cv_path_AR
5272 if test -n "$AR"; then
5273   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
5274 $as_echo "$AR" >&6; }
5275 else
5276   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5277 $as_echo "no" >&6; }
5278 fi
5279
5280
5281 # Extract the first word of "openssl", so it can be a program name with args.
5282 set dummy openssl; ac_word=$2
5283 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5284 $as_echo_n "checking for $ac_word... " >&6; }
5285 if test "${ac_cv_path_OPENSSL+set}" = set; then :
5286   $as_echo_n "(cached) " >&6
5287 else
5288   case $OPENSSL in
5289   [\\/]* | ?:[\\/]*)
5290   ac_cv_path_OPENSSL="$OPENSSL" # Let the user override the test with a path.
5291   ;;
5292   *)
5293   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5294 for as_dir in $PATH
5295 do
5296   IFS=$as_save_IFS
5297   test -z "$as_dir" && as_dir=.
5298     for ac_exec_ext in '' $ac_executable_extensions; do
5299   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5300     ac_cv_path_OPENSSL="$as_dir/$ac_word$ac_exec_ext"
5301     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5302     break 2
5303   fi
5304 done
5305   done
5306 IFS=$as_save_IFS
5307
5308   test -z "$ac_cv_path_OPENSSL" && ac_cv_path_OPENSSL="none"
5309   ;;
5310 esac
5311 fi
5312 OPENSSL=$ac_cv_path_OPENSSL
5313 if test -n "$OPENSSL"; then
5314   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OPENSSL" >&5
5315 $as_echo "$OPENSSL" >&6; }
5316 else
5317   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5318 $as_echo "no" >&6; }
5319 fi
5320
5321
5322 # Extract the first word of "mtx", so it can be a program name with args.
5323 set dummy mtx; ac_word=$2
5324 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5325 $as_echo_n "checking for $ac_word... " >&6; }
5326 if test "${ac_cv_path_MTX+set}" = set; then :
5327   $as_echo_n "(cached) " >&6
5328 else
5329   case $MTX in
5330   [\\/]* | ?:[\\/]*)
5331   ac_cv_path_MTX="$MTX" # Let the user override the test with a path.
5332   ;;
5333   *)
5334   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5335 for as_dir in $PATH
5336 do
5337   IFS=$as_save_IFS
5338   test -z "$as_dir" && as_dir=.
5339     for ac_exec_ext in '' $ac_executable_extensions; do
5340   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5341     ac_cv_path_MTX="$as_dir/$ac_word$ac_exec_ext"
5342     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5343     break 2
5344   fi
5345 done
5346   done
5347 IFS=$as_save_IFS
5348
5349   test -z "$ac_cv_path_MTX" && ac_cv_path_MTX="mtx"
5350   ;;
5351 esac
5352 fi
5353 MTX=$ac_cv_path_MTX
5354 if test -n "$MTX"; then
5355   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MTX" >&5
5356 $as_echo "$MTX" >&6; }
5357 else
5358   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5359 $as_echo "no" >&6; }
5360 fi
5361
5362
5363 # Extract the first word of "dd", so it can be a program name with args.
5364 set dummy dd; ac_word=$2
5365 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5366 $as_echo_n "checking for $ac_word... " >&6; }
5367 if test "${ac_cv_path_DD+set}" = set; then :
5368   $as_echo_n "(cached) " >&6
5369 else
5370   case $DD in
5371   [\\/]* | ?:[\\/]*)
5372   ac_cv_path_DD="$DD" # Let the user override the test with a path.
5373   ;;
5374   *)
5375   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5376 for as_dir in $PATH
5377 do
5378   IFS=$as_save_IFS
5379   test -z "$as_dir" && as_dir=.
5380     for ac_exec_ext in '' $ac_executable_extensions; do
5381   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5382     ac_cv_path_DD="$as_dir/$ac_word$ac_exec_ext"
5383     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5384     break 2
5385   fi
5386 done
5387   done
5388 IFS=$as_save_IFS
5389
5390   test -z "$ac_cv_path_DD" && ac_cv_path_DD="dd"
5391   ;;
5392 esac
5393 fi
5394 DD=$ac_cv_path_DD
5395 if test -n "$DD"; then
5396   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DD" >&5
5397 $as_echo "$DD" >&6; }
5398 else
5399   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5400 $as_echo "no" >&6; }
5401 fi
5402
5403
5404 # Extract the first word of "mkisofs", so it can be a program name with args.
5405 set dummy mkisofs; ac_word=$2
5406 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5407 $as_echo_n "checking for $ac_word... " >&6; }
5408 if test "${ac_cv_path_MKISOFS+set}" = set; then :
5409   $as_echo_n "(cached) " >&6
5410 else
5411   case $MKISOFS in
5412   [\\/]* | ?:[\\/]*)
5413   ac_cv_path_MKISOFS="$MKISOFS" # Let the user override the test with a path.
5414   ;;
5415   *)
5416   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5417 for as_dir in $PATH
5418 do
5419   IFS=$as_save_IFS
5420   test -z "$as_dir" && as_dir=.
5421     for ac_exec_ext in '' $ac_executable_extensions; do
5422   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5423     ac_cv_path_MKISOFS="$as_dir/$ac_word$ac_exec_ext"
5424     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5425     break 2
5426   fi
5427 done
5428   done
5429 IFS=$as_save_IFS
5430
5431   test -z "$ac_cv_path_MKISOFS" && ac_cv_path_MKISOFS="mkisofs"
5432   ;;
5433 esac
5434 fi
5435 MKISOFS=$ac_cv_path_MKISOFS
5436 if test -n "$MKISOFS"; then
5437   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKISOFS" >&5
5438 $as_echo "$MKISOFS" >&6; }
5439 else
5440   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5441 $as_echo "no" >&6; }
5442 fi
5443
5444
5445 # Extract the first word of "python", so it can be a program name with args.
5446 set dummy python; ac_word=$2
5447 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5448 $as_echo_n "checking for $ac_word... " >&6; }
5449 if test "${ac_cv_path_PYTHON+set}" = set; then :
5450   $as_echo_n "(cached) " >&6
5451 else
5452   case $PYTHON in
5453   [\\/]* | ?:[\\/]*)
5454   ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path.
5455   ;;
5456   *)
5457   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5458 for as_dir in $PATH
5459 do
5460   IFS=$as_save_IFS
5461   test -z "$as_dir" && as_dir=.
5462     for ac_exec_ext in '' $ac_executable_extensions; do
5463   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5464     ac_cv_path_PYTHON="$as_dir/$ac_word$ac_exec_ext"
5465     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5466     break 2
5467   fi
5468 done
5469   done
5470 IFS=$as_save_IFS
5471
5472   test -z "$ac_cv_path_PYTHON" && ac_cv_path_PYTHON="python"
5473   ;;
5474 esac
5475 fi
5476 PYTHON=$ac_cv_path_PYTHON
5477 if test -n "$PYTHON"; then
5478   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON" >&5
5479 $as_echo "$PYTHON" >&6; }
5480 else
5481   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5482 $as_echo "no" >&6; }
5483 fi
5484
5485
5486 # Extract the first word of "growisofs", so it can be a program name with args.
5487 set dummy growisofs; ac_word=$2
5488 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5489 $as_echo_n "checking for $ac_word... " >&6; }
5490 if test "${ac_cv_path_GROWISOFS+set}" = set; then :
5491   $as_echo_n "(cached) " >&6
5492 else
5493   case $GROWISOFS in
5494   [\\/]* | ?:[\\/]*)
5495   ac_cv_path_GROWISOFS="$GROWISOFS" # Let the user override the test with a path.
5496   ;;
5497   *)
5498   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5499 for as_dir in $PATH
5500 do
5501   IFS=$as_save_IFS
5502   test -z "$as_dir" && as_dir=.
5503     for ac_exec_ext in '' $ac_executable_extensions; do
5504   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5505     ac_cv_path_GROWISOFS="$as_dir/$ac_word$ac_exec_ext"
5506     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5507     break 2
5508   fi
5509 done
5510   done
5511 IFS=$as_save_IFS
5512
5513   test -z "$ac_cv_path_GROWISOFS" && ac_cv_path_GROWISOFS="growisofs"
5514   ;;
5515 esac
5516 fi
5517 GROWISOFS=$ac_cv_path_GROWISOFS
5518 if test -n "$GROWISOFS"; then
5519   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GROWISOFS" >&5
5520 $as_echo "$GROWISOFS" >&6; }
5521 else
5522   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5523 $as_echo "no" >&6; }
5524 fi
5525
5526
5527 # Extract the first word of "dvd+rw-mediainfo", so it can be a program name with args.
5528 set dummy dvd+rw-mediainfo; ac_word=$2
5529 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5530 $as_echo_n "checking for $ac_word... " >&6; }
5531 if test "${ac_cv_path_DVDRWMEDIAINFO+set}" = set; then :
5532   $as_echo_n "(cached) " >&6
5533 else
5534   case $DVDRWMEDIAINFO in
5535   [\\/]* | ?:[\\/]*)
5536   ac_cv_path_DVDRWMEDIAINFO="$DVDRWMEDIAINFO" # Let the user override the test with a path.
5537   ;;
5538   *)
5539   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5540 for as_dir in $PATH
5541 do
5542   IFS=$as_save_IFS
5543   test -z "$as_dir" && as_dir=.
5544     for ac_exec_ext in '' $ac_executable_extensions; do
5545   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5546     ac_cv_path_DVDRWMEDIAINFO="$as_dir/$ac_word$ac_exec_ext"
5547     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5548     break 2
5549   fi
5550 done
5551   done
5552 IFS=$as_save_IFS
5553
5554   test -z "$ac_cv_path_DVDRWMEDIAINFO" && ac_cv_path_DVDRWMEDIAINFO="dvd+rw-mediainfo"
5555   ;;
5556 esac
5557 fi
5558 DVDRWMEDIAINFO=$ac_cv_path_DVDRWMEDIAINFO
5559 if test -n "$DVDRWMEDIAINFO"; then
5560   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DVDRWMEDIAINFO" >&5
5561 $as_echo "$DVDRWMEDIAINFO" >&6; }
5562 else
5563   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5564 $as_echo "no" >&6; }
5565 fi
5566
5567
5568 # Extract the first word of "dvd+rw-format", so it can be a program name with args.
5569 set dummy dvd+rw-format; ac_word=$2
5570 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5571 $as_echo_n "checking for $ac_word... " >&6; }
5572 if test "${ac_cv_path_DVDRWFORMAT+set}" = set; then :
5573   $as_echo_n "(cached) " >&6
5574 else
5575   case $DVDRWFORMAT in
5576   [\\/]* | ?:[\\/]*)
5577   ac_cv_path_DVDRWFORMAT="$DVDRWFORMAT" # Let the user override the test with a path.
5578   ;;
5579   *)
5580   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5581 for as_dir in $PATH
5582 do
5583   IFS=$as_save_IFS
5584   test -z "$as_dir" && as_dir=.
5585     for ac_exec_ext in '' $ac_executable_extensions; do
5586   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5587     ac_cv_path_DVDRWFORMAT="$as_dir/$ac_word$ac_exec_ext"
5588     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5589     break 2
5590   fi
5591 done
5592   done
5593 IFS=$as_save_IFS
5594
5595   test -z "$ac_cv_path_DVDRWFORMAT" && ac_cv_path_DVDRWFORMAT="dvd+rw-format"
5596   ;;
5597 esac
5598 fi
5599 DVDRWFORMAT=$ac_cv_path_DVDRWFORMAT
5600 if test -n "$DVDRWFORMAT"; then
5601   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DVDRWFORMAT" >&5
5602 $as_echo "$DVDRWFORMAT" >&6; }
5603 else
5604   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5605 $as_echo "no" >&6; }
5606 fi
5607
5608
5609 # Extract the first word of "pkg-config", so it can be a program name with args.
5610 set dummy pkg-config; ac_word=$2
5611 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5612 $as_echo_n "checking for $ac_word... " >&6; }
5613 if test "${ac_cv_path_PKGCONFIG+set}" = set; then :
5614   $as_echo_n "(cached) " >&6
5615 else
5616   case $PKGCONFIG in
5617   [\\/]* | ?:[\\/]*)
5618   ac_cv_path_PKGCONFIG="$PKGCONFIG" # Let the user override the test with a path.
5619   ;;
5620   *)
5621   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5622 for as_dir in $PATH
5623 do
5624   IFS=$as_save_IFS
5625   test -z "$as_dir" && as_dir=.
5626     for ac_exec_ext in '' $ac_executable_extensions; do
5627   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5628     ac_cv_path_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext"
5629     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5630     break 2
5631   fi
5632 done
5633   done
5634 IFS=$as_save_IFS
5635
5636   test -z "$ac_cv_path_PKGCONFIG" && ac_cv_path_PKGCONFIG="pkg-config"
5637   ;;
5638 esac
5639 fi
5640 PKGCONFIG=$ac_cv_path_PKGCONFIG
5641 if test -n "$PKGCONFIG"; then
5642   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKGCONFIG" >&5
5643 $as_echo "$PKGCONFIG" >&6; }
5644 else
5645   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5646 $as_echo "no" >&6; }
5647 fi
5648
5649
5650 # Extract the first word of "qmake", so it can be a program name with args.
5651 set dummy qmake; ac_word=$2
5652 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5653 $as_echo_n "checking for $ac_word... " >&6; }
5654 if test "${ac_cv_path_QMAKE+set}" = set; then :
5655   $as_echo_n "(cached) " >&6
5656 else
5657   case $QMAKE in
5658   [\\/]* | ?:[\\/]*)
5659   ac_cv_path_QMAKE="$QMAKE" # Let the user override the test with a path.
5660   ;;
5661   *)
5662   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5663 for as_dir in $PATH
5664 do
5665   IFS=$as_save_IFS
5666   test -z "$as_dir" && as_dir=.
5667     for ac_exec_ext in '' $ac_executable_extensions; do
5668   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5669     ac_cv_path_QMAKE="$as_dir/$ac_word$ac_exec_ext"
5670     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5671     break 2
5672   fi
5673 done
5674   done
5675 IFS=$as_save_IFS
5676
5677   test -z "$ac_cv_path_QMAKE" && ac_cv_path_QMAKE="none"
5678   ;;
5679 esac
5680 fi
5681 QMAKE=$ac_cv_path_QMAKE
5682 if test -n "$QMAKE"; then
5683   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $QMAKE" >&5
5684 $as_echo "$QMAKE" >&6; }
5685 else
5686   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5687 $as_echo "no" >&6; }
5688 fi
5689
5690
5691 # Extract the first word of "gmake", so it can be a program name with args.
5692 set dummy gmake; ac_word=$2
5693 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5694 $as_echo_n "checking for $ac_word... " >&6; }
5695 if test "${ac_cv_path_GMAKE+set}" = set; then :
5696   $as_echo_n "(cached) " >&6
5697 else
5698   case $GMAKE in
5699   [\\/]* | ?:[\\/]*)
5700   ac_cv_path_GMAKE="$GMAKE" # Let the user override the test with a path.
5701   ;;
5702   *)
5703   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5704 for as_dir in $PATH
5705 do
5706   IFS=$as_save_IFS
5707   test -z "$as_dir" && as_dir=.
5708     for ac_exec_ext in '' $ac_executable_extensions; do
5709   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5710     ac_cv_path_GMAKE="$as_dir/$ac_word$ac_exec_ext"
5711     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5712     break 2
5713   fi
5714 done
5715   done
5716 IFS=$as_save_IFS
5717
5718   test -z "$ac_cv_path_GMAKE" && ac_cv_path_GMAKE="none"
5719   ;;
5720 esac
5721 fi
5722 GMAKE=$ac_cv_path_GMAKE
5723 if test -n "$GMAKE"; then
5724   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GMAKE" >&5
5725 $as_echo "$GMAKE" >&6; }
5726 else
5727   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5728 $as_echo "no" >&6; }
5729 fi
5730
5731
5732
5733 if test "x$WXCONFIG" = x; then
5734    WXCONFIG=wx-config
5735 fi
5736 # Extract the first word of "${WXCONFIG}", so it can be a program name with args.
5737 set dummy ${WXCONFIG}; ac_word=$2
5738 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5739 $as_echo_n "checking for $ac_word... " >&6; }
5740 if test "${ac_cv_path_WXCONFIG+set}" = set; then :
5741   $as_echo_n "(cached) " >&6
5742 else
5743   case $WXCONFIG in
5744   [\\/]* | ?:[\\/]*)
5745   ac_cv_path_WXCONFIG="$WXCONFIG" # Let the user override the test with a path.
5746   ;;
5747   *)
5748   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5749 for as_dir in $PATH
5750 do
5751   IFS=$as_save_IFS
5752   test -z "$as_dir" && as_dir=.
5753     for ac_exec_ext in '' $ac_executable_extensions; do
5754   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5755     ac_cv_path_WXCONFIG="$as_dir/$ac_word$ac_exec_ext"
5756     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5757     break 2
5758   fi
5759 done
5760   done
5761 IFS=$as_save_IFS
5762
5763   test -z "$ac_cv_path_WXCONFIG" && ac_cv_path_WXCONFIG="${WXCONFIG}"
5764   ;;
5765 esac
5766 fi
5767 WXCONFIG=$ac_cv_path_WXCONFIG
5768 if test -n "$WXCONFIG"; then
5769   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WXCONFIG" >&5
5770 $as_echo "$WXCONFIG" >&6; }
5771 else
5772   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5773 $as_echo "no" >&6; }
5774 fi
5775
5776
5777
5778 # Extract the first word of "cdrecord", so it can be a program name with args.
5779 set dummy cdrecord; ac_word=$2
5780 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5781 $as_echo_n "checking for $ac_word... " >&6; }
5782 if test "${ac_cv_path_CDRECORD+set}" = set; then :
5783   $as_echo_n "(cached) " >&6
5784 else
5785   case $CDRECORD in
5786   [\\/]* | ?:[\\/]*)
5787   ac_cv_path_CDRECORD="$CDRECORD" # Let the user override the test with a path.
5788   ;;
5789   *)
5790   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5791 for as_dir in $PATH
5792 do
5793   IFS=$as_save_IFS
5794   test -z "$as_dir" && as_dir=.
5795     for ac_exec_ext in '' $ac_executable_extensions; do
5796   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5797     ac_cv_path_CDRECORD="$as_dir/$ac_word$ac_exec_ext"
5798     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5799     break 2
5800   fi
5801 done
5802   done
5803 IFS=$as_save_IFS
5804
5805   test -z "$ac_cv_path_CDRECORD" && ac_cv_path_CDRECORD="cdrecord"
5806   ;;
5807 esac
5808 fi
5809 CDRECORD=$ac_cv_path_CDRECORD
5810 if test -n "$CDRECORD"; then
5811   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CDRECORD" >&5
5812 $as_echo "$CDRECORD" >&6; }
5813 else
5814   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5815 $as_echo "no" >&6; }
5816 fi
5817
5818
5819 # Extract the first word of "pidof", so it can be a program name with args.
5820 set dummy pidof; ac_word=$2
5821 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5822 $as_echo_n "checking for $ac_word... " >&6; }
5823 if test "${ac_cv_path_PIDOF+set}" = set; then :
5824   $as_echo_n "(cached) " >&6
5825 else
5826   case $PIDOF in
5827   [\\/]* | ?:[\\/]*)
5828   ac_cv_path_PIDOF="$PIDOF" # Let the user override the test with a path.
5829   ;;
5830   *)
5831   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5832 for as_dir in $PATH
5833 do
5834   IFS=$as_save_IFS
5835   test -z "$as_dir" && as_dir=.
5836     for ac_exec_ext in '' $ac_executable_extensions; do
5837   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5838     ac_cv_path_PIDOF="$as_dir/$ac_word$ac_exec_ext"
5839     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5840     break 2
5841   fi
5842 done
5843   done
5844 IFS=$as_save_IFS
5845
5846   test -z "$ac_cv_path_PIDOF" && ac_cv_path_PIDOF="pidof"
5847   ;;
5848 esac
5849 fi
5850 PIDOF=$ac_cv_path_PIDOF
5851 if test -n "$PIDOF"; then
5852   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PIDOF" >&5
5853 $as_echo "$PIDOF" >&6; }
5854 else
5855   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5856 $as_echo "no" >&6; }
5857 fi
5858
5859
5860 for ac_prog in gawk mawk nawk awk
5861 do
5862   # Extract the first word of "$ac_prog", so it can be a program name with args.
5863 set dummy $ac_prog; ac_word=$2
5864 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5865 $as_echo_n "checking for $ac_word... " >&6; }
5866 if test "${ac_cv_prog_AWK+set}" = set; then :
5867   $as_echo_n "(cached) " >&6
5868 else
5869   if test -n "$AWK"; then
5870   ac_cv_prog_AWK="$AWK" # Let the user override the test.
5871 else
5872 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5873 for as_dir in $PATH
5874 do
5875   IFS=$as_save_IFS
5876   test -z "$as_dir" && as_dir=.
5877     for ac_exec_ext in '' $ac_executable_extensions; do
5878   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5879     ac_cv_prog_AWK="$ac_prog"
5880     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5881     break 2
5882   fi
5883 done
5884   done
5885 IFS=$as_save_IFS
5886
5887 fi
5888 fi
5889 AWK=$ac_cv_prog_AWK
5890 if test -n "$AWK"; then
5891   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
5892 $as_echo "$AWK" >&6; }
5893 else
5894   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5895 $as_echo "no" >&6; }
5896 fi
5897
5898
5899   test -n "$AWK" && break
5900 done
5901
5902 # Some AWK programs fail, so test it and warn the user
5903 if echo xfoo | $AWK 'BEGIN { prog=ARGV1; ARGC=1 }
5904       { if ((prog == $2) || (("(" prog ")") == $2) ||
5905       (("" prog "") == $2) ||
5906       ((prog ":") == $2)) { print $1 ; exit 0 } }' xfoo>/dev/null; then :;
5907 else
5908   as_fn_error "!!!!!!!!! WARNING !!!!!!!!!!!!!!
5909    The regex engine of $AWK is too broken to be used you
5910    might want to install GNU AWK.
5911    !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!" "$LINENO" 5
5912 fi
5913 THE_AWK=$AWK
5914 # Extract the first word of "$THE_AWK", so it can be a program name with args.
5915 set dummy $THE_AWK; ac_word=$2
5916 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5917 $as_echo_n "checking for $ac_word... " >&6; }
5918 if test "${ac_cv_path_AWK+set}" = set; then :
5919   $as_echo_n "(cached) " >&6
5920 else
5921   case $AWK in
5922   [\\/]* | ?:[\\/]*)
5923   ac_cv_path_AWK="$AWK" # Let the user override the test with a path.
5924   ;;
5925   *)
5926   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5927 for as_dir in $PATH
5928 do
5929   IFS=$as_save_IFS
5930   test -z "$as_dir" && as_dir=.
5931     for ac_exec_ext in '' $ac_executable_extensions; do
5932   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5933     ac_cv_path_AWK="$as_dir/$ac_word$ac_exec_ext"
5934     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5935     break 2
5936   fi
5937 done
5938   done
5939 IFS=$as_save_IFS
5940
5941   test -z "$ac_cv_path_AWK" && ac_cv_path_AWK="$THE_AWK"
5942   ;;
5943 esac
5944 fi
5945 AWK=$ac_cv_path_AWK
5946 if test -n "$AWK"; then
5947   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
5948 $as_echo "$AWK" >&6; }
5949 else
5950   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5951 $as_echo "no" >&6; }
5952 fi
5953
5954
5955
5956
5957 test -n "$ARFLAG" || ARFLAGS="cr"
5958
5959
5960 MAKE_SHELL=/bin/sh
5961
5962
5963
5964
5965
5966
5967
5968 use_libtool=yes
5969 # Check whether --enable-libtool was given.
5970 if test "${enable_libtool+set}" = set; then :
5971   enableval=$enable_libtool;
5972        if test x$enableval = xno; then
5973           use_libtool=no
5974        fi
5975
5976
5977 fi
5978
5979 case `pwd` in
5980   *\ * | *\     *)
5981     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
5982 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
5983 esac
5984
5985
5986
5987 macro_version='2.2.6'
5988 macro_revision='1.3012'
5989
5990
5991
5992
5993
5994
5995
5996
5997
5998
5999
6000
6001
6002 ltmain="$ac_aux_dir/ltmain.sh"
6003
6004 # Make sure we can run config.sub.
6005 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
6006   as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
6007
6008 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
6009 $as_echo_n "checking build system type... " >&6; }
6010 if test "${ac_cv_build+set}" = set; then :
6011   $as_echo_n "(cached) " >&6
6012 else
6013   ac_build_alias=$build_alias
6014 test "x$ac_build_alias" = x &&
6015   ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
6016 test "x$ac_build_alias" = x &&
6017   as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
6018 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
6019   as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
6020
6021 fi
6022 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
6023 $as_echo "$ac_cv_build" >&6; }
6024 case $ac_cv_build in
6025 *-*-*) ;;
6026 *) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
6027 esac
6028 build=$ac_cv_build
6029 ac_save_IFS=$IFS; IFS='-'
6030 set x $ac_cv_build
6031 shift
6032 build_cpu=$1
6033 build_vendor=$2
6034 shift; shift
6035 # Remember, the first character of IFS is used to create $*,
6036 # except with old shells:
6037 build_os=$*
6038 IFS=$ac_save_IFS
6039 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
6040
6041
6042 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
6043 $as_echo_n "checking host system type... " >&6; }
6044 if test "${ac_cv_host+set}" = set; then :
6045   $as_echo_n "(cached) " >&6
6046 else
6047   if test "x$host_alias" = x; then
6048   ac_cv_host=$ac_cv_build
6049 else
6050   ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
6051     as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
6052 fi
6053
6054 fi
6055 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
6056 $as_echo "$ac_cv_host" >&6; }
6057 case $ac_cv_host in
6058 *-*-*) ;;
6059 *) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
6060 esac
6061 host=$ac_cv_host
6062 ac_save_IFS=$IFS; IFS='-'
6063 set x $ac_cv_host
6064 shift
6065 host_cpu=$1
6066 host_vendor=$2
6067 shift; shift
6068 # Remember, the first character of IFS is used to create $*,
6069 # except with old shells:
6070 host_os=$*
6071 IFS=$ac_save_IFS
6072 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
6073
6074
6075 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
6076 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
6077 if test "${ac_cv_path_SED+set}" = set; then :
6078   $as_echo_n "(cached) " >&6
6079 else
6080             ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
6081      for ac_i in 1 2 3 4 5 6 7; do
6082        ac_script="$ac_script$as_nl$ac_script"
6083      done
6084      echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
6085      { ac_script=; unset ac_script;}
6086      if test -z "$SED"; then
6087   ac_path_SED_found=false
6088   # Loop through the user's path and test for each of PROGNAME-LIST
6089   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6090 for as_dir in $PATH
6091 do
6092   IFS=$as_save_IFS
6093   test -z "$as_dir" && as_dir=.
6094     for ac_prog in sed gsed; do
6095     for ac_exec_ext in '' $ac_executable_extensions; do
6096       ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
6097       { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
6098 # Check for GNU ac_path_SED and select it if it is found.
6099   # Check for GNU $ac_path_SED
6100 case `"$ac_path_SED" --version 2>&1` in
6101 *GNU*)
6102   ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
6103 *)
6104   ac_count=0
6105   $as_echo_n 0123456789 >"conftest.in"
6106   while :
6107   do
6108     cat "conftest.in" "conftest.in" >"conftest.tmp"
6109     mv "conftest.tmp" "conftest.in"
6110     cp "conftest.in" "conftest.nl"
6111     $as_echo '' >> "conftest.nl"
6112     "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
6113     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6114     as_fn_arith $ac_count + 1 && ac_count=$as_val
6115     if test $ac_count -gt ${ac_path_SED_max-0}; then
6116       # Best one so far, save it but keep looking for a better one
6117       ac_cv_path_SED="$ac_path_SED"
6118       ac_path_SED_max=$ac_count
6119     fi
6120     # 10*(2^10) chars as input seems more than enough
6121     test $ac_count -gt 10 && break
6122   done
6123   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6124 esac
6125
6126       $ac_path_SED_found && break 3
6127     done
6128   done
6129   done
6130 IFS=$as_save_IFS
6131   if test -z "$ac_cv_path_SED"; then
6132     as_fn_error "no acceptable sed could be found in \$PATH" "$LINENO" 5
6133   fi
6134 else
6135   ac_cv_path_SED=$SED
6136 fi
6137
6138 fi
6139 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
6140 $as_echo "$ac_cv_path_SED" >&6; }
6141  SED="$ac_cv_path_SED"
6142   rm -f conftest.sed
6143
6144 test -z "$SED" && SED=sed
6145 Xsed="$SED -e 1s/^X//"
6146
6147
6148
6149
6150
6151
6152
6153
6154
6155
6156
6157 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
6158 $as_echo_n "checking for fgrep... " >&6; }
6159 if test "${ac_cv_path_FGREP+set}" = set; then :
6160   $as_echo_n "(cached) " >&6
6161 else
6162   if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
6163    then ac_cv_path_FGREP="$GREP -F"
6164    else
6165      if test -z "$FGREP"; then
6166   ac_path_FGREP_found=false
6167   # Loop through the user's path and test for each of PROGNAME-LIST
6168   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6169 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
6170 do
6171   IFS=$as_save_IFS
6172   test -z "$as_dir" && as_dir=.
6173     for ac_prog in fgrep; do
6174     for ac_exec_ext in '' $ac_executable_extensions; do
6175       ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
6176       { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
6177 # Check for GNU ac_path_FGREP and select it if it is found.
6178   # Check for GNU $ac_path_FGREP
6179 case `"$ac_path_FGREP" --version 2>&1` in
6180 *GNU*)
6181   ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
6182 *)
6183   ac_count=0
6184   $as_echo_n 0123456789 >"conftest.in"
6185   while :
6186   do
6187     cat "conftest.in" "conftest.in" >"conftest.tmp"
6188     mv "conftest.tmp" "conftest.in"
6189     cp "conftest.in" "conftest.nl"
6190     $as_echo 'FGREP' >> "conftest.nl"
6191     "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
6192     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6193     as_fn_arith $ac_count + 1 && ac_count=$as_val
6194     if test $ac_count -gt ${ac_path_FGREP_max-0}; then
6195       # Best one so far, save it but keep looking for a better one
6196       ac_cv_path_FGREP="$ac_path_FGREP"
6197       ac_path_FGREP_max=$ac_count
6198     fi
6199     # 10*(2^10) chars as input seems more than enough
6200     test $ac_count -gt 10 && break
6201   done
6202   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6203 esac
6204
6205       $ac_path_FGREP_found && break 3
6206     done
6207   done
6208   done
6209 IFS=$as_save_IFS
6210   if test -z "$ac_cv_path_FGREP"; then
6211     as_fn_error "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
6212   fi
6213 else
6214   ac_cv_path_FGREP=$FGREP
6215 fi
6216
6217    fi
6218 fi
6219 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
6220 $as_echo "$ac_cv_path_FGREP" >&6; }
6221  FGREP="$ac_cv_path_FGREP"
6222
6223
6224 test -z "$GREP" && GREP=grep
6225
6226
6227
6228
6229
6230
6231
6232
6233
6234
6235
6236
6237
6238
6239
6240
6241
6242
6243
6244 # Check whether --with-gnu-ld was given.
6245 if test "${with_gnu_ld+set}" = set; then :
6246   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
6247 else
6248   with_gnu_ld=no
6249 fi
6250
6251 ac_prog=ld
6252 if test "$GCC" = yes; then
6253   # Check if gcc -print-prog-name=ld gives a path.
6254   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
6255 $as_echo_n "checking for ld used by $CC... " >&6; }
6256   case $host in
6257   *-*-mingw*)
6258     # gcc leaves a trailing carriage return which upsets mingw
6259     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
6260   *)
6261     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
6262   esac
6263   case $ac_prog in
6264     # Accept absolute paths.
6265     [\\/]* | ?:[\\/]*)
6266       re_direlt='/[^/][^/]*/\.\./'
6267       # Canonicalize the pathname of ld
6268       ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
6269       while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
6270         ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
6271       done
6272       test -z "$LD" && LD="$ac_prog"
6273       ;;
6274   "")
6275     # If it fails, then pretend we aren't using GCC.
6276     ac_prog=ld
6277     ;;
6278   *)
6279     # If it is relative, then search for the first ld in PATH.
6280     with_gnu_ld=unknown
6281     ;;
6282   esac
6283 elif test "$with_gnu_ld" = yes; then
6284   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
6285 $as_echo_n "checking for GNU ld... " >&6; }
6286 else
6287   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
6288 $as_echo_n "checking for non-GNU ld... " >&6; }
6289 fi
6290 if test "${lt_cv_path_LD+set}" = set; then :
6291   $as_echo_n "(cached) " >&6
6292 else
6293   if test -z "$LD"; then
6294   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6295   for ac_dir in $PATH; do
6296     IFS="$lt_save_ifs"
6297     test -z "$ac_dir" && ac_dir=.
6298     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
6299       lt_cv_path_LD="$ac_dir/$ac_prog"
6300       # Check to see if the program is GNU ld.  I'd rather use --version,
6301       # but apparently some variants of GNU ld only accept -v.
6302       # Break only if it was the GNU/non-GNU ld that we prefer.
6303       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
6304       *GNU* | *'with BFD'*)
6305         test "$with_gnu_ld" != no && break
6306         ;;
6307       *)
6308         test "$with_gnu_ld" != yes && break
6309         ;;
6310       esac
6311     fi
6312   done
6313   IFS="$lt_save_ifs"
6314 else
6315   lt_cv_path_LD="$LD" # Let the user override the test with a path.
6316 fi
6317 fi
6318
6319 LD="$lt_cv_path_LD"
6320 if test -n "$LD"; then
6321   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
6322 $as_echo "$LD" >&6; }
6323 else
6324   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6325 $as_echo "no" >&6; }
6326 fi
6327 test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
6328 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
6329 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
6330 if test "${lt_cv_prog_gnu_ld+set}" = set; then :
6331   $as_echo_n "(cached) " >&6
6332 else
6333   # I'd rather use --version here, but apparently some GNU lds only accept -v.
6334 case `$LD -v 2>&1 </dev/null` in
6335 *GNU* | *'with BFD'*)
6336   lt_cv_prog_gnu_ld=yes
6337   ;;
6338 *)
6339   lt_cv_prog_gnu_ld=no
6340   ;;
6341 esac
6342 fi
6343 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
6344 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
6345 with_gnu_ld=$lt_cv_prog_gnu_ld
6346
6347
6348
6349
6350
6351
6352
6353
6354
6355 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
6356 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
6357 if test "${lt_cv_path_NM+set}" = set; then :
6358   $as_echo_n "(cached) " >&6
6359 else
6360   if test -n "$NM"; then
6361   # Let the user override the test.
6362   lt_cv_path_NM="$NM"
6363 else
6364   lt_nm_to_check="${ac_tool_prefix}nm"
6365   if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
6366     lt_nm_to_check="$lt_nm_to_check nm"
6367   fi
6368   for lt_tmp_nm in $lt_nm_to_check; do
6369     lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6370     for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
6371       IFS="$lt_save_ifs"
6372       test -z "$ac_dir" && ac_dir=.
6373       tmp_nm="$ac_dir/$lt_tmp_nm"
6374       if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
6375         # Check to see if the nm accepts a BSD-compat flag.
6376         # Adding the `sed 1q' prevents false positives on HP-UX, which says:
6377         #   nm: unknown option "B" ignored
6378         # Tru64's nm complains that /dev/null is an invalid object file
6379         case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
6380         */dev/null* | *'Invalid file or object type'*)
6381           lt_cv_path_NM="$tmp_nm -B"
6382           break
6383           ;;
6384         *)
6385           case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
6386           */dev/null*)
6387             lt_cv_path_NM="$tmp_nm -p"
6388             break
6389             ;;
6390           *)
6391             lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
6392             continue # so that we can try to find one that supports BSD flags
6393             ;;
6394           esac
6395           ;;
6396         esac
6397       fi
6398     done
6399     IFS="$lt_save_ifs"
6400   done
6401   : ${lt_cv_path_NM=no}
6402 fi
6403 fi
6404 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
6405 $as_echo "$lt_cv_path_NM" >&6; }
6406 if test "$lt_cv_path_NM" != "no"; then
6407   NM="$lt_cv_path_NM"
6408 else
6409   # Didn't find any BSD compatible name lister, look for dumpbin.
6410   if test -n "$ac_tool_prefix"; then
6411   for ac_prog in "dumpbin -symbols" "link -dump -symbols"
6412   do
6413     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6414 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6415 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6416 $as_echo_n "checking for $ac_word... " >&6; }
6417 if test "${ac_cv_prog_DUMPBIN+set}" = set; then :
6418   $as_echo_n "(cached) " >&6
6419 else
6420   if test -n "$DUMPBIN"; then
6421   ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
6422 else
6423 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6424 for as_dir in $PATH
6425 do
6426   IFS=$as_save_IFS
6427   test -z "$as_dir" && as_dir=.
6428     for ac_exec_ext in '' $ac_executable_extensions; do
6429   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6430     ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
6431     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6432     break 2
6433   fi
6434 done
6435   done
6436 IFS=$as_save_IFS
6437
6438 fi
6439 fi
6440 DUMPBIN=$ac_cv_prog_DUMPBIN
6441 if test -n "$DUMPBIN"; then
6442   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
6443 $as_echo "$DUMPBIN" >&6; }
6444 else
6445   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6446 $as_echo "no" >&6; }
6447 fi
6448
6449
6450     test -n "$DUMPBIN" && break
6451   done
6452 fi
6453 if test -z "$DUMPBIN"; then
6454   ac_ct_DUMPBIN=$DUMPBIN
6455   for ac_prog in "dumpbin -symbols" "link -dump -symbols"
6456 do
6457   # Extract the first word of "$ac_prog", so it can be a program name with args.
6458 set dummy $ac_prog; ac_word=$2
6459 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6460 $as_echo_n "checking for $ac_word... " >&6; }
6461 if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then :
6462   $as_echo_n "(cached) " >&6
6463 else
6464   if test -n "$ac_ct_DUMPBIN"; then
6465   ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
6466 else
6467 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6468 for as_dir in $PATH
6469 do
6470   IFS=$as_save_IFS
6471   test -z "$as_dir" && as_dir=.
6472     for ac_exec_ext in '' $ac_executable_extensions; do
6473   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6474     ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
6475     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6476     break 2
6477   fi
6478 done
6479   done
6480 IFS=$as_save_IFS
6481
6482 fi
6483 fi
6484 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
6485 if test -n "$ac_ct_DUMPBIN"; then
6486   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
6487 $as_echo "$ac_ct_DUMPBIN" >&6; }
6488 else
6489   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6490 $as_echo "no" >&6; }
6491 fi
6492
6493
6494   test -n "$ac_ct_DUMPBIN" && break
6495 done
6496
6497   if test "x$ac_ct_DUMPBIN" = x; then
6498     DUMPBIN=":"
6499   else
6500     case $cross_compiling:$ac_tool_warned in
6501 yes:)
6502 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6503 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6504 ac_tool_warned=yes ;;
6505 esac
6506     DUMPBIN=$ac_ct_DUMPBIN
6507   fi
6508 fi
6509
6510
6511   if test "$DUMPBIN" != ":"; then
6512     NM="$DUMPBIN"
6513   fi
6514 fi
6515 test -z "$NM" && NM=nm
6516
6517
6518
6519
6520
6521
6522 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
6523 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
6524 if test "${lt_cv_nm_interface+set}" = set; then :
6525   $as_echo_n "(cached) " >&6
6526 else
6527   lt_cv_nm_interface="BSD nm"
6528   echo "int some_variable = 0;" > conftest.$ac_ext
6529   (eval echo "\"\$as_me:6529: $ac_compile\"" >&5)
6530   (eval "$ac_compile" 2>conftest.err)
6531   cat conftest.err >&5
6532   (eval echo "\"\$as_me:6532: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
6533   (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
6534   cat conftest.err >&5
6535   (eval echo "\"\$as_me:6535: output\"" >&5)
6536   cat conftest.out >&5
6537   if $GREP 'External.*some_variable' conftest.out > /dev/null; then
6538     lt_cv_nm_interface="MS dumpbin"
6539   fi
6540   rm -f conftest*
6541 fi
6542 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
6543 $as_echo "$lt_cv_nm_interface" >&6; }
6544
6545 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
6546 $as_echo_n "checking whether ln -s works... " >&6; }
6547 LN_S=$as_ln_s
6548 if test "$LN_S" = "ln -s"; then
6549   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6550 $as_echo "yes" >&6; }
6551 else
6552   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
6553 $as_echo "no, using $LN_S" >&6; }
6554 fi
6555
6556 # find the maximum length of command line arguments
6557 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
6558 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
6559 if test "${lt_cv_sys_max_cmd_len+set}" = set; then :
6560   $as_echo_n "(cached) " >&6
6561 else
6562     i=0
6563   teststring="ABCD"
6564
6565   case $build_os in
6566   msdosdjgpp*)
6567     # On DJGPP, this test can blow up pretty badly due to problems in libc
6568     # (any single argument exceeding 2000 bytes causes a buffer overrun
6569     # during glob expansion).  Even if it were fixed, the result of this
6570     # check would be larger than it should be.
6571     lt_cv_sys_max_cmd_len=12288;    # 12K is about right
6572     ;;
6573
6574   gnu*)
6575     # Under GNU Hurd, this test is not required because there is
6576     # no limit to the length of command line arguments.
6577     # Libtool will interpret -1 as no limit whatsoever
6578     lt_cv_sys_max_cmd_len=-1;
6579     ;;
6580
6581   cygwin* | mingw* | cegcc*)
6582     # On Win9x/ME, this test blows up -- it succeeds, but takes
6583     # about 5 minutes as the teststring grows exponentially.
6584     # Worse, since 9x/ME are not pre-emptively multitasking,
6585     # you end up with a "frozen" computer, even though with patience
6586     # the test eventually succeeds (with a max line length of 256k).
6587     # Instead, let's just punt: use the minimum linelength reported by
6588     # all of the supported platforms: 8192 (on NT/2K/XP).
6589     lt_cv_sys_max_cmd_len=8192;
6590     ;;
6591
6592   amigaos*)
6593     # On AmigaOS with pdksh, this test takes hours, literally.
6594     # So we just punt and use a minimum line length of 8192.
6595     lt_cv_sys_max_cmd_len=8192;
6596     ;;
6597
6598   netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
6599     # This has been around since 386BSD, at least.  Likely further.
6600     if test -x /sbin/sysctl; then
6601       lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
6602     elif test -x /usr/sbin/sysctl; then
6603       lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
6604     else
6605       lt_cv_sys_max_cmd_len=65536       # usable default for all BSDs
6606     fi
6607     # And add a safety zone
6608     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6609     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6610     ;;
6611
6612   interix*)
6613     # We know the value 262144 and hardcode it with a safety zone (like BSD)
6614     lt_cv_sys_max_cmd_len=196608
6615     ;;
6616
6617   osf*)
6618     # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
6619     # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
6620     # nice to cause kernel panics so lets avoid the loop below.
6621     # First set a reasonable default.
6622     lt_cv_sys_max_cmd_len=16384
6623     #
6624     if test -x /sbin/sysconfig; then
6625       case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
6626         *1*) lt_cv_sys_max_cmd_len=-1 ;;
6627       esac
6628     fi
6629     ;;
6630   sco3.2v5*)
6631     lt_cv_sys_max_cmd_len=102400
6632     ;;
6633   sysv5* | sco5v6* | sysv4.2uw2*)
6634     kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
6635     if test -n "$kargmax"; then
6636       lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[  ]//'`
6637     else
6638       lt_cv_sys_max_cmd_len=32768
6639     fi
6640     ;;
6641   *)
6642     lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
6643     if test -n "$lt_cv_sys_max_cmd_len"; then
6644       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6645       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6646     else
6647       # Make teststring a little bigger before we do anything with it.
6648       # a 1K string should be a reasonable start.
6649       for i in 1 2 3 4 5 6 7 8 ; do
6650         teststring=$teststring$teststring
6651       done
6652       SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
6653       # If test is not a shell built-in, we'll probably end up computing a
6654       # maximum length that is only half of the actual maximum length, but
6655       # we can't tell.
6656       while { test "X"`$SHELL $0 --fallback-echo "X$teststring$teststring" 2>/dev/null` \
6657                  = "XX$teststring$teststring"; } >/dev/null 2>&1 &&
6658               test $i != 17 # 1/2 MB should be enough
6659       do
6660         i=`expr $i + 1`
6661         teststring=$teststring$teststring
6662       done
6663       # Only check the string length outside the loop.
6664       lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
6665       teststring=
6666       # Add a significant safety factor because C++ compilers can tack on
6667       # massive amounts of additional arguments before passing them to the
6668       # linker.  It appears as though 1/2 is a usable value.
6669       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
6670     fi
6671     ;;
6672   esac
6673
6674 fi
6675
6676 if test -n $lt_cv_sys_max_cmd_len ; then
6677   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
6678 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
6679 else
6680   { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
6681 $as_echo "none" >&6; }
6682 fi
6683 max_cmd_len=$lt_cv_sys_max_cmd_len
6684
6685
6686
6687
6688
6689
6690 : ${CP="cp -f"}
6691 : ${MV="mv -f"}
6692 : ${RM="rm -f"}
6693
6694 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
6695 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
6696 # Try some XSI features
6697 xsi_shell=no
6698 ( _lt_dummy="a/b/c"
6699   test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
6700       = c,a/b,, \
6701     && eval 'test $(( 1 + 1 )) -eq 2 \
6702     && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
6703   && xsi_shell=yes
6704 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
6705 $as_echo "$xsi_shell" >&6; }
6706
6707
6708 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
6709 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
6710 lt_shell_append=no
6711 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
6712     >/dev/null 2>&1 \
6713   && lt_shell_append=yes
6714 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
6715 $as_echo "$lt_shell_append" >&6; }
6716
6717
6718 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
6719   lt_unset=unset
6720 else
6721   lt_unset=false
6722 fi
6723
6724
6725
6726
6727
6728 # test EBCDIC or ASCII
6729 case `echo X|tr X '\101'` in
6730  A) # ASCII based system
6731     # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
6732   lt_SP2NL='tr \040 \012'
6733   lt_NL2SP='tr \015\012 \040\040'
6734   ;;
6735  *) # EBCDIC based system
6736   lt_SP2NL='tr \100 \n'
6737   lt_NL2SP='tr \r\n \100\100'
6738   ;;
6739 esac
6740
6741
6742
6743
6744
6745
6746
6747
6748
6749 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
6750 $as_echo_n "checking for $LD option to reload object files... " >&6; }
6751 if test "${lt_cv_ld_reload_flag+set}" = set; then :
6752   $as_echo_n "(cached) " >&6
6753 else
6754   lt_cv_ld_reload_flag='-r'
6755 fi
6756 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
6757 $as_echo "$lt_cv_ld_reload_flag" >&6; }
6758 reload_flag=$lt_cv_ld_reload_flag
6759 case $reload_flag in
6760 "" | " "*) ;;
6761 *) reload_flag=" $reload_flag" ;;
6762 esac
6763 reload_cmds='$LD$reload_flag -o $output$reload_objs'
6764 case $host_os in
6765   darwin*)
6766     if test "$GCC" = yes; then
6767       reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
6768     else
6769       reload_cmds='$LD$reload_flag -o $output$reload_objs'
6770     fi
6771     ;;
6772 esac
6773
6774
6775
6776
6777
6778
6779
6780
6781
6782 if test -n "$ac_tool_prefix"; then
6783   # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
6784 set dummy ${ac_tool_prefix}objdump; ac_word=$2
6785 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6786 $as_echo_n "checking for $ac_word... " >&6; }
6787 if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
6788   $as_echo_n "(cached) " >&6
6789 else
6790   if test -n "$OBJDUMP"; then
6791   ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
6792 else
6793 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6794 for as_dir in $PATH
6795 do
6796   IFS=$as_save_IFS
6797   test -z "$as_dir" && as_dir=.
6798     for ac_exec_ext in '' $ac_executable_extensions; do
6799   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6800     ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
6801     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6802     break 2
6803   fi
6804 done
6805   done
6806 IFS=$as_save_IFS
6807
6808 fi
6809 fi
6810 OBJDUMP=$ac_cv_prog_OBJDUMP
6811 if test -n "$OBJDUMP"; then
6812   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
6813 $as_echo "$OBJDUMP" >&6; }
6814 else
6815   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6816 $as_echo "no" >&6; }
6817 fi
6818
6819
6820 fi
6821 if test -z "$ac_cv_prog_OBJDUMP"; then
6822   ac_ct_OBJDUMP=$OBJDUMP
6823   # Extract the first word of "objdump", so it can be a program name with args.
6824 set dummy objdump; ac_word=$2
6825 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6826 $as_echo_n "checking for $ac_word... " >&6; }
6827 if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then :
6828   $as_echo_n "(cached) " >&6
6829 else
6830   if test -n "$ac_ct_OBJDUMP"; then
6831   ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
6832 else
6833 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6834 for as_dir in $PATH
6835 do
6836   IFS=$as_save_IFS
6837   test -z "$as_dir" && as_dir=.
6838     for ac_exec_ext in '' $ac_executable_extensions; do
6839   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6840     ac_cv_prog_ac_ct_OBJDUMP="objdump"
6841     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6842     break 2
6843   fi
6844 done
6845   done
6846 IFS=$as_save_IFS
6847
6848 fi
6849 fi
6850 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
6851 if test -n "$ac_ct_OBJDUMP"; then
6852   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
6853 $as_echo "$ac_ct_OBJDUMP" >&6; }
6854 else
6855   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6856 $as_echo "no" >&6; }
6857 fi
6858
6859   if test "x$ac_ct_OBJDUMP" = x; then
6860     OBJDUMP="false"
6861   else
6862     case $cross_compiling:$ac_tool_warned in
6863 yes:)
6864 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6865 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6866 ac_tool_warned=yes ;;
6867 esac
6868     OBJDUMP=$ac_ct_OBJDUMP
6869   fi
6870 else
6871   OBJDUMP="$ac_cv_prog_OBJDUMP"
6872 fi
6873
6874 test -z "$OBJDUMP" && OBJDUMP=objdump
6875
6876
6877
6878
6879
6880
6881
6882
6883
6884 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
6885 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
6886 if test "${lt_cv_deplibs_check_method+set}" = set; then :
6887   $as_echo_n "(cached) " >&6
6888 else
6889   lt_cv_file_magic_cmd='$MAGIC_CMD'
6890 lt_cv_file_magic_test_file=
6891 lt_cv_deplibs_check_method='unknown'
6892 # Need to set the preceding variable on all platforms that support
6893 # interlibrary dependencies.
6894 # 'none' -- dependencies not supported.
6895 # `unknown' -- same as none, but documents that we really don't know.
6896 # 'pass_all' -- all dependencies passed with no checks.
6897 # 'test_compile' -- check by making test program.
6898 # 'file_magic [[regex]]' -- check by looking for files in library path
6899 # which responds to the $file_magic_cmd with a given extended regex.
6900 # If you have `file' or equivalent on your system and you're not sure
6901 # whether `pass_all' will *always* work, you probably want this one.
6902
6903 case $host_os in
6904 aix[4-9]*)
6905   lt_cv_deplibs_check_method=pass_all
6906   ;;
6907
6908 beos*)
6909   lt_cv_deplibs_check_method=pass_all
6910   ;;
6911
6912 bsdi[45]*)
6913   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
6914   lt_cv_file_magic_cmd='/usr/bin/file -L'
6915   lt_cv_file_magic_test_file=/shlib/libc.so
6916   ;;
6917
6918 cygwin*)
6919   # func_win32_libid is a shell function defined in ltmain.sh
6920   lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6921   lt_cv_file_magic_cmd='func_win32_libid'
6922   ;;
6923
6924 mingw* | pw32*)
6925   # Base MSYS/MinGW do not provide the 'file' command needed by
6926   # func_win32_libid shell function, so use a weaker test based on 'objdump',
6927   # unless we find 'file', for example because we are cross-compiling.
6928   if ( file / ) >/dev/null 2>&1; then
6929     lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6930     lt_cv_file_magic_cmd='func_win32_libid'
6931   else
6932     lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
6933     lt_cv_file_magic_cmd='$OBJDUMP -f'
6934   fi
6935   ;;
6936
6937 cegcc)
6938   # use the weaker test based on 'objdump'. See mingw*.
6939   lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
6940   lt_cv_file_magic_cmd='$OBJDUMP -f'
6941   ;;
6942
6943 darwin* | rhapsody*)
6944   lt_cv_deplibs_check_method=pass_all
6945   ;;
6946
6947 freebsd* | dragonfly*)
6948   if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6949     case $host_cpu in
6950     i*86 )
6951       # Not sure whether the presence of OpenBSD here was a mistake.
6952       # Let's accept both of them until this is cleared up.
6953       lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
6954       lt_cv_file_magic_cmd=/usr/bin/file
6955       lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
6956       ;;
6957     esac
6958   else
6959     lt_cv_deplibs_check_method=pass_all
6960   fi
6961   ;;
6962
6963 gnu*)
6964   lt_cv_deplibs_check_method=pass_all
6965   ;;
6966
6967 hpux10.20* | hpux11*)
6968   lt_cv_file_magic_cmd=/usr/bin/file
6969   case $host_cpu in
6970   ia64*)
6971     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
6972     lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
6973     ;;
6974   hppa*64*)
6975     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]'
6976     lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
6977     ;;
6978   *)
6979     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
6980     lt_cv_file_magic_test_file=/usr/lib/libc.sl
6981     ;;
6982   esac
6983   ;;
6984
6985 interix[3-9]*)
6986   # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
6987   lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
6988   ;;
6989
6990 irix5* | irix6* | nonstopux*)
6991   case $LD in
6992   *-32|*"-32 ") libmagic=32-bit;;
6993   *-n32|*"-n32 ") libmagic=N32;;
6994   *-64|*"-64 ") libmagic=64-bit;;
6995   *) libmagic=never-match;;
6996   esac
6997   lt_cv_deplibs_check_method=pass_all
6998   ;;
6999
7000 # This must be Linux ELF.
7001 linux* | k*bsd*-gnu)
7002   lt_cv_deplibs_check_method=pass_all
7003   ;;
7004
7005 netbsd*)
7006   if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
7007     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
7008   else
7009     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
7010   fi
7011   ;;
7012
7013 newos6*)
7014   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
7015   lt_cv_file_magic_cmd=/usr/bin/file
7016   lt_cv_file_magic_test_file=/usr/lib/libnls.so
7017   ;;
7018
7019 *nto* | *qnx*)
7020   lt_cv_deplibs_check_method=pass_all
7021   ;;
7022
7023 openbsd*)
7024   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
7025     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
7026   else
7027     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
7028   fi
7029   ;;
7030
7031 osf3* | osf4* | osf5*)
7032   lt_cv_deplibs_check_method=pass_all
7033   ;;
7034
7035 rdos*)
7036   lt_cv_deplibs_check_method=pass_all
7037   ;;
7038
7039 solaris*)
7040   lt_cv_deplibs_check_method=pass_all
7041   ;;
7042
7043 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
7044   lt_cv_deplibs_check_method=pass_all
7045   ;;
7046
7047 sysv4 | sysv4.3*)
7048   case $host_vendor in
7049   motorola)
7050     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]'
7051     lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
7052     ;;
7053   ncr)
7054     lt_cv_deplibs_check_method=pass_all
7055     ;;
7056   sequent)
7057     lt_cv_file_magic_cmd='/bin/file'
7058     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
7059     ;;
7060   sni)
7061     lt_cv_file_magic_cmd='/bin/file'
7062     lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
7063     lt_cv_file_magic_test_file=/lib/libc.so
7064     ;;
7065   siemens)
7066     lt_cv_deplibs_check_method=pass_all
7067     ;;
7068   pc)
7069     lt_cv_deplibs_check_method=pass_all
7070     ;;
7071   esac
7072   ;;
7073
7074 tpf*)
7075   lt_cv_deplibs_check_method=pass_all
7076   ;;
7077 esac
7078
7079 fi
7080 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
7081 $as_echo "$lt_cv_deplibs_check_method" >&6; }
7082 file_magic_cmd=$lt_cv_file_magic_cmd
7083 deplibs_check_method=$lt_cv_deplibs_check_method
7084 test -z "$deplibs_check_method" && deplibs_check_method=unknown
7085
7086
7087
7088
7089
7090
7091
7092
7093
7094
7095
7096
7097 if test -n "$ac_tool_prefix"; then
7098   # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
7099 set dummy ${ac_tool_prefix}ar; ac_word=$2
7100 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7101 $as_echo_n "checking for $ac_word... " >&6; }
7102 if test "${ac_cv_prog_AR+set}" = set; then :
7103   $as_echo_n "(cached) " >&6
7104 else
7105   if test -n "$AR"; then
7106   ac_cv_prog_AR="$AR" # Let the user override the test.
7107 else
7108 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7109 for as_dir in $PATH
7110 do
7111   IFS=$as_save_IFS
7112   test -z "$as_dir" && as_dir=.
7113     for ac_exec_ext in '' $ac_executable_extensions; do
7114   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7115     ac_cv_prog_AR="${ac_tool_prefix}ar"
7116     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7117     break 2
7118   fi
7119 done
7120   done
7121 IFS=$as_save_IFS
7122
7123 fi
7124 fi
7125 AR=$ac_cv_prog_AR
7126 if test -n "$AR"; then
7127   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
7128 $as_echo "$AR" >&6; }
7129 else
7130   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7131 $as_echo "no" >&6; }
7132 fi
7133
7134
7135 fi
7136 if test -z "$ac_cv_prog_AR"; then
7137   ac_ct_AR=$AR
7138   # Extract the first word of "ar", so it can be a program name with args.
7139 set dummy ar; ac_word=$2
7140 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7141 $as_echo_n "checking for $ac_word... " >&6; }
7142 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
7143   $as_echo_n "(cached) " >&6
7144 else
7145   if test -n "$ac_ct_AR"; then
7146   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
7147 else
7148 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7149 for as_dir in $PATH
7150 do
7151   IFS=$as_save_IFS
7152   test -z "$as_dir" && as_dir=.
7153     for ac_exec_ext in '' $ac_executable_extensions; do
7154   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7155     ac_cv_prog_ac_ct_AR="ar"
7156     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7157     break 2
7158   fi
7159 done
7160   done
7161 IFS=$as_save_IFS
7162
7163 fi
7164 fi
7165 ac_ct_AR=$ac_cv_prog_ac_ct_AR
7166 if test -n "$ac_ct_AR"; then
7167   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
7168 $as_echo "$ac_ct_AR" >&6; }
7169 else
7170   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7171 $as_echo "no" >&6; }
7172 fi
7173
7174   if test "x$ac_ct_AR" = x; then
7175     AR="false"
7176   else
7177     case $cross_compiling:$ac_tool_warned in
7178 yes:)
7179 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7180 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7181 ac_tool_warned=yes ;;
7182 esac
7183     AR=$ac_ct_AR
7184   fi
7185 else
7186   AR="$ac_cv_prog_AR"
7187 fi
7188
7189 test -z "$AR" && AR=ar
7190 test -z "$AR_FLAGS" && AR_FLAGS=cru
7191
7192
7193
7194
7195
7196
7197
7198
7199
7200
7201
7202 if test -n "$ac_tool_prefix"; then
7203   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
7204 set dummy ${ac_tool_prefix}strip; ac_word=$2
7205 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7206 $as_echo_n "checking for $ac_word... " >&6; }
7207 if test "${ac_cv_prog_STRIP+set}" = set; then :
7208   $as_echo_n "(cached) " >&6
7209 else
7210   if test -n "$STRIP"; then
7211   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
7212 else
7213 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7214 for as_dir in $PATH
7215 do
7216   IFS=$as_save_IFS
7217   test -z "$as_dir" && as_dir=.
7218     for ac_exec_ext in '' $ac_executable_extensions; do
7219   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7220     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
7221     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7222     break 2
7223   fi
7224 done
7225   done
7226 IFS=$as_save_IFS
7227
7228 fi
7229 fi
7230 STRIP=$ac_cv_prog_STRIP
7231 if test -n "$STRIP"; then
7232   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
7233 $as_echo "$STRIP" >&6; }
7234 else
7235   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7236 $as_echo "no" >&6; }
7237 fi
7238
7239
7240 fi
7241 if test -z "$ac_cv_prog_STRIP"; then
7242   ac_ct_STRIP=$STRIP
7243   # Extract the first word of "strip", so it can be a program name with args.
7244 set dummy strip; ac_word=$2
7245 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7246 $as_echo_n "checking for $ac_word... " >&6; }
7247 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
7248   $as_echo_n "(cached) " >&6
7249 else
7250   if test -n "$ac_ct_STRIP"; then
7251   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
7252 else
7253 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7254 for as_dir in $PATH
7255 do
7256   IFS=$as_save_IFS
7257   test -z "$as_dir" && as_dir=.
7258     for ac_exec_ext in '' $ac_executable_extensions; do
7259   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7260     ac_cv_prog_ac_ct_STRIP="strip"
7261     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7262     break 2
7263   fi
7264 done
7265   done
7266 IFS=$as_save_IFS
7267
7268 fi
7269 fi
7270 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
7271 if test -n "$ac_ct_STRIP"; then
7272   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
7273 $as_echo "$ac_ct_STRIP" >&6; }
7274 else
7275   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7276 $as_echo "no" >&6; }
7277 fi
7278
7279   if test "x$ac_ct_STRIP" = x; then
7280     STRIP=":"
7281   else
7282     case $cross_compiling:$ac_tool_warned in
7283 yes:)
7284 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7285 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7286 ac_tool_warned=yes ;;
7287 esac
7288     STRIP=$ac_ct_STRIP
7289   fi
7290 else
7291   STRIP="$ac_cv_prog_STRIP"
7292 fi
7293
7294 test -z "$STRIP" && STRIP=:
7295
7296
7297
7298
7299
7300
7301 if test -n "$ac_tool_prefix"; then
7302   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
7303 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
7304 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7305 $as_echo_n "checking for $ac_word... " >&6; }
7306 if test "${ac_cv_prog_RANLIB+set}" = set; then :
7307   $as_echo_n "(cached) " >&6
7308 else
7309   if test -n "$RANLIB"; then
7310   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
7311 else
7312 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7313 for as_dir in $PATH
7314 do
7315   IFS=$as_save_IFS
7316   test -z "$as_dir" && as_dir=.
7317     for ac_exec_ext in '' $ac_executable_extensions; do
7318   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7319     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
7320     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7321     break 2
7322   fi
7323 done
7324   done
7325 IFS=$as_save_IFS
7326
7327 fi
7328 fi
7329 RANLIB=$ac_cv_prog_RANLIB
7330 if test -n "$RANLIB"; then
7331   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
7332 $as_echo "$RANLIB" >&6; }
7333 else
7334   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7335 $as_echo "no" >&6; }
7336 fi
7337
7338
7339 fi
7340 if test -z "$ac_cv_prog_RANLIB"; then
7341   ac_ct_RANLIB=$RANLIB
7342   # Extract the first word of "ranlib", so it can be a program name with args.
7343 set dummy ranlib; ac_word=$2
7344 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7345 $as_echo_n "checking for $ac_word... " >&6; }
7346 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
7347   $as_echo_n "(cached) " >&6
7348 else
7349   if test -n "$ac_ct_RANLIB"; then
7350   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
7351 else
7352 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7353 for as_dir in $PATH
7354 do
7355   IFS=$as_save_IFS
7356   test -z "$as_dir" && as_dir=.
7357     for ac_exec_ext in '' $ac_executable_extensions; do
7358   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7359     ac_cv_prog_ac_ct_RANLIB="ranlib"
7360     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7361     break 2
7362   fi
7363 done
7364   done
7365 IFS=$as_save_IFS
7366
7367 fi
7368 fi
7369 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
7370 if test -n "$ac_ct_RANLIB"; then
7371   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
7372 $as_echo "$ac_ct_RANLIB" >&6; }
7373 else
7374   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7375 $as_echo "no" >&6; }
7376 fi
7377
7378   if test "x$ac_ct_RANLIB" = x; then
7379     RANLIB=":"
7380   else
7381     case $cross_compiling:$ac_tool_warned in
7382 yes:)
7383 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7384 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7385 ac_tool_warned=yes ;;
7386 esac
7387     RANLIB=$ac_ct_RANLIB
7388   fi
7389 else
7390   RANLIB="$ac_cv_prog_RANLIB"
7391 fi
7392
7393 test -z "$RANLIB" && RANLIB=:
7394
7395
7396
7397
7398
7399
7400 # Determine commands to create old-style static archives.
7401 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
7402 old_postinstall_cmds='chmod 644 $oldlib'
7403 old_postuninstall_cmds=
7404
7405 if test -n "$RANLIB"; then
7406   case $host_os in
7407   openbsd*)
7408     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
7409     ;;
7410   *)
7411     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
7412     ;;
7413   esac
7414   old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
7415 fi
7416
7417
7418
7419
7420
7421
7422
7423
7424
7425
7426
7427
7428
7429
7430
7431
7432
7433
7434
7435
7436
7437
7438
7439
7440
7441
7442
7443
7444
7445
7446
7447
7448
7449
7450 # If no C compiler was specified, use CC.
7451 LTCC=${LTCC-"$CC"}
7452
7453 # If no C compiler flags were specified, use CFLAGS.
7454 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7455
7456 # Allow CC to be a program name with arguments.
7457 compiler=$CC
7458
7459
7460 # Check for command to grab the raw symbol name followed by C symbol from nm.
7461 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
7462 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
7463 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then :
7464   $as_echo_n "(cached) " >&6
7465 else
7466
7467 # These are sane defaults that work on at least a few old systems.
7468 # [They come from Ultrix.  What could be older than Ultrix?!! ;)]
7469
7470 # Character class describing NM global symbol codes.
7471 symcode='[BCDEGRST]'
7472
7473 # Regexp to match symbols that can be accessed directly from C.
7474 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
7475
7476 # Define system-specific variables.
7477 case $host_os in
7478 aix*)
7479   symcode='[BCDT]'
7480   ;;
7481 cygwin* | mingw* | pw32* | cegcc*)
7482   symcode='[ABCDGISTW]'
7483   ;;
7484 hpux*)
7485   if test "$host_cpu" = ia64; then
7486     symcode='[ABCDEGRST]'
7487   fi
7488   ;;
7489 irix* | nonstopux*)
7490   symcode='[BCDEGRST]'
7491   ;;
7492 osf*)
7493   symcode='[BCDEGQRST]'
7494   ;;
7495 solaris*)
7496   symcode='[BDRT]'
7497   ;;
7498 sco3.2v5*)
7499   symcode='[DT]'
7500   ;;
7501 sysv4.2uw2*)
7502   symcode='[DT]'
7503   ;;
7504 sysv5* | sco5v6* | unixware* | OpenUNIX*)
7505   symcode='[ABDT]'
7506   ;;
7507 sysv4)
7508   symcode='[DFNSTU]'
7509   ;;
7510 esac
7511
7512 # If we're using GNU nm, then use its standard symbol codes.
7513 case `$NM -V 2>&1` in
7514 *GNU* | *'with BFD'*)
7515   symcode='[ABCDGIRSTW]' ;;
7516 esac
7517
7518 # Transform an extracted symbol line into a proper C declaration.
7519 # Some systems (esp. on ia64) link data and code symbols differently,
7520 # so use this general approach.
7521 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
7522
7523 # Transform an extracted symbol line into symbol name and symbol address
7524 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/  {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"\2\", (void *) \&\2},/p'"
7525 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'"
7526
7527 # Handle CRLF in mingw tool chain
7528 opt_cr=
7529 case $build_os in
7530 mingw*)
7531   opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
7532   ;;
7533 esac
7534
7535 # Try without a prefix underscore, then with it.
7536 for ac_symprfx in "" "_"; do
7537
7538   # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
7539   symxfrm="\\1 $ac_symprfx\\2 \\2"
7540
7541   # Write the raw and C identifiers.
7542   if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7543     # Fake it for dumpbin and say T for any non-static function
7544     # and D for any global variable.
7545     # Also find C++ and __fastcall symbols from MSVC++,
7546     # which start with @ or ?.
7547     lt_cv_sys_global_symbol_pipe="$AWK '"\
7548 "     {last_section=section; section=\$ 3};"\
7549 "     /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
7550 "     \$ 0!~/External *\|/{next};"\
7551 "     / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
7552 "     {if(hide[section]) next};"\
7553 "     {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
7554 "     {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
7555 "     s[1]~/^[@?]/{print s[1], s[1]; next};"\
7556 "     s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
7557 "     ' prfx=^$ac_symprfx"
7558   else
7559     lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[      ]\($symcode$symcode*\)[         ][      ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
7560   fi
7561
7562   # Check to see that the pipe works correctly.
7563   pipe_works=no
7564
7565   rm -f conftest*
7566   cat > conftest.$ac_ext <<_LT_EOF
7567 #ifdef __cplusplus
7568 extern "C" {
7569 #endif
7570 char nm_test_var;
7571 void nm_test_func(void);
7572 void nm_test_func(void){}
7573 #ifdef __cplusplus
7574 }
7575 #endif
7576 int main(){nm_test_var='a';nm_test_func();return(0);}
7577 _LT_EOF
7578
7579   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7580   (eval $ac_compile) 2>&5
7581   ac_status=$?
7582   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7583   test $ac_status = 0; }; then
7584     # Now try to grab the symbols.
7585     nlist=conftest.nm
7586     if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\""; } >&5
7587   (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
7588   ac_status=$?
7589   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7590   test $ac_status = 0; } && test -s "$nlist"; then
7591       # Try sorting and uniquifying the output.
7592       if sort "$nlist" | uniq > "$nlist"T; then
7593         mv -f "$nlist"T "$nlist"
7594       else
7595         rm -f "$nlist"T
7596       fi
7597
7598       # Make sure that we snagged all the symbols we need.
7599       if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
7600         if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
7601           cat <<_LT_EOF > conftest.$ac_ext
7602 #ifdef __cplusplus
7603 extern "C" {
7604 #endif
7605
7606 _LT_EOF
7607           # Now generate the symbol file.
7608           eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
7609
7610           cat <<_LT_EOF >> conftest.$ac_ext
7611
7612 /* The mapping between symbol names and symbols.  */
7613 const struct {
7614   const char *name;
7615   void       *address;
7616 }
7617 lt__PROGRAM__LTX_preloaded_symbols[] =
7618 {
7619   { "@PROGRAM@", (void *) 0 },
7620 _LT_EOF
7621           $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
7622           cat <<\_LT_EOF >> conftest.$ac_ext
7623   {0, (void *) 0}
7624 };
7625
7626 /* This works around a problem in FreeBSD linker */
7627 #ifdef FREEBSD_WORKAROUND
7628 static const void *lt_preloaded_setup() {
7629   return lt__PROGRAM__LTX_preloaded_symbols;
7630 }
7631 #endif
7632
7633 #ifdef __cplusplus
7634 }
7635 #endif
7636 _LT_EOF
7637           # Now try linking the two files.
7638           mv conftest.$ac_objext conftstm.$ac_objext
7639           lt_save_LIBS="$LIBS"
7640           lt_save_CFLAGS="$CFLAGS"
7641           LIBS="conftstm.$ac_objext"
7642           CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
7643           if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
7644   (eval $ac_link) 2>&5
7645   ac_status=$?
7646   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7647   test $ac_status = 0; } && test -s conftest${ac_exeext}; then
7648             pipe_works=yes
7649           fi
7650           LIBS="$lt_save_LIBS"
7651           CFLAGS="$lt_save_CFLAGS"
7652         else
7653           echo "cannot find nm_test_func in $nlist" >&5
7654         fi
7655       else
7656         echo "cannot find nm_test_var in $nlist" >&5
7657       fi
7658     else
7659       echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
7660     fi
7661   else
7662     echo "$progname: failed program was:" >&5
7663     cat conftest.$ac_ext >&5
7664   fi
7665   rm -rf conftest* conftst*
7666
7667   # Do not use the global_symbol_pipe unless it works.
7668   if test "$pipe_works" = yes; then
7669     break
7670   else
7671     lt_cv_sys_global_symbol_pipe=
7672   fi
7673 done
7674
7675 fi
7676
7677 if test -z "$lt_cv_sys_global_symbol_pipe"; then
7678   lt_cv_sys_global_symbol_to_cdecl=
7679 fi
7680 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
7681   { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
7682 $as_echo "failed" >&6; }
7683 else
7684   { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
7685 $as_echo "ok" >&6; }
7686 fi
7687
7688
7689
7690
7691
7692
7693
7694
7695
7696
7697
7698
7699
7700
7701
7702
7703
7704
7705
7706
7707
7708
7709 # Check whether --enable-libtool-lock was given.
7710 if test "${enable_libtool_lock+set}" = set; then :
7711   enableval=$enable_libtool_lock;
7712 fi
7713
7714 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
7715
7716 # Some flags need to be propagated to the compiler or linker for good
7717 # libtool support.
7718 case $host in
7719 ia64-*-hpux*)
7720   # Find out which ABI we are using.
7721   echo 'int i;' > conftest.$ac_ext
7722   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7723   (eval $ac_compile) 2>&5
7724   ac_status=$?
7725   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7726   test $ac_status = 0; }; then
7727     case `/usr/bin/file conftest.$ac_objext` in
7728       *ELF-32*)
7729         HPUX_IA64_MODE="32"
7730         ;;
7731       *ELF-64*)
7732         HPUX_IA64_MODE="64"
7733         ;;
7734     esac
7735   fi
7736   rm -rf conftest*
7737   ;;
7738 *-*-irix6*)
7739   # Find out which ABI we are using.
7740   echo '#line 7740 "configure"' > conftest.$ac_ext
7741   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7742   (eval $ac_compile) 2>&5
7743   ac_status=$?
7744   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7745   test $ac_status = 0; }; then
7746     if test "$lt_cv_prog_gnu_ld" = yes; then
7747       case `/usr/bin/file conftest.$ac_objext` in
7748         *32-bit*)
7749           LD="${LD-ld} -melf32bsmip"
7750           ;;
7751         *N32*)
7752           LD="${LD-ld} -melf32bmipn32"
7753           ;;
7754         *64-bit*)
7755           LD="${LD-ld} -melf64bmip"
7756         ;;
7757       esac
7758     else
7759       case `/usr/bin/file conftest.$ac_objext` in
7760         *32-bit*)
7761           LD="${LD-ld} -32"
7762           ;;
7763         *N32*)
7764           LD="${LD-ld} -n32"
7765           ;;
7766         *64-bit*)
7767           LD="${LD-ld} -64"
7768           ;;
7769       esac
7770     fi
7771   fi
7772   rm -rf conftest*
7773   ;;
7774
7775 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
7776 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
7777   # Find out which ABI we are using.
7778   echo 'int i;' > conftest.$ac_ext
7779   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7780   (eval $ac_compile) 2>&5
7781   ac_status=$?
7782   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7783   test $ac_status = 0; }; then
7784     case `/usr/bin/file conftest.o` in
7785       *32-bit*)
7786         case $host in
7787           x86_64-*kfreebsd*-gnu)
7788             LD="${LD-ld} -m elf_i386_fbsd"
7789             ;;
7790           x86_64-*linux*)
7791             LD="${LD-ld} -m elf_i386"
7792             ;;
7793           ppc64-*linux*|powerpc64-*linux*)
7794             LD="${LD-ld} -m elf32ppclinux"
7795             ;;
7796           s390x-*linux*)
7797             LD="${LD-ld} -m elf_s390"
7798             ;;
7799           sparc64-*linux*)
7800             LD="${LD-ld} -m elf32_sparc"
7801             ;;
7802         esac
7803         ;;
7804       *64-bit*)
7805         case $host in
7806           x86_64-*kfreebsd*-gnu)
7807             LD="${LD-ld} -m elf_x86_64_fbsd"
7808             ;;
7809           x86_64-*linux*)
7810             LD="${LD-ld} -m elf_x86_64"
7811             ;;
7812           ppc*-*linux*|powerpc*-*linux*)
7813             LD="${LD-ld} -m elf64ppc"
7814             ;;
7815           s390*-*linux*|s390*-*tpf*)
7816             LD="${LD-ld} -m elf64_s390"
7817             ;;
7818           sparc*-*linux*)
7819             LD="${LD-ld} -m elf64_sparc"
7820             ;;
7821         esac
7822         ;;
7823     esac
7824   fi
7825   rm -rf conftest*
7826   ;;
7827
7828 *-*-sco3.2v5*)
7829   # On SCO OpenServer 5, we need -belf to get full-featured binaries.
7830   SAVE_CFLAGS="$CFLAGS"
7831   CFLAGS="$CFLAGS -belf"
7832   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
7833 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
7834 if test "${lt_cv_cc_needs_belf+set}" = set; then :
7835   $as_echo_n "(cached) " >&6
7836 else
7837   ac_ext=c
7838 ac_cpp='$CPP $CPPFLAGS'
7839 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7840 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7841 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7842
7843      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7844 /* end confdefs.h.  */
7845
7846 int
7847 main ()
7848 {
7849
7850   ;
7851   return 0;
7852 }
7853 _ACEOF
7854 if ac_fn_c_try_link "$LINENO"; then :
7855   lt_cv_cc_needs_belf=yes
7856 else
7857   lt_cv_cc_needs_belf=no
7858 fi
7859 rm -f core conftest.err conftest.$ac_objext \
7860     conftest$ac_exeext conftest.$ac_ext
7861      ac_ext=c
7862 ac_cpp='$CPP $CPPFLAGS'
7863 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7864 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7865 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7866
7867 fi
7868 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
7869 $as_echo "$lt_cv_cc_needs_belf" >&6; }
7870   if test x"$lt_cv_cc_needs_belf" != x"yes"; then
7871     # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
7872     CFLAGS="$SAVE_CFLAGS"
7873   fi
7874   ;;
7875 sparc*-*solaris*)
7876   # Find out which ABI we are using.
7877   echo 'int i;' > conftest.$ac_ext
7878   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7879   (eval $ac_compile) 2>&5
7880   ac_status=$?
7881   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7882   test $ac_status = 0; }; then
7883     case `/usr/bin/file conftest.o` in
7884     *64-bit*)
7885       case $lt_cv_prog_gnu_ld in
7886       yes*) LD="${LD-ld} -m elf64_sparc" ;;
7887       *)
7888         if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
7889           LD="${LD-ld} -64"
7890         fi
7891         ;;
7892       esac
7893       ;;
7894     esac
7895   fi
7896   rm -rf conftest*
7897   ;;
7898 esac
7899
7900 need_locks="$enable_libtool_lock"
7901
7902
7903   case $host_os in
7904     rhapsody* | darwin*)
7905     if test -n "$ac_tool_prefix"; then
7906   # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
7907 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
7908 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7909 $as_echo_n "checking for $ac_word... " >&6; }
7910 if test "${ac_cv_prog_DSYMUTIL+set}" = set; then :
7911   $as_echo_n "(cached) " >&6
7912 else
7913   if test -n "$DSYMUTIL"; then
7914   ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
7915 else
7916 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7917 for as_dir in $PATH
7918 do
7919   IFS=$as_save_IFS
7920   test -z "$as_dir" && as_dir=.
7921     for ac_exec_ext in '' $ac_executable_extensions; do
7922   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7923     ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
7924     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7925     break 2
7926   fi
7927 done
7928   done
7929 IFS=$as_save_IFS
7930
7931 fi
7932 fi
7933 DSYMUTIL=$ac_cv_prog_DSYMUTIL
7934 if test -n "$DSYMUTIL"; then
7935   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
7936 $as_echo "$DSYMUTIL" >&6; }
7937 else
7938   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7939 $as_echo "no" >&6; }
7940 fi
7941
7942
7943 fi
7944 if test -z "$ac_cv_prog_DSYMUTIL"; then
7945   ac_ct_DSYMUTIL=$DSYMUTIL
7946   # Extract the first word of "dsymutil", so it can be a program name with args.
7947 set dummy dsymutil; ac_word=$2
7948 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7949 $as_echo_n "checking for $ac_word... " >&6; }
7950 if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then :
7951   $as_echo_n "(cached) " >&6
7952 else
7953   if test -n "$ac_ct_DSYMUTIL"; then
7954   ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
7955 else
7956 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7957 for as_dir in $PATH
7958 do
7959   IFS=$as_save_IFS
7960   test -z "$as_dir" && as_dir=.
7961     for ac_exec_ext in '' $ac_executable_extensions; do
7962   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7963     ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
7964     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7965     break 2
7966   fi
7967 done
7968   done
7969 IFS=$as_save_IFS
7970
7971 fi
7972 fi
7973 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
7974 if test -n "$ac_ct_DSYMUTIL"; then
7975   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
7976 $as_echo "$ac_ct_DSYMUTIL" >&6; }
7977 else
7978   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7979 $as_echo "no" >&6; }
7980 fi
7981
7982   if test "x$ac_ct_DSYMUTIL" = x; then
7983     DSYMUTIL=":"
7984   else
7985     case $cross_compiling:$ac_tool_warned in
7986 yes:)
7987 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7988 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7989 ac_tool_warned=yes ;;
7990 esac
7991     DSYMUTIL=$ac_ct_DSYMUTIL
7992   fi
7993 else
7994   DSYMUTIL="$ac_cv_prog_DSYMUTIL"
7995 fi
7996
7997     if test -n "$ac_tool_prefix"; then
7998   # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
7999 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
8000 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8001 $as_echo_n "checking for $ac_word... " >&6; }
8002 if test "${ac_cv_prog_NMEDIT+set}" = set; then :
8003   $as_echo_n "(cached) " >&6
8004 else
8005   if test -n "$NMEDIT"; then
8006   ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
8007 else
8008 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8009 for as_dir in $PATH
8010 do
8011   IFS=$as_save_IFS
8012   test -z "$as_dir" && as_dir=.
8013     for ac_exec_ext in '' $ac_executable_extensions; do
8014   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8015     ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
8016     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8017     break 2
8018   fi
8019 done
8020   done
8021 IFS=$as_save_IFS
8022
8023 fi
8024 fi
8025 NMEDIT=$ac_cv_prog_NMEDIT
8026 if test -n "$NMEDIT"; then
8027   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
8028 $as_echo "$NMEDIT" >&6; }
8029 else
8030   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8031 $as_echo "no" >&6; }
8032 fi
8033
8034
8035 fi
8036 if test -z "$ac_cv_prog_NMEDIT"; then
8037   ac_ct_NMEDIT=$NMEDIT
8038   # Extract the first word of "nmedit", so it can be a program name with args.
8039 set dummy nmedit; ac_word=$2
8040 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8041 $as_echo_n "checking for $ac_word... " >&6; }
8042 if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then :
8043   $as_echo_n "(cached) " >&6
8044 else
8045   if test -n "$ac_ct_NMEDIT"; then
8046   ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
8047 else
8048 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8049 for as_dir in $PATH
8050 do
8051   IFS=$as_save_IFS
8052   test -z "$as_dir" && as_dir=.
8053     for ac_exec_ext in '' $ac_executable_extensions; do
8054   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8055     ac_cv_prog_ac_ct_NMEDIT="nmedit"
8056     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8057     break 2
8058   fi
8059 done
8060   done
8061 IFS=$as_save_IFS
8062
8063 fi
8064 fi
8065 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
8066 if test -n "$ac_ct_NMEDIT"; then
8067   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
8068 $as_echo "$ac_ct_NMEDIT" >&6; }
8069 else
8070   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8071 $as_echo "no" >&6; }
8072 fi
8073
8074   if test "x$ac_ct_NMEDIT" = x; then
8075     NMEDIT=":"
8076   else
8077     case $cross_compiling:$ac_tool_warned in
8078 yes:)
8079 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8080 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8081 ac_tool_warned=yes ;;
8082 esac
8083     NMEDIT=$ac_ct_NMEDIT
8084   fi
8085 else
8086   NMEDIT="$ac_cv_prog_NMEDIT"
8087 fi
8088
8089     if test -n "$ac_tool_prefix"; then
8090   # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
8091 set dummy ${ac_tool_prefix}lipo; ac_word=$2
8092 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8093 $as_echo_n "checking for $ac_word... " >&6; }
8094 if test "${ac_cv_prog_LIPO+set}" = set; then :
8095   $as_echo_n "(cached) " >&6
8096 else
8097   if test -n "$LIPO"; then
8098   ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
8099 else
8100 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8101 for as_dir in $PATH
8102 do
8103   IFS=$as_save_IFS
8104   test -z "$as_dir" && as_dir=.
8105     for ac_exec_ext in '' $ac_executable_extensions; do
8106   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8107     ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
8108     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8109     break 2
8110   fi
8111 done
8112   done
8113 IFS=$as_save_IFS
8114
8115 fi
8116 fi
8117 LIPO=$ac_cv_prog_LIPO
8118 if test -n "$LIPO"; then
8119   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
8120 $as_echo "$LIPO" >&6; }
8121 else
8122   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8123 $as_echo "no" >&6; }
8124 fi
8125
8126
8127 fi
8128 if test -z "$ac_cv_prog_LIPO"; then
8129   ac_ct_LIPO=$LIPO
8130   # Extract the first word of "lipo", so it can be a program name with args.
8131 set dummy lipo; ac_word=$2
8132 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8133 $as_echo_n "checking for $ac_word... " >&6; }
8134 if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then :
8135   $as_echo_n "(cached) " >&6
8136 else
8137   if test -n "$ac_ct_LIPO"; then
8138   ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
8139 else
8140 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8141 for as_dir in $PATH
8142 do
8143   IFS=$as_save_IFS
8144   test -z "$as_dir" && as_dir=.
8145     for ac_exec_ext in '' $ac_executable_extensions; do
8146   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8147     ac_cv_prog_ac_ct_LIPO="lipo"
8148     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8149     break 2
8150   fi
8151 done
8152   done
8153 IFS=$as_save_IFS
8154
8155 fi
8156 fi
8157 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
8158 if test -n "$ac_ct_LIPO"; then
8159   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
8160 $as_echo "$ac_ct_LIPO" >&6; }
8161 else
8162   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8163 $as_echo "no" >&6; }
8164 fi
8165
8166   if test "x$ac_ct_LIPO" = x; then
8167     LIPO=":"
8168   else
8169     case $cross_compiling:$ac_tool_warned in
8170 yes:)
8171 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8172 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8173 ac_tool_warned=yes ;;
8174 esac
8175     LIPO=$ac_ct_LIPO
8176   fi
8177 else
8178   LIPO="$ac_cv_prog_LIPO"
8179 fi
8180
8181     if test -n "$ac_tool_prefix"; then
8182   # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
8183 set dummy ${ac_tool_prefix}otool; ac_word=$2
8184 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8185 $as_echo_n "checking for $ac_word... " >&6; }
8186 if test "${ac_cv_prog_OTOOL+set}" = set; then :
8187   $as_echo_n "(cached) " >&6
8188 else
8189   if test -n "$OTOOL"; then
8190   ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
8191 else
8192 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8193 for as_dir in $PATH
8194 do
8195   IFS=$as_save_IFS
8196   test -z "$as_dir" && as_dir=.
8197     for ac_exec_ext in '' $ac_executable_extensions; do
8198   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8199     ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
8200     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8201     break 2
8202   fi
8203 done
8204   done
8205 IFS=$as_save_IFS
8206
8207 fi
8208 fi
8209 OTOOL=$ac_cv_prog_OTOOL
8210 if test -n "$OTOOL"; then
8211   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
8212 $as_echo "$OTOOL" >&6; }
8213 else
8214   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8215 $as_echo "no" >&6; }
8216 fi
8217
8218
8219 fi
8220 if test -z "$ac_cv_prog_OTOOL"; then
8221   ac_ct_OTOOL=$OTOOL
8222   # Extract the first word of "otool", so it can be a program name with args.
8223 set dummy otool; ac_word=$2
8224 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8225 $as_echo_n "checking for $ac_word... " >&6; }
8226 if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then :
8227   $as_echo_n "(cached) " >&6
8228 else
8229   if test -n "$ac_ct_OTOOL"; then
8230   ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
8231 else
8232 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8233 for as_dir in $PATH
8234 do
8235   IFS=$as_save_IFS
8236   test -z "$as_dir" && as_dir=.
8237     for ac_exec_ext in '' $ac_executable_extensions; do
8238   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8239     ac_cv_prog_ac_ct_OTOOL="otool"
8240     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8241     break 2
8242   fi
8243 done
8244   done
8245 IFS=$as_save_IFS
8246
8247 fi
8248 fi
8249 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
8250 if test -n "$ac_ct_OTOOL"; then
8251   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
8252 $as_echo "$ac_ct_OTOOL" >&6; }
8253 else
8254   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8255 $as_echo "no" >&6; }
8256 fi
8257
8258   if test "x$ac_ct_OTOOL" = x; then
8259     OTOOL=":"
8260   else
8261     case $cross_compiling:$ac_tool_warned in
8262 yes:)
8263 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8264 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8265 ac_tool_warned=yes ;;
8266 esac
8267     OTOOL=$ac_ct_OTOOL
8268   fi
8269 else
8270   OTOOL="$ac_cv_prog_OTOOL"
8271 fi
8272
8273     if test -n "$ac_tool_prefix"; then
8274   # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
8275 set dummy ${ac_tool_prefix}otool64; ac_word=$2
8276 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8277 $as_echo_n "checking for $ac_word... " >&6; }
8278 if test "${ac_cv_prog_OTOOL64+set}" = set; then :
8279   $as_echo_n "(cached) " >&6
8280 else
8281   if test -n "$OTOOL64"; then
8282   ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
8283 else
8284 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8285 for as_dir in $PATH
8286 do
8287   IFS=$as_save_IFS
8288   test -z "$as_dir" && as_dir=.
8289     for ac_exec_ext in '' $ac_executable_extensions; do
8290   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8291     ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
8292     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8293     break 2
8294   fi
8295 done
8296   done
8297 IFS=$as_save_IFS
8298
8299 fi
8300 fi
8301 OTOOL64=$ac_cv_prog_OTOOL64
8302 if test -n "$OTOOL64"; then
8303   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
8304 $as_echo "$OTOOL64" >&6; }
8305 else
8306   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8307 $as_echo "no" >&6; }
8308 fi
8309
8310
8311 fi
8312 if test -z "$ac_cv_prog_OTOOL64"; then
8313   ac_ct_OTOOL64=$OTOOL64
8314   # Extract the first word of "otool64", so it can be a program name with args.
8315 set dummy otool64; ac_word=$2
8316 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8317 $as_echo_n "checking for $ac_word... " >&6; }
8318 if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then :
8319   $as_echo_n "(cached) " >&6
8320 else
8321   if test -n "$ac_ct_OTOOL64"; then
8322   ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
8323 else
8324 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8325 for as_dir in $PATH
8326 do
8327   IFS=$as_save_IFS
8328   test -z "$as_dir" && as_dir=.
8329     for ac_exec_ext in '' $ac_executable_extensions; do
8330   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8331     ac_cv_prog_ac_ct_OTOOL64="otool64"
8332     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8333     break 2
8334   fi
8335 done
8336   done
8337 IFS=$as_save_IFS
8338
8339 fi
8340 fi
8341 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
8342 if test -n "$ac_ct_OTOOL64"; then
8343   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
8344 $as_echo "$ac_ct_OTOOL64" >&6; }
8345 else
8346   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8347 $as_echo "no" >&6; }
8348 fi
8349
8350   if test "x$ac_ct_OTOOL64" = x; then
8351     OTOOL64=":"
8352   else
8353     case $cross_compiling:$ac_tool_warned in
8354 yes:)
8355 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8356 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8357 ac_tool_warned=yes ;;
8358 esac
8359     OTOOL64=$ac_ct_OTOOL64
8360   fi
8361 else
8362   OTOOL64="$ac_cv_prog_OTOOL64"
8363 fi
8364
8365
8366
8367
8368
8369
8370
8371
8372
8373
8374
8375
8376
8377
8378
8379
8380
8381
8382
8383
8384
8385
8386
8387
8388
8389
8390
8391     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
8392 $as_echo_n "checking for -single_module linker flag... " >&6; }
8393 if test "${lt_cv_apple_cc_single_mod+set}" = set; then :
8394   $as_echo_n "(cached) " >&6
8395 else
8396   lt_cv_apple_cc_single_mod=no
8397       if test -z "${LT_MULTI_MODULE}"; then
8398         # By default we will add the -single_module flag. You can override
8399         # by either setting the environment variable LT_MULTI_MODULE
8400         # non-empty at configure time, or by adding -multi_module to the
8401         # link flags.
8402         rm -rf libconftest.dylib*
8403         echo "int foo(void){return 1;}" > conftest.c
8404         echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8405 -dynamiclib -Wl,-single_module conftest.c" >&5
8406         $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8407           -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
8408         _lt_result=$?
8409         if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
8410           lt_cv_apple_cc_single_mod=yes
8411         else
8412           cat conftest.err >&5
8413         fi
8414         rm -rf libconftest.dylib*
8415         rm -f conftest.*
8416       fi
8417 fi
8418 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
8419 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
8420     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
8421 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
8422 if test "${lt_cv_ld_exported_symbols_list+set}" = set; then :
8423   $as_echo_n "(cached) " >&6
8424 else
8425   lt_cv_ld_exported_symbols_list=no
8426       save_LDFLAGS=$LDFLAGS
8427       echo "_main" > conftest.sym
8428       LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
8429       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8430 /* end confdefs.h.  */
8431
8432 int
8433 main ()
8434 {
8435
8436   ;
8437   return 0;
8438 }
8439 _ACEOF
8440 if ac_fn_c_try_link "$LINENO"; then :
8441   lt_cv_ld_exported_symbols_list=yes
8442 else
8443   lt_cv_ld_exported_symbols_list=no
8444 fi
8445 rm -f core conftest.err conftest.$ac_objext \
8446     conftest$ac_exeext conftest.$ac_ext
8447         LDFLAGS="$save_LDFLAGS"
8448
8449 fi
8450 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
8451 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
8452     case $host_os in
8453     rhapsody* | darwin1.[012])
8454       _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
8455     darwin1.*)
8456       _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
8457     darwin*) # darwin 5.x on
8458       # if running on 10.5 or later, the deployment target defaults
8459       # to the OS version, if on x86, and 10.4, the deployment
8460       # target defaults to 10.4. Don't you love it?
8461       case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
8462         10.0,*86*-darwin8*|10.0,*-darwin[91]*)
8463           _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
8464         10.[012]*)
8465           _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
8466         10.*)
8467           _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
8468       esac
8469     ;;
8470   esac
8471     if test "$lt_cv_apple_cc_single_mod" = "yes"; then
8472       _lt_dar_single_mod='$single_module'
8473     fi
8474     if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
8475       _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
8476     else
8477       _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
8478     fi
8479     if test "$DSYMUTIL" != ":"; then
8480       _lt_dsymutil='~$DSYMUTIL $lib || :'
8481     else
8482       _lt_dsymutil=
8483     fi
8484     ;;
8485   esac
8486
8487 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
8488 $as_echo_n "checking for ANSI C header files... " >&6; }
8489 if test "${ac_cv_header_stdc+set}" = set; then :
8490   $as_echo_n "(cached) " >&6
8491 else
8492   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8493 /* end confdefs.h.  */
8494 #include <stdlib.h>
8495 #include <stdarg.h>
8496 #include <string.h>
8497 #include <float.h>
8498
8499 int
8500 main ()
8501 {
8502
8503   ;
8504   return 0;
8505 }
8506 _ACEOF
8507 if ac_fn_c_try_compile "$LINENO"; then :
8508   ac_cv_header_stdc=yes
8509 else
8510   ac_cv_header_stdc=no
8511 fi
8512 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8513
8514 if test $ac_cv_header_stdc = yes; then
8515   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
8516   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8517 /* end confdefs.h.  */
8518 #include <string.h>
8519
8520 _ACEOF
8521 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8522   $EGREP "memchr" >/dev/null 2>&1; then :
8523
8524 else
8525   ac_cv_header_stdc=no
8526 fi
8527 rm -f conftest*
8528
8529 fi
8530
8531 if test $ac_cv_header_stdc = yes; then
8532   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
8533   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8534 /* end confdefs.h.  */
8535 #include <stdlib.h>
8536
8537 _ACEOF
8538 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8539   $EGREP "free" >/dev/null 2>&1; then :
8540
8541 else
8542   ac_cv_header_stdc=no
8543 fi
8544 rm -f conftest*
8545
8546 fi
8547
8548 if test $ac_cv_header_stdc = yes; then
8549   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
8550   if test "$cross_compiling" = yes; then :
8551   :
8552 else
8553   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8554 /* end confdefs.h.  */
8555 #include <ctype.h>
8556 #include <stdlib.h>
8557 #if ((' ' & 0x0FF) == 0x020)
8558 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
8559 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
8560 #else
8561 # define ISLOWER(c) \
8562                    (('a' <= (c) && (c) <= 'i') \
8563                      || ('j' <= (c) && (c) <= 'r') \
8564                      || ('s' <= (c) && (c) <= 'z'))
8565 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
8566 #endif
8567
8568 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
8569 int
8570 main ()
8571 {
8572   int i;
8573   for (i = 0; i < 256; i++)
8574     if (XOR (islower (i), ISLOWER (i))
8575         || toupper (i) != TOUPPER (i))
8576       return 2;
8577   return 0;
8578 }
8579 _ACEOF
8580 if ac_fn_c_try_run "$LINENO"; then :
8581
8582 else
8583   ac_cv_header_stdc=no
8584 fi
8585 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8586   conftest.$ac_objext conftest.beam conftest.$ac_ext
8587 fi
8588
8589 fi
8590 fi
8591 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
8592 $as_echo "$ac_cv_header_stdc" >&6; }
8593 if test $ac_cv_header_stdc = yes; then
8594
8595 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
8596
8597 fi
8598
8599 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
8600 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
8601                   inttypes.h stdint.h unistd.h
8602 do :
8603   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
8604 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
8605 "
8606 eval as_val=\$$as_ac_Header
8607    if test "x$as_val" = x""yes; then :
8608   cat >>confdefs.h <<_ACEOF
8609 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
8610 _ACEOF
8611
8612 fi
8613
8614 done
8615
8616
8617 for ac_header in dlfcn.h
8618 do :
8619   ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
8620 "
8621 if test "x$ac_cv_header_dlfcn_h" = x""yes; then :
8622   cat >>confdefs.h <<_ACEOF
8623 #define HAVE_DLFCN_H 1
8624 _ACEOF
8625
8626 fi
8627
8628 done
8629
8630
8631
8632 ac_ext=cpp
8633 ac_cpp='$CXXCPP $CPPFLAGS'
8634 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8635 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8636 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
8637 if test -z "$CXX"; then
8638   if test -n "$CCC"; then
8639     CXX=$CCC
8640   else
8641     if test -n "$ac_tool_prefix"; then
8642   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
8643   do
8644     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
8645 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
8646 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8647 $as_echo_n "checking for $ac_word... " >&6; }
8648 if test "${ac_cv_prog_CXX+set}" = set; then :
8649   $as_echo_n "(cached) " >&6
8650 else
8651   if test -n "$CXX"; then
8652   ac_cv_prog_CXX="$CXX" # Let the user override the test.
8653 else
8654 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8655 for as_dir in $PATH
8656 do
8657   IFS=$as_save_IFS
8658   test -z "$as_dir" && as_dir=.
8659     for ac_exec_ext in '' $ac_executable_extensions; do
8660   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8661     ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
8662     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8663     break 2
8664   fi
8665 done
8666   done
8667 IFS=$as_save_IFS
8668
8669 fi
8670 fi
8671 CXX=$ac_cv_prog_CXX
8672 if test -n "$CXX"; then
8673   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
8674 $as_echo "$CXX" >&6; }
8675 else
8676   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8677 $as_echo "no" >&6; }
8678 fi
8679
8680
8681     test -n "$CXX" && break
8682   done
8683 fi
8684 if test -z "$CXX"; then
8685   ac_ct_CXX=$CXX
8686   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
8687 do
8688   # Extract the first word of "$ac_prog", so it can be a program name with args.
8689 set dummy $ac_prog; ac_word=$2
8690 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8691 $as_echo_n "checking for $ac_word... " >&6; }
8692 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then :
8693   $as_echo_n "(cached) " >&6
8694 else
8695   if test -n "$ac_ct_CXX"; then
8696   ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
8697 else
8698 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8699 for as_dir in $PATH
8700 do
8701   IFS=$as_save_IFS
8702   test -z "$as_dir" && as_dir=.
8703     for ac_exec_ext in '' $ac_executable_extensions; do
8704   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8705     ac_cv_prog_ac_ct_CXX="$ac_prog"
8706     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8707     break 2
8708   fi
8709 done
8710   done
8711 IFS=$as_save_IFS
8712
8713 fi
8714 fi
8715 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
8716 if test -n "$ac_ct_CXX"; then
8717   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
8718 $as_echo "$ac_ct_CXX" >&6; }
8719 else
8720   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8721 $as_echo "no" >&6; }
8722 fi
8723
8724
8725   test -n "$ac_ct_CXX" && break
8726 done
8727
8728   if test "x$ac_ct_CXX" = x; then
8729     CXX="g++"
8730   else
8731     case $cross_compiling:$ac_tool_warned in
8732 yes:)
8733 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8734 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8735 ac_tool_warned=yes ;;
8736 esac
8737     CXX=$ac_ct_CXX
8738   fi
8739 fi
8740
8741   fi
8742 fi
8743 # Provide some information about the compiler.
8744 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
8745 set X $ac_compile
8746 ac_compiler=$2
8747 for ac_option in --version -v -V -qversion; do
8748   { { ac_try="$ac_compiler $ac_option >&5"
8749 case "(($ac_try" in
8750   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8751   *) ac_try_echo=$ac_try;;
8752 esac
8753 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
8754 $as_echo "$ac_try_echo"; } >&5
8755   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
8756   ac_status=$?
8757   if test -s conftest.err; then
8758     sed '10a\
8759 ... rest of stderr output deleted ...
8760          10q' conftest.err >conftest.er1
8761     cat conftest.er1 >&5
8762   fi
8763   rm -f conftest.er1 conftest.err
8764   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8765   test $ac_status = 0; }
8766 done
8767
8768 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
8769 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
8770 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then :
8771   $as_echo_n "(cached) " >&6
8772 else
8773   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8774 /* end confdefs.h.  */
8775
8776 int
8777 main ()
8778 {
8779 #ifndef __GNUC__
8780        choke me
8781 #endif
8782
8783   ;
8784   return 0;
8785 }
8786 _ACEOF
8787 if ac_fn_cxx_try_compile "$LINENO"; then :
8788   ac_compiler_gnu=yes
8789 else
8790   ac_compiler_gnu=no
8791 fi
8792 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8793 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
8794
8795 fi
8796 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
8797 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
8798 if test $ac_compiler_gnu = yes; then
8799   GXX=yes
8800 else
8801   GXX=
8802 fi
8803 ac_test_CXXFLAGS=${CXXFLAGS+set}
8804 ac_save_CXXFLAGS=$CXXFLAGS
8805 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
8806 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
8807 if test "${ac_cv_prog_cxx_g+set}" = set; then :
8808   $as_echo_n "(cached) " >&6
8809 else
8810   ac_save_cxx_werror_flag=$ac_cxx_werror_flag
8811    ac_cxx_werror_flag=yes
8812    ac_cv_prog_cxx_g=no
8813    CXXFLAGS="-g"
8814    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8815 /* end confdefs.h.  */
8816
8817 int
8818 main ()
8819 {
8820
8821   ;
8822   return 0;
8823 }
8824 _ACEOF
8825 if ac_fn_cxx_try_compile "$LINENO"; then :
8826   ac_cv_prog_cxx_g=yes
8827 else
8828   CXXFLAGS=""
8829       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8830 /* end confdefs.h.  */
8831
8832 int
8833 main ()
8834 {
8835
8836   ;
8837   return 0;
8838 }
8839 _ACEOF
8840 if ac_fn_cxx_try_compile "$LINENO"; then :
8841
8842 else
8843   ac_cxx_werror_flag=$ac_save_cxx_werror_flag
8844          CXXFLAGS="-g"
8845          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8846 /* end confdefs.h.  */
8847
8848 int
8849 main ()
8850 {
8851
8852   ;
8853   return 0;
8854 }
8855 _ACEOF
8856 if ac_fn_cxx_try_compile "$LINENO"; then :
8857   ac_cv_prog_cxx_g=yes
8858 fi
8859 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8860 fi
8861 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8862 fi
8863 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8864    ac_cxx_werror_flag=$ac_save_cxx_werror_flag
8865 fi
8866 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
8867 $as_echo "$ac_cv_prog_cxx_g" >&6; }
8868 if test "$ac_test_CXXFLAGS" = set; then
8869   CXXFLAGS=$ac_save_CXXFLAGS
8870 elif test $ac_cv_prog_cxx_g = yes; then
8871   if test "$GXX" = yes; then
8872     CXXFLAGS="-g -O2"
8873   else
8874     CXXFLAGS="-g"
8875   fi
8876 else
8877   if test "$GXX" = yes; then
8878     CXXFLAGS="-O2"
8879   else
8880     CXXFLAGS=
8881   fi
8882 fi
8883 ac_ext=c
8884 ac_cpp='$CPP $CPPFLAGS'
8885 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8886 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8887 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8888
8889 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
8890     ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
8891     (test "X$CXX" != "Xg++"))) ; then
8892   ac_ext=cpp
8893 ac_cpp='$CXXCPP $CPPFLAGS'
8894 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8895 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8896 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
8897 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
8898 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
8899 if test -z "$CXXCPP"; then
8900   if test "${ac_cv_prog_CXXCPP+set}" = set; then :
8901   $as_echo_n "(cached) " >&6
8902 else
8903       # Double quotes because CXXCPP needs to be expanded
8904     for CXXCPP in "$CXX -E" "/lib/cpp"
8905     do
8906       ac_preproc_ok=false
8907 for ac_cxx_preproc_warn_flag in '' yes
8908 do
8909   # Use a header file that comes with gcc, so configuring glibc
8910   # with a fresh cross-compiler works.
8911   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8912   # <limits.h> exists even on freestanding compilers.
8913   # On the NeXT, cc -E runs the code through the compiler's parser,
8914   # not just through cpp. "Syntax error" is here to catch this case.
8915   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8916 /* end confdefs.h.  */
8917 #ifdef __STDC__
8918 # include <limits.h>
8919 #else
8920 # include <assert.h>
8921 #endif
8922                      Syntax error
8923 _ACEOF
8924 if ac_fn_cxx_try_cpp "$LINENO"; then :
8925
8926 else
8927   # Broken: fails on valid input.
8928 continue
8929 fi
8930 rm -f conftest.err conftest.$ac_ext
8931
8932   # OK, works on sane cases.  Now check whether nonexistent headers
8933   # can be detected and how.
8934   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8935 /* end confdefs.h.  */
8936 #include <ac_nonexistent.h>
8937 _ACEOF
8938 if ac_fn_cxx_try_cpp "$LINENO"; then :
8939   # Broken: success on invalid input.
8940 continue
8941 else
8942   # Passes both tests.
8943 ac_preproc_ok=:
8944 break
8945 fi
8946 rm -f conftest.err conftest.$ac_ext
8947
8948 done
8949 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
8950 rm -f conftest.err conftest.$ac_ext
8951 if $ac_preproc_ok; then :
8952   break
8953 fi
8954
8955     done
8956     ac_cv_prog_CXXCPP=$CXXCPP
8957
8958 fi
8959   CXXCPP=$ac_cv_prog_CXXCPP
8960 else
8961   ac_cv_prog_CXXCPP=$CXXCPP
8962 fi
8963 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
8964 $as_echo "$CXXCPP" >&6; }
8965 ac_preproc_ok=false
8966 for ac_cxx_preproc_warn_flag in '' yes
8967 do
8968   # Use a header file that comes with gcc, so configuring glibc
8969   # with a fresh cross-compiler works.
8970   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8971   # <limits.h> exists even on freestanding compilers.
8972   # On the NeXT, cc -E runs the code through the compiler's parser,
8973   # not just through cpp. "Syntax error" is here to catch this case.
8974   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8975 /* end confdefs.h.  */
8976 #ifdef __STDC__
8977 # include <limits.h>
8978 #else
8979 # include <assert.h>
8980 #endif
8981                      Syntax error
8982 _ACEOF
8983 if ac_fn_cxx_try_cpp "$LINENO"; then :
8984
8985 else
8986   # Broken: fails on valid input.
8987 continue
8988 fi
8989 rm -f conftest.err conftest.$ac_ext
8990
8991   # OK, works on sane cases.  Now check whether nonexistent headers
8992   # can be detected and how.
8993   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8994 /* end confdefs.h.  */
8995 #include <ac_nonexistent.h>
8996 _ACEOF
8997 if ac_fn_cxx_try_cpp "$LINENO"; then :
8998   # Broken: success on invalid input.
8999 continue
9000 else
9001   # Passes both tests.
9002 ac_preproc_ok=:
9003 break
9004 fi
9005 rm -f conftest.err conftest.$ac_ext
9006
9007 done
9008 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
9009 rm -f conftest.err conftest.$ac_ext
9010 if $ac_preproc_ok; then :
9011
9012 else
9013   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
9014 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
9015 _lt_caught_CXX_error=yes; }
9016 fi
9017
9018 ac_ext=c
9019 ac_cpp='$CPP $CPPFLAGS'
9020 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9021 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9022 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9023
9024 else
9025   _lt_caught_CXX_error=yes
9026 fi
9027
9028
9029
9030
9031
9032 # Set options
9033 # Check whether --enable-shared was given.
9034 if test "${enable_shared+set}" = set; then :
9035   enableval=$enable_shared; p=${PACKAGE-default}
9036     case $enableval in
9037     yes) enable_shared=yes ;;
9038     no) enable_shared=no ;;
9039     *)
9040       enable_shared=no
9041       # Look at the argument we got.  We use all the common list separators.
9042       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9043       for pkg in $enableval; do
9044         IFS="$lt_save_ifs"
9045         if test "X$pkg" = "X$p"; then
9046           enable_shared=yes
9047         fi
9048       done
9049       IFS="$lt_save_ifs"
9050       ;;
9051     esac
9052 else
9053   enable_shared=yes
9054 fi
9055
9056
9057
9058
9059
9060
9061
9062 # Check whether --enable-static was given.
9063 if test "${enable_static+set}" = set; then :
9064   enableval=$enable_static; p=${PACKAGE-default}
9065     case $enableval in
9066     yes) enable_static=yes ;;
9067     no) enable_static=no ;;
9068     *)
9069      enable_static=no
9070       # Look at the argument we got.  We use all the common list separators.
9071       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9072       for pkg in $enableval; do
9073         IFS="$lt_save_ifs"
9074         if test "X$pkg" = "X$p"; then
9075           enable_static=yes
9076         fi
9077       done
9078       IFS="$lt_save_ifs"
9079       ;;
9080     esac
9081 else
9082   enable_static=no
9083 fi
9084
9085
9086
9087
9088
9089
9090
9091
9092
9093
9094         enable_dlopen=no
9095
9096
9097   enable_win32_dll=no
9098
9099
9100
9101
9102
9103 # Check whether --with-pic was given.
9104 if test "${with_pic+set}" = set; then :
9105   withval=$with_pic; pic_mode="$withval"
9106 else
9107   pic_mode=default
9108 fi
9109
9110
9111 test -z "$pic_mode" && pic_mode=default
9112
9113
9114
9115
9116
9117
9118
9119   # Check whether --enable-fast-install was given.
9120 if test "${enable_fast_install+set}" = set; then :
9121   enableval=$enable_fast_install; p=${PACKAGE-default}
9122     case $enableval in
9123     yes) enable_fast_install=yes ;;
9124     no) enable_fast_install=no ;;
9125     *)
9126       enable_fast_install=no
9127       # Look at the argument we got.  We use all the common list separators.
9128       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9129       for pkg in $enableval; do
9130         IFS="$lt_save_ifs"
9131         if test "X$pkg" = "X$p"; then
9132           enable_fast_install=yes
9133         fi
9134       done
9135       IFS="$lt_save_ifs"
9136       ;;
9137     esac
9138 else
9139   enable_fast_install=yes
9140 fi
9141
9142
9143
9144
9145
9146
9147
9148
9149
9150
9151
9152 # This can be used to rebuild libtool when needed
9153 LIBTOOL_DEPS="$ltmain"
9154
9155 # Always use our own libtool.
9156 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
9157
9158
9159
9160
9161
9162
9163
9164
9165
9166
9167
9168
9169
9170
9171
9172
9173
9174
9175
9176
9177
9178
9179
9180
9181
9182 test -z "$LN_S" && LN_S="ln -s"
9183
9184
9185
9186
9187
9188
9189
9190
9191
9192
9193
9194
9195
9196
9197 if test -n "${ZSH_VERSION+set}" ; then
9198    setopt NO_GLOB_SUBST
9199 fi
9200
9201 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
9202 $as_echo_n "checking for objdir... " >&6; }
9203 if test "${lt_cv_objdir+set}" = set; then :
9204   $as_echo_n "(cached) " >&6
9205 else
9206   rm -f .libs 2>/dev/null
9207 mkdir .libs 2>/dev/null
9208 if test -d .libs; then
9209   lt_cv_objdir=.libs
9210 else
9211   # MS-DOS does not allow filenames that begin with a dot.
9212   lt_cv_objdir=_libs
9213 fi
9214 rmdir .libs 2>/dev/null
9215 fi
9216 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
9217 $as_echo "$lt_cv_objdir" >&6; }
9218 objdir=$lt_cv_objdir
9219
9220
9221
9222
9223
9224 cat >>confdefs.h <<_ACEOF
9225 #define LT_OBJDIR "$lt_cv_objdir/"
9226 _ACEOF
9227
9228
9229
9230
9231
9232
9233
9234
9235
9236
9237
9238
9239
9240
9241
9242
9243
9244 case $host_os in
9245 aix3*)
9246   # AIX sometimes has problems with the GCC collect2 program.  For some
9247   # reason, if we set the COLLECT_NAMES environment variable, the problems
9248   # vanish in a puff of smoke.
9249   if test "X${COLLECT_NAMES+set}" != Xset; then
9250     COLLECT_NAMES=
9251     export COLLECT_NAMES
9252   fi
9253   ;;
9254 esac
9255
9256 # Sed substitution that helps us do robust quoting.  It backslashifies
9257 # metacharacters that are still active within double-quoted strings.
9258 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
9259
9260 # Same as above, but do not quote variable references.
9261 double_quote_subst='s/\(["`\\]\)/\\\1/g'
9262
9263 # Sed substitution to delay expansion of an escaped shell variable in a
9264 # double_quote_subst'ed string.
9265 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
9266
9267 # Sed substitution to delay expansion of an escaped single quote.
9268 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
9269
9270 # Sed substitution to avoid accidental globbing in evaled expressions
9271 no_glob_subst='s/\*/\\\*/g'
9272
9273 # Global variables:
9274 ofile=libtool
9275 can_build_shared=yes
9276
9277 # All known linkers require a `.a' archive for static linking (except MSVC,
9278 # which needs '.lib').
9279 libext=a
9280
9281 with_gnu_ld="$lt_cv_prog_gnu_ld"
9282
9283 old_CC="$CC"
9284 old_CFLAGS="$CFLAGS"
9285
9286 # Set sane defaults for various variables
9287 test -z "$CC" && CC=cc
9288 test -z "$LTCC" && LTCC=$CC
9289 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
9290 test -z "$LD" && LD=ld
9291 test -z "$ac_objext" && ac_objext=o
9292
9293 for cc_temp in $compiler""; do
9294   case $cc_temp in
9295     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
9296     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
9297     \-*) ;;
9298     *) break;;
9299   esac
9300 done
9301 cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
9302
9303
9304 # Only perform the check for file, if the check method requires it
9305 test -z "$MAGIC_CMD" && MAGIC_CMD=file
9306 case $deplibs_check_method in
9307 file_magic*)
9308   if test "$file_magic_cmd" = '$MAGIC_CMD'; then
9309     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
9310 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
9311 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
9312   $as_echo_n "(cached) " >&6
9313 else
9314   case $MAGIC_CMD in
9315 [\\/*] |  ?:[\\/]*)
9316   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
9317   ;;
9318 *)
9319   lt_save_MAGIC_CMD="$MAGIC_CMD"
9320   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
9321   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
9322   for ac_dir in $ac_dummy; do
9323     IFS="$lt_save_ifs"
9324     test -z "$ac_dir" && ac_dir=.
9325     if test -f $ac_dir/${ac_tool_prefix}file; then
9326       lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
9327       if test -n "$file_magic_test_file"; then
9328         case $deplibs_check_method in
9329         "file_magic "*)
9330           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
9331           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9332           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
9333             $EGREP "$file_magic_regex" > /dev/null; then
9334             :
9335           else
9336             cat <<_LT_EOF 1>&2
9337
9338 *** Warning: the command libtool uses to detect shared libraries,
9339 *** $file_magic_cmd, produces output that libtool cannot recognize.
9340 *** The result is that libtool may fail to recognize shared libraries
9341 *** as such.  This will affect the creation of libtool libraries that
9342 *** depend on shared libraries, but programs linked with such libtool
9343 *** libraries will work regardless of this problem.  Nevertheless, you
9344 *** may want to report the problem to your system manager and/or to
9345 *** bug-libtool@gnu.org
9346
9347 _LT_EOF
9348           fi ;;
9349         esac
9350       fi
9351       break
9352     fi
9353   done
9354   IFS="$lt_save_ifs"
9355   MAGIC_CMD="$lt_save_MAGIC_CMD"
9356   ;;
9357 esac
9358 fi
9359
9360 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9361 if test -n "$MAGIC_CMD"; then
9362   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
9363 $as_echo "$MAGIC_CMD" >&6; }
9364 else
9365   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9366 $as_echo "no" >&6; }
9367 fi
9368
9369
9370
9371
9372
9373 if test -z "$lt_cv_path_MAGIC_CMD"; then
9374   if test -n "$ac_tool_prefix"; then
9375     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
9376 $as_echo_n "checking for file... " >&6; }
9377 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
9378   $as_echo_n "(cached) " >&6
9379 else
9380   case $MAGIC_CMD in
9381 [\\/*] |  ?:[\\/]*)
9382   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
9383   ;;
9384 *)
9385   lt_save_MAGIC_CMD="$MAGIC_CMD"
9386   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
9387   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
9388   for ac_dir in $ac_dummy; do
9389     IFS="$lt_save_ifs"
9390     test -z "$ac_dir" && ac_dir=.
9391     if test -f $ac_dir/file; then
9392       lt_cv_path_MAGIC_CMD="$ac_dir/file"
9393       if test -n "$file_magic_test_file"; then
9394         case $deplibs_check_method in
9395         "file_magic "*)
9396           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
9397           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9398           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
9399             $EGREP "$file_magic_regex" > /dev/null; then
9400             :
9401           else
9402             cat <<_LT_EOF 1>&2
9403
9404 *** Warning: the command libtool uses to detect shared libraries,
9405 *** $file_magic_cmd, produces output that libtool cannot recognize.
9406 *** The result is that libtool may fail to recognize shared libraries
9407 *** as such.  This will affect the creation of libtool libraries that
9408 *** depend on shared libraries, but programs linked with such libtool
9409 *** libraries will work regardless of this problem.  Nevertheless, you
9410 *** may want to report the problem to your system manager and/or to
9411 *** bug-libtool@gnu.org
9412
9413 _LT_EOF
9414           fi ;;
9415         esac
9416       fi
9417       break
9418     fi
9419   done
9420   IFS="$lt_save_ifs"
9421   MAGIC_CMD="$lt_save_MAGIC_CMD"
9422   ;;
9423 esac
9424 fi
9425
9426 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9427 if test -n "$MAGIC_CMD"; then
9428   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
9429 $as_echo "$MAGIC_CMD" >&6; }
9430 else
9431   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9432 $as_echo "no" >&6; }
9433 fi
9434
9435
9436   else
9437     MAGIC_CMD=:
9438   fi
9439 fi
9440
9441   fi
9442   ;;
9443 esac
9444
9445 # Use C for the default configuration in the libtool script
9446
9447 lt_save_CC="$CC"
9448 ac_ext=c
9449 ac_cpp='$CPP $CPPFLAGS'
9450 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9451 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9452 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9453
9454
9455 # Source file extension for C test sources.
9456 ac_ext=c
9457
9458 # Object file extension for compiled C test sources.
9459 objext=o
9460 objext=$objext
9461
9462 # Code to be used in simple compile tests
9463 lt_simple_compile_test_code="int some_variable = 0;"
9464
9465 # Code to be used in simple link tests
9466 lt_simple_link_test_code='int main(){return(0);}'
9467
9468
9469
9470
9471
9472
9473
9474 # If no C compiler was specified, use CC.
9475 LTCC=${LTCC-"$CC"}
9476
9477 # If no C compiler flags were specified, use CFLAGS.
9478 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
9479
9480 # Allow CC to be a program name with arguments.
9481 compiler=$CC
9482
9483 # Save the default compiler, since it gets overwritten when the other
9484 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
9485 compiler_DEFAULT=$CC
9486
9487 # save warnings/boilerplate of simple test code
9488 ac_outfile=conftest.$ac_objext
9489 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
9490 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9491 _lt_compiler_boilerplate=`cat conftest.err`
9492 $RM conftest*
9493
9494 ac_outfile=conftest.$ac_objext
9495 echo "$lt_simple_link_test_code" >conftest.$ac_ext
9496 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9497 _lt_linker_boilerplate=`cat conftest.err`
9498 $RM -r conftest*
9499
9500
9501 ## CAVEAT EMPTOR:
9502 ## There is no encapsulation within the following macros, do not change
9503 ## the running order or otherwise move them around unless you know exactly
9504 ## what you are doing...
9505 if test -n "$compiler"; then
9506
9507 lt_prog_compiler_no_builtin_flag=
9508
9509 if test "$GCC" = yes; then
9510   lt_prog_compiler_no_builtin_flag=' -fno-builtin'
9511
9512   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
9513 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
9514 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then :
9515   $as_echo_n "(cached) " >&6
9516 else
9517   lt_cv_prog_compiler_rtti_exceptions=no
9518    ac_outfile=conftest.$ac_objext
9519    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9520    lt_compiler_flag="-fno-rtti -fno-exceptions"
9521    # Insert the option either (1) after the last *FLAGS variable, or
9522    # (2) before a word containing "conftest.", or (3) at the end.
9523    # Note that $ac_compile itself does not contain backslashes and begins
9524    # with a dollar sign (not a hyphen), so the echo should work correctly.
9525    # The option is referenced via a variable to avoid confusing sed.
9526    lt_compile=`echo "$ac_compile" | $SED \
9527    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9528    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9529    -e 's:$: $lt_compiler_flag:'`
9530    (eval echo "\"\$as_me:9530: $lt_compile\"" >&5)
9531    (eval "$lt_compile" 2>conftest.err)
9532    ac_status=$?
9533    cat conftest.err >&5
9534    echo "$as_me:9534: \$? = $ac_status" >&5
9535    if (exit $ac_status) && test -s "$ac_outfile"; then
9536      # The compiler can only warn and ignore the option if not recognized
9537      # So say no if there are warnings other than the usual output.
9538      $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
9539      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9540      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9541        lt_cv_prog_compiler_rtti_exceptions=yes
9542      fi
9543    fi
9544    $RM conftest*
9545
9546 fi
9547 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
9548 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
9549
9550 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
9551     lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
9552 else
9553     :
9554 fi
9555
9556 fi
9557
9558
9559
9560
9561
9562
9563   lt_prog_compiler_wl=
9564 lt_prog_compiler_pic=
9565 lt_prog_compiler_static=
9566
9567 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
9568 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
9569
9570   if test "$GCC" = yes; then
9571     lt_prog_compiler_wl='-Wl,'
9572     lt_prog_compiler_static='-static'
9573
9574     case $host_os in
9575       aix*)
9576       # All AIX code is PIC.
9577       if test "$host_cpu" = ia64; then
9578         # AIX 5 now supports IA64 processor
9579         lt_prog_compiler_static='-Bstatic'
9580       fi
9581       ;;
9582
9583     amigaos*)
9584       case $host_cpu in
9585       powerpc)
9586             # see comment about AmigaOS4 .so support
9587             lt_prog_compiler_pic='-fPIC'
9588         ;;
9589       m68k)
9590             # FIXME: we need at least 68020 code to build shared libraries, but
9591             # adding the `-m68020' flag to GCC prevents building anything better,
9592             # like `-m68040'.
9593             lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
9594         ;;
9595       esac
9596       ;;
9597
9598     beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
9599       # PIC is the default for these OSes.
9600       ;;
9601
9602     mingw* | cygwin* | pw32* | os2* | cegcc*)
9603       # This hack is so that the source file can tell whether it is being
9604       # built for inclusion in a dll (and should export symbols for example).
9605       # Although the cygwin gcc ignores -fPIC, still need this for old-style
9606       # (--disable-auto-import) libraries
9607       lt_prog_compiler_pic='-DDLL_EXPORT'
9608       ;;
9609
9610     darwin* | rhapsody*)
9611       # PIC is the default on this platform
9612       # Common symbols not allowed in MH_DYLIB files
9613       lt_prog_compiler_pic='-fno-common'
9614       ;;
9615
9616     hpux*)
9617       # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
9618       # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
9619       # sets the default TLS model and affects inlining.
9620       case $host_cpu in
9621       hppa*64*)
9622         # +Z the default
9623         ;;
9624       *)
9625         lt_prog_compiler_pic='-fPIC'
9626         ;;
9627       esac
9628       ;;
9629
9630     interix[3-9]*)
9631       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
9632       # Instead, we relocate shared libraries at runtime.
9633       ;;
9634
9635     msdosdjgpp*)
9636       # Just because we use GCC doesn't mean we suddenly get shared libraries
9637       # on systems that don't support them.
9638       lt_prog_compiler_can_build_shared=no
9639       enable_shared=no
9640       ;;
9641
9642     *nto* | *qnx*)
9643       # QNX uses GNU C++, but need to define -shared option too, otherwise
9644       # it will coredump.
9645       lt_prog_compiler_pic='-fPIC -shared'
9646       ;;
9647
9648     sysv4*MP*)
9649       if test -d /usr/nec; then
9650         lt_prog_compiler_pic=-Kconform_pic
9651       fi
9652       ;;
9653
9654     *)
9655       lt_prog_compiler_pic='-fPIC'
9656       ;;
9657     esac
9658   else
9659     # PORTME Check for flag to pass linker flags through the system compiler.
9660     case $host_os in
9661     aix*)
9662       lt_prog_compiler_wl='-Wl,'
9663       if test "$host_cpu" = ia64; then
9664         # AIX 5 now supports IA64 processor
9665         lt_prog_compiler_static='-Bstatic'
9666       else
9667         lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
9668       fi
9669       ;;
9670
9671     mingw* | cygwin* | pw32* | os2* | cegcc*)
9672       # This hack is so that the source file can tell whether it is being
9673       # built for inclusion in a dll (and should export symbols for example).
9674       lt_prog_compiler_pic='-DDLL_EXPORT'
9675       ;;
9676
9677     hpux9* | hpux10* | hpux11*)
9678       lt_prog_compiler_wl='-Wl,'
9679       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
9680       # not for PA HP-UX.
9681       case $host_cpu in
9682       hppa*64*|ia64*)
9683         # +Z the default
9684         ;;
9685       *)
9686         lt_prog_compiler_pic='+Z'
9687         ;;
9688       esac
9689       # Is there a better lt_prog_compiler_static that works with the bundled CC?
9690       lt_prog_compiler_static='${wl}-a ${wl}archive'
9691       ;;
9692
9693     irix5* | irix6* | nonstopux*)
9694       lt_prog_compiler_wl='-Wl,'
9695       # PIC (with -KPIC) is the default.
9696       lt_prog_compiler_static='-non_shared'
9697       ;;
9698
9699     linux* | k*bsd*-gnu)
9700       case $cc_basename in
9701       # old Intel for x86_64 which still supported -KPIC.
9702       ecc*)
9703         lt_prog_compiler_wl='-Wl,'
9704         lt_prog_compiler_pic='-KPIC'
9705         lt_prog_compiler_static='-static'
9706         ;;
9707       # icc used to be incompatible with GCC.
9708       # ICC 10 doesn't accept -KPIC any more.
9709       icc* | ifort*)
9710         lt_prog_compiler_wl='-Wl,'
9711         lt_prog_compiler_pic='-fPIC'
9712         lt_prog_compiler_static='-static'
9713         ;;
9714       # Lahey Fortran 8.1.
9715       lf95*)
9716         lt_prog_compiler_wl='-Wl,'
9717         lt_prog_compiler_pic='--shared'
9718         lt_prog_compiler_static='--static'
9719         ;;
9720       pgcc* | pgf77* | pgf90* | pgf95*)
9721         # Portland Group compilers (*not* the Pentium gcc compiler,
9722         # which looks to be a dead project)
9723         lt_prog_compiler_wl='-Wl,'
9724         lt_prog_compiler_pic='-fpic'
9725         lt_prog_compiler_static='-Bstatic'
9726         ;;
9727       ccc*)
9728         lt_prog_compiler_wl='-Wl,'
9729         # All Alpha code is PIC.
9730         lt_prog_compiler_static='-non_shared'
9731         ;;
9732       xl*)
9733         # IBM XL C 8.0/Fortran 10.1 on PPC
9734         lt_prog_compiler_wl='-Wl,'
9735         lt_prog_compiler_pic='-qpic'
9736         lt_prog_compiler_static='-qstaticlink'
9737         ;;
9738       *)
9739         case `$CC -V 2>&1 | sed 5q` in
9740         *Sun\ C*)
9741           # Sun C 5.9
9742           lt_prog_compiler_pic='-KPIC'
9743           lt_prog_compiler_static='-Bstatic'
9744           lt_prog_compiler_wl='-Wl,'
9745           ;;
9746         *Sun\ F*)
9747           # Sun Fortran 8.3 passes all unrecognized flags to the linker
9748           lt_prog_compiler_pic='-KPIC'
9749           lt_prog_compiler_static='-Bstatic'
9750           lt_prog_compiler_wl=''
9751           ;;
9752         esac
9753         ;;
9754       esac
9755       ;;
9756
9757     newsos6)
9758       lt_prog_compiler_pic='-KPIC'
9759       lt_prog_compiler_static='-Bstatic'
9760       ;;
9761
9762     *nto* | *qnx*)
9763       # QNX uses GNU C++, but need to define -shared option too, otherwise
9764       # it will coredump.
9765       lt_prog_compiler_pic='-fPIC -shared'
9766       ;;
9767
9768     osf3* | osf4* | osf5*)
9769       lt_prog_compiler_wl='-Wl,'
9770       # All OSF/1 code is PIC.
9771       lt_prog_compiler_static='-non_shared'
9772       ;;
9773
9774     rdos*)
9775       lt_prog_compiler_static='-non_shared'
9776       ;;
9777
9778     solaris*)
9779       lt_prog_compiler_pic='-KPIC'
9780       lt_prog_compiler_static='-Bstatic'
9781       case $cc_basename in
9782       f77* | f90* | f95*)
9783         lt_prog_compiler_wl='-Qoption ld ';;
9784       *)
9785         lt_prog_compiler_wl='-Wl,';;
9786       esac
9787       ;;
9788
9789     sunos4*)
9790       lt_prog_compiler_wl='-Qoption ld '
9791       lt_prog_compiler_pic='-PIC'
9792       lt_prog_compiler_static='-Bstatic'
9793       ;;
9794
9795     sysv4 | sysv4.2uw2* | sysv4.3*)
9796       lt_prog_compiler_wl='-Wl,'
9797       lt_prog_compiler_pic='-KPIC'
9798       lt_prog_compiler_static='-Bstatic'
9799       ;;
9800
9801     sysv4*MP*)
9802       if test -d /usr/nec ;then
9803         lt_prog_compiler_pic='-Kconform_pic'
9804         lt_prog_compiler_static='-Bstatic'
9805       fi
9806       ;;
9807
9808     sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
9809       lt_prog_compiler_wl='-Wl,'
9810       lt_prog_compiler_pic='-KPIC'
9811       lt_prog_compiler_static='-Bstatic'
9812       ;;
9813
9814     unicos*)
9815       lt_prog_compiler_wl='-Wl,'
9816       lt_prog_compiler_can_build_shared=no
9817       ;;
9818
9819     uts4*)
9820       lt_prog_compiler_pic='-pic'
9821       lt_prog_compiler_static='-Bstatic'
9822       ;;
9823
9824     *)
9825       lt_prog_compiler_can_build_shared=no
9826       ;;
9827     esac
9828   fi
9829
9830 case $host_os in
9831   # For platforms which do not support PIC, -DPIC is meaningless:
9832   *djgpp*)
9833     lt_prog_compiler_pic=
9834     ;;
9835   *)
9836     lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
9837     ;;
9838 esac
9839 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
9840 $as_echo "$lt_prog_compiler_pic" >&6; }
9841
9842
9843
9844
9845
9846
9847 #
9848 # Check to make sure the PIC flag actually works.
9849 #
9850 if test -n "$lt_prog_compiler_pic"; then
9851   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
9852 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
9853 if test "${lt_cv_prog_compiler_pic_works+set}" = set; then :
9854   $as_echo_n "(cached) " >&6
9855 else
9856   lt_cv_prog_compiler_pic_works=no
9857    ac_outfile=conftest.$ac_objext
9858    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9859    lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
9860    # Insert the option either (1) after the last *FLAGS variable, or
9861    # (2) before a word containing "conftest.", or (3) at the end.
9862    # Note that $ac_compile itself does not contain backslashes and begins
9863    # with a dollar sign (not a hyphen), so the echo should work correctly.
9864    # The option is referenced via a variable to avoid confusing sed.
9865    lt_compile=`echo "$ac_compile" | $SED \
9866    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9867    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9868    -e 's:$: $lt_compiler_flag:'`
9869    (eval echo "\"\$as_me:9869: $lt_compile\"" >&5)
9870    (eval "$lt_compile" 2>conftest.err)
9871    ac_status=$?
9872    cat conftest.err >&5
9873    echo "$as_me:9873: \$? = $ac_status" >&5
9874    if (exit $ac_status) && test -s "$ac_outfile"; then
9875      # The compiler can only warn and ignore the option if not recognized
9876      # So say no if there are warnings other than the usual output.
9877      $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
9878      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9879      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9880        lt_cv_prog_compiler_pic_works=yes
9881      fi
9882    fi
9883    $RM conftest*
9884
9885 fi
9886 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
9887 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
9888
9889 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
9890     case $lt_prog_compiler_pic in
9891      "" | " "*) ;;
9892      *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
9893      esac
9894 else
9895     lt_prog_compiler_pic=
9896      lt_prog_compiler_can_build_shared=no
9897 fi
9898
9899 fi
9900
9901
9902
9903
9904
9905
9906 #
9907 # Check to make sure the static flag actually works.
9908 #
9909 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
9910 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
9911 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
9912 if test "${lt_cv_prog_compiler_static_works+set}" = set; then :
9913   $as_echo_n "(cached) " >&6
9914 else
9915   lt_cv_prog_compiler_static_works=no
9916    save_LDFLAGS="$LDFLAGS"
9917    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
9918    echo "$lt_simple_link_test_code" > conftest.$ac_ext
9919    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9920      # The linker can only warn and ignore the option if not recognized
9921      # So say no if there are warnings
9922      if test -s conftest.err; then
9923        # Append any errors to the config.log.
9924        cat conftest.err 1>&5
9925        $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
9926        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9927        if diff conftest.exp conftest.er2 >/dev/null; then
9928          lt_cv_prog_compiler_static_works=yes
9929        fi
9930      else
9931        lt_cv_prog_compiler_static_works=yes
9932      fi
9933    fi
9934    $RM -r conftest*
9935    LDFLAGS="$save_LDFLAGS"
9936
9937 fi
9938 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
9939 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
9940
9941 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
9942     :
9943 else
9944     lt_prog_compiler_static=
9945 fi
9946
9947
9948
9949
9950
9951
9952
9953   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9954 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9955 if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
9956   $as_echo_n "(cached) " >&6
9957 else
9958   lt_cv_prog_compiler_c_o=no
9959    $RM -r conftest 2>/dev/null
9960    mkdir conftest
9961    cd conftest
9962    mkdir out
9963    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9964
9965    lt_compiler_flag="-o out/conftest2.$ac_objext"
9966    # Insert the option either (1) after the last *FLAGS variable, or
9967    # (2) before a word containing "conftest.", or (3) at the end.
9968    # Note that $ac_compile itself does not contain backslashes and begins
9969    # with a dollar sign (not a hyphen), so the echo should work correctly.
9970    lt_compile=`echo "$ac_compile" | $SED \
9971    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9972    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9973    -e 's:$: $lt_compiler_flag:'`
9974    (eval echo "\"\$as_me:9974: $lt_compile\"" >&5)
9975    (eval "$lt_compile" 2>out/conftest.err)
9976    ac_status=$?
9977    cat out/conftest.err >&5
9978    echo "$as_me:9978: \$? = $ac_status" >&5
9979    if (exit $ac_status) && test -s out/conftest2.$ac_objext
9980    then
9981      # The compiler can only warn and ignore the option if not recognized
9982      # So say no if there are warnings
9983      $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
9984      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9985      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9986        lt_cv_prog_compiler_c_o=yes
9987      fi
9988    fi
9989    chmod u+w . 2>&5
9990    $RM conftest*
9991    # SGI C++ compiler will create directory out/ii_files/ for
9992    # template instantiation
9993    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9994    $RM out/* && rmdir out
9995    cd ..
9996    $RM -r conftest
9997    $RM conftest*
9998
9999 fi
10000 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
10001 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
10002
10003
10004
10005
10006
10007
10008   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
10009 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
10010 if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
10011   $as_echo_n "(cached) " >&6
10012 else
10013   lt_cv_prog_compiler_c_o=no
10014    $RM -r conftest 2>/dev/null
10015    mkdir conftest
10016    cd conftest
10017    mkdir out
10018    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10019
10020    lt_compiler_flag="-o out/conftest2.$ac_objext"
10021    # Insert the option either (1) after the last *FLAGS variable, or
10022    # (2) before a word containing "conftest.", or (3) at the end.
10023    # Note that $ac_compile itself does not contain backslashes and begins
10024    # with a dollar sign (not a hyphen), so the echo should work correctly.
10025    lt_compile=`echo "$ac_compile" | $SED \
10026    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10027    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10028    -e 's:$: $lt_compiler_flag:'`
10029    (eval echo "\"\$as_me:10029: $lt_compile\"" >&5)
10030    (eval "$lt_compile" 2>out/conftest.err)
10031    ac_status=$?
10032    cat out/conftest.err >&5
10033    echo "$as_me:10033: \$? = $ac_status" >&5
10034    if (exit $ac_status) && test -s out/conftest2.$ac_objext
10035    then
10036      # The compiler can only warn and ignore the option if not recognized
10037      # So say no if there are warnings
10038      $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
10039      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
10040      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
10041        lt_cv_prog_compiler_c_o=yes
10042      fi
10043    fi
10044    chmod u+w . 2>&5
10045    $RM conftest*
10046    # SGI C++ compiler will create directory out/ii_files/ for
10047    # template instantiation
10048    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
10049    $RM out/* && rmdir out
10050    cd ..
10051    $RM -r conftest
10052    $RM conftest*
10053
10054 fi
10055 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
10056 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
10057
10058
10059
10060
10061 hard_links="nottested"
10062 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
10063   # do not overwrite the value of need_locks provided by the user
10064   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
10065 $as_echo_n "checking if we can lock with hard links... " >&6; }
10066   hard_links=yes
10067   $RM conftest*
10068   ln conftest.a conftest.b 2>/dev/null && hard_links=no
10069   touch conftest.a
10070   ln conftest.a conftest.b 2>&5 || hard_links=no
10071   ln conftest.a conftest.b 2>/dev/null && hard_links=no
10072   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
10073 $as_echo "$hard_links" >&6; }
10074   if test "$hard_links" = no; then
10075     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
10076 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
10077     need_locks=warn
10078   fi
10079 else
10080   need_locks=no
10081 fi
10082
10083
10084
10085
10086
10087
10088   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
10089 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
10090
10091   runpath_var=
10092   allow_undefined_flag=
10093   always_export_symbols=no
10094   archive_cmds=
10095   archive_expsym_cmds=
10096   compiler_needs_object=no
10097   enable_shared_with_static_runtimes=no
10098   export_dynamic_flag_spec=
10099   export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
10100   hardcode_automatic=no
10101   hardcode_direct=no
10102   hardcode_direct_absolute=no
10103   hardcode_libdir_flag_spec=
10104   hardcode_libdir_flag_spec_ld=
10105   hardcode_libdir_separator=
10106   hardcode_minus_L=no
10107   hardcode_shlibpath_var=unsupported
10108   inherit_rpath=no
10109   link_all_deplibs=unknown
10110   module_cmds=
10111   module_expsym_cmds=
10112   old_archive_from_new_cmds=
10113   old_archive_from_expsyms_cmds=
10114   thread_safe_flag_spec=
10115   whole_archive_flag_spec=
10116   # include_expsyms should be a list of space-separated symbols to be *always*
10117   # included in the symbol list
10118   include_expsyms=
10119   # exclude_expsyms can be an extended regexp of symbols to exclude
10120   # it will be wrapped by ` (' and `)$', so one must not match beginning or
10121   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
10122   # as well as any symbol that contains `d'.
10123   exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
10124   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
10125   # platforms (ab)use it in PIC code, but their linkers get confused if
10126   # the symbol is explicitly referenced.  Since portable code cannot
10127   # rely on this symbol name, it's probably fine to never include it in
10128   # preloaded symbol tables.
10129   # Exclude shared library initialization/finalization symbols.
10130   extract_expsyms_cmds=
10131
10132   case $host_os in
10133   cygwin* | mingw* | pw32* | cegcc*)
10134     # FIXME: the MSVC++ port hasn't been tested in a loooong time
10135     # When not using gcc, we currently assume that we are using
10136     # Microsoft Visual C++.
10137     if test "$GCC" != yes; then
10138       with_gnu_ld=no
10139     fi
10140     ;;
10141   interix*)
10142     # we just hope/assume this is gcc and not c89 (= MSVC++)
10143     with_gnu_ld=yes
10144     ;;
10145   openbsd*)
10146     with_gnu_ld=no
10147     ;;
10148   esac
10149
10150   ld_shlibs=yes
10151   if test "$with_gnu_ld" = yes; then
10152     # If archive_cmds runs LD, not CC, wlarc should be empty
10153     wlarc='${wl}'
10154
10155     # Set some defaults for GNU ld with shared library support. These
10156     # are reset later if shared libraries are not supported. Putting them
10157     # here allows them to be overridden if necessary.
10158     runpath_var=LD_RUN_PATH
10159     hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10160     export_dynamic_flag_spec='${wl}--export-dynamic'
10161     # ancient GNU ld didn't support --whole-archive et. al.
10162     if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
10163       whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
10164     else
10165       whole_archive_flag_spec=
10166     fi
10167     supports_anon_versioning=no
10168     case `$LD -v 2>&1` in
10169       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
10170       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
10171       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
10172       *\ 2.11.*) ;; # other 2.11 versions
10173       *) supports_anon_versioning=yes ;;
10174     esac
10175
10176     # See if GNU ld supports shared libraries.
10177     case $host_os in
10178     aix[3-9]*)
10179       # On AIX/PPC, the GNU linker is very broken
10180       if test "$host_cpu" != ia64; then
10181         ld_shlibs=no
10182         cat <<_LT_EOF 1>&2
10183
10184 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
10185 *** to be unable to reliably create shared libraries on AIX.
10186 *** Therefore, libtool is disabling shared libraries support.  If you
10187 *** really care for shared libraries, you may want to modify your PATH
10188 *** so that a non-GNU linker is found, and then restart.
10189
10190 _LT_EOF
10191       fi
10192       ;;
10193
10194     amigaos*)
10195       case $host_cpu in
10196       powerpc)
10197             # see comment about AmigaOS4 .so support
10198             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10199             archive_expsym_cmds=''
10200         ;;
10201       m68k)
10202             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)'
10203             hardcode_libdir_flag_spec='-L$libdir'
10204             hardcode_minus_L=yes
10205         ;;
10206       esac
10207       ;;
10208
10209     beos*)
10210       if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10211         allow_undefined_flag=unsupported
10212         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
10213         # support --undefined.  This deserves some investigation.  FIXME
10214         archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10215       else
10216         ld_shlibs=no
10217       fi
10218       ;;
10219
10220     cygwin* | mingw* | pw32* | cegcc*)
10221       # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
10222       # as there is no search path for DLLs.
10223       hardcode_libdir_flag_spec='-L$libdir'
10224       allow_undefined_flag=unsupported
10225       always_export_symbols=no
10226       enable_shared_with_static_runtimes=yes
10227       export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
10228
10229       if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
10230         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
10231         # If the export-symbols file already is a .def file (1st line
10232         # is EXPORTS), use it as is; otherwise, prepend...
10233         archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
10234           cp $export_symbols $output_objdir/$soname.def;
10235         else
10236           echo EXPORTS > $output_objdir/$soname.def;
10237           cat $export_symbols >> $output_objdir/$soname.def;
10238         fi~
10239         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
10240       else
10241         ld_shlibs=no
10242       fi
10243       ;;
10244
10245     interix[3-9]*)
10246       hardcode_direct=no
10247       hardcode_shlibpath_var=no
10248       hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10249       export_dynamic_flag_spec='${wl}-E'
10250       # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
10251       # Instead, shared libraries are loaded at an image base (0x10000000 by
10252       # default) and relocated if they conflict, which is a slow very memory
10253       # consuming and fragmenting process.  To avoid this, we pick a random,
10254       # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
10255       # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
10256       archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
10257       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'
10258       ;;
10259
10260     gnu* | linux* | tpf* | k*bsd*-gnu)
10261       tmp_diet=no
10262       if test "$host_os" = linux-dietlibc; then
10263         case $cc_basename in
10264           diet\ *) tmp_diet=yes;;       # linux-dietlibc with static linking (!diet-dyn)
10265         esac
10266       fi
10267       if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
10268          && test "$tmp_diet" = no
10269       then
10270         tmp_addflag=
10271         tmp_sharedflag='-shared'
10272         case $cc_basename,$host_cpu in
10273         pgcc*)                          # Portland Group C compiler
10274           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'
10275           tmp_addflag=' $pic_flag'
10276           ;;
10277         pgf77* | pgf90* | pgf95*)       # Portland Group f77 and f90 compilers
10278           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'
10279           tmp_addflag=' $pic_flag -Mnomain' ;;
10280         ecc*,ia64* | icc*,ia64*)        # Intel C compiler on ia64
10281           tmp_addflag=' -i_dynamic' ;;
10282         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
10283           tmp_addflag=' -i_dynamic -nofor_main' ;;
10284         ifc* | ifort*)                  # Intel Fortran compiler
10285           tmp_addflag=' -nofor_main' ;;
10286         lf95*)                          # Lahey Fortran 8.1
10287           whole_archive_flag_spec=
10288           tmp_sharedflag='--shared' ;;
10289         xl[cC]*)                        # IBM XL C 8.0 on PPC (deal with xlf below)
10290           tmp_sharedflag='-qmkshrobj'
10291           tmp_addflag= ;;
10292         esac
10293         case `$CC -V 2>&1 | sed 5q` in
10294         *Sun\ C*)                       # Sun C 5.9
10295           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'
10296           compiler_needs_object=yes
10297           tmp_sharedflag='-G' ;;
10298         *Sun\ F*)                       # Sun Fortran 8.3
10299           tmp_sharedflag='-G' ;;
10300         esac
10301         archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10302
10303         if test "x$supports_anon_versioning" = xyes; then
10304           archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
10305             cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
10306             echo "local: *; };" >> $output_objdir/$libname.ver~
10307             $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
10308         fi
10309
10310         case $cc_basename in
10311         xlf*)
10312           # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
10313           whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
10314           hardcode_libdir_flag_spec=
10315           hardcode_libdir_flag_spec_ld='-rpath $libdir'
10316           archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
10317           if test "x$supports_anon_versioning" = xyes; then
10318             archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
10319               cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
10320               echo "local: *; };" >> $output_objdir/$libname.ver~
10321               $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
10322           fi
10323           ;;
10324         esac
10325       else
10326         ld_shlibs=no
10327       fi
10328       ;;
10329
10330     netbsd*)
10331       if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10332         archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
10333         wlarc=
10334       else
10335         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10336         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10337       fi
10338       ;;
10339
10340     solaris*)
10341       if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
10342         ld_shlibs=no
10343         cat <<_LT_EOF 1>&2
10344
10345 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
10346 *** create shared libraries on Solaris systems.  Therefore, libtool
10347 *** is disabling shared libraries support.  We urge you to upgrade GNU
10348 *** binutils to release 2.9.1 or newer.  Another option is to modify
10349 *** your PATH or compiler configuration so that the native linker is
10350 *** used, and then restart.
10351
10352 _LT_EOF
10353       elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10354         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10355         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10356       else
10357         ld_shlibs=no
10358       fi
10359       ;;
10360
10361     sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
10362       case `$LD -v 2>&1` in
10363         *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
10364         ld_shlibs=no
10365         cat <<_LT_EOF 1>&2
10366
10367 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
10368 *** reliably create shared libraries on SCO systems.  Therefore, libtool
10369 *** is disabling shared libraries support.  We urge you to upgrade GNU
10370 *** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
10371 *** your PATH or compiler configuration so that the native linker is
10372 *** used, and then restart.
10373
10374 _LT_EOF
10375         ;;
10376         *)
10377           # For security reasons, it is highly recommended that you always
10378           # use absolute paths for naming shared libraries, and exclude the
10379           # DT_RUNPATH tag from executables and libraries.  But doing so
10380           # requires that you compile everything twice, which is a pain.
10381           if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10382             hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10383             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10384             archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10385           else
10386             ld_shlibs=no
10387           fi
10388         ;;
10389       esac
10390       ;;
10391
10392     sunos4*)
10393       archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10394       wlarc=
10395       hardcode_direct=yes
10396       hardcode_shlibpath_var=no
10397       ;;
10398
10399     *)
10400       if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10401         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10402         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10403       else
10404         ld_shlibs=no
10405       fi
10406       ;;
10407     esac
10408
10409     if test "$ld_shlibs" = no; then
10410       runpath_var=
10411       hardcode_libdir_flag_spec=
10412       export_dynamic_flag_spec=
10413       whole_archive_flag_spec=
10414     fi
10415   else
10416     # PORTME fill in a description of your system's linker (not GNU ld)
10417     case $host_os in
10418     aix3*)
10419       allow_undefined_flag=unsupported
10420       always_export_symbols=yes
10421       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'
10422       # Note: this linker hardcodes the directories in LIBPATH if there
10423       # are no directories specified by -L.
10424       hardcode_minus_L=yes
10425       if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
10426         # Neither direct hardcoding nor static linking is supported with a
10427         # broken collect2.
10428         hardcode_direct=unsupported
10429       fi
10430       ;;
10431
10432     aix[4-9]*)
10433       if test "$host_cpu" = ia64; then
10434         # On IA64, the linker does run time linking by default, so we don't
10435         # have to do anything special.
10436         aix_use_runtimelinking=no
10437         exp_sym_flag='-Bexport'
10438         no_entry_flag=""
10439       else
10440         # If we're using GNU nm, then we don't want the "-C" option.
10441         # -C means demangle to AIX nm, but means don't demangle with GNU nm
10442         if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
10443           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'
10444         else
10445           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'
10446         fi
10447         aix_use_runtimelinking=no
10448
10449         # Test if we are trying to use run time linking or normal
10450         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
10451         # need to do runtime linking.
10452         case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
10453           for ld_flag in $LDFLAGS; do
10454           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
10455             aix_use_runtimelinking=yes
10456             break
10457           fi
10458           done
10459           ;;
10460         esac
10461
10462         exp_sym_flag='-bexport'
10463         no_entry_flag='-bnoentry'
10464       fi
10465
10466       # When large executables or shared objects are built, AIX ld can
10467       # have problems creating the table of contents.  If linking a library
10468       # or program results in "error TOC overflow" add -mminimal-toc to
10469       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
10470       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
10471
10472       archive_cmds=''
10473       hardcode_direct=yes
10474       hardcode_direct_absolute=yes
10475       hardcode_libdir_separator=':'
10476       link_all_deplibs=yes
10477       file_list_spec='${wl}-f,'
10478
10479       if test "$GCC" = yes; then
10480         case $host_os in aix4.[012]|aix4.[012].*)
10481         # We only want to do this on AIX 4.2 and lower, the check
10482         # below for broken collect2 doesn't work under 4.3+
10483           collect2name=`${CC} -print-prog-name=collect2`
10484           if test -f "$collect2name" &&
10485            strings "$collect2name" | $GREP resolve_lib_name >/dev/null
10486           then
10487           # We have reworked collect2
10488           :
10489           else
10490           # We have old collect2
10491           hardcode_direct=unsupported
10492           # It fails to find uninstalled libraries when the uninstalled
10493           # path is not listed in the libpath.  Setting hardcode_minus_L
10494           # to unsupported forces relinking
10495           hardcode_minus_L=yes
10496           hardcode_libdir_flag_spec='-L$libdir'
10497           hardcode_libdir_separator=
10498           fi
10499           ;;
10500         esac
10501         shared_flag='-shared'
10502         if test "$aix_use_runtimelinking" = yes; then
10503           shared_flag="$shared_flag "'${wl}-G'
10504         fi
10505       else
10506         # not using gcc
10507         if test "$host_cpu" = ia64; then
10508         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
10509         # chokes on -Wl,-G. The following line is correct:
10510           shared_flag='-G'
10511         else
10512           if test "$aix_use_runtimelinking" = yes; then
10513             shared_flag='${wl}-G'
10514           else
10515             shared_flag='${wl}-bM:SRE'
10516           fi
10517         fi
10518       fi
10519
10520       export_dynamic_flag_spec='${wl}-bexpall'
10521       # It seems that -bexpall does not export symbols beginning with
10522       # underscore (_), so it is better to generate a list of symbols to export.
10523       always_export_symbols=yes
10524       if test "$aix_use_runtimelinking" = yes; then
10525         # Warning - without using the other runtime loading flags (-brtl),
10526         # -berok will link without error, but may produce a broken library.
10527         allow_undefined_flag='-berok'
10528         # Determine the default libpath from the value encoded in an
10529         # empty executable.
10530         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10531 /* end confdefs.h.  */
10532
10533 int
10534 main ()
10535 {
10536
10537   ;
10538   return 0;
10539 }
10540 _ACEOF
10541 if ac_fn_c_try_link "$LINENO"; then :
10542
10543 lt_aix_libpath_sed='
10544     /Import File Strings/,/^$/ {
10545         /^0/ {
10546             s/^0  *\(.*\)$/\1/
10547             p
10548         }
10549     }'
10550 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10551 # Check for a 64-bit object if we didn't find anything.
10552 if test -z "$aix_libpath"; then
10553   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10554 fi
10555 fi
10556 rm -f core conftest.err conftest.$ac_objext \
10557     conftest$ac_exeext conftest.$ac_ext
10558 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
10559
10560         hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
10561         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"
10562       else
10563         if test "$host_cpu" = ia64; then
10564           hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
10565           allow_undefined_flag="-z nodefs"
10566           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"
10567         else
10568          # Determine the default libpath from the value encoded in an
10569          # empty executable.
10570          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10571 /* end confdefs.h.  */
10572
10573 int
10574 main ()
10575 {
10576
10577   ;
10578   return 0;
10579 }
10580 _ACEOF
10581 if ac_fn_c_try_link "$LINENO"; then :
10582
10583 lt_aix_libpath_sed='
10584     /Import File Strings/,/^$/ {
10585         /^0/ {
10586             s/^0  *\(.*\)$/\1/
10587             p
10588         }
10589     }'
10590 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10591 # Check for a 64-bit object if we didn't find anything.
10592 if test -z "$aix_libpath"; then
10593   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10594 fi
10595 fi
10596 rm -f core conftest.err conftest.$ac_objext \
10597     conftest$ac_exeext conftest.$ac_ext
10598 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
10599
10600          hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
10601           # Warning - without using the other run time loading flags,
10602           # -berok will link without error, but may produce a broken library.
10603           no_undefined_flag=' ${wl}-bernotok'
10604           allow_undefined_flag=' ${wl}-berok'
10605           # Exported symbols can be pulled into shared objects from archives
10606           whole_archive_flag_spec='$convenience'
10607           archive_cmds_need_lc=yes
10608           # This is similar to how AIX traditionally builds its shared libraries.
10609           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'
10610         fi
10611       fi
10612       ;;
10613
10614     amigaos*)
10615       case $host_cpu in
10616       powerpc)
10617             # see comment about AmigaOS4 .so support
10618             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10619             archive_expsym_cmds=''
10620         ;;
10621       m68k)
10622             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)'
10623             hardcode_libdir_flag_spec='-L$libdir'
10624             hardcode_minus_L=yes
10625         ;;
10626       esac
10627       ;;
10628
10629     bsdi[45]*)
10630       export_dynamic_flag_spec=-rdynamic
10631       ;;
10632
10633     cygwin* | mingw* | pw32* | cegcc*)
10634       # When not using gcc, we currently assume that we are using
10635       # Microsoft Visual C++.
10636       # hardcode_libdir_flag_spec is actually meaningless, as there is
10637       # no search path for DLLs.
10638       hardcode_libdir_flag_spec=' '
10639       allow_undefined_flag=unsupported
10640       # Tell ltmain to make .lib files, not .a files.
10641       libext=lib
10642       # Tell ltmain to make .dll files, not .so files.
10643       shrext_cmds=".dll"
10644       # FIXME: Setting linknames here is a bad hack.
10645       archive_cmds='$CC -o $lib $libobjs $compiler_flags `$ECHO "X$deplibs" | $Xsed -e '\''s/ -lc$//'\''` -link -dll~linknames='
10646       # The linker will automatically build a .lib file if we build a DLL.
10647       old_archive_from_new_cmds='true'
10648       # FIXME: Should let the user specify the lib program.
10649       old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
10650       fix_srcfile_path='`cygpath -w "$srcfile"`'
10651       enable_shared_with_static_runtimes=yes
10652       ;;
10653
10654     darwin* | rhapsody*)
10655
10656
10657   archive_cmds_need_lc=no
10658   hardcode_direct=no
10659   hardcode_automatic=yes
10660   hardcode_shlibpath_var=unsupported
10661   whole_archive_flag_spec=''
10662   link_all_deplibs=yes
10663   allow_undefined_flag="$_lt_dar_allow_undefined"
10664   case $cc_basename in
10665      ifort*) _lt_dar_can_shared=yes ;;
10666      *) _lt_dar_can_shared=$GCC ;;
10667   esac
10668   if test "$_lt_dar_can_shared" = "yes"; then
10669     output_verbose_link_cmd=echo
10670     archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
10671     module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
10672     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}"
10673     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}"
10674
10675   else
10676   ld_shlibs=no
10677   fi
10678
10679       ;;
10680
10681     dgux*)
10682       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10683       hardcode_libdir_flag_spec='-L$libdir'
10684       hardcode_shlibpath_var=no
10685       ;;
10686
10687     freebsd1*)
10688       ld_shlibs=no
10689       ;;
10690
10691     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
10692     # support.  Future versions do this automatically, but an explicit c++rt0.o
10693     # does not break anything, and helps significantly (at the cost of a little
10694     # extra space).
10695     freebsd2.2*)
10696       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
10697       hardcode_libdir_flag_spec='-R$libdir'
10698       hardcode_direct=yes
10699       hardcode_shlibpath_var=no
10700       ;;
10701
10702     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
10703     freebsd2*)
10704       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10705       hardcode_direct=yes
10706       hardcode_minus_L=yes
10707       hardcode_shlibpath_var=no
10708       ;;
10709
10710     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
10711     freebsd* | dragonfly*)
10712       archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
10713       hardcode_libdir_flag_spec='-R$libdir'
10714       hardcode_direct=yes
10715       hardcode_shlibpath_var=no
10716       ;;
10717
10718     hpux9*)
10719       if test "$GCC" = yes; then
10720         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'
10721       else
10722         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'
10723       fi
10724       hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10725       hardcode_libdir_separator=:
10726       hardcode_direct=yes
10727
10728       # hardcode_minus_L: Not really in the search PATH,
10729       # but as the default location of the library.
10730       hardcode_minus_L=yes
10731       export_dynamic_flag_spec='${wl}-E'
10732       ;;
10733
10734     hpux10*)
10735       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
10736         archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10737       else
10738         archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10739       fi
10740       if test "$with_gnu_ld" = no; then
10741         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10742         hardcode_libdir_flag_spec_ld='+b $libdir'
10743         hardcode_libdir_separator=:
10744         hardcode_direct=yes
10745         hardcode_direct_absolute=yes
10746         export_dynamic_flag_spec='${wl}-E'
10747         # hardcode_minus_L: Not really in the search PATH,
10748         # but as the default location of the library.
10749         hardcode_minus_L=yes
10750       fi
10751       ;;
10752
10753     hpux11*)
10754       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
10755         case $host_cpu in
10756         hppa*64*)
10757           archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10758           ;;
10759         ia64*)
10760           archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10761           ;;
10762         *)
10763           archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10764           ;;
10765         esac
10766       else
10767         case $host_cpu in
10768         hppa*64*)
10769           archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10770           ;;
10771         ia64*)
10772           archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10773           ;;
10774         *)
10775           archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10776           ;;
10777         esac
10778       fi
10779       if test "$with_gnu_ld" = no; then
10780         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10781         hardcode_libdir_separator=:
10782
10783         case $host_cpu in
10784         hppa*64*|ia64*)
10785           hardcode_direct=no
10786           hardcode_shlibpath_var=no
10787           ;;
10788         *)
10789           hardcode_direct=yes
10790           hardcode_direct_absolute=yes
10791           export_dynamic_flag_spec='${wl}-E'
10792
10793           # hardcode_minus_L: Not really in the search PATH,
10794           # but as the default location of the library.
10795           hardcode_minus_L=yes
10796           ;;
10797         esac
10798       fi
10799       ;;
10800
10801     irix5* | irix6* | nonstopux*)
10802       if test "$GCC" = yes; then
10803         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'
10804         # Try to use the -exported_symbol ld option, if it does not
10805         # work, assume that -exports_file does not work either and
10806         # implicitly export all symbols.
10807         save_LDFLAGS="$LDFLAGS"
10808         LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
10809         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10810 /* end confdefs.h.  */
10811 int foo(void) {}
10812 _ACEOF
10813 if ac_fn_c_try_link "$LINENO"; then :
10814   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'
10815
10816 fi
10817 rm -f core conftest.err conftest.$ac_objext \
10818     conftest$ac_exeext conftest.$ac_ext
10819         LDFLAGS="$save_LDFLAGS"
10820       else
10821         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'
10822         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'
10823       fi
10824       archive_cmds_need_lc='no'
10825       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10826       hardcode_libdir_separator=:
10827       inherit_rpath=yes
10828       link_all_deplibs=yes
10829       ;;
10830
10831     netbsd*)
10832       if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10833         archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
10834       else
10835         archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
10836       fi
10837       hardcode_libdir_flag_spec='-R$libdir'
10838       hardcode_direct=yes
10839       hardcode_shlibpath_var=no
10840       ;;
10841
10842     newsos6)
10843       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10844       hardcode_direct=yes
10845       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10846       hardcode_libdir_separator=:
10847       hardcode_shlibpath_var=no
10848       ;;
10849
10850     *nto* | *qnx*)
10851       ;;
10852
10853     openbsd*)
10854       if test -f /usr/libexec/ld.so; then
10855         hardcode_direct=yes
10856         hardcode_shlibpath_var=no
10857         hardcode_direct_absolute=yes
10858         if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10859           archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10860           archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
10861           hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10862           export_dynamic_flag_spec='${wl}-E'
10863         else
10864           case $host_os in
10865            openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
10866              archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10867              hardcode_libdir_flag_spec='-R$libdir'
10868              ;;
10869            *)
10870              archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10871              hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10872              ;;
10873           esac
10874         fi
10875       else
10876         ld_shlibs=no
10877       fi
10878       ;;
10879
10880     os2*)
10881       hardcode_libdir_flag_spec='-L$libdir'
10882       hardcode_minus_L=yes
10883       allow_undefined_flag=unsupported
10884       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'
10885       old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
10886       ;;
10887
10888     osf3*)
10889       if test "$GCC" = yes; then
10890         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10891         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'
10892       else
10893         allow_undefined_flag=' -expect_unresolved \*'
10894         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'
10895       fi
10896       archive_cmds_need_lc='no'
10897       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10898       hardcode_libdir_separator=:
10899       ;;
10900
10901     osf4* | osf5*)      # as osf3* with the addition of -msym flag
10902       if test "$GCC" = yes; then
10903         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10904         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'
10905         hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10906       else
10907         allow_undefined_flag=' -expect_unresolved \*'
10908         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'
10909         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~
10910         $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'
10911
10912         # Both c and cxx compiler support -rpath directly
10913         hardcode_libdir_flag_spec='-rpath $libdir'
10914       fi
10915       archive_cmds_need_lc='no'
10916       hardcode_libdir_separator=:
10917       ;;
10918
10919     solaris*)
10920       no_undefined_flag=' -z defs'
10921       if test "$GCC" = yes; then
10922         wlarc='${wl}'
10923         archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10924         archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10925           $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10926       else
10927         case `$CC -V 2>&1` in
10928         *"Compilers 5.0"*)
10929           wlarc=''
10930           archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
10931           archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10932           $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
10933           ;;
10934         *)
10935           wlarc='${wl}'
10936           archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
10937           archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10938           $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10939           ;;
10940         esac
10941       fi
10942       hardcode_libdir_flag_spec='-R$libdir'
10943       hardcode_shlibpath_var=no
10944       case $host_os in
10945       solaris2.[0-5] | solaris2.[0-5].*) ;;
10946       *)
10947         # The compiler driver will combine and reorder linker options,
10948         # but understands `-z linker_flag'.  GCC discards it without `$wl',
10949         # but is careful enough not to reorder.
10950         # Supported since Solaris 2.6 (maybe 2.5.1?)
10951         if test "$GCC" = yes; then
10952           whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
10953         else
10954           whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
10955         fi
10956         ;;
10957       esac
10958       link_all_deplibs=yes
10959       ;;
10960
10961     sunos4*)
10962       if test "x$host_vendor" = xsequent; then
10963         # Use $CC to link under sequent, because it throws in some extra .o
10964         # files that make .init and .fini sections work.
10965         archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
10966       else
10967         archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
10968       fi
10969       hardcode_libdir_flag_spec='-L$libdir'
10970       hardcode_direct=yes
10971       hardcode_minus_L=yes
10972       hardcode_shlibpath_var=no
10973       ;;
10974
10975     sysv4)
10976       case $host_vendor in
10977         sni)
10978           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10979           hardcode_direct=yes # is this really true???
10980         ;;
10981         siemens)
10982           ## LD is ld it makes a PLAMLIB
10983           ## CC just makes a GrossModule.
10984           archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
10985           reload_cmds='$CC -r -o $output$reload_objs'
10986           hardcode_direct=no
10987         ;;
10988         motorola)
10989           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10990           hardcode_direct=no #Motorola manual says yes, but my tests say they lie
10991         ;;
10992       esac
10993       runpath_var='LD_RUN_PATH'
10994       hardcode_shlibpath_var=no
10995       ;;
10996
10997     sysv4.3*)
10998       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10999       hardcode_shlibpath_var=no
11000       export_dynamic_flag_spec='-Bexport'
11001       ;;
11002
11003     sysv4*MP*)
11004       if test -d /usr/nec; then
11005         archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11006         hardcode_shlibpath_var=no
11007         runpath_var=LD_RUN_PATH
11008         hardcode_runpath_var=yes
11009         ld_shlibs=yes
11010       fi
11011       ;;
11012
11013     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
11014       no_undefined_flag='${wl}-z,text'
11015       archive_cmds_need_lc=no
11016       hardcode_shlibpath_var=no
11017       runpath_var='LD_RUN_PATH'
11018
11019       if test "$GCC" = yes; then
11020         archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11021         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11022       else
11023         archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11024         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11025       fi
11026       ;;
11027
11028     sysv5* | sco3.2v5* | sco5v6*)
11029       # Note: We can NOT use -z defs as we might desire, because we do not
11030       # link with -lc, and that would cause any symbols used from libc to
11031       # always be unresolved, which means just about no library would
11032       # ever link correctly.  If we're not using GNU ld we use -z text
11033       # though, which does catch some bad symbols but isn't as heavy-handed
11034       # as -z defs.
11035       no_undefined_flag='${wl}-z,text'
11036       allow_undefined_flag='${wl}-z,nodefs'
11037       archive_cmds_need_lc=no
11038       hardcode_shlibpath_var=no
11039       hardcode_libdir_flag_spec='${wl}-R,$libdir'
11040       hardcode_libdir_separator=':'
11041       link_all_deplibs=yes
11042       export_dynamic_flag_spec='${wl}-Bexport'
11043       runpath_var='LD_RUN_PATH'
11044
11045       if test "$GCC" = yes; then
11046         archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11047         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11048       else
11049         archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11050         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11051       fi
11052       ;;
11053
11054     uts4*)
11055       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11056       hardcode_libdir_flag_spec='-L$libdir'
11057       hardcode_shlibpath_var=no
11058       ;;
11059
11060     *)
11061       ld_shlibs=no
11062       ;;
11063     esac
11064
11065     if test x$host_vendor = xsni; then
11066       case $host in
11067       sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
11068         export_dynamic_flag_spec='${wl}-Blargedynsym'
11069         ;;
11070       esac
11071     fi
11072   fi
11073
11074 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
11075 $as_echo "$ld_shlibs" >&6; }
11076 test "$ld_shlibs" = no && can_build_shared=no
11077
11078 with_gnu_ld=$with_gnu_ld
11079
11080
11081
11082
11083
11084
11085
11086
11087
11088
11089
11090
11091
11092
11093
11094 #
11095 # Do we need to explicitly link libc?
11096 #
11097 case "x$archive_cmds_need_lc" in
11098 x|xyes)
11099   # Assume -lc should be added
11100   archive_cmds_need_lc=yes
11101
11102   if test "$enable_shared" = yes && test "$GCC" = yes; then
11103     case $archive_cmds in
11104     *'~'*)
11105       # FIXME: we may have to deal with multi-command sequences.
11106       ;;
11107     '$CC '*)
11108       # Test whether the compiler implicitly links with -lc since on some
11109       # systems, -lgcc has to come before -lc. If gcc already passes -lc
11110       # to ld, don't add -lc before -lgcc.
11111       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
11112 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
11113       $RM conftest*
11114       echo "$lt_simple_compile_test_code" > conftest.$ac_ext
11115
11116       if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
11117   (eval $ac_compile) 2>&5
11118   ac_status=$?
11119   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11120   test $ac_status = 0; } 2>conftest.err; then
11121         soname=conftest
11122         lib=conftest
11123         libobjs=conftest.$ac_objext
11124         deplibs=
11125         wl=$lt_prog_compiler_wl
11126         pic_flag=$lt_prog_compiler_pic
11127         compiler_flags=-v
11128         linker_flags=-v
11129         verstring=
11130         output_objdir=.
11131         libname=conftest
11132         lt_save_allow_undefined_flag=$allow_undefined_flag
11133         allow_undefined_flag=
11134         if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
11135   (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
11136   ac_status=$?
11137   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11138   test $ac_status = 0; }
11139         then
11140           archive_cmds_need_lc=no
11141         else
11142           archive_cmds_need_lc=yes
11143         fi
11144         allow_undefined_flag=$lt_save_allow_undefined_flag
11145       else
11146         cat conftest.err 1>&5
11147       fi
11148       $RM conftest*
11149       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $archive_cmds_need_lc" >&5
11150 $as_echo "$archive_cmds_need_lc" >&6; }
11151       ;;
11152     esac
11153   fi
11154   ;;
11155 esac
11156
11157
11158
11159
11160
11161
11162
11163
11164
11165
11166
11167
11168
11169
11170
11171
11172
11173
11174
11175
11176
11177
11178
11179
11180
11181
11182
11183
11184
11185
11186
11187
11188
11189
11190
11191
11192
11193
11194
11195
11196
11197
11198
11199
11200
11201
11202
11203
11204
11205
11206
11207
11208
11209
11210
11211
11212
11213
11214
11215
11216
11217
11218
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   { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
11314 $as_echo_n "checking dynamic linker characteristics... " >&6; }
11315
11316 if test "$GCC" = yes; then
11317   case $host_os in
11318     darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
11319     *) lt_awk_arg="/^libraries:/" ;;
11320   esac
11321   lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
11322   if $ECHO "$lt_search_path_spec" | $GREP ';' >/dev/null ; then
11323     # if the path contains ";" then we assume it to be the separator
11324     # otherwise default to the standard path separator (i.e. ":") - it is
11325     # assumed that no part of a normal pathname contains ";" but that should
11326     # okay in the real world where ";" in dirpaths is itself problematic.
11327     lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e 's/;/ /g'`
11328   else
11329     lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
11330   fi
11331   # Ok, now we have the path, separated by spaces, we can step through it
11332   # and add multilib dir if necessary.
11333   lt_tmp_lt_search_path_spec=
11334   lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
11335   for lt_sys_path in $lt_search_path_spec; do
11336     if test -d "$lt_sys_path/$lt_multi_os_dir"; then
11337       lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
11338     else
11339       test -d "$lt_sys_path" && \
11340         lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
11341     fi
11342   done
11343   lt_search_path_spec=`$ECHO $lt_tmp_lt_search_path_spec | awk '
11344 BEGIN {RS=" "; FS="/|\n";} {
11345   lt_foo="";
11346   lt_count=0;
11347   for (lt_i = NF; lt_i > 0; lt_i--) {
11348     if ($lt_i != "" && $lt_i != ".") {
11349       if ($lt_i == "..") {
11350         lt_count++;
11351       } else {
11352         if (lt_count == 0) {
11353           lt_foo="/" $lt_i lt_foo;
11354         } else {
11355           lt_count--;
11356         }
11357       }
11358     }
11359   }
11360   if (lt_foo != "") { lt_freq[lt_foo]++; }
11361   if (lt_freq[lt_foo] == 1) { print lt_foo; }
11362 }'`
11363   sys_lib_search_path_spec=`$ECHO $lt_search_path_spec`
11364 else
11365   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
11366 fi
11367 library_names_spec=
11368 libname_spec='lib$name'
11369 soname_spec=
11370 shrext_cmds=".so"
11371 postinstall_cmds=
11372 postuninstall_cmds=
11373 finish_cmds=
11374 finish_eval=
11375 shlibpath_var=
11376 shlibpath_overrides_runpath=unknown
11377 version_type=none
11378 dynamic_linker="$host_os ld.so"
11379 sys_lib_dlsearch_path_spec="/lib /usr/lib"
11380 need_lib_prefix=unknown
11381 hardcode_into_libs=no
11382
11383 # when you set need_version to no, make sure it does not cause -set_version
11384 # flags to be left without arguments
11385 need_version=unknown
11386
11387 case $host_os in
11388 aix3*)
11389   version_type=linux
11390   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
11391   shlibpath_var=LIBPATH
11392
11393   # AIX 3 has no versioning support, so we append a major version to the name.
11394   soname_spec='${libname}${release}${shared_ext}$major'
11395   ;;
11396
11397 aix[4-9]*)
11398   version_type=linux
11399   need_lib_prefix=no
11400   need_version=no
11401   hardcode_into_libs=yes
11402   if test "$host_cpu" = ia64; then
11403     # AIX 5 supports IA64
11404     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
11405     shlibpath_var=LD_LIBRARY_PATH
11406   else
11407     # With GCC up to 2.95.x, collect2 would create an import file
11408     # for dependence libraries.  The import file would start with
11409     # the line `#! .'.  This would cause the generated library to
11410     # depend on `.', always an invalid library.  This was fixed in
11411     # development snapshots of GCC prior to 3.0.
11412     case $host_os in
11413       aix4 | aix4.[01] | aix4.[01].*)
11414       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
11415            echo ' yes '
11416            echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
11417         :
11418       else
11419         can_build_shared=no
11420       fi
11421       ;;
11422     esac
11423     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
11424     # soname into executable. Probably we can add versioning support to
11425     # collect2, so additional links can be useful in future.
11426     if test "$aix_use_runtimelinking" = yes; then
11427       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
11428       # instead of lib<name>.a to let people know that these are not
11429       # typical AIX shared libraries.
11430       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11431     else
11432       # We preserve .a as extension for shared libraries through AIX4.2
11433       # and later when we are not doing run time linking.
11434       library_names_spec='${libname}${release}.a $libname.a'
11435       soname_spec='${libname}${release}${shared_ext}$major'
11436     fi
11437     shlibpath_var=LIBPATH
11438   fi
11439   ;;
11440
11441 amigaos*)
11442   case $host_cpu in
11443   powerpc)
11444     # Since July 2007 AmigaOS4 officially supports .so libraries.
11445     # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
11446     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11447     ;;
11448   m68k)
11449     library_names_spec='$libname.ixlibrary $libname.a'
11450     # Create ${libname}_ixlibrary.a entries in /sys/libs.
11451     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'
11452     ;;
11453   esac
11454   ;;
11455
11456 beos*)
11457   library_names_spec='${libname}${shared_ext}'
11458   dynamic_linker="$host_os ld.so"
11459   shlibpath_var=LIBRARY_PATH
11460   ;;
11461
11462 bsdi[45]*)
11463   version_type=linux
11464   need_version=no
11465   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11466   soname_spec='${libname}${release}${shared_ext}$major'
11467   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
11468   shlibpath_var=LD_LIBRARY_PATH
11469   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
11470   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
11471   # the default ld.so.conf also contains /usr/contrib/lib and
11472   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
11473   # libtool to hard-code these into programs
11474   ;;
11475
11476 cygwin* | mingw* | pw32* | cegcc*)
11477   version_type=windows
11478   shrext_cmds=".dll"
11479   need_version=no
11480   need_lib_prefix=no
11481
11482   case $GCC,$host_os in
11483   yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
11484     library_names_spec='$libname.dll.a'
11485     # DLL is installed to $(libdir)/../bin by postinstall_cmds
11486     postinstall_cmds='base_file=`basename \${file}`~
11487       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
11488       dldir=$destdir/`dirname \$dlpath`~
11489       test -d \$dldir || mkdir -p \$dldir~
11490       $install_prog $dir/$dlname \$dldir/$dlname~
11491       chmod a+x \$dldir/$dlname~
11492       if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
11493         eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
11494       fi'
11495     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11496       dlpath=$dir/\$dldll~
11497        $RM \$dlpath'
11498     shlibpath_overrides_runpath=yes
11499
11500     case $host_os in
11501     cygwin*)
11502       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
11503       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11504       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
11505       ;;
11506     mingw* | cegcc*)
11507       # MinGW DLLs use traditional 'lib' prefix
11508       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11509       sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
11510       if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
11511         # It is most probably a Windows format PATH printed by
11512         # mingw gcc, but we are running on Cygwin. Gcc prints its search
11513         # path with ; separators, and with drive letters. We can handle the
11514         # drive letters (cygwin fileutils understands them), so leave them,
11515         # especially as we might pass files found there to a mingw objdump,
11516         # which wouldn't understand a cygwinified path. Ahh.
11517         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
11518       else
11519         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
11520       fi
11521       ;;
11522     pw32*)
11523       # pw32 DLLs use 'pw' prefix rather than 'lib'
11524       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11525       ;;
11526     esac
11527     ;;
11528
11529   *)
11530     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
11531     ;;
11532   esac
11533   dynamic_linker='Win32 ld.exe'
11534   # FIXME: first we should search . and the directory the executable is in
11535   shlibpath_var=PATH
11536   ;;
11537
11538 darwin* | rhapsody*)
11539   dynamic_linker="$host_os dyld"
11540   version_type=darwin
11541   need_lib_prefix=no
11542   need_version=no
11543   library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
11544   soname_spec='${libname}${release}${major}$shared_ext'
11545   shlibpath_overrides_runpath=yes
11546   shlibpath_var=DYLD_LIBRARY_PATH
11547   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
11548
11549   sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
11550   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
11551   ;;
11552
11553 dgux*)
11554   version_type=linux
11555   need_lib_prefix=no
11556   need_version=no
11557   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
11558   soname_spec='${libname}${release}${shared_ext}$major'
11559   shlibpath_var=LD_LIBRARY_PATH
11560   ;;
11561
11562 freebsd1*)
11563   dynamic_linker=no
11564   ;;
11565
11566 freebsd* | dragonfly*)
11567   # DragonFly does not have aout.  When/if they implement a new
11568   # versioning mechanism, adjust this.
11569   if test -x /usr/bin/objformat; then
11570     objformat=`/usr/bin/objformat`
11571   else
11572     case $host_os in
11573     freebsd[123]*) objformat=aout ;;
11574     *) objformat=elf ;;
11575     esac
11576   fi
11577   version_type=freebsd-$objformat
11578   case $version_type in
11579     freebsd-elf*)
11580       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11581       need_version=no
11582       need_lib_prefix=no
11583       ;;
11584     freebsd-*)
11585       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
11586       need_version=yes
11587       ;;
11588   esac
11589   shlibpath_var=LD_LIBRARY_PATH
11590   case $host_os in
11591   freebsd2*)
11592     shlibpath_overrides_runpath=yes
11593     ;;
11594   freebsd3.[01]* | freebsdelf3.[01]*)
11595     shlibpath_overrides_runpath=yes
11596     hardcode_into_libs=yes
11597     ;;
11598   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
11599   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
11600     shlibpath_overrides_runpath=no
11601     hardcode_into_libs=yes
11602     ;;
11603   *) # from 4.6 on, and DragonFly
11604     shlibpath_overrides_runpath=yes
11605     hardcode_into_libs=yes
11606     ;;
11607   esac
11608   ;;
11609
11610 gnu*)
11611   version_type=linux
11612   need_lib_prefix=no
11613   need_version=no
11614   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
11615   soname_spec='${libname}${release}${shared_ext}$major'
11616   shlibpath_var=LD_LIBRARY_PATH
11617   hardcode_into_libs=yes
11618   ;;
11619
11620 hpux9* | hpux10* | hpux11*)
11621   # Give a soname corresponding to the major version so that dld.sl refuses to
11622   # link against other versions.
11623   version_type=sunos
11624   need_lib_prefix=no
11625   need_version=no
11626   case $host_cpu in
11627   ia64*)
11628     shrext_cmds='.so'
11629     hardcode_into_libs=yes
11630     dynamic_linker="$host_os dld.so"
11631     shlibpath_var=LD_LIBRARY_PATH
11632     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11633     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11634     soname_spec='${libname}${release}${shared_ext}$major'
11635     if test "X$HPUX_IA64_MODE" = X32; then
11636       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
11637     else
11638       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
11639     fi
11640     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11641     ;;
11642   hppa*64*)
11643     shrext_cmds='.sl'
11644     hardcode_into_libs=yes
11645     dynamic_linker="$host_os dld.sl"
11646     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
11647     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11648     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11649     soname_spec='${libname}${release}${shared_ext}$major'
11650     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
11651     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11652     ;;
11653   *)
11654     shrext_cmds='.sl'
11655     dynamic_linker="$host_os dld.sl"
11656     shlibpath_var=SHLIB_PATH
11657     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
11658     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11659     soname_spec='${libname}${release}${shared_ext}$major'
11660     ;;
11661   esac
11662   # HP-UX runs *really* slowly unless shared libraries are mode 555.
11663   postinstall_cmds='chmod 555 $lib'
11664   ;;
11665
11666 interix[3-9]*)
11667   version_type=linux
11668   need_lib_prefix=no
11669   need_version=no
11670   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11671   soname_spec='${libname}${release}${shared_ext}$major'
11672   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
11673   shlibpath_var=LD_LIBRARY_PATH
11674   shlibpath_overrides_runpath=no
11675   hardcode_into_libs=yes
11676   ;;
11677
11678 irix5* | irix6* | nonstopux*)
11679   case $host_os in
11680     nonstopux*) version_type=nonstopux ;;
11681     *)
11682         if test "$lt_cv_prog_gnu_ld" = yes; then
11683                 version_type=linux
11684         else
11685                 version_type=irix
11686         fi ;;
11687   esac
11688   need_lib_prefix=no
11689   need_version=no
11690   soname_spec='${libname}${release}${shared_ext}$major'
11691   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
11692   case $host_os in
11693   irix5* | nonstopux*)
11694     libsuff= shlibsuff=
11695     ;;
11696   *)
11697     case $LD in # libtool.m4 will add one of these switches to LD
11698     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
11699       libsuff= shlibsuff= libmagic=32-bit;;
11700     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
11701       libsuff=32 shlibsuff=N32 libmagic=N32;;
11702     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
11703       libsuff=64 shlibsuff=64 libmagic=64-bit;;
11704     *) libsuff= shlibsuff= libmagic=never-match;;
11705     esac
11706     ;;
11707   esac
11708   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
11709   shlibpath_overrides_runpath=no
11710   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
11711   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
11712   hardcode_into_libs=yes
11713   ;;
11714
11715 # No shared lib support for Linux oldld, aout, or coff.
11716 linux*oldld* | linux*aout* | linux*coff*)
11717   dynamic_linker=no
11718   ;;
11719
11720 # This must be Linux ELF.
11721 linux* | k*bsd*-gnu)
11722   version_type=linux
11723   need_lib_prefix=no
11724   need_version=no
11725   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11726   soname_spec='${libname}${release}${shared_ext}$major'
11727   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
11728   shlibpath_var=LD_LIBRARY_PATH
11729   shlibpath_overrides_runpath=no
11730   # Some binutils ld are patched to set DT_RUNPATH
11731   save_LDFLAGS=$LDFLAGS
11732   save_libdir=$libdir
11733   eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
11734        LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
11735   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11736 /* end confdefs.h.  */
11737
11738 int
11739 main ()
11740 {
11741
11742   ;
11743   return 0;
11744 }
11745 _ACEOF
11746 if ac_fn_c_try_link "$LINENO"; then :
11747   if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
11748   shlibpath_overrides_runpath=yes
11749 fi
11750 fi
11751 rm -f core conftest.err conftest.$ac_objext \
11752     conftest$ac_exeext conftest.$ac_ext
11753   LDFLAGS=$save_LDFLAGS
11754   libdir=$save_libdir
11755
11756   # This implies no fast_install, which is unacceptable.
11757   # Some rework will be needed to allow for fast_install
11758   # before this can be enabled.
11759   hardcode_into_libs=yes
11760
11761   # Append ld.so.conf contents to the search path
11762   if test -f /etc/ld.so.conf; then
11763     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' ' '`
11764     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
11765   fi
11766
11767   # We used to test for /lib/ld.so.1 and disable shared libraries on
11768   # powerpc, because MkLinux only supported shared libraries with the
11769   # GNU dynamic linker.  Since this was broken with cross compilers,
11770   # most powerpc-linux boxes support dynamic linking these days and
11771   # people can always --disable-shared, the test was removed, and we
11772   # assume the GNU/Linux dynamic linker is in use.
11773   dynamic_linker='GNU/Linux ld.so'
11774   ;;
11775
11776 netbsd*)
11777   version_type=sunos
11778   need_lib_prefix=no
11779   need_version=no
11780   if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11781     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11782     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11783     dynamic_linker='NetBSD (a.out) ld.so'
11784   else
11785     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11786     soname_spec='${libname}${release}${shared_ext}$major'
11787     dynamic_linker='NetBSD ld.elf_so'
11788   fi
11789   shlibpath_var=LD_LIBRARY_PATH
11790   shlibpath_overrides_runpath=yes
11791   hardcode_into_libs=yes
11792   ;;
11793
11794 newsos6)
11795   version_type=linux
11796   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11797   shlibpath_var=LD_LIBRARY_PATH
11798   shlibpath_overrides_runpath=yes
11799   ;;
11800
11801 *nto* | *qnx*)
11802   version_type=qnx
11803   need_lib_prefix=no
11804   need_version=no
11805   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11806   soname_spec='${libname}${release}${shared_ext}$major'
11807   shlibpath_var=LD_LIBRARY_PATH
11808   shlibpath_overrides_runpath=no
11809   hardcode_into_libs=yes
11810   dynamic_linker='ldqnx.so'
11811   ;;
11812
11813 openbsd*)
11814   version_type=sunos
11815   sys_lib_dlsearch_path_spec="/usr/lib"
11816   need_lib_prefix=no
11817   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
11818   case $host_os in
11819     openbsd3.3 | openbsd3.3.*)  need_version=yes ;;
11820     *)                          need_version=no  ;;
11821   esac
11822   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11823   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11824   shlibpath_var=LD_LIBRARY_PATH
11825   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11826     case $host_os in
11827       openbsd2.[89] | openbsd2.[89].*)
11828         shlibpath_overrides_runpath=no
11829         ;;
11830       *)
11831         shlibpath_overrides_runpath=yes
11832         ;;
11833       esac
11834   else
11835     shlibpath_overrides_runpath=yes
11836   fi
11837   ;;
11838
11839 os2*)
11840   libname_spec='$name'
11841   shrext_cmds=".dll"
11842   need_lib_prefix=no
11843   library_names_spec='$libname${shared_ext} $libname.a'
11844   dynamic_linker='OS/2 ld.exe'
11845   shlibpath_var=LIBPATH
11846   ;;
11847
11848 osf3* | osf4* | osf5*)
11849   version_type=osf
11850   need_lib_prefix=no
11851   need_version=no
11852   soname_spec='${libname}${release}${shared_ext}$major'
11853   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11854   shlibpath_var=LD_LIBRARY_PATH
11855   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
11856   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
11857   ;;
11858
11859 rdos*)
11860   dynamic_linker=no
11861   ;;
11862
11863 solaris*)
11864   version_type=linux
11865   need_lib_prefix=no
11866   need_version=no
11867   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11868   soname_spec='${libname}${release}${shared_ext}$major'
11869   shlibpath_var=LD_LIBRARY_PATH
11870   shlibpath_overrides_runpath=yes
11871   hardcode_into_libs=yes
11872   # ldd complains unless libraries are executable
11873   postinstall_cmds='chmod +x $lib'
11874   ;;
11875
11876 sunos4*)
11877   version_type=sunos
11878   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11879   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
11880   shlibpath_var=LD_LIBRARY_PATH
11881   shlibpath_overrides_runpath=yes
11882   if test "$with_gnu_ld" = yes; then
11883     need_lib_prefix=no
11884   fi
11885   need_version=yes
11886   ;;
11887
11888 sysv4 | sysv4.3*)
11889   version_type=linux
11890   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11891   soname_spec='${libname}${release}${shared_ext}$major'
11892   shlibpath_var=LD_LIBRARY_PATH
11893   case $host_vendor in
11894     sni)
11895       shlibpath_overrides_runpath=no
11896       need_lib_prefix=no
11897       runpath_var=LD_RUN_PATH
11898       ;;
11899     siemens)
11900       need_lib_prefix=no
11901       ;;
11902     motorola)
11903       need_lib_prefix=no
11904       need_version=no
11905       shlibpath_overrides_runpath=no
11906       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
11907       ;;
11908   esac
11909   ;;
11910
11911 sysv4*MP*)
11912   if test -d /usr/nec ;then
11913     version_type=linux
11914     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
11915     soname_spec='$libname${shared_ext}.$major'
11916     shlibpath_var=LD_LIBRARY_PATH
11917   fi
11918   ;;
11919
11920 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
11921   version_type=freebsd-elf
11922   need_lib_prefix=no
11923   need_version=no
11924   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11925   soname_spec='${libname}${release}${shared_ext}$major'
11926   shlibpath_var=LD_LIBRARY_PATH
11927   shlibpath_overrides_runpath=yes
11928   hardcode_into_libs=yes
11929   if test "$with_gnu_ld" = yes; then
11930     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
11931   else
11932     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
11933     case $host_os in
11934       sco3.2v5*)
11935         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
11936         ;;
11937     esac
11938   fi
11939   sys_lib_dlsearch_path_spec='/usr/lib'
11940   ;;
11941
11942 tpf*)
11943   # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
11944   version_type=linux
11945   need_lib_prefix=no
11946   need_version=no
11947   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11948   shlibpath_var=LD_LIBRARY_PATH
11949   shlibpath_overrides_runpath=no
11950   hardcode_into_libs=yes
11951   ;;
11952
11953 uts4*)
11954   version_type=linux
11955   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11956   soname_spec='${libname}${release}${shared_ext}$major'
11957   shlibpath_var=LD_LIBRARY_PATH
11958   ;;
11959
11960 *)
11961   dynamic_linker=no
11962   ;;
11963 esac
11964 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
11965 $as_echo "$dynamic_linker" >&6; }
11966 test "$dynamic_linker" = no && can_build_shared=no
11967
11968 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
11969 if test "$GCC" = yes; then
11970   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
11971 fi
11972
11973 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
11974   sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
11975 fi
11976 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
11977   sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
11978 fi
11979
11980
11981
11982
11983
11984
11985
11986
11987
11988
11989
11990
11991
11992
11993
11994
11995
11996
11997
11998
11999
12000
12001
12002
12003
12004
12005
12006
12007
12008
12009
12010
12011
12012
12013
12014
12015
12016
12017
12018
12019
12020
12021
12022
12023
12024
12025
12026
12027
12028
12029
12030
12031
12032
12033
12034
12035
12036
12037
12038
12039
12040
12041
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   { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
12067 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
12068 hardcode_action=
12069 if test -n "$hardcode_libdir_flag_spec" ||
12070    test -n "$runpath_var" ||
12071    test "X$hardcode_automatic" = "Xyes" ; then
12072
12073   # We can hardcode non-existent directories.
12074   if test "$hardcode_direct" != no &&
12075      # If the only mechanism to avoid hardcoding is shlibpath_var, we
12076      # have to relink, otherwise we might link with an installed library
12077      # when we should be linking with a yet-to-be-installed one
12078      ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
12079      test "$hardcode_minus_L" != no; then
12080     # Linking always hardcodes the temporary library directory.
12081     hardcode_action=relink
12082   else
12083     # We can link without hardcoding, and we can hardcode nonexisting dirs.
12084     hardcode_action=immediate
12085   fi
12086 else
12087   # We cannot hardcode anything, or else we can only hardcode existing
12088   # directories.
12089   hardcode_action=unsupported
12090 fi
12091 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
12092 $as_echo "$hardcode_action" >&6; }
12093
12094 if test "$hardcode_action" = relink ||
12095    test "$inherit_rpath" = yes; then
12096   # Fast installation is not supported
12097   enable_fast_install=no
12098 elif test "$shlibpath_overrides_runpath" = yes ||
12099      test "$enable_shared" = no; then
12100   # Fast installation is not necessary
12101   enable_fast_install=needless
12102 fi
12103
12104
12105
12106
12107
12108
12109   if test "x$enable_dlopen" != xyes; then
12110   enable_dlopen=unknown
12111   enable_dlopen_self=unknown
12112   enable_dlopen_self_static=unknown
12113 else
12114   lt_cv_dlopen=no
12115   lt_cv_dlopen_libs=
12116
12117   case $host_os in
12118   beos*)
12119     lt_cv_dlopen="load_add_on"
12120     lt_cv_dlopen_libs=
12121     lt_cv_dlopen_self=yes
12122     ;;
12123
12124   mingw* | pw32* | cegcc*)
12125     lt_cv_dlopen="LoadLibrary"
12126     lt_cv_dlopen_libs=
12127     ;;
12128
12129   cygwin*)
12130     lt_cv_dlopen="dlopen"
12131     lt_cv_dlopen_libs=
12132     ;;
12133
12134   darwin*)
12135   # if libdl is installed we need to link against it
12136     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
12137 $as_echo_n "checking for dlopen in -ldl... " >&6; }
12138 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
12139   $as_echo_n "(cached) " >&6
12140 else
12141   ac_check_lib_save_LIBS=$LIBS
12142 LIBS="-ldl  $LIBS"
12143 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12144 /* end confdefs.h.  */
12145
12146 /* Override any GCC internal prototype to avoid an error.
12147    Use char because int might match the return type of a GCC
12148    builtin and then its argument prototype would still apply.  */
12149 #ifdef __cplusplus
12150 extern "C"
12151 #endif
12152 char dlopen ();
12153 int
12154 main ()
12155 {
12156 return dlopen ();
12157   ;
12158   return 0;
12159 }
12160 _ACEOF
12161 if ac_fn_c_try_link "$LINENO"; then :
12162   ac_cv_lib_dl_dlopen=yes
12163 else
12164   ac_cv_lib_dl_dlopen=no
12165 fi
12166 rm -f core conftest.err conftest.$ac_objext \
12167     conftest$ac_exeext conftest.$ac_ext
12168 LIBS=$ac_check_lib_save_LIBS
12169 fi
12170 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
12171 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
12172 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
12173   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
12174 else
12175
12176     lt_cv_dlopen="dyld"
12177     lt_cv_dlopen_libs=
12178     lt_cv_dlopen_self=yes
12179
12180 fi
12181
12182     ;;
12183
12184   *)
12185     ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
12186 if test "x$ac_cv_func_shl_load" = x""yes; then :
12187   lt_cv_dlopen="shl_load"
12188 else
12189   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
12190 $as_echo_n "checking for shl_load in -ldld... " >&6; }
12191 if test "${ac_cv_lib_dld_shl_load+set}" = set; then :
12192   $as_echo_n "(cached) " >&6
12193 else
12194   ac_check_lib_save_LIBS=$LIBS
12195 LIBS="-ldld  $LIBS"
12196 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12197 /* end confdefs.h.  */
12198
12199 /* Override any GCC internal prototype to avoid an error.
12200    Use char because int might match the return type of a GCC
12201    builtin and then its argument prototype would still apply.  */
12202 #ifdef __cplusplus
12203 extern "C"
12204 #endif
12205 char shl_load ();
12206 int
12207 main ()
12208 {
12209 return shl_load ();
12210   ;
12211   return 0;
12212 }
12213 _ACEOF
12214 if ac_fn_c_try_link "$LINENO"; then :
12215   ac_cv_lib_dld_shl_load=yes
12216 else
12217   ac_cv_lib_dld_shl_load=no
12218 fi
12219 rm -f core conftest.err conftest.$ac_objext \
12220     conftest$ac_exeext conftest.$ac_ext
12221 LIBS=$ac_check_lib_save_LIBS
12222 fi
12223 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
12224 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
12225 if test "x$ac_cv_lib_dld_shl_load" = x""yes; then :
12226   lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
12227 else
12228   ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
12229 if test "x$ac_cv_func_dlopen" = x""yes; then :
12230   lt_cv_dlopen="dlopen"
12231 else
12232   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
12233 $as_echo_n "checking for dlopen in -ldl... " >&6; }
12234 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
12235   $as_echo_n "(cached) " >&6
12236 else
12237   ac_check_lib_save_LIBS=$LIBS
12238 LIBS="-ldl  $LIBS"
12239 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12240 /* end confdefs.h.  */
12241
12242 /* Override any GCC internal prototype to avoid an error.
12243    Use char because int might match the return type of a GCC
12244    builtin and then its argument prototype would still apply.  */
12245 #ifdef __cplusplus
12246 extern "C"
12247 #endif
12248 char dlopen ();
12249 int
12250 main ()
12251 {
12252 return dlopen ();
12253   ;
12254   return 0;
12255 }
12256 _ACEOF
12257 if ac_fn_c_try_link "$LINENO"; then :
12258   ac_cv_lib_dl_dlopen=yes
12259 else
12260   ac_cv_lib_dl_dlopen=no
12261 fi
12262 rm -f core conftest.err conftest.$ac_objext \
12263     conftest$ac_exeext conftest.$ac_ext
12264 LIBS=$ac_check_lib_save_LIBS
12265 fi
12266 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
12267 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
12268 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
12269   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
12270 else
12271   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
12272 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
12273 if test "${ac_cv_lib_svld_dlopen+set}" = set; then :
12274   $as_echo_n "(cached) " >&6
12275 else
12276   ac_check_lib_save_LIBS=$LIBS
12277 LIBS="-lsvld  $LIBS"
12278 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12279 /* end confdefs.h.  */
12280
12281 /* Override any GCC internal prototype to avoid an error.
12282    Use char because int might match the return type of a GCC
12283    builtin and then its argument prototype would still apply.  */
12284 #ifdef __cplusplus
12285 extern "C"
12286 #endif
12287 char dlopen ();
12288 int
12289 main ()
12290 {
12291 return dlopen ();
12292   ;
12293   return 0;
12294 }
12295 _ACEOF
12296 if ac_fn_c_try_link "$LINENO"; then :
12297   ac_cv_lib_svld_dlopen=yes
12298 else
12299   ac_cv_lib_svld_dlopen=no
12300 fi
12301 rm -f core conftest.err conftest.$ac_objext \
12302     conftest$ac_exeext conftest.$ac_ext
12303 LIBS=$ac_check_lib_save_LIBS
12304 fi
12305 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
12306 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
12307 if test "x$ac_cv_lib_svld_dlopen" = x""yes; then :
12308   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
12309 else
12310   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
12311 $as_echo_n "checking for dld_link in -ldld... " >&6; }
12312 if test "${ac_cv_lib_dld_dld_link+set}" = set; then :
12313   $as_echo_n "(cached) " >&6
12314 else
12315   ac_check_lib_save_LIBS=$LIBS
12316 LIBS="-ldld  $LIBS"
12317 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12318 /* end confdefs.h.  */
12319
12320 /* Override any GCC internal prototype to avoid an error.
12321    Use char because int might match the return type of a GCC
12322    builtin and then its argument prototype would still apply.  */
12323 #ifdef __cplusplus
12324 extern "C"
12325 #endif
12326 char dld_link ();
12327 int
12328 main ()
12329 {
12330 return dld_link ();
12331   ;
12332   return 0;
12333 }
12334 _ACEOF
12335 if ac_fn_c_try_link "$LINENO"; then :
12336   ac_cv_lib_dld_dld_link=yes
12337 else
12338   ac_cv_lib_dld_dld_link=no
12339 fi
12340 rm -f core conftest.err conftest.$ac_objext \
12341     conftest$ac_exeext conftest.$ac_ext
12342 LIBS=$ac_check_lib_save_LIBS
12343 fi
12344 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
12345 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
12346 if test "x$ac_cv_lib_dld_dld_link" = x""yes; then :
12347   lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
12348 fi
12349
12350
12351 fi
12352
12353
12354 fi
12355
12356
12357 fi
12358
12359
12360 fi
12361
12362
12363 fi
12364
12365     ;;
12366   esac
12367
12368   if test "x$lt_cv_dlopen" != xno; then
12369     enable_dlopen=yes
12370   else
12371     enable_dlopen=no
12372   fi
12373
12374   case $lt_cv_dlopen in
12375   dlopen)
12376     save_CPPFLAGS="$CPPFLAGS"
12377     test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
12378
12379     save_LDFLAGS="$LDFLAGS"
12380     wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
12381
12382     save_LIBS="$LIBS"
12383     LIBS="$lt_cv_dlopen_libs $LIBS"
12384
12385     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
12386 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
12387 if test "${lt_cv_dlopen_self+set}" = set; then :
12388   $as_echo_n "(cached) " >&6
12389 else
12390           if test "$cross_compiling" = yes; then :
12391   lt_cv_dlopen_self=cross
12392 else
12393   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12394   lt_status=$lt_dlunknown
12395   cat > conftest.$ac_ext <<_LT_EOF
12396 #line 12396 "configure"
12397 #include "confdefs.h"
12398
12399 #if HAVE_DLFCN_H
12400 #include <dlfcn.h>
12401 #endif
12402
12403 #include <stdio.h>
12404
12405 #ifdef RTLD_GLOBAL
12406 #  define LT_DLGLOBAL           RTLD_GLOBAL
12407 #else
12408 #  ifdef DL_GLOBAL
12409 #    define LT_DLGLOBAL         DL_GLOBAL
12410 #  else
12411 #    define LT_DLGLOBAL         0
12412 #  endif
12413 #endif
12414
12415 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12416    find out it does not work in some platform. */
12417 #ifndef LT_DLLAZY_OR_NOW
12418 #  ifdef RTLD_LAZY
12419 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
12420 #  else
12421 #    ifdef DL_LAZY
12422 #      define LT_DLLAZY_OR_NOW          DL_LAZY
12423 #    else
12424 #      ifdef RTLD_NOW
12425 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
12426 #      else
12427 #        ifdef DL_NOW
12428 #          define LT_DLLAZY_OR_NOW      DL_NOW
12429 #        else
12430 #          define LT_DLLAZY_OR_NOW      0
12431 #        endif
12432 #      endif
12433 #    endif
12434 #  endif
12435 #endif
12436
12437 void fnord() { int i=42;}
12438 int main ()
12439 {
12440   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12441   int status = $lt_dlunknown;
12442
12443   if (self)
12444     {
12445       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
12446       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12447       /* dlclose (self); */
12448     }
12449   else
12450     puts (dlerror ());
12451
12452   return status;
12453 }
12454 _LT_EOF
12455   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12456   (eval $ac_link) 2>&5
12457   ac_status=$?
12458   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12459   test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
12460     (./conftest; exit; ) >&5 2>/dev/null
12461     lt_status=$?
12462     case x$lt_status in
12463       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
12464       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
12465       x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
12466     esac
12467   else :
12468     # compilation failed
12469     lt_cv_dlopen_self=no
12470   fi
12471 fi
12472 rm -fr conftest*
12473
12474
12475 fi
12476 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
12477 $as_echo "$lt_cv_dlopen_self" >&6; }
12478
12479     if test "x$lt_cv_dlopen_self" = xyes; then
12480       wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
12481       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
12482 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
12483 if test "${lt_cv_dlopen_self_static+set}" = set; then :
12484   $as_echo_n "(cached) " >&6
12485 else
12486           if test "$cross_compiling" = yes; then :
12487   lt_cv_dlopen_self_static=cross
12488 else
12489   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12490   lt_status=$lt_dlunknown
12491   cat > conftest.$ac_ext <<_LT_EOF
12492 #line 12492 "configure"
12493 #include "confdefs.h"
12494
12495 #if HAVE_DLFCN_H
12496 #include <dlfcn.h>
12497 #endif
12498
12499 #include <stdio.h>
12500
12501 #ifdef RTLD_GLOBAL
12502 #  define LT_DLGLOBAL           RTLD_GLOBAL
12503 #else
12504 #  ifdef DL_GLOBAL
12505 #    define LT_DLGLOBAL         DL_GLOBAL
12506 #  else
12507 #    define LT_DLGLOBAL         0
12508 #  endif
12509 #endif
12510
12511 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12512    find out it does not work in some platform. */
12513 #ifndef LT_DLLAZY_OR_NOW
12514 #  ifdef RTLD_LAZY
12515 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
12516 #  else
12517 #    ifdef DL_LAZY
12518 #      define LT_DLLAZY_OR_NOW          DL_LAZY
12519 #    else
12520 #      ifdef RTLD_NOW
12521 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
12522 #      else
12523 #        ifdef DL_NOW
12524 #          define LT_DLLAZY_OR_NOW      DL_NOW
12525 #        else
12526 #          define LT_DLLAZY_OR_NOW      0
12527 #        endif
12528 #      endif
12529 #    endif
12530 #  endif
12531 #endif
12532
12533 void fnord() { int i=42;}
12534 int main ()
12535 {
12536   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12537   int status = $lt_dlunknown;
12538
12539   if (self)
12540     {
12541       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
12542       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12543       /* dlclose (self); */
12544     }
12545   else
12546     puts (dlerror ());
12547
12548   return status;
12549 }
12550 _LT_EOF
12551   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12552   (eval $ac_link) 2>&5
12553   ac_status=$?
12554   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12555   test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
12556     (./conftest; exit; ) >&5 2>/dev/null
12557     lt_status=$?
12558     case x$lt_status in
12559       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
12560       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
12561       x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
12562     esac
12563   else :
12564     # compilation failed
12565     lt_cv_dlopen_self_static=no
12566   fi
12567 fi
12568 rm -fr conftest*
12569
12570
12571 fi
12572 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
12573 $as_echo "$lt_cv_dlopen_self_static" >&6; }
12574     fi
12575
12576     CPPFLAGS="$save_CPPFLAGS"
12577     LDFLAGS="$save_LDFLAGS"
12578     LIBS="$save_LIBS"
12579     ;;
12580   esac
12581
12582   case $lt_cv_dlopen_self in
12583   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
12584   *) enable_dlopen_self=unknown ;;
12585   esac
12586
12587   case $lt_cv_dlopen_self_static in
12588   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
12589   *) enable_dlopen_self_static=unknown ;;
12590   esac
12591 fi
12592
12593
12594
12595
12596
12597
12598
12599
12600
12601
12602
12603
12604
12605
12606
12607
12608
12609 striplib=
12610 old_striplib=
12611 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
12612 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
12613 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
12614   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
12615   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
12616   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12617 $as_echo "yes" >&6; }
12618 else
12619 # FIXME - insert some real tests, host_os isn't really good enough
12620   case $host_os in
12621   darwin*)
12622     if test -n "$STRIP" ; then
12623       striplib="$STRIP -x"
12624       old_striplib="$STRIP -S"
12625       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12626 $as_echo "yes" >&6; }
12627     else
12628       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12629 $as_echo "no" >&6; }
12630     fi
12631     ;;
12632   *)
12633     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12634 $as_echo "no" >&6; }
12635     ;;
12636   esac
12637 fi
12638
12639
12640
12641
12642
12643
12644
12645
12646
12647
12648
12649
12650   # Report which library types will actually be built
12651   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
12652 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
12653   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
12654 $as_echo "$can_build_shared" >&6; }
12655
12656   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
12657 $as_echo_n "checking whether to build shared libraries... " >&6; }
12658   test "$can_build_shared" = "no" && enable_shared=no
12659
12660   # On AIX, shared libraries and static libraries use the same namespace, and
12661   # are all built from PIC.
12662   case $host_os in
12663   aix3*)
12664     test "$enable_shared" = yes && enable_static=no
12665     if test -n "$RANLIB"; then
12666       archive_cmds="$archive_cmds~\$RANLIB \$lib"
12667       postinstall_cmds='$RANLIB $lib'
12668     fi
12669     ;;
12670
12671   aix[4-9]*)
12672     if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
12673       test "$enable_shared" = yes && enable_static=no
12674     fi
12675     ;;
12676   esac
12677   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
12678 $as_echo "$enable_shared" >&6; }
12679
12680   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
12681 $as_echo_n "checking whether to build static libraries... " >&6; }
12682   # Make sure either enable_shared or enable_static is yes.
12683   test "$enable_shared" = yes || enable_static=yes
12684   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
12685 $as_echo "$enable_static" >&6; }
12686
12687
12688
12689
12690 fi
12691 ac_ext=c
12692 ac_cpp='$CPP $CPPFLAGS'
12693 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12694 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12695 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12696
12697 CC="$lt_save_CC"
12698
12699
12700 ac_ext=cpp
12701 ac_cpp='$CXXCPP $CPPFLAGS'
12702 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12703 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12704 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12705
12706 archive_cmds_need_lc_CXX=no
12707 allow_undefined_flag_CXX=
12708 always_export_symbols_CXX=no
12709 archive_expsym_cmds_CXX=
12710 compiler_needs_object_CXX=no
12711 export_dynamic_flag_spec_CXX=
12712 hardcode_direct_CXX=no
12713 hardcode_direct_absolute_CXX=no
12714 hardcode_libdir_flag_spec_CXX=
12715 hardcode_libdir_flag_spec_ld_CXX=
12716 hardcode_libdir_separator_CXX=
12717 hardcode_minus_L_CXX=no
12718 hardcode_shlibpath_var_CXX=unsupported
12719 hardcode_automatic_CXX=no
12720 inherit_rpath_CXX=no
12721 module_cmds_CXX=
12722 module_expsym_cmds_CXX=
12723 link_all_deplibs_CXX=unknown
12724 old_archive_cmds_CXX=$old_archive_cmds
12725 no_undefined_flag_CXX=
12726 whole_archive_flag_spec_CXX=
12727 enable_shared_with_static_runtimes_CXX=no
12728
12729 # Source file extension for C++ test sources.
12730 ac_ext=cpp
12731
12732 # Object file extension for compiled C++ test sources.
12733 objext=o
12734 objext_CXX=$objext
12735
12736 # No sense in running all these tests if we already determined that
12737 # the CXX compiler isn't working.  Some variables (like enable_shared)
12738 # are currently assumed to apply to all compilers on this platform,
12739 # and will be corrupted by setting them based on a non-working compiler.
12740 if test "$_lt_caught_CXX_error" != yes; then
12741   # Code to be used in simple compile tests
12742   lt_simple_compile_test_code="int some_variable = 0;"
12743
12744   # Code to be used in simple link tests
12745   lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
12746
12747   # ltmain only uses $CC for tagged configurations so make sure $CC is set.
12748
12749
12750
12751
12752
12753
12754 # If no C compiler was specified, use CC.
12755 LTCC=${LTCC-"$CC"}
12756
12757 # If no C compiler flags were specified, use CFLAGS.
12758 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
12759
12760 # Allow CC to be a program name with arguments.
12761 compiler=$CC
12762
12763
12764   # save warnings/boilerplate of simple test code
12765   ac_outfile=conftest.$ac_objext
12766 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
12767 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
12768 _lt_compiler_boilerplate=`cat conftest.err`
12769 $RM conftest*
12770
12771   ac_outfile=conftest.$ac_objext
12772 echo "$lt_simple_link_test_code" >conftest.$ac_ext
12773 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
12774 _lt_linker_boilerplate=`cat conftest.err`
12775 $RM -r conftest*
12776
12777
12778   # Allow CC to be a program name with arguments.
12779   lt_save_CC=$CC
12780   lt_save_LD=$LD
12781   lt_save_GCC=$GCC
12782   GCC=$GXX
12783   lt_save_with_gnu_ld=$with_gnu_ld
12784   lt_save_path_LD=$lt_cv_path_LD
12785   if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
12786     lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
12787   else
12788     $as_unset lt_cv_prog_gnu_ld
12789   fi
12790   if test -n "${lt_cv_path_LDCXX+set}"; then
12791     lt_cv_path_LD=$lt_cv_path_LDCXX
12792   else
12793     $as_unset lt_cv_path_LD
12794   fi
12795   test -z "${LDCXX+set}" || LD=$LDCXX
12796   CC=${CXX-"c++"}
12797   compiler=$CC
12798   compiler_CXX=$CC
12799   for cc_temp in $compiler""; do
12800   case $cc_temp in
12801     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
12802     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
12803     \-*) ;;
12804     *) break;;
12805   esac
12806 done
12807 cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
12808
12809
12810   if test -n "$compiler"; then
12811     # We don't want -fno-exception when compiling C++ code, so set the
12812     # no_builtin_flag separately
12813     if test "$GXX" = yes; then
12814       lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
12815     else
12816       lt_prog_compiler_no_builtin_flag_CXX=
12817     fi
12818
12819     if test "$GXX" = yes; then
12820       # Set up default GNU C++ configuration
12821
12822
12823
12824 # Check whether --with-gnu-ld was given.
12825 if test "${with_gnu_ld+set}" = set; then :
12826   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
12827 else
12828   with_gnu_ld=no
12829 fi
12830
12831 ac_prog=ld
12832 if test "$GCC" = yes; then
12833   # Check if gcc -print-prog-name=ld gives a path.
12834   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
12835 $as_echo_n "checking for ld used by $CC... " >&6; }
12836   case $host in
12837   *-*-mingw*)
12838     # gcc leaves a trailing carriage return which upsets mingw
12839     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
12840   *)
12841     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
12842   esac
12843   case $ac_prog in
12844     # Accept absolute paths.
12845     [\\/]* | ?:[\\/]*)
12846       re_direlt='/[^/][^/]*/\.\./'
12847       # Canonicalize the pathname of ld
12848       ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
12849       while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
12850         ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
12851       done
12852       test -z "$LD" && LD="$ac_prog"
12853       ;;
12854   "")
12855     # If it fails, then pretend we aren't using GCC.
12856     ac_prog=ld
12857     ;;
12858   *)
12859     # If it is relative, then search for the first ld in PATH.
12860     with_gnu_ld=unknown
12861     ;;
12862   esac
12863 elif test "$with_gnu_ld" = yes; then
12864   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
12865 $as_echo_n "checking for GNU ld... " >&6; }
12866 else
12867   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
12868 $as_echo_n "checking for non-GNU ld... " >&6; }
12869 fi
12870 if test "${lt_cv_path_LD+set}" = set; then :
12871   $as_echo_n "(cached) " >&6
12872 else
12873   if test -z "$LD"; then
12874   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
12875   for ac_dir in $PATH; do
12876     IFS="$lt_save_ifs"
12877     test -z "$ac_dir" && ac_dir=.
12878     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
12879       lt_cv_path_LD="$ac_dir/$ac_prog"
12880       # Check to see if the program is GNU ld.  I'd rather use --version,
12881       # but apparently some variants of GNU ld only accept -v.
12882       # Break only if it was the GNU/non-GNU ld that we prefer.
12883       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
12884       *GNU* | *'with BFD'*)
12885         test "$with_gnu_ld" != no && break
12886         ;;
12887       *)
12888         test "$with_gnu_ld" != yes && break
12889         ;;
12890       esac
12891     fi
12892   done
12893   IFS="$lt_save_ifs"
12894 else
12895   lt_cv_path_LD="$LD" # Let the user override the test with a path.
12896 fi
12897 fi
12898
12899 LD="$lt_cv_path_LD"
12900 if test -n "$LD"; then
12901   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
12902 $as_echo "$LD" >&6; }
12903 else
12904   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12905 $as_echo "no" >&6; }
12906 fi
12907 test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
12908 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
12909 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
12910 if test "${lt_cv_prog_gnu_ld+set}" = set; then :
12911   $as_echo_n "(cached) " >&6
12912 else
12913   # I'd rather use --version here, but apparently some GNU lds only accept -v.
12914 case `$LD -v 2>&1 </dev/null` in
12915 *GNU* | *'with BFD'*)
12916   lt_cv_prog_gnu_ld=yes
12917   ;;
12918 *)
12919   lt_cv_prog_gnu_ld=no
12920   ;;
12921 esac
12922 fi
12923 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
12924 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
12925 with_gnu_ld=$lt_cv_prog_gnu_ld
12926
12927
12928
12929
12930
12931
12932
12933       # Check if GNU C++ uses GNU ld as the underlying linker, since the
12934       # archiving commands below assume that GNU ld is being used.
12935       if test "$with_gnu_ld" = yes; then
12936         archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
12937         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'
12938
12939         hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12940         export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12941
12942         # If archive_cmds runs LD, not CC, wlarc should be empty
12943         # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
12944         #     investigate it a little bit more. (MM)
12945         wlarc='${wl}'
12946
12947         # ancient GNU ld didn't support --whole-archive et. al.
12948         if eval "`$CC -print-prog-name=ld` --help 2>&1" |
12949           $GREP 'no-whole-archive' > /dev/null; then
12950           whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
12951         else
12952           whole_archive_flag_spec_CXX=
12953         fi
12954       else
12955         with_gnu_ld=no
12956         wlarc=
12957
12958         # A generic and very simple default shared library creation
12959         # command for GNU C++ for the case where it uses the native
12960         # linker, instead of GNU ld.  If possible, this setting should
12961         # overridden to take advantage of the native linker features on
12962         # the platform it is being used on.
12963         archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
12964       fi
12965
12966       # Commands to make compiler produce verbose output that lists
12967       # what "hidden" libraries, object files and flags are used when
12968       # linking a shared library.
12969       output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
12970
12971     else
12972       GXX=no
12973       with_gnu_ld=no
12974       wlarc=
12975     fi
12976
12977     # PORTME: fill in a description of your system's C++ link characteristics
12978     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
12979 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
12980     ld_shlibs_CXX=yes
12981     case $host_os in
12982       aix3*)
12983         # FIXME: insert proper C++ library support
12984         ld_shlibs_CXX=no
12985         ;;
12986       aix[4-9]*)
12987         if test "$host_cpu" = ia64; then
12988           # On IA64, the linker does run time linking by default, so we don't
12989           # have to do anything special.
12990           aix_use_runtimelinking=no
12991           exp_sym_flag='-Bexport'
12992           no_entry_flag=""
12993         else
12994           aix_use_runtimelinking=no
12995
12996           # Test if we are trying to use run time linking or normal
12997           # AIX style linking. If -brtl is somewhere in LDFLAGS, we
12998           # need to do runtime linking.
12999           case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
13000             for ld_flag in $LDFLAGS; do
13001               case $ld_flag in
13002               *-brtl*)
13003                 aix_use_runtimelinking=yes
13004                 break
13005                 ;;
13006               esac
13007             done
13008             ;;
13009           esac
13010
13011           exp_sym_flag='-bexport'
13012           no_entry_flag='-bnoentry'
13013         fi
13014
13015         # When large executables or shared objects are built, AIX ld can
13016         # have problems creating the table of contents.  If linking a library
13017         # or program results in "error TOC overflow" add -mminimal-toc to
13018         # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
13019         # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
13020
13021         archive_cmds_CXX=''
13022         hardcode_direct_CXX=yes
13023         hardcode_direct_absolute_CXX=yes
13024         hardcode_libdir_separator_CXX=':'
13025         link_all_deplibs_CXX=yes
13026         file_list_spec_CXX='${wl}-f,'
13027
13028         if test "$GXX" = yes; then
13029           case $host_os in aix4.[012]|aix4.[012].*)
13030           # We only want to do this on AIX 4.2 and lower, the check
13031           # below for broken collect2 doesn't work under 4.3+
13032           collect2name=`${CC} -print-prog-name=collect2`
13033           if test -f "$collect2name" &&
13034              strings "$collect2name" | $GREP resolve_lib_name >/dev/null
13035           then
13036             # We have reworked collect2
13037             :
13038           else
13039             # We have old collect2
13040             hardcode_direct_CXX=unsupported
13041             # It fails to find uninstalled libraries when the uninstalled
13042             # path is not listed in the libpath.  Setting hardcode_minus_L
13043             # to unsupported forces relinking
13044             hardcode_minus_L_CXX=yes
13045             hardcode_libdir_flag_spec_CXX='-L$libdir'
13046             hardcode_libdir_separator_CXX=
13047           fi
13048           esac
13049           shared_flag='-shared'
13050           if test "$aix_use_runtimelinking" = yes; then
13051             shared_flag="$shared_flag "'${wl}-G'
13052           fi
13053         else
13054           # not using gcc
13055           if test "$host_cpu" = ia64; then
13056           # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
13057           # chokes on -Wl,-G. The following line is correct:
13058           shared_flag='-G'
13059           else
13060             if test "$aix_use_runtimelinking" = yes; then
13061               shared_flag='${wl}-G'
13062             else
13063               shared_flag='${wl}-bM:SRE'
13064             fi
13065           fi
13066         fi
13067
13068         export_dynamic_flag_spec_CXX='${wl}-bexpall'
13069         # It seems that -bexpall does not export symbols beginning with
13070         # underscore (_), so it is better to generate a list of symbols to
13071         # export.
13072         always_export_symbols_CXX=yes
13073         if test "$aix_use_runtimelinking" = yes; then
13074           # Warning - without using the other runtime loading flags (-brtl),
13075           # -berok will link without error, but may produce a broken library.
13076           allow_undefined_flag_CXX='-berok'
13077           # Determine the default libpath from the value encoded in an empty
13078           # executable.
13079           cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13080 /* end confdefs.h.  */
13081
13082 int
13083 main ()
13084 {
13085
13086   ;
13087   return 0;
13088 }
13089 _ACEOF
13090 if ac_fn_cxx_try_link "$LINENO"; then :
13091
13092 lt_aix_libpath_sed='
13093     /Import File Strings/,/^$/ {
13094         /^0/ {
13095             s/^0  *\(.*\)$/\1/
13096             p
13097         }
13098     }'
13099 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13100 # Check for a 64-bit object if we didn't find anything.
13101 if test -z "$aix_libpath"; then
13102   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13103 fi
13104 fi
13105 rm -f core conftest.err conftest.$ac_objext \
13106     conftest$ac_exeext conftest.$ac_ext
13107 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
13108
13109           hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
13110
13111           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"
13112         else
13113           if test "$host_cpu" = ia64; then
13114             hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
13115             allow_undefined_flag_CXX="-z nodefs"
13116             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"
13117           else
13118             # Determine the default libpath from the value encoded in an
13119             # empty executable.
13120             cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13121 /* end confdefs.h.  */
13122
13123 int
13124 main ()
13125 {
13126
13127   ;
13128   return 0;
13129 }
13130 _ACEOF
13131 if ac_fn_cxx_try_link "$LINENO"; then :
13132
13133 lt_aix_libpath_sed='
13134     /Import File Strings/,/^$/ {
13135         /^0/ {
13136             s/^0  *\(.*\)$/\1/
13137             p
13138         }
13139     }'
13140 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13141 # Check for a 64-bit object if we didn't find anything.
13142 if test -z "$aix_libpath"; then
13143   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13144 fi
13145 fi
13146 rm -f core conftest.err conftest.$ac_objext \
13147     conftest$ac_exeext conftest.$ac_ext
13148 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
13149
13150             hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
13151             # Warning - without using the other run time loading flags,
13152             # -berok will link without error, but may produce a broken library.
13153             no_undefined_flag_CXX=' ${wl}-bernotok'
13154             allow_undefined_flag_CXX=' ${wl}-berok'
13155             # Exported symbols can be pulled into shared objects from archives
13156             whole_archive_flag_spec_CXX='$convenience'
13157             archive_cmds_need_lc_CXX=yes
13158             # This is similar to how AIX traditionally builds its shared
13159             # libraries.
13160             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'
13161           fi
13162         fi
13163         ;;
13164
13165       beos*)
13166         if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
13167           allow_undefined_flag_CXX=unsupported
13168           # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
13169           # support --undefined.  This deserves some investigation.  FIXME
13170           archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13171         else
13172           ld_shlibs_CXX=no
13173         fi
13174         ;;
13175
13176       chorus*)
13177         case $cc_basename in
13178           *)
13179           # FIXME: insert proper C++ library support
13180           ld_shlibs_CXX=no
13181           ;;
13182         esac
13183         ;;
13184
13185       cygwin* | mingw* | pw32* | cegcc*)
13186         # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
13187         # as there is no search path for DLLs.
13188         hardcode_libdir_flag_spec_CXX='-L$libdir'
13189         allow_undefined_flag_CXX=unsupported
13190         always_export_symbols_CXX=no
13191         enable_shared_with_static_runtimes_CXX=yes
13192
13193         if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
13194           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'
13195           # If the export-symbols file already is a .def file (1st line
13196           # is EXPORTS), use it as is; otherwise, prepend...
13197           archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
13198             cp $export_symbols $output_objdir/$soname.def;
13199           else
13200             echo EXPORTS > $output_objdir/$soname.def;
13201             cat $export_symbols >> $output_objdir/$soname.def;
13202           fi~
13203           $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'
13204         else
13205           ld_shlibs_CXX=no
13206         fi
13207         ;;
13208       darwin* | rhapsody*)
13209
13210
13211   archive_cmds_need_lc_CXX=no
13212   hardcode_direct_CXX=no
13213   hardcode_automatic_CXX=yes
13214   hardcode_shlibpath_var_CXX=unsupported
13215   whole_archive_flag_spec_CXX=''
13216   link_all_deplibs_CXX=yes
13217   allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
13218   case $cc_basename in
13219      ifort*) _lt_dar_can_shared=yes ;;
13220      *) _lt_dar_can_shared=$GCC ;;
13221   esac
13222   if test "$_lt_dar_can_shared" = "yes"; then
13223     output_verbose_link_cmd=echo
13224     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}"
13225     module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
13226     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}"
13227     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}"
13228        if test "$lt_cv_apple_cc_single_mod" != "yes"; then
13229       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}"
13230       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}"
13231     fi
13232
13233   else
13234   ld_shlibs_CXX=no
13235   fi
13236
13237         ;;
13238
13239       dgux*)
13240         case $cc_basename in
13241           ec++*)
13242             # FIXME: insert proper C++ library support
13243             ld_shlibs_CXX=no
13244             ;;
13245           ghcx*)
13246             # Green Hills C++ Compiler
13247             # FIXME: insert proper C++ library support
13248             ld_shlibs_CXX=no
13249             ;;
13250           *)
13251             # FIXME: insert proper C++ library support
13252             ld_shlibs_CXX=no
13253             ;;
13254         esac
13255         ;;
13256
13257       freebsd[12]*)
13258         # C++ shared libraries reported to be fairly broken before
13259         # switch to ELF
13260         ld_shlibs_CXX=no
13261         ;;
13262
13263       freebsd-elf*)
13264         archive_cmds_need_lc_CXX=no
13265         ;;
13266
13267       freebsd* | dragonfly*)
13268         # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
13269         # conventions
13270         ld_shlibs_CXX=yes
13271         ;;
13272
13273       gnu*)
13274         ;;
13275
13276       hpux9*)
13277         hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
13278         hardcode_libdir_separator_CXX=:
13279         export_dynamic_flag_spec_CXX='${wl}-E'
13280         hardcode_direct_CXX=yes
13281         hardcode_minus_L_CXX=yes # Not in the search PATH,
13282                                              # but as the default
13283                                              # location of the library.
13284
13285         case $cc_basename in
13286           CC*)
13287             # FIXME: insert proper C++ library support
13288             ld_shlibs_CXX=no
13289             ;;
13290           aCC*)
13291             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'
13292             # Commands to make compiler produce verbose output that lists
13293             # what "hidden" libraries, object files and flags are used when
13294             # linking a shared library.
13295             #
13296             # There doesn't appear to be a way to prevent this compiler from
13297             # explicitly linking system object files so we need to strip them
13298             # from the output so that they don't get included in the library
13299             # dependencies.
13300             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'
13301             ;;
13302           *)
13303             if test "$GXX" = yes; then
13304               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'
13305             else
13306               # FIXME: insert proper C++ library support
13307               ld_shlibs_CXX=no
13308             fi
13309             ;;
13310         esac
13311         ;;
13312
13313       hpux10*|hpux11*)
13314         if test $with_gnu_ld = no; then
13315           hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
13316           hardcode_libdir_separator_CXX=:
13317
13318           case $host_cpu in
13319             hppa*64*|ia64*)
13320               ;;
13321             *)
13322               export_dynamic_flag_spec_CXX='${wl}-E'
13323               ;;
13324           esac
13325         fi
13326         case $host_cpu in
13327           hppa*64*|ia64*)
13328             hardcode_direct_CXX=no
13329             hardcode_shlibpath_var_CXX=no
13330             ;;
13331           *)
13332             hardcode_direct_CXX=yes
13333             hardcode_direct_absolute_CXX=yes
13334             hardcode_minus_L_CXX=yes # Not in the search PATH,
13335                                                  # but as the default
13336                                                  # location of the library.
13337             ;;
13338         esac
13339
13340         case $cc_basename in
13341           CC*)
13342             # FIXME: insert proper C++ library support
13343             ld_shlibs_CXX=no
13344             ;;
13345           aCC*)
13346             case $host_cpu in
13347               hppa*64*)
13348                 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13349                 ;;
13350               ia64*)
13351                 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13352                 ;;
13353               *)
13354                 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13355                 ;;
13356             esac
13357             # Commands to make compiler produce verbose output that lists
13358             # what "hidden" libraries, object files and flags are used when
13359             # linking a shared library.
13360             #
13361             # There doesn't appear to be a way to prevent this compiler from
13362             # explicitly linking system object files so we need to strip them
13363             # from the output so that they don't get included in the library
13364             # dependencies.
13365             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'
13366             ;;
13367           *)
13368             if test "$GXX" = yes; then
13369               if test $with_gnu_ld = no; then
13370                 case $host_cpu in
13371                   hppa*64*)
13372                     archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13373                     ;;
13374                   ia64*)
13375                     archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13376                     ;;
13377                   *)
13378                     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'
13379                     ;;
13380                 esac
13381               fi
13382             else
13383               # FIXME: insert proper C++ library support
13384               ld_shlibs_CXX=no
13385             fi
13386             ;;
13387         esac
13388         ;;
13389
13390       interix[3-9]*)
13391         hardcode_direct_CXX=no
13392         hardcode_shlibpath_var_CXX=no
13393         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13394         export_dynamic_flag_spec_CXX='${wl}-E'
13395         # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
13396         # Instead, shared libraries are loaded at an image base (0x10000000 by
13397         # default) and relocated if they conflict, which is a slow very memory
13398         # consuming and fragmenting process.  To avoid this, we pick a random,
13399         # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
13400         # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
13401         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'
13402         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'
13403         ;;
13404       irix5* | irix6*)
13405         case $cc_basename in
13406           CC*)
13407             # SGI C++
13408             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'
13409
13410             # Archives containing C++ object files must be created using
13411             # "CC -ar", where "CC" is the IRIX C++ compiler.  This is
13412             # necessary to make sure instantiated templates are included
13413             # in the archive.
13414             old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
13415             ;;
13416           *)
13417             if test "$GXX" = yes; then
13418               if test "$with_gnu_ld" = no; then
13419                 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'
13420               else
13421                 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'
13422               fi
13423             fi
13424             link_all_deplibs_CXX=yes
13425             ;;
13426         esac
13427         hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13428         hardcode_libdir_separator_CXX=:
13429         inherit_rpath_CXX=yes
13430         ;;
13431
13432       linux* | k*bsd*-gnu)
13433         case $cc_basename in
13434           KCC*)
13435             # Kuck and Associates, Inc. (KAI) C++ Compiler
13436
13437             # KCC will only create a shared library if the output file
13438             # ends with ".so" (or ".sl" for HP-UX), so rename the library
13439             # to its proper name (with version) after linking.
13440             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'
13441             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'
13442             # Commands to make compiler produce verbose output that lists
13443             # what "hidden" libraries, object files and flags are used when
13444             # linking a shared library.
13445             #
13446             # There doesn't appear to be a way to prevent this compiler from
13447             # explicitly linking system object files so we need to strip them
13448             # from the output so that they don't get included in the library
13449             # dependencies.
13450             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'
13451
13452             hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13453             export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13454
13455             # Archives containing C++ object files must be created using
13456             # "CC -Bstatic", where "CC" is the KAI C++ compiler.
13457             old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
13458             ;;
13459           icpc* | ecpc* )
13460             # Intel C++
13461             with_gnu_ld=yes
13462             # version 8.0 and above of icpc choke on multiply defined symbols
13463             # if we add $predep_objects and $postdep_objects, however 7.1 and
13464             # earlier do not add the objects themselves.
13465             case `$CC -V 2>&1` in
13466               *"Version 7."*)
13467                 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
13468                 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'
13469                 ;;
13470               *)  # Version 8.0 or newer
13471                 tmp_idyn=
13472                 case $host_cpu in
13473                   ia64*) tmp_idyn=' -i_dynamic';;
13474                 esac
13475                 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13476                 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'
13477                 ;;
13478             esac
13479             archive_cmds_need_lc_CXX=no
13480             hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13481             export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13482             whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
13483             ;;
13484           pgCC* | pgcpp*)
13485             # Portland Group C++ compiler
13486             case `$CC -V` in
13487             *pgCC\ [1-5]* | *pgcpp\ [1-5]*)
13488               prelink_cmds_CXX='tpldir=Template.dir~
13489                 rm -rf $tpldir~
13490                 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
13491                 compile_command="$compile_command `find $tpldir -name \*.o | $NL2SP`"'
13492               old_archive_cmds_CXX='tpldir=Template.dir~
13493                 rm -rf $tpldir~
13494                 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
13495                 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | $NL2SP`~
13496                 $RANLIB $oldlib'
13497               archive_cmds_CXX='tpldir=Template.dir~
13498                 rm -rf $tpldir~
13499                 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
13500                 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
13501               archive_expsym_cmds_CXX='tpldir=Template.dir~
13502                 rm -rf $tpldir~
13503                 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
13504                 $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'
13505               ;;
13506             *) # Version 6 will use weak symbols
13507               archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
13508               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'
13509               ;;
13510             esac
13511
13512             hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
13513             export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13514             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'
13515             ;;
13516           cxx*)
13517             # Compaq C++
13518             archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
13519             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'
13520
13521             runpath_var=LD_RUN_PATH
13522             hardcode_libdir_flag_spec_CXX='-rpath $libdir'
13523             hardcode_libdir_separator_CXX=:
13524
13525             # Commands to make compiler produce verbose output that lists
13526             # what "hidden" libraries, object files and flags are used when
13527             # linking a shared library.
13528             #
13529             # There doesn't appear to be a way to prevent this compiler from
13530             # explicitly linking system object files so we need to strip them
13531             # from the output so that they don't get included in the library
13532             # dependencies.
13533             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'
13534             ;;
13535           xl*)
13536             # IBM XL 8.0 on PPC, with GNU ld
13537             hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13538             export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13539             archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13540             if test "x$supports_anon_versioning" = xyes; then
13541               archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
13542                 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
13543                 echo "local: *; };" >> $output_objdir/$libname.ver~
13544                 $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
13545             fi
13546             ;;
13547           *)
13548             case `$CC -V 2>&1 | sed 5q` in
13549             *Sun\ C*)
13550               # Sun C++ 5.9
13551               no_undefined_flag_CXX=' -zdefs'
13552               archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13553               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'
13554               hardcode_libdir_flag_spec_CXX='-R$libdir'
13555               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'
13556               compiler_needs_object_CXX=yes
13557
13558               # Not sure whether something based on
13559               # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
13560               # would be better.
13561               output_verbose_link_cmd='echo'
13562
13563               # Archives containing C++ object files must be created using
13564               # "CC -xar", where "CC" is the Sun C++ compiler.  This is
13565               # necessary to make sure instantiated templates are included
13566               # in the archive.
13567               old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
13568               ;;
13569             esac
13570             ;;
13571         esac
13572         ;;
13573
13574       lynxos*)
13575         # FIXME: insert proper C++ library support
13576         ld_shlibs_CXX=no
13577         ;;
13578
13579       m88k*)
13580         # FIXME: insert proper C++ library support
13581         ld_shlibs_CXX=no
13582         ;;
13583
13584       mvs*)
13585         case $cc_basename in
13586           cxx*)
13587             # FIXME: insert proper C++ library support
13588             ld_shlibs_CXX=no
13589             ;;
13590           *)
13591             # FIXME: insert proper C++ library support
13592             ld_shlibs_CXX=no
13593             ;;
13594         esac
13595         ;;
13596
13597       netbsd*)
13598         if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
13599           archive_cmds_CXX='$LD -Bshareable  -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
13600           wlarc=
13601           hardcode_libdir_flag_spec_CXX='-R$libdir'
13602           hardcode_direct_CXX=yes
13603           hardcode_shlibpath_var_CXX=no
13604         fi
13605         # Workaround some broken pre-1.5 toolchains
13606         output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
13607         ;;
13608
13609       *nto* | *qnx*)
13610         ld_shlibs_CXX=yes
13611         ;;
13612
13613       openbsd2*)
13614         # C++ shared libraries are fairly broken
13615         ld_shlibs_CXX=no
13616         ;;
13617
13618       openbsd*)
13619         if test -f /usr/libexec/ld.so; then
13620           hardcode_direct_CXX=yes
13621           hardcode_shlibpath_var_CXX=no
13622           hardcode_direct_absolute_CXX=yes
13623           archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
13624           hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13625           if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13626             archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
13627             export_dynamic_flag_spec_CXX='${wl}-E'
13628             whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
13629           fi
13630           output_verbose_link_cmd=echo
13631         else
13632           ld_shlibs_CXX=no
13633         fi
13634         ;;
13635
13636       osf3* | osf4* | osf5*)
13637         case $cc_basename in
13638           KCC*)
13639             # Kuck and Associates, Inc. (KAI) C++ Compiler
13640
13641             # KCC will only create a shared library if the output file
13642             # ends with ".so" (or ".sl" for HP-UX), so rename the library
13643             # to its proper name (with version) after linking.
13644             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'
13645
13646             hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13647             hardcode_libdir_separator_CXX=:
13648
13649             # Archives containing C++ object files must be created using
13650             # the KAI C++ compiler.
13651             case $host in
13652               osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
13653               *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
13654             esac
13655             ;;
13656           RCC*)
13657             # Rational C++ 2.4.1
13658             # FIXME: insert proper C++ library support
13659             ld_shlibs_CXX=no
13660             ;;
13661           cxx*)
13662             case $host in
13663               osf3*)
13664                 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
13665                 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'
13666                 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13667                 ;;
13668               *)
13669                 allow_undefined_flag_CXX=' -expect_unresolved \*'
13670                 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'
13671                 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
13672                   echo "-hidden">> $lib.exp~
13673                   $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~
13674                   $RM $lib.exp'
13675                 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
13676                 ;;
13677             esac
13678
13679             hardcode_libdir_separator_CXX=:
13680
13681             # Commands to make compiler produce verbose output that lists
13682             # what "hidden" libraries, object files and flags are used when
13683             # linking a shared library.
13684             #
13685             # There doesn't appear to be a way to prevent this compiler from
13686             # explicitly linking system object files so we need to strip them
13687             # from the output so that they don't get included in the library
13688             # dependencies.
13689             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'
13690             ;;
13691           *)
13692             if test "$GXX" = yes && test "$with_gnu_ld" = no; then
13693               allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
13694               case $host in
13695                 osf3*)
13696                   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'
13697                   ;;
13698                 *)
13699                   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'
13700                   ;;
13701               esac
13702
13703               hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13704               hardcode_libdir_separator_CXX=:
13705
13706               # Commands to make compiler produce verbose output that lists
13707               # what "hidden" libraries, object files and flags are used when
13708               # linking a shared library.
13709               output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
13710
13711             else
13712               # FIXME: insert proper C++ library support
13713               ld_shlibs_CXX=no
13714             fi
13715             ;;
13716         esac
13717         ;;
13718
13719       psos*)
13720         # FIXME: insert proper C++ library support
13721         ld_shlibs_CXX=no
13722         ;;
13723
13724       sunos4*)
13725         case $cc_basename in
13726           CC*)
13727             # Sun C++ 4.x
13728             # FIXME: insert proper C++ library support
13729             ld_shlibs_CXX=no
13730             ;;
13731           lcc*)
13732             # Lucid
13733             # FIXME: insert proper C++ library support
13734             ld_shlibs_CXX=no
13735             ;;
13736           *)
13737             # FIXME: insert proper C++ library support
13738             ld_shlibs_CXX=no
13739             ;;
13740         esac
13741         ;;
13742
13743       solaris*)
13744         case $cc_basename in
13745           CC*)
13746             # Sun C++ 4.2, 5.x and Centerline C++
13747             archive_cmds_need_lc_CXX=yes
13748             no_undefined_flag_CXX=' -zdefs'
13749             archive_cmds_CXX='$CC -G${allow_undefined_flag}  -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13750             archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13751               $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'
13752
13753             hardcode_libdir_flag_spec_CXX='-R$libdir'
13754             hardcode_shlibpath_var_CXX=no
13755             case $host_os in
13756               solaris2.[0-5] | solaris2.[0-5].*) ;;
13757               *)
13758                 # The compiler driver will combine and reorder linker options,
13759                 # but understands `-z linker_flag'.
13760                 # Supported since Solaris 2.6 (maybe 2.5.1?)
13761                 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
13762                 ;;
13763             esac
13764             link_all_deplibs_CXX=yes
13765
13766             output_verbose_link_cmd='echo'
13767
13768             # Archives containing C++ object files must be created using
13769             # "CC -xar", where "CC" is the Sun C++ compiler.  This is
13770             # necessary to make sure instantiated templates are included
13771             # in the archive.
13772             old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
13773             ;;
13774           gcx*)
13775             # Green Hills C++ Compiler
13776             archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
13777
13778             # The C++ compiler must be used to create the archive.
13779             old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
13780             ;;
13781           *)
13782             # GNU C++ compiler with Solaris linker
13783             if test "$GXX" = yes && test "$with_gnu_ld" = no; then
13784               no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
13785               if $CC --version | $GREP -v '^2\.7' > /dev/null; then
13786                 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
13787                 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13788                   $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
13789
13790                 # Commands to make compiler produce verbose output that lists
13791                 # what "hidden" libraries, object files and flags are used when
13792                 # linking a shared library.
13793                 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
13794               else
13795                 # g++ 2.7 appears to require `-G' NOT `-shared' on this
13796                 # platform.
13797                 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
13798                 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13799                   $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
13800
13801                 # Commands to make compiler produce verbose output that lists
13802                 # what "hidden" libraries, object files and flags are used when
13803                 # linking a shared library.
13804                 output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
13805               fi
13806
13807               hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
13808               case $host_os in
13809                 solaris2.[0-5] | solaris2.[0-5].*) ;;
13810                 *)
13811                   whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
13812                   ;;
13813               esac
13814             fi
13815             ;;
13816         esac
13817         ;;
13818
13819     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
13820       no_undefined_flag_CXX='${wl}-z,text'
13821       archive_cmds_need_lc_CXX=no
13822       hardcode_shlibpath_var_CXX=no
13823       runpath_var='LD_RUN_PATH'
13824
13825       case $cc_basename in
13826         CC*)
13827           archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13828           archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13829           ;;
13830         *)
13831           archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13832           archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13833           ;;
13834       esac
13835       ;;
13836
13837       sysv5* | sco3.2v5* | sco5v6*)
13838         # Note: We can NOT use -z defs as we might desire, because we do not
13839         # link with -lc, and that would cause any symbols used from libc to
13840         # always be unresolved, which means just about no library would
13841         # ever link correctly.  If we're not using GNU ld we use -z text
13842         # though, which does catch some bad symbols but isn't as heavy-handed
13843         # as -z defs.
13844         no_undefined_flag_CXX='${wl}-z,text'
13845         allow_undefined_flag_CXX='${wl}-z,nodefs'
13846         archive_cmds_need_lc_CXX=no
13847         hardcode_shlibpath_var_CXX=no
13848         hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir'
13849         hardcode_libdir_separator_CXX=':'
13850         link_all_deplibs_CXX=yes
13851         export_dynamic_flag_spec_CXX='${wl}-Bexport'
13852         runpath_var='LD_RUN_PATH'
13853
13854         case $cc_basename in
13855           CC*)
13856             archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13857             archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13858             ;;
13859           *)
13860             archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13861             archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13862             ;;
13863         esac
13864       ;;
13865
13866       tandem*)
13867         case $cc_basename in
13868           NCC*)
13869             # NonStop-UX NCC 3.20
13870             # FIXME: insert proper C++ library support
13871             ld_shlibs_CXX=no
13872             ;;
13873           *)
13874             # FIXME: insert proper C++ library support
13875             ld_shlibs_CXX=no
13876             ;;
13877         esac
13878         ;;
13879
13880       vxworks*)
13881         # FIXME: insert proper C++ library support
13882         ld_shlibs_CXX=no
13883         ;;
13884
13885       *)
13886         # FIXME: insert proper C++ library support
13887         ld_shlibs_CXX=no
13888         ;;
13889     esac
13890
13891     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
13892 $as_echo "$ld_shlibs_CXX" >&6; }
13893     test "$ld_shlibs_CXX" = no && can_build_shared=no
13894
13895     GCC_CXX="$GXX"
13896     LD_CXX="$LD"
13897
13898     ## CAVEAT EMPTOR:
13899     ## There is no encapsulation within the following macros, do not change
13900     ## the running order or otherwise move them around unless you know exactly
13901     ## what you are doing...
13902     # Dependencies to place before and after the object being linked:
13903 predep_objects_CXX=
13904 postdep_objects_CXX=
13905 predeps_CXX=
13906 postdeps_CXX=
13907 compiler_lib_search_path_CXX=
13908
13909 cat > conftest.$ac_ext <<_LT_EOF
13910 class Foo
13911 {
13912 public:
13913   Foo (void) { a = 0; }
13914 private:
13915   int a;
13916 };
13917 _LT_EOF
13918
13919 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13920   (eval $ac_compile) 2>&5
13921   ac_status=$?
13922   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13923   test $ac_status = 0; }; then
13924   # Parse the compiler output and extract the necessary
13925   # objects, libraries and library flags.
13926
13927   # Sentinel used to keep track of whether or not we are before
13928   # the conftest object file.
13929   pre_test_object_deps_done=no
13930
13931   for p in `eval "$output_verbose_link_cmd"`; do
13932     case $p in
13933
13934     -L* | -R* | -l*)
13935        # Some compilers place space between "-{L,R}" and the path.
13936        # Remove the space.
13937        if test $p = "-L" ||
13938           test $p = "-R"; then
13939          prev=$p
13940          continue
13941        else
13942          prev=
13943        fi
13944
13945        if test "$pre_test_object_deps_done" = no; then
13946          case $p in
13947          -L* | -R*)
13948            # Internal compiler library paths should come after those
13949            # provided the user.  The postdeps already come after the
13950            # user supplied libs so there is no need to process them.
13951            if test -z "$compiler_lib_search_path_CXX"; then
13952              compiler_lib_search_path_CXX="${prev}${p}"
13953            else
13954              compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
13955            fi
13956            ;;
13957          # The "-l" case would never come before the object being
13958          # linked, so don't bother handling this case.
13959          esac
13960        else
13961          if test -z "$postdeps_CXX"; then
13962            postdeps_CXX="${prev}${p}"
13963          else
13964            postdeps_CXX="${postdeps_CXX} ${prev}${p}"
13965          fi
13966        fi
13967        ;;
13968
13969     *.$objext)
13970        # This assumes that the test object file only shows up
13971        # once in the compiler output.
13972        if test "$p" = "conftest.$objext"; then
13973          pre_test_object_deps_done=yes
13974          continue
13975        fi
13976
13977        if test "$pre_test_object_deps_done" = no; then
13978          if test -z "$predep_objects_CXX"; then
13979            predep_objects_CXX="$p"
13980          else
13981            predep_objects_CXX="$predep_objects_CXX $p"
13982          fi
13983        else
13984          if test -z "$postdep_objects_CXX"; then
13985            postdep_objects_CXX="$p"
13986          else
13987            postdep_objects_CXX="$postdep_objects_CXX $p"
13988          fi
13989        fi
13990        ;;
13991
13992     *) ;; # Ignore the rest.
13993
13994     esac
13995   done
13996
13997   # Clean up.
13998   rm -f a.out a.exe
13999 else
14000   echo "libtool.m4: error: problem compiling CXX test program"
14001 fi
14002
14003 $RM -f confest.$objext
14004
14005 # PORTME: override above test on systems where it is broken
14006 case $host_os in
14007 interix[3-9]*)
14008   # Interix 3.5 installs completely hosed .la files for C++, so rather than
14009   # hack all around it, let's just trust "g++" to DTRT.
14010   predep_objects_CXX=
14011   postdep_objects_CXX=
14012   postdeps_CXX=
14013   ;;
14014
14015 linux*)
14016   case `$CC -V 2>&1 | sed 5q` in
14017   *Sun\ C*)
14018     # Sun C++ 5.9
14019
14020     # The more standards-conforming stlport4 library is
14021     # incompatible with the Cstd library. Avoid specifying
14022     # it if it's in CXXFLAGS. Ignore libCrun as
14023     # -library=stlport4 depends on it.
14024     case " $CXX $CXXFLAGS " in
14025     *" -library=stlport4 "*)
14026       solaris_use_stlport4=yes
14027       ;;
14028     esac
14029
14030     if test "$solaris_use_stlport4" != yes; then
14031       postdeps_CXX='-library=Cstd -library=Crun'
14032     fi
14033     ;;
14034   esac
14035   ;;
14036
14037 solaris*)
14038   case $cc_basename in
14039   CC*)
14040     # The more standards-conforming stlport4 library is
14041     # incompatible with the Cstd library. Avoid specifying
14042     # it if it's in CXXFLAGS. Ignore libCrun as
14043     # -library=stlport4 depends on it.
14044     case " $CXX $CXXFLAGS " in
14045     *" -library=stlport4 "*)
14046       solaris_use_stlport4=yes
14047       ;;
14048     esac
14049
14050     # Adding this requires a known-good setup of shared libraries for
14051     # Sun compiler versions before 5.6, else PIC objects from an old
14052     # archive will be linked into the output, leading to subtle bugs.
14053     if test "$solaris_use_stlport4" != yes; then
14054       postdeps_CXX='-library=Cstd -library=Crun'
14055     fi
14056     ;;
14057   esac
14058   ;;
14059 esac
14060
14061
14062 case " $postdeps_CXX " in
14063 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
14064 esac
14065  compiler_lib_search_dirs_CXX=
14066 if test -n "${compiler_lib_search_path_CXX}"; then
14067  compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
14068 fi
14069
14070
14071
14072
14073
14074
14075
14076
14077
14078
14079
14080
14081
14082
14083
14084
14085
14086
14087
14088
14089
14090
14091
14092
14093
14094
14095
14096
14097
14098
14099
14100     lt_prog_compiler_wl_CXX=
14101 lt_prog_compiler_pic_CXX=
14102 lt_prog_compiler_static_CXX=
14103
14104 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
14105 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
14106
14107   # C++ specific cases for pic, static, wl, etc.
14108   if test "$GXX" = yes; then
14109     lt_prog_compiler_wl_CXX='-Wl,'
14110     lt_prog_compiler_static_CXX='-static'
14111
14112     case $host_os in
14113     aix*)
14114       # All AIX code is PIC.
14115       if test "$host_cpu" = ia64; then
14116         # AIX 5 now supports IA64 processor
14117         lt_prog_compiler_static_CXX='-Bstatic'
14118       fi
14119       ;;
14120
14121     amigaos*)
14122       case $host_cpu in
14123       powerpc)
14124             # see comment about AmigaOS4 .so support
14125             lt_prog_compiler_pic_CXX='-fPIC'
14126         ;;
14127       m68k)
14128             # FIXME: we need at least 68020 code to build shared libraries, but
14129             # adding the `-m68020' flag to GCC prevents building anything better,
14130             # like `-m68040'.
14131             lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
14132         ;;
14133       esac
14134       ;;
14135
14136     beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
14137       # PIC is the default for these OSes.
14138       ;;
14139     mingw* | cygwin* | os2* | pw32* | cegcc*)
14140       # This hack is so that the source file can tell whether it is being
14141       # built for inclusion in a dll (and should export symbols for example).
14142       # Although the cygwin gcc ignores -fPIC, still need this for old-style
14143       # (--disable-auto-import) libraries
14144       lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
14145       ;;
14146     darwin* | rhapsody*)
14147       # PIC is the default on this platform
14148       # Common symbols not allowed in MH_DYLIB files
14149       lt_prog_compiler_pic_CXX='-fno-common'
14150       ;;
14151     *djgpp*)
14152       # DJGPP does not support shared libraries at all
14153       lt_prog_compiler_pic_CXX=
14154       ;;
14155     interix[3-9]*)
14156       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
14157       # Instead, we relocate shared libraries at runtime.
14158       ;;
14159     sysv4*MP*)
14160       if test -d /usr/nec; then
14161         lt_prog_compiler_pic_CXX=-Kconform_pic
14162       fi
14163       ;;
14164     hpux*)
14165       # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
14166       # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
14167       # sets the default TLS model and affects inlining.
14168       case $host_cpu in
14169       hppa*64*)
14170         ;;
14171       *)
14172         lt_prog_compiler_pic_CXX='-fPIC'
14173         ;;
14174       esac
14175       ;;
14176     *qnx* | *nto*)
14177       # QNX uses GNU C++, but need to define -shared option too, otherwise
14178       # it will coredump.
14179       lt_prog_compiler_pic_CXX='-fPIC -shared'
14180       ;;
14181     *)
14182       lt_prog_compiler_pic_CXX='-fPIC'
14183       ;;
14184     esac
14185   else
14186     case $host_os in
14187       aix[4-9]*)
14188         # All AIX code is PIC.
14189         if test "$host_cpu" = ia64; then
14190           # AIX 5 now supports IA64 processor
14191           lt_prog_compiler_static_CXX='-Bstatic'
14192         else
14193           lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
14194         fi
14195         ;;
14196       chorus*)
14197         case $cc_basename in
14198         cxch68*)
14199           # Green Hills C++ Compiler
14200           # _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"
14201           ;;
14202         esac
14203         ;;
14204       dgux*)
14205         case $cc_basename in
14206           ec++*)
14207             lt_prog_compiler_pic_CXX='-KPIC'
14208             ;;
14209           ghcx*)
14210             # Green Hills C++ Compiler
14211             lt_prog_compiler_pic_CXX='-pic'
14212             ;;
14213           *)
14214             ;;
14215         esac
14216         ;;
14217       freebsd* | dragonfly*)
14218         # FreeBSD uses GNU C++
14219         ;;
14220       hpux9* | hpux10* | hpux11*)
14221         case $cc_basename in
14222           CC*)
14223             lt_prog_compiler_wl_CXX='-Wl,'
14224             lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
14225             if test "$host_cpu" != ia64; then
14226               lt_prog_compiler_pic_CXX='+Z'
14227             fi
14228             ;;
14229           aCC*)
14230             lt_prog_compiler_wl_CXX='-Wl,'
14231             lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
14232             case $host_cpu in
14233             hppa*64*|ia64*)
14234               # +Z the default
14235               ;;
14236             *)
14237               lt_prog_compiler_pic_CXX='+Z'
14238               ;;
14239             esac
14240             ;;
14241           *)
14242             ;;
14243         esac
14244         ;;
14245       interix*)
14246         # This is c89, which is MS Visual C++ (no shared libs)
14247         # Anyone wants to do a port?
14248         ;;
14249       irix5* | irix6* | nonstopux*)
14250         case $cc_basename in
14251           CC*)
14252             lt_prog_compiler_wl_CXX='-Wl,'
14253             lt_prog_compiler_static_CXX='-non_shared'
14254             # CC pic flag -KPIC is the default.
14255             ;;
14256           *)
14257             ;;
14258         esac
14259         ;;
14260       linux* | k*bsd*-gnu)
14261         case $cc_basename in
14262           KCC*)
14263             # KAI C++ Compiler
14264             lt_prog_compiler_wl_CXX='--backend -Wl,'
14265             lt_prog_compiler_pic_CXX='-fPIC'
14266             ;;
14267           ecpc* )
14268             # old Intel C++ for x86_64 which still supported -KPIC.
14269             lt_prog_compiler_wl_CXX='-Wl,'
14270             lt_prog_compiler_pic_CXX='-KPIC'
14271             lt_prog_compiler_static_CXX='-static'
14272             ;;
14273           icpc* )
14274             # Intel C++, used to be incompatible with GCC.
14275             # ICC 10 doesn't accept -KPIC any more.
14276             lt_prog_compiler_wl_CXX='-Wl,'
14277             lt_prog_compiler_pic_CXX='-fPIC'
14278             lt_prog_compiler_static_CXX='-static'
14279             ;;
14280           pgCC* | pgcpp*)
14281             # Portland Group C++ compiler
14282             lt_prog_compiler_wl_CXX='-Wl,'
14283             lt_prog_compiler_pic_CXX='-fpic'
14284             lt_prog_compiler_static_CXX='-Bstatic'
14285             ;;
14286           cxx*)
14287             # Compaq C++
14288             # Make sure the PIC flag is empty.  It appears that all Alpha
14289             # Linux and Compaq Tru64 Unix objects are PIC.
14290             lt_prog_compiler_pic_CXX=
14291             lt_prog_compiler_static_CXX='-non_shared'
14292             ;;
14293           xlc* | xlC*)
14294             # IBM XL 8.0 on PPC
14295             lt_prog_compiler_wl_CXX='-Wl,'
14296             lt_prog_compiler_pic_CXX='-qpic'
14297             lt_prog_compiler_static_CXX='-qstaticlink'
14298             ;;
14299           *)
14300             case `$CC -V 2>&1 | sed 5q` in
14301             *Sun\ C*)
14302               # Sun C++ 5.9
14303               lt_prog_compiler_pic_CXX='-KPIC'
14304               lt_prog_compiler_static_CXX='-Bstatic'
14305               lt_prog_compiler_wl_CXX='-Qoption ld '
14306               ;;
14307             esac
14308             ;;
14309         esac
14310         ;;
14311       lynxos*)
14312         ;;
14313       m88k*)
14314         ;;
14315       mvs*)
14316         case $cc_basename in
14317           cxx*)
14318             lt_prog_compiler_pic_CXX='-W c,exportall'
14319             ;;
14320           *)
14321             ;;
14322         esac
14323         ;;
14324       netbsd*)
14325         ;;
14326       *qnx* | *nto*)
14327         # QNX uses GNU C++, but need to define -shared option too, otherwise
14328         # it will coredump.
14329         lt_prog_compiler_pic_CXX='-fPIC -shared'
14330         ;;
14331       osf3* | osf4* | osf5*)
14332         case $cc_basename in
14333           KCC*)
14334             lt_prog_compiler_wl_CXX='--backend -Wl,'
14335             ;;
14336           RCC*)
14337             # Rational C++ 2.4.1
14338             lt_prog_compiler_pic_CXX='-pic'
14339             ;;
14340           cxx*)
14341             # Digital/Compaq C++
14342             lt_prog_compiler_wl_CXX='-Wl,'
14343             # Make sure the PIC flag is empty.  It appears that all Alpha
14344             # Linux and Compaq Tru64 Unix objects are PIC.
14345             lt_prog_compiler_pic_CXX=
14346             lt_prog_compiler_static_CXX='-non_shared'
14347             ;;
14348           *)
14349             ;;
14350         esac
14351         ;;
14352       psos*)
14353         ;;
14354       solaris*)
14355         case $cc_basename in
14356           CC*)
14357             # Sun C++ 4.2, 5.x and Centerline C++
14358             lt_prog_compiler_pic_CXX='-KPIC'
14359             lt_prog_compiler_static_CXX='-Bstatic'
14360             lt_prog_compiler_wl_CXX='-Qoption ld '
14361             ;;
14362           gcx*)
14363             # Green Hills C++ Compiler
14364             lt_prog_compiler_pic_CXX='-PIC'
14365             ;;
14366           *)
14367             ;;
14368         esac
14369         ;;
14370       sunos4*)
14371         case $cc_basename in
14372           CC*)
14373             # Sun C++ 4.x
14374             lt_prog_compiler_pic_CXX='-pic'
14375             lt_prog_compiler_static_CXX='-Bstatic'
14376             ;;
14377           lcc*)
14378             # Lucid
14379             lt_prog_compiler_pic_CXX='-pic'
14380             ;;
14381           *)
14382             ;;
14383         esac
14384         ;;
14385       sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
14386         case $cc_basename in
14387           CC*)
14388             lt_prog_compiler_wl_CXX='-Wl,'
14389             lt_prog_compiler_pic_CXX='-KPIC'
14390             lt_prog_compiler_static_CXX='-Bstatic'
14391             ;;
14392         esac
14393         ;;
14394       tandem*)
14395         case $cc_basename in
14396           NCC*)
14397             # NonStop-UX NCC 3.20
14398             lt_prog_compiler_pic_CXX='-KPIC'
14399             ;;
14400           *)
14401             ;;
14402         esac
14403         ;;
14404       vxworks*)
14405         ;;
14406       *)
14407         lt_prog_compiler_can_build_shared_CXX=no
14408         ;;
14409     esac
14410   fi
14411
14412 case $host_os in
14413   # For platforms which do not support PIC, -DPIC is meaningless:
14414   *djgpp*)
14415     lt_prog_compiler_pic_CXX=
14416     ;;
14417   *)
14418     lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
14419     ;;
14420 esac
14421 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic_CXX" >&5
14422 $as_echo "$lt_prog_compiler_pic_CXX" >&6; }
14423
14424
14425
14426 #
14427 # Check to make sure the PIC flag actually works.
14428 #
14429 if test -n "$lt_prog_compiler_pic_CXX"; then
14430   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
14431 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
14432 if test "${lt_cv_prog_compiler_pic_works_CXX+set}" = set; then :
14433   $as_echo_n "(cached) " >&6
14434 else
14435   lt_cv_prog_compiler_pic_works_CXX=no
14436    ac_outfile=conftest.$ac_objext
14437    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14438    lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
14439    # Insert the option either (1) after the last *FLAGS variable, or
14440    # (2) before a word containing "conftest.", or (3) at the end.
14441    # Note that $ac_compile itself does not contain backslashes and begins
14442    # with a dollar sign (not a hyphen), so the echo should work correctly.
14443    # The option is referenced via a variable to avoid confusing sed.
14444    lt_compile=`echo "$ac_compile" | $SED \
14445    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14446    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14447    -e 's:$: $lt_compiler_flag:'`
14448    (eval echo "\"\$as_me:14448: $lt_compile\"" >&5)
14449    (eval "$lt_compile" 2>conftest.err)
14450    ac_status=$?
14451    cat conftest.err >&5
14452    echo "$as_me:14452: \$? = $ac_status" >&5
14453    if (exit $ac_status) && test -s "$ac_outfile"; then
14454      # The compiler can only warn and ignore the option if not recognized
14455      # So say no if there are warnings other than the usual output.
14456      $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
14457      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14458      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
14459        lt_cv_prog_compiler_pic_works_CXX=yes
14460      fi
14461    fi
14462    $RM conftest*
14463
14464 fi
14465 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
14466 $as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
14467
14468 if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
14469     case $lt_prog_compiler_pic_CXX in
14470      "" | " "*) ;;
14471      *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
14472      esac
14473 else
14474     lt_prog_compiler_pic_CXX=
14475      lt_prog_compiler_can_build_shared_CXX=no
14476 fi
14477
14478 fi
14479
14480
14481
14482 #
14483 # Check to make sure the static flag actually works.
14484 #
14485 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
14486 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
14487 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
14488 if test "${lt_cv_prog_compiler_static_works_CXX+set}" = set; then :
14489   $as_echo_n "(cached) " >&6
14490 else
14491   lt_cv_prog_compiler_static_works_CXX=no
14492    save_LDFLAGS="$LDFLAGS"
14493    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
14494    echo "$lt_simple_link_test_code" > conftest.$ac_ext
14495    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
14496      # The linker can only warn and ignore the option if not recognized
14497      # So say no if there are warnings
14498      if test -s conftest.err; then
14499        # Append any errors to the config.log.
14500        cat conftest.err 1>&5
14501        $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
14502        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14503        if diff conftest.exp conftest.er2 >/dev/null; then
14504          lt_cv_prog_compiler_static_works_CXX=yes
14505        fi
14506      else
14507        lt_cv_prog_compiler_static_works_CXX=yes
14508      fi
14509    fi
14510    $RM -r conftest*
14511    LDFLAGS="$save_LDFLAGS"
14512
14513 fi
14514 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
14515 $as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
14516
14517 if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
14518     :
14519 else
14520     lt_prog_compiler_static_CXX=
14521 fi
14522
14523
14524
14525
14526     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
14527 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
14528 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then :
14529   $as_echo_n "(cached) " >&6
14530 else
14531   lt_cv_prog_compiler_c_o_CXX=no
14532    $RM -r conftest 2>/dev/null
14533    mkdir conftest
14534    cd conftest
14535    mkdir out
14536    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14537
14538    lt_compiler_flag="-o out/conftest2.$ac_objext"
14539    # Insert the option either (1) after the last *FLAGS variable, or
14540    # (2) before a word containing "conftest.", or (3) at the end.
14541    # Note that $ac_compile itself does not contain backslashes and begins
14542    # with a dollar sign (not a hyphen), so the echo should work correctly.
14543    lt_compile=`echo "$ac_compile" | $SED \
14544    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14545    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14546    -e 's:$: $lt_compiler_flag:'`
14547    (eval echo "\"\$as_me:14547: $lt_compile\"" >&5)
14548    (eval "$lt_compile" 2>out/conftest.err)
14549    ac_status=$?
14550    cat out/conftest.err >&5
14551    echo "$as_me:14551: \$? = $ac_status" >&5
14552    if (exit $ac_status) && test -s out/conftest2.$ac_objext
14553    then
14554      # The compiler can only warn and ignore the option if not recognized
14555      # So say no if there are warnings
14556      $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
14557      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14558      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14559        lt_cv_prog_compiler_c_o_CXX=yes
14560      fi
14561    fi
14562    chmod u+w . 2>&5
14563    $RM conftest*
14564    # SGI C++ compiler will create directory out/ii_files/ for
14565    # template instantiation
14566    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
14567    $RM out/* && rmdir out
14568    cd ..
14569    $RM -r conftest
14570    $RM conftest*
14571
14572 fi
14573 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
14574 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
14575
14576
14577
14578     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
14579 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
14580 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then :
14581   $as_echo_n "(cached) " >&6
14582 else
14583   lt_cv_prog_compiler_c_o_CXX=no
14584    $RM -r conftest 2>/dev/null
14585    mkdir conftest
14586    cd conftest
14587    mkdir out
14588    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14589
14590    lt_compiler_flag="-o out/conftest2.$ac_objext"
14591    # Insert the option either (1) after the last *FLAGS variable, or
14592    # (2) before a word containing "conftest.", or (3) at the end.
14593    # Note that $ac_compile itself does not contain backslashes and begins
14594    # with a dollar sign (not a hyphen), so the echo should work correctly.
14595    lt_compile=`echo "$ac_compile" | $SED \
14596    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14597    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14598    -e 's:$: $lt_compiler_flag:'`
14599    (eval echo "\"\$as_me:14599: $lt_compile\"" >&5)
14600    (eval "$lt_compile" 2>out/conftest.err)
14601    ac_status=$?
14602    cat out/conftest.err >&5
14603    echo "$as_me:14603: \$? = $ac_status" >&5
14604    if (exit $ac_status) && test -s out/conftest2.$ac_objext
14605    then
14606      # The compiler can only warn and ignore the option if not recognized
14607      # So say no if there are warnings
14608      $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
14609      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14610      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14611        lt_cv_prog_compiler_c_o_CXX=yes
14612      fi
14613    fi
14614    chmod u+w . 2>&5
14615    $RM conftest*
14616    # SGI C++ compiler will create directory out/ii_files/ for
14617    # template instantiation
14618    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
14619    $RM out/* && rmdir out
14620    cd ..
14621    $RM -r conftest
14622    $RM conftest*
14623
14624 fi
14625 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
14626 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
14627
14628
14629
14630
14631 hard_links="nottested"
14632 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
14633   # do not overwrite the value of need_locks provided by the user
14634   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
14635 $as_echo_n "checking if we can lock with hard links... " >&6; }
14636   hard_links=yes
14637   $RM conftest*
14638   ln conftest.a conftest.b 2>/dev/null && hard_links=no
14639   touch conftest.a
14640   ln conftest.a conftest.b 2>&5 || hard_links=no
14641   ln conftest.a conftest.b 2>/dev/null && hard_links=no
14642   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
14643 $as_echo "$hard_links" >&6; }
14644   if test "$hard_links" = no; then
14645     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
14646 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
14647     need_locks=warn
14648   fi
14649 else
14650   need_locks=no
14651 fi
14652
14653
14654
14655     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
14656 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
14657
14658   export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14659   case $host_os in
14660   aix[4-9]*)
14661     # If we're using GNU nm, then we don't want the "-C" option.
14662     # -C means demangle to AIX nm, but means don't demangle with GNU nm
14663     if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
14664       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'
14665     else
14666       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'
14667     fi
14668     ;;
14669   pw32*)
14670     export_symbols_cmds_CXX="$ltdll_cmds"
14671   ;;
14672   cygwin* | mingw* | cegcc*)
14673     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'
14674   ;;
14675   *)
14676     export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14677   ;;
14678   esac
14679   exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
14680
14681 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
14682 $as_echo "$ld_shlibs_CXX" >&6; }
14683 test "$ld_shlibs_CXX" = no && can_build_shared=no
14684
14685 with_gnu_ld_CXX=$with_gnu_ld
14686
14687
14688
14689
14690
14691
14692 #
14693 # Do we need to explicitly link libc?
14694 #
14695 case "x$archive_cmds_need_lc_CXX" in
14696 x|xyes)
14697   # Assume -lc should be added
14698   archive_cmds_need_lc_CXX=yes
14699
14700   if test "$enable_shared" = yes && test "$GCC" = yes; then
14701     case $archive_cmds_CXX in
14702     *'~'*)
14703       # FIXME: we may have to deal with multi-command sequences.
14704       ;;
14705     '$CC '*)
14706       # Test whether the compiler implicitly links with -lc since on some
14707       # systems, -lgcc has to come before -lc. If gcc already passes -lc
14708       # to ld, don't add -lc before -lgcc.
14709       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
14710 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
14711       $RM conftest*
14712       echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14713
14714       if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
14715   (eval $ac_compile) 2>&5
14716   ac_status=$?
14717   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14718   test $ac_status = 0; } 2>conftest.err; then
14719         soname=conftest
14720         lib=conftest
14721         libobjs=conftest.$ac_objext
14722         deplibs=
14723         wl=$lt_prog_compiler_wl_CXX
14724         pic_flag=$lt_prog_compiler_pic_CXX
14725         compiler_flags=-v
14726         linker_flags=-v
14727         verstring=
14728         output_objdir=.
14729         libname=conftest
14730         lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
14731         allow_undefined_flag_CXX=
14732         if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
14733   (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
14734   ac_status=$?
14735   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14736   test $ac_status = 0; }
14737         then
14738           archive_cmds_need_lc_CXX=no
14739         else
14740           archive_cmds_need_lc_CXX=yes
14741         fi
14742         allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
14743       else
14744         cat conftest.err 1>&5
14745       fi
14746       $RM conftest*
14747       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $archive_cmds_need_lc_CXX" >&5
14748 $as_echo "$archive_cmds_need_lc_CXX" >&6; }
14749       ;;
14750     esac
14751   fi
14752   ;;
14753 esac
14754
14755
14756
14757
14758
14759
14760
14761
14762
14763
14764
14765
14766
14767
14768
14769
14770
14771
14772
14773
14774
14775
14776
14777
14778
14779
14780
14781
14782
14783
14784
14785
14786
14787
14788
14789
14790
14791
14792
14793
14794
14795
14796
14797
14798
14799
14800
14801
14802
14803
14804
14805
14806
14807
14808
14809
14810
14811
14812
14813
14814
14815
14816
14817
14818     { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
14819 $as_echo_n "checking dynamic linker characteristics... " >&6; }
14820
14821 library_names_spec=
14822 libname_spec='lib$name'
14823 soname_spec=
14824 shrext_cmds=".so"
14825 postinstall_cmds=
14826 postuninstall_cmds=
14827 finish_cmds=
14828 finish_eval=
14829 shlibpath_var=
14830 shlibpath_overrides_runpath=unknown
14831 version_type=none
14832 dynamic_linker="$host_os ld.so"
14833 sys_lib_dlsearch_path_spec="/lib /usr/lib"
14834 need_lib_prefix=unknown
14835 hardcode_into_libs=no
14836
14837 # when you set need_version to no, make sure it does not cause -set_version
14838 # flags to be left without arguments
14839 need_version=unknown
14840
14841 case $host_os in
14842 aix3*)
14843   version_type=linux
14844   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
14845   shlibpath_var=LIBPATH
14846
14847   # AIX 3 has no versioning support, so we append a major version to the name.
14848   soname_spec='${libname}${release}${shared_ext}$major'
14849   ;;
14850
14851 aix[4-9]*)
14852   version_type=linux
14853   need_lib_prefix=no
14854   need_version=no
14855   hardcode_into_libs=yes
14856   if test "$host_cpu" = ia64; then
14857     # AIX 5 supports IA64
14858     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
14859     shlibpath_var=LD_LIBRARY_PATH
14860   else
14861     # With GCC up to 2.95.x, collect2 would create an import file
14862     # for dependence libraries.  The import file would start with
14863     # the line `#! .'.  This would cause the generated library to
14864     # depend on `.', always an invalid library.  This was fixed in
14865     # development snapshots of GCC prior to 3.0.
14866     case $host_os in
14867       aix4 | aix4.[01] | aix4.[01].*)
14868       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
14869            echo ' yes '
14870            echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
14871         :
14872       else
14873         can_build_shared=no
14874       fi
14875       ;;
14876     esac
14877     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
14878     # soname into executable. Probably we can add versioning support to
14879     # collect2, so additional links can be useful in future.
14880     if test "$aix_use_runtimelinking" = yes; then
14881       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
14882       # instead of lib<name>.a to let people know that these are not
14883       # typical AIX shared libraries.
14884       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14885     else
14886       # We preserve .a as extension for shared libraries through AIX4.2
14887       # and later when we are not doing run time linking.
14888       library_names_spec='${libname}${release}.a $libname.a'
14889       soname_spec='${libname}${release}${shared_ext}$major'
14890     fi
14891     shlibpath_var=LIBPATH
14892   fi
14893   ;;
14894
14895 amigaos*)
14896   case $host_cpu in
14897   powerpc)
14898     # Since July 2007 AmigaOS4 officially supports .so libraries.
14899     # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
14900     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14901     ;;
14902   m68k)
14903     library_names_spec='$libname.ixlibrary $libname.a'
14904     # Create ${libname}_ixlibrary.a entries in /sys/libs.
14905     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'
14906     ;;
14907   esac
14908   ;;
14909
14910 beos*)
14911   library_names_spec='${libname}${shared_ext}'
14912   dynamic_linker="$host_os ld.so"
14913   shlibpath_var=LIBRARY_PATH
14914   ;;
14915
14916 bsdi[45]*)
14917   version_type=linux
14918   need_version=no
14919   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14920   soname_spec='${libname}${release}${shared_ext}$major'
14921   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
14922   shlibpath_var=LD_LIBRARY_PATH
14923   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
14924   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
14925   # the default ld.so.conf also contains /usr/contrib/lib and
14926   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
14927   # libtool to hard-code these into programs
14928   ;;
14929
14930 cygwin* | mingw* | pw32* | cegcc*)
14931   version_type=windows
14932   shrext_cmds=".dll"
14933   need_version=no
14934   need_lib_prefix=no
14935
14936   case $GCC,$host_os in
14937   yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
14938     library_names_spec='$libname.dll.a'
14939     # DLL is installed to $(libdir)/../bin by postinstall_cmds
14940     postinstall_cmds='base_file=`basename \${file}`~
14941       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
14942       dldir=$destdir/`dirname \$dlpath`~
14943       test -d \$dldir || mkdir -p \$dldir~
14944       $install_prog $dir/$dlname \$dldir/$dlname~
14945       chmod a+x \$dldir/$dlname~
14946       if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
14947         eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
14948       fi'
14949     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
14950       dlpath=$dir/\$dldll~
14951        $RM \$dlpath'
14952     shlibpath_overrides_runpath=yes
14953
14954     case $host_os in
14955     cygwin*)
14956       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
14957       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14958       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
14959       ;;
14960     mingw* | cegcc*)
14961       # MinGW DLLs use traditional 'lib' prefix
14962       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14963       sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
14964       if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
14965         # It is most probably a Windows format PATH printed by
14966         # mingw gcc, but we are running on Cygwin. Gcc prints its search
14967         # path with ; separators, and with drive letters. We can handle the
14968         # drive letters (cygwin fileutils understands them), so leave them,
14969         # especially as we might pass files found there to a mingw objdump,
14970         # which wouldn't understand a cygwinified path. Ahh.
14971         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
14972       else
14973         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
14974       fi
14975       ;;
14976     pw32*)
14977       # pw32 DLLs use 'pw' prefix rather than 'lib'
14978       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14979       ;;
14980     esac
14981     ;;
14982
14983   *)
14984     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
14985     ;;
14986   esac
14987   dynamic_linker='Win32 ld.exe'
14988   # FIXME: first we should search . and the directory the executable is in
14989   shlibpath_var=PATH
14990   ;;
14991
14992 darwin* | rhapsody*)
14993   dynamic_linker="$host_os dyld"
14994   version_type=darwin
14995   need_lib_prefix=no
14996   need_version=no
14997   library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
14998   soname_spec='${libname}${release}${major}$shared_ext'
14999   shlibpath_overrides_runpath=yes
15000   shlibpath_var=DYLD_LIBRARY_PATH
15001   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
15002
15003   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
15004   ;;
15005
15006 dgux*)
15007   version_type=linux
15008   need_lib_prefix=no
15009   need_version=no
15010   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
15011   soname_spec='${libname}${release}${shared_ext}$major'
15012   shlibpath_var=LD_LIBRARY_PATH
15013   ;;
15014
15015 freebsd1*)
15016   dynamic_linker=no
15017   ;;
15018
15019 freebsd* | dragonfly*)
15020   # DragonFly does not have aout.  When/if they implement a new
15021   # versioning mechanism, adjust this.
15022   if test -x /usr/bin/objformat; then
15023     objformat=`/usr/bin/objformat`
15024   else
15025     case $host_os in
15026     freebsd[123]*) objformat=aout ;;
15027     *) objformat=elf ;;
15028     esac
15029   fi
15030   version_type=freebsd-$objformat
15031   case $version_type in
15032     freebsd-elf*)
15033       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15034       need_version=no
15035       need_lib_prefix=no
15036       ;;
15037     freebsd-*)
15038       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
15039       need_version=yes
15040       ;;
15041   esac
15042   shlibpath_var=LD_LIBRARY_PATH
15043   case $host_os in
15044   freebsd2*)
15045     shlibpath_overrides_runpath=yes
15046     ;;
15047   freebsd3.[01]* | freebsdelf3.[01]*)
15048     shlibpath_overrides_runpath=yes
15049     hardcode_into_libs=yes
15050     ;;
15051   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
15052   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
15053     shlibpath_overrides_runpath=no
15054     hardcode_into_libs=yes
15055     ;;
15056   *) # from 4.6 on, and DragonFly
15057     shlibpath_overrides_runpath=yes
15058     hardcode_into_libs=yes
15059     ;;
15060   esac
15061   ;;
15062
15063 gnu*)
15064   version_type=linux
15065   need_lib_prefix=no
15066   need_version=no
15067   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
15068   soname_spec='${libname}${release}${shared_ext}$major'
15069   shlibpath_var=LD_LIBRARY_PATH
15070   hardcode_into_libs=yes
15071   ;;
15072
15073 hpux9* | hpux10* | hpux11*)
15074   # Give a soname corresponding to the major version so that dld.sl refuses to
15075   # link against other versions.
15076   version_type=sunos
15077   need_lib_prefix=no
15078   need_version=no
15079   case $host_cpu in
15080   ia64*)
15081     shrext_cmds='.so'
15082     hardcode_into_libs=yes
15083     dynamic_linker="$host_os dld.so"
15084     shlibpath_var=LD_LIBRARY_PATH
15085     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15086     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15087     soname_spec='${libname}${release}${shared_ext}$major'
15088     if test "X$HPUX_IA64_MODE" = X32; then
15089       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
15090     else
15091       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
15092     fi
15093     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15094     ;;
15095   hppa*64*)
15096     shrext_cmds='.sl'
15097     hardcode_into_libs=yes
15098     dynamic_linker="$host_os dld.sl"
15099     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
15100     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15101     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15102     soname_spec='${libname}${release}${shared_ext}$major'
15103     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
15104     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15105     ;;
15106   *)
15107     shrext_cmds='.sl'
15108     dynamic_linker="$host_os dld.sl"
15109     shlibpath_var=SHLIB_PATH
15110     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
15111     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15112     soname_spec='${libname}${release}${shared_ext}$major'
15113     ;;
15114   esac
15115   # HP-UX runs *really* slowly unless shared libraries are mode 555.
15116   postinstall_cmds='chmod 555 $lib'
15117   ;;
15118
15119 interix[3-9]*)
15120   version_type=linux
15121   need_lib_prefix=no
15122   need_version=no
15123   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15124   soname_spec='${libname}${release}${shared_ext}$major'
15125   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
15126   shlibpath_var=LD_LIBRARY_PATH
15127   shlibpath_overrides_runpath=no
15128   hardcode_into_libs=yes
15129   ;;
15130
15131 irix5* | irix6* | nonstopux*)
15132   case $host_os in
15133     nonstopux*) version_type=nonstopux ;;
15134     *)
15135         if test "$lt_cv_prog_gnu_ld" = yes; then
15136                 version_type=linux
15137         else
15138                 version_type=irix
15139         fi ;;
15140   esac
15141   need_lib_prefix=no
15142   need_version=no
15143   soname_spec='${libname}${release}${shared_ext}$major'
15144   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
15145   case $host_os in
15146   irix5* | nonstopux*)
15147     libsuff= shlibsuff=
15148     ;;
15149   *)
15150     case $LD in # libtool.m4 will add one of these switches to LD
15151     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
15152       libsuff= shlibsuff= libmagic=32-bit;;
15153     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
15154       libsuff=32 shlibsuff=N32 libmagic=N32;;
15155     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
15156       libsuff=64 shlibsuff=64 libmagic=64-bit;;
15157     *) libsuff= shlibsuff= libmagic=never-match;;
15158     esac
15159     ;;
15160   esac
15161   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
15162   shlibpath_overrides_runpath=no
15163   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
15164   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
15165   hardcode_into_libs=yes
15166   ;;
15167
15168 # No shared lib support for Linux oldld, aout, or coff.
15169 linux*oldld* | linux*aout* | linux*coff*)
15170   dynamic_linker=no
15171   ;;
15172
15173 # This must be Linux ELF.
15174 linux* | k*bsd*-gnu)
15175   version_type=linux
15176   need_lib_prefix=no
15177   need_version=no
15178   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15179   soname_spec='${libname}${release}${shared_ext}$major'
15180   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
15181   shlibpath_var=LD_LIBRARY_PATH
15182   shlibpath_overrides_runpath=no
15183   # Some binutils ld are patched to set DT_RUNPATH
15184   save_LDFLAGS=$LDFLAGS
15185   save_libdir=$libdir
15186   eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
15187        LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
15188   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15189 /* end confdefs.h.  */
15190
15191 int
15192 main ()
15193 {
15194
15195   ;
15196   return 0;
15197 }
15198 _ACEOF
15199 if ac_fn_cxx_try_link "$LINENO"; then :
15200   if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
15201   shlibpath_overrides_runpath=yes
15202 fi
15203 fi
15204 rm -f core conftest.err conftest.$ac_objext \
15205     conftest$ac_exeext conftest.$ac_ext
15206   LDFLAGS=$save_LDFLAGS
15207   libdir=$save_libdir
15208
15209   # This implies no fast_install, which is unacceptable.
15210   # Some rework will be needed to allow for fast_install
15211   # before this can be enabled.
15212   hardcode_into_libs=yes
15213
15214   # Append ld.so.conf contents to the search path
15215   if test -f /etc/ld.so.conf; then
15216     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' ' '`
15217     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
15218   fi
15219
15220   # We used to test for /lib/ld.so.1 and disable shared libraries on
15221   # powerpc, because MkLinux only supported shared libraries with the
15222   # GNU dynamic linker.  Since this was broken with cross compilers,
15223   # most powerpc-linux boxes support dynamic linking these days and
15224   # people can always --disable-shared, the test was removed, and we
15225   # assume the GNU/Linux dynamic linker is in use.
15226   dynamic_linker='GNU/Linux ld.so'
15227   ;;
15228
15229 netbsd*)
15230   version_type=sunos
15231   need_lib_prefix=no
15232   need_version=no
15233   if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
15234     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15235     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15236     dynamic_linker='NetBSD (a.out) ld.so'
15237   else
15238     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15239     soname_spec='${libname}${release}${shared_ext}$major'
15240     dynamic_linker='NetBSD ld.elf_so'
15241   fi
15242   shlibpath_var=LD_LIBRARY_PATH
15243   shlibpath_overrides_runpath=yes
15244   hardcode_into_libs=yes
15245   ;;
15246
15247 newsos6)
15248   version_type=linux
15249   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15250   shlibpath_var=LD_LIBRARY_PATH
15251   shlibpath_overrides_runpath=yes
15252   ;;
15253
15254 *nto* | *qnx*)
15255   version_type=qnx
15256   need_lib_prefix=no
15257   need_version=no
15258   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15259   soname_spec='${libname}${release}${shared_ext}$major'
15260   shlibpath_var=LD_LIBRARY_PATH
15261   shlibpath_overrides_runpath=no
15262   hardcode_into_libs=yes
15263   dynamic_linker='ldqnx.so'
15264   ;;
15265
15266 openbsd*)
15267   version_type=sunos
15268   sys_lib_dlsearch_path_spec="/usr/lib"
15269   need_lib_prefix=no
15270   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
15271   case $host_os in
15272     openbsd3.3 | openbsd3.3.*)  need_version=yes ;;
15273     *)                          need_version=no  ;;
15274   esac
15275   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15276   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15277   shlibpath_var=LD_LIBRARY_PATH
15278   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15279     case $host_os in
15280       openbsd2.[89] | openbsd2.[89].*)
15281         shlibpath_overrides_runpath=no
15282         ;;
15283       *)
15284         shlibpath_overrides_runpath=yes
15285         ;;
15286       esac
15287   else
15288     shlibpath_overrides_runpath=yes
15289   fi
15290   ;;
15291
15292 os2*)
15293   libname_spec='$name'
15294   shrext_cmds=".dll"
15295   need_lib_prefix=no
15296   library_names_spec='$libname${shared_ext} $libname.a'
15297   dynamic_linker='OS/2 ld.exe'
15298   shlibpath_var=LIBPATH
15299   ;;
15300
15301 osf3* | osf4* | osf5*)
15302   version_type=osf
15303   need_lib_prefix=no
15304   need_version=no
15305   soname_spec='${libname}${release}${shared_ext}$major'
15306   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15307   shlibpath_var=LD_LIBRARY_PATH
15308   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
15309   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
15310   ;;
15311
15312 rdos*)
15313   dynamic_linker=no
15314   ;;
15315
15316 solaris*)
15317   version_type=linux
15318   need_lib_prefix=no
15319   need_version=no
15320   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15321   soname_spec='${libname}${release}${shared_ext}$major'
15322   shlibpath_var=LD_LIBRARY_PATH
15323   shlibpath_overrides_runpath=yes
15324   hardcode_into_libs=yes
15325   # ldd complains unless libraries are executable
15326   postinstall_cmds='chmod +x $lib'
15327   ;;
15328
15329 sunos4*)
15330   version_type=sunos
15331   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15332   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
15333   shlibpath_var=LD_LIBRARY_PATH
15334   shlibpath_overrides_runpath=yes
15335   if test "$with_gnu_ld" = yes; then
15336     need_lib_prefix=no
15337   fi
15338   need_version=yes
15339   ;;
15340
15341 sysv4 | sysv4.3*)
15342   version_type=linux
15343   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15344   soname_spec='${libname}${release}${shared_ext}$major'
15345   shlibpath_var=LD_LIBRARY_PATH
15346   case $host_vendor in
15347     sni)
15348       shlibpath_overrides_runpath=no
15349       need_lib_prefix=no
15350       runpath_var=LD_RUN_PATH
15351       ;;
15352     siemens)
15353       need_lib_prefix=no
15354       ;;
15355     motorola)
15356       need_lib_prefix=no
15357       need_version=no
15358       shlibpath_overrides_runpath=no
15359       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
15360       ;;
15361   esac
15362   ;;
15363
15364 sysv4*MP*)
15365   if test -d /usr/nec ;then
15366     version_type=linux
15367     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
15368     soname_spec='$libname${shared_ext}.$major'
15369     shlibpath_var=LD_LIBRARY_PATH
15370   fi
15371   ;;
15372
15373 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
15374   version_type=freebsd-elf
15375   need_lib_prefix=no
15376   need_version=no
15377   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15378   soname_spec='${libname}${release}${shared_ext}$major'
15379   shlibpath_var=LD_LIBRARY_PATH
15380   shlibpath_overrides_runpath=yes
15381   hardcode_into_libs=yes
15382   if test "$with_gnu_ld" = yes; then
15383     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
15384   else
15385     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
15386     case $host_os in
15387       sco3.2v5*)
15388         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
15389         ;;
15390     esac
15391   fi
15392   sys_lib_dlsearch_path_spec='/usr/lib'
15393   ;;
15394
15395 tpf*)
15396   # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
15397   version_type=linux
15398   need_lib_prefix=no
15399   need_version=no
15400   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15401   shlibpath_var=LD_LIBRARY_PATH
15402   shlibpath_overrides_runpath=no
15403   hardcode_into_libs=yes
15404   ;;
15405
15406 uts4*)
15407   version_type=linux
15408   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15409   soname_spec='${libname}${release}${shared_ext}$major'
15410   shlibpath_var=LD_LIBRARY_PATH
15411   ;;
15412
15413 *)
15414   dynamic_linker=no
15415   ;;
15416 esac
15417 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
15418 $as_echo "$dynamic_linker" >&6; }
15419 test "$dynamic_linker" = no && can_build_shared=no
15420
15421 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
15422 if test "$GCC" = yes; then
15423   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
15424 fi
15425
15426 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
15427   sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
15428 fi
15429 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
15430   sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
15431 fi
15432
15433
15434
15435
15436
15437
15438
15439
15440
15441
15442
15443
15444
15445
15446
15447
15448
15449
15450
15451
15452
15453
15454
15455
15456
15457
15458
15459
15460
15461
15462
15463
15464
15465
15466
15467
15468     { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
15469 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
15470 hardcode_action_CXX=
15471 if test -n "$hardcode_libdir_flag_spec_CXX" ||
15472    test -n "$runpath_var_CXX" ||
15473    test "X$hardcode_automatic_CXX" = "Xyes" ; then
15474
15475   # We can hardcode non-existent directories.
15476   if test "$hardcode_direct_CXX" != no &&
15477      # If the only mechanism to avoid hardcoding is shlibpath_var, we
15478      # have to relink, otherwise we might link with an installed library
15479      # when we should be linking with a yet-to-be-installed one
15480      ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
15481      test "$hardcode_minus_L_CXX" != no; then
15482     # Linking always hardcodes the temporary library directory.
15483     hardcode_action_CXX=relink
15484   else
15485     # We can link without hardcoding, and we can hardcode nonexisting dirs.
15486     hardcode_action_CXX=immediate
15487   fi
15488 else
15489   # We cannot hardcode anything, or else we can only hardcode existing
15490   # directories.
15491   hardcode_action_CXX=unsupported
15492 fi
15493 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
15494 $as_echo "$hardcode_action_CXX" >&6; }
15495
15496 if test "$hardcode_action_CXX" = relink ||
15497    test "$inherit_rpath_CXX" = yes; then
15498   # Fast installation is not supported
15499   enable_fast_install=no
15500 elif test "$shlibpath_overrides_runpath" = yes ||
15501      test "$enable_shared" = no; then
15502   # Fast installation is not necessary
15503   enable_fast_install=needless
15504 fi
15505
15506
15507
15508
15509
15510
15511
15512   fi # test -n "$compiler"
15513
15514   CC=$lt_save_CC
15515   LDCXX=$LD
15516   LD=$lt_save_LD
15517   GCC=$lt_save_GCC
15518   with_gnu_ld=$lt_save_with_gnu_ld
15519   lt_cv_path_LDCXX=$lt_cv_path_LD
15520   lt_cv_path_LD=$lt_save_path_LD
15521   lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
15522   lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
15523 fi # test "$_lt_caught_CXX_error" != yes
15524
15525 ac_ext=c
15526 ac_cpp='$CPP $CPPFLAGS'
15527 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15528 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15529 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15530
15531
15532
15533
15534
15535
15536
15537
15538
15539
15540
15541
15542
15543         ac_config_commands="$ac_config_commands libtool"
15544
15545
15546
15547
15548 # Only expand once:
15549
15550
15551
15552
15553 if test x$use_libtool != xno; then
15554    DEFAULT_OBJECT_TYPE=".lo"
15555    DEFAULT_ARCHIVE_TYPE=".la"
15556    DEFAULT_SHARED_OBJECT_TYPE=".la"
15557    LIBTOOL="\$(LIBTOOL)"
15558    LIBTOOL_INSTALL_TARGET="libtool-install"
15559    LIBTOOL_UNINSTALL_TARGET="libtool-uninstall"
15560    LIBTOOL_CLEAN_TARGET="libtool-clean"
15561    QMAKE_LIBTOOL="${BUILD_DIR}/libtool"
15562    FD_PLUGIN_DIR="src/plugins/fd"
15563    have_plugins=yes
15564 else
15565    DEFAULT_OBJECT_TYPE=".o"
15566    DEFAULT_ARCHIVE_TYPE=".a"
15567    DEFAULT_SHARED_OBJECT_TYPE=".so"
15568    LIBTOOL="# \$(LIBTOOL)"
15569    LIBTOOL_INSTALL_TARGET=""
15570    LIBTOOL_UNINSTALL_TARGET=""
15571    LIBTOOL_CLEAN_TARGET=""
15572    QMAKE_LIBTOOL="# ${BUILD_DIR}/libtool"
15573    FD_PLUGIN_DIR=""
15574    have_plugins=no
15575 fi
15576
15577
15578
15579
15580
15581
15582
15583
15584
15585
15586
15587 # Check whether --enable-includes was given.
15588 if test "${enable_includes+set}" = set; then :
15589   enableval=$enable_includes;
15590        if test x$enableval = xyes; then
15591           install_includes=yes
15592        fi
15593
15594
15595 fi
15596
15597
15598
15599 if test x$use_libtool != xno -a x$install_includes = xyes; then
15600    INCLUDE_INSTALL_TARGET="install-includes"
15601    INCLUDE_UNINSTALL_TARGET="uninstall-includes"
15602 else
15603    INCLUDE_INSTALL_TARGET=""
15604    INCLUDE_UNINSTALL_TARGET=""
15605 fi
15606
15607
15608
15609
15610
15611 case $host_os in
15612   *cygwin* ) CYGWIN=yes;;
15613          * ) CYGWIN=no;;
15614 esac
15615
15616 if test $HAVE_UNAME=yes -a x`uname -s` = xSunOS
15617 then
15618
15619
15620 if $TRUEPRG; then
15621   HAVE_SUN_OS_TRUE=
15622   HAVE_SUN_OS_FALSE='#'
15623 else
15624   HAVE_SUN_OS_TRUE='#'
15625   HAVE_SUN_OS_FALSE=
15626 fi
15627         $as_echo "#define HAVE_SUN_OS 1" >>confdefs.h
15628
15629 else
15630
15631
15632 if $FALSEPRG; then
15633   HAVE_SUN_OS_TRUE=
15634   HAVE_SUN_OS_FALSE='#'
15635 else
15636   HAVE_SUN_OS_TRUE='#'
15637   HAVE_SUN_OS_FALSE=
15638 fi
15639 fi
15640
15641 if test $HAVE_UNAME=yes -a x`uname -s` = xOSF1
15642 then
15643
15644
15645 if $TRUEPRG; then
15646   HAVE_OSF1_OS_TRUE=
15647   HAVE_OSF1_OS_FALSE='#'
15648 else
15649   HAVE_OSF1_OS_TRUE='#'
15650   HAVE_OSF1_OS_FALSE=
15651 fi
15652         $as_echo "#define HAVE_OSF1_OS 1" >>confdefs.h
15653
15654 else
15655
15656
15657 if $FALSEPRG; then
15658   HAVE_OSF1_OS_TRUE=
15659   HAVE_OSF1_OS_FALSE='#'
15660 else
15661   HAVE_OSF1_OS_TRUE='#'
15662   HAVE_OSF1_OS_FALSE=
15663 fi
15664 fi
15665
15666 if test $HAVE_UNAME=yes -a x`uname -s` = xAIX
15667 then
15668
15669
15670 if $TRUEPRG; then
15671   HAVE_AIX_OS_TRUE=
15672   HAVE_AIX_OS_FALSE='#'
15673 else
15674   HAVE_AIX_OS_TRUE='#'
15675   HAVE_AIX_OS_FALSE=
15676 fi
15677         $as_echo "#define HAVE_AIX_OS 1" >>confdefs.h
15678
15679 else
15680
15681
15682 if $FALSEPRG; then
15683   HAVE_AIX_OS_TRUE=
15684   HAVE_AIX_OS_FALSE='#'
15685 else
15686   HAVE_AIX_OS_TRUE='#'
15687   HAVE_AIX_OS_FALSE=
15688 fi
15689 fi
15690
15691 if test $HAVE_UNAME=yes -a x`uname -s` = xHP-UX
15692 then
15693
15694
15695 if $TRUEPRG; then
15696   HAVE_HPUX_OS_TRUE=
15697   HAVE_HPUX_OS_FALSE='#'
15698 else
15699   HAVE_HPUX_OS_TRUE='#'
15700   HAVE_HPUX_OS_FALSE=
15701 fi
15702         $as_echo "#define HAVE_HPUX_OS 1" >>confdefs.h
15703
15704 else
15705
15706
15707 if $FALSEPRG; then
15708   HAVE_HPUX_OS_TRUE=
15709   HAVE_HPUX_OS_FALSE='#'
15710 else
15711   HAVE_HPUX_OS_TRUE='#'
15712   HAVE_HPUX_OS_FALSE=
15713 fi
15714 fi
15715
15716 if test $HAVE_UNAME=yes -a x`uname -s` = xLinux
15717 then
15718
15719
15720 if $TRUEPRG; then
15721   HAVE_LINUX_OS_TRUE=
15722   HAVE_LINUX_OS_FALSE='#'
15723 else
15724   HAVE_LINUX_OS_TRUE='#'
15725   HAVE_LINUX_OS_FALSE=
15726 fi
15727         $as_echo "#define HAVE_LINUX_OS 1" >>confdefs.h
15728
15729 else
15730
15731
15732 if $FALSEPRG; then
15733   HAVE_LINUX_OS_TRUE=
15734   HAVE_LINUX_OS_FALSE='#'
15735 else
15736   HAVE_LINUX_OS_TRUE='#'
15737   HAVE_LINUX_OS_FALSE=
15738 fi
15739 fi
15740
15741 if test $HAVE_UNAME=yes -a x`uname -s` = xFreeBSD
15742 then
15743
15744
15745 if $TRUEPRG; then
15746   HAVE_FREEBSD_OS_TRUE=
15747   HAVE_FREEBSD_OS_FALSE='#'
15748 else
15749   HAVE_FREEBSD_OS_TRUE='#'
15750   HAVE_FREEBSD_OS_FALSE=
15751 fi
15752         $as_echo "#define HAVE_FREEBSD_OS 1" >>confdefs.h
15753
15754 else
15755
15756
15757 if $FALSEPRG; then
15758   HAVE_FREEBSD_OS_TRUE=
15759   HAVE_FREEBSD_OS_FALSE='#'
15760 else
15761   HAVE_FREEBSD_OS_TRUE='#'
15762   HAVE_FREEBSD_OS_FALSE=
15763 fi
15764 fi
15765
15766 if test $HAVE_UNAME=yes -a x`uname -s` = xNetBSD
15767 then
15768
15769
15770 if $TRUEPRG; then
15771   HAVE_NETBSD_OS_TRUE=
15772   HAVE_NETBSD_OS_FALSE='#'
15773 else
15774   HAVE_NETBSD_OS_TRUE='#'
15775   HAVE_NETBSD_OS_FALSE=
15776 fi
15777         $as_echo "#define HAVE_NETBSD_OS 1" >>confdefs.h
15778
15779 else
15780
15781
15782 if $FALSEPRG; then
15783   HAVE_NETBSD_OS_TRUE=
15784   HAVE_NETBSD_OS_FALSE='#'
15785 else
15786   HAVE_NETBSD_OS_TRUE='#'
15787   HAVE_NETBSD_OS_FALSE=
15788 fi
15789 fi
15790
15791 if test $HAVE_UNAME=yes -a x`uname -s` = xOpenBSD
15792 then
15793
15794
15795 if $TRUEPRG; then
15796   HAVE_OPENBSD_OS_TRUE=
15797   HAVE_OPENBSD_OS_FALSE='#'
15798 else
15799   HAVE_OPENBSD_OS_TRUE='#'
15800   HAVE_OPENBSD_OS_FALSE=
15801 fi
15802         $as_echo "#define HAVE_OPENBSD_OS 1" >>confdefs.h
15803
15804 else
15805
15806
15807 if $FALSEPRG; then
15808   HAVE_OPENBSD_OS_TRUE=
15809   HAVE_OPENBSD_OS_FALSE='#'
15810 else
15811   HAVE_OPENBSD_OS_TRUE='#'
15812   HAVE_OPENBSD_OS_FALSE=
15813 fi
15814 fi
15815
15816 if test $HAVE_UNAME=yes -a x`uname -s` = xBSD/OS
15817 then
15818
15819
15820 if $TRUEPRG; then
15821   HAVE_BSDI_OS_TRUE=
15822   HAVE_BSDI_OS_FALSE='#'
15823 else
15824   HAVE_BSDI_OS_TRUE='#'
15825   HAVE_BSDI_OS_FALSE=
15826 fi
15827         $as_echo "#define HAVE_BSDI_OS 1" >>confdefs.h
15828
15829 else
15830
15831
15832 if $FALSEPRG; then
15833   HAVE_BSDI_OS_TRUE=
15834   HAVE_BSDI_OS_FALSE='#'
15835 else
15836   HAVE_BSDI_OS_TRUE='#'
15837   HAVE_BSDI_OS_FALSE=
15838 fi
15839 fi
15840
15841 if test $HAVE_UNAME=yes -a x`uname -s` = xSGI
15842 then
15843
15844
15845 if $TRUEPRG; then
15846   HAVE_SGI_OS_TRUE=
15847   HAVE_SGI_OS_FALSE='#'
15848 else
15849   HAVE_SGI_OS_TRUE='#'
15850   HAVE_SGI_OS_FALSE=
15851 fi
15852         $as_echo "#define HAVE_SGI_OS 1" >>confdefs.h
15853
15854 else
15855
15856
15857 if $FALSEPRG; then
15858   HAVE_SGI_OS_TRUE=
15859   HAVE_SGI_OS_FALSE='#'
15860 else
15861   HAVE_SGI_OS_TRUE='#'
15862   HAVE_SGI_OS_FALSE=
15863 fi
15864 fi
15865
15866 if test $HAVE_UNAME=yes -a x`uname -s` = xIRIX -o x`uname -s` = xIRIX64
15867 then
15868
15869
15870 if $TRUEPRG; then
15871   HAVE_IRIX_OS_TRUE=
15872   HAVE_IRIX_OS_FALSE='#'
15873 else
15874   HAVE_IRIX_OS_TRUE='#'
15875   HAVE_IRIX_OS_FALSE=
15876 fi
15877         $as_echo "#define HAVE_IRIX_OS 1" >>confdefs.h
15878
15879 else
15880
15881
15882 if $FALSEPRG; then
15883   HAVE_IRIX_OS_TRUE=
15884   HAVE_IRIX_OS_FALSE='#'
15885 else
15886   HAVE_IRIX_OS_TRUE='#'
15887   HAVE_IRIX_OS_FALSE=
15888 fi
15889 fi
15890
15891 if test $HAVE_UNAME=yes -a x`uname -s` = xDarwin
15892 then
15893
15894
15895 if $TRUEPRG; then
15896   HAVE_DARWIN_OS_TRUE=
15897   HAVE_DARWIN_OS_FALSE='#'
15898 else
15899   HAVE_DARWIN_OS_TRUE='#'
15900   HAVE_DARWIN_OS_FALSE=
15901 fi
15902     $as_echo "#define HAVE_DARWIN_OS 1" >>confdefs.h
15903
15904 else
15905
15906
15907 if $FALSEPRG; then
15908   HAVE_DARWIN_OS_TRUE=
15909   HAVE_DARWIN_OS_FALSE='#'
15910 else
15911   HAVE_DARWIN_OS_TRUE='#'
15912   HAVE_DARWIN_OS_FALSE=
15913 fi
15914 fi
15915
15916
15917 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Operating System Distribution" >&5
15918 $as_echo_n "checking for Operating System Distribution... " >&6; }
15919 if test "x$DISTNAME" != "x"
15920 then
15921         echo "distname set to $DISTNAME"
15922 elif test $HAVE_UNAME=yes -a x`uname -s` = xOSF1
15923 then
15924         DISTNAME=alpha
15925 elif test $HAVE_UNAME=yes -a x`uname -s` = xAIX
15926 then
15927         DISTNAME=aix
15928 elif test $HAVE_UNAME=yes -a x`uname -s` = xHP-UX
15929 then
15930         DISTNAME=hpux
15931 elif test $HAVE_UNAME=yes -a x`uname -s` = xSunOS
15932 then
15933         DISTNAME=solaris
15934 elif test $HAVE_UNAME=yes -a x`uname -s` = xFreeBSD
15935 then
15936         DISTNAME=freebsd
15937 elif test $HAVE_UNAME=yes -a x`uname -s` = xNetBSD
15938 then
15939         DISTNAME=netbsd
15940 elif test $HAVE_UNAME=yes -a x`uname -s` = xOpenBSD
15941 then
15942         DISTNAME=openbsd
15943 elif test $HAVE_UNAME=yes -a x`uname -s` = xIRIX
15944 then
15945         DISTNAME=irix
15946 elif test $HAVE_UNAME=yes -a x`uname -s` = xBSD/OS
15947 then
15948         DISTNAME=bsdi
15949 elif test -f /etc/SuSE-release
15950 then
15951         DISTNAME=suse
15952 elif test -d /etc/SuSEconfig
15953 then
15954         DISTNAME=suse5
15955 elif test -f /etc/mandrake-release
15956 then
15957         DISTNAME=mandrake
15958 elif test -f /etc/whitebox-release
15959 then
15960        DISTNAME=redhat
15961 elif test -f /etc/redhat-release
15962 then
15963         DISTNAME=redhat
15964 elif test -f /etc/gentoo-release
15965 then
15966         DISTNAME=gentoo
15967 elif test -f /etc/debian_version
15968 then
15969         DISTNAME=debian
15970 elif test -f /etc/slackware-version
15971 then
15972         DISTNAME=slackware
15973 elif test x$host_vendor = xapple
15974 then
15975     DISTNAME=osx
15976 elif test $HAVE_UNAME=yes -a x`uname -s` = xDarwin
15977 then
15978     DISTNAME=darwin
15979 elif test -f /etc/engarde-version
15980 then
15981         DISTNAME=engarde
15982 elif test -f /etc/arch-release
15983 then
15984         DISTNAME=archlinux
15985 elif test "$CYGWIN" = yes
15986 then
15987         DISTNAME=cygwin
15988         $as_echo "#define HAVE_CYGWIN 1" >>confdefs.h
15989
15990 else
15991         DISTNAME=unknown
15992 fi
15993 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
15994 $as_echo "done" >&6; }
15995
15996
15997 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
15998 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
15999 set x ${MAKE-make}
16000 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
16001 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
16002   $as_echo_n "(cached) " >&6
16003 else
16004   cat >conftest.make <<\_ACEOF
16005 SHELL = /bin/sh
16006 all:
16007         @echo '@@@%%%=$(MAKE)=@@@%%%'
16008 _ACEOF
16009 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
16010 case `${MAKE-make} -f conftest.make 2>/dev/null` in
16011   *@@@%%%=?*=@@@%%%*)
16012     eval ac_cv_prog_make_${ac_make}_set=yes;;
16013   *)
16014     eval ac_cv_prog_make_${ac_make}_set=no;;
16015 esac
16016 rm -f conftest.make
16017 fi
16018 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
16019   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16020 $as_echo "yes" >&6; }
16021   SET_MAKE=
16022 else
16023   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16024 $as_echo "no" >&6; }
16025   SET_MAKE="MAKE=${MAKE-make}"
16026 fi
16027
16028
16029
16030         MKINSTALLDIRS=
16031   if test -n "$ac_aux_dir"; then
16032     case "$ac_aux_dir" in
16033       /*) MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs" ;;
16034       *) MKINSTALLDIRS="\$(top_builddir)/$ac_aux_dir/mkinstalldirs" ;;
16035     esac
16036   fi
16037   if test -z "$MKINSTALLDIRS"; then
16038     MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs"
16039   fi
16040
16041
16042
16043   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
16044 $as_echo_n "checking whether NLS is requested... " >&6; }
16045     # Check whether --enable-nls was given.
16046 if test "${enable_nls+set}" = set; then :
16047   enableval=$enable_nls; USE_NLS=$enableval
16048 else
16049   USE_NLS=yes
16050 fi
16051
16052   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
16053 $as_echo "$USE_NLS" >&6; }
16054
16055
16056
16057
16058
16059
16060 # Prepare PATH_SEPARATOR.
16061 # The user is always right.
16062 if test "${PATH_SEPARATOR+set}" != set; then
16063   echo "#! /bin/sh" >conf$$.sh
16064   echo  "exit 0"   >>conf$$.sh
16065   chmod +x conf$$.sh
16066   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
16067     PATH_SEPARATOR=';'
16068   else
16069     PATH_SEPARATOR=:
16070   fi
16071   rm -f conf$$.sh
16072 fi
16073
16074 # Find out how to test for executable files. Don't use a zero-byte file,
16075 # as systems may use methods other than mode bits to determine executability.
16076 cat >conf$$.file <<_ASEOF
16077 #! /bin/sh
16078 exit 0
16079 _ASEOF
16080 chmod +x conf$$.file
16081 if test -x conf$$.file >/dev/null 2>&1; then
16082   ac_executable_p="test -x"
16083 else
16084   ac_executable_p="test -f"
16085 fi
16086 rm -f conf$$.file
16087
16088 # Extract the first word of "msgfmt", so it can be a program name with args.
16089 set dummy msgfmt; ac_word=$2
16090 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16091 $as_echo_n "checking for $ac_word... " >&6; }
16092 if test "${ac_cv_path_MSGFMT+set}" = set; then :
16093   $as_echo_n "(cached) " >&6
16094 else
16095   case "$MSGFMT" in
16096   [\\/]* | ?:[\\/]*)
16097     ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
16098     ;;
16099   *)
16100     ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
16101     for ac_dir in $PATH; do
16102       IFS="$ac_save_IFS"
16103       test -z "$ac_dir" && ac_dir=.
16104       for ac_exec_ext in '' $ac_executable_extensions; do
16105         if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
16106           echo "$as_me: trying $ac_dir/$ac_word..." >&5
16107           if $ac_dir/$ac_word --statistics /dev/null >&5 2>&1 &&
16108      (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
16109             ac_cv_path_MSGFMT="$ac_dir/$ac_word$ac_exec_ext"
16110             break 2
16111           fi
16112         fi
16113       done
16114     done
16115     IFS="$ac_save_IFS"
16116   test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
16117     ;;
16118 esac
16119 fi
16120 MSGFMT="$ac_cv_path_MSGFMT"
16121 if test "$MSGFMT" != ":"; then
16122   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGFMT" >&5
16123 $as_echo "$MSGFMT" >&6; }
16124 else
16125   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16126 $as_echo "no" >&6; }
16127 fi
16128
16129   # Extract the first word of "gmsgfmt", so it can be a program name with args.
16130 set dummy gmsgfmt; ac_word=$2
16131 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16132 $as_echo_n "checking for $ac_word... " >&6; }
16133 if test "${ac_cv_path_GMSGFMT+set}" = set; then :
16134   $as_echo_n "(cached) " >&6
16135 else
16136   case $GMSGFMT in
16137   [\\/]* | ?:[\\/]*)
16138   ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
16139   ;;
16140   *)
16141   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16142 for as_dir in $PATH
16143 do
16144   IFS=$as_save_IFS
16145   test -z "$as_dir" && as_dir=.
16146     for ac_exec_ext in '' $ac_executable_extensions; do
16147   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
16148     ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
16149     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16150     break 2
16151   fi
16152 done
16153   done
16154 IFS=$as_save_IFS
16155
16156   test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
16157   ;;
16158 esac
16159 fi
16160 GMSGFMT=$ac_cv_path_GMSGFMT
16161 if test -n "$GMSGFMT"; then
16162   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GMSGFMT" >&5
16163 $as_echo "$GMSGFMT" >&6; }
16164 else
16165   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16166 $as_echo "no" >&6; }
16167 fi
16168
16169
16170
16171
16172 # Prepare PATH_SEPARATOR.
16173 # The user is always right.
16174 if test "${PATH_SEPARATOR+set}" != set; then
16175   echo "#! /bin/sh" >conf$$.sh
16176   echo  "exit 0"   >>conf$$.sh
16177   chmod +x conf$$.sh
16178   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
16179     PATH_SEPARATOR=';'
16180   else
16181     PATH_SEPARATOR=:
16182   fi
16183   rm -f conf$$.sh
16184 fi
16185
16186 # Find out how to test for executable files. Don't use a zero-byte file,
16187 # as systems may use methods other than mode bits to determine executability.
16188 cat >conf$$.file <<_ASEOF
16189 #! /bin/sh
16190 exit 0
16191 _ASEOF
16192 chmod +x conf$$.file
16193 if test -x conf$$.file >/dev/null 2>&1; then
16194   ac_executable_p="test -x"
16195 else
16196   ac_executable_p="test -f"
16197 fi
16198 rm -f conf$$.file
16199
16200 # Extract the first word of "xgettext", so it can be a program name with args.
16201 set dummy xgettext; ac_word=$2
16202 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16203 $as_echo_n "checking for $ac_word... " >&6; }
16204 if test "${ac_cv_path_XGETTEXT+set}" = set; then :
16205   $as_echo_n "(cached) " >&6
16206 else
16207   case "$XGETTEXT" in
16208   [\\/]* | ?:[\\/]*)
16209     ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
16210     ;;
16211   *)
16212     ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
16213     for ac_dir in $PATH; do
16214       IFS="$ac_save_IFS"
16215       test -z "$ac_dir" && ac_dir=.
16216       for ac_exec_ext in '' $ac_executable_extensions; do
16217         if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
16218           echo "$as_me: trying $ac_dir/$ac_word..." >&5
16219           if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >&5 2>&1 &&
16220      (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
16221             ac_cv_path_XGETTEXT="$ac_dir/$ac_word$ac_exec_ext"
16222             break 2
16223           fi
16224         fi
16225       done
16226     done
16227     IFS="$ac_save_IFS"
16228   test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
16229     ;;
16230 esac
16231 fi
16232 XGETTEXT="$ac_cv_path_XGETTEXT"
16233 if test "$XGETTEXT" != ":"; then
16234   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XGETTEXT" >&5
16235 $as_echo "$XGETTEXT" >&6; }
16236 else
16237   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16238 $as_echo "no" >&6; }
16239 fi
16240
16241     rm -f messages.po
16242
16243
16244 # Prepare PATH_SEPARATOR.
16245 # The user is always right.
16246 if test "${PATH_SEPARATOR+set}" != set; then
16247   echo "#! /bin/sh" >conf$$.sh
16248   echo  "exit 0"   >>conf$$.sh
16249   chmod +x conf$$.sh
16250   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
16251     PATH_SEPARATOR=';'
16252   else
16253     PATH_SEPARATOR=:
16254   fi
16255   rm -f conf$$.sh
16256 fi
16257
16258 # Find out how to test for executable files. Don't use a zero-byte file,
16259 # as systems may use methods other than mode bits to determine executability.
16260 cat >conf$$.file <<_ASEOF
16261 #! /bin/sh
16262 exit 0
16263 _ASEOF
16264 chmod +x conf$$.file
16265 if test -x conf$$.file >/dev/null 2>&1; then
16266   ac_executable_p="test -x"
16267 else
16268   ac_executable_p="test -f"
16269 fi
16270 rm -f conf$$.file
16271
16272 # Extract the first word of "msgmerge", so it can be a program name with args.
16273 set dummy msgmerge; ac_word=$2
16274 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16275 $as_echo_n "checking for $ac_word... " >&6; }
16276 if test "${ac_cv_path_MSGMERGE+set}" = set; then :
16277   $as_echo_n "(cached) " >&6
16278 else
16279   case "$MSGMERGE" in
16280   [\\/]* | ?:[\\/]*)
16281     ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path.
16282     ;;
16283   *)
16284     ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
16285     for ac_dir in $PATH; do
16286       IFS="$ac_save_IFS"
16287       test -z "$ac_dir" && ac_dir=.
16288       for ac_exec_ext in '' $ac_executable_extensions; do
16289         if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
16290           echo "$as_me: trying $ac_dir/$ac_word..." >&5
16291           if $ac_dir/$ac_word --update -q /dev/null /dev/null >&5 2>&1; then
16292             ac_cv_path_MSGMERGE="$ac_dir/$ac_word$ac_exec_ext"
16293             break 2
16294           fi
16295         fi
16296       done
16297     done
16298     IFS="$ac_save_IFS"
16299   test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":"
16300     ;;
16301 esac
16302 fi
16303 MSGMERGE="$ac_cv_path_MSGMERGE"
16304 if test "$MSGMERGE" != ":"; then
16305   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGMERGE" >&5
16306 $as_echo "$MSGMERGE" >&6; }
16307 else
16308   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16309 $as_echo "no" >&6; }
16310 fi
16311
16312
16313       if test "$GMSGFMT" != ":"; then
16314             if $GMSGFMT --statistics /dev/null >/dev/null 2>&1 &&
16315        (if $GMSGFMT --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
16316       : ;
16317     else
16318       GMSGFMT=`echo "$GMSGFMT" | sed -e 's,^.*/,,'`
16319       { $as_echo "$as_me:${as_lineno-$LINENO}: result: found $GMSGFMT program is not GNU msgfmt; ignore it" >&5
16320 $as_echo "found $GMSGFMT program is not GNU msgfmt; ignore it" >&6; }
16321       GMSGFMT=":"
16322     fi
16323   fi
16324
16325       if test "$XGETTEXT" != ":"; then
16326             if $XGETTEXT --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 &&
16327        (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
16328       : ;
16329     else
16330       { $as_echo "$as_me:${as_lineno-$LINENO}: result: found xgettext program is not GNU xgettext; ignore it" >&5
16331 $as_echo "found xgettext program is not GNU xgettext; ignore it" >&6; }
16332       XGETTEXT=":"
16333     fi
16334         rm -f messages.po
16335   fi
16336
16337   ac_config_commands="$ac_config_commands default-1"
16338
16339
16340
16341       if test "X$prefix" = "XNONE"; then
16342     acl_final_prefix="$ac_default_prefix"
16343   else
16344     acl_final_prefix="$prefix"
16345   fi
16346   if test "X$exec_prefix" = "XNONE"; then
16347     acl_final_exec_prefix='${prefix}'
16348   else
16349     acl_final_exec_prefix="$exec_prefix"
16350   fi
16351   acl_save_prefix="$prefix"
16352   prefix="$acl_final_prefix"
16353   eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
16354   prefix="$acl_save_prefix"
16355
16356
16357 # Check whether --with-gnu-ld was given.
16358 if test "${with_gnu_ld+set}" = set; then :
16359   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
16360 else
16361   with_gnu_ld=no
16362 fi
16363
16364 # Prepare PATH_SEPARATOR.
16365 # The user is always right.
16366 if test "${PATH_SEPARATOR+set}" != set; then
16367   echo "#! /bin/sh" >conf$$.sh
16368   echo  "exit 0"   >>conf$$.sh
16369   chmod +x conf$$.sh
16370   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
16371     PATH_SEPARATOR=';'
16372   else
16373     PATH_SEPARATOR=:
16374   fi
16375   rm -f conf$$.sh
16376 fi
16377 ac_prog=ld
16378 if test "$GCC" = yes; then
16379   # Check if gcc -print-prog-name=ld gives a path.
16380   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by GCC" >&5
16381 $as_echo_n "checking for ld used by GCC... " >&6; }
16382   case $host in
16383   *-*-mingw*)
16384     # gcc leaves a trailing carriage return which upsets mingw
16385     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
16386   *)
16387     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
16388   esac
16389   case $ac_prog in
16390     # Accept absolute paths.
16391     [\\/]* | [A-Za-z]:[\\/]*)
16392       re_direlt='/[^/][^/]*/\.\./'
16393       # Canonicalize the path of ld
16394       ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
16395       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
16396         ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
16397       done
16398       test -z "$LD" && LD="$ac_prog"
16399       ;;
16400   "")
16401     # If it fails, then pretend we aren't using GCC.
16402     ac_prog=ld
16403     ;;
16404   *)
16405     # If it is relative, then search for the first ld in PATH.
16406     with_gnu_ld=unknown
16407     ;;
16408   esac
16409 elif test "$with_gnu_ld" = yes; then
16410   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
16411 $as_echo_n "checking for GNU ld... " >&6; }
16412 else
16413   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
16414 $as_echo_n "checking for non-GNU ld... " >&6; }
16415 fi
16416 if test "${acl_cv_path_LD+set}" = set; then :
16417   $as_echo_n "(cached) " >&6
16418 else
16419   if test -z "$LD"; then
16420   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
16421   for ac_dir in $PATH; do
16422     test -z "$ac_dir" && ac_dir=.
16423     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
16424       acl_cv_path_LD="$ac_dir/$ac_prog"
16425       # Check to see if the program is GNU ld.  I'd rather use --version,
16426       # but apparently some GNU ld's only accept -v.
16427       # Break only if it was the GNU/non-GNU ld that we prefer.
16428       case `"$acl_cv_path_LD" -v 2>&1 < /dev/null` in
16429       *GNU* | *'with BFD'*)
16430         test "$with_gnu_ld" != no && break ;;
16431       *)
16432         test "$with_gnu_ld" != yes && break ;;
16433       esac
16434     fi
16435   done
16436   IFS="$ac_save_ifs"
16437 else
16438   acl_cv_path_LD="$LD" # Let the user override the test with a path.
16439 fi
16440 fi
16441
16442 LD="$acl_cv_path_LD"
16443 if test -n "$LD"; then
16444   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
16445 $as_echo "$LD" >&6; }
16446 else
16447   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16448 $as_echo "no" >&6; }
16449 fi
16450 test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
16451 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
16452 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
16453 if test "${acl_cv_prog_gnu_ld+set}" = set; then :
16454   $as_echo_n "(cached) " >&6
16455 else
16456   # I'd rather use --version here, but apparently some GNU ld's only accept -v.
16457 case `$LD -v 2>&1 </dev/null` in
16458 *GNU* | *'with BFD'*)
16459   acl_cv_prog_gnu_ld=yes ;;
16460 *)
16461   acl_cv_prog_gnu_ld=no ;;
16462 esac
16463 fi
16464 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_prog_gnu_ld" >&5
16465 $as_echo "$acl_cv_prog_gnu_ld" >&6; }
16466 with_gnu_ld=$acl_cv_prog_gnu_ld
16467
16468
16469
16470
16471                                                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shared library run path origin" >&5
16472 $as_echo_n "checking for shared library run path origin... " >&6; }
16473 if test "${acl_cv_rpath+set}" = set; then :
16474   $as_echo_n "(cached) " >&6
16475 else
16476
16477     CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
16478     ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
16479     . ./conftest.sh
16480     rm -f ./conftest.sh
16481     acl_cv_rpath=done
16482
16483 fi
16484 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_rpath" >&5
16485 $as_echo "$acl_cv_rpath" >&6; }
16486   wl="$acl_cv_wl"
16487   libext="$acl_cv_libext"
16488   shlibext="$acl_cv_shlibext"
16489   hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
16490   hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
16491   hardcode_direct="$acl_cv_hardcode_direct"
16492   hardcode_minus_L="$acl_cv_hardcode_minus_L"
16493     # Check whether --enable-rpath was given.
16494 if test "${enable_rpath+set}" = set; then :
16495   enableval=$enable_rpath; :
16496 else
16497   enable_rpath=yes
16498 fi
16499
16500
16501
16502
16503
16504
16505
16506
16507     use_additional=yes
16508
16509   acl_save_prefix="$prefix"
16510   prefix="$acl_final_prefix"
16511   acl_save_exec_prefix="$exec_prefix"
16512   exec_prefix="$acl_final_exec_prefix"
16513
16514     eval additional_includedir=\"$includedir\"
16515     eval additional_libdir=\"$libdir\"
16516
16517   exec_prefix="$acl_save_exec_prefix"
16518   prefix="$acl_save_prefix"
16519
16520
16521 # Check whether --with-libiconv-prefix was given.
16522 if test "${with_libiconv_prefix+set}" = set; then :
16523   withval=$with_libiconv_prefix;
16524     if test "X$withval" = "Xno"; then
16525       use_additional=no
16526     else
16527       if test "X$withval" = "X"; then
16528
16529   acl_save_prefix="$prefix"
16530   prefix="$acl_final_prefix"
16531   acl_save_exec_prefix="$exec_prefix"
16532   exec_prefix="$acl_final_exec_prefix"
16533
16534           eval additional_includedir=\"$includedir\"
16535           eval additional_libdir=\"$libdir\"
16536
16537   exec_prefix="$acl_save_exec_prefix"
16538   prefix="$acl_save_prefix"
16539
16540       else
16541         additional_includedir="$withval/include"
16542         additional_libdir="$withval/lib"
16543       fi
16544     fi
16545
16546 fi
16547
16548       LIBICONV=
16549   LTLIBICONV=
16550   INCICONV=
16551   rpathdirs=
16552   ltrpathdirs=
16553   names_already_handled=
16554   names_next_round='iconv '
16555   while test -n "$names_next_round"; do
16556     names_this_round="$names_next_round"
16557     names_next_round=
16558     for name in $names_this_round; do
16559       already_handled=
16560       for n in $names_already_handled; do
16561         if test "$n" = "$name"; then
16562           already_handled=yes
16563           break
16564         fi
16565       done
16566       if test -z "$already_handled"; then
16567         names_already_handled="$names_already_handled $name"
16568                         uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
16569         eval value=\"\$HAVE_LIB$uppername\"
16570         if test -n "$value"; then
16571           if test "$value" = yes; then
16572             eval value=\"\$LIB$uppername\"
16573             test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
16574             eval value=\"\$LTLIB$uppername\"
16575             test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
16576           else
16577                                     :
16578           fi
16579         else
16580                               found_dir=
16581           found_la=
16582           found_so=
16583           found_a=
16584           if test $use_additional = yes; then
16585             if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
16586               found_dir="$additional_libdir"
16587               found_so="$additional_libdir/lib$name.$shlibext"
16588               if test -f "$additional_libdir/lib$name.la"; then
16589                 found_la="$additional_libdir/lib$name.la"
16590               fi
16591             else
16592               if test -f "$additional_libdir/lib$name.$libext"; then
16593                 found_dir="$additional_libdir"
16594                 found_a="$additional_libdir/lib$name.$libext"
16595                 if test -f "$additional_libdir/lib$name.la"; then
16596                   found_la="$additional_libdir/lib$name.la"
16597                 fi
16598               fi
16599             fi
16600           fi
16601           if test "X$found_dir" = "X"; then
16602             for x in $LDFLAGS $LTLIBICONV; do
16603
16604   acl_save_prefix="$prefix"
16605   prefix="$acl_final_prefix"
16606   acl_save_exec_prefix="$exec_prefix"
16607   exec_prefix="$acl_final_exec_prefix"
16608   eval x=\"$x\"
16609   exec_prefix="$acl_save_exec_prefix"
16610   prefix="$acl_save_prefix"
16611
16612               case "$x" in
16613                 -L*)
16614                   dir=`echo "X$x" | sed -e 's/^X-L//'`
16615                   if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
16616                     found_dir="$dir"
16617                     found_so="$dir/lib$name.$shlibext"
16618                     if test -f "$dir/lib$name.la"; then
16619                       found_la="$dir/lib$name.la"
16620                     fi
16621                   else
16622                     if test -f "$dir/lib$name.$libext"; then
16623                       found_dir="$dir"
16624                       found_a="$dir/lib$name.$libext"
16625                       if test -f "$dir/lib$name.la"; then
16626                         found_la="$dir/lib$name.la"
16627                       fi
16628                     fi
16629                   fi
16630                   ;;
16631               esac
16632               if test "X$found_dir" != "X"; then
16633                 break
16634               fi
16635             done
16636           fi
16637           if test "X$found_dir" != "X"; then
16638                         LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
16639             if test "X$found_so" != "X"; then
16640                                                         if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
16641                                 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
16642               else
16643                                                                                 haveit=
16644                 for x in $ltrpathdirs; do
16645                   if test "X$x" = "X$found_dir"; then
16646                     haveit=yes
16647                     break
16648                   fi
16649                 done
16650                 if test -z "$haveit"; then
16651                   ltrpathdirs="$ltrpathdirs $found_dir"
16652                 fi
16653                                 if test "$hardcode_direct" = yes; then
16654                                                       LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
16655                 else
16656                   if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
16657                                                             LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
16658                                                             haveit=
16659                     for x in $rpathdirs; do
16660                       if test "X$x" = "X$found_dir"; then
16661                         haveit=yes
16662                         break
16663                       fi
16664                     done
16665                     if test -z "$haveit"; then
16666                       rpathdirs="$rpathdirs $found_dir"
16667                     fi
16668                   else
16669                                                                                 haveit=
16670                     for x in $LDFLAGS $LIBICONV; do
16671
16672   acl_save_prefix="$prefix"
16673   prefix="$acl_final_prefix"
16674   acl_save_exec_prefix="$exec_prefix"
16675   exec_prefix="$acl_final_exec_prefix"
16676   eval x=\"$x\"
16677   exec_prefix="$acl_save_exec_prefix"
16678   prefix="$acl_save_prefix"
16679
16680                       if test "X$x" = "X-L$found_dir"; then
16681                         haveit=yes
16682                         break
16683                       fi
16684                     done
16685                     if test -z "$haveit"; then
16686                       LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
16687                     fi
16688                     if test "$hardcode_minus_L" != no; then
16689                                                                                         LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
16690                     else
16691                                                                                                                                                                                 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
16692                     fi
16693                   fi
16694                 fi
16695               fi
16696             else
16697               if test "X$found_a" != "X"; then
16698                                 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
16699               else
16700                                                 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
16701               fi
16702             fi
16703                         additional_includedir=
16704             case "$found_dir" in
16705               */lib | */lib/)
16706                 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
16707                 additional_includedir="$basedir/include"
16708                 ;;
16709             esac
16710             if test "X$additional_includedir" != "X"; then
16711                                                                                                                 if test "X$additional_includedir" != "X/usr/include"; then
16712                 haveit=
16713                 if test "X$additional_includedir" = "X/usr/local/include"; then
16714                   if test -n "$GCC"; then
16715                     case $host_os in
16716                       linux* | gnu* | k*bsd*-gnu) haveit=yes;;
16717                     esac
16718                   fi
16719                 fi
16720                 if test -z "$haveit"; then
16721                   for x in $CPPFLAGS $INCICONV; do
16722
16723   acl_save_prefix="$prefix"
16724   prefix="$acl_final_prefix"
16725   acl_save_exec_prefix="$exec_prefix"
16726   exec_prefix="$acl_final_exec_prefix"
16727   eval x=\"$x\"
16728   exec_prefix="$acl_save_exec_prefix"
16729   prefix="$acl_save_prefix"
16730
16731                     if test "X$x" = "X-I$additional_includedir"; then
16732                       haveit=yes
16733                       break
16734                     fi
16735                   done
16736                   if test -z "$haveit"; then
16737                     if test -d "$additional_includedir"; then
16738                                             INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
16739                     fi
16740                   fi
16741                 fi
16742               fi
16743             fi
16744                         if test -n "$found_la"; then
16745                                                         save_libdir="$libdir"
16746               case "$found_la" in
16747                 */* | *\\*) . "$found_la" ;;
16748                 *) . "./$found_la" ;;
16749               esac
16750               libdir="$save_libdir"
16751                             for dep in $dependency_libs; do
16752                 case "$dep" in
16753                   -L*)
16754                     additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
16755                                                                                                                                                                 if test "X$additional_libdir" != "X/usr/lib"; then
16756                       haveit=
16757                       if test "X$additional_libdir" = "X/usr/local/lib"; then
16758                         if test -n "$GCC"; then
16759                           case $host_os in
16760                             linux* | gnu* | k*bsd*-gnu) haveit=yes;;
16761                           esac
16762                         fi
16763                       fi
16764                       if test -z "$haveit"; then
16765                         haveit=
16766                         for x in $LDFLAGS $LIBICONV; do
16767
16768   acl_save_prefix="$prefix"
16769   prefix="$acl_final_prefix"
16770   acl_save_exec_prefix="$exec_prefix"
16771   exec_prefix="$acl_final_exec_prefix"
16772   eval x=\"$x\"
16773   exec_prefix="$acl_save_exec_prefix"
16774   prefix="$acl_save_prefix"
16775
16776                           if test "X$x" = "X-L$additional_libdir"; then
16777                             haveit=yes
16778                             break
16779                           fi
16780                         done
16781                         if test -z "$haveit"; then
16782                           if test -d "$additional_libdir"; then
16783                                                         LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
16784                           fi
16785                         fi
16786                         haveit=
16787                         for x in $LDFLAGS $LTLIBICONV; do
16788
16789   acl_save_prefix="$prefix"
16790   prefix="$acl_final_prefix"
16791   acl_save_exec_prefix="$exec_prefix"
16792   exec_prefix="$acl_final_exec_prefix"
16793   eval x=\"$x\"
16794   exec_prefix="$acl_save_exec_prefix"
16795   prefix="$acl_save_prefix"
16796
16797                           if test "X$x" = "X-L$additional_libdir"; then
16798                             haveit=yes
16799                             break
16800                           fi
16801                         done
16802                         if test -z "$haveit"; then
16803                           if test -d "$additional_libdir"; then
16804                                                         LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
16805                           fi
16806                         fi
16807                       fi
16808                     fi
16809                     ;;
16810                   -R*)
16811                     dir=`echo "X$dep" | sed -e 's/^X-R//'`
16812                     if test "$enable_rpath" != no; then
16813                                                                   haveit=
16814                       for x in $rpathdirs; do
16815                         if test "X$x" = "X$dir"; then
16816                           haveit=yes
16817                           break
16818                         fi
16819                       done
16820                       if test -z "$haveit"; then
16821                         rpathdirs="$rpathdirs $dir"
16822                       fi
16823                                                                   haveit=
16824                       for x in $ltrpathdirs; do
16825                         if test "X$x" = "X$dir"; then
16826                           haveit=yes
16827                           break
16828                         fi
16829                       done
16830                       if test -z "$haveit"; then
16831                         ltrpathdirs="$ltrpathdirs $dir"
16832                       fi
16833                     fi
16834                     ;;
16835                   -l*)
16836                                         names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
16837                     ;;
16838                   *.la)
16839                                                                                 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
16840                     ;;
16841                   *)
16842                                         LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
16843                     LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
16844                     ;;
16845                 esac
16846               done
16847             fi
16848           else
16849                                                             LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
16850             LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
16851           fi
16852         fi
16853       fi
16854     done
16855   done
16856   if test "X$rpathdirs" != "X"; then
16857     if test -n "$hardcode_libdir_separator"; then
16858                         alldirs=
16859       for found_dir in $rpathdirs; do
16860         alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
16861       done
16862             acl_save_libdir="$libdir"
16863       libdir="$alldirs"
16864       eval flag=\"$hardcode_libdir_flag_spec\"
16865       libdir="$acl_save_libdir"
16866       LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
16867     else
16868             for found_dir in $rpathdirs; do
16869         acl_save_libdir="$libdir"
16870         libdir="$found_dir"
16871         eval flag=\"$hardcode_libdir_flag_spec\"
16872         libdir="$acl_save_libdir"
16873         LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
16874       done
16875     fi
16876   fi
16877   if test "X$ltrpathdirs" != "X"; then
16878             for found_dir in $ltrpathdirs; do
16879       LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
16880     done
16881   fi
16882
16883
16884
16885
16886
16887
16888
16889
16890
16891
16892
16893
16894
16895
16896
16897
16898
16899
16900     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFPreferencesCopyAppValue" >&5
16901 $as_echo_n "checking for CFPreferencesCopyAppValue... " >&6; }
16902 if test "${gt_cv_func_CFPreferencesCopyAppValue+set}" = set; then :
16903   $as_echo_n "(cached) " >&6
16904 else
16905   gt_save_CPPFLAGS="$CPPFLAGS"
16906      CPPFLAGS="$CPPFLAGS -I/System/Library/Frameworks/CoreFoundation.framework/Headers"
16907      gt_save_LIBS="$LIBS"
16908      LIBS="$LIBS -framework CoreFoundation"
16909      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16910 /* end confdefs.h.  */
16911 #include <CFPreferences.h>
16912 int
16913 main ()
16914 {
16915 CFPreferencesCopyAppValue(NULL, NULL)
16916   ;
16917   return 0;
16918 }
16919 _ACEOF
16920 if ac_fn_c_try_link "$LINENO"; then :
16921   gt_cv_func_CFPreferencesCopyAppValue=yes
16922 else
16923   gt_cv_func_CFPreferencesCopyAppValue=no
16924 fi
16925 rm -f core conftest.err conftest.$ac_objext \
16926     conftest$ac_exeext conftest.$ac_ext
16927      CPPFLAGS="$gt_save_CPPFLAGS"
16928      LIBS="$gt_save_LIBS"
16929 fi
16930 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFPreferencesCopyAppValue" >&5
16931 $as_echo "$gt_cv_func_CFPreferencesCopyAppValue" >&6; }
16932   if test $gt_cv_func_CFPreferencesCopyAppValue = yes; then
16933
16934 $as_echo "#define HAVE_CFPREFERENCESCOPYAPPVALUE 1" >>confdefs.h
16935
16936   fi
16937     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFLocaleCopyCurrent" >&5
16938 $as_echo_n "checking for CFLocaleCopyCurrent... " >&6; }
16939 if test "${gt_cv_func_CFLocaleCopyCurrent+set}" = set; then :
16940   $as_echo_n "(cached) " >&6
16941 else
16942   gt_save_CPPFLAGS="$CPPFLAGS"
16943      CPPFLAGS="$CPPFLAGS -I/System/Library/Frameworks/CoreFoundation.framework/Headers"
16944      gt_save_LIBS="$LIBS"
16945      LIBS="$LIBS -framework CoreFoundation"
16946      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16947 /* end confdefs.h.  */
16948 #include <CFLocale.h>
16949 int
16950 main ()
16951 {
16952 CFLocaleCopyCurrent();
16953   ;
16954   return 0;
16955 }
16956 _ACEOF
16957 if ac_fn_c_try_link "$LINENO"; then :
16958   gt_cv_func_CFLocaleCopyCurrent=yes
16959 else
16960   gt_cv_func_CFLocaleCopyCurrent=no
16961 fi
16962 rm -f core conftest.err conftest.$ac_objext \
16963     conftest$ac_exeext conftest.$ac_ext
16964      CPPFLAGS="$gt_save_CPPFLAGS"
16965      LIBS="$gt_save_LIBS"
16966 fi
16967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFLocaleCopyCurrent" >&5
16968 $as_echo "$gt_cv_func_CFLocaleCopyCurrent" >&6; }
16969   if test $gt_cv_func_CFLocaleCopyCurrent = yes; then
16970
16971 $as_echo "#define HAVE_CFLOCALECOPYCURRENT 1" >>confdefs.h
16972
16973   fi
16974   INTL_MACOSX_LIBS=
16975   if test $gt_cv_func_CFPreferencesCopyAppValue = yes || test $gt_cv_func_CFLocaleCopyCurrent = yes; then
16976     INTL_MACOSX_LIBS="-Wl,-framework -Wl,CoreFoundation"
16977   fi
16978
16979
16980
16981
16982   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
16983 $as_echo_n "checking whether NLS is requested... " >&6; }
16984     # Check whether --enable-nls was given.
16985 if test "${enable_nls+set}" = set; then :
16986   enableval=$enable_nls; USE_NLS=$enableval
16987 else
16988   USE_NLS=yes
16989 fi
16990
16991   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
16992 $as_echo "$USE_NLS" >&6; }
16993
16994
16995
16996
16997   LIBINTL=
16998   LTLIBINTL=
16999   POSUB=
17000
17001     if test "$USE_NLS" = "yes"; then
17002     gt_use_preinstalled_gnugettext=no
17003
17004
17005
17006
17007
17008
17009         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libc" >&5
17010 $as_echo_n "checking for GNU gettext in libc... " >&6; }
17011 if test "${gt_cv_func_gnugettext1_libc+set}" = set; then :
17012   $as_echo_n "(cached) " >&6
17013 else
17014   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17015 /* end confdefs.h.  */
17016 #include <libintl.h>
17017 extern int _nl_msg_cat_cntr;
17018 extern int *_nl_domain_bindings;
17019 int
17020 main ()
17021 {
17022 bindtextdomain ("", "");
17023 return * gettext ("") + _nl_msg_cat_cntr + *_nl_domain_bindings
17024   ;
17025   return 0;
17026 }
17027 _ACEOF
17028 if ac_fn_c_try_link "$LINENO"; then :
17029   gt_cv_func_gnugettext1_libc=yes
17030 else
17031   gt_cv_func_gnugettext1_libc=no
17032 fi
17033 rm -f core conftest.err conftest.$ac_objext \
17034     conftest$ac_exeext conftest.$ac_ext
17035 fi
17036 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_gnugettext1_libc" >&5
17037 $as_echo "$gt_cv_func_gnugettext1_libc" >&6; }
17038
17039         if test "$gt_cv_func_gnugettext1_libc" != "yes"; then
17040
17041
17042
17043
17044
17045           am_save_CPPFLAGS="$CPPFLAGS"
17046
17047   for element in $INCICONV; do
17048     haveit=
17049     for x in $CPPFLAGS; do
17050
17051   acl_save_prefix="$prefix"
17052   prefix="$acl_final_prefix"
17053   acl_save_exec_prefix="$exec_prefix"
17054   exec_prefix="$acl_final_exec_prefix"
17055   eval x=\"$x\"
17056   exec_prefix="$acl_save_exec_prefix"
17057   prefix="$acl_save_prefix"
17058
17059       if test "X$x" = "X$element"; then
17060         haveit=yes
17061         break
17062       fi
17063     done
17064     if test -z "$haveit"; then
17065       CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
17066     fi
17067   done
17068
17069
17070   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5
17071 $as_echo_n "checking for iconv... " >&6; }
17072 if test "${am_cv_func_iconv+set}" = set; then :
17073   $as_echo_n "(cached) " >&6
17074 else
17075
17076     am_cv_func_iconv="no, consider installing GNU libiconv"
17077     am_cv_lib_iconv=no
17078     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17079 /* end confdefs.h.  */
17080 #include <stdlib.h>
17081 #include <iconv.h>
17082 int
17083 main ()
17084 {
17085 iconv_t cd = iconv_open("","");
17086        iconv(cd,NULL,NULL,NULL,NULL);
17087        iconv_close(cd);
17088   ;
17089   return 0;
17090 }
17091 _ACEOF
17092 if ac_fn_c_try_link "$LINENO"; then :
17093   am_cv_func_iconv=yes
17094 fi
17095 rm -f core conftest.err conftest.$ac_objext \
17096     conftest$ac_exeext conftest.$ac_ext
17097     if test "$am_cv_func_iconv" != yes; then
17098       am_save_LIBS="$LIBS"
17099       LIBS="$LIBS $LIBICONV"
17100       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17101 /* end confdefs.h.  */
17102 #include <stdlib.h>
17103 #include <iconv.h>
17104 int
17105 main ()
17106 {
17107 iconv_t cd = iconv_open("","");
17108          iconv(cd,NULL,NULL,NULL,NULL);
17109          iconv_close(cd);
17110   ;
17111   return 0;
17112 }
17113 _ACEOF
17114 if ac_fn_c_try_link "$LINENO"; then :
17115   am_cv_lib_iconv=yes
17116         am_cv_func_iconv=yes
17117 fi
17118 rm -f core conftest.err conftest.$ac_objext \
17119     conftest$ac_exeext conftest.$ac_ext
17120       LIBS="$am_save_LIBS"
17121     fi
17122
17123 fi
17124 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5
17125 $as_echo "$am_cv_func_iconv" >&6; }
17126   if test "$am_cv_func_iconv" = yes; then
17127
17128 $as_echo "#define HAVE_ICONV 1" >>confdefs.h
17129
17130   fi
17131   if test "$am_cv_lib_iconv" = yes; then
17132     { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libiconv" >&5
17133 $as_echo_n "checking how to link with libiconv... " >&6; }
17134     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBICONV" >&5
17135 $as_echo "$LIBICONV" >&6; }
17136   else
17137             CPPFLAGS="$am_save_CPPFLAGS"
17138     LIBICONV=
17139     LTLIBICONV=
17140   fi
17141
17142
17143
17144
17145
17146
17147     use_additional=yes
17148
17149   acl_save_prefix="$prefix"
17150   prefix="$acl_final_prefix"
17151   acl_save_exec_prefix="$exec_prefix"
17152   exec_prefix="$acl_final_exec_prefix"
17153
17154     eval additional_includedir=\"$includedir\"
17155     eval additional_libdir=\"$libdir\"
17156
17157   exec_prefix="$acl_save_exec_prefix"
17158   prefix="$acl_save_prefix"
17159
17160
17161 # Check whether --with-libintl-prefix was given.
17162 if test "${with_libintl_prefix+set}" = set; then :
17163   withval=$with_libintl_prefix;
17164     if test "X$withval" = "Xno"; then
17165       use_additional=no
17166     else
17167       if test "X$withval" = "X"; then
17168
17169   acl_save_prefix="$prefix"
17170   prefix="$acl_final_prefix"
17171   acl_save_exec_prefix="$exec_prefix"
17172   exec_prefix="$acl_final_exec_prefix"
17173
17174           eval additional_includedir=\"$includedir\"
17175           eval additional_libdir=\"$libdir\"
17176
17177   exec_prefix="$acl_save_exec_prefix"
17178   prefix="$acl_save_prefix"
17179
17180       else
17181         additional_includedir="$withval/include"
17182         additional_libdir="$withval/lib"
17183       fi
17184     fi
17185
17186 fi
17187
17188       LIBINTL=
17189   LTLIBINTL=
17190   INCINTL=
17191   rpathdirs=
17192   ltrpathdirs=
17193   names_already_handled=
17194   names_next_round='intl '
17195   while test -n "$names_next_round"; do
17196     names_this_round="$names_next_round"
17197     names_next_round=
17198     for name in $names_this_round; do
17199       already_handled=
17200       for n in $names_already_handled; do
17201         if test "$n" = "$name"; then
17202           already_handled=yes
17203           break
17204         fi
17205       done
17206       if test -z "$already_handled"; then
17207         names_already_handled="$names_already_handled $name"
17208                         uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
17209         eval value=\"\$HAVE_LIB$uppername\"
17210         if test -n "$value"; then
17211           if test "$value" = yes; then
17212             eval value=\"\$LIB$uppername\"
17213             test -z "$value" || LIBINTL="${LIBINTL}${LIBINTL:+ }$value"
17214             eval value=\"\$LTLIB$uppername\"
17215             test -z "$value" || LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$value"
17216           else
17217                                     :
17218           fi
17219         else
17220                               found_dir=
17221           found_la=
17222           found_so=
17223           found_a=
17224           if test $use_additional = yes; then
17225             if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
17226               found_dir="$additional_libdir"
17227               found_so="$additional_libdir/lib$name.$shlibext"
17228               if test -f "$additional_libdir/lib$name.la"; then
17229                 found_la="$additional_libdir/lib$name.la"
17230               fi
17231             else
17232               if test -f "$additional_libdir/lib$name.$libext"; then
17233                 found_dir="$additional_libdir"
17234                 found_a="$additional_libdir/lib$name.$libext"
17235                 if test -f "$additional_libdir/lib$name.la"; then
17236                   found_la="$additional_libdir/lib$name.la"
17237                 fi
17238               fi
17239             fi
17240           fi
17241           if test "X$found_dir" = "X"; then
17242             for x in $LDFLAGS $LTLIBINTL; do
17243
17244   acl_save_prefix="$prefix"
17245   prefix="$acl_final_prefix"
17246   acl_save_exec_prefix="$exec_prefix"
17247   exec_prefix="$acl_final_exec_prefix"
17248   eval x=\"$x\"
17249   exec_prefix="$acl_save_exec_prefix"
17250   prefix="$acl_save_prefix"
17251
17252               case "$x" in
17253                 -L*)
17254                   dir=`echo "X$x" | sed -e 's/^X-L//'`
17255                   if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
17256                     found_dir="$dir"
17257                     found_so="$dir/lib$name.$shlibext"
17258                     if test -f "$dir/lib$name.la"; then
17259                       found_la="$dir/lib$name.la"
17260                     fi
17261                   else
17262                     if test -f "$dir/lib$name.$libext"; then
17263                       found_dir="$dir"
17264                       found_a="$dir/lib$name.$libext"
17265                       if test -f "$dir/lib$name.la"; then
17266                         found_la="$dir/lib$name.la"
17267                       fi
17268                     fi
17269                   fi
17270                   ;;
17271               esac
17272               if test "X$found_dir" != "X"; then
17273                 break
17274               fi
17275             done
17276           fi
17277           if test "X$found_dir" != "X"; then
17278                         LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$found_dir -l$name"
17279             if test "X$found_so" != "X"; then
17280                                                         if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
17281                                 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
17282               else
17283                                                                                 haveit=
17284                 for x in $ltrpathdirs; do
17285                   if test "X$x" = "X$found_dir"; then
17286                     haveit=yes
17287                     break
17288                   fi
17289                 done
17290                 if test -z "$haveit"; then
17291                   ltrpathdirs="$ltrpathdirs $found_dir"
17292                 fi
17293                                 if test "$hardcode_direct" = yes; then
17294                                                       LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
17295                 else
17296                   if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
17297                                                             LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
17298                                                             haveit=
17299                     for x in $rpathdirs; do
17300                       if test "X$x" = "X$found_dir"; then
17301                         haveit=yes
17302                         break
17303                       fi
17304                     done
17305                     if test -z "$haveit"; then
17306                       rpathdirs="$rpathdirs $found_dir"
17307                     fi
17308                   else
17309                                                                                 haveit=
17310                     for x in $LDFLAGS $LIBINTL; do
17311
17312   acl_save_prefix="$prefix"
17313   prefix="$acl_final_prefix"
17314   acl_save_exec_prefix="$exec_prefix"
17315   exec_prefix="$acl_final_exec_prefix"
17316   eval x=\"$x\"
17317   exec_prefix="$acl_save_exec_prefix"
17318   prefix="$acl_save_prefix"
17319
17320                       if test "X$x" = "X-L$found_dir"; then
17321                         haveit=yes
17322                         break
17323                       fi
17324                     done
17325                     if test -z "$haveit"; then
17326                       LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir"
17327                     fi
17328                     if test "$hardcode_minus_L" != no; then
17329                                                                                         LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
17330                     else
17331                                                                                                                                                                                 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
17332                     fi
17333                   fi
17334                 fi
17335               fi
17336             else
17337               if test "X$found_a" != "X"; then
17338                                 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_a"
17339               else
17340                                                 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir -l$name"
17341               fi
17342             fi
17343                         additional_includedir=
17344             case "$found_dir" in
17345               */lib | */lib/)
17346                 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
17347                 additional_includedir="$basedir/include"
17348                 ;;
17349             esac
17350             if test "X$additional_includedir" != "X"; then
17351                                                                                                                 if test "X$additional_includedir" != "X/usr/include"; then
17352                 haveit=
17353                 if test "X$additional_includedir" = "X/usr/local/include"; then
17354                   if test -n "$GCC"; then
17355                     case $host_os in
17356                       linux* | gnu* | k*bsd*-gnu) haveit=yes;;
17357                     esac
17358                   fi
17359                 fi
17360                 if test -z "$haveit"; then
17361                   for x in $CPPFLAGS $INCINTL; do
17362
17363   acl_save_prefix="$prefix"
17364   prefix="$acl_final_prefix"
17365   acl_save_exec_prefix="$exec_prefix"
17366   exec_prefix="$acl_final_exec_prefix"
17367   eval x=\"$x\"
17368   exec_prefix="$acl_save_exec_prefix"
17369   prefix="$acl_save_prefix"
17370
17371                     if test "X$x" = "X-I$additional_includedir"; then
17372                       haveit=yes
17373                       break
17374                     fi
17375                   done
17376                   if test -z "$haveit"; then
17377                     if test -d "$additional_includedir"; then
17378                                             INCINTL="${INCINTL}${INCINTL:+ }-I$additional_includedir"
17379                     fi
17380                   fi
17381                 fi
17382               fi
17383             fi
17384                         if test -n "$found_la"; then
17385                                                         save_libdir="$libdir"
17386               case "$found_la" in
17387                 */* | *\\*) . "$found_la" ;;
17388                 *) . "./$found_la" ;;
17389               esac
17390               libdir="$save_libdir"
17391                             for dep in $dependency_libs; do
17392                 case "$dep" in
17393                   -L*)
17394                     additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
17395                                                                                                                                                                 if test "X$additional_libdir" != "X/usr/lib"; then
17396                       haveit=
17397                       if test "X$additional_libdir" = "X/usr/local/lib"; then
17398                         if test -n "$GCC"; then
17399                           case $host_os in
17400                             linux* | gnu* | k*bsd*-gnu) haveit=yes;;
17401                           esac
17402                         fi
17403                       fi
17404                       if test -z "$haveit"; then
17405                         haveit=
17406                         for x in $LDFLAGS $LIBINTL; do
17407
17408   acl_save_prefix="$prefix"
17409   prefix="$acl_final_prefix"
17410   acl_save_exec_prefix="$exec_prefix"
17411   exec_prefix="$acl_final_exec_prefix"
17412   eval x=\"$x\"
17413   exec_prefix="$acl_save_exec_prefix"
17414   prefix="$acl_save_prefix"
17415
17416                           if test "X$x" = "X-L$additional_libdir"; then
17417                             haveit=yes
17418                             break
17419                           fi
17420                         done
17421                         if test -z "$haveit"; then
17422                           if test -d "$additional_libdir"; then
17423                                                         LIBINTL="${LIBINTL}${LIBINTL:+ }-L$additional_libdir"
17424                           fi
17425                         fi
17426                         haveit=
17427                         for x in $LDFLAGS $LTLIBINTL; do
17428
17429   acl_save_prefix="$prefix"
17430   prefix="$acl_final_prefix"
17431   acl_save_exec_prefix="$exec_prefix"
17432   exec_prefix="$acl_final_exec_prefix"
17433   eval x=\"$x\"
17434   exec_prefix="$acl_save_exec_prefix"
17435   prefix="$acl_save_prefix"
17436
17437                           if test "X$x" = "X-L$additional_libdir"; then
17438                             haveit=yes
17439                             break
17440                           fi
17441                         done
17442                         if test -z "$haveit"; then
17443                           if test -d "$additional_libdir"; then
17444                                                         LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$additional_libdir"
17445                           fi
17446                         fi
17447                       fi
17448                     fi
17449                     ;;
17450                   -R*)
17451                     dir=`echo "X$dep" | sed -e 's/^X-R//'`
17452                     if test "$enable_rpath" != no; then
17453                                                                   haveit=
17454                       for x in $rpathdirs; do
17455                         if test "X$x" = "X$dir"; then
17456                           haveit=yes
17457                           break
17458                         fi
17459                       done
17460                       if test -z "$haveit"; then
17461                         rpathdirs="$rpathdirs $dir"
17462                       fi
17463                                                                   haveit=
17464                       for x in $ltrpathdirs; do
17465                         if test "X$x" = "X$dir"; then
17466                           haveit=yes
17467                           break
17468                         fi
17469                       done
17470                       if test -z "$haveit"; then
17471                         ltrpathdirs="$ltrpathdirs $dir"
17472                       fi
17473                     fi
17474                     ;;
17475                   -l*)
17476                                         names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
17477                     ;;
17478                   *.la)
17479                                                                                 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
17480                     ;;
17481                   *)
17482                                         LIBINTL="${LIBINTL}${LIBINTL:+ }$dep"
17483                     LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$dep"
17484                     ;;
17485                 esac
17486               done
17487             fi
17488           else
17489                                                             LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
17490             LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-l$name"
17491           fi
17492         fi
17493       fi
17494     done
17495   done
17496   if test "X$rpathdirs" != "X"; then
17497     if test -n "$hardcode_libdir_separator"; then
17498                         alldirs=
17499       for found_dir in $rpathdirs; do
17500         alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
17501       done
17502             acl_save_libdir="$libdir"
17503       libdir="$alldirs"
17504       eval flag=\"$hardcode_libdir_flag_spec\"
17505       libdir="$acl_save_libdir"
17506       LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
17507     else
17508             for found_dir in $rpathdirs; do
17509         acl_save_libdir="$libdir"
17510         libdir="$found_dir"
17511         eval flag=\"$hardcode_libdir_flag_spec\"
17512         libdir="$acl_save_libdir"
17513         LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
17514       done
17515     fi
17516   fi
17517   if test "X$ltrpathdirs" != "X"; then
17518             for found_dir in $ltrpathdirs; do
17519       LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-R$found_dir"
17520     done
17521   fi
17522
17523           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libintl" >&5
17524 $as_echo_n "checking for GNU gettext in libintl... " >&6; }
17525 if test "${gt_cv_func_gnugettext1_libintl+set}" = set; then :
17526   $as_echo_n "(cached) " >&6
17527 else
17528   gt_save_CPPFLAGS="$CPPFLAGS"
17529             CPPFLAGS="$CPPFLAGS $INCINTL"
17530             gt_save_LIBS="$LIBS"
17531             LIBS="$LIBS $LIBINTL"
17532                         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17533 /* end confdefs.h.  */
17534 #include <libintl.h>
17535 extern int _nl_msg_cat_cntr;
17536 extern
17537 #ifdef __cplusplus
17538 "C"
17539 #endif
17540 const char *_nl_expand_alias (const char *);
17541 int
17542 main ()
17543 {
17544 bindtextdomain ("", "");
17545 return * gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias ("")
17546   ;
17547   return 0;
17548 }
17549 _ACEOF
17550 if ac_fn_c_try_link "$LINENO"; then :
17551   gt_cv_func_gnugettext1_libintl=yes
17552 else
17553   gt_cv_func_gnugettext1_libintl=no
17554 fi
17555 rm -f core conftest.err conftest.$ac_objext \
17556     conftest$ac_exeext conftest.$ac_ext
17557                         if test "$gt_cv_func_gnugettext1_libintl" != yes && test -n "$LIBICONV"; then
17558               LIBS="$LIBS $LIBICONV"
17559               cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17560 /* end confdefs.h.  */
17561 #include <libintl.h>
17562 extern int _nl_msg_cat_cntr;
17563 extern
17564 #ifdef __cplusplus
17565 "C"
17566 #endif
17567 const char *_nl_expand_alias (const char *);
17568 int
17569 main ()
17570 {
17571 bindtextdomain ("", "");
17572 return * gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias ("")
17573   ;
17574   return 0;
17575 }
17576 _ACEOF
17577 if ac_fn_c_try_link "$LINENO"; then :
17578   LIBINTL="$LIBINTL $LIBICONV"
17579                 LTLIBINTL="$LTLIBINTL $LTLIBICONV"
17580                 gt_cv_func_gnugettext1_libintl=yes
17581
17582 fi
17583 rm -f core conftest.err conftest.$ac_objext \
17584     conftest$ac_exeext conftest.$ac_ext
17585             fi
17586             CPPFLAGS="$gt_save_CPPFLAGS"
17587             LIBS="$gt_save_LIBS"
17588 fi
17589 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_gnugettext1_libintl" >&5
17590 $as_echo "$gt_cv_func_gnugettext1_libintl" >&6; }
17591         fi
17592
17593                                         if test "$gt_cv_func_gnugettext1_libc" = "yes" \
17594            || { test "$gt_cv_func_gnugettext1_libintl" = "yes" \
17595                 && test "$PACKAGE" != gettext-runtime \
17596                 && test "$PACKAGE" != gettext-tools; }; then
17597           gt_use_preinstalled_gnugettext=yes
17598         else
17599                     LIBINTL=
17600           LTLIBINTL=
17601           INCINTL=
17602         fi
17603
17604
17605
17606     if test -n "$INTL_MACOSX_LIBS"; then
17607       if test "$gt_use_preinstalled_gnugettext" = "yes" \
17608          || test "$nls_cv_use_gnu_gettext" = "yes"; then
17609                 LIBINTL="$LIBINTL $INTL_MACOSX_LIBS"
17610         LTLIBINTL="$LTLIBINTL $INTL_MACOSX_LIBS"
17611       fi
17612     fi
17613
17614     if test "$gt_use_preinstalled_gnugettext" = "yes" \
17615        || test "$nls_cv_use_gnu_gettext" = "yes"; then
17616
17617 $as_echo "#define ENABLE_NLS 1" >>confdefs.h
17618
17619     else
17620       USE_NLS=no
17621     fi
17622   fi
17623
17624   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use NLS" >&5
17625 $as_echo_n "checking whether to use NLS... " >&6; }
17626   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
17627 $as_echo "$USE_NLS" >&6; }
17628   if test "$USE_NLS" = "yes"; then
17629     { $as_echo "$as_me:${as_lineno-$LINENO}: checking where the gettext function comes from" >&5
17630 $as_echo_n "checking where the gettext function comes from... " >&6; }
17631     if test "$gt_use_preinstalled_gnugettext" = "yes"; then
17632       if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
17633         gt_source="external libintl"
17634       else
17635         gt_source="libc"
17636       fi
17637     else
17638       gt_source="included intl directory"
17639     fi
17640     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_source" >&5
17641 $as_echo "$gt_source" >&6; }
17642   fi
17643
17644   if test "$USE_NLS" = "yes"; then
17645
17646     if test "$gt_use_preinstalled_gnugettext" = "yes"; then
17647       if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
17648         { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libintl" >&5
17649 $as_echo_n "checking how to link with libintl... " >&6; }
17650         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBINTL" >&5
17651 $as_echo "$LIBINTL" >&6; }
17652
17653   for element in $INCINTL; do
17654     haveit=
17655     for x in $CPPFLAGS; do
17656
17657   acl_save_prefix="$prefix"
17658   prefix="$acl_final_prefix"
17659   acl_save_exec_prefix="$exec_prefix"
17660   exec_prefix="$acl_final_exec_prefix"
17661   eval x=\"$x\"
17662   exec_prefix="$acl_save_exec_prefix"
17663   prefix="$acl_save_prefix"
17664
17665       if test "X$x" = "X$element"; then
17666         haveit=yes
17667         break
17668       fi
17669     done
17670     if test -z "$haveit"; then
17671       CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
17672     fi
17673   done
17674
17675       fi
17676
17677
17678 $as_echo "#define HAVE_GETTEXT 1" >>confdefs.h
17679
17680
17681 $as_echo "#define HAVE_DCGETTEXT 1" >>confdefs.h
17682
17683     fi
17684
17685         POSUB=po
17686   fi
17687
17688
17689
17690     INTLLIBS="$LIBINTL"
17691
17692
17693
17694
17695
17696
17697
17698 os_name=`uname -s 2>/dev/null`
17699 if test x${prefix} = xNONE ; then
17700    if test `eval echo ${sysconfdir}` = NONE/etc ; then
17701       sysconfdir=/etc/bacula
17702    fi
17703
17704    if test `eval echo ${libdir}` = NONE/lib ; then
17705       case ${os_name} in
17706       Linux)
17707          os_processor=`uname -p 2>/dev/null`
17708          case ${os_processor} in
17709          x86_64)
17710             libdir=/usr/lib64
17711             ;;
17712          *)
17713             libdir=/usr/lib
17714             ;;
17715          esac
17716          ;;
17717       *)
17718          libdir=/usr/lib
17719          ;;
17720       esac
17721    fi
17722
17723    if test `eval echo ${includedir}` = NONE/include ; then
17724       includedir=/usr/include
17725    fi
17726
17727    if test `eval echo ${datarootdir}` = NONE/share ; then
17728       datarootdir=/usr/share
17729    fi
17730    prefix=
17731 fi
17732
17733 if test x${exec_prefix} = xNONE ; then
17734    exec_prefix=${prefix}
17735 fi
17736
17737 sysconfdir=`eval echo ${sysconfdir}`
17738 datarootdir=`eval echo ${datarootdir}`
17739 docdir=`eval echo ${docdir}`
17740 htmldir=`eval echo ${htmldir}`
17741 libdir=`eval echo ${libdir}`
17742 includedir=`eval echo ${includedir}`
17743 localedir=`eval echo ${datarootdir}/locale`
17744 cat >>confdefs.h <<_ACEOF
17745 #define SYSCONFDIR "$sysconfdir"
17746 _ACEOF
17747
17748 cat >>confdefs.h <<_ACEOF
17749 #define LOCALEDIR "$localedir"
17750 _ACEOF
17751
17752
17753 if test x$sbindir = x'${exec_prefix}/sbin' ; then
17754    sbindir=${exec_prefix}/sbin
17755 fi
17756 sbindir=`eval echo ${sbindir}`
17757
17758 if test x$mandir = x'${prefix}/man' ; then
17759    mandir=/usr/share/man
17760 fi
17761
17762 if test x$htmldir = x${docdir} ; then
17763    htmldir=`eval echo ${docdir}bacula/html`
17764 fi
17765
17766 if test x$docdir = x'/usr/share/doc/' ; then
17767    docdir=`eval echo ${docdir}bacula`
17768 fi
17769
17770
17771 for ac_prog in msgfmt
17772 do
17773   # Extract the first word of "$ac_prog", so it can be a program name with args.
17774 set dummy $ac_prog; ac_word=$2
17775 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17776 $as_echo_n "checking for $ac_word... " >&6; }
17777 if test "${ac_cv_path_MSGFMT+set}" = set; then :
17778   $as_echo_n "(cached) " >&6
17779 else
17780   case $MSGFMT in
17781   [\\/]* | ?:[\\/]*)
17782   ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
17783   ;;
17784   *)
17785   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17786 for as_dir in $PATH
17787 do
17788   IFS=$as_save_IFS
17789   test -z "$as_dir" && as_dir=.
17790     for ac_exec_ext in '' $ac_executable_extensions; do
17791   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
17792     ac_cv_path_MSGFMT="$as_dir/$ac_word$ac_exec_ext"
17793     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17794     break 2
17795   fi
17796 done
17797   done
17798 IFS=$as_save_IFS
17799
17800   ;;
17801 esac
17802 fi
17803 MSGFMT=$ac_cv_path_MSGFMT
17804 if test -n "$MSGFMT"; then
17805   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGFMT" >&5
17806 $as_echo "$MSGFMT" >&6; }
17807 else
17808   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17809 $as_echo "no" >&6; }
17810 fi
17811
17812
17813   test -n "$MSGFMT" && break
17814 done
17815 test -n "$MSGFMT" || MSGFMT="no"
17816
17817 if test "$MSGFMT" = "no"
17818 then
17819    echo 'msgfmt program not found, disabling NLS !'
17820    USE_NLS=no
17821    USE_INCLUDED_LIBINTL=no
17822 #else
17823
17824     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C Library 2 or newer" >&5
17825 $as_echo_n "checking whether we are using the GNU C Library 2 or newer... " >&6; }
17826 if test "${ac_cv_gnu_library_2+set}" = set; then :
17827   $as_echo_n "(cached) " >&6
17828 else
17829   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17830 /* end confdefs.h.  */
17831
17832 #include <features.h>
17833 #ifdef __GNU_LIBRARY__
17834  #if (__GLIBC__ >= 2)
17835   Lucky GNU user
17836  #endif
17837 #endif
17838
17839 _ACEOF
17840 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
17841   $EGREP "Lucky GNU user" >/dev/null 2>&1; then :
17842   ac_cv_gnu_library_2=yes
17843 else
17844   ac_cv_gnu_library_2=no
17845 fi
17846 rm -f conftest*
17847
17848
17849
17850 fi
17851 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_gnu_library_2" >&5
17852 $as_echo "$ac_cv_gnu_library_2" >&6; }
17853
17854     GLIBC2="$ac_cv_gnu_library_2"
17855
17856
17857 if test -n "$ac_tool_prefix"; then
17858   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
17859 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
17860 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17861 $as_echo_n "checking for $ac_word... " >&6; }
17862 if test "${ac_cv_prog_RANLIB+set}" = set; then :
17863   $as_echo_n "(cached) " >&6
17864 else
17865   if test -n "$RANLIB"; then
17866   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
17867 else
17868 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17869 for as_dir in $PATH
17870 do
17871   IFS=$as_save_IFS
17872   test -z "$as_dir" && as_dir=.
17873     for ac_exec_ext in '' $ac_executable_extensions; do
17874   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
17875     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
17876     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17877     break 2
17878   fi
17879 done
17880   done
17881 IFS=$as_save_IFS
17882
17883 fi
17884 fi
17885 RANLIB=$ac_cv_prog_RANLIB
17886 if test -n "$RANLIB"; then
17887   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
17888 $as_echo "$RANLIB" >&6; }
17889 else
17890   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17891 $as_echo "no" >&6; }
17892 fi
17893
17894
17895 fi
17896 if test -z "$ac_cv_prog_RANLIB"; then
17897   ac_ct_RANLIB=$RANLIB
17898   # Extract the first word of "ranlib", so it can be a program name with args.
17899 set dummy ranlib; ac_word=$2
17900 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17901 $as_echo_n "checking for $ac_word... " >&6; }
17902 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
17903   $as_echo_n "(cached) " >&6
17904 else
17905   if test -n "$ac_ct_RANLIB"; then
17906   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
17907 else
17908 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17909 for as_dir in $PATH
17910 do
17911   IFS=$as_save_IFS
17912   test -z "$as_dir" && as_dir=.
17913     for ac_exec_ext in '' $ac_executable_extensions; do
17914   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
17915     ac_cv_prog_ac_ct_RANLIB="ranlib"
17916     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17917     break 2
17918   fi
17919 done
17920   done
17921 IFS=$as_save_IFS
17922
17923 fi
17924 fi
17925 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
17926 if test -n "$ac_ct_RANLIB"; then
17927   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
17928 $as_echo "$ac_ct_RANLIB" >&6; }
17929 else
17930   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17931 $as_echo "no" >&6; }
17932 fi
17933
17934   if test "x$ac_ct_RANLIB" = x; then
17935     RANLIB=":"
17936   else
17937     case $cross_compiling:$ac_tool_warned in
17938 yes:)
17939 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
17940 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
17941 ac_tool_warned=yes ;;
17942 esac
17943     RANLIB=$ac_ct_RANLIB
17944   fi
17945 else
17946   RANLIB="$ac_cv_prog_RANLIB"
17947 fi
17948
17949
17950         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for strerror in -lcposix" >&5
17951 $as_echo_n "checking for strerror in -lcposix... " >&6; }
17952 if test "${ac_cv_lib_cposix_strerror+set}" = set; then :
17953   $as_echo_n "(cached) " >&6
17954 else
17955   ac_check_lib_save_LIBS=$LIBS
17956 LIBS="-lcposix  $LIBS"
17957 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17958 /* end confdefs.h.  */
17959
17960 /* Override any GCC internal prototype to avoid an error.
17961    Use char because int might match the return type of a GCC
17962    builtin and then its argument prototype would still apply.  */
17963 #ifdef __cplusplus
17964 extern "C"
17965 #endif
17966 char strerror ();
17967 int
17968 main ()
17969 {
17970 return strerror ();
17971   ;
17972   return 0;
17973 }
17974 _ACEOF
17975 if ac_fn_c_try_link "$LINENO"; then :
17976   ac_cv_lib_cposix_strerror=yes
17977 else
17978   ac_cv_lib_cposix_strerror=no
17979 fi
17980 rm -f core conftest.err conftest.$ac_objext \
17981     conftest$ac_exeext conftest.$ac_ext
17982 LIBS=$ac_check_lib_save_LIBS
17983 fi
17984 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_cposix_strerror" >&5
17985 $as_echo "$ac_cv_lib_cposix_strerror" >&6; }
17986 if test "x$ac_cv_lib_cposix_strerror" = x""yes; then :
17987   LIBS="$LIBS -lcposix"
17988 fi
17989
17990
17991
17992 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
17993 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
17994 if test "${ac_cv_c_const+set}" = set; then :
17995   $as_echo_n "(cached) " >&6
17996 else
17997   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17998 /* end confdefs.h.  */
17999
18000 int
18001 main ()
18002 {
18003 /* FIXME: Include the comments suggested by Paul. */
18004 #ifndef __cplusplus
18005   /* Ultrix mips cc rejects this.  */
18006   typedef int charset[2];
18007   const charset cs;
18008   /* SunOS 4.1.1 cc rejects this.  */
18009   char const *const *pcpcc;
18010   char **ppc;
18011   /* NEC SVR4.0.2 mips cc rejects this.  */
18012   struct point {int x, y;};
18013   static struct point const zero = {0,0};
18014   /* AIX XL C 1.02.0.0 rejects this.
18015      It does not let you subtract one const X* pointer from another in
18016      an arm of an if-expression whose if-part is not a constant
18017      expression */
18018   const char *g = "string";
18019   pcpcc = &g + (g ? g-g : 0);
18020   /* HPUX 7.0 cc rejects these. */
18021   ++pcpcc;
18022   ppc = (char**) pcpcc;
18023   pcpcc = (char const *const *) ppc;
18024   { /* SCO 3.2v4 cc rejects this.  */
18025     char *t;
18026     char const *s = 0 ? (char *) 0 : (char const *) 0;
18027
18028     *t++ = 0;
18029     if (s) return 0;
18030   }
18031   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
18032     int x[] = {25, 17};
18033     const int *foo = &x[0];
18034     ++foo;
18035   }
18036   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
18037     typedef const int *iptr;
18038     iptr p = 0;
18039     ++p;
18040   }
18041   { /* AIX XL C 1.02.0.0 rejects this saying
18042        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
18043     struct s { int j; const int *ap[3]; };
18044     struct s *b; b->j = 5;
18045   }
18046   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
18047     const int foo = 10;
18048     if (!foo) return 0;
18049   }
18050   return !cs[0] && !zero.x;
18051 #endif
18052
18053   ;
18054   return 0;
18055 }
18056 _ACEOF
18057 if ac_fn_c_try_compile "$LINENO"; then :
18058   ac_cv_c_const=yes
18059 else
18060   ac_cv_c_const=no
18061 fi
18062 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18063 fi
18064 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
18065 $as_echo "$ac_cv_c_const" >&6; }
18066 if test $ac_cv_c_const = no; then
18067
18068 $as_echo "#define const /**/" >>confdefs.h
18069
18070 fi
18071
18072
18073   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for signed" >&5
18074 $as_echo_n "checking for signed... " >&6; }
18075 if test "${bh_cv_c_signed+set}" = set; then :
18076   $as_echo_n "(cached) " >&6
18077 else
18078   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18079 /* end confdefs.h.  */
18080
18081 int
18082 main ()
18083 {
18084 signed char x;
18085   ;
18086   return 0;
18087 }
18088 _ACEOF
18089 if ac_fn_c_try_compile "$LINENO"; then :
18090   bh_cv_c_signed=yes
18091 else
18092   bh_cv_c_signed=no
18093 fi
18094 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18095 fi
18096 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bh_cv_c_signed" >&5
18097 $as_echo "$bh_cv_c_signed" >&6; }
18098   if test $bh_cv_c_signed = no; then
18099
18100 $as_echo "#define signed /**/" >>confdefs.h
18101
18102   fi
18103
18104 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
18105 $as_echo_n "checking for inline... " >&6; }
18106 if test "${ac_cv_c_inline+set}" = set; then :
18107   $as_echo_n "(cached) " >&6
18108 else
18109   ac_cv_c_inline=no
18110 for ac_kw in inline __inline__ __inline; do
18111   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18112 /* end confdefs.h.  */
18113 #ifndef __cplusplus
18114 typedef int foo_t;
18115 static $ac_kw foo_t static_foo () {return 0; }
18116 $ac_kw foo_t foo () {return 0; }
18117 #endif
18118
18119 _ACEOF
18120 if ac_fn_c_try_compile "$LINENO"; then :
18121   ac_cv_c_inline=$ac_kw
18122 fi
18123 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18124   test "$ac_cv_c_inline" != no && break
18125 done
18126
18127 fi
18128 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
18129 $as_echo "$ac_cv_c_inline" >&6; }
18130
18131 case $ac_cv_c_inline in
18132   inline | yes) ;;
18133   *)
18134     case $ac_cv_c_inline in
18135       no) ac_val=;;
18136       *) ac_val=$ac_cv_c_inline;;
18137     esac
18138     cat >>confdefs.h <<_ACEOF
18139 #ifndef __cplusplus
18140 #define inline $ac_val
18141 #endif
18142 _ACEOF
18143     ;;
18144 esac
18145
18146 ac_fn_c_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default"
18147 if test "x$ac_cv_type_off_t" = x""yes; then :
18148
18149 else
18150
18151 cat >>confdefs.h <<_ACEOF
18152 #define off_t long int
18153 _ACEOF
18154
18155 fi
18156
18157 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
18158 if test "x$ac_cv_type_size_t" = x""yes; then :
18159
18160 else
18161
18162 cat >>confdefs.h <<_ACEOF
18163 #define size_t unsigned int
18164 _ACEOF
18165
18166 fi
18167
18168
18169   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long" >&5
18170 $as_echo_n "checking for long long... " >&6; }
18171 if test "${ac_cv_type_long_long+set}" = set; then :
18172   $as_echo_n "(cached) " >&6
18173 else
18174   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18175 /* end confdefs.h.  */
18176 long long ll = 1LL; int i = 63;
18177 int
18178 main ()
18179 {
18180 long long llmax = (long long) -1;
18181      return ll << i | ll >> i | llmax / ll | llmax % ll;
18182   ;
18183   return 0;
18184 }
18185 _ACEOF
18186 if ac_fn_c_try_link "$LINENO"; then :
18187   ac_cv_type_long_long=yes
18188 else
18189   ac_cv_type_long_long=no
18190 fi
18191 rm -f core conftest.err conftest.$ac_objext \
18192     conftest$ac_exeext conftest.$ac_ext
18193 fi
18194 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_long" >&5
18195 $as_echo "$ac_cv_type_long_long" >&6; }
18196   if test $ac_cv_type_long_long = yes; then
18197
18198 $as_echo "#define HAVE_LONG_LONG 1" >>confdefs.h
18199
18200   fi
18201
18202
18203   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long double" >&5
18204 $as_echo_n "checking for long double... " >&6; }
18205 if test "${gt_cv_c_long_double+set}" = set; then :
18206   $as_echo_n "(cached) " >&6
18207 else
18208   if test "$GCC" = yes; then
18209        gt_cv_c_long_double=yes
18210      else
18211        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18212 /* end confdefs.h.  */
18213
18214          /* The Stardent Vistra knows sizeof(long double), but does not support it.  */
18215          long double foo = 0.0;
18216          /* On Ultrix 4.3 cc, long double is 4 and double is 8.  */
18217          int array [2*(sizeof(long double) >= sizeof(double)) - 1];
18218
18219 int
18220 main ()
18221 {
18222
18223   ;
18224   return 0;
18225 }
18226 _ACEOF
18227 if ac_fn_c_try_compile "$LINENO"; then :
18228   gt_cv_c_long_double=yes
18229 else
18230   gt_cv_c_long_double=no
18231 fi
18232 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18233      fi
18234 fi
18235 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_long_double" >&5
18236 $as_echo "$gt_cv_c_long_double" >&6; }
18237   if test $gt_cv_c_long_double = yes; then
18238
18239 $as_echo "#define HAVE_LONG_DOUBLE 1" >>confdefs.h
18240
18241   fi
18242
18243
18244   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wchar_t" >&5
18245 $as_echo_n "checking for wchar_t... " >&6; }
18246 if test "${gt_cv_c_wchar_t+set}" = set; then :
18247   $as_echo_n "(cached) " >&6
18248 else
18249   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18250 /* end confdefs.h.  */
18251 #include <stddef.h>
18252        wchar_t foo = (wchar_t)'\0';
18253 int
18254 main ()
18255 {
18256
18257   ;
18258   return 0;
18259 }
18260 _ACEOF
18261 if ac_fn_c_try_compile "$LINENO"; then :
18262   gt_cv_c_wchar_t=yes
18263 else
18264   gt_cv_c_wchar_t=no
18265 fi
18266 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18267 fi
18268 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_wchar_t" >&5
18269 $as_echo "$gt_cv_c_wchar_t" >&6; }
18270   if test $gt_cv_c_wchar_t = yes; then
18271
18272 $as_echo "#define HAVE_WCHAR_T 1" >>confdefs.h
18273
18274   fi
18275
18276
18277   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wint_t" >&5
18278 $as_echo_n "checking for wint_t... " >&6; }
18279 if test "${gt_cv_c_wint_t+set}" = set; then :
18280   $as_echo_n "(cached) " >&6
18281 else
18282   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18283 /* end confdefs.h.  */
18284 #include <wchar.h>
18285        wint_t foo = (wchar_t)'\0';
18286 int
18287 main ()
18288 {
18289
18290   ;
18291   return 0;
18292 }
18293 _ACEOF
18294 if ac_fn_c_try_compile "$LINENO"; then :
18295   gt_cv_c_wint_t=yes
18296 else
18297   gt_cv_c_wint_t=no
18298 fi
18299 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18300 fi
18301 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_wint_t" >&5
18302 $as_echo "$gt_cv_c_wint_t" >&6; }
18303   if test $gt_cv_c_wint_t = yes; then
18304
18305 $as_echo "#define HAVE_WINT_T 1" >>confdefs.h
18306
18307   fi
18308
18309
18310   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inttypes.h" >&5
18311 $as_echo_n "checking for inttypes.h... " >&6; }
18312 if test "${gl_cv_header_inttypes_h+set}" = set; then :
18313   $as_echo_n "(cached) " >&6
18314 else
18315   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18316 /* end confdefs.h.  */
18317 #include <sys/types.h>
18318 #include <inttypes.h>
18319 int
18320 main ()
18321 {
18322 uintmax_t i = (uintmax_t) -1;
18323   ;
18324   return 0;
18325 }
18326 _ACEOF
18327 if ac_fn_c_try_compile "$LINENO"; then :
18328   gl_cv_header_inttypes_h=yes
18329 else
18330   gl_cv_header_inttypes_h=no
18331 fi
18332 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18333 fi
18334 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_inttypes_h" >&5
18335 $as_echo "$gl_cv_header_inttypes_h" >&6; }
18336   if test $gl_cv_header_inttypes_h = yes; then
18337
18338 cat >>confdefs.h <<_ACEOF
18339 #define HAVE_INTTYPES_H_WITH_UINTMAX 1
18340 _ACEOF
18341
18342   fi
18343
18344
18345   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdint.h" >&5
18346 $as_echo_n "checking for stdint.h... " >&6; }
18347 if test "${gl_cv_header_stdint_h+set}" = set; then :
18348   $as_echo_n "(cached) " >&6
18349 else
18350   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18351 /* end confdefs.h.  */
18352 #include <sys/types.h>
18353 #include <stdint.h>
18354 int
18355 main ()
18356 {
18357 uintmax_t i = (uintmax_t) -1;
18358   ;
18359   return 0;
18360 }
18361 _ACEOF
18362 if ac_fn_c_try_compile "$LINENO"; then :
18363   gl_cv_header_stdint_h=yes
18364 else
18365   gl_cv_header_stdint_h=no
18366 fi
18367 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18368 fi
18369 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_stdint_h" >&5
18370 $as_echo "$gl_cv_header_stdint_h" >&6; }
18371   if test $gl_cv_header_stdint_h = yes; then
18372
18373 cat >>confdefs.h <<_ACEOF
18374 #define HAVE_STDINT_H_WITH_UINTMAX 1
18375 _ACEOF
18376
18377   fi
18378
18379
18380
18381
18382   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for intmax_t" >&5
18383 $as_echo_n "checking for intmax_t... " >&6; }
18384 if test "${gt_cv_c_intmax_t+set}" = set; then :
18385   $as_echo_n "(cached) " >&6
18386 else
18387   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18388 /* end confdefs.h.  */
18389
18390 #include <stddef.h>
18391 #include <stdlib.h>
18392 #if HAVE_STDINT_H_WITH_UINTMAX
18393 #include <stdint.h>
18394 #endif
18395 #if HAVE_INTTYPES_H_WITH_UINTMAX
18396 #include <inttypes.h>
18397 #endif
18398
18399 int
18400 main ()
18401 {
18402 intmax_t x = -1;
18403   ;
18404   return 0;
18405 }
18406 _ACEOF
18407 if ac_fn_c_try_compile "$LINENO"; then :
18408   gt_cv_c_intmax_t=yes
18409 else
18410   gt_cv_c_intmax_t=no
18411 fi
18412 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18413 fi
18414 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_intmax_t" >&5
18415 $as_echo "$gt_cv_c_intmax_t" >&6; }
18416   if test $gt_cv_c_intmax_t = yes; then
18417
18418 $as_echo "#define HAVE_INTMAX_T 1" >>confdefs.h
18419
18420   fi
18421
18422
18423
18424   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether printf() supports POSIX/XSI format strings" >&5
18425 $as_echo_n "checking whether printf() supports POSIX/XSI format strings... " >&6; }
18426 if test "${gt_cv_func_printf_posix+set}" = set; then :
18427   $as_echo_n "(cached) " >&6
18428 else
18429
18430       if test "$cross_compiling" = yes; then :
18431
18432         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18433 /* end confdefs.h.  */
18434
18435 #if defined __NetBSD__ || defined _MSC_VER || defined __MINGW32__ || defined __CYGWIN__
18436   notposix
18437 #endif
18438
18439 _ACEOF
18440 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
18441   $EGREP "notposix" >/dev/null 2>&1; then :
18442   gt_cv_func_printf_posix="guessing no"
18443 else
18444   gt_cv_func_printf_posix="guessing yes"
18445 fi
18446 rm -f conftest*
18447
18448
18449 else
18450   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18451 /* end confdefs.h.  */
18452
18453 #include <stdio.h>
18454 #include <string.h>
18455 /* The string "%2$d %1$d", with dollar characters protected from the shell's
18456    dollar expansion (possibly an autoconf bug).  */
18457 static char format[] = { '%', '2', '$', 'd', ' ', '%', '1', '$', 'd', '\0' };
18458 static char buf[100];
18459 int main ()
18460 {
18461   sprintf (buf, format, 33, 55);
18462   return (strcmp (buf, "55 33") != 0);
18463 }
18464 _ACEOF
18465 if ac_fn_c_try_run "$LINENO"; then :
18466   gt_cv_func_printf_posix=yes
18467 else
18468   gt_cv_func_printf_posix=no
18469 fi
18470 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
18471   conftest.$ac_objext conftest.beam conftest.$ac_ext
18472 fi
18473
18474
18475 fi
18476 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_printf_posix" >&5
18477 $as_echo "$gt_cv_func_printf_posix" >&6; }
18478   case $gt_cv_func_printf_posix in
18479     *yes)
18480
18481 $as_echo "#define HAVE_POSIX_PRINTF 1" >>confdefs.h
18482
18483       ;;
18484   esac
18485
18486 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
18487 # for constant arguments.  Useless!
18488 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5
18489 $as_echo_n "checking for working alloca.h... " >&6; }
18490 if test "${ac_cv_working_alloca_h+set}" = set; then :
18491   $as_echo_n "(cached) " >&6
18492 else
18493   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18494 /* end confdefs.h.  */
18495 #include <alloca.h>
18496 int
18497 main ()
18498 {
18499 char *p = (char *) alloca (2 * sizeof (int));
18500                           if (p) return 0;
18501   ;
18502   return 0;
18503 }
18504 _ACEOF
18505 if ac_fn_c_try_link "$LINENO"; then :
18506   ac_cv_working_alloca_h=yes
18507 else
18508   ac_cv_working_alloca_h=no
18509 fi
18510 rm -f core conftest.err conftest.$ac_objext \
18511     conftest$ac_exeext conftest.$ac_ext
18512 fi
18513 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5
18514 $as_echo "$ac_cv_working_alloca_h" >&6; }
18515 if test $ac_cv_working_alloca_h = yes; then
18516
18517 $as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h
18518
18519 fi
18520
18521 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5
18522 $as_echo_n "checking for alloca... " >&6; }
18523 if test "${ac_cv_func_alloca_works+set}" = set; then :
18524   $as_echo_n "(cached) " >&6
18525 else
18526   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18527 /* end confdefs.h.  */
18528 #ifdef __GNUC__
18529 # define alloca __builtin_alloca
18530 #else
18531 # ifdef _MSC_VER
18532 #  include <malloc.h>
18533 #  define alloca _alloca
18534 # else
18535 #  ifdef HAVE_ALLOCA_H
18536 #   include <alloca.h>
18537 #  else
18538 #   ifdef _AIX
18539  #pragma alloca
18540 #   else
18541 #    ifndef alloca /* predefined by HP cc +Olibcalls */
18542 char *alloca ();
18543 #    endif
18544 #   endif
18545 #  endif
18546 # endif
18547 #endif
18548
18549 int
18550 main ()
18551 {
18552 char *p = (char *) alloca (1);
18553                                     if (p) return 0;
18554   ;
18555   return 0;
18556 }
18557 _ACEOF
18558 if ac_fn_c_try_link "$LINENO"; then :
18559   ac_cv_func_alloca_works=yes
18560 else
18561   ac_cv_func_alloca_works=no
18562 fi
18563 rm -f core conftest.err conftest.$ac_objext \
18564     conftest$ac_exeext conftest.$ac_ext
18565 fi
18566 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5
18567 $as_echo "$ac_cv_func_alloca_works" >&6; }
18568
18569 if test $ac_cv_func_alloca_works = yes; then
18570
18571 $as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
18572
18573 else
18574   # The SVR3 libPW and SVR4 libucb both contain incompatible functions
18575 # that cause trouble.  Some versions do not even contain alloca or
18576 # contain a buggy version.  If you still want to use their alloca,
18577 # use ar to extract alloca.o from them instead of compiling alloca.c.
18578
18579 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
18580
18581 $as_echo "#define C_ALLOCA 1" >>confdefs.h
18582
18583
18584 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether \`alloca.c' needs Cray hooks" >&5
18585 $as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; }
18586 if test "${ac_cv_os_cray+set}" = set; then :
18587   $as_echo_n "(cached) " >&6
18588 else
18589   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18590 /* end confdefs.h.  */
18591 #if defined CRAY && ! defined CRAY2
18592 webecray
18593 #else
18594 wenotbecray
18595 #endif
18596
18597 _ACEOF
18598 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
18599   $EGREP "webecray" >/dev/null 2>&1; then :
18600   ac_cv_os_cray=yes
18601 else
18602   ac_cv_os_cray=no
18603 fi
18604 rm -f conftest*
18605
18606 fi
18607 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5
18608 $as_echo "$ac_cv_os_cray" >&6; }
18609 if test $ac_cv_os_cray = yes; then
18610   for ac_func in _getb67 GETB67 getb67; do
18611     as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
18612 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
18613 eval as_val=\$$as_ac_var
18614    if test "x$as_val" = x""yes; then :
18615
18616 cat >>confdefs.h <<_ACEOF
18617 #define CRAY_STACKSEG_END $ac_func
18618 _ACEOF
18619
18620     break
18621 fi
18622
18623   done
18624 fi
18625
18626 { $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5
18627 $as_echo_n "checking stack direction for C alloca... " >&6; }
18628 if test "${ac_cv_c_stack_direction+set}" = set; then :
18629   $as_echo_n "(cached) " >&6
18630 else
18631   if test "$cross_compiling" = yes; then :
18632   ac_cv_c_stack_direction=0
18633 else
18634   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18635 /* end confdefs.h.  */
18636 $ac_includes_default
18637 int
18638 find_stack_direction ()
18639 {
18640   static char *addr = 0;
18641   auto char dummy;
18642   if (addr == 0)
18643     {
18644       addr = &dummy;
18645       return find_stack_direction ();
18646     }
18647   else
18648     return (&dummy > addr) ? 1 : -1;
18649 }
18650
18651 int
18652 main ()
18653 {
18654   return find_stack_direction () < 0;
18655 }
18656 _ACEOF
18657 if ac_fn_c_try_run "$LINENO"; then :
18658   ac_cv_c_stack_direction=1
18659 else
18660   ac_cv_c_stack_direction=-1
18661 fi
18662 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
18663   conftest.$ac_objext conftest.beam conftest.$ac_ext
18664 fi
18665
18666 fi
18667 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5
18668 $as_echo "$ac_cv_c_stack_direction" >&6; }
18669 cat >>confdefs.h <<_ACEOF
18670 #define STACK_DIRECTION $ac_cv_c_stack_direction
18671 _ACEOF
18672
18673
18674 fi
18675
18676
18677
18678
18679   for ac_header in $ac_header_list
18680 do :
18681   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
18682 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
18683 "
18684 eval as_val=\$$as_ac_Header
18685    if test "x$as_val" = x""yes; then :
18686   cat >>confdefs.h <<_ACEOF
18687 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
18688 _ACEOF
18689
18690 fi
18691
18692 done
18693
18694
18695
18696
18697
18698
18699
18700
18701 for ac_func in getpagesize
18702 do :
18703   ac_fn_c_check_func "$LINENO" "getpagesize" "ac_cv_func_getpagesize"
18704 if test "x$ac_cv_func_getpagesize" = x""yes; then :
18705   cat >>confdefs.h <<_ACEOF
18706 #define HAVE_GETPAGESIZE 1
18707 _ACEOF
18708
18709 fi
18710 done
18711
18712 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap" >&5
18713 $as_echo_n "checking for working mmap... " >&6; }
18714 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then :
18715   $as_echo_n "(cached) " >&6
18716 else
18717   if test "$cross_compiling" = yes; then :
18718   ac_cv_func_mmap_fixed_mapped=no
18719 else
18720   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18721 /* end confdefs.h.  */
18722 $ac_includes_default
18723 /* malloc might have been renamed as rpl_malloc. */
18724 #undef malloc
18725
18726 /* Thanks to Mike Haertel and Jim Avera for this test.
18727    Here is a matrix of mmap possibilities:
18728         mmap private not fixed
18729         mmap private fixed at somewhere currently unmapped
18730         mmap private fixed at somewhere already mapped
18731         mmap shared not fixed
18732         mmap shared fixed at somewhere currently unmapped
18733         mmap shared fixed at somewhere already mapped
18734    For private mappings, we should verify that changes cannot be read()
18735    back from the file, nor mmap's back from the file at a different
18736    address.  (There have been systems where private was not correctly
18737    implemented like the infamous i386 svr4.0, and systems where the
18738    VM page cache was not coherent with the file system buffer cache
18739    like early versions of FreeBSD and possibly contemporary NetBSD.)
18740    For shared mappings, we should conversely verify that changes get
18741    propagated back to all the places they're supposed to be.
18742
18743    Grep wants private fixed already mapped.
18744    The main things grep needs to know about mmap are:
18745    * does it exist and is it safe to write into the mmap'd area
18746    * how to use it (BSD variants)  */
18747
18748 #include <fcntl.h>
18749 #include <sys/mman.h>
18750
18751 #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
18752 char *malloc ();
18753 #endif
18754
18755 /* This mess was copied from the GNU getpagesize.h.  */
18756 #ifndef HAVE_GETPAGESIZE
18757 # ifdef _SC_PAGESIZE
18758 #  define getpagesize() sysconf(_SC_PAGESIZE)
18759 # else /* no _SC_PAGESIZE */
18760 #  ifdef HAVE_SYS_PARAM_H
18761 #   include <sys/param.h>
18762 #   ifdef EXEC_PAGESIZE
18763 #    define getpagesize() EXEC_PAGESIZE
18764 #   else /* no EXEC_PAGESIZE */
18765 #    ifdef NBPG
18766 #     define getpagesize() NBPG * CLSIZE
18767 #     ifndef CLSIZE
18768 #      define CLSIZE 1
18769 #     endif /* no CLSIZE */
18770 #    else /* no NBPG */
18771 #     ifdef NBPC
18772 #      define getpagesize() NBPC
18773 #     else /* no NBPC */
18774 #      ifdef PAGESIZE
18775 #       define getpagesize() PAGESIZE
18776 #      endif /* PAGESIZE */
18777 #     endif /* no NBPC */
18778 #    endif /* no NBPG */
18779 #   endif /* no EXEC_PAGESIZE */
18780 #  else /* no HAVE_SYS_PARAM_H */
18781 #   define getpagesize() 8192   /* punt totally */
18782 #  endif /* no HAVE_SYS_PARAM_H */
18783 # endif /* no _SC_PAGESIZE */
18784
18785 #endif /* no HAVE_GETPAGESIZE */
18786
18787 int
18788 main ()
18789 {
18790   char *data, *data2, *data3;
18791   const char *cdata2;
18792   int i, pagesize;
18793   int fd, fd2;
18794
18795   pagesize = getpagesize ();
18796
18797   /* First, make a file with some known garbage in it. */
18798   data = (char *) malloc (pagesize);
18799   if (!data)
18800     return 1;
18801   for (i = 0; i < pagesize; ++i)
18802     *(data + i) = rand ();
18803   umask (0);
18804   fd = creat ("conftest.mmap", 0600);
18805   if (fd < 0)
18806     return 2;
18807   if (write (fd, data, pagesize) != pagesize)
18808     return 3;
18809   close (fd);
18810
18811   /* Next, check that the tail of a page is zero-filled.  File must have
18812      non-zero length, otherwise we risk SIGBUS for entire page.  */
18813   fd2 = open ("conftest.txt", O_RDWR | O_CREAT | O_TRUNC, 0600);
18814   if (fd2 < 0)
18815     return 4;
18816   cdata2 = "";
18817   if (write (fd2, cdata2, 1) != 1)
18818     return 5;
18819   data2 = (char *) mmap (0, pagesize, PROT_READ | PROT_WRITE, MAP_SHARED, fd2, 0L);
18820   if (data2 == MAP_FAILED)
18821     return 6;
18822   for (i = 0; i < pagesize; ++i)
18823     if (*(data2 + i))
18824       return 7;
18825   close (fd2);
18826   if (munmap (data2, pagesize))
18827     return 8;
18828
18829   /* Next, try to mmap the file at a fixed address which already has
18830      something else allocated at it.  If we can, also make sure that
18831      we see the same garbage.  */
18832   fd = open ("conftest.mmap", O_RDWR);
18833   if (fd < 0)
18834     return 9;
18835   if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
18836                      MAP_PRIVATE | MAP_FIXED, fd, 0L))
18837     return 10;
18838   for (i = 0; i < pagesize; ++i)
18839     if (*(data + i) != *(data2 + i))
18840       return 11;
18841
18842   /* Finally, make sure that changes to the mapped area do not
18843      percolate back to the file as seen by read().  (This is a bug on
18844      some variants of i386 svr4.0.)  */
18845   for (i = 0; i < pagesize; ++i)
18846     *(data2 + i) = *(data2 + i) + 1;
18847   data3 = (char *) malloc (pagesize);
18848   if (!data3)
18849     return 12;
18850   if (read (fd, data3, pagesize) != pagesize)
18851     return 13;
18852   for (i = 0; i < pagesize; ++i)
18853     if (*(data + i) != *(data3 + i))
18854       return 14;
18855   close (fd);
18856   return 0;
18857 }
18858 _ACEOF
18859 if ac_fn_c_try_run "$LINENO"; then :
18860   ac_cv_func_mmap_fixed_mapped=yes
18861 else
18862   ac_cv_func_mmap_fixed_mapped=no
18863 fi
18864 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
18865   conftest.$ac_objext conftest.beam conftest.$ac_ext
18866 fi
18867
18868 fi
18869 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_fixed_mapped" >&5
18870 $as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; }
18871 if test $ac_cv_func_mmap_fixed_mapped = yes; then
18872
18873 $as_echo "#define HAVE_MMAP 1" >>confdefs.h
18874
18875 fi
18876 rm -f conftest.mmap conftest.txt
18877
18878
18879     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C Library 2.1 or newer" >&5
18880 $as_echo_n "checking whether we are using the GNU C Library 2.1 or newer... " >&6; }
18881 if test "${ac_cv_gnu_library_2_1+set}" = set; then :
18882   $as_echo_n "(cached) " >&6
18883 else
18884   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18885 /* end confdefs.h.  */
18886
18887 #include <features.h>
18888 #ifdef __GNU_LIBRARY__
18889  #if (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 1) || (__GLIBC__ > 2)
18890   Lucky GNU user
18891  #endif
18892 #endif
18893
18894 _ACEOF
18895 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
18896   $EGREP "Lucky GNU user" >/dev/null 2>&1; then :
18897   ac_cv_gnu_library_2_1=yes
18898 else
18899   ac_cv_gnu_library_2_1=no
18900 fi
18901 rm -f conftest*
18902
18903
18904
18905 fi
18906 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_gnu_library_2_1" >&5
18907 $as_echo "$ac_cv_gnu_library_2_1" >&6; }
18908
18909     GLIBC21="$ac_cv_gnu_library_2_1"
18910
18911
18912
18913
18914   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether integer division by zero raises SIGFPE" >&5
18915 $as_echo_n "checking whether integer division by zero raises SIGFPE... " >&6; }
18916 if test "${gt_cv_int_divbyzero_sigfpe+set}" = set; then :
18917   $as_echo_n "(cached) " >&6
18918 else
18919
18920       if test "$cross_compiling" = yes; then :
18921
18922           # Guess based on the CPU.
18923           case "$host_cpu" in
18924             alpha* | i3456786 | m68k | s390*)
18925               gt_cv_int_divbyzero_sigfpe="guessing yes";;
18926             *)
18927               gt_cv_int_divbyzero_sigfpe="guessing no";;
18928           esac
18929
18930 else
18931   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18932 /* end confdefs.h.  */
18933
18934 #include <stdlib.h>
18935 #include <signal.h>
18936
18937 static void
18938 #ifdef __cplusplus
18939 sigfpe_handler (int sig)
18940 #else
18941 sigfpe_handler (sig) int sig;
18942 #endif
18943 {
18944   /* Exit with code 0 if SIGFPE, with code 1 if any other signal.  */
18945   exit (sig != SIGFPE);
18946 }
18947
18948 int x = 1;
18949 int y = 0;
18950 int z;
18951 int nan;
18952
18953 int main ()
18954 {
18955   signal (SIGFPE, sigfpe_handler);
18956 /* IRIX and AIX (when "xlc -qcheck" is used) yield signal SIGTRAP.  */
18957 #if (defined (__sgi) || defined (_AIX)) && defined (SIGTRAP)
18958   signal (SIGTRAP, sigfpe_handler);
18959 #endif
18960 /* Linux/SPARC yields signal SIGILL.  */
18961 #if defined (__sparc__) && defined (__linux__)
18962   signal (SIGILL, sigfpe_handler);
18963 #endif
18964
18965   z = x / y;
18966   nan = y / y;
18967   exit (1);
18968 }
18969
18970 _ACEOF
18971 if ac_fn_c_try_run "$LINENO"; then :
18972   gt_cv_int_divbyzero_sigfpe=yes
18973 else
18974   gt_cv_int_divbyzero_sigfpe=no
18975 fi
18976 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
18977   conftest.$ac_objext conftest.beam conftest.$ac_ext
18978 fi
18979
18980
18981 fi
18982 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_int_divbyzero_sigfpe" >&5
18983 $as_echo "$gt_cv_int_divbyzero_sigfpe" >&6; }
18984   case "$gt_cv_int_divbyzero_sigfpe" in
18985     *yes) value=1;;
18986     *) value=0;;
18987   esac
18988
18989 cat >>confdefs.h <<_ACEOF
18990 #define INTDIV0_RAISES_SIGFPE $value
18991 _ACEOF
18992
18993
18994
18995   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned long long" >&5
18996 $as_echo_n "checking for unsigned long long... " >&6; }
18997 if test "${ac_cv_type_unsigned_long_long+set}" = set; then :
18998   $as_echo_n "(cached) " >&6
18999 else
19000   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19001 /* end confdefs.h.  */
19002 unsigned long long ull = 1ULL; int i = 63;
19003 int
19004 main ()
19005 {
19006 unsigned long long ullmax = (unsigned long long) -1;
19007      return ull << i | ull >> i | ullmax / ull | ullmax % ull;
19008   ;
19009   return 0;
19010 }
19011 _ACEOF
19012 if ac_fn_c_try_link "$LINENO"; then :
19013   ac_cv_type_unsigned_long_long=yes
19014 else
19015   ac_cv_type_unsigned_long_long=no
19016 fi
19017 rm -f core conftest.err conftest.$ac_objext \
19018     conftest$ac_exeext conftest.$ac_ext
19019 fi
19020 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_unsigned_long_long" >&5
19021 $as_echo "$ac_cv_type_unsigned_long_long" >&6; }
19022   if test $ac_cv_type_unsigned_long_long = yes; then
19023
19024 $as_echo "#define HAVE_UNSIGNED_LONG_LONG 1" >>confdefs.h
19025
19026   fi
19027
19028
19029
19030
19031   if test $gl_cv_header_inttypes_h = no && test $gl_cv_header_stdint_h = no; then
19032
19033     test $ac_cv_type_unsigned_long_long = yes \
19034       && ac_type='unsigned long long' \
19035       || ac_type='unsigned long'
19036
19037 cat >>confdefs.h <<_ACEOF
19038 #define uintmax_t $ac_type
19039 _ACEOF
19040
19041   else
19042
19043 $as_echo "#define HAVE_UINTMAX_T 1" >>confdefs.h
19044
19045   fi
19046
19047
19048   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inttypes.h" >&5
19049 $as_echo_n "checking for inttypes.h... " >&6; }
19050 if test "${gt_cv_header_inttypes_h+set}" = set; then :
19051   $as_echo_n "(cached) " >&6
19052 else
19053
19054     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19055 /* end confdefs.h.  */
19056 #include <sys/types.h>
19057 #include <inttypes.h>
19058 int
19059 main ()
19060 {
19061
19062   ;
19063   return 0;
19064 }
19065 _ACEOF
19066 if ac_fn_c_try_compile "$LINENO"; then :
19067   gt_cv_header_inttypes_h=yes
19068 else
19069   gt_cv_header_inttypes_h=no
19070 fi
19071 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19072
19073 fi
19074 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_header_inttypes_h" >&5
19075 $as_echo "$gt_cv_header_inttypes_h" >&6; }
19076   if test $gt_cv_header_inttypes_h = yes; then
19077
19078 cat >>confdefs.h <<_ACEOF
19079 #define HAVE_INTTYPES_H 1
19080 _ACEOF
19081
19082   fi
19083
19084
19085
19086   if test $gt_cv_header_inttypes_h = yes; then
19087     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the inttypes.h PRIxNN macros are broken" >&5
19088 $as_echo_n "checking whether the inttypes.h PRIxNN macros are broken... " >&6; }
19089 if test "${gt_cv_inttypes_pri_broken+set}" = set; then :
19090   $as_echo_n "(cached) " >&6
19091 else
19092
19093         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19094 /* end confdefs.h.  */
19095 #include <inttypes.h>
19096 #ifdef PRId32
19097 char *p = PRId32;
19098 #endif
19099
19100 int
19101 main ()
19102 {
19103
19104   ;
19105   return 0;
19106 }
19107 _ACEOF
19108 if ac_fn_c_try_compile "$LINENO"; then :
19109   gt_cv_inttypes_pri_broken=no
19110 else
19111   gt_cv_inttypes_pri_broken=yes
19112 fi
19113 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19114
19115 fi
19116 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_inttypes_pri_broken" >&5
19117 $as_echo "$gt_cv_inttypes_pri_broken" >&6; }
19118   fi
19119   if test "$gt_cv_inttypes_pri_broken" = yes; then
19120
19121 cat >>confdefs.h <<_ACEOF
19122 #define PRI_MACROS_BROKEN 1
19123 _ACEOF
19124
19125   fi
19126
19127
19128   for ac_header in stdint.h
19129 do :
19130   ac_fn_c_check_header_mongrel "$LINENO" "stdint.h" "ac_cv_header_stdint_h" "$ac_includes_default"
19131 if test "x$ac_cv_header_stdint_h" = x""yes; then :
19132   cat >>confdefs.h <<_ACEOF
19133 #define HAVE_STDINT_H 1
19134 _ACEOF
19135
19136 fi
19137
19138 done
19139
19140     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SIZE_MAX" >&5
19141 $as_echo_n "checking for SIZE_MAX... " >&6; }
19142   result=
19143   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19144 /* end confdefs.h.  */
19145
19146 #include <limits.h>
19147 #if HAVE_STDINT_H
19148 #include <stdint.h>
19149 #endif
19150 #ifdef SIZE_MAX
19151 Found it
19152 #endif
19153
19154 _ACEOF
19155 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19156   $EGREP "Found it" >/dev/null 2>&1; then :
19157   result=yes
19158 fi
19159 rm -f conftest*
19160
19161   if test -z "$result"; then
19162                     if ac_fn_c_compute_int "$LINENO" "~(size_t)0 / 10" "res_hi"        "#include <stddef.h>"; then :
19163
19164 else
19165   result=?
19166 fi
19167
19168
19169     if ac_fn_c_compute_int "$LINENO" "~(size_t)0 % 10" "res_lo"        "#include <stddef.h>"; then :
19170
19171 else
19172   result=?
19173 fi
19174
19175
19176     if ac_fn_c_compute_int "$LINENO" "sizeof (size_t) <= sizeof (unsigned int)" "fits_in_uint"        "#include <stddef.h>"; then :
19177
19178 else
19179   result=?
19180 fi
19181
19182
19183     if test "$fits_in_uint" = 1; then
19184                   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19185 /* end confdefs.h.  */
19186 #include <stddef.h>
19187         extern size_t foo;
19188         extern unsigned long foo;
19189
19190 int
19191 main ()
19192 {
19193
19194   ;
19195   return 0;
19196 }
19197 _ACEOF
19198 if ac_fn_c_try_compile "$LINENO"; then :
19199   fits_in_uint=0
19200 fi
19201 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19202     fi
19203     if test -z "$result"; then
19204       if test "$fits_in_uint" = 1; then
19205         result="$res_hi$res_lo"U
19206       else
19207         result="$res_hi$res_lo"UL
19208       fi
19209     else
19210             result='~(size_t)0'
19211     fi
19212   fi
19213   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $result" >&5
19214 $as_echo "$result" >&6; }
19215   if test "$result" != yes; then
19216
19217 cat >>confdefs.h <<_ACEOF
19218 #define SIZE_MAX $result
19219 _ACEOF
19220
19221   fi
19222
19223
19224
19225
19226   for ac_header in stdint.h
19227 do :
19228   ac_fn_c_check_header_mongrel "$LINENO" "stdint.h" "ac_cv_header_stdint_h" "$ac_includes_default"
19229 if test "x$ac_cv_header_stdint_h" = x""yes; then :
19230   cat >>confdefs.h <<_ACEOF
19231 #define HAVE_STDINT_H 1
19232 _ACEOF
19233
19234 fi
19235
19236 done
19237
19238
19239
19240
19241
19242
19243
19244
19245   ac_fn_c_check_type "$LINENO" "ptrdiff_t" "ac_cv_type_ptrdiff_t" "$ac_includes_default"
19246 if test "x$ac_cv_type_ptrdiff_t" = x""yes; then :
19247
19248 else
19249
19250 $as_echo "#define ptrdiff_t long" >>confdefs.h
19251
19252
19253 fi
19254
19255   for ac_header in argz.h limits.h locale.h nl_types.h malloc.h stddef.h \
19256 stdlib.h string.h unistd.h sys/param.h
19257 do :
19258   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
19259 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
19260 eval as_val=\$$as_ac_Header
19261    if test "x$as_val" = x""yes; then :
19262   cat >>confdefs.h <<_ACEOF
19263 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
19264 _ACEOF
19265
19266 fi
19267
19268 done
19269
19270   for ac_func in asprintf fwprintf getcwd getegid geteuid getgid getuid \
19271 mempcpy munmap putenv setenv setlocale snprintf stpcpy strcasecmp strdup \
19272 strtoul tsearch wcslen __argz_count __argz_stringify __argz_next \
19273 __fsetlocking
19274 do :
19275   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
19276 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
19277 eval as_val=\$$as_ac_var
19278    if test "x$as_val" = x""yes; then :
19279   cat >>confdefs.h <<_ACEOF
19280 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
19281 _ACEOF
19282
19283 fi
19284 done
19285
19286
19287
19288   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether _snprintf is declared" >&5
19289 $as_echo_n "checking whether _snprintf is declared... " >&6; }
19290 if test "${ac_cv_have_decl__snprintf+set}" = set; then :
19291   $as_echo_n "(cached) " >&6
19292 else
19293   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19294 /* end confdefs.h.  */
19295 #include <stdio.h>
19296 int
19297 main ()
19298 {
19299
19300 #ifndef _snprintf
19301   char *p = (char *) _snprintf;
19302 #endif
19303
19304   ;
19305   return 0;
19306 }
19307 _ACEOF
19308 if ac_fn_c_try_compile "$LINENO"; then :
19309   ac_cv_have_decl__snprintf=yes
19310 else
19311   ac_cv_have_decl__snprintf=no
19312 fi
19313 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19314 fi
19315 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_decl__snprintf" >&5
19316 $as_echo "$ac_cv_have_decl__snprintf" >&6; }
19317   if test $ac_cv_have_decl__snprintf = yes; then
19318     gt_value=1
19319   else
19320     gt_value=0
19321   fi
19322
19323 cat >>confdefs.h <<_ACEOF
19324 #define HAVE_DECL__SNPRINTF $gt_value
19325 _ACEOF
19326
19327
19328
19329   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether _snwprintf is declared" >&5
19330 $as_echo_n "checking whether _snwprintf is declared... " >&6; }
19331 if test "${ac_cv_have_decl__snwprintf+set}" = set; then :
19332   $as_echo_n "(cached) " >&6
19333 else
19334   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19335 /* end confdefs.h.  */
19336 #include <stdio.h>
19337 int
19338 main ()
19339 {
19340
19341 #ifndef _snwprintf
19342   char *p = (char *) _snwprintf;
19343 #endif
19344
19345   ;
19346   return 0;
19347 }
19348 _ACEOF
19349 if ac_fn_c_try_compile "$LINENO"; then :
19350   ac_cv_have_decl__snwprintf=yes
19351 else
19352   ac_cv_have_decl__snwprintf=no
19353 fi
19354 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19355 fi
19356 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_decl__snwprintf" >&5
19357 $as_echo "$ac_cv_have_decl__snwprintf" >&6; }
19358   if test $ac_cv_have_decl__snwprintf = yes; then
19359     gt_value=1
19360   else
19361     gt_value=0
19362   fi
19363
19364 cat >>confdefs.h <<_ACEOF
19365 #define HAVE_DECL__SNWPRINTF $gt_value
19366 _ACEOF
19367
19368
19369
19370
19371   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether feof_unlocked is declared" >&5
19372 $as_echo_n "checking whether feof_unlocked is declared... " >&6; }
19373 if test "${ac_cv_have_decl_feof_unlocked+set}" = set; then :
19374   $as_echo_n "(cached) " >&6
19375 else
19376   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19377 /* end confdefs.h.  */
19378 #include <stdio.h>
19379 int
19380 main ()
19381 {
19382
19383 #ifndef feof_unlocked
19384   char *p = (char *) feof_unlocked;
19385 #endif
19386
19387   ;
19388   return 0;
19389 }
19390 _ACEOF
19391 if ac_fn_c_try_compile "$LINENO"; then :
19392   ac_cv_have_decl_feof_unlocked=yes
19393 else
19394   ac_cv_have_decl_feof_unlocked=no
19395 fi
19396 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19397 fi
19398 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_decl_feof_unlocked" >&5
19399 $as_echo "$ac_cv_have_decl_feof_unlocked" >&6; }
19400   if test $ac_cv_have_decl_feof_unlocked = yes; then
19401     gt_value=1
19402   else
19403     gt_value=0
19404   fi
19405
19406 cat >>confdefs.h <<_ACEOF
19407 #define HAVE_DECL_FEOF_UNLOCKED $gt_value
19408 _ACEOF
19409
19410
19411
19412   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether fgets_unlocked is declared" >&5
19413 $as_echo_n "checking whether fgets_unlocked is declared... " >&6; }
19414 if test "${ac_cv_have_decl_fgets_unlocked+set}" = set; then :
19415   $as_echo_n "(cached) " >&6
19416 else
19417   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19418 /* end confdefs.h.  */
19419 #include <stdio.h>
19420 int
19421 main ()
19422 {
19423
19424 #ifndef fgets_unlocked
19425   char *p = (char *) fgets_unlocked;
19426 #endif
19427
19428   ;
19429   return 0;
19430 }
19431 _ACEOF
19432 if ac_fn_c_try_compile "$LINENO"; then :
19433   ac_cv_have_decl_fgets_unlocked=yes
19434 else
19435   ac_cv_have_decl_fgets_unlocked=no
19436 fi
19437 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19438 fi
19439 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_decl_fgets_unlocked" >&5
19440 $as_echo "$ac_cv_have_decl_fgets_unlocked" >&6; }
19441   if test $ac_cv_have_decl_fgets_unlocked = yes; then
19442     gt_value=1
19443   else
19444     gt_value=0
19445   fi
19446
19447 cat >>confdefs.h <<_ACEOF
19448 #define HAVE_DECL_FGETS_UNLOCKED $gt_value
19449 _ACEOF
19450
19451
19452
19453   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether getc_unlocked is declared" >&5
19454 $as_echo_n "checking whether getc_unlocked is declared... " >&6; }
19455 if test "${ac_cv_have_decl_getc_unlocked+set}" = set; then :
19456   $as_echo_n "(cached) " >&6
19457 else
19458   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19459 /* end confdefs.h.  */
19460 #include <stdio.h>
19461 int
19462 main ()
19463 {
19464
19465 #ifndef getc_unlocked
19466   char *p = (char *) getc_unlocked;
19467 #endif
19468
19469   ;
19470   return 0;
19471 }
19472 _ACEOF
19473 if ac_fn_c_try_compile "$LINENO"; then :
19474   ac_cv_have_decl_getc_unlocked=yes
19475 else
19476   ac_cv_have_decl_getc_unlocked=no
19477 fi
19478 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19479 fi
19480 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_decl_getc_unlocked" >&5
19481 $as_echo "$ac_cv_have_decl_getc_unlocked" >&6; }
19482   if test $ac_cv_have_decl_getc_unlocked = yes; then
19483     gt_value=1
19484   else
19485     gt_value=0
19486   fi
19487
19488 cat >>confdefs.h <<_ACEOF
19489 #define HAVE_DECL_GETC_UNLOCKED $gt_value
19490 _ACEOF
19491
19492
19493
19494   case $gt_cv_func_printf_posix in
19495     *yes) HAVE_POSIX_PRINTF=1 ;;
19496     *) HAVE_POSIX_PRINTF=0 ;;
19497   esac
19498
19499   if test "$ac_cv_func_asprintf" = yes; then
19500     HAVE_ASPRINTF=1
19501   else
19502     HAVE_ASPRINTF=0
19503   fi
19504
19505   if test "$ac_cv_func_snprintf" = yes; then
19506     HAVE_SNPRINTF=1
19507   else
19508     HAVE_SNPRINTF=0
19509   fi
19510
19511   if test "$ac_cv_func_wprintf" = yes; then
19512     HAVE_WPRINTF=1
19513   else
19514     HAVE_WPRINTF=0
19515   fi
19516
19517
19518
19519
19520
19521
19522
19523           am_save_CPPFLAGS="$CPPFLAGS"
19524
19525   for element in $INCICONV; do
19526     haveit=
19527     for x in $CPPFLAGS; do
19528
19529   acl_save_prefix="$prefix"
19530   prefix="$acl_final_prefix"
19531   acl_save_exec_prefix="$exec_prefix"
19532   exec_prefix="$acl_final_exec_prefix"
19533   eval x=\"$x\"
19534   exec_prefix="$acl_save_exec_prefix"
19535   prefix="$acl_save_prefix"
19536
19537       if test "X$x" = "X$element"; then
19538         haveit=yes
19539         break
19540       fi
19541     done
19542     if test -z "$haveit"; then
19543       CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
19544     fi
19545   done
19546
19547
19548   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5
19549 $as_echo_n "checking for iconv... " >&6; }
19550 if test "${am_cv_func_iconv+set}" = set; then :
19551   $as_echo_n "(cached) " >&6
19552 else
19553
19554     am_cv_func_iconv="no, consider installing GNU libiconv"
19555     am_cv_lib_iconv=no
19556     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19557 /* end confdefs.h.  */
19558 #include <stdlib.h>
19559 #include <iconv.h>
19560 int
19561 main ()
19562 {
19563 iconv_t cd = iconv_open("","");
19564        iconv(cd,NULL,NULL,NULL,NULL);
19565        iconv_close(cd);
19566   ;
19567   return 0;
19568 }
19569 _ACEOF
19570 if ac_fn_c_try_link "$LINENO"; then :
19571   am_cv_func_iconv=yes
19572 fi
19573 rm -f core conftest.err conftest.$ac_objext \
19574     conftest$ac_exeext conftest.$ac_ext
19575     if test "$am_cv_func_iconv" != yes; then
19576       am_save_LIBS="$LIBS"
19577       LIBS="$LIBS $LIBICONV"
19578       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19579 /* end confdefs.h.  */
19580 #include <stdlib.h>
19581 #include <iconv.h>
19582 int
19583 main ()
19584 {
19585 iconv_t cd = iconv_open("","");
19586          iconv(cd,NULL,NULL,NULL,NULL);
19587          iconv_close(cd);
19588   ;
19589   return 0;
19590 }
19591 _ACEOF
19592 if ac_fn_c_try_link "$LINENO"; then :
19593   am_cv_lib_iconv=yes
19594         am_cv_func_iconv=yes
19595 fi
19596 rm -f core conftest.err conftest.$ac_objext \
19597     conftest$ac_exeext conftest.$ac_ext
19598       LIBS="$am_save_LIBS"
19599     fi
19600
19601 fi
19602 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5
19603 $as_echo "$am_cv_func_iconv" >&6; }
19604   if test "$am_cv_func_iconv" = yes; then
19605
19606 $as_echo "#define HAVE_ICONV 1" >>confdefs.h
19607
19608   fi
19609   if test "$am_cv_lib_iconv" = yes; then
19610     { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libiconv" >&5
19611 $as_echo_n "checking how to link with libiconv... " >&6; }
19612     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBICONV" >&5
19613 $as_echo "$LIBICONV" >&6; }
19614   else
19615             CPPFLAGS="$am_save_CPPFLAGS"
19616     LIBICONV=
19617     LTLIBICONV=
19618   fi
19619
19620
19621
19622   if test "$am_cv_func_iconv" = yes; then
19623     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv declaration" >&5
19624 $as_echo_n "checking for iconv declaration... " >&6; }
19625     if test "${am_cv_proto_iconv+set}" = set; then :
19626   $as_echo_n "(cached) " >&6
19627 else
19628
19629       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19630 /* end confdefs.h.  */
19631
19632 #include <stdlib.h>
19633 #include <iconv.h>
19634 extern
19635 #ifdef __cplusplus
19636 "C"
19637 #endif
19638 #if defined(__STDC__) || defined(__cplusplus)
19639 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
19640 #else
19641 size_t iconv();
19642 #endif
19643
19644 int
19645 main ()
19646 {
19647
19648   ;
19649   return 0;
19650 }
19651 _ACEOF
19652 if ac_fn_c_try_compile "$LINENO"; then :
19653   am_cv_proto_iconv_arg1=""
19654 else
19655   am_cv_proto_iconv_arg1="const"
19656 fi
19657 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19658       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);"
19659 fi
19660
19661     am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
19662     { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${ac_t:-
19663          }$am_cv_proto_iconv" >&5
19664 $as_echo "${ac_t:-
19665          }$am_cv_proto_iconv" >&6; }
19666
19667 cat >>confdefs.h <<_ACEOF
19668 #define ICONV_CONST $am_cv_proto_iconv_arg1
19669 _ACEOF
19670
19671   fi
19672
19673
19674   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nl_langinfo and CODESET" >&5
19675 $as_echo_n "checking for nl_langinfo and CODESET... " >&6; }
19676 if test "${am_cv_langinfo_codeset+set}" = set; then :
19677   $as_echo_n "(cached) " >&6
19678 else
19679   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19680 /* end confdefs.h.  */
19681 #include <langinfo.h>
19682 int
19683 main ()
19684 {
19685 char* cs = nl_langinfo(CODESET);
19686   ;
19687   return 0;
19688 }
19689 _ACEOF
19690 if ac_fn_c_try_link "$LINENO"; then :
19691   am_cv_langinfo_codeset=yes
19692 else
19693   am_cv_langinfo_codeset=no
19694 fi
19695 rm -f core conftest.err conftest.$ac_objext \
19696     conftest$ac_exeext conftest.$ac_ext
19697
19698 fi
19699 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_langinfo_codeset" >&5
19700 $as_echo "$am_cv_langinfo_codeset" >&6; }
19701   if test $am_cv_langinfo_codeset = yes; then
19702
19703 $as_echo "#define HAVE_LANGINFO_CODESET 1" >>confdefs.h
19704
19705   fi
19706
19707   if test $ac_cv_header_locale_h = yes; then
19708
19709   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LC_MESSAGES" >&5
19710 $as_echo_n "checking for LC_MESSAGES... " >&6; }
19711 if test "${gt_cv_val_LC_MESSAGES+set}" = set; then :
19712   $as_echo_n "(cached) " >&6
19713 else
19714   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19715 /* end confdefs.h.  */
19716 #include <locale.h>
19717 int
19718 main ()
19719 {
19720 return LC_MESSAGES
19721   ;
19722   return 0;
19723 }
19724 _ACEOF
19725 if ac_fn_c_try_link "$LINENO"; then :
19726   gt_cv_val_LC_MESSAGES=yes
19727 else
19728   gt_cv_val_LC_MESSAGES=no
19729 fi
19730 rm -f core conftest.err conftest.$ac_objext \
19731     conftest$ac_exeext conftest.$ac_ext
19732 fi
19733 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_val_LC_MESSAGES" >&5
19734 $as_echo "$gt_cv_val_LC_MESSAGES" >&6; }
19735   if test $gt_cv_val_LC_MESSAGES = yes; then
19736
19737 $as_echo "#define HAVE_LC_MESSAGES 1" >>confdefs.h
19738
19739   fi
19740
19741   fi
19742
19743   if test -n "$INTL_MACOSX_LIBS"; then
19744     CPPFLAGS="$CPPFLAGS -I/System/Library/Frameworks/CoreFoundation.framework/Headers"
19745   fi
19746
19747                       for ac_prog in bison
19748 do
19749   # Extract the first word of "$ac_prog", so it can be a program name with args.
19750 set dummy $ac_prog; ac_word=$2
19751 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19752 $as_echo_n "checking for $ac_word... " >&6; }
19753 if test "${ac_cv_prog_INTLBISON+set}" = set; then :
19754   $as_echo_n "(cached) " >&6
19755 else
19756   if test -n "$INTLBISON"; then
19757   ac_cv_prog_INTLBISON="$INTLBISON" # Let the user override the test.
19758 else
19759 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19760 for as_dir in $PATH
19761 do
19762   IFS=$as_save_IFS
19763   test -z "$as_dir" && as_dir=.
19764     for ac_exec_ext in '' $ac_executable_extensions; do
19765   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
19766     ac_cv_prog_INTLBISON="$ac_prog"
19767     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
19768     break 2
19769   fi
19770 done
19771   done
19772 IFS=$as_save_IFS
19773
19774 fi
19775 fi
19776 INTLBISON=$ac_cv_prog_INTLBISON
19777 if test -n "$INTLBISON"; then
19778   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INTLBISON" >&5
19779 $as_echo "$INTLBISON" >&6; }
19780 else
19781   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19782 $as_echo "no" >&6; }
19783 fi
19784
19785
19786   test -n "$INTLBISON" && break
19787 done
19788
19789   if test -z "$INTLBISON"; then
19790     ac_verc_fail=yes
19791   else
19792         { $as_echo "$as_me:${as_lineno-$LINENO}: checking version of bison" >&5
19793 $as_echo_n "checking version of bison... " >&6; }
19794     ac_prog_version=`$INTLBISON --version 2>&1 | sed -n 's/^.*GNU Bison.* \([0-9]*\.[0-9.]*\).*$/\1/p'`
19795     case $ac_prog_version in
19796       '') ac_prog_version="v. ?.??, bad"; ac_verc_fail=yes;;
19797       1.2[6-9]* | 1.[3-9][0-9]* | [2-9].*)
19798          ac_prog_version="$ac_prog_version, ok"; ac_verc_fail=no;;
19799       *) ac_prog_version="$ac_prog_version, bad"; ac_verc_fail=yes;;
19800     esac
19801     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_prog_version" >&5
19802 $as_echo "$ac_prog_version" >&6; }
19803   fi
19804   if test $ac_verc_fail = yes; then
19805     INTLBISON=:
19806   fi
19807
19808
19809
19810
19811
19812
19813
19814
19815
19816
19817
19818
19819
19820
19821
19822
19823     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFPreferencesCopyAppValue" >&5
19824 $as_echo_n "checking for CFPreferencesCopyAppValue... " >&6; }
19825 if test "${gt_cv_func_CFPreferencesCopyAppValue+set}" = set; then :
19826   $as_echo_n "(cached) " >&6
19827 else
19828   gt_save_CPPFLAGS="$CPPFLAGS"
19829      CPPFLAGS="$CPPFLAGS -I/System/Library/Frameworks/CoreFoundation.framework/Headers"
19830      gt_save_LIBS="$LIBS"
19831      LIBS="$LIBS -framework CoreFoundation"
19832      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19833 /* end confdefs.h.  */
19834 #include <CFPreferences.h>
19835 int
19836 main ()
19837 {
19838 CFPreferencesCopyAppValue(NULL, NULL)
19839   ;
19840   return 0;
19841 }
19842 _ACEOF
19843 if ac_fn_c_try_link "$LINENO"; then :
19844   gt_cv_func_CFPreferencesCopyAppValue=yes
19845 else
19846   gt_cv_func_CFPreferencesCopyAppValue=no
19847 fi
19848 rm -f core conftest.err conftest.$ac_objext \
19849     conftest$ac_exeext conftest.$ac_ext
19850      CPPFLAGS="$gt_save_CPPFLAGS"
19851      LIBS="$gt_save_LIBS"
19852 fi
19853 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFPreferencesCopyAppValue" >&5
19854 $as_echo "$gt_cv_func_CFPreferencesCopyAppValue" >&6; }
19855   if test $gt_cv_func_CFPreferencesCopyAppValue = yes; then
19856
19857 $as_echo "#define HAVE_CFPREFERENCESCOPYAPPVALUE 1" >>confdefs.h
19858
19859   fi
19860     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFLocaleCopyCurrent" >&5
19861 $as_echo_n "checking for CFLocaleCopyCurrent... " >&6; }
19862 if test "${gt_cv_func_CFLocaleCopyCurrent+set}" = set; then :
19863   $as_echo_n "(cached) " >&6
19864 else
19865   gt_save_CPPFLAGS="$CPPFLAGS"
19866      CPPFLAGS="$CPPFLAGS -I/System/Library/Frameworks/CoreFoundation.framework/Headers"
19867      gt_save_LIBS="$LIBS"
19868      LIBS="$LIBS -framework CoreFoundation"
19869      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19870 /* end confdefs.h.  */
19871 #include <CFLocale.h>
19872 int
19873 main ()
19874 {
19875 CFLocaleCopyCurrent();
19876   ;
19877   return 0;
19878 }
19879 _ACEOF
19880 if ac_fn_c_try_link "$LINENO"; then :
19881   gt_cv_func_CFLocaleCopyCurrent=yes
19882 else
19883   gt_cv_func_CFLocaleCopyCurrent=no
19884 fi
19885 rm -f core conftest.err conftest.$ac_objext \
19886     conftest$ac_exeext conftest.$ac_ext
19887      CPPFLAGS="$gt_save_CPPFLAGS"
19888      LIBS="$gt_save_LIBS"
19889 fi
19890 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFLocaleCopyCurrent" >&5
19891 $as_echo "$gt_cv_func_CFLocaleCopyCurrent" >&6; }
19892   if test $gt_cv_func_CFLocaleCopyCurrent = yes; then
19893
19894 $as_echo "#define HAVE_CFLOCALECOPYCURRENT 1" >>confdefs.h
19895
19896   fi
19897   INTL_MACOSX_LIBS=
19898   if test $gt_cv_func_CFPreferencesCopyAppValue = yes || test $gt_cv_func_CFLocaleCopyCurrent = yes; then
19899     INTL_MACOSX_LIBS="-Wl,-framework -Wl,CoreFoundation"
19900   fi
19901
19902
19903
19904
19905   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
19906 $as_echo_n "checking whether NLS is requested... " >&6; }
19907     # Check whether --enable-nls was given.
19908 if test "${enable_nls+set}" = set; then :
19909   enableval=$enable_nls; USE_NLS=$enableval
19910 else
19911   USE_NLS=yes
19912 fi
19913
19914   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
19915 $as_echo "$USE_NLS" >&6; }
19916
19917
19918
19919
19920     BUILD_INCLUDED_LIBINTL=no
19921     USE_INCLUDED_LIBINTL=no
19922
19923   LIBINTL=
19924   LTLIBINTL=
19925   POSUB=
19926
19927     if test "$USE_NLS" = "yes"; then
19928     gt_use_preinstalled_gnugettext=no
19929
19930       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether included gettext is requested" >&5
19931 $as_echo_n "checking whether included gettext is requested... " >&6; }
19932
19933 # Check whether --with-included-gettext was given.
19934 if test "${with_included_gettext+set}" = set; then :
19935   withval=$with_included_gettext; nls_cv_force_use_gnu_gettext=$withval
19936 else
19937   nls_cv_force_use_gnu_gettext=no
19938 fi
19939
19940       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $nls_cv_force_use_gnu_gettext" >&5
19941 $as_echo "$nls_cv_force_use_gnu_gettext" >&6; }
19942
19943       nls_cv_use_gnu_gettext="$nls_cv_force_use_gnu_gettext"
19944       if test "$nls_cv_force_use_gnu_gettext" != "yes"; then
19945
19946
19947
19948
19949
19950
19951         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libc" >&5
19952 $as_echo_n "checking for GNU gettext in libc... " >&6; }
19953 if test "${gt_cv_func_gnugettext1_libc+set}" = set; then :
19954   $as_echo_n "(cached) " >&6
19955 else
19956   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19957 /* end confdefs.h.  */
19958 #include <libintl.h>
19959 extern int _nl_msg_cat_cntr;
19960 extern int *_nl_domain_bindings;
19961 int
19962 main ()
19963 {
19964 bindtextdomain ("", "");
19965 return * gettext ("") + _nl_msg_cat_cntr + *_nl_domain_bindings
19966   ;
19967   return 0;
19968 }
19969 _ACEOF
19970 if ac_fn_c_try_link "$LINENO"; then :
19971   gt_cv_func_gnugettext1_libc=yes
19972 else
19973   gt_cv_func_gnugettext1_libc=no
19974 fi
19975 rm -f core conftest.err conftest.$ac_objext \
19976     conftest$ac_exeext conftest.$ac_ext
19977 fi
19978 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_gnugettext1_libc" >&5
19979 $as_echo "$gt_cv_func_gnugettext1_libc" >&6; }
19980
19981         if test "$gt_cv_func_gnugettext1_libc" != "yes"; then
19982
19983
19984
19985     use_additional=yes
19986
19987   acl_save_prefix="$prefix"
19988   prefix="$acl_final_prefix"
19989   acl_save_exec_prefix="$exec_prefix"
19990   exec_prefix="$acl_final_exec_prefix"
19991
19992     eval additional_includedir=\"$includedir\"
19993     eval additional_libdir=\"$libdir\"
19994
19995   exec_prefix="$acl_save_exec_prefix"
19996   prefix="$acl_save_prefix"
19997
19998
19999 # Check whether --with-libintl-prefix was given.
20000 if test "${with_libintl_prefix+set}" = set; then :
20001   withval=$with_libintl_prefix;
20002     if test "X$withval" = "Xno"; then
20003       use_additional=no
20004     else
20005       if test "X$withval" = "X"; then
20006
20007   acl_save_prefix="$prefix"
20008   prefix="$acl_final_prefix"
20009   acl_save_exec_prefix="$exec_prefix"
20010   exec_prefix="$acl_final_exec_prefix"
20011
20012           eval additional_includedir=\"$includedir\"
20013           eval additional_libdir=\"$libdir\"
20014
20015   exec_prefix="$acl_save_exec_prefix"
20016   prefix="$acl_save_prefix"
20017
20018       else
20019         additional_includedir="$withval/include"
20020         additional_libdir="$withval/lib"
20021       fi
20022     fi
20023
20024 fi
20025
20026       LIBINTL=
20027   LTLIBINTL=
20028   INCINTL=
20029   rpathdirs=
20030   ltrpathdirs=
20031   names_already_handled=
20032   names_next_round='intl '
20033   while test -n "$names_next_round"; do
20034     names_this_round="$names_next_round"
20035     names_next_round=
20036     for name in $names_this_round; do
20037       already_handled=
20038       for n in $names_already_handled; do
20039         if test "$n" = "$name"; then
20040           already_handled=yes
20041           break
20042         fi
20043       done
20044       if test -z "$already_handled"; then
20045         names_already_handled="$names_already_handled $name"
20046                         uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
20047         eval value=\"\$HAVE_LIB$uppername\"
20048         if test -n "$value"; then
20049           if test "$value" = yes; then
20050             eval value=\"\$LIB$uppername\"
20051             test -z "$value" || LIBINTL="${LIBINTL}${LIBINTL:+ }$value"
20052             eval value=\"\$LTLIB$uppername\"
20053             test -z "$value" || LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$value"
20054           else
20055                                     :
20056           fi
20057         else
20058                               found_dir=
20059           found_la=
20060           found_so=
20061           found_a=
20062           if test $use_additional = yes; then
20063             if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
20064               found_dir="$additional_libdir"
20065               found_so="$additional_libdir/lib$name.$shlibext"
20066               if test -f "$additional_libdir/lib$name.la"; then
20067                 found_la="$additional_libdir/lib$name.la"
20068               fi
20069             else
20070               if test -f "$additional_libdir/lib$name.$libext"; then
20071                 found_dir="$additional_libdir"
20072                 found_a="$additional_libdir/lib$name.$libext"
20073                 if test -f "$additional_libdir/lib$name.la"; then
20074                   found_la="$additional_libdir/lib$name.la"
20075                 fi
20076               fi
20077             fi
20078           fi
20079           if test "X$found_dir" = "X"; then
20080             for x in $LDFLAGS $LTLIBINTL; do
20081
20082   acl_save_prefix="$prefix"
20083   prefix="$acl_final_prefix"
20084   acl_save_exec_prefix="$exec_prefix"
20085   exec_prefix="$acl_final_exec_prefix"
20086   eval x=\"$x\"
20087   exec_prefix="$acl_save_exec_prefix"
20088   prefix="$acl_save_prefix"
20089
20090               case "$x" in
20091                 -L*)
20092                   dir=`echo "X$x" | sed -e 's/^X-L//'`
20093                   if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
20094                     found_dir="$dir"
20095                     found_so="$dir/lib$name.$shlibext"
20096                     if test -f "$dir/lib$name.la"; then
20097                       found_la="$dir/lib$name.la"
20098                     fi
20099                   else
20100                     if test -f "$dir/lib$name.$libext"; then
20101                       found_dir="$dir"
20102                       found_a="$dir/lib$name.$libext"
20103                       if test -f "$dir/lib$name.la"; then
20104                         found_la="$dir/lib$name.la"
20105                       fi
20106                     fi
20107                   fi
20108                   ;;
20109               esac
20110               if test "X$found_dir" != "X"; then
20111                 break
20112               fi
20113             done
20114           fi
20115           if test "X$found_dir" != "X"; then
20116                         LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$found_dir -l$name"
20117             if test "X$found_so" != "X"; then
20118                                                         if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
20119                                 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
20120               else
20121                                                                                 haveit=
20122                 for x in $ltrpathdirs; do
20123                   if test "X$x" = "X$found_dir"; then
20124                     haveit=yes
20125                     break
20126                   fi
20127                 done
20128                 if test -z "$haveit"; then
20129                   ltrpathdirs="$ltrpathdirs $found_dir"
20130                 fi
20131                                 if test "$hardcode_direct" = yes; then
20132                                                       LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
20133                 else
20134                   if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
20135                                                             LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
20136                                                             haveit=
20137                     for x in $rpathdirs; do
20138                       if test "X$x" = "X$found_dir"; then
20139                         haveit=yes
20140                         break
20141                       fi
20142                     done
20143                     if test -z "$haveit"; then
20144                       rpathdirs="$rpathdirs $found_dir"
20145                     fi
20146                   else
20147                                                                                 haveit=
20148                     for x in $LDFLAGS $LIBINTL; do
20149
20150   acl_save_prefix="$prefix"
20151   prefix="$acl_final_prefix"
20152   acl_save_exec_prefix="$exec_prefix"
20153   exec_prefix="$acl_final_exec_prefix"
20154   eval x=\"$x\"
20155   exec_prefix="$acl_save_exec_prefix"
20156   prefix="$acl_save_prefix"
20157
20158                       if test "X$x" = "X-L$found_dir"; then
20159                         haveit=yes
20160                         break
20161                       fi
20162                     done
20163                     if test -z "$haveit"; then
20164                       LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir"
20165                     fi
20166                     if test "$hardcode_minus_L" != no; then
20167                                                                                         LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
20168                     else
20169                                                                                                                                                                                 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
20170                     fi
20171                   fi
20172                 fi
20173               fi
20174             else
20175               if test "X$found_a" != "X"; then
20176                                 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_a"
20177               else
20178                                                 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir -l$name"
20179               fi
20180             fi
20181                         additional_includedir=
20182             case "$found_dir" in
20183               */lib | */lib/)
20184                 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
20185                 additional_includedir="$basedir/include"
20186                 ;;
20187             esac
20188             if test "X$additional_includedir" != "X"; then
20189                                                                                                                 if test "X$additional_includedir" != "X/usr/include"; then
20190                 haveit=
20191                 if test "X$additional_includedir" = "X/usr/local/include"; then
20192                   if test -n "$GCC"; then
20193                     case $host_os in
20194                       linux* | gnu* | k*bsd*-gnu) haveit=yes;;
20195                     esac
20196                   fi
20197                 fi
20198                 if test -z "$haveit"; then
20199                   for x in $CPPFLAGS $INCINTL; do
20200
20201   acl_save_prefix="$prefix"
20202   prefix="$acl_final_prefix"
20203   acl_save_exec_prefix="$exec_prefix"
20204   exec_prefix="$acl_final_exec_prefix"
20205   eval x=\"$x\"
20206   exec_prefix="$acl_save_exec_prefix"
20207   prefix="$acl_save_prefix"
20208
20209                     if test "X$x" = "X-I$additional_includedir"; then
20210                       haveit=yes
20211                       break
20212                     fi
20213                   done
20214                   if test -z "$haveit"; then
20215                     if test -d "$additional_includedir"; then
20216                                             INCINTL="${INCINTL}${INCINTL:+ }-I$additional_includedir"
20217                     fi
20218                   fi
20219                 fi
20220               fi
20221             fi
20222                         if test -n "$found_la"; then
20223                                                         save_libdir="$libdir"
20224               case "$found_la" in
20225                 */* | *\\*) . "$found_la" ;;
20226                 *) . "./$found_la" ;;
20227               esac
20228               libdir="$save_libdir"
20229                             for dep in $dependency_libs; do
20230                 case "$dep" in
20231                   -L*)
20232                     additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
20233                                                                                                                                                                 if test "X$additional_libdir" != "X/usr/lib"; then
20234                       haveit=
20235                       if test "X$additional_libdir" = "X/usr/local/lib"; then
20236                         if test -n "$GCC"; then
20237                           case $host_os in
20238                             linux* | gnu* | k*bsd*-gnu) haveit=yes;;
20239                           esac
20240                         fi
20241                       fi
20242                       if test -z "$haveit"; then
20243                         haveit=
20244                         for x in $LDFLAGS $LIBINTL; do
20245
20246   acl_save_prefix="$prefix"
20247   prefix="$acl_final_prefix"
20248   acl_save_exec_prefix="$exec_prefix"
20249   exec_prefix="$acl_final_exec_prefix"
20250   eval x=\"$x\"
20251   exec_prefix="$acl_save_exec_prefix"
20252   prefix="$acl_save_prefix"
20253
20254                           if test "X$x" = "X-L$additional_libdir"; then
20255                             haveit=yes
20256                             break
20257                           fi
20258                         done
20259                         if test -z "$haveit"; then
20260                           if test -d "$additional_libdir"; then
20261                                                         LIBINTL="${LIBINTL}${LIBINTL:+ }-L$additional_libdir"
20262                           fi
20263                         fi
20264                         haveit=
20265                         for x in $LDFLAGS $LTLIBINTL; do
20266
20267   acl_save_prefix="$prefix"
20268   prefix="$acl_final_prefix"
20269   acl_save_exec_prefix="$exec_prefix"
20270   exec_prefix="$acl_final_exec_prefix"
20271   eval x=\"$x\"
20272   exec_prefix="$acl_save_exec_prefix"
20273   prefix="$acl_save_prefix"
20274
20275                           if test "X$x" = "X-L$additional_libdir"; then
20276                             haveit=yes
20277                             break
20278                           fi
20279                         done
20280                         if test -z "$haveit"; then
20281                           if test -d "$additional_libdir"; then
20282                                                         LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$additional_libdir"
20283                           fi
20284                         fi
20285                       fi
20286                     fi
20287                     ;;
20288                   -R*)
20289                     dir=`echo "X$dep" | sed -e 's/^X-R//'`
20290                     if test "$enable_rpath" != no; then
20291                                                                   haveit=
20292                       for x in $rpathdirs; do
20293                         if test "X$x" = "X$dir"; then
20294                           haveit=yes
20295                           break
20296                         fi
20297                       done
20298                       if test -z "$haveit"; then
20299                         rpathdirs="$rpathdirs $dir"
20300                       fi
20301                                                                   haveit=
20302                       for x in $ltrpathdirs; do
20303                         if test "X$x" = "X$dir"; then
20304                           haveit=yes
20305                           break
20306                         fi
20307                       done
20308                       if test -z "$haveit"; then
20309                         ltrpathdirs="$ltrpathdirs $dir"
20310                       fi
20311                     fi
20312                     ;;
20313                   -l*)
20314                                         names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
20315                     ;;
20316                   *.la)
20317                                                                                 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
20318                     ;;
20319                   *)
20320                                         LIBINTL="${LIBINTL}${LIBINTL:+ }$dep"
20321                     LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$dep"
20322                     ;;
20323                 esac
20324               done
20325             fi
20326           else
20327                                                             LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
20328             LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-l$name"
20329           fi
20330         fi
20331       fi
20332     done
20333   done
20334   if test "X$rpathdirs" != "X"; then
20335     if test -n "$hardcode_libdir_separator"; then
20336                         alldirs=
20337       for found_dir in $rpathdirs; do
20338         alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
20339       done
20340             acl_save_libdir="$libdir"
20341       libdir="$alldirs"
20342       eval flag=\"$hardcode_libdir_flag_spec\"
20343       libdir="$acl_save_libdir"
20344       LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
20345     else
20346             for found_dir in $rpathdirs; do
20347         acl_save_libdir="$libdir"
20348         libdir="$found_dir"
20349         eval flag=\"$hardcode_libdir_flag_spec\"
20350         libdir="$acl_save_libdir"
20351         LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
20352       done
20353     fi
20354   fi
20355   if test "X$ltrpathdirs" != "X"; then
20356             for found_dir in $ltrpathdirs; do
20357       LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-R$found_dir"
20358     done
20359   fi
20360
20361           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libintl" >&5
20362 $as_echo_n "checking for GNU gettext in libintl... " >&6; }
20363 if test "${gt_cv_func_gnugettext1_libintl+set}" = set; then :
20364   $as_echo_n "(cached) " >&6
20365 else
20366   gt_save_CPPFLAGS="$CPPFLAGS"
20367             CPPFLAGS="$CPPFLAGS $INCINTL"
20368             gt_save_LIBS="$LIBS"
20369             LIBS="$LIBS $LIBINTL"
20370                         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20371 /* end confdefs.h.  */
20372 #include <libintl.h>
20373 extern int _nl_msg_cat_cntr;
20374 extern
20375 #ifdef __cplusplus
20376 "C"
20377 #endif
20378 const char *_nl_expand_alias (const char *);
20379 int
20380 main ()
20381 {
20382 bindtextdomain ("", "");
20383 return * gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias ("")
20384   ;
20385   return 0;
20386 }
20387 _ACEOF
20388 if ac_fn_c_try_link "$LINENO"; then :
20389   gt_cv_func_gnugettext1_libintl=yes
20390 else
20391   gt_cv_func_gnugettext1_libintl=no
20392 fi
20393 rm -f core conftest.err conftest.$ac_objext \
20394     conftest$ac_exeext conftest.$ac_ext
20395                         if test "$gt_cv_func_gnugettext1_libintl" != yes && test -n "$LIBICONV"; then
20396               LIBS="$LIBS $LIBICONV"
20397               cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20398 /* end confdefs.h.  */
20399 #include <libintl.h>
20400 extern int _nl_msg_cat_cntr;
20401 extern
20402 #ifdef __cplusplus
20403 "C"
20404 #endif
20405 const char *_nl_expand_alias (const char *);
20406 int
20407 main ()
20408 {
20409 bindtextdomain ("", "");
20410 return * gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias ("")
20411   ;
20412   return 0;
20413 }
20414 _ACEOF
20415 if ac_fn_c_try_link "$LINENO"; then :
20416   LIBINTL="$LIBINTL $LIBICONV"
20417                 LTLIBINTL="$LTLIBINTL $LTLIBICONV"
20418                 gt_cv_func_gnugettext1_libintl=yes
20419
20420 fi
20421 rm -f core conftest.err conftest.$ac_objext \
20422     conftest$ac_exeext conftest.$ac_ext
20423             fi
20424             CPPFLAGS="$gt_save_CPPFLAGS"
20425             LIBS="$gt_save_LIBS"
20426 fi
20427 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_gnugettext1_libintl" >&5
20428 $as_echo "$gt_cv_func_gnugettext1_libintl" >&6; }
20429         fi
20430
20431                                         if test "$gt_cv_func_gnugettext1_libc" = "yes" \
20432            || { test "$gt_cv_func_gnugettext1_libintl" = "yes" \
20433                 && test "$PACKAGE" != gettext-runtime \
20434                 && test "$PACKAGE" != gettext-tools; }; then
20435           gt_use_preinstalled_gnugettext=yes
20436         else
20437                     LIBINTL=
20438           LTLIBINTL=
20439           INCINTL=
20440         fi
20441
20442
20443         if test "$gt_use_preinstalled_gnugettext" != "yes"; then
20444                               nls_cv_use_gnu_gettext=yes
20445         fi
20446       fi
20447
20448       if test "$nls_cv_use_gnu_gettext" = "yes"; then
20449                 BUILD_INCLUDED_LIBINTL=yes
20450         USE_INCLUDED_LIBINTL=yes
20451         LIBINTL="\${top_builddir}/intl/libintl.a $LIBICONV"
20452         LTLIBINTL="\${top_builddir}/intl/libintl.a $LTLIBICONV"
20453         LIBS=`echo " $LIBS " | sed -e 's/ -lintl / /' -e 's/^ //' -e 's/ $//'`
20454       fi
20455
20456       CATOBJEXT=
20457       if test "$gt_use_preinstalled_gnugettext" = "yes" \
20458          || test "$nls_cv_use_gnu_gettext" = "yes"; then
20459                 CATOBJEXT=.gmo
20460       fi
20461
20462
20463     if test -n "$INTL_MACOSX_LIBS"; then
20464       if test "$gt_use_preinstalled_gnugettext" = "yes" \
20465          || test "$nls_cv_use_gnu_gettext" = "yes"; then
20466                 LIBINTL="$LIBINTL $INTL_MACOSX_LIBS"
20467         LTLIBINTL="$LTLIBINTL $INTL_MACOSX_LIBS"
20468       fi
20469     fi
20470
20471     if test "$gt_use_preinstalled_gnugettext" = "yes" \
20472        || test "$nls_cv_use_gnu_gettext" = "yes"; then
20473
20474 $as_echo "#define ENABLE_NLS 1" >>confdefs.h
20475
20476     else
20477       USE_NLS=no
20478     fi
20479   fi
20480
20481   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use NLS" >&5
20482 $as_echo_n "checking whether to use NLS... " >&6; }
20483   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
20484 $as_echo "$USE_NLS" >&6; }
20485   if test "$USE_NLS" = "yes"; then
20486     { $as_echo "$as_me:${as_lineno-$LINENO}: checking where the gettext function comes from" >&5
20487 $as_echo_n "checking where the gettext function comes from... " >&6; }
20488     if test "$gt_use_preinstalled_gnugettext" = "yes"; then
20489       if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
20490         gt_source="external libintl"
20491       else
20492         gt_source="libc"
20493       fi
20494     else
20495       gt_source="included intl directory"
20496     fi
20497     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_source" >&5
20498 $as_echo "$gt_source" >&6; }
20499   fi
20500
20501   if test "$USE_NLS" = "yes"; then
20502
20503     if test "$gt_use_preinstalled_gnugettext" = "yes"; then
20504       if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
20505         { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libintl" >&5
20506 $as_echo_n "checking how to link with libintl... " >&6; }
20507         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBINTL" >&5
20508 $as_echo "$LIBINTL" >&6; }
20509
20510   for element in $INCINTL; do
20511     haveit=
20512     for x in $CPPFLAGS; do
20513
20514   acl_save_prefix="$prefix"
20515   prefix="$acl_final_prefix"
20516   acl_save_exec_prefix="$exec_prefix"
20517   exec_prefix="$acl_final_exec_prefix"
20518   eval x=\"$x\"
20519   exec_prefix="$acl_save_exec_prefix"
20520   prefix="$acl_save_prefix"
20521
20522       if test "X$x" = "X$element"; then
20523         haveit=yes
20524         break
20525       fi
20526     done
20527     if test -z "$haveit"; then
20528       CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
20529     fi
20530   done
20531
20532       fi
20533
20534
20535 $as_echo "#define HAVE_GETTEXT 1" >>confdefs.h
20536
20537
20538 $as_echo "#define HAVE_DCGETTEXT 1" >>confdefs.h
20539
20540     fi
20541
20542         POSUB=po
20543   fi
20544
20545
20546             if test "$PACKAGE" = gettext-runtime || test "$PACKAGE" = gettext-tools; then
20547       BUILD_INCLUDED_LIBINTL=yes
20548     fi
20549
20550
20551
20552
20553
20554         nls_cv_header_intl=
20555     nls_cv_header_libgt=
20556
20557         DATADIRNAME=share
20558
20559
20560         INSTOBJEXT=.mo
20561
20562
20563         GENCAT=gencat
20564
20565
20566         INTLOBJS=
20567     if test "$USE_INCLUDED_LIBINTL" = yes; then
20568       INTLOBJS="\$(GETTOBJS)"
20569     fi
20570
20571
20572         INTL_LIBTOOL_SUFFIX_PREFIX=
20573
20574
20575
20576     INTLLIBS="$LIBINTL"
20577
20578
20579
20580
20581
20582
20583 fi
20584
20585 support_smartalloc=yes
20586 support_readline=yes
20587 support_conio=yes
20588 support_gnome=no
20589 support_bat=no
20590 support_wx_console=no
20591 support_tray_monitor=no
20592 support_tls=no
20593 support_crypto=no
20594 gnome_version=
20595 wx_version=
20596 support_static_tools=no
20597 support_static_fd=no
20598 support_static_sd=no
20599 support_static_dir=no
20600 support_static_cons=no
20601 support_python=no
20602 build_client_only=no
20603 build_dird=yes
20604 build_stored=yes
20605 db_backends=""
20606 support_lockmgr=no
20607
20608
20609 # Check whether --enable-gnome was given.
20610 if test "${enable_gnome+set}" = set; then :
20611   enableval=$enable_gnome;
20612        if test x$enableval = xyes; then
20613           support_gnome=yes
20614        fi
20615
20616
20617 fi
20618
20619
20620 GNOME_DIR=
20621 if test x$support_gnome = xyes; then
20622    as_fn_error "bgnome-console no longer supported" "$LINENO" 5
20623    as_fn_error "--enable-gnome option no longer supported" "$LINENO" 5
20624 fi
20625 # AC_SUBST(GNOME_DIR)
20626
20627 # Check whether --enable-bat was given.
20628 if test "${enable_bat+set}" = set; then :
20629   enableval=$enable_bat;
20630        if test x$enableval = xyes; then
20631
20632 $as_echo "#define HAVE_BAT 1" >>confdefs.h
20633
20634           support_bat=yes
20635        fi
20636
20637
20638 fi
20639
20640
20641 BAT_DIR=
20642 if test x$support_bat = xyes; then
20643    abc=`$PKGCONFIG --atleast-version=4.2 QtGui`
20644    pkg=$?
20645    if test $pkg = 0; then
20646       BAT_DIR=src/qt-console
20647    else
20648       as_fn_error "Unable to find Qt4 installation needed by bat" "$LINENO" 5
20649    fi
20650 fi
20651
20652 got_qwt=no
20653 QWT_INC=
20654 QWT_LDFLAGS=
20655 QWT_LIB=
20656 QWT=
20657 no_qwt=no
20658
20659
20660
20661
20662
20663
20664
20665
20666 # Check whether --enable-bwx-console was given.
20667 if test "${enable_bwx_console+set}" = set; then :
20668   enableval=$enable_bwx_console;
20669        if test x$enableval = xyes; then
20670           support_wx_console=yes
20671        fi
20672
20673
20674 fi
20675
20676
20677 WX_DIR=
20678 if test x$support_wx_console = xyes; then
20679    abc=`$WXCONFIG $WXFLAGS --cppflags`
20680    pkg=$?
20681    if test $pkg = 0; then
20682       wx_version="wxWidgets `$WXCONFIG $WXFLAGS --release`"
20683       WXCONS_CPPFLAGS=`$WXCONFIG $WXFLAGS --cppflags`
20684       WXCONS_LDFLAGS=`$WXCONFIG $WXFLAGS --libs`
20685
20686
20687
20688       WX_DIR="src/wx-console"
20689    else
20690       echo " "
20691       echo "wx-config program not found. bwx-console disabled."
20692       echo " "
20693       support_wx_console=no
20694    fi
20695 fi
20696
20697
20698 # Check whether --enable-tray-monitor was given.
20699 if test "${enable_tray_monitor+set}" = set; then :
20700   enableval=$enable_tray_monitor;
20701        if test x$enableval = xyes; then
20702           support_tray_monitor=yes
20703        fi
20704
20705
20706 fi
20707
20708
20709 TRAY_MONITOR_DIR=
20710 if test x$support_tray_monitor = xyes; then
20711    abc=`$PKGCONFIG --exists gtk+-2.0`
20712    pkg=$?
20713    if test $pkg = 0; then
20714       TRAY_MONITOR_CPPFLAGS=`$PKGCONFIG --cflags gtk+-2.0`
20715       TRAY_MONITOR_LDFLAGS=`$PKGCONFIG --libs gtk+-2.0`
20716
20717
20718       TRAY_MONITOR_DIR=src/tray-monitor
20719       abc=`$PKGCONFIG --atleast-version=2.4 gtk+-2.0`
20720       pkg=$?
20721       if test $pkg = 0; then
20722
20723 $as_echo "#define HAVE_GTK_2_4 1" >>confdefs.h
20724
20725       fi
20726    fi
20727 fi
20728
20729
20730 # Check whether --enable-smartalloc was given.
20731 if test "${enable_smartalloc+set}" = set; then :
20732   enableval=$enable_smartalloc;
20733        if test x$enableval = xno; then
20734           support_smartalloc=no
20735        fi
20736
20737
20738 fi
20739
20740
20741 if test x$support_smartalloc = xyes; then
20742
20743 $as_echo "#define SMARTALLOC 1" >>confdefs.h
20744
20745 fi
20746
20747 # Check whether --enable-lockmgr was given.
20748 if test "${enable_lockmgr+set}" = set; then :
20749   enableval=$enable_lockmgr;
20750        if test x$enableval = xyes; then
20751           support_lockmgr=yes
20752        fi
20753
20754
20755 fi
20756
20757
20758 if test x$support_lockmgr = xyes; then
20759
20760 $as_echo "#define _USE_LOCKMGR 1" >>confdefs.h
20761
20762 fi
20763
20764
20765 # Check whether --enable-static-tools was given.
20766 if test "${enable_static_tools+set}" = set; then :
20767   enableval=$enable_static_tools;
20768        if test x$enableval = xyes; then
20769           if test x$use_libtool = xyes; then
20770              as_fn_error "Libtool is enabled, not compatible with static tools,
20771   please rerun configure with --disable-libtool" "$LINENO" 5
20772           fi
20773           support_static_tools=yes
20774        fi
20775
20776
20777 fi
20778
20779
20780 TTOOL_LDFLAGS=
20781 if test x$support_static_tools = xyes; then
20782    TTOOL_LDFLAGS="-static"
20783 fi
20784
20785
20786 # Check whether --enable-static-fd was given.
20787 if test "${enable_static_fd+set}" = set; then :
20788   enableval=$enable_static_fd;
20789        if test x$enableval = xyes; then
20790           if test x$use_libtool = xyes; then
20791              as_fn_error "Libtool is enabled, not compatible with static tools,
20792   please rerun configure with --disable-libtool" "$LINENO" 5
20793           fi
20794           support_static_fd=yes
20795        fi
20796
20797
20798 fi
20799
20800
20801 STATIC_FD=
20802 if test x$support_static_fd = xyes; then
20803    STATIC_FD="static-bacula-fd"
20804 fi
20805
20806
20807 # Check whether --enable-static-sd was given.
20808 if test "${enable_static_sd+set}" = set; then :
20809   enableval=$enable_static_sd;
20810        if test x$enableval = xyes; then
20811           if test x$use_libtool = xyes; then
20812              as_fn_error "Libtool is enabled, not compatible with static tools,
20813   please rerun configure with --disable-libtool" "$LINENO" 5
20814           fi
20815           support_static_sd=yes
20816        fi
20817
20818
20819 fi
20820
20821
20822 STATIC_SD=
20823 if test x$support_static_sd = xyes; then
20824    STATIC_SD="static-bacula-sd"
20825 fi
20826
20827
20828 # Check whether --enable-static-dir was given.
20829 if test "${enable_static_dir+set}" = set; then :
20830   enableval=$enable_static_dir;
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_dir=yes
20837        fi
20838
20839
20840 fi
20841
20842
20843 STATIC_DIR=
20844 if test x$support_static_dir = xyes; then
20845    STATIC_DIR="static-bacula-dir"
20846 fi
20847
20848
20849 # Check whether --enable-static-cons was given.
20850 if test "${enable_static_cons+set}" = set; then :
20851   enableval=$enable_static_cons;
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_cons=yes
20858        fi
20859
20860
20861 fi
20862
20863
20864 STATIC_CONS=
20865 STATIC_GNOME_CONS=
20866 STATIC_WX_CONS=
20867 if test x$support_static_cons = xyes; then
20868    STATIC_CONS="static-bconsole"
20869    STATIC_GNOME_CONS="static-bgnome-console"
20870    STATIC_WX_CONS="static-bwx-console"
20871 fi
20872
20873
20874
20875
20876 # Check whether --enable-client-only was given.
20877 if test "${enable_client_only+set}" = set; then :
20878   enableval=$enable_client_only;
20879        if test x$enableval = xyes; then
20880           build_client_only=yes
20881           db_backends="None"
20882           DB_BACKENDS="none"
20883        fi
20884
20885
20886 fi
20887
20888 if test x$build_client_only = xno; then
20889    ALL_DIRS="subdirs"
20890 else
20891    ALL_DIRS=""
20892 fi
20893
20894
20895 # Check whether --enable-build-dird was given.
20896 if test "${enable_build_dird+set}" = set; then :
20897   enableval=$enable_build_dird;
20898        if test x$enableval = xno; then
20899           build_dird=no
20900        fi
20901
20902
20903 fi
20904
20905 if test x$build_dird = xyes; then
20906    DIRD_DIR="src/dird"
20907    DIR_TOOLS="DIRTOOLS"
20908 else
20909    DIRD_DIR=""
20910    DIR_TOOLS="NODIRTOOLS"
20911 fi
20912
20913
20914
20915 # Check whether --enable-build-stored was given.
20916 if test "${enable_build_stored+set}" = set; then :
20917   enableval=$enable_build_stored;
20918       if test x$enableval = xno; then
20919          build_stored=no
20920       fi
20921
20922
20923 fi
20924
20925 if test x$build_stored = xyes; then
20926    STORED_DIR="src/stored"
20927 else
20928    STORED_DIR=""
20929 fi
20930
20931
20932 # Check whether --enable-conio was given.
20933 if test "${enable_conio+set}" = set; then :
20934   enableval=$enable_conio;
20935        if test x$enableval = xno; then
20936           support_conio=no
20937        fi
20938
20939
20940 fi
20941
20942
20943
20944 support_ipv6=yes
20945 # Check whether --enable-ipv6 was given.
20946 if test "${enable_ipv6+set}" = set; then :
20947   enableval=$enable_ipv6;
20948        if test x$enableval = xno; then
20949           support_ipv6=no
20950        fi
20951
20952
20953 fi
20954
20955
20956 if test x$support_ipv6 = xyes; then
20957     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20958 /* end confdefs.h.  */
20959  #include <sys/types.h>
20960 #include <sys/socket.h>
20961 #include <netinet/in.h>
20962 int
20963 main ()
20964 {
20965 struct sockaddr_in6 s; struct in6_addr t=in6addr_any; int i=AF_INET6; s; t.s6_addr[0] = 0;
20966   ;
20967   return 0;
20968 }
20969 _ACEOF
20970 if ac_fn_c_try_link "$LINENO"; then :
20971   support_ipv6=yes
20972 else
20973   support_ipv6=no
20974 fi
20975 rm -f core conftest.err conftest.$ac_objext \
20976     conftest$ac_exeext conftest.$ac_ext
20977 fi
20978
20979 if test x$support_ipv6 = xyes; then
20980
20981 $as_echo "#define HAVE_IPV6 1" >>confdefs.h
20982
20983 fi
20984
20985 TERM_LIB=""
20986 ac_fn_c_check_header_mongrel "$LINENO" "curses.h" "ac_cv_header_curses_h" "$ac_includes_default"
20987 if test "x$ac_cv_header_curses_h" = x""yes; then :
20988
20989     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tgetent in -ltinfo" >&5
20990 $as_echo_n "checking for tgetent in -ltinfo... " >&6; }
20991 if test "${ac_cv_lib_tinfo_tgetent+set}" = set; then :
20992   $as_echo_n "(cached) " >&6
20993 else
20994   ac_check_lib_save_LIBS=$LIBS
20995 LIBS="-ltinfo  $LIBS"
20996 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20997 /* end confdefs.h.  */
20998
20999 /* Override any GCC internal prototype to avoid an error.
21000    Use char because int might match the return type of a GCC
21001    builtin and then its argument prototype would still apply.  */
21002 #ifdef __cplusplus
21003 extern "C"
21004 #endif
21005 char tgetent ();
21006 int
21007 main ()
21008 {
21009 return tgetent ();
21010   ;
21011   return 0;
21012 }
21013 _ACEOF
21014 if ac_fn_c_try_link "$LINENO"; then :
21015   ac_cv_lib_tinfo_tgetent=yes
21016 else
21017   ac_cv_lib_tinfo_tgetent=no
21018 fi
21019 rm -f core conftest.err conftest.$ac_objext \
21020     conftest$ac_exeext conftest.$ac_ext
21021 LIBS=$ac_check_lib_save_LIBS
21022 fi
21023 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tinfo_tgetent" >&5
21024 $as_echo "$ac_cv_lib_tinfo_tgetent" >&6; }
21025 if test "x$ac_cv_lib_tinfo_tgetent" = x""yes; then :
21026    TERM_LIB="-ltinfo"
21027 else
21028
21029       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tgetent in -lncurses" >&5
21030 $as_echo_n "checking for tgetent in -lncurses... " >&6; }
21031 if test "${ac_cv_lib_ncurses_tgetent+set}" = set; then :
21032   $as_echo_n "(cached) " >&6
21033 else
21034   ac_check_lib_save_LIBS=$LIBS
21035 LIBS="-lncurses  $LIBS"
21036 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21037 /* end confdefs.h.  */
21038
21039 /* Override any GCC internal prototype to avoid an error.
21040    Use char because int might match the return type of a GCC
21041    builtin and then its argument prototype would still apply.  */
21042 #ifdef __cplusplus
21043 extern "C"
21044 #endif
21045 char tgetent ();
21046 int
21047 main ()
21048 {
21049 return tgetent ();
21050   ;
21051   return 0;
21052 }
21053 _ACEOF
21054 if ac_fn_c_try_link "$LINENO"; then :
21055   ac_cv_lib_ncurses_tgetent=yes
21056 else
21057   ac_cv_lib_ncurses_tgetent=no
21058 fi
21059 rm -f core conftest.err conftest.$ac_objext \
21060     conftest$ac_exeext conftest.$ac_ext
21061 LIBS=$ac_check_lib_save_LIBS
21062 fi
21063 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ncurses_tgetent" >&5
21064 $as_echo "$ac_cv_lib_ncurses_tgetent" >&6; }
21065 if test "x$ac_cv_lib_ncurses_tgetent" = x""yes; then :
21066    TERM_LIB="-lncurses"
21067 else
21068
21069         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tgetent in -ltermcap" >&5
21070 $as_echo_n "checking for tgetent in -ltermcap... " >&6; }
21071 if test "${ac_cv_lib_termcap_tgetent+set}" = set; then :
21072   $as_echo_n "(cached) " >&6
21073 else
21074   ac_check_lib_save_LIBS=$LIBS
21075 LIBS="-ltermcap  $LIBS"
21076 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21077 /* end confdefs.h.  */
21078
21079 /* Override any GCC internal prototype to avoid an error.
21080    Use char because int might match the return type of a GCC
21081    builtin and then its argument prototype would still apply.  */
21082 #ifdef __cplusplus
21083 extern "C"
21084 #endif
21085 char tgetent ();
21086 int
21087 main ()
21088 {
21089 return tgetent ();
21090   ;
21091   return 0;
21092 }
21093 _ACEOF
21094 if ac_fn_c_try_link "$LINENO"; then :
21095   ac_cv_lib_termcap_tgetent=yes
21096 else
21097   ac_cv_lib_termcap_tgetent=no
21098 fi
21099 rm -f core conftest.err conftest.$ac_objext \
21100     conftest$ac_exeext conftest.$ac_ext
21101 LIBS=$ac_check_lib_save_LIBS
21102 fi
21103 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_termcap_tgetent" >&5
21104 $as_echo "$ac_cv_lib_termcap_tgetent" >&6; }
21105 if test "x$ac_cv_lib_termcap_tgetent" = x""yes; then :
21106    TERM_LIB="-ltermcap"
21107 fi
21108
21109
21110 fi
21111
21112
21113 fi
21114
21115
21116 else
21117     for ac_header in curses.h
21118 do :
21119   ac_fn_c_check_header_mongrel "$LINENO" "curses.h" "ac_cv_header_curses_h" "$ac_includes_default"
21120 if test "x$ac_cv_header_curses_h" = x""yes; then :
21121   cat >>confdefs.h <<_ACEOF
21122 #define HAVE_CURSES_H 1
21123 _ACEOF
21124
21125 fi
21126
21127 done
21128
21129      ac_fn_c_check_header_mongrel "$LINENO" "term.h" "ac_cv_header_term_h" "$ac_includes_default"
21130 if test "x$ac_cv_header_term_h" = x""yes; then :
21131    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tgetent in -lcurses" >&5
21132 $as_echo_n "checking for tgetent in -lcurses... " >&6; }
21133 if test "${ac_cv_lib_curses_tgetent+set}" = set; then :
21134   $as_echo_n "(cached) " >&6
21135 else
21136   ac_check_lib_save_LIBS=$LIBS
21137 LIBS="-lcurses  $LIBS"
21138 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21139 /* end confdefs.h.  */
21140
21141 /* Override any GCC internal prototype to avoid an error.
21142    Use char because int might match the return type of a GCC
21143    builtin and then its argument prototype would still apply.  */
21144 #ifdef __cplusplus
21145 extern "C"
21146 #endif
21147 char tgetent ();
21148 int
21149 main ()
21150 {
21151 return tgetent ();
21152   ;
21153   return 0;
21154 }
21155 _ACEOF
21156 if ac_fn_c_try_link "$LINENO"; then :
21157   ac_cv_lib_curses_tgetent=yes
21158 else
21159   ac_cv_lib_curses_tgetent=no
21160 fi
21161 rm -f core conftest.err conftest.$ac_objext \
21162     conftest$ac_exeext conftest.$ac_ext
21163 LIBS=$ac_check_lib_save_LIBS
21164 fi
21165 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_curses_tgetent" >&5
21166 $as_echo "$ac_cv_lib_curses_tgetent" >&6; }
21167 if test "x$ac_cv_lib_curses_tgetent" = x""yes; then :
21168    TERM_LIB="-lcurses"
21169 fi
21170
21171
21172 fi
21173
21174
21175
21176 fi
21177
21178
21179
21180
21181 got_conio="no"
21182 if test x$support_conio = xyes; then
21183    if test x$TERM_LIB != x; then
21184       CONS_LIBS=$TERM_LIB
21185       CONS_OBJ="conio.o"
21186       CONS_SRC="conio.c"
21187       got_conio="yes"
21188       support_readline=no
21189
21190 $as_echo "#define HAVE_CONIO 1" >>confdefs.h
21191
21192    else
21193       echo " "; echo "Required libraries not found. CONIO turned off ..."; echo " "],
21194    fi
21195 fi
21196
21197
21198 # Check whether --enable-readline was given.
21199 if test "${enable_readline+set}" = set; then :
21200   enableval=$enable_readline;
21201        if test x$enableval = xno; then
21202           support_readline=no
21203        fi
21204
21205
21206 fi
21207
21208 if test x$TERM_LIB = x ; then
21209    support_readline=no
21210 fi
21211
21212 got_readline="no"
21213 READLINE_SRC=
21214 if test x$support_readline = xyes; then
21215
21216 # Check whether --with-readline was given.
21217 if test "${with_readline+set}" = set; then :
21218   withval=$with_readline;
21219           case "$with_readline" in
21220           no)
21221              :
21222              ;;
21223           yes|*)
21224              if test -f ${with_readline}/readline.h; then
21225                 CONS_INC="-I${with_readline}"
21226                 CONS_LDFLAGS="-L$with_readline"
21227              elif test -f ${with_readline}/include/readline/readline.h; then
21228                 CONS_INC="-I${with_readline}/include/readline"
21229                 CONS_LDFLAGS="-L${with_readline}/lib"
21230                 with_readline="${with_readline}/include/readline"
21231              else
21232                 with_readline="/usr/include/readline"
21233              fi
21234
21235              as_ac_Header=`$as_echo "ac_cv_header_${with_readline}/readline.h" | $as_tr_sh`
21236 ac_fn_c_check_header_mongrel "$LINENO" "${with_readline}/readline.h" "$as_ac_Header" "$ac_includes_default"
21237 eval as_val=\$$as_ac_Header
21238    if test "x$as_val" = x""yes; then :
21239
21240
21241 $as_echo "#define HAVE_READLINE 1" >>confdefs.h
21242
21243                     CONS_LIBS="-lreadline -lhistory $TERM_LIB"
21244                     got_readline="yes"
21245
21246 else
21247
21248                     echo " "
21249                     echo "readline.h not found. readline turned off ..."
21250                     echo " "
21251
21252
21253 fi
21254
21255
21256              ;;
21257           esac
21258
21259 else
21260
21261                  ac_fn_c_check_header_mongrel "$LINENO" "/usr/include/readline/readline.h" "ac_cv_header__usr_include_readline_readline_h" "$ac_includes_default"
21262 if test "x$ac_cv_header__usr_include_readline_readline_h" = x""yes; then :
21263
21264
21265 $as_echo "#define HAVE_READLINE 1" >>confdefs.h
21266
21267                 got_readline="yes"
21268                 CONS_INC="-I/usr/include/readline"
21269                 CONS_LIBS="-lreadline $TERM_LIB"
21270
21271 else
21272
21273                                 as_ac_Header=`$as_echo "ac_cv_header_${TOP_DIR}/depkgs/readline/readline.h" | $as_tr_sh`
21274 ac_fn_c_check_header_mongrel "$LINENO" "${TOP_DIR}/depkgs/readline/readline.h" "$as_ac_Header" "$ac_includes_default"
21275 eval as_val=\$$as_ac_Header
21276    if test "x$as_val" = x""yes; then :
21277
21278
21279 $as_echo "#define HAVE_READLINE 1" >>confdefs.h
21280
21281                         got_readline="yes"
21282                         CONS_INC="-I${TOP_DIR}/depkgs/readline"
21283                         CONS_LIBS="-lreadline -lhistory $TERM_LIB"
21284                         CONS_LDFLAGS="-L${TOP_DIR}/depkgs/readline"
21285                         PRTREADLINE_SRC="${TOP_DIR}/depkgs/readline"
21286
21287 else
21288
21289                         echo " "
21290                         echo "readline.h not found. readline turned off ..."
21291                         echo " "
21292
21293
21294 fi
21295
21296
21297
21298
21299 fi
21300
21301
21302
21303
21304 fi
21305
21306 fi
21307
21308
21309
21310
21311
21312
21313
21314
21315 MAKE_SHELL=/bin/sh
21316
21317 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat file-mode macros are broken" >&5
21318 $as_echo_n "checking whether stat file-mode macros are broken... " >&6; }
21319 if test "${ac_cv_header_stat_broken+set}" = set; then :
21320   $as_echo_n "(cached) " >&6
21321 else
21322   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21323 /* end confdefs.h.  */
21324 #include <sys/types.h>
21325 #include <sys/stat.h>
21326
21327 #if defined S_ISBLK && defined S_IFDIR
21328 extern char c1[S_ISBLK (S_IFDIR) ? -1 : 1];
21329 #endif
21330
21331 #if defined S_ISBLK && defined S_IFCHR
21332 extern char c2[S_ISBLK (S_IFCHR) ? -1 : 1];
21333 #endif
21334
21335 #if defined S_ISLNK && defined S_IFREG
21336 extern char c3[S_ISLNK (S_IFREG) ? -1 : 1];
21337 #endif
21338
21339 #if defined S_ISSOCK && defined S_IFREG
21340 extern char c4[S_ISSOCK (S_IFREG) ? -1 : 1];
21341 #endif
21342
21343 _ACEOF
21344 if ac_fn_c_try_compile "$LINENO"; then :
21345   ac_cv_header_stat_broken=no
21346 else
21347   ac_cv_header_stat_broken=yes
21348 fi
21349 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21350 fi
21351 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stat_broken" >&5
21352 $as_echo "$ac_cv_header_stat_broken" >&6; }
21353 if test $ac_cv_header_stat_broken = yes; then
21354
21355 $as_echo "#define STAT_MACROS_BROKEN 1" >>confdefs.h
21356
21357 fi
21358
21359 ac_header_dirent=no
21360 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
21361   as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
21362 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_hdr that defines DIR" >&5
21363 $as_echo_n "checking for $ac_hdr that defines DIR... " >&6; }
21364 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then :
21365   $as_echo_n "(cached) " >&6
21366 else
21367   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21368 /* end confdefs.h.  */
21369 #include <sys/types.h>
21370 #include <$ac_hdr>
21371
21372 int
21373 main ()
21374 {
21375 if ((DIR *) 0)
21376 return 0;
21377   ;
21378   return 0;
21379 }
21380 _ACEOF
21381 if ac_fn_c_try_compile "$LINENO"; then :
21382   eval "$as_ac_Header=yes"
21383 else
21384   eval "$as_ac_Header=no"
21385 fi
21386 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21387 fi
21388 eval ac_res=\$$as_ac_Header
21389                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
21390 $as_echo "$ac_res" >&6; }
21391 eval as_val=\$$as_ac_Header
21392    if test "x$as_val" = x""yes; then :
21393   cat >>confdefs.h <<_ACEOF
21394 #define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
21395 _ACEOF
21396
21397 ac_header_dirent=$ac_hdr; break
21398 fi
21399
21400 done
21401 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
21402 if test $ac_header_dirent = dirent.h; then
21403   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
21404 $as_echo_n "checking for library containing opendir... " >&6; }
21405 if test "${ac_cv_search_opendir+set}" = set; then :
21406   $as_echo_n "(cached) " >&6
21407 else
21408   ac_func_search_save_LIBS=$LIBS
21409 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21410 /* end confdefs.h.  */
21411
21412 /* Override any GCC internal prototype to avoid an error.
21413    Use char because int might match the return type of a GCC
21414    builtin and then its argument prototype would still apply.  */
21415 #ifdef __cplusplus
21416 extern "C"
21417 #endif
21418 char opendir ();
21419 int
21420 main ()
21421 {
21422 return opendir ();
21423   ;
21424   return 0;
21425 }
21426 _ACEOF
21427 for ac_lib in '' dir; do
21428   if test -z "$ac_lib"; then
21429     ac_res="none required"
21430   else
21431     ac_res=-l$ac_lib
21432     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
21433   fi
21434   if ac_fn_c_try_link "$LINENO"; then :
21435   ac_cv_search_opendir=$ac_res
21436 fi
21437 rm -f core conftest.err conftest.$ac_objext \
21438     conftest$ac_exeext
21439   if test "${ac_cv_search_opendir+set}" = set; then :
21440   break
21441 fi
21442 done
21443 if test "${ac_cv_search_opendir+set}" = set; then :
21444
21445 else
21446   ac_cv_search_opendir=no
21447 fi
21448 rm conftest.$ac_ext
21449 LIBS=$ac_func_search_save_LIBS
21450 fi
21451 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
21452 $as_echo "$ac_cv_search_opendir" >&6; }
21453 ac_res=$ac_cv_search_opendir
21454 if test "$ac_res" != no; then :
21455   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
21456
21457 fi
21458
21459 else
21460   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
21461 $as_echo_n "checking for library containing opendir... " >&6; }
21462 if test "${ac_cv_search_opendir+set}" = set; then :
21463   $as_echo_n "(cached) " >&6
21464 else
21465   ac_func_search_save_LIBS=$LIBS
21466 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21467 /* end confdefs.h.  */
21468
21469 /* Override any GCC internal prototype to avoid an error.
21470    Use char because int might match the return type of a GCC
21471    builtin and then its argument prototype would still apply.  */
21472 #ifdef __cplusplus
21473 extern "C"
21474 #endif
21475 char opendir ();
21476 int
21477 main ()
21478 {
21479 return opendir ();
21480   ;
21481   return 0;
21482 }
21483 _ACEOF
21484 for ac_lib in '' x; do
21485   if test -z "$ac_lib"; then
21486     ac_res="none required"
21487   else
21488     ac_res=-l$ac_lib
21489     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
21490   fi
21491   if ac_fn_c_try_link "$LINENO"; then :
21492   ac_cv_search_opendir=$ac_res
21493 fi
21494 rm -f core conftest.err conftest.$ac_objext \
21495     conftest$ac_exeext
21496   if test "${ac_cv_search_opendir+set}" = set; then :
21497   break
21498 fi
21499 done
21500 if test "${ac_cv_search_opendir+set}" = set; then :
21501
21502 else
21503   ac_cv_search_opendir=no
21504 fi
21505 rm conftest.$ac_ext
21506 LIBS=$ac_func_search_save_LIBS
21507 fi
21508 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
21509 $as_echo "$ac_cv_search_opendir" >&6; }
21510 ac_res=$ac_cv_search_opendir
21511 if test "$ac_res" != no; then :
21512   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
21513
21514 fi
21515
21516 fi
21517
21518 for ac_func in strcasecmp select setenv putenv tcgetattr lstat lchown
21519 do :
21520   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
21521 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
21522 eval as_val=\$$as_ac_var
21523    if test "x$as_val" = x""yes; then :
21524   cat >>confdefs.h <<_ACEOF
21525 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
21526 _ACEOF
21527
21528 fi
21529 done
21530
21531 for ac_func in nanosleep nl_langinfo
21532 do :
21533   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
21534 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
21535 eval as_val=\$$as_ac_var
21536    if test "x$as_val" = x""yes; then :
21537   cat >>confdefs.h <<_ACEOF
21538 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
21539 _ACEOF
21540
21541 fi
21542 done
21543
21544 for ac_header in varargs.h
21545 do :
21546   ac_fn_c_check_header_mongrel "$LINENO" "varargs.h" "ac_cv_header_varargs_h" "$ac_includes_default"
21547 if test "x$ac_cv_header_varargs_h" = x""yes; then :
21548   cat >>confdefs.h <<_ACEOF
21549 #define HAVE_VARARGS_H 1
21550 _ACEOF
21551
21552 fi
21553
21554 done
21555
21556
21557
21558 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Python support" >&5
21559 $as_echo_n "checking for Python support... " >&6; }
21560
21561 # Check whether --with-python was given.
21562 if test "${with_python+set}" = set; then :
21563   withval=$with_python;
21564        PYTHON_INCDIR=
21565        PYTHON_LIBS=
21566        if test "$withval" != "no"; then
21567           if test "$withval" = "yes"; then
21568              if test -e /usr/bin/python-config ; then
21569                 PYTHON_INCDIR=`/usr/bin/python-config --includes`
21570                 PYTHON_LIBS=`/usr/bin/python-config --libs`
21571              else
21572                 for python_root in /usr /usr/local /usr/sfw; do
21573                    for ver in python2.2 python2.3 python2.4 python2.5 python2.6 python3; do
21574                       if test -f $python_root/include/${ver}/Python.h; then
21575                          PYTHON_INCDIR=-I$python_root/include/${ver}
21576                          if test -d $python_root/lib64/${ver}/config; then
21577                             PYTHON_LIBS="-L$python_root/lib64/${ver}/config -l${ver}"
21578                          else
21579                             PYTHON_LIBS="-L$python_root/lib/${ver}/config -l${ver}"
21580                          fi
21581                          break
21582                       fi
21583                    done
21584                 done
21585
21586                 if test x$PYTHON_INCDIR = x; then
21587                    if test -f $prefix/include/Python.h; then
21588                       PYTHON_INCDIR=-I$prefix/include
21589                       if test -d $prefix/lib64/config; then
21590                          PYTHON_LIBS="-L$prefix/lib64/config -lpython"
21591                       else
21592                          PYTHON_LIBS="-L$prefix/lib/config -lpython"
21593                       fi
21594                    else
21595                       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21596 $as_echo "no" >&6; }
21597                       as_fn_error "Unable to find Python.h in standard locations" "$LINENO" 5
21598                    fi
21599                 fi
21600              fi
21601           else
21602              if test -e $withval/bin/python-config ; then
21603                 PYTHON_INCDIR=`$withval/bin/python-config --includes`
21604                 PYTHON_LIBS=`$withval/bin/python-config --libs`
21605              elif test -f $withval/Python.h; then
21606                 PYTHON_INCDIR=-I$withval
21607                 PYTHON_LIBS="-L$withval/config -lpython"
21608              elif test -f $withval/include/Python.h; then
21609                 PYTHON_INCDIR=-I$withval/include
21610                 if test -d $withval/lib64/config; then
21611                    PYTHON_LIBS="-L$withval/lib64/config -lpython"
21612                 else
21613                    PYTHON_LIBS="-L$withval/lib/config -lpython"
21614                 fi
21615              elif test -f $withval/include/python/Python.h; then
21616                 PYTHON_INCDIR=-I$withval/include/python
21617                 if test -d $withval/lib64/python/config; then
21618                    PYTHON_LIBS="-L$withval/lib64/python/config -lpython"
21619                 else
21620                    PYTHON_LIBS="-L$withval/lib/python/config -lpython"
21621                 fi
21622              else
21623                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21624 $as_echo "no" >&6; }
21625                 as_fn_error "Invalid Python directory $withval - unable to find Python.h under $withval" "$LINENO" 5
21626              fi
21627           fi
21628
21629           $as_echo "#define HAVE_PYTHON 1" >>confdefs.h
21630
21631           { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21632 $as_echo "yes" >&6; }
21633           support_python=yes
21634           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for more Python libs" >&5
21635 $as_echo "$as_me: checking for more Python libs" >&6;}
21636           saved_LIBS="$LIBS"; LIBS=
21637           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing shm_open" >&5
21638 $as_echo_n "checking for library containing shm_open... " >&6; }
21639 if test "${ac_cv_search_shm_open+set}" = set; then :
21640   $as_echo_n "(cached) " >&6
21641 else
21642   ac_func_search_save_LIBS=$LIBS
21643 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21644 /* end confdefs.h.  */
21645
21646 /* Override any GCC internal prototype to avoid an error.
21647    Use char because int might match the return type of a GCC
21648    builtin and then its argument prototype would still apply.  */
21649 #ifdef __cplusplus
21650 extern "C"
21651 #endif
21652 char shm_open ();
21653 int
21654 main ()
21655 {
21656 return shm_open ();
21657   ;
21658   return 0;
21659 }
21660 _ACEOF
21661 for ac_lib in '' rt; do
21662   if test -z "$ac_lib"; then
21663     ac_res="none required"
21664   else
21665     ac_res=-l$ac_lib
21666     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
21667   fi
21668   if ac_fn_c_try_link "$LINENO"; then :
21669   ac_cv_search_shm_open=$ac_res
21670 fi
21671 rm -f core conftest.err conftest.$ac_objext \
21672     conftest$ac_exeext
21673   if test "${ac_cv_search_shm_open+set}" = set; then :
21674   break
21675 fi
21676 done
21677 if test "${ac_cv_search_shm_open+set}" = set; then :
21678
21679 else
21680   ac_cv_search_shm_open=no
21681 fi
21682 rm conftest.$ac_ext
21683 LIBS=$ac_func_search_save_LIBS
21684 fi
21685 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_shm_open" >&5
21686 $as_echo "$ac_cv_search_shm_open" >&6; }
21687 ac_res=$ac_cv_search_shm_open
21688 if test "$ac_res" != no; then :
21689   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
21690
21691 fi
21692
21693           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for openpty in -lutil" >&5
21694 $as_echo_n "checking for openpty in -lutil... " >&6; }
21695 if test "${ac_cv_lib_util_openpty+set}" = set; then :
21696   $as_echo_n "(cached) " >&6
21697 else
21698   ac_check_lib_save_LIBS=$LIBS
21699 LIBS="-lutil  $LIBS"
21700 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21701 /* end confdefs.h.  */
21702
21703 /* Override any GCC internal prototype to avoid an error.
21704    Use char because int might match the return type of a GCC
21705    builtin and then its argument prototype would still apply.  */
21706 #ifdef __cplusplus
21707 extern "C"
21708 #endif
21709 char openpty ();
21710 int
21711 main ()
21712 {
21713 return openpty ();
21714   ;
21715   return 0;
21716 }
21717 _ACEOF
21718 if ac_fn_c_try_link "$LINENO"; then :
21719   ac_cv_lib_util_openpty=yes
21720 else
21721   ac_cv_lib_util_openpty=no
21722 fi
21723 rm -f core conftest.err conftest.$ac_objext \
21724     conftest$ac_exeext conftest.$ac_ext
21725 LIBS=$ac_check_lib_save_LIBS
21726 fi
21727 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_util_openpty" >&5
21728 $as_echo "$ac_cv_lib_util_openpty" >&6; }
21729 if test "x$ac_cv_lib_util_openpty" = x""yes; then :
21730   cat >>confdefs.h <<_ACEOF
21731 #define HAVE_LIBUTIL 1
21732 _ACEOF
21733
21734   LIBS="-lutil $LIBS"
21735
21736 fi
21737
21738           PYTHON_LIBS="$PYTHON_LIBS $LIBS"
21739           LIBS="$saved_LIBS"
21740        else
21741           { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21742 $as_echo "no" >&6; }
21743        fi
21744
21745 else
21746
21747        { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21748 $as_echo "no" >&6; }
21749
21750
21751 fi
21752
21753
21754
21755
21756 ac_fn_c_check_func "$LINENO" "socket" "ac_cv_func_socket"
21757 if test "x$ac_cv_func_socket" = x""yes; then :
21758   { $as_echo "$as_me:${as_lineno-$LINENO}: result: using libc's socket" >&5
21759 $as_echo "using libc's socket" >&6; }
21760 else
21761   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socket in -lxnet" >&5
21762 $as_echo_n "checking for socket in -lxnet... " >&6; }
21763 if test "${ac_cv_lib_xnet_socket+set}" = set; then :
21764   $as_echo_n "(cached) " >&6
21765 else
21766   ac_check_lib_save_LIBS=$LIBS
21767 LIBS="-lxnet  $LIBS"
21768 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21769 /* end confdefs.h.  */
21770
21771 /* Override any GCC internal prototype to avoid an error.
21772    Use char because int might match the return type of a GCC
21773    builtin and then its argument prototype would still apply.  */
21774 #ifdef __cplusplus
21775 extern "C"
21776 #endif
21777 char socket ();
21778 int
21779 main ()
21780 {
21781 return socket ();
21782   ;
21783   return 0;
21784 }
21785 _ACEOF
21786 if ac_fn_c_try_link "$LINENO"; then :
21787   ac_cv_lib_xnet_socket=yes
21788 else
21789   ac_cv_lib_xnet_socket=no
21790 fi
21791 rm -f core conftest.err conftest.$ac_objext \
21792     conftest$ac_exeext conftest.$ac_ext
21793 LIBS=$ac_check_lib_save_LIBS
21794 fi
21795 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_xnet_socket" >&5
21796 $as_echo "$ac_cv_lib_xnet_socket" >&6; }
21797 if test "x$ac_cv_lib_xnet_socket" = x""yes; then :
21798   cat >>confdefs.h <<_ACEOF
21799 #define HAVE_LIBXNET 1
21800 _ACEOF
21801
21802   LIBS="-lxnet $LIBS"
21803
21804 fi
21805
21806     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socket in -lsocket" >&5
21807 $as_echo_n "checking for socket in -lsocket... " >&6; }
21808 if test "${ac_cv_lib_socket_socket+set}" = set; then :
21809   $as_echo_n "(cached) " >&6
21810 else
21811   ac_check_lib_save_LIBS=$LIBS
21812 LIBS="-lsocket  $LIBS"
21813 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21814 /* end confdefs.h.  */
21815
21816 /* Override any GCC internal prototype to avoid an error.
21817    Use char because int might match the return type of a GCC
21818    builtin and then its argument prototype would still apply.  */
21819 #ifdef __cplusplus
21820 extern "C"
21821 #endif
21822 char socket ();
21823 int
21824 main ()
21825 {
21826 return socket ();
21827   ;
21828   return 0;
21829 }
21830 _ACEOF
21831 if ac_fn_c_try_link "$LINENO"; then :
21832   ac_cv_lib_socket_socket=yes
21833 else
21834   ac_cv_lib_socket_socket=no
21835 fi
21836 rm -f core conftest.err conftest.$ac_objext \
21837     conftest$ac_exeext conftest.$ac_ext
21838 LIBS=$ac_check_lib_save_LIBS
21839 fi
21840 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_socket" >&5
21841 $as_echo "$ac_cv_lib_socket_socket" >&6; }
21842 if test "x$ac_cv_lib_socket_socket" = x""yes; then :
21843   cat >>confdefs.h <<_ACEOF
21844 #define HAVE_LIBSOCKET 1
21845 _ACEOF
21846
21847   LIBS="-lsocket $LIBS"
21848
21849 fi
21850
21851     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socket in -linet" >&5
21852 $as_echo_n "checking for socket in -linet... " >&6; }
21853 if test "${ac_cv_lib_inet_socket+set}" = set; then :
21854   $as_echo_n "(cached) " >&6
21855 else
21856   ac_check_lib_save_LIBS=$LIBS
21857 LIBS="-linet  $LIBS"
21858 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21859 /* end confdefs.h.  */
21860
21861 /* Override any GCC internal prototype to avoid an error.
21862    Use char because int might match the return type of a GCC
21863    builtin and then its argument prototype would still apply.  */
21864 #ifdef __cplusplus
21865 extern "C"
21866 #endif
21867 char socket ();
21868 int
21869 main ()
21870 {
21871 return socket ();
21872   ;
21873   return 0;
21874 }
21875 _ACEOF
21876 if ac_fn_c_try_link "$LINENO"; then :
21877   ac_cv_lib_inet_socket=yes
21878 else
21879   ac_cv_lib_inet_socket=no
21880 fi
21881 rm -f core conftest.err conftest.$ac_objext \
21882     conftest$ac_exeext conftest.$ac_ext
21883 LIBS=$ac_check_lib_save_LIBS
21884 fi
21885 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_inet_socket" >&5
21886 $as_echo "$ac_cv_lib_inet_socket" >&6; }
21887 if test "x$ac_cv_lib_inet_socket" = x""yes; then :
21888   cat >>confdefs.h <<_ACEOF
21889 #define HAVE_LIBINET 1
21890 _ACEOF
21891
21892   LIBS="-linet $LIBS"
21893
21894 fi
21895
21896 fi
21897
21898
21899 TCPW_MSG="no"
21900 WRAPLIBS=""
21901
21902 # Check whether --with-tcp-wrappers was given.
21903 if test "${with_tcp_wrappers+set}" = set; then :
21904   withval=$with_tcp_wrappers;
21905        if test "x$withval" != "xno" ; then
21906           saved_LIBS="$LIBS"
21907           LIBS="$saved_LIBS -lwrap"
21908           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing nanosleep" >&5
21909 $as_echo_n "checking for library containing nanosleep... " >&6; }
21910 if test "${ac_cv_search_nanosleep+set}" = set; then :
21911   $as_echo_n "(cached) " >&6
21912 else
21913   ac_func_search_save_LIBS=$LIBS
21914 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21915 /* end confdefs.h.  */
21916
21917 /* Override any GCC internal prototype to avoid an error.
21918    Use char because int might match the return type of a GCC
21919    builtin and then its argument prototype would still apply.  */
21920 #ifdef __cplusplus
21921 extern "C"
21922 #endif
21923 char nanosleep ();
21924 int
21925 main ()
21926 {
21927 return nanosleep ();
21928   ;
21929   return 0;
21930 }
21931 _ACEOF
21932 for ac_lib in '' rt; do
21933   if test -z "$ac_lib"; then
21934     ac_res="none required"
21935   else
21936     ac_res=-l$ac_lib
21937     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
21938   fi
21939   if ac_fn_c_try_link "$LINENO"; then :
21940   ac_cv_search_nanosleep=$ac_res
21941 fi
21942 rm -f core conftest.err conftest.$ac_objext \
21943     conftest$ac_exeext
21944   if test "${ac_cv_search_nanosleep+set}" = set; then :
21945   break
21946 fi
21947 done
21948 if test "${ac_cv_search_nanosleep+set}" = set; then :
21949
21950 else
21951   ac_cv_search_nanosleep=no
21952 fi
21953 rm conftest.$ac_ext
21954 LIBS=$ac_func_search_save_LIBS
21955 fi
21956 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_nanosleep" >&5
21957 $as_echo "$ac_cv_search_nanosleep" >&6; }
21958 ac_res=$ac_cv_search_nanosleep
21959 if test "$ac_res" != no; then :
21960   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
21961
21962 fi
21963
21964           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libwrap" >&5
21965 $as_echo_n "checking for libwrap... " >&6; }
21966           cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21967 /* end confdefs.h.  */
21968
21969                #include <sys/types.h>
21970                #include <tcpd.h>
21971                int deny_severity = 0;
21972                int allow_severity = 0;
21973                struct request_info *req;
21974
21975 int
21976 main ()
21977 {
21978
21979                 hosts_access(req);
21980
21981   ;
21982   return 0;
21983 }
21984 _ACEOF
21985 if ac_fn_c_try_link "$LINENO"; then :
21986
21987                  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21988 $as_echo "yes" >&6; }
21989
21990 $as_echo "#define HAVE_LIBWRAP 1" >>confdefs.h
21991
21992                  TCPW_MSG="yes"
21993                  LIBS="$saved_LIBS"
21994                  WRAPLIBS="-lwrap"
21995
21996 else
21997
21998                  LIBS="$saved_LIBS -lwrap -lnsl"
21999                  WRAPLIBS="$saved_LIBS -lwrap -lnsl"
22000                  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22001 /* end confdefs.h.  */
22002
22003                        #include <sys/types.h>
22004                        #include <tcpd.h>
22005                        int deny_severity = 0;
22006                        int allow_severity = 0;
22007                        struct request_info *req;
22008
22009 int
22010 main ()
22011 {
22012
22013                        hosts_access(req);
22014
22015   ;
22016   return 0;
22017 }
22018 _ACEOF
22019 if ac_fn_c_try_link "$LINENO"; then :
22020
22021                       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22022 $as_echo "yes" >&6; }
22023
22024 $as_echo "#define HAVE_LIBWRAP 1" >>confdefs.h
22025
22026                       TCPW_MSG="yes"
22027                       LIBS="$saved_LIBS"
22028                       WRAPLIBS="-lwrap"
22029
22030 else
22031
22032                       as_fn_error "*** libwrap missing" "$LINENO" 5
22033
22034
22035 fi
22036 rm -f core conftest.err conftest.$ac_objext \
22037     conftest$ac_exeext conftest.$ac_ext
22038
22039
22040 fi
22041 rm -f core conftest.err conftest.$ac_objext \
22042     conftest$ac_exeext conftest.$ac_ext
22043        fi
22044
22045
22046 fi
22047
22048
22049 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OpenSSL" >&5
22050 $as_echo_n "checking for OpenSSL... " >&6; }
22051
22052 # Check whether --with-openssl was given.
22053 if test "${with_openssl+set}" = set; then :
22054   withval=$with_openssl;
22055         with_openssl_directory=${withval}
22056
22057
22058 fi
22059
22060
22061 if test "x$with_openssl_directory" != "xno"; then
22062    OPENSSL_LIBS="-lssl -lcrypto"
22063    OPENSSL_INC=""
22064
22065    if test "x$with_openssl_directory" != "xyes" && test x"${with_openssl_directory}" != "x"; then
22066       #
22067       # Make sure the $with_openssl_directory also makes sense
22068       #
22069       if test -d "$with_openssl_directory/lib" -a -d "$with_openssl_directory/include"; then
22070          OPENSSL_LIBS="-L$with_openssl_directory/lib $OPENSSL_LIBS"
22071          OPENSSL_INC="-I$with_openssl_directory/include $OPENSSL_INC"
22072       fi
22073    fi
22074
22075    saved_LIBS="${LIBS}"
22076    saved_CFLAGS="${CFLAGS}"
22077    LIBS="${saved_LIBS} ${OPENSSL_LIBS}"
22078    CFLAGS="${saved_CFLAGS} ${OPENSSL_INC}"
22079
22080    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22081 /* end confdefs.h.  */
22082
22083           #include <openssl/ssl.h>
22084
22085 int
22086 main ()
22087 {
22088
22089            CRYPTO_set_id_callback(NULL);
22090
22091   ;
22092   return 0;
22093 }
22094 _ACEOF
22095 if ac_fn_c_try_link "$LINENO"; then :
22096
22097           support_tls="yes"
22098           support_crypto="yes"
22099
22100 else
22101
22102           support_tls="no"
22103           support_crypto="no"
22104
22105
22106 fi
22107 rm -f core conftest.err conftest.$ac_objext \
22108     conftest$ac_exeext conftest.$ac_ext
22109
22110    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22111 /* end confdefs.h.  */
22112
22113           #include <openssl/evp.h>
22114
22115 int
22116 main ()
22117 {
22118
22119           EVP_sha512();
22120
22121   ;
22122   return 0;
22123 }
22124 _ACEOF
22125 if ac_fn_c_try_link "$LINENO"; then :
22126
22127           ac_cv_openssl_sha2="yes"
22128
22129 else
22130
22131           ac_cv_openssl_sha2="no"
22132
22133
22134 fi
22135 rm -f core conftest.err conftest.$ac_objext \
22136     conftest$ac_exeext conftest.$ac_ext
22137
22138                cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22139 /* end confdefs.h.  */
22140
22141           #include <openssl/evp.h>
22142
22143 int
22144 main ()
22145 {
22146
22147           EVP_aes_192_cbc();
22148
22149   ;
22150   return 0;
22151 }
22152 _ACEOF
22153 if ac_fn_c_try_link "$LINENO"; then :
22154
22155           ac_cv_openssl_export="no"
22156
22157 else
22158
22159           ac_cv_openssl_export="yes"
22160
22161
22162 fi
22163 rm -f core conftest.err conftest.$ac_objext \
22164     conftest$ac_exeext conftest.$ac_ext
22165
22166    if test "$support_tls" = "yes"; then
22167
22168 $as_echo "#define HAVE_OPENSSL 1" >>confdefs.h
22169
22170
22171 $as_echo "#define HAVE_TLS 1" >>confdefs.h
22172
22173
22174 $as_echo "#define HAVE_CRYPTO 1" >>confdefs.h
22175
22176    fi
22177
22178    if test "$ac_cv_openssl_sha2" = "yes"; then
22179
22180 $as_echo "#define HAVE_SHA2 1" >>confdefs.h
22181
22182    fi
22183
22184    if test "$ac_cv_openssl_export" = "yes"; then
22185
22186 $as_echo "#define HAVE_OPENSSL_EXPORT_LIBRARY 1" >>confdefs.h
22187
22188    fi
22189
22190    if test "$support_crypto" = "yes"; then
22191       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EVP_PKEY_encrypt_old in -lcrypto" >&5
22192 $as_echo_n "checking for EVP_PKEY_encrypt_old in -lcrypto... " >&6; }
22193 if test "${ac_cv_lib_crypto_EVP_PKEY_encrypt_old+set}" = set; then :
22194   $as_echo_n "(cached) " >&6
22195 else
22196   ac_check_lib_save_LIBS=$LIBS
22197 LIBS="-lcrypto  $LIBS"
22198 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22199 /* end confdefs.h.  */
22200
22201 /* Override any GCC internal prototype to avoid an error.
22202    Use char because int might match the return type of a GCC
22203    builtin and then its argument prototype would still apply.  */
22204 #ifdef __cplusplus
22205 extern "C"
22206 #endif
22207 char EVP_PKEY_encrypt_old ();
22208 int
22209 main ()
22210 {
22211 return EVP_PKEY_encrypt_old ();
22212   ;
22213   return 0;
22214 }
22215 _ACEOF
22216 if ac_fn_c_try_link "$LINENO"; then :
22217   ac_cv_lib_crypto_EVP_PKEY_encrypt_old=yes
22218 else
22219   ac_cv_lib_crypto_EVP_PKEY_encrypt_old=no
22220 fi
22221 rm -f core conftest.err conftest.$ac_objext \
22222     conftest$ac_exeext conftest.$ac_ext
22223 LIBS=$ac_check_lib_save_LIBS
22224 fi
22225 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypto_EVP_PKEY_encrypt_old" >&5
22226 $as_echo "$ac_cv_lib_crypto_EVP_PKEY_encrypt_old" >&6; }
22227 if test "x$ac_cv_lib_crypto_EVP_PKEY_encrypt_old" = x""yes; then :
22228
22229 $as_echo "#define HAVE_OPENSSLv1 1" >>confdefs.h
22230
22231 fi
22232
22233    fi
22234
22235    LIBS="${saved_LIBS}"
22236    CFLAGS="${saved_CFLAGS}"
22237 else
22238    support_tls="no"
22239    support_crypto="no"
22240    OPENSSL_LIBS=""
22241    OPENSSL_INC=""
22242 fi
22243 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $support_tls" >&5
22244 $as_echo "$support_tls" >&6; }
22245
22246 if test "$support_tls" = "no"; then
22247    OPENSSL_LIBS=""
22248    OPENSSL_INC=""
22249 fi
22250 if test "$support_crypto" = "no"; then
22251    OPENSSL_LIBS=""
22252    OPENSSL_INC=""
22253 fi
22254
22255
22256
22257
22258 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5
22259 $as_echo_n "checking for library containing dlopen... " >&6; }
22260 if test "${ac_cv_search_dlopen+set}" = set; then :
22261   $as_echo_n "(cached) " >&6
22262 else
22263   ac_func_search_save_LIBS=$LIBS
22264 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22265 /* end confdefs.h.  */
22266
22267 /* Override any GCC internal prototype to avoid an error.
22268    Use char because int might match the return type of a GCC
22269    builtin and then its argument prototype would still apply.  */
22270 #ifdef __cplusplus
22271 extern "C"
22272 #endif
22273 char dlopen ();
22274 int
22275 main ()
22276 {
22277 return dlopen ();
22278   ;
22279   return 0;
22280 }
22281 _ACEOF
22282 for ac_lib in '' dl; do
22283   if test -z "$ac_lib"; then
22284     ac_res="none required"
22285   else
22286     ac_res=-l$ac_lib
22287     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
22288   fi
22289   if ac_fn_c_try_link "$LINENO"; then :
22290   ac_cv_search_dlopen=$ac_res
22291 fi
22292 rm -f core conftest.err conftest.$ac_objext \
22293     conftest$ac_exeext
22294   if test "${ac_cv_search_dlopen+set}" = set; then :
22295   break
22296 fi
22297 done
22298 if test "${ac_cv_search_dlopen+set}" = set; then :
22299
22300 else
22301   ac_cv_search_dlopen=no
22302 fi
22303 rm conftest.$ac_ext
22304 LIBS=$ac_func_search_save_LIBS
22305 fi
22306 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5
22307 $as_echo "$ac_cv_search_dlopen" >&6; }
22308 ac_res=$ac_cv_search_dlopen
22309 if test "$ac_res" != no; then :
22310   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
22311
22312 fi
22313
22314
22315 working_dir=`eval echo ${prefix}/var/bacula/working`
22316
22317 # Check whether --with-working-dir was given.
22318 if test "${with_working_dir+set}" = set; then :
22319   withval=$with_working_dir;
22320        if test "x$withval" != "xno" ; then
22321          working_dir=$withval
22322        fi
22323
22324
22325 fi
22326
22327
22328
22329
22330 archivedir=/tmp
22331
22332 # Check whether --with-archivedir was given.
22333 if test "${with_archivedir+set}" = set; then :
22334   withval=$with_archivedir;
22335        if test "x$withval" != "xno" ; then
22336           archivedir=$withval
22337        fi
22338
22339
22340 fi
22341
22342
22343
22344
22345 basename=`hostname`
22346
22347 # Check whether --with-basename was given.
22348 if test "${with_basename+set}" = set; then :
22349   withval=$with_basename;
22350        if test "x$withval" != "xno" ; then
22351           basename=$withval
22352        fi
22353
22354
22355 fi
22356
22357
22358
22359
22360 hostname=`uname -n | cut -d '.' -f 1`
22361 if test x${hostname} = x ; then
22362   hostname="localhost"
22363 fi
22364
22365 # Check whether --with-hostname was given.
22366 if test "${with_hostname+set}" = set; then :
22367   withval=$with_hostname;
22368        if test "x$withval" != "xno" ; then
22369          hostname=$withval
22370        fi
22371
22372
22373 fi
22374
22375
22376
22377
22378
22379 scriptdir=`eval echo ${sysconfdir}`
22380
22381 # Check whether --with-scriptdir was given.
22382 if test "${with_scriptdir+set}" = set; then :
22383   withval=$with_scriptdir;
22384        if test "x$withval" != "xno" ; then
22385           scriptdir=$withval
22386        fi
22387
22388
22389 fi
22390
22391
22392
22393
22394
22395 bsrdir=/tmp
22396
22397 # Check whether --with-bsrdir was given.
22398 if test "${with_bsrdir+set}" = set; then :
22399   withval=$with_bsrdir;
22400        if test "x$withval" != "xno" ; then
22401           bsrdir=$withval
22402        fi
22403
22404
22405 fi
22406
22407
22408
22409
22410 logdir=/tmp
22411
22412 # Check whether --with-logdir was given.
22413 if test "${with_logdir+set}" = set; then :
22414   withval=$with_logdir;
22415        if test "x$withval" != "xno" ; then
22416           logdir=$withval
22417        fi
22418
22419
22420 fi
22421
22422
22423
22424
22425
22426 # ------------------------------------------
22427 # Where to place plugindir (plugin files)
22428 # ------------------------------------------
22429 plugindir=`eval echo ${libdir}`
22430
22431 # Check whether --with-plugindir was given.
22432 if test "${with_plugindir+set}" = set; then :
22433   withval=$with_plugindir;
22434        if test "x$withval" != "xno" ; then
22435           plugindir=$withval
22436        fi
22437
22438
22439 fi
22440
22441
22442
22443
22444 dump_email=root@localhost
22445
22446 # Check whether --with-dump-email was given.
22447 if test "${with_dump_email+set}" = set; then :
22448   withval=$with_dump_email;
22449        if test "x$withval" != "xno" ; then
22450           dump_email=$withval
22451        fi
22452
22453
22454 fi
22455
22456
22457
22458
22459 job_email=root@localhost
22460
22461 # Check whether --with-job-email was given.
22462 if test "${with_job_email+set}" = set; then :
22463   withval=$with_job_email;
22464        if test "x$withval" != "xno" ; then
22465           job_email=$withval
22466        fi
22467
22468
22469 fi
22470
22471
22472
22473
22474 smtp_host=localhost
22475
22476 # Check whether --with-smtp_host was given.
22477 if test "${with_smtp_host+set}" = set; then :
22478   withval=$with_smtp_host;
22479        if test "x$withval" != "xno" ; then
22480           smtp_host=$withval
22481        fi
22482
22483
22484 fi
22485
22486
22487
22488
22489 piddir=/var/run
22490
22491 # Check whether --with-pid-dir was given.
22492 if test "${with_pid_dir+set}" = set; then :
22493   withval=$with_pid_dir;
22494        if test "x$withval" != "xno" ; then
22495           piddir=$withval
22496        fi
22497
22498
22499 fi
22500
22501
22502 cat >>confdefs.h <<_ACEOF
22503 #define _PATH_BACULA_PIDDIR "$piddir"
22504 _ACEOF
22505
22506
22507
22508 subsysdir=/var/run/subsys
22509 if test -d /var/run/subsys; then
22510    subsysdir=/var/run/subsys
22511 elif test -d /var/lock/subsys; then
22512    subsysdir=/var/lock/subsys
22513 else
22514    subsysdir=/var/run/subsys
22515 fi
22516
22517 # Check whether --with-subsys-dir was given.
22518 if test "${with_subsys_dir+set}" = set; then :
22519   withval=$with_subsys_dir;
22520        if test "x$withval" != "xno" ; then
22521           subsysdir=$withval
22522        fi
22523
22524
22525 fi
22526
22527
22528
22529
22530 baseport=9101
22531
22532 # Check whether --with-baseport was given.
22533 if test "${with_baseport+set}" = set; then :
22534   withval=$with_baseport;
22535        if test "x$withval" != "xno" ; then
22536           baseport=$withval
22537        fi
22538
22539
22540 fi
22541
22542
22543
22544 dir_port=`expr $baseport`
22545 fd_port=`expr $baseport + 1`
22546 sd_port=`expr $fd_port + 1`
22547
22548
22549
22550
22551
22552 dir_password=
22553
22554 # Check whether --with-dir-password was given.
22555 if test "${with_dir_password+set}" = set; then :
22556   withval=$with_dir_password;
22557        if test "x$withval" != "xno" ; then
22558           dir_password=$withval
22559        fi
22560
22561
22562 fi
22563
22564
22565 if test "x$dir_password" = "x" ; then
22566    if test "x$OPENSSL" = "xnone" ; then
22567       key=`autoconf/randpass 33`
22568    else
22569       key=`openssl rand -base64 33`
22570    fi
22571    dir_password=$key
22572 fi
22573
22574 fd_password=
22575
22576 # Check whether --with-fd-password was given.
22577 if test "${with_fd_password+set}" = set; then :
22578   withval=$with_fd_password;
22579        if test "x$withval" != "xno" ; then
22580           fd_password=$withval
22581        fi
22582
22583
22584 fi
22585
22586
22587 if test "x$fd_password" = "x" ; then
22588    if test "x$OPENSSL" = "xnone" ; then
22589       key=`autoconf/randpass 37`
22590    else
22591       key=`openssl rand -base64 33`
22592    fi
22593    fd_password=$key
22594 fi
22595
22596 sd_password=
22597
22598 # Check whether --with-sd-password was given.
22599 if test "${with_sd_password+set}" = set; then :
22600   withval=$with_sd_password;
22601        if test "x$withval" != "xno" ; then
22602           sd_password=$withval
22603        fi
22604
22605
22606 fi
22607
22608
22609 if test "x$sd_password" = "x" ; then
22610    if test "x$OPENSSL" = "xnone" ; then
22611       key=`autoconf/randpass 41`
22612    else
22613       key=`openssl rand -base64 33`
22614    fi
22615    sd_password=$key
22616 fi
22617
22618 mon_dir_password=
22619
22620 # Check whether --with-mon-dir-password was given.
22621 if test "${with_mon_dir_password+set}" = set; then :
22622   withval=$with_mon_dir_password;
22623        if test "x$withval" != "xno" ; then
22624           mon_dir_password=$withval
22625        fi
22626
22627
22628 fi
22629
22630
22631 if test "x$mon_dir_password" = "x" ; then
22632    if test "x$OPENSSL" = "xnone" ; then
22633       key=`autoconf/randpass 33`
22634    else
22635       key=`openssl rand -base64 33`
22636    fi
22637    mon_dir_password=$key
22638 fi
22639
22640 mon_fd_password=
22641
22642 # Check whether --with-mon-fd-password was given.
22643 if test "${with_mon_fd_password+set}" = set; then :
22644   withval=$with_mon_fd_password;
22645        if test "x$withval" != "xno" ; then
22646           mon_fd_password=$withval
22647        fi
22648
22649
22650 fi
22651
22652
22653 if test "x$mon_fd_password" = "x" ; then
22654    if test "x$OPENSSL" = "xnone" ; then
22655       key=`autoconf/randpass 37`
22656    else
22657       key=`openssl rand -base64 33`
22658    fi
22659    mon_fd_password=$key
22660 fi
22661
22662 mon_sd_password=
22663
22664 # Check whether --with-mon-sd-password was given.
22665 if test "${with_mon_sd_password+set}" = set; then :
22666   withval=$with_mon_sd_password;
22667        if test "x$withval" != "xno" ; then
22668           mon_sd_password=$withval
22669        fi
22670
22671
22672 fi
22673
22674
22675 if test "x$mon_sd_password" = "x" ; then
22676    if test "x$OPENSSL" = "xnone" ; then
22677       key=`autoconf/randpass 41`
22678    else
22679       key=`openssl rand -base64 33`
22680    fi
22681    mon_sd_password=$key
22682 fi
22683
22684
22685
22686
22687
22688
22689
22690
22691 db_name=bacula
22692
22693 # Check whether --with-db_name was given.
22694 if test "${with_db_name+set}" = set; then :
22695   withval=$with_db_name;
22696        if test "x$withval" != "x" ; then
22697           db_name=$withval
22698        fi
22699
22700
22701 fi
22702
22703
22704
22705 db_user=bacula
22706
22707 # Check whether --with-db_user was given.
22708 if test "${with_db_user+set}" = set; then :
22709   withval=$with_db_user;
22710        if test "x$withval" != "x" ; then
22711           db_user=$withval
22712        fi
22713
22714
22715 fi
22716
22717
22718
22719 db_password=
22720
22721 # Check whether --with-db_password was given.
22722 if test "${with_db_password+set}" = set; then :
22723   withval=$with_db_password;
22724        if test "x$withval" != "x" ; then
22725           db_password=$withval
22726        fi
22727
22728
22729 fi
22730
22731
22732
22733 db_port=" "
22734
22735 # Check whether --with-db_port was given.
22736 if test "${with_db_port+set}" = set; then :
22737   withval=$with_db_port;
22738        if test "x$withval" != "x" ; then
22739           db_port=$withval
22740        fi
22741
22742
22743 fi
22744
22745
22746
22747 #
22748 # Handle users and groups for each daemon
22749 #
22750 dir_user=
22751
22752 # Check whether --with-dir_user was given.
22753 if test "${with_dir_user+set}" = set; then :
22754   withval=$with_dir_user;
22755        if test "x$withval" != "x" ; then
22756            dir_user=$withval
22757        fi
22758
22759
22760 fi
22761
22762
22763 dir_group=
22764
22765 # Check whether --with-dir_group was given.
22766 if test "${with_dir_group+set}" = set; then :
22767   withval=$with_dir_group;
22768        if test "x$withval" != "x" ; then
22769           dir_group=$withval
22770        fi
22771
22772
22773 fi
22774
22775
22776 sd_user=
22777
22778 # Check whether --with-sd_user was given.
22779 if test "${with_sd_user+set}" = set; then :
22780   withval=$with_sd_user;
22781        if test "x$withval" != "x" ; then
22782           sd_user=$withval
22783        fi
22784
22785
22786 fi
22787
22788
22789 sd_group=
22790
22791 # Check whether --with-sd_group was given.
22792 if test "${with_sd_group+set}" = set; then :
22793   withval=$with_sd_group;
22794        if test "x$withval" != "x" ; then
22795           sd_group=$withval
22796        fi
22797
22798
22799 fi
22800
22801
22802 fd_user=
22803
22804 # Check whether --with-fd_user was given.
22805 if test "${with_fd_user+set}" = set; then :
22806   withval=$with_fd_user;
22807        if test "x$withval" != "x" ; then
22808           fd_user=$withval
22809        fi
22810
22811
22812 fi
22813
22814
22815 fd_group=
22816
22817 # Check whether --with-fd_group was given.
22818 if test "${with_fd_group+set}" = set; then :
22819   withval=$with_fd_group;
22820        if test "x$withval" != "x" ; then
22821           fd_group=$withval
22822        fi
22823
22824
22825 fi
22826
22827
22828
22829
22830
22831
22832
22833
22834
22835 SBINPERM=0750
22836
22837 # Check whether --with-sbin-perm was given.
22838 if test "${with_sbin_perm+set}" = set; then :
22839   withval=$with_sbin_perm;
22840        if test "x$withval" != "x" ; then
22841           SBINPERM=$withval
22842        fi
22843
22844
22845 fi
22846
22847
22848
22849
22850
22851 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PostgreSQL support" >&5
22852 $as_echo_n "checking for PostgreSQL support... " >&6; }
22853
22854 # Check whether --with-postgresql was given.
22855 if test "${with_postgresql+set}" = set; then :
22856   withval=$with_postgresql;
22857   if test "$withval" != "no"; then
22858       if test "$withval" = "yes"; then
22859           PG_CONFIG=`which pg_config`
22860           if test -n "$PG_CONFIG"; then
22861               POSTGRESQL_INCDIR=`"$PG_CONFIG" --includedir`
22862               POSTGRESQL_LIBDIR=`"$PG_CONFIG" --libdir`
22863               POSTGRESQL_BINDIR=`"$PG_CONFIG" --bindir`
22864           elif test -f /usr/local/include/libpq-fe.h; then
22865               POSTGRESQL_INCDIR=/usr/local/include
22866               if test -d /usr/local/lib64; then
22867                  POSTGRESQL_LIBDIR=/usr/local/lib64
22868               else
22869                  POSTGRESQL_LIBDIR=/usr/local/lib
22870               fi
22871               POSTGRESQL_BINDIR=/usr/local/bin
22872           elif test -f /usr/include/libpq-fe.h; then
22873               POSTGRESQL_INCDIR=/usr/include
22874               if test -d /usr/lib64; then
22875                  POSTGRESQL_LIBDIR=/usr/lib64
22876               else
22877                  POSTGRESQL_LIBDIR=/usr/lib
22878               fi
22879               POSTGRESQL_BINDIR=/usr/bin
22880           elif test -f /usr/include/pgsql/libpq-fe.h; then
22881               POSTGRESQL_INCDIR=/usr/include/pgsql
22882               if test -d /usr/lib64/pgsql; then
22883                  POSTGRESQL_LIBDIR=/usr/lib64/pgsql
22884               else
22885                  POSTGRESQL_LIBDIR=/usr/lib/pgsql
22886               fi
22887               POSTGRESQL_BINDIR=/usr/bin
22888           elif test -f /usr/include/postgresql/libpq-fe.h; then
22889               POSTGRESQL_INCDIR=/usr/include/postgresql
22890               if test -d /usr/lib64/postgresql; then
22891                  POSTGRESQL_LIBDIR=/usr/lib64/postgresql
22892               else
22893                  POSTGRESQL_LIBDIR=/usr/lib/postgresql
22894               fi
22895               POSTGRESQL_BINDIR=/usr/bin
22896           else
22897               { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22898 $as_echo "no" >&6; }
22899               as_fn_error "Unable to find libpq-fe.h in standard locations" "$LINENO" 5
22900           fi
22901       elif test -f $withval/include/libpq-fe.h; then
22902           POSTGRESQL_INCDIR=$withval/include
22903           POSTGRESQL_LIBDIR=$withval/lib
22904           POSTGRESQL_BINDIR=$withval/bin
22905       elif test -f $withval/include/postgresql/libpq-fe.h; then
22906           POSTGRESQL_INCDIR=$withval/include/postgresql
22907           if test -d $withval/lib64; then
22908               POSTGRESQL_LIBDIR=$withval/lib64
22909           else
22910               POSTGRESQL_LIBDIR=$withval/lib
22911           fi
22912           POSTGRESQL_BINDIR=$withval/bin
22913       else
22914           { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22915 $as_echo "no" >&6; }
22916           as_fn_error "Invalid PostgreSQL directory $withval - unable to find libpq-fe.h under $withval" "$LINENO" 5
22917       fi
22918
22919 $as_echo "#define HAVE_POSTGRESQL 1" >>confdefs.h
22920
22921      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22922 $as_echo "yes" >&6; }
22923
22924      POSTGRESQL_INCLUDE=-I$POSTGRESQL_INCDIR
22925      POSTGRESQL_LIBS="-R $POSTGRESQL_LIBDIR -L$POSTGRESQL_LIBDIR -lpq"
22926      ac_fn_c_check_func "$LINENO" "crypt" "ac_cv_func_crypt"
22927 if test "x$ac_cv_func_crypt" = x""yes; then :
22928
22929 else
22930   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for crypt in -lcrypt" >&5
22931 $as_echo_n "checking for crypt in -lcrypt... " >&6; }
22932 if test "${ac_cv_lib_crypt_crypt+set}" = set; then :
22933   $as_echo_n "(cached) " >&6
22934 else
22935   ac_check_lib_save_LIBS=$LIBS
22936 LIBS="-lcrypt  $LIBS"
22937 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22938 /* end confdefs.h.  */
22939
22940 /* Override any GCC internal prototype to avoid an error.
22941    Use char because int might match the return type of a GCC
22942    builtin and then its argument prototype would still apply.  */
22943 #ifdef __cplusplus
22944 extern "C"
22945 #endif
22946 char crypt ();
22947 int
22948 main ()
22949 {
22950 return crypt ();
22951   ;
22952   return 0;
22953 }
22954 _ACEOF
22955 if ac_fn_c_try_link "$LINENO"; then :
22956   ac_cv_lib_crypt_crypt=yes
22957 else
22958   ac_cv_lib_crypt_crypt=no
22959 fi
22960 rm -f core conftest.err conftest.$ac_objext \
22961     conftest$ac_exeext conftest.$ac_ext
22962 LIBS=$ac_check_lib_save_LIBS
22963 fi
22964 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypt_crypt" >&5
22965 $as_echo "$ac_cv_lib_crypt_crypt" >&6; }
22966 if test "x$ac_cv_lib_crypt_crypt" = x""yes; then :
22967   POSTGRESQL_LIBS="$POSTGRESQL_LIBS -lcrypt"
22968 fi
22969
22970 fi
22971
22972      POSTGRESQL_LIB=$POSTGRESQL_LIBDIR/libpq.a
22973      DB_LIBS="${DB_LIBS} ${POSTGRESQL_LIBS}"
22974
22975      if test -z "${db_backends}"; then
22976          db_backends="PostgreSQL"
22977      else
22978          db_backends="${db_backends} PostgreSQL"
22979      fi
22980      if test -z "${DB_BACKENDS}"; then
22981          DB_BACKENDS="postgresql"
22982      else
22983          DB_BACKENDS="${DB_BACKENDS} postgresql"
22984      fi
22985   else
22986      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22987 $as_echo "no" >&6; }
22988   fi
22989
22990 else
22991
22992   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22993 $as_echo "no" >&6; }
22994
22995 fi
22996
22997
22998
22999
23000
23001
23002
23003
23004 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MySQL support" >&5
23005 $as_echo_n "checking for MySQL support... " >&6; }
23006
23007 # Check whether --with-mysql was given.
23008 if test "${with_mysql+set}" = set; then :
23009   withval=$with_mysql;
23010   if test "$withval" != "no"; then
23011         if test "$withval" = "yes"; then
23012            if test -f /usr/local/mysql/include/mysql/mysql.h; then
23013                    MYSQL_INCDIR=/usr/local/mysql/include/mysql
23014                    if test -f /usr/local/mysql/lib64/mysql/libmysqlclient_r.a \
23015                         -o -f /usr/local/mysql/lib64/mysql/libmysqlclient_r.so; then
23016                            MYSQL_LIBDIR=/usr/local/mysql/lib64/mysql
23017                    else
23018                            MYSQL_LIBDIR=/usr/local/mysql/lib/mysql
23019                    fi
23020                    MYSQL_BINDIR=/usr/local/mysql/bin
23021            elif test -f /usr/include/mysql/mysql.h; then
23022                    MYSQL_INCDIR=/usr/include/mysql
23023                    if test -f /usr/lib64/mysql/libmysqlclient_r.a \
23024                         -o -f /usr/lib64/mysql/libmysqlclient_r.so; then
23025                            MYSQL_LIBDIR=/usr/lib64/mysql
23026                    elif test -f /usr/lib64/libmysqlclient_r.a \
23027                         -o -f /usr/lib64/libmysqlclient_r.so; then
23028                            MYSQL_LIBDIR=/usr/lib64
23029                    elif test -f /usr/lib/mysql/libmysqlclient_r.a \
23030                           -o -f /usr/lib/mysql/libmysqlclient_r.so; then
23031                            MYSQL_LIBDIR=/usr/lib/mysql
23032                    else
23033                            MYSQL_LIBDIR=/usr/lib
23034                    fi
23035                    MYSQL_BINDIR=/usr/bin
23036            elif test -f /usr/include/mysql.h; then
23037                    MYSQL_INCDIR=/usr/include
23038                    if test -f /usr/lib64/libmysqlclient_r.a \
23039                         -o -f /usr/lib64/libmysqlclient_r.so; then
23040                            MYSQL_LIBDIR=/usr/lib64
23041                    else
23042                            MYSQL_LIBDIR=/usr/lib
23043                    fi
23044                    MYSQL_BINDIR=/usr/bin
23045            elif test -f /usr/local/include/mysql/mysql.h; then
23046                    MYSQL_INCDIR=/usr/local/include/mysql
23047                    if test -f /usr/local/lib64/mysql/libmysqlclient_r.a \
23048                         -o -f /usr/local/lib64/mysql/libmysqlclient_r.so; then
23049                            MYSQL_LIBDIR=/usr/local/lib64/mysql
23050                    else
23051                            MYSQL_LIBDIR=/usr/local/lib/mysql
23052                    fi
23053                    MYSQL_BINDIR=/usr/local/bin
23054            elif test -f /usr/local/include/mysql.h; then
23055                    MYSQL_INCDIR=/usr/local/include
23056                    if test -f /usr/local/lib64/libmysqlclient_r.a \
23057                         -o -f /usr/local/lib64/libmysqlclient_r.so; then
23058                            MYSQL_LIBDIR=/usr/local/lib64
23059                    else
23060                            MYSQL_LIBDIR=/usr/local/lib
23061                    fi
23062                    MYSQL_BINDIR=/usr/local/bin
23063            else
23064               { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23065 $as_echo "no" >&6; }
23066               as_fn_error "Unable to find mysql.h in standard locations" "$LINENO" 5
23067            fi
23068         else
23069            if test -f $withval/include/mysql/mysql.h; then
23070               MYSQL_INCDIR=$withval/include/mysql
23071               if test -f $withval/lib64/mysql/libmysqlclient_r.a \
23072                    -o -f $withval/lib64/mysql/libmysqlclient_r.so; then
23073                  MYSQL_LIBDIR=$withval/lib64/mysql
23074               elif test -f $withval/lib64/libmysqlclient_r.a \
23075                    -o -f $withval/lib64/libmysqlclient_r.so; then
23076                  MYSQL_LIBDIR=$withval/lib64
23077               elif test -f $withval/lib/libmysqlclient_r.a \
23078                    -o -f $withval/lib/libmysqlclient_r.so; then
23079                  MYSQL_LIBDIR=$withval/lib
23080               else
23081                  MYSQL_LIBDIR=$withval/lib/mysql
23082               fi
23083               MYSQL_BINDIR=$withval/bin
23084            elif test -f $withval/include/mysql.h; then
23085               MYSQL_INCDIR=$withval/include
23086               if test -f $withval/lib64/libmysqlclient_r.a \
23087                    -o -f $withval/lib64/libmysqlclient_r.so; then
23088                  MYSQL_LIBDIR=$withval/lib64
23089               else
23090                  MYSQL_LIBDIR=$withval/lib
23091               fi
23092               MYSQL_BINDIR=$withval/bin
23093            else
23094               { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23095 $as_echo "no" >&6; }
23096               as_fn_error "Invalid MySQL directory $withval - unable to find mysql.h under $withval" "$LINENO" 5
23097            fi
23098         fi
23099      MYSQL_INCLUDE=-I$MYSQL_INCDIR
23100      if test -f $MYSQL_LIBDIR/libmysqlclient_r.a \
23101           -o -f $MYSQL_LIBDIR/libmysqlclient_r.so; then
23102         MYSQL_LIBS="-R $MYSQL_LIBDIR -L$MYSQL_LIBDIR -lmysqlclient_r -lz"
23103
23104 $as_echo "#define HAVE_THREAD_SAFE_MYSQL 1" >>confdefs.h
23105
23106         DB_LIBS="${DB_LIBS} ${MYSQL_LIBS}"
23107      fi
23108      MYSQL_LIB=$MYSQL_LIBDIR/libmysqlclient_r.a
23109
23110
23111 $as_echo "#define HAVE_MYSQL 1" >>confdefs.h
23112
23113      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
23114 $as_echo "yes" >&6; }
23115
23116      if test -z "${db_backends}" ; then
23117          db_backends="MySQL"
23118      else
23119          db_backends="${db_backends} MySQL"
23120      fi
23121      if test -z "${DB_BACKENDS}" ; then
23122          DB_BACKENDS="mysql"
23123      else
23124          DB_BACKENDS="${DB_BACKENDS} mysql"
23125      fi
23126   else
23127      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23128 $as_echo "no" >&6; }
23129   fi
23130
23131
23132 fi
23133
23134
23135
23136 # Check whether --with-embedded-mysql was given.
23137 if test "${with_embedded_mysql+set}" = set; then :
23138   withval=$with_embedded_mysql;
23139   if test "$withval" != "no"; then
23140         if test "$withval" = "yes"; then
23141                 if test -f /usr/local/mysql/include/mysql/mysql.h; then
23142                         MYSQL_INCDIR=/usr/local/mysql/include/mysql
23143                         if test -d /usr/local/mysql/lib64/mysql; then
23144                                 MYSQL_LIBDIR=/usr/local/mysql/lib64/mysql
23145                         else
23146                                 MYSQL_LIBDIR=/usr/local/mysql/lib/mysql
23147                         fi
23148                         MYSQL_BINDIR=/usr/local/mysql/bin
23149                 elif test -f /usr/include/mysql/mysql.h; then
23150                         MYSQL_INCDIR=/usr/include/mysql
23151                         if test -d /usr/lib64/mysql; then
23152                                 MYSQL_LIBDIR=/usr/lib64/mysql
23153                         else
23154                                 MYSQL_LIBDIR=/usr/lib/mysql
23155                         fi
23156                         MYSQL_BINDIR=/usr/bin
23157                 elif test -f /usr/include/mysql.h; then
23158                         MYSQL_INCDIR=/usr/include
23159                         if test -d /usr/lib64; then
23160                                 MYSQL_LIBDIR=/usr/lib64
23161                         else
23162                                 MYSQL_LIBDIR=/usr/lib
23163                         fi
23164                         MYSQL_BINDIR=/usr/bin
23165                 elif test -f /usr/local/include/mysql/mysql.h; then
23166                         MYSQL_INCDIR=/usr/local/include/mysql
23167                         if test -d /usr/local/lib64/mysql; then
23168                                 MYSQL_LIBDIR=/usr/local/lib64/mysql
23169                         else
23170                                 MYSQL_LIBDIR=/usr/local/lib/mysql
23171                         fi
23172                         MYSQL_BINDIR=/usr/local/bin
23173                 elif test -f /usr/local/include/mysql.h; then
23174                         MYSQL_INCDIR=/usr/local/include
23175                         if test -d /usr/local/lib64; then
23176                                 MYSQL_LIBDIR=/usr/local/lib64
23177                         else
23178                                 MYSQL_LIBDIR=/usr/local/lib
23179                         fi
23180                         MYSQL_BINDIR=/usr/local/bin
23181                 else
23182                    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23183 $as_echo "no" >&6; }
23184                    as_fn_error "Unable to find mysql.h in standard locations" "$LINENO" 5
23185                 fi
23186         else
23187                 if test -f $withval/include/mysql/mysql.h; then
23188                         MYSQL_INCDIR=$withval/include/mysql
23189                         if test -d $withval/lib64/mysql; then
23190                                 MYSQL_LIBDIR=$withval/lib64/mysql
23191                         else
23192                                 MYSQL_LIBDIR=$withval/lib/mysql
23193                         fi
23194                         MYSQL_BINDIR=$withval/bin
23195                 elif test -f $withval/include/mysql.h; then
23196                         MYSQL_INCDIR=$withval/include
23197                         if test -d $withval/lib64; then
23198                                 MYSQL_LIBDIR=$withval/lib64
23199                         else
23200                                 MYSQL_LIBDIR=$withval/lib
23201                         fi
23202                         MYSQL_BINDIR=$withval/bin
23203                 else
23204                    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23205 $as_echo "no" >&6; }
23206                    as_fn_error "Invalid MySQL directory $withval - unable to find mysql.h under $withval" "$LINENO" 5
23207                 fi
23208         fi
23209      MYSQL_INCLUDE=-I$MYSQL_INCDIR
23210      MYSQL_LIBS="-R $MYSQL_LIBDIR -L$MYSQL_LIBDIR -lmysqld -lz -lm -lcrypt"
23211      MYSQL_LIB=$MYSQL_LIBDIR/libmysqld.a
23212      DB_LIBS="${DB_LIBS} ${MYSQL_LIBS}"
23213
23214
23215 $as_echo "#define HAVE_MYSQL 1" >>confdefs.h
23216
23217
23218 $as_echo "#define HAVE_EMBEDDED_MYSQL 1" >>confdefs.h
23219
23220      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
23221 $as_echo "yes" >&6; }
23222
23223      if test -z "${db_backends}"; then
23224          db_backends="MySQL"
23225      else
23226          db_backends="${db_backends} MySQL"
23227      fi
23228      if test -z "${DB_BACKENDS}"; then
23229          DB_BACKENDS="mysql"
23230      else
23231          DB_BACKENDS="${DB_BACKENDS} mysql"
23232      fi
23233   else
23234      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23235 $as_echo "no" >&6; }
23236   fi
23237
23238
23239 fi
23240
23241
23242
23243
23244
23245
23246
23247
23248
23249 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SQLite3 support" >&5
23250 $as_echo_n "checking for SQLite3 support... " >&6; }
23251
23252 # Check whether --with-sqlite3 was given.
23253 if test "${with_sqlite3+set}" = set; then :
23254   withval=$with_sqlite3;
23255   if test "$withval" != "no"; then
23256      if test "$withval" = "yes"; then
23257         if test -f /usr/local/include/sqlite3.h; then
23258            SQLITE_INCDIR=/usr/local/include
23259            if test -d /usr/local/lib64; then
23260               SQLITE_LIBDIR=/usr/local/lib64
23261            else
23262               SQLITE_LIBDIR=/usr/local/lib
23263            fi
23264            SQLITE_BINDIR=/usr/local/bin
23265         elif test -f /usr/include/sqlite3.h; then
23266            SQLITE_INCDIR=/usr/include
23267            if test -d /usr/lib64; then
23268               SQLITE_LIBDIR=/usr/lib64
23269            else
23270               SQLITE_LIBDIR=/usr/lib
23271            fi
23272            SQLITE_BINDIR=/usr/bin
23273         elif test -f $prefix/include/sqlite3.h; then
23274            SQLITE_INCDIR=$prefix/include
23275            if test -d $prefix/lib64; then
23276               SQLITE_LIBDIR=$prefix/lib64
23277            else
23278               SQLITE_LIBDIR=$prefix/lib
23279            fi
23280            SQLITE_BINDIR=$prefix/bin
23281         else
23282            { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23283 $as_echo "no" >&6; }
23284            as_fn_error "Unable to find sqlite3.h in standard locations" "$LINENO" 5
23285         fi
23286      else
23287         if test -f $withval/sqlite3.h; then
23288            SQLITE_INCDIR=$withval
23289            SQLITE_LIBDIR=$withval
23290            SQLITE_BINDIR=$withval
23291         elif test -f $withval/include/sqlite3.h; then
23292            SQLITE_INCDIR=$withval/include
23293            if test -d $withval/lib64; then
23294               SQLITE_LIBDIR=$withval/lib64
23295            else
23296               SQLITE_LIBDIR=$withval/lib
23297            fi
23298            SQLITE_BINDIR=$withval/bin
23299         else
23300            { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23301 $as_echo "no" >&6; }
23302            as_fn_error "Invalid SQLite3 directory $withval - unable to find sqlite3.h under $withval" "$LINENO" 5
23303         fi
23304      fi
23305      SQLITE_INCLUDE=-I$SQLITE_INCDIR
23306      SQLITE_LIBS="-R $SQLITE_LIBDIR -L$SQLITE_LIBDIR -lsqlite3"
23307      SQLITE_LIB=$SQLITE_LIBDIR/libsqlite3.a
23308      DB_LIBS="${DB_LIBS} ${SQLITE_LIBS}"
23309
23310
23311 $as_echo "#define HAVE_SQLITE3 1" >>confdefs.h
23312
23313      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
23314 $as_echo "yes" >&6; }
23315
23316      if test -z "${db_backends}"; then
23317          db_backends="SQLite3"
23318      else
23319          db_backends="${db_backends} SQLite3"
23320      fi
23321      if test -z "${DB_BACKENDS}"; then
23322          DB_BACKENDS="sqlite3"
23323      else
23324          DB_BACKENDS="${DB_BACKENDS} sqlite3"
23325      fi
23326   else
23327      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23328 $as_echo "no" >&6; }
23329   fi
23330
23331 else
23332
23333   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23334 $as_echo "no" >&6; }
23335
23336 fi
23337
23338
23339
23340
23341
23342
23343
23344
23345 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Ingres support" >&5
23346 $as_echo_n "checking for Ingres support... " >&6; }
23347
23348 # Check whether --with-ingres was given.
23349 if test "${with_ingres+set}" = set; then :
23350   withval=$with_ingres;
23351   if test "$withval" != "no"; then
23352      if test "$withval" = "yes"; then
23353         if test -f ${II_SYSTEM}/files/eqdefc.h; then
23354            INGRES_INCDIR=${II_SYSTEM}/files
23355            INGRES_LIBDIR=${II_SYSTEM}/lib
23356            INGRES_BINDIR=${II_SYSTEM}/bin
23357         elif test -f ${II_SYSTEM}/ingres/files/eqdefc.h; then
23358            INGRES_INCDIR=${II_SYSTEM}/ingres/files
23359            INGRES_LIBDIR=${II_SYSTEM}/ingres/lib
23360            INGRES_BINDIR=${II_SYSTEM}/ingres/bin
23361         else
23362            { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23363 $as_echo "no" >&6; }
23364            as_fn_error "Unable to find eqdefc.h in standard locations" "$LINENO" 5
23365         fi
23366      else
23367         if test -f $withval/files/eqdefc.h; then
23368            INGRES_INCDIR=$withval/files
23369            INGRES_LIBDIR=$withval/lib
23370            INGRES_BINDIR=$withval/bin
23371         else
23372            { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23373 $as_echo "no" >&6; }
23374            as_fn_error "Invalid Ingres directory $withval - unable to find Ingres headers under $withval" "$LINENO" 5
23375         fi
23376      fi
23377      INGRES_INCLUDE=-I$INGRES_INCDIR
23378      INGRES_LIBS="-R $INGRES_LIBDIR -L$INGRES_LIBDIR -lq.1 -lcompat.1 -lframe.1"
23379      DB_LIBS="${DB_LIBS} ${INGRES_LIBS}"
23380
23381 $as_echo "#define HAVE_INGRES 1" >>confdefs.h
23382
23383      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
23384 $as_echo "yes" >&6; }
23385
23386      if test -z "${db_backends}"; then
23387          db_backends="Ingres"
23388      else
23389          db_backends="${db_backends} Ingres"
23390      fi
23391      if test -z "${DB_BACKENDS}"; then
23392          DB_BACKENDS="ingres"
23393      else
23394          DB_BACKENDS="${DB_BACKENDS} ingres"
23395      fi
23396   else
23397      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23398 $as_echo "no" >&6; }
23399   fi
23400
23401 else
23402
23403   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23404 $as_echo "no" >&6; }
23405
23406 fi
23407
23408
23409
23410
23411
23412
23413
23414
23415 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DBI support" >&5
23416 $as_echo_n "checking for DBI support... " >&6; }
23417
23418 # Check whether --with-dbi was given.
23419 if test "${with_dbi+set}" = set; then :
23420   withval=$with_dbi;
23421   if test "$withval" != "no"; then
23422      if test "$withval" = "yes"; then
23423         if test -f /usr/local/include/dbi/dbi.h; then
23424            DBI_INCDIR=/usr/local/dbi/include
23425            if test -d /usr/local/lib64; then
23426               DBI_LIBDIR=/usr/local/lib64
23427            else
23428               DBI_LIBDIR=/usr/local/lib
23429            fi
23430            DBI_BINDIR=/usr/local/bin
23431         elif test -f /usr/include/dbi/dbi.h; then
23432            DBI_INCDIR=/usr/include
23433            if test -d /usr/lib64; then
23434               DBI_LIBDIR=/usr/lib64
23435            else
23436               DBI_LIBDIR=/usr/lib
23437            fi
23438            DBI_BINDIR=/usr/bin
23439         elif test -f $prefix/include/dbi/dbi.h; then
23440            DBI_INCDIR=$prefix/include
23441            if test -d $prefix/lib64; then
23442               DBI_LIBDIR=$prefix/lib64
23443            else
23444               DBI_LIBDIR=$prefix/lib
23445            fi
23446            DBI_BINDIR=$prefix/bin
23447         else
23448            { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23449 $as_echo "no" >&6; }
23450            as_fn_error "Unable to find dbi.h in standard locations" "$LINENO" 5
23451         fi
23452         if test -d /usr/local/lib/dbd; then
23453            DRIVERDIR=/usr/local/lib/dbd
23454            if test -d /usr/local/lib64/dbd; then
23455               DRIVERDIR=/usr/local/lib64/dbd
23456            else
23457               DRIVERDIR=/usr/local/lib/dbd
23458            fi
23459         elif test -d /usr/lib/dbd; then
23460            DRIVERDIR=/usr/lib/dbd
23461            if test -d /usr/lib64/dbd; then
23462               DRIVERDIR=/usr/lib64/dbd
23463            else
23464               DRIVERDIR=/usr/lib/dbd
23465            fi
23466         elif test -d $prefix/lib/dbd; then
23467            if test -d $prefix/lib64/dbd; then
23468               DRIVERDIR=$prefix/lib64/dbd
23469            else
23470               DRIVERDIR=$prefix/lib/dbd
23471            fi
23472         elif test -d /usr/local/lib64/dbd; then
23473            DRIVERDIR=/usr/local/lib64/dbd
23474         elif test -d /usr/lib64/dbd; then
23475            DRIVERDIR=/usr/lib64/dbd
23476         elif test -d $prefix/lib64/dbd; then
23477            DRIVERDIR=$prefix/lib64/dbd
23478         else
23479            { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23480 $as_echo "no" >&6; }
23481            as_fn_error "Unable to find DBD drivers in standard locations" "$LINENO" 5
23482         fi
23483      else
23484         if test -f $withval/dbi.h; then
23485            DBI_INCDIR=$withval
23486            DBI_LIBDIR=$withval
23487            DBI_BINDIR=$withval
23488         elif test -f $withval/include/dbi/dbi.h; then
23489            DBI_INCDIR=$withval/include
23490            if test -d $withval/lib64; then
23491               DBI_LIBDIR=$withval/lib64
23492            else
23493               DBI_LIBDIR=$withval/lib
23494            fi
23495            DBI_BINDIR=$withval/bin
23496         else
23497            { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23498 $as_echo "no" >&6; }
23499            as_fn_error "Invalid DBI directory $withval - unable to find dbi.h under $withval" "$LINENO" 5
23500         fi
23501         if test -d $withval/dbd; then
23502            DRIVERDIR=$withval/dbd
23503         elif test -d $withval/lib/; then
23504            if test -d $withval/lib64/dbd; then
23505               DRIVERDIR=$withval/lib64/dbd
23506            else
23507               DRIVERDIR=$withval/lib/dbd
23508            fi
23509         elif test -d $withval/lib64/dbd; then
23510            DRIVERDIR=$withval/lib64/dbd
23511         else
23512            { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23513 $as_echo "no" >&6; }
23514            as_fn_error "Invalid DBD driver directory $withval - unable to find DBD drivers under $withval" "$LINENO" 5
23515         fi
23516      fi
23517      DBI_INCLUDE=-I$DBI_INCDIR
23518      DBI_LIBS="-R $DBI_LIBDIR -L$DBI_LIBDIR -ldbi"
23519      DBI_LIB=$DBI_LIBDIR/libdbi.a
23520      DBI_DBD_DRIVERDIR="-D DBI_DRIVER_DIR=\\\"$DRIVERDIR\\\""
23521      DB_LIBS="${DB_LIBS} ${DBI_LIBS}"
23522
23523
23524 $as_echo "#define HAVE_DBI 1" >>confdefs.h
23525
23526      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
23527 $as_echo "yes" >&6; }
23528
23529      if test -z "${db_backends}"; then
23530          db_backends="DBI"
23531      else
23532          db_backends="${db_backends} DBI"
23533      fi
23534      if test -z "${DB_BACKENDS}" ; then
23535         DB_BACKENDS="dbi"
23536      else
23537         DB_BACKENDS="${DB_BACKENDS} dbi"
23538      fi
23539      uncomment_dbi=" "
23540
23541   else
23542      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23543 $as_echo "no" >&6; }
23544   fi
23545
23546 else
23547
23548   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23549 $as_echo "no" >&6; }
23550
23551 fi
23552
23553
23554
23555
23556
23557
23558
23559
23560
23561
23562
23563 db_prog=no
23564 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DBI drivers support" >&5
23565 $as_echo_n "checking for DBI drivers support... " >&6; }
23566
23567 # Check whether --with-dbi-driver was given.
23568 if test "${with_dbi_driver+set}" = set; then :
23569   withval=$with_dbi_driver;
23570   if test "$withval" != "no"; then
23571      case $withval in
23572         "mysql")
23573            db_prog="mysql"
23574            if test -f /usr/local/mysql/bin/mysql; then
23575               SQL_BINDIR=/usr/local/mysql/bin
23576               if test -f /usr/local/mysql/lib64/mysql/libmysqlclient_r.a \
23577                  -o -f /usr/local/mysql/lib64/mysql/libmysqlclient_r.so; then
23578                  MYSQL_LIBDIR=/usr/local/mysql/lib64/mysql
23579               else
23580                  MYSQL_LIBDIR=/usr/local/mysql/lib/mysql
23581               fi
23582            elif test -f /usr/bin/mysql; then
23583               SQL_BINDIR=/usr/bin
23584               if test -f /usr/lib64/mysql/libmysqlclient_r.a \
23585                   -o -f /usr/lib64/mysql/libmysqlclient_r.so; then
23586                   MYSQL_LIBDIR=/usr/lib64/mysql
23587               elif test -f /usr/lib/mysql/libmysqlclient_r.a \
23588                   -o -f /usr/lib/mysql/libmysqlclient_r.so; then
23589                   MYSQL_LIBDIR=/usr/lib/mysql
23590               else
23591                   MYSQL_LIBDIR=/usr/lib
23592               fi
23593            elif test -f /usr/local/bin/mysql; then
23594               SQL_BINDIR=/usr/local/bin
23595               if test -f /usr/local/lib64/mysql/libmysqlclient_r.a \
23596                   -o -f /usr/local/lib64/mysql/libmysqlclient_r.so; then
23597                   MYSQL_LIBDIR=/usr/local/lib64/mysql
23598               elif test -f /usr/local/lib/mysql/libmysqlclient_r.a \
23599                   -o -f /usr/local/lib/mysql/libmysqlclient_r.so; then
23600                   MYSQL_LIBDIR=/usr/local/lib/mysql
23601               else
23602                   MYSQL_LIBDIR=/usr/local/lib
23603               fi
23604            elif test -f $withval/bin/mysql; then
23605               SQL_BINDIR=$withval/bin
23606               if test -f $withval/lib64/mysql/libmysqlclient_r.a \
23607                   -o -f $withval/lib64/mysql/libmysqlclient_r.so; then
23608                   MYSQL_LIBDIR=$withval/lib64/mysql
23609               elif test -f $withval/lib64/libmysqlclient_r.a \
23610                   -o -f $withval/lib64/libmysqlclient_r.so; then
23611                   MYSQL_LIBDIR=$withval/lib64
23612               elif test -f $withval/lib/libmysqlclient_r.a \
23613                   -o -f $withval/lib/libmysqlclient_r.so; then
23614                   MYSQL_LIBDIR=$withval/lib/
23615               else
23616                   MYSQL_LIBDIR=$withval/lib/mysql
23617               fi
23618            else
23619               { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23620 $as_echo "no" >&6; }
23621               as_fn_error "Unable to find mysql in standard locations" "$LINENO" 5
23622            fi
23623            if test -f $SQL_LIBDIR/libmysqlclient_r.so; then
23624               DB_PROG_LIB=$SQL_LIBDIR/libmysqlclient_r.so
23625            else
23626               DB_PROG_LIB=$SQL_LIBDIR/libmysqlclient_r.a
23627            fi
23628         ;;
23629         "postgresql")
23630            db_prog="postgresql"
23631            PG_CONFIG=`which pg_config`
23632            if test -n "$PG_CONFIG"; then
23633               POSTGRESQL_BINDIR=`"$PG_CONFIG" --bindir`
23634               POSTGRESQL_LIBDIR=`"$PG_CONFIG" --libdir`
23635            elif test -f /usr/local/bin/psql; then
23636               POSTGRESQL_BINDIR=/usr/local/bin
23637               if test -d /usr/local/lib64; then
23638                  POSTGRESQL_LIBDIR=/usr/local/lib64
23639               else
23640                  POSTGRESQL_LIBDIR=/usr/local/lib
23641               fi
23642            elif test -f /usr/bin/psql; then
23643               POSTGRESQL_BINDIR=/usr/local/bin
23644               if test -d /usr/lib64/postgresql; then
23645                  POSTGRESQL_LIBDIR=/usr/lib64/postgresql
23646               elif test -d /usr/lib/postgresql; then
23647                  POSTGRESQL_LIBDIR=/usr/lib/postgresql
23648               elif test -d /usr/lib64; then
23649                  POSTGRESQL_LIBDIR=/usr/lib64
23650               else
23651                  POSTGRESQL_LIBDIR=/usr/lib
23652               fi
23653            elif test -f $withval/bin/psql; then
23654               POSTGRESQL_BINDIR=$withval/bin
23655               if test -d $withval/lib64; then
23656                  POSTGRESQL_LIBDIR=$withval/lib64
23657               else
23658                  POSTGRESQL_LIBDIR=$withval/lib
23659               fi
23660            else
23661               { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23662 $as_echo "no" >&6; }
23663               as_fn_error "Unable to find psql in standard locations" "$LINENO" 5
23664            fi
23665            if test -f $POSTGRESQL_LIBDIR/libpq.so; then
23666               DB_PROG_LIB=$POSTGRESQL_LIBDIR/libpq.so
23667            else
23668               DB_PROG_LIB=$POSTGRESQL_LIBDIR/libpq.a
23669            fi
23670         ;;
23671         "sqlite3")
23672            db_prog="sqlite3"
23673            if test -f /usr/local/bin/sqlite3; then
23674               SQLITE_BINDIR=/usr/local/bin
23675               if test -d /usr/local/lib64; then
23676                  SQLITE_LIBDIR=/usr/local/lib64
23677               else
23678                  SQLITE_LIBDIR=/usr/local/lib
23679               fi
23680            elif test -f /usr/bin/sqlite3; then
23681               SQLITE_BINDIR=/usr/bin
23682               if test -d /usr/lib64; then
23683                  SQLITE_LIBDIR=/usr/lib64
23684               else
23685                  SQLITE_LIBDIR=/usr/lib
23686               fi
23687            elif test -f $withval/bin/sqlite3; then
23688               SQLITE_BINDIR=$withval/bin
23689               if test -d $withval/lib64; then
23690                  SQLITE_LIBDIR=$withval/lib64
23691               else
23692                  SQLITE_LIBDIR=$withval/lib
23693               fi
23694            else
23695               { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23696 $as_echo "no" >&6; }
23697               as_fn_error "Unable to find sqlite in standard locations" "$LINENO" 5
23698            fi
23699            if test -f $SQLITE_LIBDIR/libsqlite3.so; then
23700               DB_PROG_LIB=$SQLITE_LIBDIR/libsqlite3.so
23701            else
23702               DB_PROG_LIB=$SQLITE_LIBDIR/libsqlite3.a
23703            fi
23704         ;;
23705         *)
23706            { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23707 $as_echo "no" >&6; }
23708            as_fn_error "Unable to set DBI driver. $withval is not supported" "$LINENO" 5
23709         ;;
23710      esac
23711
23712      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
23713 $as_echo "yes" >&6; }
23714      DB_PROG=$db_prog
23715   else
23716      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23717 $as_echo "no" >&6; }
23718   fi
23719
23720 else
23721
23722   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23723 $as_echo "no" >&6; }
23724
23725 fi
23726
23727
23728
23729
23730
23731
23732
23733
23734
23735
23736 if test "x${db_backends}" = "x" ; then
23737    echo " "
23738    echo " "
23739    echo "You have not specified either --enable-client-only or one of the"
23740    echo "supported databases: MySQL, PostgreSQL, Ingres, SQLite3 or DBI."
23741    echo "This is not permitted. Please reconfigure."
23742    echo " "
23743    echo "Aborting the configuration ..."
23744    echo " "
23745    echo " "
23746    exit 1
23747 fi
23748
23749 case `echo $DB_BACKENDS | wc -w | sed -e 's/^ *//'` in
23750    1)
23751       DEFAULT_DB_TYPE="${DB_BACKENDS}"
23752       if test x$use_libtool = xno; then
23753          SHARED_CATALOG_TARGETS=""
23754       else
23755          SHARED_CATALOG_TARGETS="libbaccats-${DEFAULT_DB_TYPE}.la"
23756       fi
23757       ;;
23758    *)
23759                         DEFAULT_DB_TYPE=`echo ${DB_BACKENDS} | cut -d' ' -f1`
23760
23761                         if test x$use_libtool = xno; then
23762          echo " "
23763          echo " "
23764          echo "You have specified two or more of the"
23765          echo "supported databases: MySQL, PostgreSQL, Ingres, SQLite3 or DBI."
23766          echo "This is not permitted when not using libtool Please reconfigure."
23767          echo " "
23768          echo "Aborting the configuration ..."
23769          echo " "
23770          echo " "
23771          exit 1
23772       fi
23773
23774       SHARED_CATALOG_TARGETS=""
23775       for db_type in ${DB_BACKENDS}
23776       do
23777          if test -z "${SHARED_CATALOG_TARGETS}"; then
23778             SHARED_CATALOG_TARGETS="libbaccats-${db_type}.la"
23779          else
23780             SHARED_CATALOG_TARGETS="${SHARED_CATALOG_TARGETS} libbaccats-${db_type}.la"
23781          fi
23782       done
23783       ;;
23784 esac
23785
23786 if test x$use_libtool = xyes; then
23787    DB_LIBS=""
23788 fi
23789
23790
23791
23792
23793
23794
23795 support_batch_insert=yes
23796 # Check whether --enable-batch-insert was given.
23797 if test "${enable_batch_insert+set}" = set; then :
23798   enableval=$enable_batch_insert;
23799        if test x$enableval = xno; then
23800           support_batch_insert=no
23801        fi
23802
23803
23804 fi
23805
23806
23807 if test x$support_batch_insert = xyes; then
23808
23809 $as_echo "#define USE_BATCH_FILE_INSERT 1" >>confdefs.h
23810
23811 fi
23812
23813 if test ! -z "$MYSQL_LIB"; then
23814    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mysql_thread_safe in -lmysql_r" >&5
23815 $as_echo_n "checking for mysql_thread_safe in -lmysql_r... " >&6; }
23816 if test "${ac_cv_lib_mysql_r_mysql_thread_safe+set}" = set; then :
23817   $as_echo_n "(cached) " >&6
23818 else
23819   ac_check_lib_save_LIBS=$LIBS
23820 LIBS="-lmysql_r  $LIBS"
23821 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23822 /* end confdefs.h.  */
23823
23824 /* Override any GCC internal prototype to avoid an error.
23825    Use char because int might match the return type of a GCC
23826    builtin and then its argument prototype would still apply.  */
23827 #ifdef __cplusplus
23828 extern "C"
23829 #endif
23830 char mysql_thread_safe ();
23831 int
23832 main ()
23833 {
23834 return mysql_thread_safe ();
23835   ;
23836   return 0;
23837 }
23838 _ACEOF
23839 if ac_fn_c_try_link "$LINENO"; then :
23840   ac_cv_lib_mysql_r_mysql_thread_safe=yes
23841 else
23842   ac_cv_lib_mysql_r_mysql_thread_safe=no
23843 fi
23844 rm -f core conftest.err conftest.$ac_objext \
23845     conftest$ac_exeext conftest.$ac_ext
23846 LIBS=$ac_check_lib_save_LIBS
23847 fi
23848 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mysql_r_mysql_thread_safe" >&5
23849 $as_echo "$ac_cv_lib_mysql_r_mysql_thread_safe" >&6; }
23850 if test "x$ac_cv_lib_mysql_r_mysql_thread_safe" = x""yes; then :
23851
23852 $as_echo "#define HAVE_MYSQL_THREAD_SAFE 1" >>confdefs.h
23853
23854 fi
23855
23856 fi
23857
23858 if test ! -z "SQLITE_LIB"; then
23859    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sqlite3_threadsafe in -lsqlite3" >&5
23860 $as_echo_n "checking for sqlite3_threadsafe in -lsqlite3... " >&6; }
23861 if test "${ac_cv_lib_sqlite3_sqlite3_threadsafe+set}" = set; then :
23862   $as_echo_n "(cached) " >&6
23863 else
23864   ac_check_lib_save_LIBS=$LIBS
23865 LIBS="-lsqlite3  $LIBS"
23866 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23867 /* end confdefs.h.  */
23868
23869 /* Override any GCC internal prototype to avoid an error.
23870    Use char because int might match the return type of a GCC
23871    builtin and then its argument prototype would still apply.  */
23872 #ifdef __cplusplus
23873 extern "C"
23874 #endif
23875 char sqlite3_threadsafe ();
23876 int
23877 main ()
23878 {
23879 return sqlite3_threadsafe ();
23880   ;
23881   return 0;
23882 }
23883 _ACEOF
23884 if ac_fn_c_try_link "$LINENO"; then :
23885   ac_cv_lib_sqlite3_sqlite3_threadsafe=yes
23886 else
23887   ac_cv_lib_sqlite3_sqlite3_threadsafe=no
23888 fi
23889 rm -f core conftest.err conftest.$ac_objext \
23890     conftest$ac_exeext conftest.$ac_ext
23891 LIBS=$ac_check_lib_save_LIBS
23892 fi
23893 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_sqlite3_sqlite3_threadsafe" >&5
23894 $as_echo "$ac_cv_lib_sqlite3_sqlite3_threadsafe" >&6; }
23895 if test "x$ac_cv_lib_sqlite3_sqlite3_threadsafe" = x""yes; then :
23896
23897 $as_echo "#define HAVE_SQLITE3_THREADSAFE 1" >>confdefs.h
23898
23899 fi
23900
23901 fi
23902
23903 if test ! -z "$POSTGRESQL_LIB"; then
23904       saved_LIBS="${LIBS}"
23905    LIBS="${saved_LIBS} ${POSTGRESQL_LIB}"
23906
23907    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PQisthreadsafe in -lpq" >&5
23908 $as_echo_n "checking for PQisthreadsafe in -lpq... " >&6; }
23909 if test "${ac_cv_lib_pq_PQisthreadsafe+set}" = set; then :
23910   $as_echo_n "(cached) " >&6
23911 else
23912   ac_check_lib_save_LIBS=$LIBS
23913 LIBS="-lpq  $LIBS"
23914 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23915 /* end confdefs.h.  */
23916
23917 /* Override any GCC internal prototype to avoid an error.
23918    Use char because int might match the return type of a GCC
23919    builtin and then its argument prototype would still apply.  */
23920 #ifdef __cplusplus
23921 extern "C"
23922 #endif
23923 char PQisthreadsafe ();
23924 int
23925 main ()
23926 {
23927 return PQisthreadsafe ();
23928   ;
23929   return 0;
23930 }
23931 _ACEOF
23932 if ac_fn_c_try_link "$LINENO"; then :
23933   ac_cv_lib_pq_PQisthreadsafe=yes
23934 else
23935   ac_cv_lib_pq_PQisthreadsafe=no
23936 fi
23937 rm -f core conftest.err conftest.$ac_objext \
23938     conftest$ac_exeext conftest.$ac_ext
23939 LIBS=$ac_check_lib_save_LIBS
23940 fi
23941 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pq_PQisthreadsafe" >&5
23942 $as_echo "$ac_cv_lib_pq_PQisthreadsafe" >&6; }
23943 if test "x$ac_cv_lib_pq_PQisthreadsafe" = x""yes; then :
23944
23945 $as_echo "#define HAVE_PQISTHREADSAFE 1" >>confdefs.h
23946
23947 fi
23948
23949    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PQputCopyData in -lpq" >&5
23950 $as_echo_n "checking for PQputCopyData in -lpq... " >&6; }
23951 if test "${ac_cv_lib_pq_PQputCopyData+set}" = set; then :
23952   $as_echo_n "(cached) " >&6
23953 else
23954   ac_check_lib_save_LIBS=$LIBS
23955 LIBS="-lpq  $LIBS"
23956 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23957 /* end confdefs.h.  */
23958
23959 /* Override any GCC internal prototype to avoid an error.
23960    Use char because int might match the return type of a GCC
23961    builtin and then its argument prototype would still apply.  */
23962 #ifdef __cplusplus
23963 extern "C"
23964 #endif
23965 char PQputCopyData ();
23966 int
23967 main ()
23968 {
23969 return PQputCopyData ();
23970   ;
23971   return 0;
23972 }
23973 _ACEOF
23974 if ac_fn_c_try_link "$LINENO"; then :
23975   ac_cv_lib_pq_PQputCopyData=yes
23976 else
23977   ac_cv_lib_pq_PQputCopyData=no
23978 fi
23979 rm -f core conftest.err conftest.$ac_objext \
23980     conftest$ac_exeext conftest.$ac_ext
23981 LIBS=$ac_check_lib_save_LIBS
23982 fi
23983 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pq_PQputCopyData" >&5
23984 $as_echo "$ac_cv_lib_pq_PQputCopyData" >&6; }
23985 if test "x$ac_cv_lib_pq_PQputCopyData" = x""yes; then :
23986
23987 $as_echo "#define HAVE_PQ_COPY 1" >>confdefs.h
23988
23989 fi
23990
23991    if test "x$ac_cv_lib_pq_PQputCopyData" = "xyes"; then
23992       if test $support_batch_insert = yes ; then
23993
23994 $as_echo "#define HAVE_POSTGRESQL_BATCH_FILE_INSERT 1" >>confdefs.h
23995
23996       fi
23997    fi
23998
23999    if test x$ac_cv_lib_pq_PQisthreadsafe != xyes -a x$support_batch_insert = xyes
24000    then
24001       echo "WARNING: Your PostgreSQL client library is too old to detect "
24002       echo "if it was compiled with --enable-thread-safety, consider to "
24003       echo "upgrade it in order to avoid problems with Batch insert mode"
24004       echo
24005    fi
24006
24007       LIBS="${saved_LIBS}"
24008 fi
24009
24010 if test ! -z "$DBI_LIBS"; then
24011             DB_BACKENDS="${DB_BACKENDS} ${DB_PROG}"
24012
24013             if test $DB_PROG = postgresql; then
24014       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PQisthreadsafe in -lpq" >&5
24015 $as_echo_n "checking for PQisthreadsafe in -lpq... " >&6; }
24016 if test "${ac_cv_lib_pq_PQisthreadsafe+set}" = set; then :
24017   $as_echo_n "(cached) " >&6
24018 else
24019   ac_check_lib_save_LIBS=$LIBS
24020 LIBS="-lpq  $LIBS"
24021 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24022 /* end confdefs.h.  */
24023
24024 /* Override any GCC internal prototype to avoid an error.
24025    Use char because int might match the return type of a GCC
24026    builtin and then its argument prototype would still apply.  */
24027 #ifdef __cplusplus
24028 extern "C"
24029 #endif
24030 char PQisthreadsafe ();
24031 int
24032 main ()
24033 {
24034 return PQisthreadsafe ();
24035   ;
24036   return 0;
24037 }
24038 _ACEOF
24039 if ac_fn_c_try_link "$LINENO"; then :
24040   ac_cv_lib_pq_PQisthreadsafe=yes
24041 else
24042   ac_cv_lib_pq_PQisthreadsafe=no
24043 fi
24044 rm -f core conftest.err conftest.$ac_objext \
24045     conftest$ac_exeext conftest.$ac_ext
24046 LIBS=$ac_check_lib_save_LIBS
24047 fi
24048 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pq_PQisthreadsafe" >&5
24049 $as_echo "$ac_cv_lib_pq_PQisthreadsafe" >&6; }
24050 if test "x$ac_cv_lib_pq_PQisthreadsafe" = x""yes; then :
24051   $as_echo "#define HAVE_PQISTHREADSAFE 1" >>confdefs.h
24052
24053 fi
24054
24055       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PQputCopyData in -lpq" >&5
24056 $as_echo_n "checking for PQputCopyData in -lpq... " >&6; }
24057 if test "${ac_cv_lib_pq_PQputCopyData+set}" = set; then :
24058   $as_echo_n "(cached) " >&6
24059 else
24060   ac_check_lib_save_LIBS=$LIBS
24061 LIBS="-lpq  $LIBS"
24062 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24063 /* end confdefs.h.  */
24064
24065 /* Override any GCC internal prototype to avoid an error.
24066    Use char because int might match the return type of a GCC
24067    builtin and then its argument prototype would still apply.  */
24068 #ifdef __cplusplus
24069 extern "C"
24070 #endif
24071 char PQputCopyData ();
24072 int
24073 main ()
24074 {
24075 return PQputCopyData ();
24076   ;
24077   return 0;
24078 }
24079 _ACEOF
24080 if ac_fn_c_try_link "$LINENO"; then :
24081   ac_cv_lib_pq_PQputCopyData=yes
24082 else
24083   ac_cv_lib_pq_PQputCopyData=no
24084 fi
24085 rm -f core conftest.err conftest.$ac_objext \
24086     conftest$ac_exeext conftest.$ac_ext
24087 LIBS=$ac_check_lib_save_LIBS
24088 fi
24089 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pq_PQputCopyData" >&5
24090 $as_echo "$ac_cv_lib_pq_PQputCopyData" >&6; }
24091 if test "x$ac_cv_lib_pq_PQputCopyData" = x""yes; then :
24092   $as_echo "#define HAVE_PQ_COPY 1" >>confdefs.h
24093
24094 fi
24095
24096       test "x$ac_cv_lib_pq_PQputCopyData" = "xyes"
24097       pkg=$?
24098       if test $pkg = 0; then
24099          if test $support_batch_insert = yes ; then
24100
24101 $as_echo "#define HAVE_DBI_BATCH_FILE_INSERT 1" >>confdefs.h
24102
24103          fi
24104       fi
24105    fi
24106 else
24107             uncomment_dbi="#"
24108 fi
24109
24110
24111
24112 $as_echo "#define PROTOTYPES 1" >>confdefs.h
24113
24114
24115 if test -z "$CFLAGS" -o "$CFLAGS" = "-g -O2"; then
24116    if test -z "$CCOPTS"; then
24117       CCOPTS='-g -O2 -Wall'
24118    fi
24119    CFLAGS="$CCOPTS"
24120 fi
24121
24122
24123
24124 largefile_support="no"
24125
24126    # Check whether --enable-largefile was given.
24127 if test "${enable_largefile+set}" = set; then :
24128   enableval=$enable_largefile;
24129 fi
24130
24131    if test "$enable_largefile" != no; then
24132      if test -n "$ac_tool_prefix"; then
24133   # Extract the first word of "${ac_tool_prefix}getconf", so it can be a program name with args.
24134 set dummy ${ac_tool_prefix}getconf; ac_word=$2
24135 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
24136 $as_echo_n "checking for $ac_word... " >&6; }
24137 if test "${ac_cv_prog_GETCONF+set}" = set; then :
24138   $as_echo_n "(cached) " >&6
24139 else
24140   if test -n "$GETCONF"; then
24141   ac_cv_prog_GETCONF="$GETCONF" # Let the user override the test.
24142 else
24143 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24144 for as_dir in $PATH
24145 do
24146   IFS=$as_save_IFS
24147   test -z "$as_dir" && as_dir=.
24148     for ac_exec_ext in '' $ac_executable_extensions; do
24149   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
24150     ac_cv_prog_GETCONF="${ac_tool_prefix}getconf"
24151     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
24152     break 2
24153   fi
24154 done
24155   done
24156 IFS=$as_save_IFS
24157
24158 fi
24159 fi
24160 GETCONF=$ac_cv_prog_GETCONF
24161 if test -n "$GETCONF"; then
24162   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GETCONF" >&5
24163 $as_echo "$GETCONF" >&6; }
24164 else
24165   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24166 $as_echo "no" >&6; }
24167 fi
24168
24169
24170 fi
24171 if test -z "$ac_cv_prog_GETCONF"; then
24172   ac_ct_GETCONF=$GETCONF
24173   # Extract the first word of "getconf", so it can be a program name with args.
24174 set dummy getconf; ac_word=$2
24175 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
24176 $as_echo_n "checking for $ac_word... " >&6; }
24177 if test "${ac_cv_prog_ac_ct_GETCONF+set}" = set; then :
24178   $as_echo_n "(cached) " >&6
24179 else
24180   if test -n "$ac_ct_GETCONF"; then
24181   ac_cv_prog_ac_ct_GETCONF="$ac_ct_GETCONF" # Let the user override the test.
24182 else
24183 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24184 for as_dir in $PATH
24185 do
24186   IFS=$as_save_IFS
24187   test -z "$as_dir" && as_dir=.
24188     for ac_exec_ext in '' $ac_executable_extensions; do
24189   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
24190     ac_cv_prog_ac_ct_GETCONF="getconf"
24191     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
24192     break 2
24193   fi
24194 done
24195   done
24196 IFS=$as_save_IFS
24197
24198 fi
24199 fi
24200 ac_ct_GETCONF=$ac_cv_prog_ac_ct_GETCONF
24201 if test -n "$ac_ct_GETCONF"; then
24202   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GETCONF" >&5
24203 $as_echo "$ac_ct_GETCONF" >&6; }
24204 else
24205   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24206 $as_echo "no" >&6; }
24207 fi
24208
24209   if test "x$ac_ct_GETCONF" = x; then
24210     GETCONF=""
24211   else
24212     case $cross_compiling:$ac_tool_warned in
24213 yes:)
24214 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
24215 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
24216 ac_tool_warned=yes ;;
24217 esac
24218     GETCONF=$ac_ct_GETCONF
24219   fi
24220 else
24221   GETCONF="$ac_cv_prog_GETCONF"
24222 fi
24223
24224      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFLAGS value to request large file support" >&5
24225 $as_echo_n "checking for CFLAGS value to request large file support... " >&6; }
24226 if test "${ac_cv_sys_largefile_CFLAGS+set}" = set; then :
24227   $as_echo_n "(cached) " >&6
24228 else
24229   ac_cv_sys_largefile_CFLAGS=`($GETCONF LFS_CFLAGS) 2>/dev/null` || {
24230         ac_cv_sys_largefile_CFLAGS=no
24231         case "$host_os" in
24232            # IRIX 6.2 and later require cc -n32.
24233            irix6.[2-9]* | irix6.1[0-9]* | irix[7-9].* | irix[1-9][0-9]*)
24234              if test "$GCC" != yes; then
24235                ac_cv_sys_largefile_CFLAGS=-n32
24236              fi
24237              ac_save_CC="$CC"
24238              CC="$CC $ac_cv_sys_largefile_CFLAGS"
24239              cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24240 /* end confdefs.h.  */
24241
24242 int
24243 main ()
24244 {
24245
24246   ;
24247   return 0;
24248 }
24249 _ACEOF
24250 if ac_fn_c_try_link "$LINENO"; then :
24251
24252 else
24253   ac_cv_sys_largefile_CFLAGS=no
24254 fi
24255 rm -f core conftest.err conftest.$ac_objext \
24256     conftest$ac_exeext conftest.$ac_ext
24257              CC="$ac_save_CC"
24258            esac
24259       }
24260 fi
24261 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CFLAGS" >&5
24262 $as_echo "$ac_cv_sys_largefile_CFLAGS" >&6; }
24263      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LDFLAGS value to request large file support" >&5
24264 $as_echo_n "checking for LDFLAGS value to request large file support... " >&6; }
24265 if test "${ac_cv_sys_largefile_LDFLAGS+set}" = set; then :
24266   $as_echo_n "(cached) " >&6
24267 else
24268   ac_cv_sys_largefile_LDFLAGS=`($GETCONF LFS_LDFLAGS) 2>/dev/null` || {
24269         ac_cv_sys_largefile_LDFLAGS=no
24270
24271       }
24272 fi
24273 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_LDFLAGS" >&5
24274 $as_echo "$ac_cv_sys_largefile_LDFLAGS" >&6; }
24275      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LIBS value to request large file support" >&5
24276 $as_echo_n "checking for LIBS value to request large file support... " >&6; }
24277 if test "${ac_cv_sys_largefile_LIBS+set}" = set; then :
24278   $as_echo_n "(cached) " >&6
24279 else
24280   ac_cv_sys_largefile_LIBS=`($GETCONF LFS_LIBS) 2>/dev/null` || {
24281         ac_cv_sys_largefile_LIBS=no
24282
24283       }
24284 fi
24285 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_LIBS" >&5
24286 $as_echo "$ac_cv_sys_largefile_LIBS" >&6; }
24287
24288      for ac_flag in $ac_cv_sys_largefile_CFLAGS no; do
24289        case "$ac_flag" in
24290        no) ;;
24291        -D_FILE_OFFSET_BITS=*) ;;
24292        -D_LARGEFILE_SOURCE | -D_LARGEFILE_SOURCE=*) ;;
24293        -D_LARGE_FILES | -D_LARGE_FILES=*) ;;
24294        -D?* | -I?*)
24295          case "$ac_flag" in
24296    no) ;;
24297    ?*)
24298      case "$CPPFLAGS" in
24299      '') CPPFLAGS="$ac_flag" ;;
24300      *) CPPFLAGS=$CPPFLAGS' '"$ac_flag" ;;
24301      esac ;;
24302    esac ;;
24303        *)
24304          case "$ac_flag" in
24305    no) ;;
24306    ?*)
24307      case "$CFLAGS" in
24308      '') CFLAGS="$ac_flag" ;;
24309      *) CFLAGS=$CFLAGS' '"$ac_flag" ;;
24310      esac ;;
24311    esac ;;
24312        esac
24313      done
24314      case "$ac_cv_sys_largefile_LDFLAGS" in
24315    no) ;;
24316    ?*)
24317      case "$LDFLAGS" in
24318      '') LDFLAGS="$ac_cv_sys_largefile_LDFLAGS" ;;
24319      *) LDFLAGS=$LDFLAGS' '"$ac_cv_sys_largefile_LDFLAGS" ;;
24320      esac ;;
24321    esac
24322      case "$ac_cv_sys_largefile_LIBS" in
24323    no) ;;
24324    ?*)
24325      case "$LIBS" in
24326      '') LIBS="$ac_cv_sys_largefile_LIBS" ;;
24327      *) LIBS=$LIBS' '"$ac_cv_sys_largefile_LIBS" ;;
24328      esac ;;
24329    esac
24330      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS" >&5
24331 $as_echo_n "checking for _FILE_OFFSET_BITS... " >&6; }
24332 if test "${ac_cv_sys_file_offset_bits+set}" = set; then :
24333   $as_echo_n "(cached) " >&6
24334 else
24335   ac_cv_sys_file_offset_bits=no
24336       ac_cv_sys_file_offset_bits=64
24337       for ac_flag in $ac_cv_sys_largefile_CFLAGS no; do
24338         case "$ac_flag" in
24339         -D_FILE_OFFSET_BITS)
24340           ac_cv_sys_file_offset_bits=1 ;;
24341         -D_FILE_OFFSET_BITS=*)
24342           ac_cv_sys_file_offset_bits=`expr " $ac_flag" : '[^=]*=\(.*\)'` ;;
24343         esac
24344       done
24345
24346 fi
24347 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
24348 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
24349    if test "$ac_cv_sys_file_offset_bits" != no; then
24350
24351 cat >>confdefs.h <<_ACEOF
24352 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
24353 _ACEOF
24354
24355    fi
24356      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGEFILE_SOURCE" >&5
24357 $as_echo_n "checking for _LARGEFILE_SOURCE... " >&6; }
24358 if test "${ac_cv_sys_largefile_source+set}" = set; then :
24359   $as_echo_n "(cached) " >&6
24360 else
24361   ac_cv_sys_largefile_source=no
24362       ac_cv_sys_largefile_source=1
24363       for ac_flag in $ac_cv_sys_largefile_CFLAGS no; do
24364         case "$ac_flag" in
24365         -D_LARGEFILE_SOURCE)
24366           ac_cv_sys_largefile_source=1 ;;
24367         -D_LARGEFILE_SOURCE=*)
24368           ac_cv_sys_largefile_source=`expr " $ac_flag" : '[^=]*=\(.*\)'` ;;
24369         esac
24370       done
24371
24372 fi
24373 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_source" >&5
24374 $as_echo "$ac_cv_sys_largefile_source" >&6; }
24375    if test "$ac_cv_sys_largefile_source" != no; then
24376
24377 cat >>confdefs.h <<_ACEOF
24378 #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
24379 _ACEOF
24380
24381    fi
24382      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES" >&5
24383 $as_echo_n "checking for _LARGE_FILES... " >&6; }
24384 if test "${ac_cv_sys_large_files+set}" = set; then :
24385   $as_echo_n "(cached) " >&6
24386 else
24387   ac_cv_sys_large_files=no
24388       ac_cv_sys_large_files=1
24389       for ac_flag in $ac_cv_sys_largefile_CFLAGS no; do
24390         case "$ac_flag" in
24391         -D_LARGE_FILES)
24392           ac_cv_sys_large_files=1 ;;
24393         -D_LARGE_FILES=*)
24394           ac_cv_sys_large_files=`expr " $ac_flag" : '[^=]*=\(.*\)'` ;;
24395         esac
24396       done
24397
24398 fi
24399 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
24400 $as_echo "$ac_cv_sys_large_files" >&6; }
24401    if test "$ac_cv_sys_large_files" != no; then
24402
24403 cat >>confdefs.h <<_ACEOF
24404 #define _LARGE_FILES $ac_cv_sys_large_files
24405 _ACEOF
24406
24407    fi
24408    fi
24409
24410
24411 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for X" >&5
24412 $as_echo_n "checking for X... " >&6; }
24413
24414
24415 # Check whether --with-x was given.
24416 if test "${with_x+set}" = set; then :
24417   withval=$with_x;
24418 fi
24419
24420 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
24421 if test "x$with_x" = xno; then
24422   # The user explicitly disabled X.
24423   have_x=disabled
24424 else
24425   case $x_includes,$x_libraries in #(
24426     *\'*) as_fn_error "cannot use X directory names containing '" "$LINENO" 5;; #(
24427     *,NONE | NONE,*) if test "${ac_cv_have_x+set}" = set; then :
24428   $as_echo_n "(cached) " >&6
24429 else
24430   # One or both of the vars are not set, and there is no cached value.
24431 ac_x_includes=no ac_x_libraries=no
24432 rm -f -r conftest.dir
24433 if mkdir conftest.dir; then
24434   cd conftest.dir
24435   cat >Imakefile <<'_ACEOF'
24436 incroot:
24437         @echo incroot='${INCROOT}'
24438 usrlibdir:
24439         @echo usrlibdir='${USRLIBDIR}'
24440 libdir:
24441         @echo libdir='${LIBDIR}'
24442 _ACEOF
24443   if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
24444     # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
24445     for ac_var in incroot usrlibdir libdir; do
24446       eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
24447     done
24448     # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
24449     for ac_extension in a so sl dylib la dll; do
24450       if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
24451          test -f "$ac_im_libdir/libX11.$ac_extension"; then
24452         ac_im_usrlibdir=$ac_im_libdir; break
24453       fi
24454     done
24455     # Screen out bogus values from the imake configuration.  They are
24456     # bogus both because they are the default anyway, and because
24457     # using them would break gcc on systems where it needs fixed includes.
24458     case $ac_im_incroot in
24459         /usr/include) ac_x_includes= ;;
24460         *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
24461     esac
24462     case $ac_im_usrlibdir in
24463         /usr/lib | /usr/lib64 | /lib | /lib64) ;;
24464         *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
24465     esac
24466   fi
24467   cd ..
24468   rm -f -r conftest.dir
24469 fi
24470
24471 # Standard set of common directories for X headers.
24472 # Check X11 before X11Rn because it is often a symlink to the current release.
24473 ac_x_header_dirs='
24474 /usr/X11/include
24475 /usr/X11R7/include
24476 /usr/X11R6/include
24477 /usr/X11R5/include
24478 /usr/X11R4/include
24479
24480 /usr/include/X11
24481 /usr/include/X11R7
24482 /usr/include/X11R6
24483 /usr/include/X11R5
24484 /usr/include/X11R4
24485
24486 /usr/local/X11/include
24487 /usr/local/X11R7/include
24488 /usr/local/X11R6/include
24489 /usr/local/X11R5/include
24490 /usr/local/X11R4/include
24491
24492 /usr/local/include/X11
24493 /usr/local/include/X11R7
24494 /usr/local/include/X11R6
24495 /usr/local/include/X11R5
24496 /usr/local/include/X11R4
24497
24498 /usr/X386/include
24499 /usr/x386/include
24500 /usr/XFree86/include/X11
24501
24502 /usr/include
24503 /usr/local/include
24504 /usr/unsupported/include
24505 /usr/athena/include
24506 /usr/local/x11r5/include
24507 /usr/lpp/Xamples/include
24508
24509 /usr/openwin/include
24510 /usr/openwin/share/include'
24511
24512 if test "$ac_x_includes" = no; then
24513   # Guess where to find include files, by looking for Xlib.h.
24514   # First, try using that file with no special directory specified.
24515   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24516 /* end confdefs.h.  */
24517 #include <X11/Xlib.h>
24518 _ACEOF
24519 if ac_fn_c_try_cpp "$LINENO"; then :
24520   # We can compile using X headers with no special include directory.
24521 ac_x_includes=
24522 else
24523   for ac_dir in $ac_x_header_dirs; do
24524   if test -r "$ac_dir/X11/Xlib.h"; then
24525     ac_x_includes=$ac_dir
24526     break
24527   fi
24528 done
24529 fi
24530 rm -f conftest.err conftest.$ac_ext
24531 fi # $ac_x_includes = no
24532
24533 if test "$ac_x_libraries" = no; then
24534   # Check for the libraries.
24535   # See if we find them without any special options.
24536   # Don't add to $LIBS permanently.
24537   ac_save_LIBS=$LIBS
24538   LIBS="-lX11 $LIBS"
24539   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24540 /* end confdefs.h.  */
24541 #include <X11/Xlib.h>
24542 int
24543 main ()
24544 {
24545 XrmInitialize ()
24546   ;
24547   return 0;
24548 }
24549 _ACEOF
24550 if ac_fn_c_try_link "$LINENO"; then :
24551   LIBS=$ac_save_LIBS
24552 # We can link X programs with no special library path.
24553 ac_x_libraries=
24554 else
24555   LIBS=$ac_save_LIBS
24556 for ac_dir in `$as_echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
24557 do
24558   # Don't even attempt the hair of trying to link an X program!
24559   for ac_extension in a so sl dylib la dll; do
24560     if test -r "$ac_dir/libX11.$ac_extension"; then
24561       ac_x_libraries=$ac_dir
24562       break 2
24563     fi
24564   done
24565 done
24566 fi
24567 rm -f core conftest.err conftest.$ac_objext \
24568     conftest$ac_exeext conftest.$ac_ext
24569 fi # $ac_x_libraries = no
24570
24571 case $ac_x_includes,$ac_x_libraries in #(
24572   no,* | *,no | *\'*)
24573     # Didn't find X, or a directory has "'" in its name.
24574     ac_cv_have_x="have_x=no";; #(
24575   *)
24576     # Record where we found X for the cache.
24577     ac_cv_have_x="have_x=yes\
24578         ac_x_includes='$ac_x_includes'\
24579         ac_x_libraries='$ac_x_libraries'"
24580 esac
24581 fi
24582 ;; #(
24583     *) have_x=yes;;
24584   esac
24585   eval "$ac_cv_have_x"
24586 fi # $with_x != no
24587
24588 if test "$have_x" != yes; then
24589   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_x" >&5
24590 $as_echo "$have_x" >&6; }
24591   no_x=yes
24592 else
24593   # If each of the values was on the command line, it overrides each guess.
24594   test "x$x_includes" = xNONE && x_includes=$ac_x_includes
24595   test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
24596   # Update the cache value to reflect the command line values.
24597   ac_cv_have_x="have_x=yes\
24598         ac_x_includes='$x_includes'\
24599         ac_x_libraries='$x_libraries'"
24600   { $as_echo "$as_me:${as_lineno-$LINENO}: result: libraries $x_libraries, headers $x_includes" >&5
24601 $as_echo "libraries $x_libraries, headers $x_includes" >&6; }
24602 fi
24603
24604 if test "$no_x" = yes; then
24605   # Not all programs may use this symbol, but it does not hurt to define it.
24606
24607 $as_echo "#define X_DISPLAY_MISSING 1" >>confdefs.h
24608
24609   X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
24610 else
24611   if test -n "$x_includes"; then
24612     X_CFLAGS="$X_CFLAGS -I$x_includes"
24613   fi
24614
24615   # It would also be nice to do this for all -L options, not just this one.
24616   if test -n "$x_libraries"; then
24617     X_LIBS="$X_LIBS -L$x_libraries"
24618     # For Solaris; some versions of Sun CC require a space after -R and
24619     # others require no space.  Words are not sufficient . . . .
24620     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -R must be followed by a space" >&5
24621 $as_echo_n "checking whether -R must be followed by a space... " >&6; }
24622     ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
24623     ac_xsave_c_werror_flag=$ac_c_werror_flag
24624     ac_c_werror_flag=yes
24625     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24626 /* end confdefs.h.  */
24627
24628 int
24629 main ()
24630 {
24631
24632   ;
24633   return 0;
24634 }
24635 _ACEOF
24636 if ac_fn_c_try_link "$LINENO"; then :
24637   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24638 $as_echo "no" >&6; }
24639        X_LIBS="$X_LIBS -R$x_libraries"
24640 else
24641   LIBS="$ac_xsave_LIBS -R $x_libraries"
24642        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24643 /* end confdefs.h.  */
24644
24645 int
24646 main ()
24647 {
24648
24649   ;
24650   return 0;
24651 }
24652 _ACEOF
24653 if ac_fn_c_try_link "$LINENO"; then :
24654   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
24655 $as_echo "yes" >&6; }
24656           X_LIBS="$X_LIBS -R $x_libraries"
24657 else
24658   { $as_echo "$as_me:${as_lineno-$LINENO}: result: neither works" >&5
24659 $as_echo "neither works" >&6; }
24660 fi
24661 rm -f core conftest.err conftest.$ac_objext \
24662     conftest$ac_exeext conftest.$ac_ext
24663 fi
24664 rm -f core conftest.err conftest.$ac_objext \
24665     conftest$ac_exeext conftest.$ac_ext
24666     ac_c_werror_flag=$ac_xsave_c_werror_flag
24667     LIBS=$ac_xsave_LIBS
24668   fi
24669
24670   # Check for system-dependent libraries X programs must link with.
24671   # Do this before checking for the system-independent R6 libraries
24672   # (-lICE), since we may need -lsocket or whatever for X linking.
24673
24674   if test "$ISC" = yes; then
24675     X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
24676   else
24677     # Martyn Johnson says this is needed for Ultrix, if the X
24678     # libraries were built with DECnet support.  And Karl Berry says
24679     # the Alpha needs dnet_stub (dnet does not exist).
24680     ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
24681     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24682 /* end confdefs.h.  */
24683
24684 /* Override any GCC internal prototype to avoid an error.
24685    Use char because int might match the return type of a GCC
24686    builtin and then its argument prototype would still apply.  */
24687 #ifdef __cplusplus
24688 extern "C"
24689 #endif
24690 char XOpenDisplay ();
24691 int
24692 main ()
24693 {
24694 return XOpenDisplay ();
24695   ;
24696   return 0;
24697 }
24698 _ACEOF
24699 if ac_fn_c_try_link "$LINENO"; then :
24700
24701 else
24702   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet" >&5
24703 $as_echo_n "checking for dnet_ntoa in -ldnet... " >&6; }
24704 if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then :
24705   $as_echo_n "(cached) " >&6
24706 else
24707   ac_check_lib_save_LIBS=$LIBS
24708 LIBS="-ldnet  $LIBS"
24709 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24710 /* end confdefs.h.  */
24711
24712 /* Override any GCC internal prototype to avoid an error.
24713    Use char because int might match the return type of a GCC
24714    builtin and then its argument prototype would still apply.  */
24715 #ifdef __cplusplus
24716 extern "C"
24717 #endif
24718 char dnet_ntoa ();
24719 int
24720 main ()
24721 {
24722 return dnet_ntoa ();
24723   ;
24724   return 0;
24725 }
24726 _ACEOF
24727 if ac_fn_c_try_link "$LINENO"; then :
24728   ac_cv_lib_dnet_dnet_ntoa=yes
24729 else
24730   ac_cv_lib_dnet_dnet_ntoa=no
24731 fi
24732 rm -f core conftest.err conftest.$ac_objext \
24733     conftest$ac_exeext conftest.$ac_ext
24734 LIBS=$ac_check_lib_save_LIBS
24735 fi
24736 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
24737 $as_echo "$ac_cv_lib_dnet_dnet_ntoa" >&6; }
24738 if test "x$ac_cv_lib_dnet_dnet_ntoa" = x""yes; then :
24739   X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
24740 fi
24741
24742     if test $ac_cv_lib_dnet_dnet_ntoa = no; then
24743       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet_stub" >&5
24744 $as_echo_n "checking for dnet_ntoa in -ldnet_stub... " >&6; }
24745 if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then :
24746   $as_echo_n "(cached) " >&6
24747 else
24748   ac_check_lib_save_LIBS=$LIBS
24749 LIBS="-ldnet_stub  $LIBS"
24750 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24751 /* end confdefs.h.  */
24752
24753 /* Override any GCC internal prototype to avoid an error.
24754    Use char because int might match the return type of a GCC
24755    builtin and then its argument prototype would still apply.  */
24756 #ifdef __cplusplus
24757 extern "C"
24758 #endif
24759 char dnet_ntoa ();
24760 int
24761 main ()
24762 {
24763 return dnet_ntoa ();
24764   ;
24765   return 0;
24766 }
24767 _ACEOF
24768 if ac_fn_c_try_link "$LINENO"; then :
24769   ac_cv_lib_dnet_stub_dnet_ntoa=yes
24770 else
24771   ac_cv_lib_dnet_stub_dnet_ntoa=no
24772 fi
24773 rm -f core conftest.err conftest.$ac_objext \
24774     conftest$ac_exeext conftest.$ac_ext
24775 LIBS=$ac_check_lib_save_LIBS
24776 fi
24777 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
24778 $as_echo "$ac_cv_lib_dnet_stub_dnet_ntoa" >&6; }
24779 if test "x$ac_cv_lib_dnet_stub_dnet_ntoa" = x""yes; then :
24780   X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
24781 fi
24782
24783     fi
24784 fi
24785 rm -f core conftest.err conftest.$ac_objext \
24786     conftest$ac_exeext conftest.$ac_ext
24787     LIBS="$ac_xsave_LIBS"
24788
24789     # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
24790     # to get the SysV transport functions.
24791     # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
24792     # needs -lnsl.
24793     # The nsl library prevents programs from opening the X display
24794     # on Irix 5.2, according to T.E. Dickey.
24795     # The functions gethostbyname, getservbyname, and inet_addr are
24796     # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
24797     ac_fn_c_check_func "$LINENO" "gethostbyname" "ac_cv_func_gethostbyname"
24798 if test "x$ac_cv_func_gethostbyname" = x""yes; then :
24799
24800 fi
24801
24802     if test $ac_cv_func_gethostbyname = no; then
24803       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lnsl" >&5
24804 $as_echo_n "checking for gethostbyname in -lnsl... " >&6; }
24805 if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then :
24806   $as_echo_n "(cached) " >&6
24807 else
24808   ac_check_lib_save_LIBS=$LIBS
24809 LIBS="-lnsl  $LIBS"
24810 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24811 /* end confdefs.h.  */
24812
24813 /* Override any GCC internal prototype to avoid an error.
24814    Use char because int might match the return type of a GCC
24815    builtin and then its argument prototype would still apply.  */
24816 #ifdef __cplusplus
24817 extern "C"
24818 #endif
24819 char gethostbyname ();
24820 int
24821 main ()
24822 {
24823 return gethostbyname ();
24824   ;
24825   return 0;
24826 }
24827 _ACEOF
24828 if ac_fn_c_try_link "$LINENO"; then :
24829   ac_cv_lib_nsl_gethostbyname=yes
24830 else
24831   ac_cv_lib_nsl_gethostbyname=no
24832 fi
24833 rm -f core conftest.err conftest.$ac_objext \
24834     conftest$ac_exeext conftest.$ac_ext
24835 LIBS=$ac_check_lib_save_LIBS
24836 fi
24837 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_gethostbyname" >&5
24838 $as_echo "$ac_cv_lib_nsl_gethostbyname" >&6; }
24839 if test "x$ac_cv_lib_nsl_gethostbyname" = x""yes; then :
24840   X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
24841 fi
24842
24843       if test $ac_cv_lib_nsl_gethostbyname = no; then
24844         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lbsd" >&5
24845 $as_echo_n "checking for gethostbyname in -lbsd... " >&6; }
24846 if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then :
24847   $as_echo_n "(cached) " >&6
24848 else
24849   ac_check_lib_save_LIBS=$LIBS
24850 LIBS="-lbsd  $LIBS"
24851 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24852 /* end confdefs.h.  */
24853
24854 /* Override any GCC internal prototype to avoid an error.
24855    Use char because int might match the return type of a GCC
24856    builtin and then its argument prototype would still apply.  */
24857 #ifdef __cplusplus
24858 extern "C"
24859 #endif
24860 char gethostbyname ();
24861 int
24862 main ()
24863 {
24864 return gethostbyname ();
24865   ;
24866   return 0;
24867 }
24868 _ACEOF
24869 if ac_fn_c_try_link "$LINENO"; then :
24870   ac_cv_lib_bsd_gethostbyname=yes
24871 else
24872   ac_cv_lib_bsd_gethostbyname=no
24873 fi
24874 rm -f core conftest.err conftest.$ac_objext \
24875     conftest$ac_exeext conftest.$ac_ext
24876 LIBS=$ac_check_lib_save_LIBS
24877 fi
24878 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bsd_gethostbyname" >&5
24879 $as_echo "$ac_cv_lib_bsd_gethostbyname" >&6; }
24880 if test "x$ac_cv_lib_bsd_gethostbyname" = x""yes; then :
24881   X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
24882 fi
24883
24884       fi
24885     fi
24886
24887     # lieder@skyler.mavd.honeywell.com says without -lsocket,
24888     # socket/setsockopt and other routines are undefined under SCO ODT
24889     # 2.0.  But -lsocket is broken on IRIX 5.2 (and is not necessary
24890     # on later versions), says Simon Leinen: it contains gethostby*
24891     # variants that don't use the name server (or something).  -lsocket
24892     # must be given before -lnsl if both are needed.  We assume that
24893     # if connect needs -lnsl, so does gethostbyname.
24894     ac_fn_c_check_func "$LINENO" "connect" "ac_cv_func_connect"
24895 if test "x$ac_cv_func_connect" = x""yes; then :
24896
24897 fi
24898
24899     if test $ac_cv_func_connect = no; then
24900       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for connect in -lsocket" >&5
24901 $as_echo_n "checking for connect in -lsocket... " >&6; }
24902 if test "${ac_cv_lib_socket_connect+set}" = set; then :
24903   $as_echo_n "(cached) " >&6
24904 else
24905   ac_check_lib_save_LIBS=$LIBS
24906 LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
24907 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24908 /* end confdefs.h.  */
24909
24910 /* Override any GCC internal prototype to avoid an error.
24911    Use char because int might match the return type of a GCC
24912    builtin and then its argument prototype would still apply.  */
24913 #ifdef __cplusplus
24914 extern "C"
24915 #endif
24916 char connect ();
24917 int
24918 main ()
24919 {
24920 return connect ();
24921   ;
24922   return 0;
24923 }
24924 _ACEOF
24925 if ac_fn_c_try_link "$LINENO"; then :
24926   ac_cv_lib_socket_connect=yes
24927 else
24928   ac_cv_lib_socket_connect=no
24929 fi
24930 rm -f core conftest.err conftest.$ac_objext \
24931     conftest$ac_exeext conftest.$ac_ext
24932 LIBS=$ac_check_lib_save_LIBS
24933 fi
24934 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_connect" >&5
24935 $as_echo "$ac_cv_lib_socket_connect" >&6; }
24936 if test "x$ac_cv_lib_socket_connect" = x""yes; then :
24937   X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
24938 fi
24939
24940     fi
24941
24942     # Guillermo Gomez says -lposix is necessary on A/UX.
24943     ac_fn_c_check_func "$LINENO" "remove" "ac_cv_func_remove"
24944 if test "x$ac_cv_func_remove" = x""yes; then :
24945
24946 fi
24947
24948     if test $ac_cv_func_remove = no; then
24949       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for remove in -lposix" >&5
24950 $as_echo_n "checking for remove in -lposix... " >&6; }
24951 if test "${ac_cv_lib_posix_remove+set}" = set; then :
24952   $as_echo_n "(cached) " >&6
24953 else
24954   ac_check_lib_save_LIBS=$LIBS
24955 LIBS="-lposix  $LIBS"
24956 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24957 /* end confdefs.h.  */
24958
24959 /* Override any GCC internal prototype to avoid an error.
24960    Use char because int might match the return type of a GCC
24961    builtin and then its argument prototype would still apply.  */
24962 #ifdef __cplusplus
24963 extern "C"
24964 #endif
24965 char remove ();
24966 int
24967 main ()
24968 {
24969 return remove ();
24970   ;
24971   return 0;
24972 }
24973 _ACEOF
24974 if ac_fn_c_try_link "$LINENO"; then :
24975   ac_cv_lib_posix_remove=yes
24976 else
24977   ac_cv_lib_posix_remove=no
24978 fi
24979 rm -f core conftest.err conftest.$ac_objext \
24980     conftest$ac_exeext conftest.$ac_ext
24981 LIBS=$ac_check_lib_save_LIBS
24982 fi
24983 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_posix_remove" >&5
24984 $as_echo "$ac_cv_lib_posix_remove" >&6; }
24985 if test "x$ac_cv_lib_posix_remove" = x""yes; then :
24986   X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
24987 fi
24988
24989     fi
24990
24991     # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
24992     ac_fn_c_check_func "$LINENO" "shmat" "ac_cv_func_shmat"
24993 if test "x$ac_cv_func_shmat" = x""yes; then :
24994
24995 fi
24996
24997     if test $ac_cv_func_shmat = no; then
24998       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shmat in -lipc" >&5
24999 $as_echo_n "checking for shmat in -lipc... " >&6; }
25000 if test "${ac_cv_lib_ipc_shmat+set}" = set; then :
25001   $as_echo_n "(cached) " >&6
25002 else
25003   ac_check_lib_save_LIBS=$LIBS
25004 LIBS="-lipc  $LIBS"
25005 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25006 /* end confdefs.h.  */
25007
25008 /* Override any GCC internal prototype to avoid an error.
25009    Use char because int might match the return type of a GCC
25010    builtin and then its argument prototype would still apply.  */
25011 #ifdef __cplusplus
25012 extern "C"
25013 #endif
25014 char shmat ();
25015 int
25016 main ()
25017 {
25018 return shmat ();
25019   ;
25020   return 0;
25021 }
25022 _ACEOF
25023 if ac_fn_c_try_link "$LINENO"; then :
25024   ac_cv_lib_ipc_shmat=yes
25025 else
25026   ac_cv_lib_ipc_shmat=no
25027 fi
25028 rm -f core conftest.err conftest.$ac_objext \
25029     conftest$ac_exeext conftest.$ac_ext
25030 LIBS=$ac_check_lib_save_LIBS
25031 fi
25032 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ipc_shmat" >&5
25033 $as_echo "$ac_cv_lib_ipc_shmat" >&6; }
25034 if test "x$ac_cv_lib_ipc_shmat" = x""yes; then :
25035   X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
25036 fi
25037
25038     fi
25039   fi
25040
25041   # Check for libraries that X11R6 Xt/Xaw programs need.
25042   ac_save_LDFLAGS=$LDFLAGS
25043   test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
25044   # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
25045   # check for ICE first), but we must link in the order -lSM -lICE or
25046   # we get undefined symbols.  So assume we have SM if we have ICE.
25047   # These have to be linked with before -lX11, unlike the other
25048   # libraries we check for below, so use a different variable.
25049   # John Interrante, Karl Berry
25050   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for IceConnectionNumber in -lICE" >&5
25051 $as_echo_n "checking for IceConnectionNumber in -lICE... " >&6; }
25052 if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then :
25053   $as_echo_n "(cached) " >&6
25054 else
25055   ac_check_lib_save_LIBS=$LIBS
25056 LIBS="-lICE $X_EXTRA_LIBS $LIBS"
25057 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25058 /* end confdefs.h.  */
25059
25060 /* Override any GCC internal prototype to avoid an error.
25061    Use char because int might match the return type of a GCC
25062    builtin and then its argument prototype would still apply.  */
25063 #ifdef __cplusplus
25064 extern "C"
25065 #endif
25066 char IceConnectionNumber ();
25067 int
25068 main ()
25069 {
25070 return IceConnectionNumber ();
25071   ;
25072   return 0;
25073 }
25074 _ACEOF
25075 if ac_fn_c_try_link "$LINENO"; then :
25076   ac_cv_lib_ICE_IceConnectionNumber=yes
25077 else
25078   ac_cv_lib_ICE_IceConnectionNumber=no
25079 fi
25080 rm -f core conftest.err conftest.$ac_objext \
25081     conftest$ac_exeext conftest.$ac_ext
25082 LIBS=$ac_check_lib_save_LIBS
25083 fi
25084 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
25085 $as_echo "$ac_cv_lib_ICE_IceConnectionNumber" >&6; }
25086 if test "x$ac_cv_lib_ICE_IceConnectionNumber" = x""yes; then :
25087   X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
25088 fi
25089
25090   LDFLAGS=$ac_save_LDFLAGS
25091
25092 fi
25093
25094
25095 for ac_header in \
25096    assert.h \
25097    fcntl.h \
25098    grp.h \
25099    pwd.h \
25100    libc.h \
25101    limits.h \
25102    stdarg.h \
25103    stdlib.h \
25104    stdint.h \
25105    string.h \
25106    strings.h \
25107    termios.h \
25108    termcap.h \
25109    term.h \
25110    unistd.h \
25111    sys/bitypes.h \
25112    sys/byteorder.h \
25113    sys/ioctl.h \
25114    sys/select.h \
25115    sys/socket.h \
25116    sys/sockio.h \
25117    sys/stat.h \
25118    sys/time.h \
25119    sys/types.h \
25120    arpa/nameser.h \
25121    mtio.h \
25122    sys/mtio.h \
25123    sys/tape.h \
25124    regex.h \
25125
25126 do :
25127   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
25128 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
25129 eval as_val=\$$as_ac_Header
25130    if test "x$as_val" = x""yes; then :
25131   cat >>confdefs.h <<_ACEOF
25132 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
25133 _ACEOF
25134
25135 fi
25136
25137 done
25138
25139 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
25140 $as_echo_n "checking for ANSI C header files... " >&6; }
25141 if test "${ac_cv_header_stdc+set}" = set; then :
25142   $as_echo_n "(cached) " >&6
25143 else
25144   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25145 /* end confdefs.h.  */
25146 #include <stdlib.h>
25147 #include <stdarg.h>
25148 #include <string.h>
25149 #include <float.h>
25150
25151 int
25152 main ()
25153 {
25154
25155   ;
25156   return 0;
25157 }
25158 _ACEOF
25159 if ac_fn_c_try_compile "$LINENO"; then :
25160   ac_cv_header_stdc=yes
25161 else
25162   ac_cv_header_stdc=no
25163 fi
25164 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25165
25166 if test $ac_cv_header_stdc = yes; then
25167   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
25168   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25169 /* end confdefs.h.  */
25170 #include <string.h>
25171
25172 _ACEOF
25173 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
25174   $EGREP "memchr" >/dev/null 2>&1; then :
25175
25176 else
25177   ac_cv_header_stdc=no
25178 fi
25179 rm -f conftest*
25180
25181 fi
25182
25183 if test $ac_cv_header_stdc = yes; then
25184   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
25185   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25186 /* end confdefs.h.  */
25187 #include <stdlib.h>
25188
25189 _ACEOF
25190 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
25191   $EGREP "free" >/dev/null 2>&1; then :
25192
25193 else
25194   ac_cv_header_stdc=no
25195 fi
25196 rm -f conftest*
25197
25198 fi
25199
25200 if test $ac_cv_header_stdc = yes; then
25201   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
25202   if test "$cross_compiling" = yes; then :
25203   :
25204 else
25205   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25206 /* end confdefs.h.  */
25207 #include <ctype.h>
25208 #include <stdlib.h>
25209 #if ((' ' & 0x0FF) == 0x020)
25210 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
25211 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
25212 #else
25213 # define ISLOWER(c) \
25214                    (('a' <= (c) && (c) <= 'i') \
25215                      || ('j' <= (c) && (c) <= 'r') \
25216                      || ('s' <= (c) && (c) <= 'z'))
25217 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
25218 #endif
25219
25220 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
25221 int
25222 main ()
25223 {
25224   int i;
25225   for (i = 0; i < 256; i++)
25226     if (XOR (islower (i), ISLOWER (i))
25227         || toupper (i) != TOUPPER (i))
25228       return 2;
25229   return 0;
25230 }
25231 _ACEOF
25232 if ac_fn_c_try_run "$LINENO"; then :
25233
25234 else
25235   ac_cv_header_stdc=no
25236 fi
25237 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
25238   conftest.$ac_objext conftest.beam conftest.$ac_ext
25239 fi
25240
25241 fi
25242 fi
25243 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
25244 $as_echo "$ac_cv_header_stdc" >&6; }
25245 if test $ac_cv_header_stdc = yes; then
25246
25247 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
25248
25249 fi
25250
25251 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether sys/types.h defines makedev" >&5
25252 $as_echo_n "checking whether sys/types.h defines makedev... " >&6; }
25253 if test "${ac_cv_header_sys_types_h_makedev+set}" = set; then :
25254   $as_echo_n "(cached) " >&6
25255 else
25256   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25257 /* end confdefs.h.  */
25258 #include <sys/types.h>
25259 int
25260 main ()
25261 {
25262 return makedev(0, 0);
25263   ;
25264   return 0;
25265 }
25266 _ACEOF
25267 if ac_fn_c_try_link "$LINENO"; then :
25268   ac_cv_header_sys_types_h_makedev=yes
25269 else
25270   ac_cv_header_sys_types_h_makedev=no
25271 fi
25272 rm -f core conftest.err conftest.$ac_objext \
25273     conftest$ac_exeext conftest.$ac_ext
25274
25275 fi
25276 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_types_h_makedev" >&5
25277 $as_echo "$ac_cv_header_sys_types_h_makedev" >&6; }
25278
25279 if test $ac_cv_header_sys_types_h_makedev = no; then
25280 ac_fn_c_check_header_mongrel "$LINENO" "sys/mkdev.h" "ac_cv_header_sys_mkdev_h" "$ac_includes_default"
25281 if test "x$ac_cv_header_sys_mkdev_h" = x""yes; then :
25282
25283 $as_echo "#define MAJOR_IN_MKDEV 1" >>confdefs.h
25284
25285 fi
25286
25287
25288
25289   if test $ac_cv_header_sys_mkdev_h = no; then
25290     ac_fn_c_check_header_mongrel "$LINENO" "sys/sysmacros.h" "ac_cv_header_sys_sysmacros_h" "$ac_includes_default"
25291 if test "x$ac_cv_header_sys_sysmacros_h" = x""yes; then :
25292
25293 $as_echo "#define MAJOR_IN_SYSMACROS 1" >>confdefs.h
25294
25295 fi
25296
25297
25298   fi
25299 fi
25300
25301 ac_header_dirent=no
25302 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
25303   as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
25304 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_hdr that defines DIR" >&5
25305 $as_echo_n "checking for $ac_hdr that defines DIR... " >&6; }
25306 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then :
25307   $as_echo_n "(cached) " >&6
25308 else
25309   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25310 /* end confdefs.h.  */
25311 #include <sys/types.h>
25312 #include <$ac_hdr>
25313
25314 int
25315 main ()
25316 {
25317 if ((DIR *) 0)
25318 return 0;
25319   ;
25320   return 0;
25321 }
25322 _ACEOF
25323 if ac_fn_c_try_compile "$LINENO"; then :
25324   eval "$as_ac_Header=yes"
25325 else
25326   eval "$as_ac_Header=no"
25327 fi
25328 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25329 fi
25330 eval ac_res=\$$as_ac_Header
25331                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
25332 $as_echo "$ac_res" >&6; }
25333 eval as_val=\$$as_ac_Header
25334    if test "x$as_val" = x""yes; then :
25335   cat >>confdefs.h <<_ACEOF
25336 #define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
25337 _ACEOF
25338
25339 ac_header_dirent=$ac_hdr; break
25340 fi
25341
25342 done
25343 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
25344 if test $ac_header_dirent = dirent.h; then
25345   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
25346 $as_echo_n "checking for library containing opendir... " >&6; }
25347 if test "${ac_cv_search_opendir+set}" = set; then :
25348   $as_echo_n "(cached) " >&6
25349 else
25350   ac_func_search_save_LIBS=$LIBS
25351 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25352 /* end confdefs.h.  */
25353
25354 /* Override any GCC internal prototype to avoid an error.
25355    Use char because int might match the return type of a GCC
25356    builtin and then its argument prototype would still apply.  */
25357 #ifdef __cplusplus
25358 extern "C"
25359 #endif
25360 char opendir ();
25361 int
25362 main ()
25363 {
25364 return opendir ();
25365   ;
25366   return 0;
25367 }
25368 _ACEOF
25369 for ac_lib in '' dir; do
25370   if test -z "$ac_lib"; then
25371     ac_res="none required"
25372   else
25373     ac_res=-l$ac_lib
25374     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
25375   fi
25376   if ac_fn_c_try_link "$LINENO"; then :
25377   ac_cv_search_opendir=$ac_res
25378 fi
25379 rm -f core conftest.err conftest.$ac_objext \
25380     conftest$ac_exeext
25381   if test "${ac_cv_search_opendir+set}" = set; then :
25382   break
25383 fi
25384 done
25385 if test "${ac_cv_search_opendir+set}" = set; then :
25386
25387 else
25388   ac_cv_search_opendir=no
25389 fi
25390 rm conftest.$ac_ext
25391 LIBS=$ac_func_search_save_LIBS
25392 fi
25393 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
25394 $as_echo "$ac_cv_search_opendir" >&6; }
25395 ac_res=$ac_cv_search_opendir
25396 if test "$ac_res" != no; then :
25397   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
25398
25399 fi
25400
25401 else
25402   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
25403 $as_echo_n "checking for library containing opendir... " >&6; }
25404 if test "${ac_cv_search_opendir+set}" = set; then :
25405   $as_echo_n "(cached) " >&6
25406 else
25407   ac_func_search_save_LIBS=$LIBS
25408 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25409 /* end confdefs.h.  */
25410
25411 /* Override any GCC internal prototype to avoid an error.
25412    Use char because int might match the return type of a GCC
25413    builtin and then its argument prototype would still apply.  */
25414 #ifdef __cplusplus
25415 extern "C"
25416 #endif
25417 char opendir ();
25418 int
25419 main ()
25420 {
25421 return opendir ();
25422   ;
25423   return 0;
25424 }
25425 _ACEOF
25426 for ac_lib in '' x; do
25427   if test -z "$ac_lib"; then
25428     ac_res="none required"
25429   else
25430     ac_res=-l$ac_lib
25431     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
25432   fi
25433   if ac_fn_c_try_link "$LINENO"; then :
25434   ac_cv_search_opendir=$ac_res
25435 fi
25436 rm -f core conftest.err conftest.$ac_objext \
25437     conftest$ac_exeext
25438   if test "${ac_cv_search_opendir+set}" = set; then :
25439   break
25440 fi
25441 done
25442 if test "${ac_cv_search_opendir+set}" = set; then :
25443
25444 else
25445   ac_cv_search_opendir=no
25446 fi
25447 rm conftest.$ac_ext
25448 LIBS=$ac_func_search_save_LIBS
25449 fi
25450 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
25451 $as_echo "$ac_cv_search_opendir" >&6; }
25452 ac_res=$ac_cv_search_opendir
25453 if test "$ac_res" != no; then :
25454   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
25455
25456 fi
25457
25458 fi
25459
25460 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat file-mode macros are broken" >&5
25461 $as_echo_n "checking whether stat file-mode macros are broken... " >&6; }
25462 if test "${ac_cv_header_stat_broken+set}" = set; then :
25463   $as_echo_n "(cached) " >&6
25464 else
25465   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25466 /* end confdefs.h.  */
25467 #include <sys/types.h>
25468 #include <sys/stat.h>
25469
25470 #if defined S_ISBLK && defined S_IFDIR
25471 extern char c1[S_ISBLK (S_IFDIR) ? -1 : 1];
25472 #endif
25473
25474 #if defined S_ISBLK && defined S_IFCHR
25475 extern char c2[S_ISBLK (S_IFCHR) ? -1 : 1];
25476 #endif
25477
25478 #if defined S_ISLNK && defined S_IFREG
25479 extern char c3[S_ISLNK (S_IFREG) ? -1 : 1];
25480 #endif
25481
25482 #if defined S_ISSOCK && defined S_IFREG
25483 extern char c4[S_ISSOCK (S_IFREG) ? -1 : 1];
25484 #endif
25485
25486 _ACEOF
25487 if ac_fn_c_try_compile "$LINENO"; then :
25488   ac_cv_header_stat_broken=no
25489 else
25490   ac_cv_header_stat_broken=yes
25491 fi
25492 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25493 fi
25494 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stat_broken" >&5
25495 $as_echo "$ac_cv_header_stat_broken" >&6; }
25496 if test $ac_cv_header_stat_broken = yes; then
25497
25498 $as_echo "#define STAT_MACROS_BROKEN 1" >>confdefs.h
25499
25500 fi
25501
25502 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sys/wait.h that is POSIX.1 compatible" >&5
25503 $as_echo_n "checking for sys/wait.h that is POSIX.1 compatible... " >&6; }
25504 if test "${ac_cv_header_sys_wait_h+set}" = set; then :
25505   $as_echo_n "(cached) " >&6
25506 else
25507   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25508 /* end confdefs.h.  */
25509 #include <sys/types.h>
25510 #include <sys/wait.h>
25511 #ifndef WEXITSTATUS
25512 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
25513 #endif
25514 #ifndef WIFEXITED
25515 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
25516 #endif
25517
25518 int
25519 main ()
25520 {
25521   int s;
25522   wait (&s);
25523   s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
25524   ;
25525   return 0;
25526 }
25527 _ACEOF
25528 if ac_fn_c_try_compile "$LINENO"; then :
25529   ac_cv_header_sys_wait_h=yes
25530 else
25531   ac_cv_header_sys_wait_h=no
25532 fi
25533 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25534 fi
25535 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_wait_h" >&5
25536 $as_echo "$ac_cv_header_sys_wait_h" >&6; }
25537 if test $ac_cv_header_sys_wait_h = yes; then
25538
25539 $as_echo "#define HAVE_SYS_WAIT_H 1" >>confdefs.h
25540
25541 fi
25542
25543 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
25544 $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
25545 if test "${ac_cv_header_time+set}" = set; then :
25546   $as_echo_n "(cached) " >&6
25547 else
25548   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25549 /* end confdefs.h.  */
25550 #include <sys/types.h>
25551 #include <sys/time.h>
25552 #include <time.h>
25553
25554 int
25555 main ()
25556 {
25557 if ((struct tm *) 0)
25558 return 0;
25559   ;
25560   return 0;
25561 }
25562 _ACEOF
25563 if ac_fn_c_try_compile "$LINENO"; then :
25564   ac_cv_header_time=yes
25565 else
25566   ac_cv_header_time=no
25567 fi
25568 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25569 fi
25570 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
25571 $as_echo "$ac_cv_header_time" >&6; }
25572 if test $ac_cv_header_time = yes; then
25573
25574 $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
25575
25576 fi
25577
25578 ac_fn_c_check_member "$LINENO" "struct stat" "st_blksize" "ac_cv_member_struct_stat_st_blksize" "$ac_includes_default"
25579 if test "x$ac_cv_member_struct_stat_st_blksize" = x""yes; then :
25580
25581 cat >>confdefs.h <<_ACEOF
25582 #define HAVE_STRUCT_STAT_ST_BLKSIZE 1
25583 _ACEOF
25584
25585
25586 $as_echo "#define HAVE_ST_BLKSIZE 1" >>confdefs.h
25587
25588 fi
25589
25590
25591 ac_fn_c_check_member "$LINENO" "struct stat" "st_blocks" "ac_cv_member_struct_stat_st_blocks" "$ac_includes_default"
25592 if test "x$ac_cv_member_struct_stat_st_blocks" = x""yes; then :
25593
25594 cat >>confdefs.h <<_ACEOF
25595 #define HAVE_STRUCT_STAT_ST_BLOCKS 1
25596 _ACEOF
25597
25598
25599 $as_echo "#define HAVE_ST_BLOCKS 1" >>confdefs.h
25600
25601 else
25602   case " $LIBOBJS " in
25603   *" fileblocks.$ac_objext "* ) ;;
25604   *) LIBOBJS="$LIBOBJS fileblocks.$ac_objext"
25605  ;;
25606 esac
25607
25608 fi
25609
25610
25611 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct tm is in sys/time.h or time.h" >&5
25612 $as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
25613 if test "${ac_cv_struct_tm+set}" = set; then :
25614   $as_echo_n "(cached) " >&6
25615 else
25616   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25617 /* end confdefs.h.  */
25618 #include <sys/types.h>
25619 #include <time.h>
25620
25621 int
25622 main ()
25623 {
25624 struct tm tm;
25625                                      int *p = &tm.tm_sec;
25626                                      return !p;
25627   ;
25628   return 0;
25629 }
25630 _ACEOF
25631 if ac_fn_c_try_compile "$LINENO"; then :
25632   ac_cv_struct_tm=time.h
25633 else
25634   ac_cv_struct_tm=sys/time.h
25635 fi
25636 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25637 fi
25638 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm" >&5
25639 $as_echo "$ac_cv_struct_tm" >&6; }
25640 if test $ac_cv_struct_tm = sys/time.h; then
25641
25642 $as_echo "#define TM_IN_SYS_TIME 1" >>confdefs.h
25643
25644 fi
25645
25646 ac_fn_c_check_member "$LINENO" "struct tm" "tm_zone" "ac_cv_member_struct_tm_tm_zone" "#include <sys/types.h>
25647 #include <$ac_cv_struct_tm>
25648
25649 "
25650 if test "x$ac_cv_member_struct_tm_tm_zone" = x""yes; then :
25651
25652 cat >>confdefs.h <<_ACEOF
25653 #define HAVE_STRUCT_TM_TM_ZONE 1
25654 _ACEOF
25655
25656
25657 fi
25658
25659 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
25660
25661 $as_echo "#define HAVE_TM_ZONE 1" >>confdefs.h
25662
25663 else
25664   ac_fn_c_check_decl "$LINENO" "tzname" "ac_cv_have_decl_tzname" "#include <time.h>
25665 "
25666 if test "x$ac_cv_have_decl_tzname" = x""yes; then :
25667   ac_have_decl=1
25668 else
25669   ac_have_decl=0
25670 fi
25671
25672 cat >>confdefs.h <<_ACEOF
25673 #define HAVE_DECL_TZNAME $ac_have_decl
25674 _ACEOF
25675
25676   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tzname" >&5
25677 $as_echo_n "checking for tzname... " >&6; }
25678 if test "${ac_cv_var_tzname+set}" = set; then :
25679   $as_echo_n "(cached) " >&6
25680 else
25681   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25682 /* end confdefs.h.  */
25683 #include <time.h>
25684 #if !HAVE_DECL_TZNAME
25685 extern char *tzname[];
25686 #endif
25687
25688 int
25689 main ()
25690 {
25691 return tzname[0][0];
25692   ;
25693   return 0;
25694 }
25695 _ACEOF
25696 if ac_fn_c_try_link "$LINENO"; then :
25697   ac_cv_var_tzname=yes
25698 else
25699   ac_cv_var_tzname=no
25700 fi
25701 rm -f core conftest.err conftest.$ac_objext \
25702     conftest$ac_exeext conftest.$ac_ext
25703 fi
25704 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_var_tzname" >&5
25705 $as_echo "$ac_cv_var_tzname" >&6; }
25706   if test $ac_cv_var_tzname = yes; then
25707
25708 $as_echo "#define HAVE_TZNAME 1" >>confdefs.h
25709
25710   fi
25711 fi
25712
25713
25714 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for utime.h" >&5
25715 $as_echo_n "checking for utime.h... " >&6; }
25716 if test "${ba_cv_header_utime_h+set}" = set; then :
25717   $as_echo_n "(cached) " >&6
25718 else
25719
25720        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25721 /* end confdefs.h.  */
25722
25723               #include <sys/types.h>
25724               #include <utime.h>
25725
25726 int
25727 main ()
25728 {
25729
25730               struct utimbuf foo
25731
25732   ;
25733   return 0;
25734 }
25735 _ACEOF
25736 if ac_fn_c_try_compile "$LINENO"; then :
25737
25738               ba_cv_header_utime_h=yes
25739
25740 else
25741
25742               ba_cv_header_utime_h=no
25743
25744
25745 fi
25746 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25747
25748
25749 fi
25750 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ba_cv_header_utime_h" >&5
25751 $as_echo "$ba_cv_header_utime_h" >&6; }
25752 test $ba_cv_header_utime_h = yes &&
25753 $as_echo "#define HAVE_UTIME_H 1" >>confdefs.h
25754
25755
25756 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socklen_t" >&5
25757 $as_echo_n "checking for socklen_t... " >&6; }
25758 if test "${ba_cv_header_socklen_t+set}" = set; then :
25759   $as_echo_n "(cached) " >&6
25760 else
25761
25762        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25763 /* end confdefs.h.  */
25764
25765               #include <sys/types.h>
25766               #include <sys/socket.h>
25767
25768 int
25769 main ()
25770 {
25771
25772               socklen_t x
25773
25774   ;
25775   return 0;
25776 }
25777 _ACEOF
25778 if ac_fn_c_try_compile "$LINENO"; then :
25779
25780              ba_cv_header_socklen_t=yes
25781
25782 else
25783
25784              ba_cv_header_socklen_t=no
25785
25786
25787 fi
25788 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25789
25790
25791 fi
25792 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ba_cv_header_socklen_t" >&5
25793 $as_echo "$ba_cv_header_socklen_t" >&6; }
25794 test $ba_cv_header_socklen_t = yes &&
25795 $as_echo "#define HAVE_SOCKLEN_T 1" >>confdefs.h
25796
25797
25798 ac_ext=cpp
25799 ac_cpp='$CXXCPP $CPPFLAGS'
25800 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25801 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25802 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
25803
25804 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ioctl_req_t" >&5
25805 $as_echo_n "checking for ioctl_req_t... " >&6; }
25806 if test "${ba_cv_header_ioctl_req_t+set}" = set; then :
25807   $as_echo_n "(cached) " >&6
25808 else
25809
25810        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25811 /* end confdefs.h.  */
25812
25813               #include <unistd.h>
25814               #include <sys/types.h>
25815               #include <sys/ioctl.h>
25816
25817 int
25818 main ()
25819 {
25820
25821               int (*d_ioctl)(int fd, unsigned long int request, ...);
25822               d_ioctl = ::ioctl;
25823
25824   ;
25825   return 0;
25826 }
25827 _ACEOF
25828 if ac_fn_cxx_try_compile "$LINENO"; then :
25829
25830              ba_cv_header_ioctl_req_t=yes
25831
25832 else
25833
25834              ba_cv_header_ioctl_req_t=no
25835
25836
25837 fi
25838 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25839
25840
25841 fi
25842 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ba_cv_header_ioctl_req_t" >&5
25843 $as_echo "$ba_cv_header_ioctl_req_t" >&6; }
25844 test $ba_cv_header_ioctl_req_t = yes &&
25845 $as_echo "#define HAVE_IOCTL_ULINT_REQUEST 1" >>confdefs.h
25846
25847
25848 ac_ext=c
25849 ac_cpp='$CPP $CPPFLAGS'
25850 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25851 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25852 ac_compiler_gnu=$ac_cv_c_compiler_gnu
25853
25854
25855 ac_ext=cpp
25856 ac_cpp='$CXXCPP $CPPFLAGS'
25857 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25858 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25859 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
25860
25861 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for typeof" >&5
25862 $as_echo_n "checking for typeof... " >&6; }
25863 if test "${ba_cv_have_typeof+set}" = set; then :
25864   $as_echo_n "(cached) " >&6
25865 else
25866
25867        if test "$cross_compiling" = yes; then :
25868
25869               ba_cv_have_typeof=no
25870
25871
25872 else
25873   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25874 /* end confdefs.h.  */
25875
25876               main(){char *a = 0; a = (typeof a)a;}
25877
25878 _ACEOF
25879 if ac_fn_cxx_try_run "$LINENO"; then :
25880
25881               ba_cv_have_typeof=yes
25882
25883 else
25884
25885               ba_cv_have_typeof=no
25886
25887 fi
25888 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
25889   conftest.$ac_objext conftest.beam conftest.$ac_ext
25890 fi
25891
25892
25893
25894 fi
25895 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ba_cv_have_typeof" >&5
25896 $as_echo "$ba_cv_have_typeof" >&6; }
25897 test $ba_cv_have_typeof = yes &&
25898 $as_echo "#define HAVE_TYPEOF 1" >>confdefs.h
25899
25900 ac_ext=c
25901 ac_cpp='$CPP $CPPFLAGS'
25902 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25903 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25904 ac_compiler_gnu=$ac_cv_c_compiler_gnu
25905
25906
25907 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
25908 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
25909 if test "${ac_cv_c_const+set}" = set; then :
25910   $as_echo_n "(cached) " >&6
25911 else
25912   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25913 /* end confdefs.h.  */
25914
25915 int
25916 main ()
25917 {
25918 /* FIXME: Include the comments suggested by Paul. */
25919 #ifndef __cplusplus
25920   /* Ultrix mips cc rejects this.  */
25921   typedef int charset[2];
25922   const charset cs;
25923   /* SunOS 4.1.1 cc rejects this.  */
25924   char const *const *pcpcc;
25925   char **ppc;
25926   /* NEC SVR4.0.2 mips cc rejects this.  */
25927   struct point {int x, y;};
25928   static struct point const zero = {0,0};
25929   /* AIX XL C 1.02.0.0 rejects this.
25930      It does not let you subtract one const X* pointer from another in
25931      an arm of an if-expression whose if-part is not a constant
25932      expression */
25933   const char *g = "string";
25934   pcpcc = &g + (g ? g-g : 0);
25935   /* HPUX 7.0 cc rejects these. */
25936   ++pcpcc;
25937   ppc = (char**) pcpcc;
25938   pcpcc = (char const *const *) ppc;
25939   { /* SCO 3.2v4 cc rejects this.  */
25940     char *t;
25941     char const *s = 0 ? (char *) 0 : (char const *) 0;
25942
25943     *t++ = 0;
25944     if (s) return 0;
25945   }
25946   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
25947     int x[] = {25, 17};
25948     const int *foo = &x[0];
25949     ++foo;
25950   }
25951   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
25952     typedef const int *iptr;
25953     iptr p = 0;
25954     ++p;
25955   }
25956   { /* AIX XL C 1.02.0.0 rejects this saying
25957        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
25958     struct s { int j; const int *ap[3]; };
25959     struct s *b; b->j = 5;
25960   }
25961   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
25962     const int foo = 10;
25963     if (!foo) return 0;
25964   }
25965   return !cs[0] && !zero.x;
25966 #endif
25967
25968   ;
25969   return 0;
25970 }
25971 _ACEOF
25972 if ac_fn_c_try_compile "$LINENO"; then :
25973   ac_cv_c_const=yes
25974 else
25975   ac_cv_c_const=no
25976 fi
25977 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25978 fi
25979 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
25980 $as_echo "$ac_cv_c_const" >&6; }
25981 if test $ac_cv_c_const = no; then
25982
25983 $as_echo "#define const /**/" >>confdefs.h
25984
25985 fi
25986
25987
25988  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
25989 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
25990 if test "${ac_cv_c_bigendian+set}" = set; then :
25991   $as_echo_n "(cached) " >&6
25992 else
25993   ac_cv_c_bigendian=unknown
25994     # See if we're dealing with a universal compiler.
25995     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25996 /* end confdefs.h.  */
25997 #ifndef __APPLE_CC__
25998                not a universal capable compiler
25999              #endif
26000              typedef int dummy;
26001
26002 _ACEOF
26003 if ac_fn_c_try_compile "$LINENO"; then :
26004
26005         # Check for potential -arch flags.  It is not universal unless
26006         # there are at least two -arch flags with different values.
26007         ac_arch=
26008         ac_prev=
26009         for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
26010          if test -n "$ac_prev"; then
26011            case $ac_word in
26012              i?86 | x86_64 | ppc | ppc64)
26013                if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
26014                  ac_arch=$ac_word
26015                else
26016                  ac_cv_c_bigendian=universal
26017                  break
26018                fi
26019                ;;
26020            esac
26021            ac_prev=
26022          elif test "x$ac_word" = "x-arch"; then
26023            ac_prev=arch
26024          fi
26025        done
26026 fi
26027 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26028     if test $ac_cv_c_bigendian = unknown; then
26029       # See if sys/param.h defines the BYTE_ORDER macro.
26030       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26031 /* end confdefs.h.  */
26032 #include <sys/types.h>
26033              #include <sys/param.h>
26034
26035 int
26036 main ()
26037 {
26038 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
26039                      && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
26040                      && LITTLE_ENDIAN)
26041               bogus endian macros
26042              #endif
26043
26044   ;
26045   return 0;
26046 }
26047 _ACEOF
26048 if ac_fn_c_try_compile "$LINENO"; then :
26049   # It does; now see whether it defined to BIG_ENDIAN or not.
26050          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26051 /* end confdefs.h.  */
26052 #include <sys/types.h>
26053                 #include <sys/param.h>
26054
26055 int
26056 main ()
26057 {
26058 #if BYTE_ORDER != BIG_ENDIAN
26059                  not big endian
26060                 #endif
26061
26062   ;
26063   return 0;
26064 }
26065 _ACEOF
26066 if ac_fn_c_try_compile "$LINENO"; then :
26067   ac_cv_c_bigendian=yes
26068 else
26069   ac_cv_c_bigendian=no
26070 fi
26071 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26072 fi
26073 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26074     fi
26075     if test $ac_cv_c_bigendian = unknown; then
26076       # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
26077       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26078 /* end confdefs.h.  */
26079 #include <limits.h>
26080
26081 int
26082 main ()
26083 {
26084 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
26085               bogus endian macros
26086              #endif
26087
26088   ;
26089   return 0;
26090 }
26091 _ACEOF
26092 if ac_fn_c_try_compile "$LINENO"; then :
26093   # It does; now see whether it defined to _BIG_ENDIAN or not.
26094          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26095 /* end confdefs.h.  */
26096 #include <limits.h>
26097
26098 int
26099 main ()
26100 {
26101 #ifndef _BIG_ENDIAN
26102                  not big endian
26103                 #endif
26104
26105   ;
26106   return 0;
26107 }
26108 _ACEOF
26109 if ac_fn_c_try_compile "$LINENO"; then :
26110   ac_cv_c_bigendian=yes
26111 else
26112   ac_cv_c_bigendian=no
26113 fi
26114 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26115 fi
26116 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26117     fi
26118     if test $ac_cv_c_bigendian = unknown; then
26119       # Compile a test program.
26120       if test "$cross_compiling" = yes; then :
26121   # Try to guess by grepping values from an object file.
26122          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26123 /* end confdefs.h.  */
26124 short int ascii_mm[] =
26125                   { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
26126                 short int ascii_ii[] =
26127                   { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
26128                 int use_ascii (int i) {
26129                   return ascii_mm[i] + ascii_ii[i];
26130                 }
26131                 short int ebcdic_ii[] =
26132                   { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
26133                 short int ebcdic_mm[] =
26134                   { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
26135                 int use_ebcdic (int i) {
26136                   return ebcdic_mm[i] + ebcdic_ii[i];
26137                 }
26138                 extern int foo;
26139
26140 int
26141 main ()
26142 {
26143 return use_ascii (foo) == use_ebcdic (foo);
26144   ;
26145   return 0;
26146 }
26147 _ACEOF
26148 if ac_fn_c_try_compile "$LINENO"; then :
26149   if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
26150               ac_cv_c_bigendian=yes
26151             fi
26152             if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
26153               if test "$ac_cv_c_bigendian" = unknown; then
26154                 ac_cv_c_bigendian=no
26155               else
26156                 # finding both strings is unlikely to happen, but who knows?
26157                 ac_cv_c_bigendian=unknown
26158               fi
26159             fi
26160 fi
26161 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26162 else
26163   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26164 /* end confdefs.h.  */
26165 $ac_includes_default
26166 int
26167 main ()
26168 {
26169
26170              /* Are we little or big endian?  From Harbison&Steele.  */
26171              union
26172              {
26173                long int l;
26174                char c[sizeof (long int)];
26175              } u;
26176              u.l = 1;
26177              return u.c[sizeof (long int) - 1] == 1;
26178
26179   ;
26180   return 0;
26181 }
26182 _ACEOF
26183 if ac_fn_c_try_run "$LINENO"; then :
26184   ac_cv_c_bigendian=no
26185 else
26186   ac_cv_c_bigendian=yes
26187 fi
26188 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
26189   conftest.$ac_objext conftest.beam conftest.$ac_ext
26190 fi
26191
26192     fi
26193 fi
26194 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
26195 $as_echo "$ac_cv_c_bigendian" >&6; }
26196  case $ac_cv_c_bigendian in #(
26197    yes)
26198
26199 $as_echo "#define HAVE_BIG_ENDIAN 1" >>confdefs.h
26200 ;; #(
26201    no)
26202
26203 $as_echo "#define HAVE_LITTLE_ENDIAN 1" >>confdefs.h
26204  ;; #(
26205    universal)
26206
26207 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
26208
26209      ;; #(
26210    *)
26211      as_fn_error "unknown endianness
26212  presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
26213  esac
26214
26215
26216 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to get filesystem type" >&5
26217 $as_echo_n "checking how to get filesystem type... " >&6; }
26218 fstype=no
26219 # The order of these tests is important.
26220 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26221 /* end confdefs.h.  */
26222
26223        #include <sys/statvfs.h>
26224        #include <sys/fstyp.h>
26225
26226 _ACEOF
26227 if ac_fn_c_try_cpp "$LINENO"; then :
26228   $as_echo "#define FSTYPE_STATVFS 1" >>confdefs.h
26229  fstype=SVR4
26230
26231 fi
26232 rm -f conftest.err conftest.$ac_ext
26233 if test $fstype = no; then
26234    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26235 /* end confdefs.h.  */
26236
26237           #include <sys/statfs.h>
26238           #include <sys/fstyp.h>
26239
26240 _ACEOF
26241 if ac_fn_c_try_cpp "$LINENO"; then :
26242   $as_echo "#define FSTYPE_USG_STATFS 1" >>confdefs.h
26243  fstype=SVR3
26244
26245 fi
26246 rm -f conftest.err conftest.$ac_ext
26247 fi
26248 if test $fstype = no; then
26249    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26250 /* end confdefs.h.  */
26251
26252           #include <sys/statfs.h>
26253           #include <sys/vmount.h>
26254
26255 _ACEOF
26256 if ac_fn_c_try_cpp "$LINENO"; then :
26257   $as_echo "#define FSTYPE_AIX_STATFS 1" >>confdefs.h
26258  fstype=AIX
26259
26260 fi
26261 rm -f conftest.err conftest.$ac_ext
26262 fi
26263 if test $fstype = no; then
26264    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26265 /* end confdefs.h.  */
26266
26267           #include <mntent.h>
26268
26269 _ACEOF
26270 if ac_fn_c_try_cpp "$LINENO"; then :
26271   $as_echo "#define FSTYPE_MNTENT 1" >>confdefs.h
26272  fstype=4.3BSD
26273
26274 fi
26275 rm -f conftest.err conftest.$ac_ext
26276 fi
26277 if test $fstype = no; then
26278    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26279 /* end confdefs.h.  */
26280 #include <sys/mount.h>
26281
26282 _ACEOF
26283 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
26284   $EGREP "f_type;" >/dev/null 2>&1; then :
26285   $as_echo "#define FSTYPE_STATFS 1" >>confdefs.h
26286  fstype=4.4BSD/OSF1
26287 fi
26288 rm -f conftest*
26289
26290 fi
26291 if test $fstype = no; then
26292    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26293 /* end confdefs.h.  */
26294
26295           #include <sys/mount.h>
26296           #include <sys/fs_types.h>
26297
26298 _ACEOF
26299 if ac_fn_c_try_cpp "$LINENO"; then :
26300   $as_echo "#define FSTYPE_GETMNT 1" >>confdefs.h
26301  fstype=Ultrix
26302
26303 fi
26304 rm -f conftest.err conftest.$ac_ext
26305 fi
26306 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $fstype" >&5
26307 $as_echo "$fstype" >&6; }
26308
26309 ac_fn_c_check_header_mongrel "$LINENO" "sys/statvfs.h" "ac_cv_header_sys_statvfs_h" "$ac_includes_default"
26310 if test "x$ac_cv_header_sys_statvfs_h" = x""yes; then :
26311
26312 $as_echo "#define HAVE_SYS_STATVFS_H 1" >>confdefs.h
26313
26314 fi
26315
26316
26317
26318 { $as_echo "$as_me:${as_lineno-$LINENO}: checking return type of signal handlers" >&5
26319 $as_echo_n "checking return type of signal handlers... " >&6; }
26320 if test "${ac_cv_type_signal+set}" = set; then :
26321   $as_echo_n "(cached) " >&6
26322 else
26323   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26324 /* end confdefs.h.  */
26325 #include <sys/types.h>
26326 #include <signal.h>
26327
26328 int
26329 main ()
26330 {
26331 return *(signal (0, 0)) (0) == 1;
26332   ;
26333   return 0;
26334 }
26335 _ACEOF
26336 if ac_fn_c_try_compile "$LINENO"; then :
26337   ac_cv_type_signal=int
26338 else
26339   ac_cv_type_signal=void
26340 fi
26341 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26342 fi
26343 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_signal" >&5
26344 $as_echo "$ac_cv_type_signal" >&6; }
26345
26346 cat >>confdefs.h <<_ACEOF
26347 #define RETSIGTYPE $ac_cv_type_signal
26348 _ACEOF
26349
26350
26351
26352   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for type of signal functions" >&5
26353 $as_echo_n "checking for type of signal functions... " >&6; }
26354   if test "${bash_cv_signal_vintage+set}" = set; then :
26355   $as_echo_n "(cached) " >&6
26356 else
26357
26358     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26359 /* end confdefs.h.  */
26360 #include <signal.h>
26361 int
26362 main ()
26363 {
26364
26365       sigset_t ss;
26366       struct sigaction sa;
26367       sigemptyset(&ss); sigsuspend(&ss);
26368       sigaction(SIGINT, &sa, (struct sigaction *) 0);
26369       sigprocmask(SIG_BLOCK, &ss, (sigset_t *) 0);
26370
26371   ;
26372   return 0;
26373 }
26374 _ACEOF
26375 if ac_fn_c_try_link "$LINENO"; then :
26376   bash_cv_signal_vintage="posix"
26377 else
26378
26379       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26380 /* end confdefs.h.  */
26381 #include <signal.h>
26382 int
26383 main ()
26384 {
26385
26386           int mask = sigmask(SIGINT);
26387           sigsetmask(mask); sigblock(mask); sigpause(mask);
26388
26389   ;
26390   return 0;
26391 }
26392 _ACEOF
26393 if ac_fn_c_try_link "$LINENO"; then :
26394   bash_cv_signal_vintage="4.2bsd"
26395 else
26396
26397         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26398 /* end confdefs.h.  */
26399
26400           #include <signal.h>
26401           RETSIGTYPE foo() { }
26402 int
26403 main ()
26404 {
26405
26406                   int mask = sigmask(SIGINT);
26407                   sigset(SIGINT, foo); sigrelse(SIGINT);
26408                   sighold(SIGINT); sigpause(SIGINT);
26409
26410   ;
26411   return 0;
26412 }
26413 _ACEOF
26414 if ac_fn_c_try_link "$LINENO"; then :
26415   bash_cv_signal_vintage="svr3"
26416 else
26417   bash_cv_signal_vintage="v7"
26418
26419 fi
26420 rm -f core conftest.err conftest.$ac_objext \
26421     conftest$ac_exeext conftest.$ac_ext
26422
26423 fi
26424 rm -f core conftest.err conftest.$ac_objext \
26425     conftest$ac_exeext conftest.$ac_ext
26426
26427 fi
26428 rm -f core conftest.err conftest.$ac_objext \
26429     conftest$ac_exeext conftest.$ac_ext
26430
26431 fi
26432
26433   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bash_cv_signal_vintage" >&5
26434 $as_echo "$bash_cv_signal_vintage" >&6; }
26435   if test "$bash_cv_signal_vintage" = "posix"; then
26436     $as_echo "#define HAVE_POSIX_SIGNALS 1" >>confdefs.h
26437
26438   elif test "$bash_cv_signal_vintage" = "4.2bsd"; then
26439     $as_echo "#define HAVE_BSD_SIGNALS 1" >>confdefs.h
26440
26441   elif test "$bash_cv_signal_vintage" = "svr3"; then
26442     $as_echo "#define HAVE_USG_SIGHOLD 1" >>confdefs.h
26443
26444   fi
26445
26446 ac_fn_c_check_type "$LINENO" "mode_t" "ac_cv_type_mode_t" "$ac_includes_default"
26447 if test "x$ac_cv_type_mode_t" = x""yes; then :
26448
26449 else
26450
26451 cat >>confdefs.h <<_ACEOF
26452 #define mode_t int
26453 _ACEOF
26454
26455 fi
26456
26457 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uid_t in sys/types.h" >&5
26458 $as_echo_n "checking for uid_t in sys/types.h... " >&6; }
26459 if test "${ac_cv_type_uid_t+set}" = set; then :
26460   $as_echo_n "(cached) " >&6
26461 else
26462   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26463 /* end confdefs.h.  */
26464 #include <sys/types.h>
26465
26466 _ACEOF
26467 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
26468   $EGREP "uid_t" >/dev/null 2>&1; then :
26469   ac_cv_type_uid_t=yes
26470 else
26471   ac_cv_type_uid_t=no
26472 fi
26473 rm -f conftest*
26474
26475 fi
26476 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_uid_t" >&5
26477 $as_echo "$ac_cv_type_uid_t" >&6; }
26478 if test $ac_cv_type_uid_t = no; then
26479
26480 $as_echo "#define uid_t int" >>confdefs.h
26481
26482
26483 $as_echo "#define gid_t int" >>confdefs.h
26484
26485 fi
26486
26487 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
26488 if test "x$ac_cv_type_size_t" = x""yes; then :
26489
26490 else
26491
26492 cat >>confdefs.h <<_ACEOF
26493 #define size_t unsigned int
26494 _ACEOF
26495
26496 fi
26497
26498 ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
26499 if test "x$ac_cv_type_pid_t" = x""yes; then :
26500
26501 else
26502
26503 cat >>confdefs.h <<_ACEOF
26504 #define pid_t int
26505 _ACEOF
26506
26507 fi
26508
26509 ac_fn_c_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default"
26510 if test "x$ac_cv_type_off_t" = x""yes; then :
26511
26512 else
26513
26514 cat >>confdefs.h <<_ACEOF
26515 #define off_t long int
26516 _ACEOF
26517
26518 fi
26519
26520
26521   ac_fn_c_check_type "$LINENO" "intptr_t" "ac_cv_type_intptr_t" "$ac_includes_default"
26522 if test "x$ac_cv_type_intptr_t" = x""yes; then :
26523
26524 $as_echo "#define HAVE_INTPTR_T 1" >>confdefs.h
26525
26526 else
26527   for ac_type in 'int' 'long int' 'long long int'; do
26528        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26529 /* end confdefs.h.  */
26530 $ac_includes_default
26531 int
26532 main ()
26533 {
26534 static int test_array [1 - 2 * !(sizeof (void *) <= sizeof ($ac_type))];
26535 test_array [0] = 0
26536
26537   ;
26538   return 0;
26539 }
26540 _ACEOF
26541 if ac_fn_c_try_compile "$LINENO"; then :
26542
26543 cat >>confdefs.h <<_ACEOF
26544 #define intptr_t $ac_type
26545 _ACEOF
26546
26547           ac_type=
26548 fi
26549 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26550        test -z "$ac_type" && break
26551      done
26552 fi
26553
26554
26555
26556   ac_fn_c_check_type "$LINENO" "uintptr_t" "ac_cv_type_uintptr_t" "$ac_includes_default"
26557 if test "x$ac_cv_type_uintptr_t" = x""yes; then :
26558
26559 $as_echo "#define HAVE_UINTPTR_T 1" >>confdefs.h
26560
26561 else
26562   for ac_type in 'unsigned int' 'unsigned long int' \
26563         'unsigned long long int'; do
26564        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26565 /* end confdefs.h.  */
26566 $ac_includes_default
26567 int
26568 main ()
26569 {
26570 static int test_array [1 - 2 * !(sizeof (void *) <= sizeof ($ac_type))];
26571 test_array [0] = 0
26572
26573   ;
26574   return 0;
26575 }
26576 _ACEOF
26577 if ac_fn_c_try_compile "$LINENO"; then :
26578
26579 cat >>confdefs.h <<_ACEOF
26580 #define uintptr_t $ac_type
26581 _ACEOF
26582
26583           ac_type=
26584 fi
26585 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26586        test -z "$ac_type" && break
26587      done
26588 fi
26589
26590
26591 ac_fn_c_check_type "$LINENO" "ino_t" "ac_cv_type_ino_t" "$ac_includes_default"
26592 if test "x$ac_cv_type_ino_t" = x""yes; then :
26593
26594 else
26595
26596 cat >>confdefs.h <<_ACEOF
26597 #define ino_t unsigned long
26598 _ACEOF
26599
26600 fi
26601
26602 ac_fn_c_check_type "$LINENO" "dev_t" "ac_cv_type_dev_t" "$ac_includes_default"
26603 if test "x$ac_cv_type_dev_t" = x""yes; then :
26604
26605 else
26606
26607 cat >>confdefs.h <<_ACEOF
26608 #define dev_t unsigned long
26609 _ACEOF
26610
26611 fi
26612
26613 ac_fn_c_check_type "$LINENO" "daddr_t" "ac_cv_type_daddr_t" "$ac_includes_default"
26614 if test "x$ac_cv_type_daddr_t" = x""yes; then :
26615
26616 else
26617
26618 cat >>confdefs.h <<_ACEOF
26619 #define daddr_t long
26620 _ACEOF
26621
26622 fi
26623
26624 ac_fn_c_check_type "$LINENO" "major_t" "ac_cv_type_major_t" "$ac_includes_default"
26625 if test "x$ac_cv_type_major_t" = x""yes; then :
26626
26627 else
26628
26629 cat >>confdefs.h <<_ACEOF
26630 #define major_t int
26631 _ACEOF
26632
26633 fi
26634
26635 ac_fn_c_check_type "$LINENO" "minor_t" "ac_cv_type_minor_t" "$ac_includes_default"
26636 if test "x$ac_cv_type_minor_t" = x""yes; then :
26637
26638 else
26639
26640 cat >>confdefs.h <<_ACEOF
26641 #define minor_t int
26642 _ACEOF
26643
26644 fi
26645
26646 ac_fn_c_check_type "$LINENO" "ssize_t" "ac_cv_type_ssize_t" "$ac_includes_default"
26647 if test "x$ac_cv_type_ssize_t" = x""yes; then :
26648
26649 else
26650
26651 cat >>confdefs.h <<_ACEOF
26652 #define ssize_t int
26653 _ACEOF
26654
26655 fi
26656
26657 ac_fn_c_check_member "$LINENO" "struct stat" "st_blocks" "ac_cv_member_struct_stat_st_blocks" "$ac_includes_default"
26658 if test "x$ac_cv_member_struct_stat_st_blocks" = x""yes; then :
26659
26660 cat >>confdefs.h <<_ACEOF
26661 #define HAVE_STRUCT_STAT_ST_BLOCKS 1
26662 _ACEOF
26663
26664
26665 $as_echo "#define HAVE_ST_BLOCKS 1" >>confdefs.h
26666
26667 else
26668   case " $LIBOBJS " in
26669   *" fileblocks.$ac_objext "* ) ;;
26670   *) LIBOBJS="$LIBOBJS fileblocks.$ac_objext"
26671  ;;
26672 esac
26673
26674 fi
26675
26676
26677 ac_fn_c_check_member "$LINENO" "struct stat" "st_rdev" "ac_cv_member_struct_stat_st_rdev" "$ac_includes_default"
26678 if test "x$ac_cv_member_struct_stat_st_rdev" = x""yes; then :
26679
26680 cat >>confdefs.h <<_ACEOF
26681 #define HAVE_STRUCT_STAT_ST_RDEV 1
26682 _ACEOF
26683
26684
26685 $as_echo "#define HAVE_ST_RDEV 1" >>confdefs.h
26686
26687 fi
26688
26689
26690 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct tm is in sys/time.h or time.h" >&5
26691 $as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
26692 if test "${ac_cv_struct_tm+set}" = set; then :
26693   $as_echo_n "(cached) " >&6
26694 else
26695   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26696 /* end confdefs.h.  */
26697 #include <sys/types.h>
26698 #include <time.h>
26699
26700 int
26701 main ()
26702 {
26703 struct tm tm;
26704                                      int *p = &tm.tm_sec;
26705                                      return !p;
26706   ;
26707   return 0;
26708 }
26709 _ACEOF
26710 if ac_fn_c_try_compile "$LINENO"; then :
26711   ac_cv_struct_tm=time.h
26712 else
26713   ac_cv_struct_tm=sys/time.h
26714 fi
26715 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26716 fi
26717 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm" >&5
26718 $as_echo "$ac_cv_struct_tm" >&6; }
26719 if test $ac_cv_struct_tm = sys/time.h; then
26720
26721 $as_echo "#define TM_IN_SYS_TIME 1" >>confdefs.h
26722
26723 fi
26724
26725 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
26726 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
26727 if test "${ac_cv_c_const+set}" = set; then :
26728   $as_echo_n "(cached) " >&6
26729 else
26730   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26731 /* end confdefs.h.  */
26732
26733 int
26734 main ()
26735 {
26736 /* FIXME: Include the comments suggested by Paul. */
26737 #ifndef __cplusplus
26738   /* Ultrix mips cc rejects this.  */
26739   typedef int charset[2];
26740   const charset cs;
26741   /* SunOS 4.1.1 cc rejects this.  */
26742   char const *const *pcpcc;
26743   char **ppc;
26744   /* NEC SVR4.0.2 mips cc rejects this.  */
26745   struct point {int x, y;};
26746   static struct point const zero = {0,0};
26747   /* AIX XL C 1.02.0.0 rejects this.
26748      It does not let you subtract one const X* pointer from another in
26749      an arm of an if-expression whose if-part is not a constant
26750      expression */
26751   const char *g = "string";
26752   pcpcc = &g + (g ? g-g : 0);
26753   /* HPUX 7.0 cc rejects these. */
26754   ++pcpcc;
26755   ppc = (char**) pcpcc;
26756   pcpcc = (char const *const *) ppc;
26757   { /* SCO 3.2v4 cc rejects this.  */
26758     char *t;
26759     char const *s = 0 ? (char *) 0 : (char const *) 0;
26760
26761     *t++ = 0;
26762     if (s) return 0;
26763   }
26764   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
26765     int x[] = {25, 17};
26766     const int *foo = &x[0];
26767     ++foo;
26768   }
26769   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
26770     typedef const int *iptr;
26771     iptr p = 0;
26772     ++p;
26773   }
26774   { /* AIX XL C 1.02.0.0 rejects this saying
26775        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
26776     struct s { int j; const int *ap[3]; };
26777     struct s *b; b->j = 5;
26778   }
26779   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
26780     const int foo = 10;
26781     if (!foo) return 0;
26782   }
26783   return !cs[0] && !zero.x;
26784 #endif
26785
26786   ;
26787   return 0;
26788 }
26789 _ACEOF
26790 if ac_fn_c_try_compile "$LINENO"; then :
26791   ac_cv_c_const=yes
26792 else
26793   ac_cv_c_const=no
26794 fi
26795 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26796 fi
26797 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
26798 $as_echo "$ac_cv_c_const" >&6; }
26799 if test $ac_cv_c_const = no; then
26800
26801 $as_echo "#define const /**/" >>confdefs.h
26802
26803 fi
26804
26805
26806 # The cast to long int works around a bug in the HP C Compiler
26807 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
26808 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
26809 # This bug is HP SR number 8606223364.
26810 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of char" >&5
26811 $as_echo_n "checking size of char... " >&6; }
26812 if test "${ac_cv_sizeof_char+set}" = set; then :
26813   $as_echo_n "(cached) " >&6
26814 else
26815   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (char))" "ac_cv_sizeof_char"        "$ac_includes_default"; then :
26816
26817 else
26818   if test "$ac_cv_type_char" = yes; then
26819      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
26820 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
26821 { as_fn_set_status 77
26822 as_fn_error "cannot compute sizeof (char)
26823 See \`config.log' for more details." "$LINENO" 5; }; }
26824    else
26825      ac_cv_sizeof_char=0
26826    fi
26827 fi
26828
26829 fi
26830 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_char" >&5
26831 $as_echo "$ac_cv_sizeof_char" >&6; }
26832
26833
26834
26835 cat >>confdefs.h <<_ACEOF
26836 #define SIZEOF_CHAR $ac_cv_sizeof_char
26837 _ACEOF
26838
26839
26840 # The cast to long int works around a bug in the HP C Compiler
26841 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
26842 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
26843 # This bug is HP SR number 8606223364.
26844 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of short int" >&5
26845 $as_echo_n "checking size of short int... " >&6; }
26846 if test "${ac_cv_sizeof_short_int+set}" = set; then :
26847   $as_echo_n "(cached) " >&6
26848 else
26849   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (short int))" "ac_cv_sizeof_short_int"        "$ac_includes_default"; then :
26850
26851 else
26852   if test "$ac_cv_type_short_int" = yes; then
26853      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
26854 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
26855 { as_fn_set_status 77
26856 as_fn_error "cannot compute sizeof (short int)
26857 See \`config.log' for more details." "$LINENO" 5; }; }
26858    else
26859      ac_cv_sizeof_short_int=0
26860    fi
26861 fi
26862
26863 fi
26864 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_short_int" >&5
26865 $as_echo "$ac_cv_sizeof_short_int" >&6; }
26866
26867
26868
26869 cat >>confdefs.h <<_ACEOF
26870 #define SIZEOF_SHORT_INT $ac_cv_sizeof_short_int
26871 _ACEOF
26872
26873
26874 # The cast to long int works around a bug in the HP C Compiler
26875 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
26876 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
26877 # This bug is HP SR number 8606223364.
26878 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5
26879 $as_echo_n "checking size of int... " >&6; }
26880 if test "${ac_cv_sizeof_int+set}" = set; then :
26881   $as_echo_n "(cached) " >&6
26882 else
26883   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int"        "$ac_includes_default"; then :
26884
26885 else
26886   if test "$ac_cv_type_int" = yes; then
26887      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
26888 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
26889 { as_fn_set_status 77
26890 as_fn_error "cannot compute sizeof (int)
26891 See \`config.log' for more details." "$LINENO" 5; }; }
26892    else
26893      ac_cv_sizeof_int=0
26894    fi
26895 fi
26896
26897 fi
26898 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5
26899 $as_echo "$ac_cv_sizeof_int" >&6; }
26900
26901
26902
26903 cat >>confdefs.h <<_ACEOF
26904 #define SIZEOF_INT $ac_cv_sizeof_int
26905 _ACEOF
26906
26907
26908 # The cast to long int works around a bug in the HP C Compiler
26909 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
26910 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
26911 # This bug is HP SR number 8606223364.
26912 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long int" >&5
26913 $as_echo_n "checking size of long int... " >&6; }
26914 if test "${ac_cv_sizeof_long_int+set}" = set; then :
26915   $as_echo_n "(cached) " >&6
26916 else
26917   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long int))" "ac_cv_sizeof_long_int"        "$ac_includes_default"; then :
26918
26919 else
26920   if test "$ac_cv_type_long_int" = yes; then
26921      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
26922 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
26923 { as_fn_set_status 77
26924 as_fn_error "cannot compute sizeof (long int)
26925 See \`config.log' for more details." "$LINENO" 5; }; }
26926    else
26927      ac_cv_sizeof_long_int=0
26928    fi
26929 fi
26930
26931 fi
26932 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_int" >&5
26933 $as_echo "$ac_cv_sizeof_long_int" >&6; }
26934
26935
26936
26937 cat >>confdefs.h <<_ACEOF
26938 #define SIZEOF_LONG_INT $ac_cv_sizeof_long_int
26939 _ACEOF
26940
26941
26942 # The cast to long int works around a bug in the HP C Compiler
26943 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
26944 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
26945 # This bug is HP SR number 8606223364.
26946 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long long int" >&5
26947 $as_echo_n "checking size of long long int... " >&6; }
26948 if test "${ac_cv_sizeof_long_long_int+set}" = set; then :
26949   $as_echo_n "(cached) " >&6
26950 else
26951   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long long int))" "ac_cv_sizeof_long_long_int"        "$ac_includes_default"; then :
26952
26953 else
26954   if test "$ac_cv_type_long_long_int" = yes; then
26955      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
26956 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
26957 { as_fn_set_status 77
26958 as_fn_error "cannot compute sizeof (long long int)
26959 See \`config.log' for more details." "$LINENO" 5; }; }
26960    else
26961      ac_cv_sizeof_long_long_int=0
26962    fi
26963 fi
26964
26965 fi
26966 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_long_int" >&5
26967 $as_echo "$ac_cv_sizeof_long_long_int" >&6; }
26968
26969
26970
26971 cat >>confdefs.h <<_ACEOF
26972 #define SIZEOF_LONG_LONG_INT $ac_cv_sizeof_long_long_int
26973 _ACEOF
26974
26975
26976 # The cast to long int works around a bug in the HP C Compiler
26977 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
26978 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
26979 # This bug is HP SR number 8606223364.
26980 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int *" >&5
26981 $as_echo_n "checking size of int *... " >&6; }
26982 if test "${ac_cv_sizeof_int_p+set}" = set; then :
26983   $as_echo_n "(cached) " >&6
26984 else
26985   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int *))" "ac_cv_sizeof_int_p"        "$ac_includes_default"; then :
26986
26987 else
26988   if test "$ac_cv_type_int_p" = yes; then
26989      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
26990 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
26991 { as_fn_set_status 77
26992 as_fn_error "cannot compute sizeof (int *)
26993 See \`config.log' for more details." "$LINENO" 5; }; }
26994    else
26995      ac_cv_sizeof_int_p=0
26996    fi
26997 fi
26998
26999 fi
27000 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int_p" >&5
27001 $as_echo "$ac_cv_sizeof_int_p" >&6; }
27002
27003
27004
27005 cat >>confdefs.h <<_ACEOF
27006 #define SIZEOF_INT_P $ac_cv_sizeof_int_p
27007 _ACEOF
27008
27009
27010
27011 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for u_int type" >&5
27012 $as_echo_n "checking for u_int type... " >&6; }
27013 if test "${ac_cv_have_u_int+set}" = set; then :
27014   $as_echo_n "(cached) " >&6
27015 else
27016
27017        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27018 /* end confdefs.h.  */
27019
27020               #include <sys/types.h>
27021
27022 int
27023 main ()
27024 {
27025
27026               u_int a; a = 1;
27027
27028   ;
27029   return 0;
27030 }
27031 _ACEOF
27032 if ac_fn_c_try_compile "$LINENO"; then :
27033
27034               ac_cv_have_u_int="yes"
27035
27036 else
27037
27038               ac_cv_have_u_int="no"
27039
27040
27041 fi
27042 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27043
27044
27045 fi
27046 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_u_int" >&5
27047 $as_echo "$ac_cv_have_u_int" >&6; }
27048 if test "x$ac_cv_have_u_int" = "xyes" ; then
27049    $as_echo "#define HAVE_U_INT 1" >>confdefs.h
27050
27051    have_u_int=1
27052 fi
27053
27054 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for intmax_t type" >&5
27055 $as_echo_n "checking for intmax_t type... " >&6; }
27056 if test "${ac_cv_have_intmax_t+set}" = set; then :
27057   $as_echo_n "(cached) " >&6
27058 else
27059
27060        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27061 /* end confdefs.h.  */
27062
27063               #include <sys/types.h>
27064
27065 int
27066 main ()
27067 {
27068
27069               intmax_t a; a = 1;
27070
27071   ;
27072   return 0;
27073 }
27074 _ACEOF
27075 if ac_fn_c_try_compile "$LINENO"; then :
27076
27077               ac_cv_have_intmax_t="yes"
27078
27079 else
27080
27081               cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27082 /* end confdefs.h.  */
27083
27084                      #include <stdint.h>
27085
27086 int
27087 main ()
27088 {
27089
27090                      intmax_t a; a = 1;
27091
27092   ;
27093   return 0;
27094 }
27095 _ACEOF
27096 if ac_fn_c_try_compile "$LINENO"; then :
27097
27098                      ac_cv_have_intmax_t="yes"
27099
27100 else
27101
27102                      ac_cv_have_intmax_t="no"
27103
27104
27105 fi
27106 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27107
27108
27109 fi
27110 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27111
27112
27113 fi
27114 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_intmax_t" >&5
27115 $as_echo "$ac_cv_have_intmax_t" >&6; }
27116 if test "x$ac_cv_have_intmax_t" = "xyes" ; then
27117    $as_echo "#define HAVE_INTMAX_T 1" >>confdefs.h
27118
27119    have_intmax_t=1
27120 fi
27121
27122 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for u_intmax_t type" >&5
27123 $as_echo_n "checking for u_intmax_t type... " >&6; }
27124 if test "${ac_cv_have_u_intmax_t+set}" = set; then :
27125   $as_echo_n "(cached) " >&6
27126 else
27127
27128        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27129 /* end confdefs.h.  */
27130
27131               #include <sys/types.h>
27132
27133 int
27134 main ()
27135 {
27136
27137               u_intmax_t a; a = 1;
27138
27139   ;
27140   return 0;
27141 }
27142 _ACEOF
27143 if ac_fn_c_try_compile "$LINENO"; then :
27144
27145               ac_cv_have_u_intmax_t="yes"
27146
27147 else
27148
27149               cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27150 /* end confdefs.h.  */
27151
27152                      #include <stdint.h>
27153
27154 int
27155 main ()
27156 {
27157
27158                     u_intmax_t a; a = 1;
27159
27160   ;
27161   return 0;
27162 }
27163 _ACEOF
27164 if ac_fn_c_try_compile "$LINENO"; then :
27165
27166                     ac_cv_have_u_intmax_t="yes"
27167
27168 else
27169
27170                     ac_cv_have_u_intmax_t="no"
27171
27172
27173 fi
27174 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27175
27176
27177 fi
27178 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27179
27180
27181 fi
27182 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_u_intmax_t" >&5
27183 $as_echo "$ac_cv_have_u_intmax_t" >&6; }
27184 if test "x$ac_cv_have_u_intmax_t" = "xyes" ; then
27185    $as_echo "#define HAVE_U_INTMAX_T 1" >>confdefs.h
27186
27187    have_u_intmax_t=1
27188 fi
27189
27190 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for intXX_t types" >&5
27191 $as_echo_n "checking for intXX_t types... " >&6; }
27192 if test "${ac_cv_have_intxx_t+set}" = set; then :
27193   $as_echo_n "(cached) " >&6
27194 else
27195
27196        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27197 /* end confdefs.h.  */
27198
27199               #include <sys/types.h>
27200
27201 int
27202 main ()
27203 {
27204
27205               int8_t a; int16_t b; int32_t c; a = b = c = 1;
27206
27207   ;
27208   return 0;
27209 }
27210 _ACEOF
27211 if ac_fn_c_try_compile "$LINENO"; then :
27212
27213               ac_cv_have_intxx_t="yes"
27214
27215 else
27216
27217               ac_cv_have_intxx_t="no"
27218
27219
27220 fi
27221 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27222
27223
27224 fi
27225 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_intxx_t" >&5
27226 $as_echo "$ac_cv_have_intxx_t" >&6; }
27227 if test "x$ac_cv_have_intxx_t" = "xyes" ; then
27228    $as_echo "#define HAVE_INTXX_T 1" >>confdefs.h
27229
27230    have_intxx_t=1
27231 fi
27232
27233 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for int64_t type" >&5
27234 $as_echo_n "checking for int64_t type... " >&6; }
27235 if test "${ac_cv_have_int64_t+set}" = set; then :
27236   $as_echo_n "(cached) " >&6
27237 else
27238
27239        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27240 /* end confdefs.h.  */
27241
27242               #include <sys/types.h>
27243
27244 int
27245 main ()
27246 {
27247
27248               int64_t a; a = 1;
27249
27250   ;
27251   return 0;
27252 }
27253 _ACEOF
27254 if ac_fn_c_try_compile "$LINENO"; then :
27255
27256               ac_cv_have_int64_t="yes"
27257
27258 else
27259
27260               ac_cv_have_int64_t="no"
27261
27262
27263 fi
27264 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27265
27266
27267 fi
27268 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_int64_t" >&5
27269 $as_echo "$ac_cv_have_int64_t" >&6; }
27270 if test "x$ac_cv_have_int64_t" = "xyes" ; then
27271    $as_echo "#define HAVE_INT64_T 1" >>confdefs.h
27272
27273    have_int64_t=1
27274 fi
27275
27276 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for u_intXX_t types" >&5
27277 $as_echo_n "checking for u_intXX_t types... " >&6; }
27278 if test "${ac_cv_have_u_intxx_t+set}" = set; then :
27279   $as_echo_n "(cached) " >&6
27280 else
27281
27282        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27283 /* end confdefs.h.  */
27284
27285               #include <sys/types.h>
27286
27287 int
27288 main ()
27289 {
27290
27291               u_int8_t a; u_int16_t b; u_int32_t c; a = b = c = 1;
27292
27293   ;
27294   return 0;
27295 }
27296 _ACEOF
27297 if ac_fn_c_try_compile "$LINENO"; then :
27298
27299              ac_cv_have_u_intxx_t="yes"
27300
27301 else
27302
27303              ac_cv_have_u_intxx_t="no"
27304
27305
27306 fi
27307 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27308
27309
27310 fi
27311 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_u_intxx_t" >&5
27312 $as_echo "$ac_cv_have_u_intxx_t" >&6; }
27313 if test "x$ac_cv_have_u_intxx_t" = "xyes" ; then
27314    $as_echo "#define HAVE_U_INTXX_T 1" >>confdefs.h
27315
27316    have_u_intxx_t=1
27317 fi
27318
27319 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for u_int64_t types" >&5
27320 $as_echo_n "checking for u_int64_t types... " >&6; }
27321 if test "${ac_cv_have_u_int64_t+set}" = set; then :
27322   $as_echo_n "(cached) " >&6
27323 else
27324
27325        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27326 /* end confdefs.h.  */
27327
27328               #include <sys/types.h>
27329
27330 int
27331 main ()
27332 {
27333
27334               u_int64_t a; a = 1;
27335
27336   ;
27337   return 0;
27338 }
27339 _ACEOF
27340 if ac_fn_c_try_compile "$LINENO"; then :
27341
27342              ac_cv_have_u_int64_t="yes"
27343
27344 else
27345
27346              ac_cv_have_u_int64_t="no"
27347
27348
27349 fi
27350 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27351
27352
27353 fi
27354 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_u_int64_t" >&5
27355 $as_echo "$ac_cv_have_u_int64_t" >&6; }
27356 if test "x$ac_cv_have_u_int64_t" = "xyes" ; then
27357    $as_echo "#define HAVE_U_INT64_T 1" >>confdefs.h
27358
27359    have_u_int64_t=1
27360 fi
27361
27362 if (test -z "$have_u_intxx_t" || test -z "$have_intxx_t" && \
27363     test "x$ac_cv_header_sys_bitypes_h" = "xyes")
27364 then
27365    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for intXX_t and u_intXX_t types in sys/bitypes.h" >&5
27366 $as_echo_n "checking for intXX_t and u_intXX_t types in sys/bitypes.h... " >&6; }
27367    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27368 /* end confdefs.h.  */
27369
27370           #include <sys/bitypes.h>
27371
27372 int
27373 main ()
27374 {
27375
27376           int8_t a; int16_t b; int32_t c;
27377           u_int8_t e; u_int16_t f; u_int32_t g;
27378           a = b = c = e = f = g = 1;
27379
27380   ;
27381   return 0;
27382 }
27383 _ACEOF
27384 if ac_fn_c_try_compile "$LINENO"; then :
27385
27386           $as_echo "#define HAVE_U_INTXX_T 1" >>confdefs.h
27387
27388           $as_echo "#define HAVE_INTXX_T 1" >>confdefs.h
27389
27390           $as_echo "#define HAVE_SYS_BITYPES_H 1" >>confdefs.h
27391
27392           { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
27393 $as_echo "yes" >&6; }
27394
27395 else
27396
27397           { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27398 $as_echo "no" >&6; }
27399
27400
27401 fi
27402 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27403 fi
27404
27405 if test -z "$have_u_intxx_t" ; then
27406    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uintXX_t types" >&5
27407 $as_echo_n "checking for uintXX_t types... " >&6; }
27408 if test "${ac_cv_have_uintxx_t+set}" = set; then :
27409   $as_echo_n "(cached) " >&6
27410 else
27411
27412           cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27413 /* end confdefs.h.  */
27414
27415                  #include <sys/types.h>
27416
27417 int
27418 main ()
27419 {
27420
27421                  uint8_t a; uint16_t b;
27422                  uint32_t c; a = b = c = 1;
27423
27424   ;
27425   return 0;
27426 }
27427 _ACEOF
27428 if ac_fn_c_try_compile "$LINENO"; then :
27429
27430                 ac_cv_have_uintxx_t="yes"
27431
27432 else
27433
27434                 ac_cv_have_uintxx_t="no"
27435
27436
27437 fi
27438 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27439
27440
27441 fi
27442 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_uintxx_t" >&5
27443 $as_echo "$ac_cv_have_uintxx_t" >&6; }
27444    if test "x$ac_cv_have_uintxx_t" = "xyes" ; then
27445       $as_echo "#define HAVE_UINTXX_T 1" >>confdefs.h
27446
27447    fi
27448 fi
27449
27450 if (test -z "$have_u_int64_t" || test -z "$have_int64_t" && \
27451     test "x$ac_cv_header_sys_bitypes_h" = "xyes")
27452 then
27453    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for int64_t and u_int64_t types in sys/bitypes.h" >&5
27454 $as_echo_n "checking for int64_t and u_int64_t types in sys/bitypes.h... " >&6; }
27455    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27456 /* end confdefs.h.  */
27457
27458           #include <sys/bitypes.h>
27459
27460 int
27461 main ()
27462 {
27463
27464           int64_t a; u_int64_t b;
27465           a = b = 1;
27466
27467   ;
27468   return 0;
27469 }
27470 _ACEOF
27471 if ac_fn_c_try_compile "$LINENO"; then :
27472
27473           $as_echo "#define HAVE_U_INT64_T 1" >>confdefs.h
27474
27475           $as_echo "#define HAVE_INT64_T 1" >>confdefs.h
27476
27477           { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
27478 $as_echo "yes" >&6; }
27479
27480 else
27481
27482           { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27483 $as_echo "no" >&6; }
27484
27485
27486 fi
27487 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27488 fi
27489
27490 if (test -z "$have_uintxx_t" && \
27491     test "x$ac_cv_header_sys_bitypes_h" = "xyes")
27492 then
27493    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uintXX_t types in sys/bitypes.h" >&5
27494 $as_echo_n "checking for uintXX_t types in sys/bitypes.h... " >&6; }
27495    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27496 /* end confdefs.h.  */
27497
27498           #include <sys/bitypes.h>
27499
27500 int
27501 main ()
27502 {
27503
27504           uint8_t a; uint16_t b;
27505           uint32_t c; a = b = c = 1;
27506
27507   ;
27508   return 0;
27509 }
27510 _ACEOF
27511 if ac_fn_c_try_compile "$LINENO"; then :
27512
27513           $as_echo "#define HAVE_UINTXX_T 1" >>confdefs.h
27514
27515           { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
27516 $as_echo "yes" >&6; }
27517
27518 else
27519
27520           { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27521 $as_echo "no" >&6; }
27522
27523
27524 fi
27525 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27526 fi
27527
27528 for ac_func in \
27529    fork \
27530    getcwd \
27531    gethostname \
27532    getpid \
27533    gettimeofday \
27534    setpgid \
27535    setpgrp \
27536    setsid \
27537    signal \
27538    strerror \
27539    strncmp \
27540    strncpy \
27541    vfprintf \
27542
27543 do :
27544   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
27545 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
27546 eval as_val=\$$as_ac_var
27547    if test "x$as_val" = x""yes; then :
27548   cat >>confdefs.h <<_ACEOF
27549 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
27550 _ACEOF
27551
27552 else
27553   echo 'configure: cannot find needed function.'; exit 1
27554
27555 fi
27556 done
27557
27558
27559 for ac_func in getpagesize
27560 do :
27561   ac_fn_c_check_func "$LINENO" "getpagesize" "ac_cv_func_getpagesize"
27562 if test "x$ac_cv_func_getpagesize" = x""yes; then :
27563   cat >>confdefs.h <<_ACEOF
27564 #define HAVE_GETPAGESIZE 1
27565 _ACEOF
27566
27567 $as_echo "#define HAVE_GETPAGESIZE 1" >>confdefs.h
27568
27569 fi
27570 done
27571
27572
27573 for ac_func in malloc_trim
27574 do :
27575   ac_fn_c_check_func "$LINENO" "malloc_trim" "ac_cv_func_malloc_trim"
27576 if test "x$ac_cv_func_malloc_trim" = x""yes; then :
27577   cat >>confdefs.h <<_ACEOF
27578 #define HAVE_MALLOC_TRIM 1
27579 _ACEOF
27580
27581 $as_echo "#define HAVE_MALLOC_TRIM 1" >>confdefs.h
27582
27583 fi
27584 done
27585
27586
27587 for ac_func in fchdir
27588 do :
27589   ac_fn_c_check_func "$LINENO" "fchdir" "ac_cv_func_fchdir"
27590 if test "x$ac_cv_func_fchdir" = x""yes; then :
27591   cat >>confdefs.h <<_ACEOF
27592 #define HAVE_FCHDIR 1
27593 _ACEOF
27594  $as_echo "#define HAVE_FCHDIR 1" >>confdefs.h
27595
27596 fi
27597 done
27598
27599 for ac_func in strtoll
27600 do :
27601   ac_fn_c_check_func "$LINENO" "strtoll" "ac_cv_func_strtoll"
27602 if test "x$ac_cv_func_strtoll" = x""yes; then :
27603   cat >>confdefs.h <<_ACEOF
27604 #define HAVE_STRTOLL 1
27605 _ACEOF
27606  $as_echo "#define HAVE_STRTOLL 1" >>confdefs.h
27607
27608 fi
27609 done
27610
27611 for ac_func in posix_fadvise
27612 do :
27613   ac_fn_c_check_func "$LINENO" "posix_fadvise" "ac_cv_func_posix_fadvise"
27614 if test "x$ac_cv_func_posix_fadvise" = x""yes; then :
27615   cat >>confdefs.h <<_ACEOF
27616 #define HAVE_POSIX_FADVISE 1
27617 _ACEOF
27618
27619 fi
27620 done
27621
27622 for ac_func in fdatasync
27623 do :
27624   ac_fn_c_check_func "$LINENO" "fdatasync" "ac_cv_func_fdatasync"
27625 if test "x$ac_cv_func_fdatasync" = x""yes; then :
27626   cat >>confdefs.h <<_ACEOF
27627 #define HAVE_FDATASYNC 1
27628 _ACEOF
27629
27630 fi
27631 done
27632
27633
27634 for ac_func in chflags
27635 do :
27636   ac_fn_c_check_func "$LINENO" "chflags" "ac_cv_func_chflags"
27637 if test "x$ac_cv_func_chflags" = x""yes; then :
27638   cat >>confdefs.h <<_ACEOF
27639 #define HAVE_CHFLAGS 1
27640 _ACEOF
27641
27642 fi
27643 done
27644
27645
27646 for ac_func in snprintf vsnprintf gethostid fseeko
27647 do :
27648   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
27649 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
27650 eval as_val=\$$as_ac_var
27651    if test "x$as_val" = x""yes; then :
27652   cat >>confdefs.h <<_ACEOF
27653 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
27654 _ACEOF
27655
27656 fi
27657 done
27658
27659
27660 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for va_copy" >&5
27661 $as_echo_n "checking for va_copy... " >&6; }
27662 if test "${ba_cv_va_copy+set}" = set; then :
27663   $as_echo_n "(cached) " >&6
27664 else
27665
27666        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27667 /* end confdefs.h.  */
27668
27669               #include <stdarg.h>
27670               void use_va_copy(va_list args){va_list args2; va_copy(args2,args); va_end(args2);}
27671               void call_use_va_copy(int junk,...){va_list args; va_start(args,junk); use_va_copy(args); va_end(args);}
27672
27673 int
27674 main ()
27675 {
27676
27677               call_use_va_copy(1,2,3)
27678
27679   ;
27680   return 0;
27681 }
27682 _ACEOF
27683 if ac_fn_c_try_link "$LINENO"; then :
27684
27685               ba_cv_va_copy=yes,
27686
27687 else
27688
27689               ba_cv_va_copy=no
27690
27691
27692 fi
27693 rm -f core conftest.err conftest.$ac_objext \
27694     conftest$ac_exeext conftest.$ac_ext
27695
27696
27697 fi
27698 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ba_cv_va_copy" >&5
27699 $as_echo "$ba_cv_va_copy" >&6; }
27700 test $ba_cv_va_copy = yes &&
27701 $as_echo "#define HAVE_VA_COPY 1" >>confdefs.h
27702
27703
27704 for ac_func in localtime_r readdir_r strerror_r gethostbyname_r
27705 do :
27706   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
27707 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
27708 eval as_val=\$$as_ac_var
27709    if test "x$as_val" = x""yes; then :
27710   cat >>confdefs.h <<_ACEOF
27711 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
27712 _ACEOF
27713
27714 fi
27715 done
27716
27717
27718 # If resolver functions are not in libc check for -lnsl or -lresolv.
27719 ac_fn_c_check_func "$LINENO" "gethostbyname_r" "ac_cv_func_gethostbyname_r"
27720 if test "x$ac_cv_func_gethostbyname_r" = x""yes; then :
27721   { $as_echo "$as_me:${as_lineno-$LINENO}: result: using libc's resolver" >&5
27722 $as_echo "using libc's resolver" >&6; }
27723 else
27724   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname_r in -lnsl" >&5
27725 $as_echo_n "checking for gethostbyname_r in -lnsl... " >&6; }
27726 if test "${ac_cv_lib_nsl_gethostbyname_r+set}" = set; then :
27727   $as_echo_n "(cached) " >&6
27728 else
27729   ac_check_lib_save_LIBS=$LIBS
27730 LIBS="-lnsl  $LIBS"
27731 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27732 /* end confdefs.h.  */
27733
27734 /* Override any GCC internal prototype to avoid an error.
27735    Use char because int might match the return type of a GCC
27736    builtin and then its argument prototype would still apply.  */
27737 #ifdef __cplusplus
27738 extern "C"
27739 #endif
27740 char gethostbyname_r ();
27741 int
27742 main ()
27743 {
27744 return gethostbyname_r ();
27745   ;
27746   return 0;
27747 }
27748 _ACEOF
27749 if ac_fn_c_try_link "$LINENO"; then :
27750   ac_cv_lib_nsl_gethostbyname_r=yes
27751 else
27752   ac_cv_lib_nsl_gethostbyname_r=no
27753 fi
27754 rm -f core conftest.err conftest.$ac_objext \
27755     conftest$ac_exeext conftest.$ac_ext
27756 LIBS=$ac_check_lib_save_LIBS
27757 fi
27758 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_gethostbyname_r" >&5
27759 $as_echo "$ac_cv_lib_nsl_gethostbyname_r" >&6; }
27760 if test "x$ac_cv_lib_nsl_gethostbyname_r" = x""yes; then :
27761   cat >>confdefs.h <<_ACEOF
27762 #define HAVE_LIBNSL 1
27763 _ACEOF
27764
27765   LIBS="-lnsl $LIBS"
27766
27767 fi
27768
27769     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname_r in -lresolv" >&5
27770 $as_echo_n "checking for gethostbyname_r in -lresolv... " >&6; }
27771 if test "${ac_cv_lib_resolv_gethostbyname_r+set}" = set; then :
27772   $as_echo_n "(cached) " >&6
27773 else
27774   ac_check_lib_save_LIBS=$LIBS
27775 LIBS="-lresolv  $LIBS"
27776 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27777 /* end confdefs.h.  */
27778
27779 /* Override any GCC internal prototype to avoid an error.
27780    Use char because int might match the return type of a GCC
27781    builtin and then its argument prototype would still apply.  */
27782 #ifdef __cplusplus
27783 extern "C"
27784 #endif
27785 char gethostbyname_r ();
27786 int
27787 main ()
27788 {
27789 return gethostbyname_r ();
27790   ;
27791   return 0;
27792 }
27793 _ACEOF
27794 if ac_fn_c_try_link "$LINENO"; then :
27795   ac_cv_lib_resolv_gethostbyname_r=yes
27796 else
27797   ac_cv_lib_resolv_gethostbyname_r=no
27798 fi
27799 rm -f core conftest.err conftest.$ac_objext \
27800     conftest$ac_exeext conftest.$ac_ext
27801 LIBS=$ac_check_lib_save_LIBS
27802 fi
27803 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_resolv_gethostbyname_r" >&5
27804 $as_echo "$ac_cv_lib_resolv_gethostbyname_r" >&6; }
27805 if test "x$ac_cv_lib_resolv_gethostbyname_r" = x""yes; then :
27806   cat >>confdefs.h <<_ACEOF
27807 #define HAVE_LIBRESOLV 1
27808 _ACEOF
27809
27810   LIBS="-lresolv $LIBS"
27811
27812 fi
27813
27814 fi
27815
27816
27817 for ac_func in inet_pton
27818 do :
27819   ac_fn_c_check_func "$LINENO" "inet_pton" "ac_cv_func_inet_pton"
27820 if test "x$ac_cv_func_inet_pton" = x""yes; then :
27821   cat >>confdefs.h <<_ACEOF
27822 #define HAVE_INET_PTON 1
27823 _ACEOF
27824  $as_echo "#define HAVE_INET_PTON 1" >>confdefs.h
27825
27826 fi
27827 done
27828
27829 for ac_func in inet_ntop
27830 do :
27831   ac_fn_c_check_func "$LINENO" "inet_ntop" "ac_cv_func_inet_ntop"
27832 if test "x$ac_cv_func_inet_ntop" = x""yes; then :
27833   cat >>confdefs.h <<_ACEOF
27834 #define HAVE_INET_NTOP 1
27835 _ACEOF
27836  $as_echo "#define HAVE_INET_NTOP 1" >>confdefs.h
27837
27838 fi
27839 done
27840
27841 for ac_func in gethostbyname2
27842 do :
27843   ac_fn_c_check_func "$LINENO" "gethostbyname2" "ac_cv_func_gethostbyname2"
27844 if test "x$ac_cv_func_gethostbyname2" = x""yes; then :
27845   cat >>confdefs.h <<_ACEOF
27846 #define HAVE_GETHOSTBYNAME2 1
27847 _ACEOF
27848  $as_echo "#define HAVE_GETHOSTBYNAME2 1" >>confdefs.h
27849
27850 fi
27851 done
27852
27853
27854 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct sockaddr has a sa_len field" >&5
27855 $as_echo_n "checking for struct sockaddr has a sa_len field... " >&6; }
27856 if test "${ac_cv_struct_sockaddr_sa_len+set}" = set; then :
27857   $as_echo_n "(cached) " >&6
27858 else
27859
27860        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27861 /* end confdefs.h.  */
27862
27863               #include <sys/socket.h>
27864
27865 int
27866 main ()
27867 {
27868
27869               struct sockaddr s; s.sa_len;
27870
27871   ;
27872   return 0;
27873 }
27874 _ACEOF
27875 if ac_fn_c_try_compile "$LINENO"; then :
27876
27877              ac_cv_struct_sockaddr_sa_len=yes
27878
27879 else
27880   ac_cv_struct_sockaddr_sa_len=no
27881
27882
27883 fi
27884 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27885
27886
27887 fi
27888 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_sockaddr_sa_len" >&5
27889 $as_echo "$ac_cv_struct_sockaddr_sa_len" >&6; }
27890
27891 if test $ac_cv_struct_sockaddr_sa_len = yes; then
27892
27893 $as_echo "#define HAVE_SA_LEN 1" >>confdefs.h
27894
27895 fi
27896
27897 for ac_func in strftime
27898 do :
27899   ac_fn_c_check_func "$LINENO" "strftime" "ac_cv_func_strftime"
27900 if test "x$ac_cv_func_strftime" = x""yes; then :
27901   cat >>confdefs.h <<_ACEOF
27902 #define HAVE_STRFTIME 1
27903 _ACEOF
27904
27905 else
27906   # strftime is in -lintl on SCO UNIX.
27907 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for strftime in -lintl" >&5
27908 $as_echo_n "checking for strftime in -lintl... " >&6; }
27909 if test "${ac_cv_lib_intl_strftime+set}" = set; then :
27910   $as_echo_n "(cached) " >&6
27911 else
27912   ac_check_lib_save_LIBS=$LIBS
27913 LIBS="-lintl  $LIBS"
27914 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27915 /* end confdefs.h.  */
27916
27917 /* Override any GCC internal prototype to avoid an error.
27918    Use char because int might match the return type of a GCC
27919    builtin and then its argument prototype would still apply.  */
27920 #ifdef __cplusplus
27921 extern "C"
27922 #endif
27923 char strftime ();
27924 int
27925 main ()
27926 {
27927 return strftime ();
27928   ;
27929   return 0;
27930 }
27931 _ACEOF
27932 if ac_fn_c_try_link "$LINENO"; then :
27933   ac_cv_lib_intl_strftime=yes
27934 else
27935   ac_cv_lib_intl_strftime=no
27936 fi
27937 rm -f core conftest.err conftest.$ac_objext \
27938     conftest$ac_exeext conftest.$ac_ext
27939 LIBS=$ac_check_lib_save_LIBS
27940 fi
27941 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_intl_strftime" >&5
27942 $as_echo "$ac_cv_lib_intl_strftime" >&6; }
27943 if test "x$ac_cv_lib_intl_strftime" = x""yes; then :
27944   $as_echo "#define HAVE_STRFTIME 1" >>confdefs.h
27945
27946 LIBS="-lintl $LIBS"
27947 fi
27948
27949 fi
27950 done
27951
27952 for ac_func in vprintf
27953 do :
27954   ac_fn_c_check_func "$LINENO" "vprintf" "ac_cv_func_vprintf"
27955 if test "x$ac_cv_func_vprintf" = x""yes; then :
27956   cat >>confdefs.h <<_ACEOF
27957 #define HAVE_VPRINTF 1
27958 _ACEOF
27959
27960 ac_fn_c_check_func "$LINENO" "_doprnt" "ac_cv_func__doprnt"
27961 if test "x$ac_cv_func__doprnt" = x""yes; then :
27962
27963 $as_echo "#define HAVE_DOPRNT 1" >>confdefs.h
27964
27965 fi
27966
27967 fi
27968 done
27969
27970
27971 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
27972 # for constant arguments.  Useless!
27973 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5
27974 $as_echo_n "checking for working alloca.h... " >&6; }
27975 if test "${ac_cv_working_alloca_h+set}" = set; then :
27976   $as_echo_n "(cached) " >&6
27977 else
27978   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27979 /* end confdefs.h.  */
27980 #include <alloca.h>
27981 int
27982 main ()
27983 {
27984 char *p = (char *) alloca (2 * sizeof (int));
27985                           if (p) return 0;
27986   ;
27987   return 0;
27988 }
27989 _ACEOF
27990 if ac_fn_c_try_link "$LINENO"; then :
27991   ac_cv_working_alloca_h=yes
27992 else
27993   ac_cv_working_alloca_h=no
27994 fi
27995 rm -f core conftest.err conftest.$ac_objext \
27996     conftest$ac_exeext conftest.$ac_ext
27997 fi
27998 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5
27999 $as_echo "$ac_cv_working_alloca_h" >&6; }
28000 if test $ac_cv_working_alloca_h = yes; then
28001
28002 $as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h
28003
28004 fi
28005
28006 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5
28007 $as_echo_n "checking for alloca... " >&6; }
28008 if test "${ac_cv_func_alloca_works+set}" = set; then :
28009   $as_echo_n "(cached) " >&6
28010 else
28011   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28012 /* end confdefs.h.  */
28013 #ifdef __GNUC__
28014 # define alloca __builtin_alloca
28015 #else
28016 # ifdef _MSC_VER
28017 #  include <malloc.h>
28018 #  define alloca _alloca
28019 # else
28020 #  ifdef HAVE_ALLOCA_H
28021 #   include <alloca.h>
28022 #  else
28023 #   ifdef _AIX
28024  #pragma alloca
28025 #   else
28026 #    ifndef alloca /* predefined by HP cc +Olibcalls */
28027 char *alloca ();
28028 #    endif
28029 #   endif
28030 #  endif
28031 # endif
28032 #endif
28033
28034 int
28035 main ()
28036 {
28037 char *p = (char *) alloca (1);
28038                                     if (p) return 0;
28039   ;
28040   return 0;
28041 }
28042 _ACEOF
28043 if ac_fn_c_try_link "$LINENO"; then :
28044   ac_cv_func_alloca_works=yes
28045 else
28046   ac_cv_func_alloca_works=no
28047 fi
28048 rm -f core conftest.err conftest.$ac_objext \
28049     conftest$ac_exeext conftest.$ac_ext
28050 fi
28051 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5
28052 $as_echo "$ac_cv_func_alloca_works" >&6; }
28053
28054 if test $ac_cv_func_alloca_works = yes; then
28055
28056 $as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
28057
28058 else
28059   # The SVR3 libPW and SVR4 libucb both contain incompatible functions
28060 # that cause trouble.  Some versions do not even contain alloca or
28061 # contain a buggy version.  If you still want to use their alloca,
28062 # use ar to extract alloca.o from them instead of compiling alloca.c.
28063
28064 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
28065
28066 $as_echo "#define C_ALLOCA 1" >>confdefs.h
28067
28068
28069 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether \`alloca.c' needs Cray hooks" >&5
28070 $as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; }
28071 if test "${ac_cv_os_cray+set}" = set; then :
28072   $as_echo_n "(cached) " >&6
28073 else
28074   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28075 /* end confdefs.h.  */
28076 #if defined CRAY && ! defined CRAY2
28077 webecray
28078 #else
28079 wenotbecray
28080 #endif
28081
28082 _ACEOF
28083 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
28084   $EGREP "webecray" >/dev/null 2>&1; then :
28085   ac_cv_os_cray=yes
28086 else
28087   ac_cv_os_cray=no
28088 fi
28089 rm -f conftest*
28090
28091 fi
28092 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5
28093 $as_echo "$ac_cv_os_cray" >&6; }
28094 if test $ac_cv_os_cray = yes; then
28095   for ac_func in _getb67 GETB67 getb67; do
28096     as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
28097 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
28098 eval as_val=\$$as_ac_var
28099    if test "x$as_val" = x""yes; then :
28100
28101 cat >>confdefs.h <<_ACEOF
28102 #define CRAY_STACKSEG_END $ac_func
28103 _ACEOF
28104
28105     break
28106 fi
28107
28108   done
28109 fi
28110
28111 { $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5
28112 $as_echo_n "checking stack direction for C alloca... " >&6; }
28113 if test "${ac_cv_c_stack_direction+set}" = set; then :
28114   $as_echo_n "(cached) " >&6
28115 else
28116   if test "$cross_compiling" = yes; then :
28117   ac_cv_c_stack_direction=0
28118 else
28119   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28120 /* end confdefs.h.  */
28121 $ac_includes_default
28122 int
28123 find_stack_direction ()
28124 {
28125   static char *addr = 0;
28126   auto char dummy;
28127   if (addr == 0)
28128     {
28129       addr = &dummy;
28130       return find_stack_direction ();
28131     }
28132   else
28133     return (&dummy > addr) ? 1 : -1;
28134 }
28135
28136 int
28137 main ()
28138 {
28139   return find_stack_direction () < 0;
28140 }
28141 _ACEOF
28142 if ac_fn_c_try_run "$LINENO"; then :
28143   ac_cv_c_stack_direction=1
28144 else
28145   ac_cv_c_stack_direction=-1
28146 fi
28147 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
28148   conftest.$ac_objext conftest.beam conftest.$ac_ext
28149 fi
28150
28151 fi
28152 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5
28153 $as_echo "$ac_cv_c_stack_direction" >&6; }
28154 cat >>confdefs.h <<_ACEOF
28155 #define STACK_DIRECTION $ac_cv_c_stack_direction
28156 _ACEOF
28157
28158
28159 fi
28160
28161 # getmntent is in the standard C library on UNICOS, in -lsun on Irix 4,
28162 # -lseq on Dynix/PTX, -lgen on Unixware.
28163 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing getmntent" >&5
28164 $as_echo_n "checking for library containing getmntent... " >&6; }
28165 if test "${ac_cv_search_getmntent+set}" = set; then :
28166   $as_echo_n "(cached) " >&6
28167 else
28168   ac_func_search_save_LIBS=$LIBS
28169 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28170 /* end confdefs.h.  */
28171
28172 /* Override any GCC internal prototype to avoid an error.
28173    Use char because int might match the return type of a GCC
28174    builtin and then its argument prototype would still apply.  */
28175 #ifdef __cplusplus
28176 extern "C"
28177 #endif
28178 char getmntent ();
28179 int
28180 main ()
28181 {
28182 return getmntent ();
28183   ;
28184   return 0;
28185 }
28186 _ACEOF
28187 for ac_lib in '' sun seq gen; do
28188   if test -z "$ac_lib"; then
28189     ac_res="none required"
28190   else
28191     ac_res=-l$ac_lib
28192     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
28193   fi
28194   if ac_fn_c_try_link "$LINENO"; then :
28195   ac_cv_search_getmntent=$ac_res
28196 fi
28197 rm -f core conftest.err conftest.$ac_objext \
28198     conftest$ac_exeext
28199   if test "${ac_cv_search_getmntent+set}" = set; then :
28200   break
28201 fi
28202 done
28203 if test "${ac_cv_search_getmntent+set}" = set; then :
28204
28205 else
28206   ac_cv_search_getmntent=no
28207 fi
28208 rm conftest.$ac_ext
28209 LIBS=$ac_func_search_save_LIBS
28210 fi
28211 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_getmntent" >&5
28212 $as_echo "$ac_cv_search_getmntent" >&6; }
28213 ac_res=$ac_cv_search_getmntent
28214 if test "$ac_res" != no; then :
28215   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
28216   ac_cv_func_getmntent=yes
28217
28218 $as_echo "#define HAVE_GETMNTENT 1" >>confdefs.h
28219
28220 else
28221   ac_cv_func_getmntent=no
28222 fi
28223
28224
28225 for ac_func in getmntinfo
28226 do :
28227   ac_fn_c_check_func "$LINENO" "getmntinfo" "ac_cv_func_getmntinfo"
28228 if test "x$ac_cv_func_getmntinfo" = x""yes; then :
28229   cat >>confdefs.h <<_ACEOF
28230 #define HAVE_GETMNTINFO 1
28231 _ACEOF
28232  $as_echo "#define HAVE_GETMNTINFO 1" >>confdefs.h
28233
28234 fi
28235 done
28236
28237 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether closedir returns void" >&5
28238 $as_echo_n "checking whether closedir returns void... " >&6; }
28239 if test "${ac_cv_func_closedir_void+set}" = set; then :
28240   $as_echo_n "(cached) " >&6
28241 else
28242   if test "$cross_compiling" = yes; then :
28243   ac_cv_func_closedir_void=yes
28244 else
28245   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28246 /* end confdefs.h.  */
28247 $ac_includes_default
28248 #include <$ac_header_dirent>
28249 #ifndef __cplusplus
28250 int closedir ();
28251 #endif
28252
28253 int
28254 main ()
28255 {
28256 return closedir (opendir (".")) != 0;
28257   ;
28258   return 0;
28259 }
28260 _ACEOF
28261 if ac_fn_c_try_run "$LINENO"; then :
28262   ac_cv_func_closedir_void=no
28263 else
28264   ac_cv_func_closedir_void=yes
28265 fi
28266 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
28267   conftest.$ac_objext conftest.beam conftest.$ac_ext
28268 fi
28269
28270 fi
28271 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_closedir_void" >&5
28272 $as_echo "$ac_cv_func_closedir_void" >&6; }
28273 if test $ac_cv_func_closedir_void = yes; then
28274
28275 $as_echo "#define CLOSEDIR_VOID 1" >>confdefs.h
28276
28277 fi
28278
28279 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether setpgrp takes no argument" >&5
28280 $as_echo_n "checking whether setpgrp takes no argument... " >&6; }
28281 if test "${ac_cv_func_setpgrp_void+set}" = set; then :
28282   $as_echo_n "(cached) " >&6
28283 else
28284   if test "$cross_compiling" = yes; then :
28285   as_fn_error "cannot check setpgrp when cross compiling" "$LINENO" 5
28286 else
28287   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28288 /* end confdefs.h.  */
28289 $ac_includes_default
28290 int
28291 main ()
28292 {
28293 /* If this system has a BSD-style setpgrp which takes arguments,
28294   setpgrp(1, 1) will fail with ESRCH and return -1, in that case
28295   exit successfully. */
28296   return setpgrp (1,1) != -1;
28297   ;
28298   return 0;
28299 }
28300 _ACEOF
28301 if ac_fn_c_try_run "$LINENO"; then :
28302   ac_cv_func_setpgrp_void=no
28303 else
28304   ac_cv_func_setpgrp_void=yes
28305 fi
28306 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
28307   conftest.$ac_objext conftest.beam conftest.$ac_ext
28308 fi
28309
28310 fi
28311 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_setpgrp_void" >&5
28312 $as_echo "$ac_cv_func_setpgrp_void" >&6; }
28313 if test $ac_cv_func_setpgrp_void = yes; then
28314
28315 $as_echo "#define SETPGRP_VOID 1" >>confdefs.h
28316
28317 fi
28318             # AC_FUNC_FNMATCH    dnl use local version
28319
28320 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gettext in -lintl" >&5
28321 $as_echo_n "checking for gettext in -lintl... " >&6; }
28322 if test "${ac_cv_lib_intl_gettext+set}" = set; then :
28323   $as_echo_n "(cached) " >&6
28324 else
28325   ac_check_lib_save_LIBS=$LIBS
28326 LIBS="-lintl  $LIBS"
28327 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28328 /* end confdefs.h.  */
28329
28330 /* Override any GCC internal prototype to avoid an error.
28331    Use char because int might match the return type of a GCC
28332    builtin and then its argument prototype would still apply.  */
28333 #ifdef __cplusplus
28334 extern "C"
28335 #endif
28336 char gettext ();
28337 int
28338 main ()
28339 {
28340 return gettext ();
28341   ;
28342   return 0;
28343 }
28344 _ACEOF
28345 if ac_fn_c_try_link "$LINENO"; then :
28346   ac_cv_lib_intl_gettext=yes
28347 else
28348   ac_cv_lib_intl_gettext=no
28349 fi
28350 rm -f core conftest.err conftest.$ac_objext \
28351     conftest$ac_exeext conftest.$ac_ext
28352 LIBS=$ac_check_lib_save_LIBS
28353 fi
28354 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_intl_gettext" >&5
28355 $as_echo "$ac_cv_lib_intl_gettext" >&6; }
28356 if test "x$ac_cv_lib_intl_gettext" = x""yes; then :
28357   LIBS="$LIBS -lintl"
28358 fi
28359
28360
28361 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getpwnam in -lsun" >&5
28362 $as_echo_n "checking for getpwnam in -lsun... " >&6; }
28363 if test "${ac_cv_lib_sun_getpwnam+set}" = set; then :
28364   $as_echo_n "(cached) " >&6
28365 else
28366   ac_check_lib_save_LIBS=$LIBS
28367 LIBS="-lsun  $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 getpwnam ();
28378 int
28379 main ()
28380 {
28381 return getpwnam ();
28382   ;
28383   return 0;
28384 }
28385 _ACEOF
28386 if ac_fn_c_try_link "$LINENO"; then :
28387   ac_cv_lib_sun_getpwnam=yes
28388 else
28389   ac_cv_lib_sun_getpwnam=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_sun_getpwnam" >&5
28396 $as_echo "$ac_cv_lib_sun_getpwnam" >&6; }
28397 if test "x$ac_cv_lib_sun_getpwnam" = x""yes; then :
28398   cat >>confdefs.h <<_ACEOF
28399 #define HAVE_LIBSUN 1
28400 _ACEOF
28401
28402   LIBS="-lsun $LIBS"
28403
28404 fi
28405
28406
28407 for ac_header in zlib.h
28408 do :
28409   ac_fn_c_check_header_mongrel "$LINENO" "zlib.h" "ac_cv_header_zlib_h" "$ac_includes_default"
28410 if test "x$ac_cv_header_zlib_h" = x""yes; then :
28411   cat >>confdefs.h <<_ACEOF
28412 #define HAVE_ZLIB_H 1
28413 _ACEOF
28414
28415 fi
28416
28417 done
28418
28419 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for deflate in -lz" >&5
28420 $as_echo_n "checking for deflate in -lz... " >&6; }
28421 if test "${ac_cv_lib_z_deflate+set}" = set; then :
28422   $as_echo_n "(cached) " >&6
28423 else
28424   ac_check_lib_save_LIBS=$LIBS
28425 LIBS="-lz  $LIBS"
28426 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28427 /* end confdefs.h.  */
28428
28429 /* Override any GCC internal prototype to avoid an error.
28430    Use char because int might match the return type of a GCC
28431    builtin and then its argument prototype would still apply.  */
28432 #ifdef __cplusplus
28433 extern "C"
28434 #endif
28435 char deflate ();
28436 int
28437 main ()
28438 {
28439 return deflate ();
28440   ;
28441   return 0;
28442 }
28443 _ACEOF
28444 if ac_fn_c_try_link "$LINENO"; then :
28445   ac_cv_lib_z_deflate=yes
28446 else
28447   ac_cv_lib_z_deflate=no
28448 fi
28449 rm -f core conftest.err conftest.$ac_objext \
28450     conftest$ac_exeext conftest.$ac_ext
28451 LIBS=$ac_check_lib_save_LIBS
28452 fi
28453 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_deflate" >&5
28454 $as_echo "$ac_cv_lib_z_deflate" >&6; }
28455 if test "x$ac_cv_lib_z_deflate" = x""yes; then :
28456   ZLIBS="-lz"
28457 fi
28458
28459 have_zlib=no
28460 if test x$ZLIBS = x-lz; then
28461    $as_echo "#define HAVE_LIBZ 1" >>confdefs.h
28462
28463    have_zlib=yes
28464 fi
28465
28466
28467 AFS_CFLAGS=""
28468 AFS_LIBS=""
28469 support_afs=auto
28470 # Check whether --enable-afs was given.
28471 if test "${enable_afs+set}" = set; then :
28472   enableval=$enable_afs;
28473        if test x$enableval = xyes; then
28474           support_afs=yes
28475        elif test x$enableval = xno; then
28476           support_afs=no
28477        fi
28478
28479
28480 fi
28481
28482
28483 have_afs=no
28484 if test x$support_afs = xyes -o x$support_afs = xauto; then
28485
28486 # Check whether --with-afsdir was given.
28487 if test "${with_afsdir+set}" = set; then :
28488   withval=$with_afsdir; with_afsdir=$withval
28489
28490 fi
28491
28492
28493             if test x$with_afsdir = x; then
28494       for root in /usr /usr/local; do
28495          if test -d ${root}/include/afs/ ; then
28496             with_afsdir=${root}
28497             break
28498          fi
28499       done
28500    fi
28501
28502    AFS_CFLAGS="-I${with_afsdir}/include"
28503
28504    saved_CFLAGS="${CFLAGS}"
28505    CFLAGS="${AFS_CFLAGS} ${saved_CFLAGS}"
28506
28507    for ac_header in afs/stds.h
28508 do :
28509   ac_fn_c_check_header_mongrel "$LINENO" "afs/stds.h" "ac_cv_header_afs_stds_h" "$ac_includes_default"
28510 if test "x$ac_cv_header_afs_stds_h" = x""yes; then :
28511   cat >>confdefs.h <<_ACEOF
28512 #define HAVE_AFS_STDS_H 1
28513 _ACEOF
28514
28515 fi
28516
28517 done
28518
28519
28520    CFLAGS="${saved_CFLAGS}"
28521
28522             for dir in ${with_afsdir}/lib ${with_afsdir}/lib/afs
28523    do
28524       for arch_type in .a .so
28525       do
28526          A=`test -f ${dir}/libsys${arch_type} && nm ${dir}/libsys${arch_type} | grep pioctl`
28527          pkg=$?
28528          if test $pkg = 0; then
28529             have_afs=yes
28530             AFS_LIBS="-L${dir} -lsys -lrx -llwp ${dir}/util.a"
28531             break
28532          fi
28533       done
28534    done
28535
28536    if test x$support_afs = xyes -a $have_afs != yes; then
28537       as_fn_error "afs support explicitly enabled but no supported afs implementation found,
28538   please either load the afs libraries or rerun configure without --enable-afs" "$LINENO" 5
28539    else
28540       if test $have_afs = yes; then
28541
28542 $as_echo "#define HAVE_AFS 1" >>confdefs.h
28543
28544
28545 $as_echo "#define HAVE_AFS_ACL 1" >>confdefs.h
28546
28547       fi
28548    fi
28549 fi
28550
28551
28552
28553
28554 support_acl=auto
28555 # Check whether --enable-acl was given.
28556 if test "${enable_acl+set}" = set; then :
28557   enableval=$enable_acl;
28558        if test x$enableval = xyes; then
28559           support_acl=yes
28560        elif test x$enableval = xno; then
28561           support_acl=no
28562        fi
28563
28564
28565 fi
28566
28567
28568 have_acl=no
28569 have_extended_acl=no
28570 if test x$support_acl = xyes -o x$support_acl = xauto; then
28571    ac_fn_c_check_header_mongrel "$LINENO" "sys/acl.h" "ac_cv_header_sys_acl_h" "$ac_includes_default"
28572 if test "x$ac_cv_header_sys_acl_h" = x""yes; then :
28573
28574 $as_echo "#define HAVE_SYS_ACL_H 1" >>confdefs.h
28575
28576 fi
28577
28578
28579
28580             ac_fn_c_check_func "$LINENO" "acl_get_file" "ac_cv_func_acl_get_file"
28581 if test "x$ac_cv_func_acl_get_file" = x""yes; then :
28582
28583           have_acl=yes
28584
28585
28586 fi
28587
28588
28589             if test $have_acl = no; then
28590       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for acl_get_file in -lacl" >&5
28591 $as_echo_n "checking for acl_get_file in -lacl... " >&6; }
28592 if test "${ac_cv_lib_acl_acl_get_file+set}" = set; then :
28593   $as_echo_n "(cached) " >&6
28594 else
28595   ac_check_lib_save_LIBS=$LIBS
28596 LIBS="-lacl  $LIBS"
28597 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28598 /* end confdefs.h.  */
28599
28600 /* Override any GCC internal prototype to avoid an error.
28601    Use char because int might match the return type of a GCC
28602    builtin and then its argument prototype would still apply.  */
28603 #ifdef __cplusplus
28604 extern "C"
28605 #endif
28606 char acl_get_file ();
28607 int
28608 main ()
28609 {
28610 return acl_get_file ();
28611   ;
28612   return 0;
28613 }
28614 _ACEOF
28615 if ac_fn_c_try_link "$LINENO"; then :
28616   ac_cv_lib_acl_acl_get_file=yes
28617 else
28618   ac_cv_lib_acl_acl_get_file=no
28619 fi
28620 rm -f core conftest.err conftest.$ac_objext \
28621     conftest$ac_exeext conftest.$ac_ext
28622 LIBS=$ac_check_lib_save_LIBS
28623 fi
28624 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_acl_acl_get_file" >&5
28625 $as_echo "$ac_cv_lib_acl_acl_get_file" >&6; }
28626 if test "x$ac_cv_lib_acl_acl_get_file" = x""yes; then :
28627
28628              have_acl=yes
28629              if test $have_afs = yes; then
28630                                                                 if test -d /usr/lib64/; then
28631                    FDLIBS="-L/usr/lib64 -lacl $FDLIBS"
28632                 else
28633                    FDLIBS="-L/usr/lib -lacl $FDLIBS"
28634                 fi
28635              else
28636                 FDLIBS="-lacl $FDLIBS"
28637              fi
28638
28639
28640 fi
28641
28642    fi
28643
28644             if test $have_acl = no; then
28645       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for acl_get_file in -lpacl" >&5
28646 $as_echo_n "checking for acl_get_file in -lpacl... " >&6; }
28647 if test "${ac_cv_lib_pacl_acl_get_file+set}" = set; then :
28648   $as_echo_n "(cached) " >&6
28649 else
28650   ac_check_lib_save_LIBS=$LIBS
28651 LIBS="-lpacl  $LIBS"
28652 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28653 /* end confdefs.h.  */
28654
28655 /* Override any GCC internal prototype to avoid an error.
28656    Use char because int might match the return type of a GCC
28657    builtin and then its argument prototype would still apply.  */
28658 #ifdef __cplusplus
28659 extern "C"
28660 #endif
28661 char acl_get_file ();
28662 int
28663 main ()
28664 {
28665 return acl_get_file ();
28666   ;
28667   return 0;
28668 }
28669 _ACEOF
28670 if ac_fn_c_try_link "$LINENO"; then :
28671   ac_cv_lib_pacl_acl_get_file=yes
28672 else
28673   ac_cv_lib_pacl_acl_get_file=no
28674 fi
28675 rm -f core conftest.err conftest.$ac_objext \
28676     conftest$ac_exeext conftest.$ac_ext
28677 LIBS=$ac_check_lib_save_LIBS
28678 fi
28679 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pacl_acl_get_file" >&5
28680 $as_echo "$ac_cv_lib_pacl_acl_get_file" >&6; }
28681 if test "x$ac_cv_lib_pacl_acl_get_file" = x""yes; then :
28682
28683              have_acl=yes
28684              FDLIBS="-lpacl $FDLIBS"
28685
28686
28687 fi
28688
28689    fi
28690
28691             if test $have_acl = no -a \
28692            x${HAVE_SUN_OS_TRUE} = x; then
28693       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for acltotext in -lsec" >&5
28694 $as_echo_n "checking for acltotext in -lsec... " >&6; }
28695 if test "${ac_cv_lib_sec_acltotext+set}" = set; then :
28696   $as_echo_n "(cached) " >&6
28697 else
28698   ac_check_lib_save_LIBS=$LIBS
28699 LIBS="-lsec  $LIBS"
28700 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28701 /* end confdefs.h.  */
28702
28703 /* Override any GCC internal prototype to avoid an error.
28704    Use char because int might match the return type of a GCC
28705    builtin and then its argument prototype would still apply.  */
28706 #ifdef __cplusplus
28707 extern "C"
28708 #endif
28709 char acltotext ();
28710 int
28711 main ()
28712 {
28713 return acltotext ();
28714   ;
28715   return 0;
28716 }
28717 _ACEOF
28718 if ac_fn_c_try_link "$LINENO"; then :
28719   ac_cv_lib_sec_acltotext=yes
28720 else
28721   ac_cv_lib_sec_acltotext=no
28722 fi
28723 rm -f core conftest.err conftest.$ac_objext \
28724     conftest$ac_exeext conftest.$ac_ext
28725 LIBS=$ac_check_lib_save_LIBS
28726 fi
28727 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_sec_acltotext" >&5
28728 $as_echo "$ac_cv_lib_sec_acltotext" >&6; }
28729 if test "x$ac_cv_lib_sec_acltotext" = x""yes; then :
28730
28731              have_acl=yes
28732              FDLIBS="-lsec $FDLIBS"
28733
28734              { $as_echo "$as_me:${as_lineno-$LINENO}: checking for acl_totext in -lsec" >&5
28735 $as_echo_n "checking for acl_totext in -lsec... " >&6; }
28736 if test "${ac_cv_lib_sec_acl_totext+set}" = set; then :
28737   $as_echo_n "(cached) " >&6
28738 else
28739   ac_check_lib_save_LIBS=$LIBS
28740 LIBS="-lsec  $LIBS"
28741 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28742 /* end confdefs.h.  */
28743
28744 /* Override any GCC internal prototype to avoid an error.
28745    Use char because int might match the return type of a GCC
28746    builtin and then its argument prototype would still apply.  */
28747 #ifdef __cplusplus
28748 extern "C"
28749 #endif
28750 char acl_totext ();
28751 int
28752 main ()
28753 {
28754 return acl_totext ();
28755   ;
28756   return 0;
28757 }
28758 _ACEOF
28759 if ac_fn_c_try_link "$LINENO"; then :
28760   ac_cv_lib_sec_acl_totext=yes
28761 else
28762   ac_cv_lib_sec_acl_totext=no
28763 fi
28764 rm -f core conftest.err conftest.$ac_objext \
28765     conftest$ac_exeext conftest.$ac_ext
28766 LIBS=$ac_check_lib_save_LIBS
28767 fi
28768 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_sec_acl_totext" >&5
28769 $as_echo "$ac_cv_lib_sec_acl_totext" >&6; }
28770 if test "x$ac_cv_lib_sec_acl_totext" = x""yes; then :
28771
28772                     have_extended_acl=yes
28773
28774
28775 fi
28776
28777
28778
28779 fi
28780
28781    fi
28782
28783             if test $have_acl = no -a \
28784            x${HAVE_AIX_OS_TRUE} = x; then
28785       ac_fn_c_check_func "$LINENO" "acl_get" "ac_cv_func_acl_get"
28786 if test "x$ac_cv_func_acl_get" = x""yes; then :
28787
28788              have_acl=yes
28789
28790              ac_fn_c_check_func "$LINENO" "aclx_get" "ac_cv_func_aclx_get"
28791 if test "x$ac_cv_func_aclx_get" = x""yes; then :
28792
28793                     have_extended_acl=yes
28794
28795
28796 fi
28797
28798
28799
28800 fi
28801
28802    fi
28803
28804    if test x$support_acl = xyes -a $have_acl != yes; then
28805       as_fn_error "acl support explicitly enabled but no supported acl implementation found,
28806   please either load the acl libraries or rerun configure without --enable-acl" "$LINENO" 5
28807    else
28808       if test $have_acl = yes; then
28809
28810 $as_echo "#define HAVE_ACL 1" >>confdefs.h
28811
28812       fi
28813
28814       if test $have_extended_acl = yes; then
28815
28816 $as_echo "#define HAVE_EXTENDED_ACL 1" >>confdefs.h
28817
28818       fi
28819    fi
28820 fi
28821
28822 support_xattr=auto
28823 # Check whether --enable-xattr was given.
28824 if test "${enable_xattr+set}" = set; then :
28825   enableval=$enable_xattr;
28826        if test x$enableval = xyes; then
28827           support_xattr=yes
28828        elif test x$enableval = xno; then
28829           support_xattr=no
28830        fi
28831
28832
28833 fi
28834
28835
28836 have_xattr=no
28837 if test x$support_xattr = xyes -o x$support_xattr = xauto; then
28838                if test x${HAVE_FREEBSD_OS_TRUE} = x -o \
28839            x${HAVE_NETBSD_OS_TRUE} = x -o \
28840            x${HAVE_OPENBSD_OS_TRUE} = x; then
28841       ac_fn_c_check_header_mongrel "$LINENO" "sys/extattr.h" "ac_cv_header_sys_extattr_h" "$ac_includes_default"
28842 if test "x$ac_cv_header_sys_extattr_h" = x""yes; then :
28843
28844 $as_echo "#define HAVE_SYS_EXTATTR_H 1" >>confdefs.h
28845
28846 fi
28847
28848
28849       ac_fn_c_check_header_mongrel "$LINENO" "libutil.h" "ac_cv_header_libutil_h" "$ac_includes_default"
28850 if test "x$ac_cv_header_libutil_h" = x""yes; then :
28851
28852 $as_echo "#define HAVE_LIBUTIL_H 1" >>confdefs.h
28853
28854 fi
28855
28856
28857       for ac_func in extattr_get_link extattr_set_link extattr_list_link
28858 do :
28859   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
28860 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
28861 eval as_val=\$$as_ac_var
28862    if test "x$as_val" = x""yes; then :
28863   cat >>confdefs.h <<_ACEOF
28864 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
28865 _ACEOF
28866
28867              have_xattr=yes
28868
28869 $as_echo "#define HAVE_EXTATTR_GET_LINK 1" >>confdefs.h
28870
28871
28872 $as_echo "#define HAVE_EXTATTR_SET_LINK 1" >>confdefs.h
28873
28874
28875 $as_echo "#define HAVE_EXTATTR_LIST_LINK 1" >>confdefs.h
28876
28877
28878
28879 fi
28880 done
28881
28882
28883       if test $have_xattr = no; then
28884          for ac_func in extattr_get_file extattr_set_file extattr_list_file
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_EXTATTR_GET_FILE 1" >>confdefs.h
28897
28898
28899 $as_echo "#define HAVE_EXTATTR_SET_FILE 1" >>confdefs.h
28900
28901
28902 $as_echo "#define HAVE_EXTATTR_LIST_FILE 1" >>confdefs.h
28903
28904
28905
28906 fi
28907 done
28908
28909       fi
28910
28911       if test $have_xattr = yes; then
28912          have_extattr_string_in_libc=no
28913          for ac_func in extattr_namespace_to_string extattr_string_to_namespace
28914 do :
28915   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
28916 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
28917 eval as_val=\$$as_ac_var
28918    if test "x$as_val" = x""yes; then :
28919   cat >>confdefs.h <<_ACEOF
28920 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
28921 _ACEOF
28922
28923                 have_extattr_string_in_libc=yes
28924
28925 $as_echo "#define HAVE_EXTATTR_NAMESPACE_TO_STRING 1" >>confdefs.h
28926
28927
28928 $as_echo "#define HAVE_EXTATTR_STRING_TO_NAMESPACE 1" >>confdefs.h
28929
28930
28931
28932 fi
28933 done
28934
28935
28936                                  if test $have_extattr_string_in_libc = no; then
28937             { $as_echo "$as_me:${as_lineno-$LINENO}: checking for extattr_namespace_to_string extattr_string_to_namespace in -lutil" >&5
28938 $as_echo_n "checking for extattr_namespace_to_string extattr_string_to_namespace in -lutil... " >&6; }
28939 if test "${ac_cv_lib_util_extattr_namespace_to_string_extattr_string_to_namespace+set}" = set; then :
28940   $as_echo_n "(cached) " >&6
28941 else
28942   ac_check_lib_save_LIBS=$LIBS
28943 LIBS="-lutil  $LIBS"
28944 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28945 /* end confdefs.h.  */
28946
28947 /* Override any GCC internal prototype to avoid an error.
28948    Use char because int might match the return type of a GCC
28949    builtin and then its argument prototype would still apply.  */
28950 #ifdef __cplusplus
28951 extern "C"
28952 #endif
28953 char extattr_namespace_to_string extattr_string_to_namespace ();
28954 int
28955 main ()
28956 {
28957 return extattr_namespace_to_string extattr_string_to_namespace ();
28958   ;
28959   return 0;
28960 }
28961 _ACEOF
28962 if ac_fn_c_try_link "$LINENO"; then :
28963   ac_cv_lib_util_extattr_namespace_to_string_extattr_string_to_namespace=yes
28964 else
28965   ac_cv_lib_util_extattr_namespace_to_string_extattr_string_to_namespace=no
28966 fi
28967 rm -f core conftest.err conftest.$ac_objext \
28968     conftest$ac_exeext conftest.$ac_ext
28969 LIBS=$ac_check_lib_save_LIBS
28970 fi
28971 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_util_extattr_namespace_to_string_extattr_string_to_namespace" >&5
28972 $as_echo "$ac_cv_lib_util_extattr_namespace_to_string_extattr_string_to_namespace" >&6; }
28973 if test "x$ac_cv_lib_util_extattr_namespace_to_string_extattr_string_to_namespace" = x""yes; then :
28974
28975
28976 $as_echo "#define HAVE_EXTATTR_NAMESPACE_TO_STRING 1" >>confdefs.h
28977
28978
28979 $as_echo "#define HAVE_EXTATTR_STRING_TO_NAMESPACE 1" >>confdefs.h
28980
28981                    FDLIBS="-lutil $FDLIBS"
28982
28983
28984 fi
28985
28986          fi
28987       fi
28988    fi
28989
28990                if test $have_xattr = no -a \
28991            x${HAVE_AIX_OS_TRUE} = x; then
28992       ac_fn_c_check_header_mongrel "$LINENO" "sys/ea.h" "ac_cv_header_sys_ea_h" "$ac_includes_default"
28993 if test "x$ac_cv_header_sys_ea_h" = x""yes; then :
28994
28995 $as_echo "#define HAVE_SYS_EA_H 1" >>confdefs.h
28996
28997 fi
28998
28999
29000       for ac_func in llistea lgetea lsetea
29001 do :
29002   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
29003 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
29004 eval as_val=\$$as_ac_var
29005    if test "x$as_val" = x""yes; then :
29006   cat >>confdefs.h <<_ACEOF
29007 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
29008 _ACEOF
29009
29010              have_xattr=yes
29011
29012 $as_echo "#define HAVE_LLISTEA 1" >>confdefs.h
29013
29014
29015 $as_echo "#define HAVE_LGETEA 1" >>confdefs.h
29016
29017
29018 $as_echo "#define HAVE_LSETEA 1" >>confdefs.h
29019
29020
29021
29022 fi
29023 done
29024
29025
29026       if test $have_xattr = no; then
29027          for ac_func in listea getea setea
29028 do :
29029   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
29030 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
29031 eval as_val=\$$as_ac_var
29032    if test "x$as_val" = x""yes; then :
29033   cat >>confdefs.h <<_ACEOF
29034 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
29035 _ACEOF
29036
29037                 have_xattr=yes
29038
29039 $as_echo "#define HAVE_LISTEA 1" >>confdefs.h
29040
29041
29042 $as_echo "#define HAVE_GETEA 1" >>confdefs.h
29043
29044
29045 $as_echo "#define HAVE_SETEA 1" >>confdefs.h
29046
29047
29048
29049 fi
29050 done
29051
29052       fi
29053    fi
29054
29055                if test $have_xattr = no -a \
29056            x${HAVE_OSF1_OS_TRUE} = x; then
29057       ac_fn_c_check_header_mongrel "$LINENO" "sys/proplist.h" "ac_cv_header_sys_proplist_h" "$ac_includes_default"
29058 if test "x$ac_cv_header_sys_proplist_h" = x""yes; then :
29059
29060 $as_echo "#define HAVE_SYS_PROPLIST_H 1" >>confdefs.h
29061
29062 fi
29063
29064
29065       for ac_func in getproplist get_proplist_entry sizeof_proplist_entry add_proplist_entry setproplist
29066 do :
29067   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
29068 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
29069 eval as_val=\$$as_ac_var
29070    if test "x$as_val" = x""yes; then :
29071   cat >>confdefs.h <<_ACEOF
29072 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
29073 _ACEOF
29074
29075              have_xattr=yes
29076
29077 $as_echo "#define HAVE_GETPROPLIST 1" >>confdefs.h
29078
29079
29080 $as_echo "#define HAVE_GET_PROPLIST_ENTRY 1" >>confdefs.h
29081
29082
29083 $as_echo "#define HAVE_SIZEOF_PROPLIST_ENTRY 1" >>confdefs.h
29084
29085
29086 $as_echo "#define HAVE_ADD_PROPLIST_ENTRY 1" >>confdefs.h
29087
29088
29089 $as_echo "#define HAVE_SETPROPLIST 1" >>confdefs.h
29090
29091
29092
29093 fi
29094 done
29095
29096    fi
29097
29098                if test $have_xattr = no -a \
29099            x${HAVE_SUN_OS_TRUE} = x; then
29100       ac_fn_c_check_header_mongrel "$LINENO" "sys/attr.h" "ac_cv_header_sys_attr_h" "$ac_includes_default"
29101 if test "x$ac_cv_header_sys_attr_h" = x""yes; then :
29102
29103 $as_echo "#define HAVE_SYS_ATTR_H 1" >>confdefs.h
29104
29105 fi
29106
29107
29108       ac_fn_c_check_header_mongrel "$LINENO" "sys/nvpair.h" "ac_cv_header_sys_nvpair_h" "$ac_includes_default"
29109 if test "x$ac_cv_header_sys_nvpair_h" = x""yes; then :
29110
29111 $as_echo "#define HAVE_SYS_NVPAIR_H 1" >>confdefs.h
29112
29113 fi
29114
29115
29116       ac_fn_c_check_header_mongrel "$LINENO" "attr.h" "ac_cv_header_attr_h" "$ac_includes_default"
29117 if test "x$ac_cv_header_attr_h" = x""yes; then :
29118
29119 $as_echo "#define HAVE_ATTR_H 1" >>confdefs.h
29120
29121 fi
29122
29123
29124
29125       for ac_func in openat fstatat unlinkat fchownat futimesat
29126 do :
29127   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
29128 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
29129 eval as_val=\$$as_ac_var
29130    if test "x$as_val" = x""yes; then :
29131   cat >>confdefs.h <<_ACEOF
29132 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
29133 _ACEOF
29134
29135              have_xattr=yes
29136
29137 $as_echo "#define HAVE_OPENAT 1" >>confdefs.h
29138
29139
29140 $as_echo "#define HAVE_FSTATAT 1" >>confdefs.h
29141
29142
29143 $as_echo "#define HAVE_UNLINKAT 1" >>confdefs.h
29144
29145
29146 $as_echo "#define HAVE_FCHOWNAT 1" >>confdefs.h
29147
29148
29149 $as_echo "#define HAVE_FUTIMESAT 1" >>confdefs.h
29150
29151
29152
29153 fi
29154 done
29155
29156
29157       if test $have_xattr = yes; then
29158          { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nvlist_next_nvpair in -lnvpair" >&5
29159 $as_echo_n "checking for nvlist_next_nvpair in -lnvpair... " >&6; }
29160 if test "${ac_cv_lib_nvpair_nvlist_next_nvpair+set}" = set; then :
29161   $as_echo_n "(cached) " >&6
29162 else
29163   ac_check_lib_save_LIBS=$LIBS
29164 LIBS="-lnvpair  $LIBS"
29165 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29166 /* end confdefs.h.  */
29167
29168 /* Override any GCC internal prototype to avoid an error.
29169    Use char because int might match the return type of a GCC
29170    builtin and then its argument prototype would still apply.  */
29171 #ifdef __cplusplus
29172 extern "C"
29173 #endif
29174 char nvlist_next_nvpair ();
29175 int
29176 main ()
29177 {
29178 return nvlist_next_nvpair ();
29179   ;
29180   return 0;
29181 }
29182 _ACEOF
29183 if ac_fn_c_try_link "$LINENO"; then :
29184   ac_cv_lib_nvpair_nvlist_next_nvpair=yes
29185 else
29186   ac_cv_lib_nvpair_nvlist_next_nvpair=no
29187 fi
29188 rm -f core conftest.err conftest.$ac_objext \
29189     conftest$ac_exeext conftest.$ac_ext
29190 LIBS=$ac_check_lib_save_LIBS
29191 fi
29192 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nvpair_nvlist_next_nvpair" >&5
29193 $as_echo "$ac_cv_lib_nvpair_nvlist_next_nvpair" >&6; }
29194 if test "x$ac_cv_lib_nvpair_nvlist_next_nvpair" = x""yes; then :
29195
29196
29197 $as_echo "#define HAVE_NVLIST_NEXT_NVPAIR 1" >>confdefs.h
29198
29199                 FDLIBS="-lnvpair $FDLIBS"
29200
29201
29202 fi
29203
29204       fi
29205    fi
29206
29207             if test $have_xattr = no; then
29208       ac_fn_c_check_header_mongrel "$LINENO" "sys/xattr.h" "ac_cv_header_sys_xattr_h" "$ac_includes_default"
29209 if test "x$ac_cv_header_sys_xattr_h" = x""yes; then :
29210
29211 $as_echo "#define HAVE_SYS_XATTR_H 1" >>confdefs.h
29212
29213 fi
29214
29215
29216       for ac_func in llistxattr lgetxattr lsetxattr
29217 do :
29218   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
29219 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
29220 eval as_val=\$$as_ac_var
29221    if test "x$as_val" = x""yes; then :
29222   cat >>confdefs.h <<_ACEOF
29223 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
29224 _ACEOF
29225
29226              have_xattr=yes
29227
29228 $as_echo "#define HAVE_LLISTXATTR 1" >>confdefs.h
29229
29230
29231 $as_echo "#define HAVE_LGETXATTR 1" >>confdefs.h
29232
29233
29234 $as_echo "#define HAVE_LSETXATTR 1" >>confdefs.h
29235
29236
29237
29238 fi
29239 done
29240
29241
29242       if test $have_xattr = no; then
29243          for ac_func in listxattr getxattr setxattr
29244 do :
29245   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
29246 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
29247 eval as_val=\$$as_ac_var
29248    if test "x$as_val" = x""yes; then :
29249   cat >>confdefs.h <<_ACEOF
29250 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
29251 _ACEOF
29252
29253                 have_xattr=yes
29254
29255 $as_echo "#define HAVE_LISTXATTR 1" >>confdefs.h
29256
29257
29258 $as_echo "#define HAVE_GETXATTR 1" >>confdefs.h
29259
29260
29261 $as_echo "#define HAVE_SETXATTR 1" >>confdefs.h
29262
29263
29264
29265 fi
29266 done
29267
29268       fi
29269    fi
29270
29271    if test x$support_xattr = xyes -a $have_xattr != yes; then
29272       as_fn_error "xattr support explicitly enabled but no supported xattr implementation found,
29273   please either load the xattr libraries or rerun configure without --enable-xattr" "$LINENO" 5
29274    else
29275       if test $have_xattr = yes; then
29276
29277 $as_echo "#define HAVE_XATTR 1" >>confdefs.h
29278
29279       fi
29280    fi
29281 fi
29282
29283 PTHREAD_LIB=""
29284 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_create in -lpthread" >&5
29285 $as_echo_n "checking for pthread_create in -lpthread... " >&6; }
29286 if test "${ac_cv_lib_pthread_pthread_create+set}" = set; then :
29287   $as_echo_n "(cached) " >&6
29288 else
29289   ac_check_lib_save_LIBS=$LIBS
29290 LIBS="-lpthread  $LIBS"
29291 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29292 /* end confdefs.h.  */
29293
29294 /* Override any GCC internal prototype to avoid an error.
29295    Use char because int might match the return type of a GCC
29296    builtin and then its argument prototype would still apply.  */
29297 #ifdef __cplusplus
29298 extern "C"
29299 #endif
29300 char pthread_create ();
29301 int
29302 main ()
29303 {
29304 return pthread_create ();
29305   ;
29306   return 0;
29307 }
29308 _ACEOF
29309 if ac_fn_c_try_link "$LINENO"; then :
29310   ac_cv_lib_pthread_pthread_create=yes
29311 else
29312   ac_cv_lib_pthread_pthread_create=no
29313 fi
29314 rm -f core conftest.err conftest.$ac_objext \
29315     conftest$ac_exeext conftest.$ac_ext
29316 LIBS=$ac_check_lib_save_LIBS
29317 fi
29318 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_pthread_create" >&5
29319 $as_echo "$ac_cv_lib_pthread_pthread_create" >&6; }
29320 if test "x$ac_cv_lib_pthread_pthread_create" = x""yes; then :
29321   PTHREAD_LIB="-lpthread"
29322 else
29323
29324        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_create in -lpthreads" >&5
29325 $as_echo_n "checking for pthread_create in -lpthreads... " >&6; }
29326 if test "${ac_cv_lib_pthreads_pthread_create+set}" = set; then :
29327   $as_echo_n "(cached) " >&6
29328 else
29329   ac_check_lib_save_LIBS=$LIBS
29330 LIBS="-lpthreads  $LIBS"
29331 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29332 /* end confdefs.h.  */
29333
29334 /* Override any GCC internal prototype to avoid an error.
29335    Use char because int might match the return type of a GCC
29336    builtin and then its argument prototype would still apply.  */
29337 #ifdef __cplusplus
29338 extern "C"
29339 #endif
29340 char pthread_create ();
29341 int
29342 main ()
29343 {
29344 return pthread_create ();
29345   ;
29346   return 0;
29347 }
29348 _ACEOF
29349 if ac_fn_c_try_link "$LINENO"; then :
29350   ac_cv_lib_pthreads_pthread_create=yes
29351 else
29352   ac_cv_lib_pthreads_pthread_create=no
29353 fi
29354 rm -f core conftest.err conftest.$ac_objext \
29355     conftest$ac_exeext conftest.$ac_ext
29356 LIBS=$ac_check_lib_save_LIBS
29357 fi
29358 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthreads_pthread_create" >&5
29359 $as_echo "$ac_cv_lib_pthreads_pthread_create" >&6; }
29360 if test "x$ac_cv_lib_pthreads_pthread_create" = x""yes; then :
29361   PTHREAD_LIB="-lpthreads"
29362 else
29363
29364               { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_create in -lc_r" >&5
29365 $as_echo_n "checking for pthread_create in -lc_r... " >&6; }
29366 if test "${ac_cv_lib_c_r_pthread_create+set}" = set; then :
29367   $as_echo_n "(cached) " >&6
29368 else
29369   ac_check_lib_save_LIBS=$LIBS
29370 LIBS="-lc_r  $LIBS"
29371 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29372 /* end confdefs.h.  */
29373
29374 /* Override any GCC internal prototype to avoid an error.
29375    Use char because int might match the return type of a GCC
29376    builtin and then its argument prototype would still apply.  */
29377 #ifdef __cplusplus
29378 extern "C"
29379 #endif
29380 char pthread_create ();
29381 int
29382 main ()
29383 {
29384 return pthread_create ();
29385   ;
29386   return 0;
29387 }
29388 _ACEOF
29389 if ac_fn_c_try_link "$LINENO"; then :
29390   ac_cv_lib_c_r_pthread_create=yes
29391 else
29392   ac_cv_lib_c_r_pthread_create=no
29393 fi
29394 rm -f core conftest.err conftest.$ac_objext \
29395     conftest$ac_exeext conftest.$ac_ext
29396 LIBS=$ac_check_lib_save_LIBS
29397 fi
29398 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_r_pthread_create" >&5
29399 $as_echo "$ac_cv_lib_c_r_pthread_create" >&6; }
29400 if test "x$ac_cv_lib_c_r_pthread_create" = x""yes; then :
29401   PTHREAD_LIB="-lc_r"
29402 else
29403
29404                      ac_fn_c_check_func "$LINENO" "pthread_create" "ac_cv_func_pthread_create"
29405 if test "x$ac_cv_func_pthread_create" = x""yes; then :
29406
29407 fi
29408
29409
29410
29411 fi
29412
29413
29414
29415 fi
29416
29417
29418
29419 fi
29420
29421
29422 for ac_header in sys/prctl.h sys/capability.h
29423 do :
29424   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
29425 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
29426 eval as_val=\$$as_ac_Header
29427    if test "x$as_val" = x""yes; then :
29428   cat >>confdefs.h <<_ACEOF
29429 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
29430 _ACEOF
29431
29432 fi
29433
29434 done
29435
29436 for ac_func in prctl setreuid
29437 do :
29438   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
29439 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
29440 eval as_val=\$$as_ac_var
29441    if test "x$as_val" = x""yes; then :
29442   cat >>confdefs.h <<_ACEOF
29443 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
29444 _ACEOF
29445
29446 fi
29447 done
29448
29449 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cap_set_proc in -lcap" >&5
29450 $as_echo_n "checking for cap_set_proc in -lcap... " >&6; }
29451 if test "${ac_cv_lib_cap_cap_set_proc+set}" = set; then :
29452   $as_echo_n "(cached) " >&6
29453 else
29454   ac_check_lib_save_LIBS=$LIBS
29455 LIBS="-lcap  $LIBS"
29456 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29457 /* end confdefs.h.  */
29458
29459 /* Override any GCC internal prototype to avoid an error.
29460    Use char because int might match the return type of a GCC
29461    builtin and then its argument prototype would still apply.  */
29462 #ifdef __cplusplus
29463 extern "C"
29464 #endif
29465 char cap_set_proc ();
29466 int
29467 main ()
29468 {
29469 return cap_set_proc ();
29470   ;
29471   return 0;
29472 }
29473 _ACEOF
29474 if ac_fn_c_try_link "$LINENO"; then :
29475   ac_cv_lib_cap_cap_set_proc=yes
29476 else
29477   ac_cv_lib_cap_cap_set_proc=no
29478 fi
29479 rm -f core conftest.err conftest.$ac_objext \
29480     conftest$ac_exeext conftest.$ac_ext
29481 LIBS=$ac_check_lib_save_LIBS
29482 fi
29483 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_cap_cap_set_proc" >&5
29484 $as_echo "$ac_cv_lib_cap_cap_set_proc" >&6; }
29485 if test "x$ac_cv_lib_cap_cap_set_proc" = x""yes; then :
29486   CAP_LIBS="-lcap"
29487 else
29488   CAP_LIBS=
29489 fi
29490
29491 if test x$CAP_LIBS = x-lcap; then
29492
29493 $as_echo "#define HAVE_LIBCAP 1" >>confdefs.h
29494
29495 fi
29496
29497
29498
29499 $as_echo "#define FDLIBS 1" >>confdefs.h
29500
29501
29502 CFLAGS=${CFLAGS--O}
29503
29504 if test x$have_gcc = xyes ; then
29505    CPPFLAGS="$CPPFLAGS -fno-strict-aliasing -fno-exceptions -fno-rtti"
29506    CFLAGS="$CFLAGS -fno-strict-aliasing -fno-exceptions -fno-rtti"
29507 fi
29508 LDFLAGS=${LDFLAGS--O}
29509 CPPFLAGS="$CPPFLAGS"
29510 CFLAGS="$CFLAGS"
29511
29512
29513
29514
29515
29516
29517
29518
29519
29520
29521
29522
29523
29524
29525
29526 OBJLIST=
29527
29528
29529 lld="lld"
29530 llu="llu"
29531
29532 WCFLAGS=
29533 WLDFLAGS=
29534
29535 PFILES="platforms/Makefile"
29536 PSCMD="ps -e"
29537 WIN32=
29538 MACOSX=
29539
29540 hostname=`uname -n | cut -d '.' -f 1`
29541 if test x${hostname} = x ; then
29542    hostname="localhost"
29543 fi
29544 ping -c 1 $hostname 2>/dev/null 1>/dev/null
29545 if test ! $? = 0; then
29546   hostname="localhost"
29547 fi
29548
29549 case "$DISTNAME" in
29550 aix)
29551    DISTVER=`uname -r`
29552    PSCMD="ps -e -o pid,comm"
29553    PFILES="${PFILES} \
29554       platforms/aix/Makefile"
29555    TAPEDRIVE="/dev/rmt0.1"
29556   ;;
29557 alpha)
29558    DISTVER=`uname -r`
29559    PTHREAD_LIB="-lpthread -lexc"
29560    if test "${CC}" = "gcc" ; then
29561       lld="lld"
29562       llu="llu"
29563    else
29564       lld="ld"
29565       llu="lu"
29566    fi
29567    TAPEDRIVE="/dev/nrmt0"
29568   ;;
29569 bsdi)
29570    DISTVER=`uname -a |awk '{print $3}'`
29571    TAPEDRIVE="/dev/nrmt0"
29572    PTHREAD_LIB="-pthread"
29573    CFLAGS="${CFLAGS} -pthread"
29574    PSCMD="ps -ax -o pid,command"
29575    lld="qd"
29576    llu="qu"
29577    PFILES="${PFILES} \
29578        platforms/bsdi/Makefile \
29579        platforms/bsdi/bacula-fd \
29580        platforms/bsdi/bacula-sd \
29581        platforms/bsdi/bacula-dir"
29582    largefile_support="yes"
29583   ;;
29584 cygwin)
29585    DISTVER=`uname -a |awk '{print $3}'`
29586    TAPEDRIVE="/dev/nrst0"
29587    WIN32=win32
29588    WCFLAGS="-mwindows"
29589    WLDFLAGS="-mwindows"
29590   ;;
29591 darwin)
29592    DISTVER=`uname -r`
29593    TAPEDRIVE="/dev/nst0"
29594    PSCMD="ps -e -o pid,command"
29595    MACOSX=macosx
29596    PFILES="${PFILES} \
29597       platforms/darwin/Makefile"
29598   ;;
29599 osx)
29600    DISTVER=`uname -r`
29601    TAPEDRIVE="/dev/nst0"
29602    PSCMD="ps -e -o pid,command"
29603    MACOSX=macosx
29604    PFILES="${PFILES} \
29605       platforms/osx/Makefile"
29606   ;;
29607 debian)
29608    if `test -f /etc/apt/sources.list && grep -q ubuntu /etc/apt/sources.list`; then
29609       DISTNAME="ubuntu"
29610    fi
29611    DISTVER=`cat /etc/debian_version`
29612    if test -f /etc/lsb-release ; then
29613       . /etc/lsb-release
29614       if test "x$DISTRIB_ID" != "x" ; then
29615          DISTNAME=$DISTRIB_ID
29616       fi
29617       if test "x$DISTRIB_RELEASE" != "x" ; then
29618          DISTVER=$DISTRIB_RELEASE
29619       fi
29620    fi
29621    if test "$DISTNAME" = "Ubuntu" ; then
29622       DISTNAME="ubuntu"
29623    fi
29624    TAPEDRIVE="/dev/nst0"
29625    PSCMD="ps -e -o pid,command"
29626    if test "$DISTNAME" = "ubuntu" ; then
29627       PFILES="${PFILES} \
29628          platforms/ubuntu/Makefile \
29629          platforms/ubuntu/bacula-fd \
29630          platforms/ubuntu/bacula-sd \
29631          platforms/ubuntu/bacula-dir"
29632    else
29633       PFILES="${PFILES} \
29634          platforms/debian/Makefile \
29635          platforms/debian/bacula-fd \
29636          platforms/debian/bacula-sd \
29637          platforms/debian/bacula-dir"
29638    fi
29639   ;;
29640 freebsd)
29641    DISTVER=`uname -a |awk '{print $3}'`
29642    VER=`echo $DISTVER | cut -c 1`
29643    if test x$VER = x4 ; then
29644       PTHREAD_LIB="${PTHREAD_LIBS:--pthread}"
29645       CFLAGS="${CFLAGS} ${PTHREAD_CFLAGS:--pthread}"
29646    fi
29647    lld="qd"
29648    llu="qu"
29649    TAPEDRIVE="/dev/nrsa0"
29650    PSCMD="ps -ax -o pid,command"
29651    PFILES="${PFILES} \
29652        platforms/freebsd/Makefile \
29653        platforms/freebsd/bacula-fd \
29654        platforms/freebsd/bacula-sd \
29655        platforms/freebsd/bacula-dir"
29656    largefile_support="yes"
29657   ;;
29658 hpux)
29659    PSCMD="UNIX95=1; ps -e -o pid,comm"
29660    CFLAGS="${CFLAGS} -D_XOPEN_SOURCE_EXTENDED=1"
29661    DISTVER=`uname -r`
29662    TAPEDRIVE="/dev/rmt/0hnb"
29663    PTHREAD_LIB="-lpthread"
29664    $as_echo "#define _INCLUDE_LONGLONG 1" >>confdefs.h
29665
29666   ;;
29667 irix)
29668    DISTVER=`uname -r`
29669    TAPEDRIVE="/dev/rmt/0cbn"
29670    PSCMD="ps -e -o pid,comm"
29671    PFILES="${PFILES} \
29672        platforms/irix/Makefile \
29673        platforms/irix/bacula-fd \
29674        platforms/irix/bacula-sd \
29675        platforms/irix/bacula-dir"
29676   ;;
29677 netbsd)
29678    DISTVER=`uname -a |awk '{print $3}'`
29679    lld="qd"
29680    llu="qu"
29681    TAPEDRIVE="/dev/nrst0"
29682    PSCMD="ps -ax -o pid,command"
29683    PTHREAD_LIB="-pthread"
29684    CFLAGS="${CFLAGS} -pthread"
29685   ;;
29686 openbsd)
29687    DISTVER=`uname -a |awk '{print $3}'`
29688    lld="qd"
29689    llu="qu"
29690    TAPEDRIVE="/dev/nrst0"
29691    PSCMD="ps -ax -o pid,command"
29692    PTHREAD_LIB="-pthread"
29693    CFLAGS="${CFLAGS} -pthread"
29694    PFILES="${PFILES} \
29695        platforms/openbsd/Makefile \
29696        platforms/openbsd/bacula-fd \
29697        platforms/openbsd/bacula-sd \
29698        platforms/openbsd/bacula-dir"
29699   ;;
29700 redhat)
29701    if test -f /etc/whitebox-release ; then
29702       f=/etc/whitebox-release
29703    else
29704       f=/etc/redhat-release
29705    fi
29706    if test `cat $f | grep release |\
29707          cut -f 3 -d ' '`x = "Enterprise"x ; then
29708       DISTVER="Enterprise "`cat $f | grep release |\
29709           cut -f 6 -d ' '`
29710    else
29711        DISTVER=`cat /etc/redhat-release | grep release |\
29712            cut -f 5 -d ' '`
29713    fi
29714    TAPEDRIVE="/dev/nst0"
29715    PSCMD="ps -e -o pid,command"
29716    PFILES="${PFILES} \
29717        platforms/redhat/Makefile \
29718        platforms/redhat/bacula-fd \
29719        platforms/redhat/bacula-sd \
29720        platforms/redhat/bacula-dir
29721        "
29722   ;;
29723 mandrake)
29724    DISTVER=`cat /etc/mandrake-release | grep release |\
29725       cut -f 5 -d ' '`
29726    TAPEDRIVE="/dev/nst0"
29727    PSCMD="ps -e -o pid,command"
29728    PFILES="${PFILES} \
29729        platforms/mandrake/Makefile \
29730        platforms/mandrake/bacula-fd \
29731        platforms/mandrake/bacula-sd \
29732        platforms/mandrake/bacula-dir \
29733        "
29734   ;;
29735 gentoo)
29736    DISTVER=`awk '/version / {print $5}' < /etc/gentoo-release`
29737    TAPEDRIVE="/dev/nst0"
29738    PSCMD="ps -e -o pid,command"
29739    PFILES="${PFILES} \
29740        platforms/gentoo/Makefile \
29741     platforms/gentoo/bacula-init \
29742        platforms/gentoo/bacula-fd \
29743        platforms/gentoo/bacula-sd \
29744        platforms/gentoo/bacula-dir"
29745   ;;
29746 slackware)
29747    DISTVER=`cat /etc/slackware-version`
29748    TAPEDRIVE="/dev/nst0"
29749    PSCMD="ps -e -o pid,command"
29750    PFILES="${PFILES} \
29751        platforms/slackware/Makefile \
29752        platforms/slackware/rc.bacula-fd \
29753        platforms/slackware/rc.bacula-sd \
29754        platforms/slackware/rc.bacula-dir\
29755        platforms/slackware/functions.bacula"
29756   ;;
29757 solaris)
29758    DISTVER=`uname -r`
29759    TAPEDRIVE="/dev/rmt/0cbn"
29760    PSCMD="ps -e -o pid,comm"
29761    PFILES="${PFILES} \
29762        platforms/solaris/Makefile \
29763        platforms/solaris/bacula-fd \
29764        platforms/solaris/bacula-sd \
29765        platforms/solaris/bacula-dir"
29766    case ${DISTVER} in
29767    5.5|5.6)
29768        $as_echo "#define HAVE_OLD_SOCKOPT 1" >>confdefs.h
29769        $as_echo "#define USE_THR_SETCONCURRENCY 1" >>confdefs.h
29770       ;;
29771    5.7|5.8)
29772        $as_echo "#define USE_THR_SETCONCURRENCY 1" >>confdefs.h
29773       ;;
29774    *)
29775       ;;
29776    esac
29777    LIBS="$LIBS -lresolv -lrt"
29778   ;;
29779 suse)
29780    DISTVER=`cat /etc/SuSE-release |grep VERSION|\
29781        cut -f 3 -d ' '`
29782    TAPEDRIVE="/dev/nst0"
29783    PSCMD="ps -e -o pid,command"
29784    PFILES="${PFILES} \
29785        platforms/suse/Makefile \
29786        platforms/suse/bacula-fd \
29787        platforms/suse/bacula-sd \
29788        platforms/suse/bacula-dir \
29789        platforms/suse/bacula"
29790   ;;
29791 suse5)
29792    DISTNAME=suse
29793    DISTVER=5.x
29794    TAPEDRIVE="/dev/nst0"
29795    PSCMD="ps -e -o pid,command"
29796    PFILES="${PFILES} \
29797        platforms/suse/Makefile \
29798        platforms/suse/bacula-fd \
29799        platforms/suse/bacula-sd \
29800        platforms/suse/bacula-dir"
29801   ;;
29802 unknown)
29803    DISTVER=unknown
29804    TAPEDRIVE="/dev/nst0"
29805   ;;
29806 *)
29807   echo " === Something went wrong. Unknown DISTNAME $DISTNAME ==="
29808   ;;
29809 esac
29810
29811
29812
29813 LIBS="$PTHREAD_LIB $LIBS"
29814
29815 cat >>confdefs.h <<_ACEOF
29816 #define lld "$lld"
29817 _ACEOF
29818
29819 cat >>confdefs.h <<_ACEOF
29820 #define llu "$llu"
29821 _ACEOF
29822
29823
29824
29825
29826
29827
29828
29829
29830 MCOMMON=./autoconf/Make.common
29831
29832
29833 if test "x${subsysdir}" = "x${sbindir}" ; then
29834    echo " "
29835    echo " "
29836    echo "You have set both --sbindir and --with-subsys-dir"
29837    echo "  equal to: ${subsysdir} "
29838    echo "This is not permitted. Please reconfigure."
29839    echo " "
29840    echo "Aborting configuration ..."
29841    echo " "
29842    echo " "
29843    exit 1
29844 fi
29845
29846 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/create_ingres_database src/cats/update_ingres_tables src/cats/make_ingres_tables src/cats/grant_ingres_privileges src/cats/drop_ingres_tables src/cats/drop_ingres_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"
29847
29848 ac_config_commands="$ac_config_commands default"
29849
29850 cat >confcache <<\_ACEOF
29851 # This file is a shell script that caches the results of configure
29852 # tests run on this system so they can be shared between configure
29853 # scripts and configure runs, see configure's option --config-cache.
29854 # It is not useful on other systems.  If it contains results you don't
29855 # want to keep, you may remove or edit it.
29856 #
29857 # config.status only pays attention to the cache file if you give it
29858 # the --recheck option to rerun configure.
29859 #
29860 # `ac_cv_env_foo' variables (set or unset) will be overridden when
29861 # loading this file, other *unset* `ac_cv_foo' will be assigned the
29862 # following values.
29863
29864 _ACEOF
29865
29866 # The following way of writing the cache mishandles newlines in values,
29867 # but we know of no workaround that is simple, portable, and efficient.
29868 # So, we kill variables containing newlines.
29869 # Ultrix sh set writes to stderr and can't be redirected directly,
29870 # and sets the high bit in the cache file unless we assign to the vars.
29871 (
29872   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
29873     eval ac_val=\$$ac_var
29874     case $ac_val in #(
29875     *${as_nl}*)
29876       case $ac_var in #(
29877       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
29878 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
29879       esac
29880       case $ac_var in #(
29881       _ | IFS | as_nl) ;; #(
29882       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
29883       *) { eval $ac_var=; unset $ac_var;} ;;
29884       esac ;;
29885     esac
29886   done
29887
29888   (set) 2>&1 |
29889     case $as_nl`(ac_space=' '; set) 2>&1` in #(
29890     *${as_nl}ac_space=\ *)
29891       # `set' does not quote correctly, so add quotes: double-quote
29892       # substitution turns \\\\ into \\, and sed turns \\ into \.
29893       sed -n \
29894         "s/'/'\\\\''/g;
29895           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
29896       ;; #(
29897     *)
29898       # `set' quotes correctly as required by POSIX, so do not add quotes.
29899       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
29900       ;;
29901     esac |
29902     sort
29903 ) |
29904   sed '
29905      /^ac_cv_env_/b end
29906      t clear
29907      :clear
29908      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
29909      t end
29910      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
29911      :end' >>confcache
29912 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
29913   if test -w "$cache_file"; then
29914     test "x$cache_file" != "x/dev/null" &&
29915       { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
29916 $as_echo "$as_me: updating cache $cache_file" >&6;}
29917     cat confcache >$cache_file
29918   else
29919     { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
29920 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
29921   fi
29922 fi
29923 rm -f confcache
29924
29925 test "x$prefix" = xNONE && prefix=$ac_default_prefix
29926 # Let make expand exec_prefix.
29927 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
29928
29929 DEFS=-DHAVE_CONFIG_H
29930
29931 ac_libobjs=
29932 ac_ltlibobjs=
29933 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
29934   # 1. Remove the extension, and $U if already installed.
29935   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
29936   ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
29937   # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
29938   #    will be set to the directory where LIBOBJS objects are built.
29939   as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
29940   as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
29941 done
29942 LIBOBJS=$ac_libobjs
29943
29944 LTLIBOBJS=$ac_ltlibobjs
29945
29946
29947
29948
29949 : ${CONFIG_STATUS=./config.status}
29950 ac_write_fail=0
29951 ac_clean_files_save=$ac_clean_files
29952 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
29953 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
29954 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
29955 as_write_fail=0
29956 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
29957 #! $SHELL
29958 # Generated by $as_me.
29959 # Run this file to recreate the current configuration.
29960 # Compiler output produced by configure, useful for debugging
29961 # configure, is in config.log if it exists.
29962
29963 debug=false
29964 ac_cs_recheck=false
29965 ac_cs_silent=false
29966
29967 SHELL=\${CONFIG_SHELL-$SHELL}
29968 export SHELL
29969 _ASEOF
29970 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
29971 ## -------------------- ##
29972 ## M4sh Initialization. ##
29973 ## -------------------- ##
29974
29975 # Be more Bourne compatible
29976 DUALCASE=1; export DUALCASE # for MKS sh
29977 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
29978   emulate sh
29979   NULLCMD=:
29980   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
29981   # is contrary to our usage.  Disable this feature.
29982   alias -g '${1+"$@"}'='"$@"'
29983   setopt NO_GLOB_SUBST
29984 else
29985   case `(set -o) 2>/dev/null` in #(
29986   *posix*) :
29987     set -o posix ;; #(
29988   *) :
29989      ;;
29990 esac
29991 fi
29992
29993
29994 as_nl='
29995 '
29996 export as_nl
29997 # Printing a long string crashes Solaris 7 /usr/bin/printf.
29998 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
29999 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
30000 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
30001 # Prefer a ksh shell builtin over an external printf program on Solaris,
30002 # but without wasting forks for bash or zsh.
30003 if test -z "$BASH_VERSION$ZSH_VERSION" \
30004     && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
30005   as_echo='print -r --'
30006   as_echo_n='print -rn --'
30007 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
30008   as_echo='printf %s\n'
30009   as_echo_n='printf %s'
30010 else
30011   if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
30012     as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
30013     as_echo_n='/usr/ucb/echo -n'
30014   else
30015     as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
30016     as_echo_n_body='eval
30017       arg=$1;
30018       case $arg in #(
30019       *"$as_nl"*)
30020         expr "X$arg" : "X\\(.*\\)$as_nl";
30021         arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
30022       esac;
30023       expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
30024     '
30025     export as_echo_n_body
30026     as_echo_n='sh -c $as_echo_n_body as_echo'
30027   fi
30028   export as_echo_body
30029   as_echo='sh -c $as_echo_body as_echo'
30030 fi
30031
30032 # The user is always right.
30033 if test "${PATH_SEPARATOR+set}" != set; then
30034   PATH_SEPARATOR=:
30035   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
30036     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
30037       PATH_SEPARATOR=';'
30038   }
30039 fi
30040
30041
30042 # IFS
30043 # We need space, tab and new line, in precisely that order.  Quoting is
30044 # there to prevent editors from complaining about space-tab.
30045 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
30046 # splitting by setting IFS to empty value.)
30047 IFS=" ""        $as_nl"
30048
30049 # Find who we are.  Look in the path if we contain no directory separator.
30050 case $0 in #((
30051   *[\\/]* ) as_myself=$0 ;;
30052   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30053 for as_dir in $PATH
30054 do
30055   IFS=$as_save_IFS
30056   test -z "$as_dir" && as_dir=.
30057     test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
30058   done
30059 IFS=$as_save_IFS
30060
30061      ;;
30062 esac
30063 # We did not find ourselves, most probably we were run as `sh COMMAND'
30064 # in which case we are not to be found in the path.
30065 if test "x$as_myself" = x; then
30066   as_myself=$0
30067 fi
30068 if test ! -f "$as_myself"; then
30069   $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
30070   exit 1
30071 fi
30072
30073 # Unset variables that we do not need and which cause bugs (e.g. in
30074 # pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
30075 # suppresses any "Segmentation fault" message there.  '((' could
30076 # trigger a bug in pdksh 5.2.14.
30077 for as_var in BASH_ENV ENV MAIL MAILPATH
30078 do eval test x\${$as_var+set} = xset \
30079   && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
30080 done
30081 PS1='$ '
30082 PS2='> '
30083 PS4='+ '
30084
30085 # NLS nuisances.
30086 LC_ALL=C
30087 export LC_ALL
30088 LANGUAGE=C
30089 export LANGUAGE
30090
30091 # CDPATH.
30092 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
30093
30094
30095 # as_fn_error ERROR [LINENO LOG_FD]
30096 # ---------------------------------
30097 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
30098 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
30099 # script with status $?, using 1 if that was 0.
30100 as_fn_error ()
30101 {
30102   as_status=$?; test $as_status -eq 0 && as_status=1
30103   if test "$3"; then
30104     as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
30105     $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
30106   fi
30107   $as_echo "$as_me: error: $1" >&2
30108   as_fn_exit $as_status
30109 } # as_fn_error
30110
30111
30112 # as_fn_set_status STATUS
30113 # -----------------------
30114 # Set $? to STATUS, without forking.
30115 as_fn_set_status ()
30116 {
30117   return $1
30118 } # as_fn_set_status
30119
30120 # as_fn_exit STATUS
30121 # -----------------
30122 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
30123 as_fn_exit ()
30124 {
30125   set +e
30126   as_fn_set_status $1
30127   exit $1
30128 } # as_fn_exit
30129
30130 # as_fn_unset VAR
30131 # ---------------
30132 # Portably unset VAR.
30133 as_fn_unset ()
30134 {
30135   { eval $1=; unset $1;}
30136 }
30137 as_unset=as_fn_unset
30138 # as_fn_append VAR VALUE
30139 # ----------------------
30140 # Append the text in VALUE to the end of the definition contained in VAR. Take
30141 # advantage of any shell optimizations that allow amortized linear growth over
30142 # repeated appends, instead of the typical quadratic growth present in naive
30143 # implementations.
30144 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
30145   eval 'as_fn_append ()
30146   {
30147     eval $1+=\$2
30148   }'
30149 else
30150   as_fn_append ()
30151   {
30152     eval $1=\$$1\$2
30153   }
30154 fi # as_fn_append
30155
30156 # as_fn_arith ARG...
30157 # ------------------
30158 # Perform arithmetic evaluation on the ARGs, and store the result in the
30159 # global $as_val. Take advantage of shells that can avoid forks. The arguments
30160 # must be portable across $(()) and expr.
30161 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
30162   eval 'as_fn_arith ()
30163   {
30164     as_val=$(( $* ))
30165   }'
30166 else
30167   as_fn_arith ()
30168   {
30169     as_val=`expr "$@" || test $? -eq 1`
30170   }
30171 fi # as_fn_arith
30172
30173
30174 if expr a : '\(a\)' >/dev/null 2>&1 &&
30175    test "X`expr 00001 : '.*\(...\)'`" = X001; then
30176   as_expr=expr
30177 else
30178   as_expr=false
30179 fi
30180
30181 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
30182   as_basename=basename
30183 else
30184   as_basename=false
30185 fi
30186
30187 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
30188   as_dirname=dirname
30189 else
30190   as_dirname=false
30191 fi
30192
30193 as_me=`$as_basename -- "$0" ||
30194 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
30195          X"$0" : 'X\(//\)$' \| \
30196          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
30197 $as_echo X/"$0" |
30198     sed '/^.*\/\([^/][^/]*\)\/*$/{
30199             s//\1/
30200             q
30201           }
30202           /^X\/\(\/\/\)$/{
30203             s//\1/
30204             q
30205           }
30206           /^X\/\(\/\).*/{
30207             s//\1/
30208             q
30209           }
30210           s/.*/./; q'`
30211
30212 # Avoid depending upon Character Ranges.
30213 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
30214 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
30215 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
30216 as_cr_digits='0123456789'
30217 as_cr_alnum=$as_cr_Letters$as_cr_digits
30218
30219 ECHO_C= ECHO_N= ECHO_T=
30220 case `echo -n x` in #(((((
30221 -n*)
30222   case `echo 'xy\c'` in
30223   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
30224   xy)  ECHO_C='\c';;
30225   *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
30226        ECHO_T=' ';;
30227   esac;;
30228 *)
30229   ECHO_N='-n';;
30230 esac
30231
30232 rm -f conf$$ conf$$.exe conf$$.file
30233 if test -d conf$$.dir; then
30234   rm -f conf$$.dir/conf$$.file
30235 else
30236   rm -f conf$$.dir
30237   mkdir conf$$.dir 2>/dev/null
30238 fi
30239 if (echo >conf$$.file) 2>/dev/null; then
30240   if ln -s conf$$.file conf$$ 2>/dev/null; then
30241     as_ln_s='ln -s'
30242     # ... but there are two gotchas:
30243     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
30244     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
30245     # In both cases, we have to default to `cp -p'.
30246     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
30247       as_ln_s='cp -p'
30248   elif ln conf$$.file conf$$ 2>/dev/null; then
30249     as_ln_s=ln
30250   else
30251     as_ln_s='cp -p'
30252   fi
30253 else
30254   as_ln_s='cp -p'
30255 fi
30256 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
30257 rmdir conf$$.dir 2>/dev/null
30258
30259
30260 # as_fn_mkdir_p
30261 # -------------
30262 # Create "$as_dir" as a directory, including parents if necessary.
30263 as_fn_mkdir_p ()
30264 {
30265
30266   case $as_dir in #(
30267   -*) as_dir=./$as_dir;;
30268   esac
30269   test -d "$as_dir" || eval $as_mkdir_p || {
30270     as_dirs=
30271     while :; do
30272       case $as_dir in #(
30273       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
30274       *) as_qdir=$as_dir;;
30275       esac
30276       as_dirs="'$as_qdir' $as_dirs"
30277       as_dir=`$as_dirname -- "$as_dir" ||
30278 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
30279          X"$as_dir" : 'X\(//\)[^/]' \| \
30280          X"$as_dir" : 'X\(//\)$' \| \
30281          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
30282 $as_echo X"$as_dir" |
30283     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
30284             s//\1/
30285             q
30286           }
30287           /^X\(\/\/\)[^/].*/{
30288             s//\1/
30289             q
30290           }
30291           /^X\(\/\/\)$/{
30292             s//\1/
30293             q
30294           }
30295           /^X\(\/\).*/{
30296             s//\1/
30297             q
30298           }
30299           s/.*/./; q'`
30300       test -d "$as_dir" && break
30301     done
30302     test -z "$as_dirs" || eval "mkdir $as_dirs"
30303   } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
30304
30305
30306 } # as_fn_mkdir_p
30307 if mkdir -p . 2>/dev/null; then
30308   as_mkdir_p='mkdir -p "$as_dir"'
30309 else
30310   test -d ./-p && rmdir ./-p
30311   as_mkdir_p=false
30312 fi
30313
30314 if test -x / >/dev/null 2>&1; then
30315   as_test_x='test -x'
30316 else
30317   if ls -dL / >/dev/null 2>&1; then
30318     as_ls_L_option=L
30319   else
30320     as_ls_L_option=
30321   fi
30322   as_test_x='
30323     eval sh -c '\''
30324       if test -d "$1"; then
30325         test -d "$1/.";
30326       else
30327         case $1 in #(
30328         -*)set "./$1";;
30329         esac;
30330         case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
30331         ???[sx]*):;;*)false;;esac;fi
30332     '\'' sh
30333   '
30334 fi
30335 as_executable_p=$as_test_x
30336
30337 # Sed expression to map a string onto a valid CPP name.
30338 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
30339
30340 # Sed expression to map a string onto a valid variable name.
30341 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
30342
30343
30344 exec 6>&1
30345 ## ----------------------------------- ##
30346 ## Main body of $CONFIG_STATUS script. ##
30347 ## ----------------------------------- ##
30348 _ASEOF
30349 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
30350
30351 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
30352 # Save the log message, to keep $0 and so on meaningful, and to
30353 # report actual input values of CONFIG_FILES etc. instead of their
30354 # values after options handling.
30355 ac_log="
30356 This file was extended by $as_me, which was
30357 generated by GNU Autoconf 2.65.  Invocation command line was
30358
30359   CONFIG_FILES    = $CONFIG_FILES
30360   CONFIG_HEADERS  = $CONFIG_HEADERS
30361   CONFIG_LINKS    = $CONFIG_LINKS
30362   CONFIG_COMMANDS = $CONFIG_COMMANDS
30363   $ $0 $@
30364
30365 on `(hostname || uname -n) 2>/dev/null | sed 1q`
30366 "
30367
30368 _ACEOF
30369
30370 case $ac_config_files in *"
30371 "*) set x $ac_config_files; shift; ac_config_files=$*;;
30372 esac
30373
30374 case $ac_config_headers in *"
30375 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
30376 esac
30377
30378
30379 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
30380 # Files that config.status was made for.
30381 config_files="$ac_config_files"
30382 config_headers="$ac_config_headers"
30383 config_commands="$ac_config_commands"
30384
30385 _ACEOF
30386
30387 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
30388 ac_cs_usage="\
30389 \`$as_me' instantiates files and other configuration actions
30390 from templates according to the current configuration.  Unless the files
30391 and actions are specified as TAGs, all are instantiated by default.
30392
30393 Usage: $0 [OPTION]... [TAG]...
30394
30395   -h, --help       print this help, then exit
30396   -V, --version    print version number and configuration settings, then exit
30397       --config     print configuration, then exit
30398   -q, --quiet, --silent
30399                    do not print progress messages
30400   -d, --debug      don't remove temporary files
30401       --recheck    update $as_me by reconfiguring in the same conditions
30402       --file=FILE[:TEMPLATE]
30403                    instantiate the configuration file FILE
30404       --header=FILE[:TEMPLATE]
30405                    instantiate the configuration header FILE
30406
30407 Configuration files:
30408 $config_files
30409
30410 Configuration headers:
30411 $config_headers
30412
30413 Configuration commands:
30414 $config_commands
30415
30416 Report bugs to the package provider."
30417
30418 _ACEOF
30419 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
30420 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
30421 ac_cs_version="\\
30422 config.status
30423 configured by $0, generated by GNU Autoconf 2.65,
30424   with options \\"\$ac_cs_config\\"
30425
30426 Copyright (C) 2009 Free Software Foundation, Inc.
30427 This config.status script is free software; the Free Software Foundation
30428 gives unlimited permission to copy, distribute and modify it."
30429
30430 ac_pwd='$ac_pwd'
30431 srcdir='$srcdir'
30432 INSTALL='$INSTALL'
30433 AWK='$AWK'
30434 test -n "\$AWK" || AWK=awk
30435 _ACEOF
30436
30437 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
30438 # The default lists apply if the user does not specify any file.
30439 ac_need_defaults=:
30440 while test $# != 0
30441 do
30442   case $1 in
30443   --*=*)
30444     ac_option=`expr "X$1" : 'X\([^=]*\)='`
30445     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
30446     ac_shift=:
30447     ;;
30448   *)
30449     ac_option=$1
30450     ac_optarg=$2
30451     ac_shift=shift
30452     ;;
30453   esac
30454
30455   case $ac_option in
30456   # Handling of the options.
30457   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
30458     ac_cs_recheck=: ;;
30459   --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
30460     $as_echo "$ac_cs_version"; exit ;;
30461   --config | --confi | --conf | --con | --co | --c )
30462     $as_echo "$ac_cs_config"; exit ;;
30463   --debug | --debu | --deb | --de | --d | -d )
30464     debug=: ;;
30465   --file | --fil | --fi | --f )
30466     $ac_shift
30467     case $ac_optarg in
30468     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
30469     esac
30470     as_fn_append CONFIG_FILES " '$ac_optarg'"
30471     ac_need_defaults=false;;
30472   --header | --heade | --head | --hea )
30473     $ac_shift
30474     case $ac_optarg in
30475     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
30476     esac
30477     as_fn_append CONFIG_HEADERS " '$ac_optarg'"
30478     ac_need_defaults=false;;
30479   --he | --h)
30480     # Conflict between --help and --header
30481     as_fn_error "ambiguous option: \`$1'
30482 Try \`$0 --help' for more information.";;
30483   --help | --hel | -h )
30484     $as_echo "$ac_cs_usage"; exit ;;
30485   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
30486   | -silent | --silent | --silen | --sile | --sil | --si | --s)
30487     ac_cs_silent=: ;;
30488
30489   # This is an error.
30490   -*) as_fn_error "unrecognized option: \`$1'
30491 Try \`$0 --help' for more information." ;;
30492
30493   *) as_fn_append ac_config_targets " $1"
30494      ac_need_defaults=false ;;
30495
30496   esac
30497   shift
30498 done
30499
30500 ac_configure_extra_args=
30501
30502 if $ac_cs_silent; then
30503   exec 6>/dev/null
30504   ac_configure_extra_args="$ac_configure_extra_args --silent"
30505 fi
30506
30507 _ACEOF
30508 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
30509 if \$ac_cs_recheck; then
30510   set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
30511   shift
30512   \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
30513   CONFIG_SHELL='$SHELL'
30514   export CONFIG_SHELL
30515   exec "\$@"
30516 fi
30517
30518 _ACEOF
30519 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
30520 exec 5>>config.log
30521 {
30522   echo
30523   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
30524 ## Running $as_me. ##
30525 _ASBOX
30526   $as_echo "$ac_log"
30527 } >&5
30528
30529 _ACEOF
30530 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
30531 #
30532 # INIT-COMMANDS
30533 #
30534
30535
30536 # The HP-UX ksh and POSIX shell print the target directory to stdout
30537 # if CDPATH is set.
30538 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
30539
30540 sed_quote_subst='$sed_quote_subst'
30541 double_quote_subst='$double_quote_subst'
30542 delay_variable_subst='$delay_variable_subst'
30543 macro_version='`$ECHO "X$macro_version" | $Xsed -e "$delay_single_quote_subst"`'
30544 macro_revision='`$ECHO "X$macro_revision" | $Xsed -e "$delay_single_quote_subst"`'
30545 enable_shared='`$ECHO "X$enable_shared" | $Xsed -e "$delay_single_quote_subst"`'
30546 enable_static='`$ECHO "X$enable_static" | $Xsed -e "$delay_single_quote_subst"`'
30547 pic_mode='`$ECHO "X$pic_mode" | $Xsed -e "$delay_single_quote_subst"`'
30548 enable_fast_install='`$ECHO "X$enable_fast_install" | $Xsed -e "$delay_single_quote_subst"`'
30549 host_alias='`$ECHO "X$host_alias" | $Xsed -e "$delay_single_quote_subst"`'
30550 host='`$ECHO "X$host" | $Xsed -e "$delay_single_quote_subst"`'
30551 host_os='`$ECHO "X$host_os" | $Xsed -e "$delay_single_quote_subst"`'
30552 build_alias='`$ECHO "X$build_alias" | $Xsed -e "$delay_single_quote_subst"`'
30553 build='`$ECHO "X$build" | $Xsed -e "$delay_single_quote_subst"`'
30554 build_os='`$ECHO "X$build_os" | $Xsed -e "$delay_single_quote_subst"`'
30555 SED='`$ECHO "X$SED" | $Xsed -e "$delay_single_quote_subst"`'
30556 Xsed='`$ECHO "X$Xsed" | $Xsed -e "$delay_single_quote_subst"`'
30557 GREP='`$ECHO "X$GREP" | $Xsed -e "$delay_single_quote_subst"`'
30558 EGREP='`$ECHO "X$EGREP" | $Xsed -e "$delay_single_quote_subst"`'
30559 FGREP='`$ECHO "X$FGREP" | $Xsed -e "$delay_single_quote_subst"`'
30560 LD='`$ECHO "X$LD" | $Xsed -e "$delay_single_quote_subst"`'
30561 NM='`$ECHO "X$NM" | $Xsed -e "$delay_single_quote_subst"`'
30562 LN_S='`$ECHO "X$LN_S" | $Xsed -e "$delay_single_quote_subst"`'
30563 max_cmd_len='`$ECHO "X$max_cmd_len" | $Xsed -e "$delay_single_quote_subst"`'
30564 ac_objext='`$ECHO "X$ac_objext" | $Xsed -e "$delay_single_quote_subst"`'
30565 exeext='`$ECHO "X$exeext" | $Xsed -e "$delay_single_quote_subst"`'
30566 lt_unset='`$ECHO "X$lt_unset" | $Xsed -e "$delay_single_quote_subst"`'
30567 lt_SP2NL='`$ECHO "X$lt_SP2NL" | $Xsed -e "$delay_single_quote_subst"`'
30568 lt_NL2SP='`$ECHO "X$lt_NL2SP" | $Xsed -e "$delay_single_quote_subst"`'
30569 reload_flag='`$ECHO "X$reload_flag" | $Xsed -e "$delay_single_quote_subst"`'
30570 reload_cmds='`$ECHO "X$reload_cmds" | $Xsed -e "$delay_single_quote_subst"`'
30571 OBJDUMP='`$ECHO "X$OBJDUMP" | $Xsed -e "$delay_single_quote_subst"`'
30572 deplibs_check_method='`$ECHO "X$deplibs_check_method" | $Xsed -e "$delay_single_quote_subst"`'
30573 file_magic_cmd='`$ECHO "X$file_magic_cmd" | $Xsed -e "$delay_single_quote_subst"`'
30574 AR='`$ECHO "X$AR" | $Xsed -e "$delay_single_quote_subst"`'
30575 AR_FLAGS='`$ECHO "X$AR_FLAGS" | $Xsed -e "$delay_single_quote_subst"`'
30576 STRIP='`$ECHO "X$STRIP" | $Xsed -e "$delay_single_quote_subst"`'
30577 RANLIB='`$ECHO "X$RANLIB" | $Xsed -e "$delay_single_quote_subst"`'
30578 old_postinstall_cmds='`$ECHO "X$old_postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
30579 old_postuninstall_cmds='`$ECHO "X$old_postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
30580 old_archive_cmds='`$ECHO "X$old_archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
30581 CC='`$ECHO "X$CC" | $Xsed -e "$delay_single_quote_subst"`'
30582 CFLAGS='`$ECHO "X$CFLAGS" | $Xsed -e "$delay_single_quote_subst"`'
30583 compiler='`$ECHO "X$compiler" | $Xsed -e "$delay_single_quote_subst"`'
30584 GCC='`$ECHO "X$GCC" | $Xsed -e "$delay_single_quote_subst"`'
30585 lt_cv_sys_global_symbol_pipe='`$ECHO "X$lt_cv_sys_global_symbol_pipe" | $Xsed -e "$delay_single_quote_subst"`'
30586 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "X$lt_cv_sys_global_symbol_to_cdecl" | $Xsed -e "$delay_single_quote_subst"`'
30587 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"`'
30588 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"`'
30589 objdir='`$ECHO "X$objdir" | $Xsed -e "$delay_single_quote_subst"`'
30590 SHELL='`$ECHO "X$SHELL" | $Xsed -e "$delay_single_quote_subst"`'
30591 ECHO='`$ECHO "X$ECHO" | $Xsed -e "$delay_single_quote_subst"`'
30592 MAGIC_CMD='`$ECHO "X$MAGIC_CMD" | $Xsed -e "$delay_single_quote_subst"`'
30593 lt_prog_compiler_no_builtin_flag='`$ECHO "X$lt_prog_compiler_no_builtin_flag" | $Xsed -e "$delay_single_quote_subst"`'
30594 lt_prog_compiler_wl='`$ECHO "X$lt_prog_compiler_wl" | $Xsed -e "$delay_single_quote_subst"`'
30595 lt_prog_compiler_pic='`$ECHO "X$lt_prog_compiler_pic" | $Xsed -e "$delay_single_quote_subst"`'
30596 lt_prog_compiler_static='`$ECHO "X$lt_prog_compiler_static" | $Xsed -e "$delay_single_quote_subst"`'
30597 lt_cv_prog_compiler_c_o='`$ECHO "X$lt_cv_prog_compiler_c_o" | $Xsed -e "$delay_single_quote_subst"`'
30598 need_locks='`$ECHO "X$need_locks" | $Xsed -e "$delay_single_quote_subst"`'
30599 DSYMUTIL='`$ECHO "X$DSYMUTIL" | $Xsed -e "$delay_single_quote_subst"`'
30600 NMEDIT='`$ECHO "X$NMEDIT" | $Xsed -e "$delay_single_quote_subst"`'
30601 LIPO='`$ECHO "X$LIPO" | $Xsed -e "$delay_single_quote_subst"`'
30602 OTOOL='`$ECHO "X$OTOOL" | $Xsed -e "$delay_single_quote_subst"`'
30603 OTOOL64='`$ECHO "X$OTOOL64" | $Xsed -e "$delay_single_quote_subst"`'
30604 libext='`$ECHO "X$libext" | $Xsed -e "$delay_single_quote_subst"`'
30605 shrext_cmds='`$ECHO "X$shrext_cmds" | $Xsed -e "$delay_single_quote_subst"`'
30606 extract_expsyms_cmds='`$ECHO "X$extract_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
30607 archive_cmds_need_lc='`$ECHO "X$archive_cmds_need_lc" | $Xsed -e "$delay_single_quote_subst"`'
30608 enable_shared_with_static_runtimes='`$ECHO "X$enable_shared_with_static_runtimes" | $Xsed -e "$delay_single_quote_subst"`'
30609 export_dynamic_flag_spec='`$ECHO "X$export_dynamic_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
30610 whole_archive_flag_spec='`$ECHO "X$whole_archive_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
30611 compiler_needs_object='`$ECHO "X$compiler_needs_object" | $Xsed -e "$delay_single_quote_subst"`'
30612 old_archive_from_new_cmds='`$ECHO "X$old_archive_from_new_cmds" | $Xsed -e "$delay_single_quote_subst"`'
30613 old_archive_from_expsyms_cmds='`$ECHO "X$old_archive_from_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
30614 archive_cmds='`$ECHO "X$archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
30615 archive_expsym_cmds='`$ECHO "X$archive_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
30616 module_cmds='`$ECHO "X$module_cmds" | $Xsed -e "$delay_single_quote_subst"`'
30617 module_expsym_cmds='`$ECHO "X$module_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
30618 with_gnu_ld='`$ECHO "X$with_gnu_ld" | $Xsed -e "$delay_single_quote_subst"`'
30619 allow_undefined_flag='`$ECHO "X$allow_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
30620 no_undefined_flag='`$ECHO "X$no_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
30621 hardcode_libdir_flag_spec='`$ECHO "X$hardcode_libdir_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
30622 hardcode_libdir_flag_spec_ld='`$ECHO "X$hardcode_libdir_flag_spec_ld" | $Xsed -e "$delay_single_quote_subst"`'
30623 hardcode_libdir_separator='`$ECHO "X$hardcode_libdir_separator" | $Xsed -e "$delay_single_quote_subst"`'
30624 hardcode_direct='`$ECHO "X$hardcode_direct" | $Xsed -e "$delay_single_quote_subst"`'
30625 hardcode_direct_absolute='`$ECHO "X$hardcode_direct_absolute" | $Xsed -e "$delay_single_quote_subst"`'
30626 hardcode_minus_L='`$ECHO "X$hardcode_minus_L" | $Xsed -e "$delay_single_quote_subst"`'
30627 hardcode_shlibpath_var='`$ECHO "X$hardcode_shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
30628 hardcode_automatic='`$ECHO "X$hardcode_automatic" | $Xsed -e "$delay_single_quote_subst"`'
30629 inherit_rpath='`$ECHO "X$inherit_rpath" | $Xsed -e "$delay_single_quote_subst"`'
30630 link_all_deplibs='`$ECHO "X$link_all_deplibs" | $Xsed -e "$delay_single_quote_subst"`'
30631 fix_srcfile_path='`$ECHO "X$fix_srcfile_path" | $Xsed -e "$delay_single_quote_subst"`'
30632 always_export_symbols='`$ECHO "X$always_export_symbols" | $Xsed -e "$delay_single_quote_subst"`'
30633 export_symbols_cmds='`$ECHO "X$export_symbols_cmds" | $Xsed -e "$delay_single_quote_subst"`'
30634 exclude_expsyms='`$ECHO "X$exclude_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
30635 include_expsyms='`$ECHO "X$include_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
30636 prelink_cmds='`$ECHO "X$prelink_cmds" | $Xsed -e "$delay_single_quote_subst"`'
30637 file_list_spec='`$ECHO "X$file_list_spec" | $Xsed -e "$delay_single_quote_subst"`'
30638 variables_saved_for_relink='`$ECHO "X$variables_saved_for_relink" | $Xsed -e "$delay_single_quote_subst"`'
30639 need_lib_prefix='`$ECHO "X$need_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`'
30640 need_version='`$ECHO "X$need_version" | $Xsed -e "$delay_single_quote_subst"`'
30641 version_type='`$ECHO "X$version_type" | $Xsed -e "$delay_single_quote_subst"`'
30642 runpath_var='`$ECHO "X$runpath_var" | $Xsed -e "$delay_single_quote_subst"`'
30643 shlibpath_var='`$ECHO "X$shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
30644 shlibpath_overrides_runpath='`$ECHO "X$shlibpath_overrides_runpath" | $Xsed -e "$delay_single_quote_subst"`'
30645 libname_spec='`$ECHO "X$libname_spec" | $Xsed -e "$delay_single_quote_subst"`'
30646 library_names_spec='`$ECHO "X$library_names_spec" | $Xsed -e "$delay_single_quote_subst"`'
30647 soname_spec='`$ECHO "X$soname_spec" | $Xsed -e "$delay_single_quote_subst"`'
30648 postinstall_cmds='`$ECHO "X$postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
30649 postuninstall_cmds='`$ECHO "X$postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
30650 finish_cmds='`$ECHO "X$finish_cmds" | $Xsed -e "$delay_single_quote_subst"`'
30651 finish_eval='`$ECHO "X$finish_eval" | $Xsed -e "$delay_single_quote_subst"`'
30652 hardcode_into_libs='`$ECHO "X$hardcode_into_libs" | $Xsed -e "$delay_single_quote_subst"`'
30653 sys_lib_search_path_spec='`$ECHO "X$sys_lib_search_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
30654 sys_lib_dlsearch_path_spec='`$ECHO "X$sys_lib_dlsearch_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
30655 hardcode_action='`$ECHO "X$hardcode_action" | $Xsed -e "$delay_single_quote_subst"`'
30656 enable_dlopen='`$ECHO "X$enable_dlopen" | $Xsed -e "$delay_single_quote_subst"`'
30657 enable_dlopen_self='`$ECHO "X$enable_dlopen_self" | $Xsed -e "$delay_single_quote_subst"`'
30658 enable_dlopen_self_static='`$ECHO "X$enable_dlopen_self_static" | $Xsed -e "$delay_single_quote_subst"`'
30659 old_striplib='`$ECHO "X$old_striplib" | $Xsed -e "$delay_single_quote_subst"`'
30660 striplib='`$ECHO "X$striplib" | $Xsed -e "$delay_single_quote_subst"`'
30661 compiler_lib_search_dirs='`$ECHO "X$compiler_lib_search_dirs" | $Xsed -e "$delay_single_quote_subst"`'
30662 predep_objects='`$ECHO "X$predep_objects" | $Xsed -e "$delay_single_quote_subst"`'
30663 postdep_objects='`$ECHO "X$postdep_objects" | $Xsed -e "$delay_single_quote_subst"`'
30664 predeps='`$ECHO "X$predeps" | $Xsed -e "$delay_single_quote_subst"`'
30665 postdeps='`$ECHO "X$postdeps" | $Xsed -e "$delay_single_quote_subst"`'
30666 compiler_lib_search_path='`$ECHO "X$compiler_lib_search_path" | $Xsed -e "$delay_single_quote_subst"`'
30667 LD_CXX='`$ECHO "X$LD_CXX" | $Xsed -e "$delay_single_quote_subst"`'
30668 old_archive_cmds_CXX='`$ECHO "X$old_archive_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
30669 compiler_CXX='`$ECHO "X$compiler_CXX" | $Xsed -e "$delay_single_quote_subst"`'
30670 GCC_CXX='`$ECHO "X$GCC_CXX" | $Xsed -e "$delay_single_quote_subst"`'
30671 lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "X$lt_prog_compiler_no_builtin_flag_CXX" | $Xsed -e "$delay_single_quote_subst"`'
30672 lt_prog_compiler_wl_CXX='`$ECHO "X$lt_prog_compiler_wl_CXX" | $Xsed -e "$delay_single_quote_subst"`'
30673 lt_prog_compiler_pic_CXX='`$ECHO "X$lt_prog_compiler_pic_CXX" | $Xsed -e "$delay_single_quote_subst"`'
30674 lt_prog_compiler_static_CXX='`$ECHO "X$lt_prog_compiler_static_CXX" | $Xsed -e "$delay_single_quote_subst"`'
30675 lt_cv_prog_compiler_c_o_CXX='`$ECHO "X$lt_cv_prog_compiler_c_o_CXX" | $Xsed -e "$delay_single_quote_subst"`'
30676 archive_cmds_need_lc_CXX='`$ECHO "X$archive_cmds_need_lc_CXX" | $Xsed -e "$delay_single_quote_subst"`'
30677 enable_shared_with_static_runtimes_CXX='`$ECHO "X$enable_shared_with_static_runtimes_CXX" | $Xsed -e "$delay_single_quote_subst"`'
30678 export_dynamic_flag_spec_CXX='`$ECHO "X$export_dynamic_flag_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
30679 whole_archive_flag_spec_CXX='`$ECHO "X$whole_archive_flag_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
30680 compiler_needs_object_CXX='`$ECHO "X$compiler_needs_object_CXX" | $Xsed -e "$delay_single_quote_subst"`'
30681 old_archive_from_new_cmds_CXX='`$ECHO "X$old_archive_from_new_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
30682 old_archive_from_expsyms_cmds_CXX='`$ECHO "X$old_archive_from_expsyms_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
30683 archive_cmds_CXX='`$ECHO "X$archive_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
30684 archive_expsym_cmds_CXX='`$ECHO "X$archive_expsym_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
30685 module_cmds_CXX='`$ECHO "X$module_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
30686 module_expsym_cmds_CXX='`$ECHO "X$module_expsym_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
30687 with_gnu_ld_CXX='`$ECHO "X$with_gnu_ld_CXX" | $Xsed -e "$delay_single_quote_subst"`'
30688 allow_undefined_flag_CXX='`$ECHO "X$allow_undefined_flag_CXX" | $Xsed -e "$delay_single_quote_subst"`'
30689 no_undefined_flag_CXX='`$ECHO "X$no_undefined_flag_CXX" | $Xsed -e "$delay_single_quote_subst"`'
30690 hardcode_libdir_flag_spec_CXX='`$ECHO "X$hardcode_libdir_flag_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
30691 hardcode_libdir_flag_spec_ld_CXX='`$ECHO "X$hardcode_libdir_flag_spec_ld_CXX" | $Xsed -e "$delay_single_quote_subst"`'
30692 hardcode_libdir_separator_CXX='`$ECHO "X$hardcode_libdir_separator_CXX" | $Xsed -e "$delay_single_quote_subst"`'
30693 hardcode_direct_CXX='`$ECHO "X$hardcode_direct_CXX" | $Xsed -e "$delay_single_quote_subst"`'
30694 hardcode_direct_absolute_CXX='`$ECHO "X$hardcode_direct_absolute_CXX" | $Xsed -e "$delay_single_quote_subst"`'
30695 hardcode_minus_L_CXX='`$ECHO "X$hardcode_minus_L_CXX" | $Xsed -e "$delay_single_quote_subst"`'
30696 hardcode_shlibpath_var_CXX='`$ECHO "X$hardcode_shlibpath_var_CXX" | $Xsed -e "$delay_single_quote_subst"`'
30697 hardcode_automatic_CXX='`$ECHO "X$hardcode_automatic_CXX" | $Xsed -e "$delay_single_quote_subst"`'
30698 inherit_rpath_CXX='`$ECHO "X$inherit_rpath_CXX" | $Xsed -e "$delay_single_quote_subst"`'
30699 link_all_deplibs_CXX='`$ECHO "X$link_all_deplibs_CXX" | $Xsed -e "$delay_single_quote_subst"`'
30700 fix_srcfile_path_CXX='`$ECHO "X$fix_srcfile_path_CXX" | $Xsed -e "$delay_single_quote_subst"`'
30701 always_export_symbols_CXX='`$ECHO "X$always_export_symbols_CXX" | $Xsed -e "$delay_single_quote_subst"`'
30702 export_symbols_cmds_CXX='`$ECHO "X$export_symbols_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
30703 exclude_expsyms_CXX='`$ECHO "X$exclude_expsyms_CXX" | $Xsed -e "$delay_single_quote_subst"`'
30704 include_expsyms_CXX='`$ECHO "X$include_expsyms_CXX" | $Xsed -e "$delay_single_quote_subst"`'
30705 prelink_cmds_CXX='`$ECHO "X$prelink_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
30706 file_list_spec_CXX='`$ECHO "X$file_list_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
30707 hardcode_action_CXX='`$ECHO "X$hardcode_action_CXX" | $Xsed -e "$delay_single_quote_subst"`'
30708 compiler_lib_search_dirs_CXX='`$ECHO "X$compiler_lib_search_dirs_CXX" | $Xsed -e "$delay_single_quote_subst"`'
30709 predep_objects_CXX='`$ECHO "X$predep_objects_CXX" | $Xsed -e "$delay_single_quote_subst"`'
30710 postdep_objects_CXX='`$ECHO "X$postdep_objects_CXX" | $Xsed -e "$delay_single_quote_subst"`'
30711 predeps_CXX='`$ECHO "X$predeps_CXX" | $Xsed -e "$delay_single_quote_subst"`'
30712 postdeps_CXX='`$ECHO "X$postdeps_CXX" | $Xsed -e "$delay_single_quote_subst"`'
30713 compiler_lib_search_path_CXX='`$ECHO "X$compiler_lib_search_path_CXX" | $Xsed -e "$delay_single_quote_subst"`'
30714
30715 LTCC='$LTCC'
30716 LTCFLAGS='$LTCFLAGS'
30717 compiler='$compiler_DEFAULT'
30718
30719 # Quote evaled strings.
30720 for var in SED \
30721 GREP \
30722 EGREP \
30723 FGREP \
30724 LD \
30725 NM \
30726 LN_S \
30727 lt_SP2NL \
30728 lt_NL2SP \
30729 reload_flag \
30730 OBJDUMP \
30731 deplibs_check_method \
30732 file_magic_cmd \
30733 AR \
30734 AR_FLAGS \
30735 STRIP \
30736 RANLIB \
30737 CC \
30738 CFLAGS \
30739 compiler \
30740 lt_cv_sys_global_symbol_pipe \
30741 lt_cv_sys_global_symbol_to_cdecl \
30742 lt_cv_sys_global_symbol_to_c_name_address \
30743 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
30744 SHELL \
30745 ECHO \
30746 lt_prog_compiler_no_builtin_flag \
30747 lt_prog_compiler_wl \
30748 lt_prog_compiler_pic \
30749 lt_prog_compiler_static \
30750 lt_cv_prog_compiler_c_o \
30751 need_locks \
30752 DSYMUTIL \
30753 NMEDIT \
30754 LIPO \
30755 OTOOL \
30756 OTOOL64 \
30757 shrext_cmds \
30758 export_dynamic_flag_spec \
30759 whole_archive_flag_spec \
30760 compiler_needs_object \
30761 with_gnu_ld \
30762 allow_undefined_flag \
30763 no_undefined_flag \
30764 hardcode_libdir_flag_spec \
30765 hardcode_libdir_flag_spec_ld \
30766 hardcode_libdir_separator \
30767 fix_srcfile_path \
30768 exclude_expsyms \
30769 include_expsyms \
30770 file_list_spec \
30771 variables_saved_for_relink \
30772 libname_spec \
30773 library_names_spec \
30774 soname_spec \
30775 finish_eval \
30776 old_striplib \
30777 striplib \
30778 compiler_lib_search_dirs \
30779 predep_objects \
30780 postdep_objects \
30781 predeps \
30782 postdeps \
30783 compiler_lib_search_path \
30784 LD_CXX \
30785 compiler_CXX \
30786 lt_prog_compiler_no_builtin_flag_CXX \
30787 lt_prog_compiler_wl_CXX \
30788 lt_prog_compiler_pic_CXX \
30789 lt_prog_compiler_static_CXX \
30790 lt_cv_prog_compiler_c_o_CXX \
30791 export_dynamic_flag_spec_CXX \
30792 whole_archive_flag_spec_CXX \
30793 compiler_needs_object_CXX \
30794 with_gnu_ld_CXX \
30795 allow_undefined_flag_CXX \
30796 no_undefined_flag_CXX \
30797 hardcode_libdir_flag_spec_CXX \
30798 hardcode_libdir_flag_spec_ld_CXX \
30799 hardcode_libdir_separator_CXX \
30800 fix_srcfile_path_CXX \
30801 exclude_expsyms_CXX \
30802 include_expsyms_CXX \
30803 file_list_spec_CXX \
30804 compiler_lib_search_dirs_CXX \
30805 predep_objects_CXX \
30806 postdep_objects_CXX \
30807 predeps_CXX \
30808 postdeps_CXX \
30809 compiler_lib_search_path_CXX; do
30810     case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
30811     *[\\\\\\\`\\"\\\$]*)
30812       eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
30813       ;;
30814     *)
30815       eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
30816       ;;
30817     esac
30818 done
30819
30820 # Double-quote double-evaled strings.
30821 for var in reload_cmds \
30822 old_postinstall_cmds \
30823 old_postuninstall_cmds \
30824 old_archive_cmds \
30825 extract_expsyms_cmds \
30826 old_archive_from_new_cmds \
30827 old_archive_from_expsyms_cmds \
30828 archive_cmds \
30829 archive_expsym_cmds \
30830 module_cmds \
30831 module_expsym_cmds \
30832 export_symbols_cmds \
30833 prelink_cmds \
30834 postinstall_cmds \
30835 postuninstall_cmds \
30836 finish_cmds \
30837 sys_lib_search_path_spec \
30838 sys_lib_dlsearch_path_spec \
30839 old_archive_cmds_CXX \
30840 old_archive_from_new_cmds_CXX \
30841 old_archive_from_expsyms_cmds_CXX \
30842 archive_cmds_CXX \
30843 archive_expsym_cmds_CXX \
30844 module_cmds_CXX \
30845 module_expsym_cmds_CXX \
30846 export_symbols_cmds_CXX \
30847 prelink_cmds_CXX; do
30848     case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
30849     *[\\\\\\\`\\"\\\$]*)
30850       eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
30851       ;;
30852     *)
30853       eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
30854       ;;
30855     esac
30856 done
30857
30858 # Fix-up fallback echo if it was mangled by the above quoting rules.
30859 case \$lt_ECHO in
30860 *'\\\$0 --fallback-echo"')  lt_ECHO=\`\$ECHO "X\$lt_ECHO" | \$Xsed -e 's/\\\\\\\\\\\\\\\$0 --fallback-echo"\$/\$0 --fallback-echo"/'\`
30861   ;;
30862 esac
30863
30864 ac_aux_dir='$ac_aux_dir'
30865 xsi_shell='$xsi_shell'
30866 lt_shell_append='$lt_shell_append'
30867
30868 # See if we are running on zsh, and set the options which allow our
30869 # commands through without removal of \ escapes INIT.
30870 if test -n "\${ZSH_VERSION+set}" ; then
30871    setopt NO_GLOB_SUBST
30872 fi
30873
30874
30875     PACKAGE='$PACKAGE'
30876     VERSION='$VERSION'
30877     TIMESTAMP='$TIMESTAMP'
30878     RM='$RM'
30879     ofile='$ofile'
30880
30881
30882
30883
30884
30885 # Capture the value of obsolete ALL_LINGUAS because we need it to compute
30886     # POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES, CATALOGS. But hide it
30887     # from automake.
30888     eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"'
30889     # Capture the value of LINGUAS because we need it to compute CATALOGS.
30890     LINGUAS="${LINGUAS-%UNSET%}"
30891
30892
30893 _ACEOF
30894
30895 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
30896
30897 # Handling of arguments.
30898 for ac_config_target in $ac_config_targets
30899 do
30900   case $ac_config_target in
30901     "src/config.h") CONFIG_HEADERS="$CONFIG_HEADERS src/config.h:autoconf/config.h.in" ;;
30902     "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
30903     "default-1") CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
30904     "autoconf/Make.common") CONFIG_FILES="$CONFIG_FILES autoconf/Make.common" ;;
30905     "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
30906     "manpages/Makefile") CONFIG_FILES="$CONFIG_FILES manpages/Makefile" ;;
30907     "scripts/btraceback") CONFIG_FILES="$CONFIG_FILES scripts/btraceback" ;;
30908     "scripts/bconsole") CONFIG_FILES="$CONFIG_FILES scripts/bconsole" ;;
30909     "scripts/bacula") CONFIG_FILES="$CONFIG_FILES scripts/bacula" ;;
30910     "scripts/bacula-ctl-dir") CONFIG_FILES="$CONFIG_FILES scripts/bacula-ctl-dir" ;;
30911     "scripts/bacula-ctl-fd") CONFIG_FILES="$CONFIG_FILES scripts/bacula-ctl-fd" ;;
30912     "scripts/bacula-ctl-sd") CONFIG_FILES="$CONFIG_FILES scripts/bacula-ctl-sd" ;;
30913     "scripts/devel_bacula") CONFIG_FILES="$CONFIG_FILES scripts/devel_bacula" ;;
30914     "scripts/Makefile") CONFIG_FILES="$CONFIG_FILES scripts/Makefile" ;;
30915     "scripts/logrotate") CONFIG_FILES="$CONFIG_FILES scripts/logrotate" ;;
30916     "scripts/bacula.desktop.gnome1") CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome1" ;;
30917     "scripts/bacula.desktop.gnome2") CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome2" ;;
30918     "scripts/bacula.desktop.gnome1.consolehelper") CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome1.consolehelper" ;;
30919     "scripts/bacula.desktop.gnome2.consolehelper") CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome2.consolehelper" ;;
30920     "scripts/bacula.desktop.gnome1.xsu") CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome1.xsu" ;;
30921     "scripts/bacula.desktop.gnome2.xsu") CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome2.xsu" ;;
30922     "scripts/bgnome-console.console_apps") CONFIG_FILES="$CONFIG_FILES scripts/bgnome-console.console_apps" ;;
30923     "scripts/mtx-changer") CONFIG_FILES="$CONFIG_FILES scripts/mtx-changer" ;;
30924     "scripts/disk-changer") CONFIG_FILES="$CONFIG_FILES scripts/disk-changer" ;;
30925     "scripts/dvd-handler") CONFIG_FILES="$CONFIG_FILES scripts/dvd-handler" ;;
30926     "scripts/dvd-simulator") CONFIG_FILES="$CONFIG_FILES scripts/dvd-simulator" ;;
30927     "scripts/bacula-tray-monitor.desktop") CONFIG_FILES="$CONFIG_FILES scripts/bacula-tray-monitor.desktop" ;;
30928     "scripts/logwatch/Makefile") CONFIG_FILES="$CONFIG_FILES scripts/logwatch/Makefile" ;;
30929     "scripts/logwatch/logfile.bacula.conf") CONFIG_FILES="$CONFIG_FILES scripts/logwatch/logfile.bacula.conf" ;;
30930     "scripts/wxconsole.console_apps") CONFIG_FILES="$CONFIG_FILES scripts/wxconsole.console_apps" ;;
30931     "scripts/wxconsole.desktop.consolehelper") CONFIG_FILES="$CONFIG_FILES scripts/wxconsole.desktop.consolehelper" ;;
30932     "scripts/wxconsole.desktop.xsu") CONFIG_FILES="$CONFIG_FILES scripts/wxconsole.desktop.xsu" ;;
30933     "scripts/bat.desktop") CONFIG_FILES="$CONFIG_FILES scripts/bat.desktop" ;;
30934     "scripts/bat.desktop.xsu") CONFIG_FILES="$CONFIG_FILES scripts/bat.desktop.xsu" ;;
30935     "scripts/bat.desktop.consolehelper") CONFIG_FILES="$CONFIG_FILES scripts/bat.desktop.consolehelper" ;;
30936     "scripts/bat.console_apps") CONFIG_FILES="$CONFIG_FILES scripts/bat.console_apps" ;;
30937     "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
30938     "src/host.h") CONFIG_FILES="$CONFIG_FILES src/host.h" ;;
30939     "src/console/Makefile") CONFIG_FILES="$CONFIG_FILES src/console/Makefile" ;;
30940     "src/console/bconsole.conf") CONFIG_FILES="$CONFIG_FILES src/console/bconsole.conf" ;;
30941     "src/qt-console/tray-monitor/tray-monitor.pro") CONFIG_FILES="$CONFIG_FILES src/qt-console/tray-monitor/tray-monitor.pro" ;;
30942     "src/qt-console/tray-monitor/tray-monitor.conf") CONFIG_FILES="$CONFIG_FILES src/qt-console/tray-monitor/tray-monitor.conf" ;;
30943     "src/qt-console/bat.conf") CONFIG_FILES="$CONFIG_FILES src/qt-console/bat.conf" ;;
30944     "src/qt-console/bat.pro") CONFIG_FILES="$CONFIG_FILES src/qt-console/bat.pro" ;;
30945     "src/qt-console/bat.pro.mingw32") CONFIG_FILES="$CONFIG_FILES src/qt-console/bat.pro.mingw32" ;;
30946     "src/qt-console/install_conf_file") CONFIG_FILES="$CONFIG_FILES src/qt-console/install_conf_file" ;;
30947     "src/wx-console/Makefile") CONFIG_FILES="$CONFIG_FILES src/wx-console/Makefile" ;;
30948     "src/wx-console/bwx-console.conf") CONFIG_FILES="$CONFIG_FILES src/wx-console/bwx-console.conf" ;;
30949     "src/tray-monitor/Makefile") CONFIG_FILES="$CONFIG_FILES src/tray-monitor/Makefile" ;;
30950     "src/tray-monitor/tray-monitor.conf") CONFIG_FILES="$CONFIG_FILES src/tray-monitor/tray-monitor.conf" ;;
30951     "src/dird/Makefile") CONFIG_FILES="$CONFIG_FILES src/dird/Makefile" ;;
30952     "src/dird/bacula-dir.conf") CONFIG_FILES="$CONFIG_FILES src/dird/bacula-dir.conf" ;;
30953     "src/lib/Makefile") CONFIG_FILES="$CONFIG_FILES src/lib/Makefile" ;;
30954     "src/stored/Makefile") CONFIG_FILES="$CONFIG_FILES src/stored/Makefile" ;;
30955     "src/stored/bacula-sd.conf") CONFIG_FILES="$CONFIG_FILES src/stored/bacula-sd.conf" ;;
30956     "src/filed/Makefile") CONFIG_FILES="$CONFIG_FILES src/filed/Makefile" ;;
30957     "src/filed/bacula-fd.conf") CONFIG_FILES="$CONFIG_FILES src/filed/bacula-fd.conf" ;;
30958     "src/cats/Makefile") CONFIG_FILES="$CONFIG_FILES src/cats/Makefile" ;;
30959     "src/cats/make_catalog_backup.pl") CONFIG_FILES="$CONFIG_FILES src/cats/make_catalog_backup.pl" ;;
30960     "src/cats/make_catalog_backup") CONFIG_FILES="$CONFIG_FILES src/cats/make_catalog_backup" ;;
30961     "src/cats/delete_catalog_backup") CONFIG_FILES="$CONFIG_FILES src/cats/delete_catalog_backup" ;;
30962     "src/cats/create_postgresql_database") CONFIG_FILES="$CONFIG_FILES src/cats/create_postgresql_database" ;;
30963     "src/cats/update_postgresql_tables") CONFIG_FILES="$CONFIG_FILES src/cats/update_postgresql_tables" ;;
30964     "src/cats/make_postgresql_tables") CONFIG_FILES="$CONFIG_FILES src/cats/make_postgresql_tables" ;;
30965     "src/cats/grant_postgresql_privileges") CONFIG_FILES="$CONFIG_FILES src/cats/grant_postgresql_privileges" ;;
30966     "src/cats/drop_postgresql_tables") CONFIG_FILES="$CONFIG_FILES src/cats/drop_postgresql_tables" ;;
30967     "src/cats/drop_postgresql_database") CONFIG_FILES="$CONFIG_FILES src/cats/drop_postgresql_database" ;;
30968     "src/cats/create_mysql_database") CONFIG_FILES="$CONFIG_FILES src/cats/create_mysql_database" ;;
30969     "src/cats/update_mysql_tables") CONFIG_FILES="$CONFIG_FILES src/cats/update_mysql_tables" ;;
30970     "src/cats/make_mysql_tables") CONFIG_FILES="$CONFIG_FILES src/cats/make_mysql_tables" ;;
30971     "src/cats/grant_mysql_privileges") CONFIG_FILES="$CONFIG_FILES src/cats/grant_mysql_privileges" ;;
30972     "src/cats/drop_mysql_tables") CONFIG_FILES="$CONFIG_FILES src/cats/drop_mysql_tables" ;;
30973     "src/cats/drop_mysql_database") CONFIG_FILES="$CONFIG_FILES src/cats/drop_mysql_database" ;;
30974     "src/cats/create_sqlite3_database") CONFIG_FILES="$CONFIG_FILES src/cats/create_sqlite3_database" ;;
30975     "src/cats/update_sqlite3_tables") CONFIG_FILES="$CONFIG_FILES src/cats/update_sqlite3_tables" ;;
30976     "src/cats/make_sqlite3_tables") CONFIG_FILES="$CONFIG_FILES src/cats/make_sqlite3_tables" ;;
30977     "src/cats/grant_sqlite3_privileges") CONFIG_FILES="$CONFIG_FILES src/cats/grant_sqlite3_privileges" ;;
30978     "src/cats/drop_sqlite3_tables") CONFIG_FILES="$CONFIG_FILES src/cats/drop_sqlite3_tables" ;;
30979     "src/cats/drop_sqlite3_database") CONFIG_FILES="$CONFIG_FILES src/cats/drop_sqlite3_database" ;;
30980     "src/cats/create_ingres_database") CONFIG_FILES="$CONFIG_FILES src/cats/create_ingres_database" ;;
30981     "src/cats/update_ingres_tables") CONFIG_FILES="$CONFIG_FILES src/cats/update_ingres_tables" ;;
30982     "src/cats/make_ingres_tables") CONFIG_FILES="$CONFIG_FILES src/cats/make_ingres_tables" ;;
30983     "src/cats/grant_ingres_privileges") CONFIG_FILES="$CONFIG_FILES src/cats/grant_ingres_privileges" ;;
30984     "src/cats/drop_ingres_tables") CONFIG_FILES="$CONFIG_FILES src/cats/drop_ingres_tables" ;;
30985     "src/cats/drop_ingres_database") CONFIG_FILES="$CONFIG_FILES src/cats/drop_ingres_database" ;;
30986     "src/cats/sqlite") CONFIG_FILES="$CONFIG_FILES src/cats/sqlite" ;;
30987     "src/cats/mysql") CONFIG_FILES="$CONFIG_FILES src/cats/mysql" ;;
30988     "src/cats/create_bacula_database") CONFIG_FILES="$CONFIG_FILES src/cats/create_bacula_database" ;;
30989     "src/cats/update_bacula_tables") CONFIG_FILES="$CONFIG_FILES src/cats/update_bacula_tables" ;;
30990     "src/cats/grant_bacula_privileges") CONFIG_FILES="$CONFIG_FILES src/cats/grant_bacula_privileges" ;;
30991     "src/cats/make_bacula_tables") CONFIG_FILES="$CONFIG_FILES src/cats/make_bacula_tables" ;;
30992     "src/cats/drop_bacula_tables") CONFIG_FILES="$CONFIG_FILES src/cats/drop_bacula_tables" ;;
30993     "src/cats/drop_bacula_database") CONFIG_FILES="$CONFIG_FILES src/cats/drop_bacula_database" ;;
30994     "src/findlib/Makefile") CONFIG_FILES="$CONFIG_FILES src/findlib/Makefile" ;;
30995     "src/tools/Makefile") CONFIG_FILES="$CONFIG_FILES src/tools/Makefile" ;;
30996     "src/plugins/fd/Makefile") CONFIG_FILES="$CONFIG_FILES src/plugins/fd/Makefile" ;;
30997     "src/plugins/sd/Makefile") CONFIG_FILES="$CONFIG_FILES src/plugins/sd/Makefile" ;;
30998     "src/plugins/dir/Makefile") CONFIG_FILES="$CONFIG_FILES src/plugins/dir/Makefile" ;;
30999     "src/win32/Makefile.inc") CONFIG_FILES="$CONFIG_FILES src/win32/Makefile.inc" ;;
31000     "po/Makefile.in") CONFIG_FILES="$CONFIG_FILES po/Makefile.in" ;;
31001     "updatedb/update_mysql_tables_9_to_10") CONFIG_FILES="$CONFIG_FILES updatedb/update_mysql_tables_9_to_10" ;;
31002     "updatedb/update_sqlite3_tables_9_to_10") CONFIG_FILES="$CONFIG_FILES updatedb/update_sqlite3_tables_9_to_10" ;;
31003     "updatedb/update_postgresql_tables_9_to_10") CONFIG_FILES="$CONFIG_FILES updatedb/update_postgresql_tables_9_to_10" ;;
31004     "updatedb/update_mysql_tables_10_to_11") CONFIG_FILES="$CONFIG_FILES updatedb/update_mysql_tables_10_to_11" ;;
31005     "updatedb/update_sqlite3_tables_10_to_11") CONFIG_FILES="$CONFIG_FILES updatedb/update_sqlite3_tables_10_to_11" ;;
31006     "updatedb/update_postgresql_tables_10_to_11") CONFIG_FILES="$CONFIG_FILES updatedb/update_postgresql_tables_10_to_11" ;;
31007     "updatedb/update_mysql_tables_11_to_12") CONFIG_FILES="$CONFIG_FILES updatedb/update_mysql_tables_11_to_12" ;;
31008     "updatedb/update_sqlite3_tables_11_to_12") CONFIG_FILES="$CONFIG_FILES updatedb/update_sqlite3_tables_11_to_12" ;;
31009     "updatedb/update_postgresql_tables_11_to_12") CONFIG_FILES="$CONFIG_FILES updatedb/update_postgresql_tables_11_to_12" ;;
31010     "examples/nagios/check_bacula/Makefile") CONFIG_FILES="$CONFIG_FILES examples/nagios/check_bacula/Makefile" ;;
31011     "$PFILES") CONFIG_FILES="$CONFIG_FILES $PFILES" ;;
31012     "default") CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
31013
31014   *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
31015   esac
31016 done
31017
31018
31019 # If the user did not use the arguments to specify the items to instantiate,
31020 # then the envvar interface is used.  Set only those that are not.
31021 # We use the long form for the default assignment because of an extremely
31022 # bizarre bug on SunOS 4.1.3.
31023 if $ac_need_defaults; then
31024   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
31025   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
31026   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
31027 fi
31028
31029 # Have a temporary directory for convenience.  Make it in the build tree
31030 # simply because there is no reason against having it here, and in addition,
31031 # creating and moving files from /tmp can sometimes cause problems.
31032 # Hook for its removal unless debugging.
31033 # Note that there is a small window in which the directory will not be cleaned:
31034 # after its creation but before its name has been assigned to `$tmp'.
31035 $debug ||
31036 {
31037   tmp=
31038   trap 'exit_status=$?
31039   { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
31040 ' 0
31041   trap 'as_fn_exit 1' 1 2 13 15
31042 }
31043 # Create a (secure) tmp directory for tmp files.
31044
31045 {
31046   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
31047   test -n "$tmp" && test -d "$tmp"
31048 }  ||
31049 {
31050   tmp=./conf$$-$RANDOM
31051   (umask 077 && mkdir "$tmp")
31052 } || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
31053
31054 # Set up the scripts for CONFIG_FILES section.
31055 # No need to generate them if there are no CONFIG_FILES.
31056 # This happens for instance with `./config.status config.h'.
31057 if test -n "$CONFIG_FILES"; then
31058
31059 if $AWK 'BEGIN { getline <"/dev/null" }' </dev/null 2>/dev/null; then
31060   ac_cs_awk_getline=:
31061   ac_cs_awk_pipe_init=
31062   ac_cs_awk_read_file='
31063       while ((getline aline < (F[key])) > 0)
31064         print(aline)
31065       close(F[key])'
31066   ac_cs_awk_pipe_fini=
31067 else
31068   ac_cs_awk_getline=false
31069   ac_cs_awk_pipe_init="print \"cat <<'|#_!!_#|' &&\""
31070   ac_cs_awk_read_file='
31071       print "|#_!!_#|"
31072       print "cat " F[key] " &&"
31073       '$ac_cs_awk_pipe_init
31074   # The final `:' finishes the AND list.
31075   ac_cs_awk_pipe_fini='END { print "|#_!!_#|"; print ":" }'
31076 fi
31077 ac_cr=`echo X | tr X '\015'`
31078 # On cygwin, bash can eat \r inside `` if the user requested igncr.
31079 # But we know of no other shell where ac_cr would be empty at this
31080 # point, so we can use a bashism as a fallback.
31081 if test "x$ac_cr" = x; then
31082   eval ac_cr=\$\'\\r\'
31083 fi
31084 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
31085 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
31086   ac_cs_awk_cr='\r'
31087 else
31088   ac_cs_awk_cr=$ac_cr
31089 fi
31090
31091 echo 'BEGIN {' >"$tmp/subs1.awk" &&
31092 _ACEOF
31093
31094 # Create commands to substitute file output variables.
31095 {
31096   echo "cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1" &&
31097   echo 'cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&' &&
31098   echo "$ac_subst_files" | sed 's/.*/F["&"]="$&"/' &&
31099   echo "_ACAWK" &&
31100   echo "_ACEOF"
31101 } >conf$$files.sh &&
31102 . ./conf$$files.sh ||
31103   as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
31104 rm -f conf$$files.sh
31105
31106 {
31107   echo "cat >conf$$subs.awk <<_ACEOF" &&
31108   echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
31109   echo "_ACEOF"
31110 } >conf$$subs.sh ||
31111   as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
31112 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
31113 ac_delim='%!_!# '
31114 for ac_last_try in false false false false false :; do
31115   . ./conf$$subs.sh ||
31116     as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
31117
31118   ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
31119   if test $ac_delim_n = $ac_delim_num; then
31120     break
31121   elif $ac_last_try; then
31122     as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
31123   else
31124     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
31125   fi
31126 done
31127 rm -f conf$$subs.sh
31128
31129 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
31130 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
31131 _ACEOF
31132 sed -n '
31133 h
31134 s/^/S["/; s/!.*/"]=/
31135 p
31136 g
31137 s/^[^!]*!//
31138 :repl
31139 t repl
31140 s/'"$ac_delim"'$//
31141 t delim
31142 :nl
31143 h
31144 s/\(.\{148\}\)..*/\1/
31145 t more1
31146 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
31147 p
31148 n
31149 b repl
31150 :more1
31151 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
31152 p
31153 g
31154 s/.\{148\}//
31155 t nl
31156 :delim
31157 h
31158 s/\(.\{148\}\)..*/\1/
31159 t more2
31160 s/["\\]/\\&/g; s/^/"/; s/$/"/
31161 p
31162 b
31163 :more2
31164 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
31165 p
31166 g
31167 s/.\{148\}//
31168 t delim
31169 ' <conf$$subs.awk | sed '
31170 /^[^""]/{
31171   N
31172   s/\n//
31173 }
31174 ' >>$CONFIG_STATUS || ac_write_fail=1
31175 rm -f conf$$subs.awk
31176 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
31177 _ACAWK
31178 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
31179   for (key in S) S_is_set[key] = 1
31180   FS = "\a"
31181   \$ac_cs_awk_pipe_init
31182 }
31183 {
31184   line = $ 0
31185   nfields = split(line, field, "@")
31186   substed = 0
31187   len = length(field[1])
31188   for (i = 2; i < nfields; i++) {
31189     key = field[i]
31190     keylen = length(key)
31191     if (S_is_set[key]) {
31192       value = S[key]
31193       line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
31194       len += length(value) + length(field[++i])
31195       substed = 1
31196     } else
31197       len += 1 + keylen
31198   }
31199   if (nfields == 3 && !substed) {
31200     key = field[2]
31201     if (F[key] != "" && line ~ /^[       ]*@.*@[         ]*$/) {
31202       \$ac_cs_awk_read_file
31203       next
31204     }
31205   }
31206   print line
31207 }
31208 \$ac_cs_awk_pipe_fini
31209 _ACAWK
31210 _ACEOF
31211 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
31212 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
31213   sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
31214 else
31215   cat
31216 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
31217   || as_fn_error "could not setup config files machinery" "$LINENO" 5
31218 _ACEOF
31219
31220 # VPATH may cause trouble with some makes, so we remove $(srcdir),
31221 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
31222 # trailing colons and then remove the whole line if VPATH becomes empty
31223 # (actually we leave an empty line to preserve line numbers).
31224 if test "x$srcdir" = x.; then
31225   ac_vpsub='/^[  ]*VPATH[        ]*=/{
31226 s/:*\$(srcdir):*/:/
31227 s/:*\${srcdir}:*/:/
31228 s/:*@srcdir@:*/:/
31229 s/^\([^=]*=[     ]*\):*/\1/
31230 s/:*$//
31231 s/^[^=]*=[       ]*$//
31232 }'
31233 fi
31234
31235 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
31236 fi # test -n "$CONFIG_FILES"
31237
31238 # Set up the scripts for CONFIG_HEADERS section.
31239 # No need to generate them if there are no CONFIG_HEADERS.
31240 # This happens for instance with `./config.status Makefile'.
31241 if test -n "$CONFIG_HEADERS"; then
31242 cat >"$tmp/defines.awk" <<\_ACAWK ||
31243 BEGIN {
31244 _ACEOF
31245
31246 # Transform confdefs.h into an awk script `defines.awk', embedded as
31247 # here-document in config.status, that substitutes the proper values into
31248 # config.h.in to produce config.h.
31249
31250 # Create a delimiter string that does not exist in confdefs.h, to ease
31251 # handling of long lines.
31252 ac_delim='%!_!# '
31253 for ac_last_try in false false :; do
31254   ac_t=`sed -n "/$ac_delim/p" confdefs.h`
31255   if test -z "$ac_t"; then
31256     break
31257   elif $ac_last_try; then
31258     as_fn_error "could not make $CONFIG_HEADERS" "$LINENO" 5
31259   else
31260     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
31261   fi
31262 done
31263
31264 # For the awk script, D is an array of macro values keyed by name,
31265 # likewise P contains macro parameters if any.  Preserve backslash
31266 # newline sequences.
31267
31268 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
31269 sed -n '
31270 s/.\{148\}/&'"$ac_delim"'/g
31271 t rset
31272 :rset
31273 s/^[     ]*#[    ]*define[       ][      ]*/ /
31274 t def
31275 d
31276 :def
31277 s/\\$//
31278 t bsnl
31279 s/["\\]/\\&/g
31280 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
31281 D["\1"]=" \3"/p
31282 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2"/p
31283 d
31284 :bsnl
31285 s/["\\]/\\&/g
31286 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
31287 D["\1"]=" \3\\\\\\n"\\/p
31288 t cont
31289 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
31290 t cont
31291 d
31292 :cont
31293 n
31294 s/.\{148\}/&'"$ac_delim"'/g
31295 t clear
31296 :clear
31297 s/\\$//
31298 t bsnlc
31299 s/["\\]/\\&/g; s/^/"/; s/$/"/p
31300 d
31301 :bsnlc
31302 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
31303 b cont
31304 ' <confdefs.h | sed '
31305 s/'"$ac_delim"'/"\\\
31306 "/g' >>$CONFIG_STATUS || ac_write_fail=1
31307
31308 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
31309   for (key in D) D_is_set[key] = 1
31310   FS = "\a"
31311 }
31312 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
31313   line = \$ 0
31314   split(line, arg, " ")
31315   if (arg[1] == "#") {
31316     defundef = arg[2]
31317     mac1 = arg[3]
31318   } else {
31319     defundef = substr(arg[1], 2)
31320     mac1 = arg[2]
31321   }
31322   split(mac1, mac2, "(") #)
31323   macro = mac2[1]
31324   prefix = substr(line, 1, index(line, defundef) - 1)
31325   if (D_is_set[macro]) {
31326     # Preserve the white space surrounding the "#".
31327     print prefix "define", macro P[macro] D[macro]
31328     next
31329   } else {
31330     # Replace #undef with comments.  This is necessary, for example,
31331     # in the case of _POSIX_SOURCE, which is predefined and required
31332     # on some systems where configure will not decide to define it.
31333     if (defundef == "undef") {
31334       print "/*", prefix defundef, macro, "*/"
31335       next
31336     }
31337   }
31338 }
31339 { print }
31340 _ACAWK
31341 _ACEOF
31342 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
31343   as_fn_error "could not setup config headers machinery" "$LINENO" 5
31344 fi # test -n "$CONFIG_HEADERS"
31345
31346
31347 eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
31348 shift
31349 for ac_tag
31350 do
31351   case $ac_tag in
31352   :[FHLC]) ac_mode=$ac_tag; continue;;
31353   esac
31354   case $ac_mode$ac_tag in
31355   :[FHL]*:*);;
31356   :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
31357   :[FH]-) ac_tag=-:-;;
31358   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
31359   esac
31360   ac_save_IFS=$IFS
31361   IFS=:
31362   set x $ac_tag
31363   IFS=$ac_save_IFS
31364   shift
31365   ac_file=$1
31366   shift
31367
31368   case $ac_mode in
31369   :L) ac_source=$1;;
31370   :[FH])
31371     ac_file_inputs=
31372     for ac_f
31373     do
31374       case $ac_f in
31375       -) ac_f="$tmp/stdin";;
31376       *) # Look for the file first in the build tree, then in the source tree
31377          # (if the path is not absolute).  The absolute path cannot be DOS-style,
31378          # because $ac_f cannot contain `:'.
31379          test -f "$ac_f" ||
31380            case $ac_f in
31381            [\\/$]*) false;;
31382            *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
31383            esac ||
31384            as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
31385       esac
31386       case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
31387       as_fn_append ac_file_inputs " '$ac_f'"
31388     done
31389
31390     # Let's still pretend it is `configure' which instantiates (i.e., don't
31391     # use $as_me), people would be surprised to read:
31392     #    /* config.h.  Generated by config.status.  */
31393     configure_input='Generated from '`
31394           $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
31395         `' by configure.'
31396     if test x"$ac_file" != x-; then
31397       configure_input="$ac_file.  $configure_input"
31398       { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
31399 $as_echo "$as_me: creating $ac_file" >&6;}
31400     fi
31401     # Neutralize special characters interpreted by sed in replacement strings.
31402     case $configure_input in #(
31403     *\&* | *\|* | *\\* )
31404        ac_sed_conf_input=`$as_echo "$configure_input" |
31405        sed 's/[\\\\&|]/\\\\&/g'`;; #(
31406     *) ac_sed_conf_input=$configure_input;;
31407     esac
31408
31409     case $ac_tag in
31410     *:-:* | *:-) cat >"$tmp/stdin" \
31411       || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
31412     esac
31413     ;;
31414   esac
31415
31416   ac_dir=`$as_dirname -- "$ac_file" ||
31417 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
31418          X"$ac_file" : 'X\(//\)[^/]' \| \
31419          X"$ac_file" : 'X\(//\)$' \| \
31420          X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
31421 $as_echo X"$ac_file" |
31422     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
31423             s//\1/
31424             q
31425           }
31426           /^X\(\/\/\)[^/].*/{
31427             s//\1/
31428             q
31429           }
31430           /^X\(\/\/\)$/{
31431             s//\1/
31432             q
31433           }
31434           /^X\(\/\).*/{
31435             s//\1/
31436             q
31437           }
31438           s/.*/./; q'`
31439   as_dir="$ac_dir"; as_fn_mkdir_p
31440   ac_builddir=.
31441
31442 case "$ac_dir" in
31443 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
31444 *)
31445   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
31446   # A ".." for each directory in $ac_dir_suffix.
31447   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
31448   case $ac_top_builddir_sub in
31449   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
31450   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
31451   esac ;;
31452 esac
31453 ac_abs_top_builddir=$ac_pwd
31454 ac_abs_builddir=$ac_pwd$ac_dir_suffix
31455 # for backward compatibility:
31456 ac_top_builddir=$ac_top_build_prefix
31457
31458 case $srcdir in
31459   .)  # We are building in place.
31460     ac_srcdir=.
31461     ac_top_srcdir=$ac_top_builddir_sub
31462     ac_abs_top_srcdir=$ac_pwd ;;
31463   [\\/]* | ?:[\\/]* )  # Absolute name.
31464     ac_srcdir=$srcdir$ac_dir_suffix;
31465     ac_top_srcdir=$srcdir
31466     ac_abs_top_srcdir=$srcdir ;;
31467   *) # Relative name.
31468     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
31469     ac_top_srcdir=$ac_top_build_prefix$srcdir
31470     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
31471 esac
31472 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
31473
31474
31475   case $ac_mode in
31476   :F)
31477   #
31478   # CONFIG_FILE
31479   #
31480
31481   case $INSTALL in
31482   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
31483   *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
31484   esac
31485 _ACEOF
31486
31487 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
31488 # If the template does not know about datarootdir, expand it.
31489 # FIXME: This hack should be removed a few years after 2.60.
31490 ac_datarootdir_hack=; ac_datarootdir_seen=
31491 ac_sed_dataroot='
31492 /datarootdir/ {
31493   p
31494   q
31495 }
31496 /@datadir@/p
31497 /@docdir@/p
31498 /@infodir@/p
31499 /@localedir@/p
31500 /@mandir@/p'
31501 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
31502 *datarootdir*) ac_datarootdir_seen=yes;;
31503 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
31504   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
31505 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
31506 _ACEOF
31507 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
31508   ac_datarootdir_hack='
31509   s&@datadir@&$datadir&g
31510   s&@docdir@&$docdir&g
31511   s&@infodir@&$infodir&g
31512   s&@localedir@&$localedir&g
31513   s&@mandir@&$mandir&g
31514   s&\\\${datarootdir}&$datarootdir&g' ;;
31515 esac
31516 _ACEOF
31517
31518 # Neutralize VPATH when `$srcdir' = `.'.
31519 # Shell code in configure.ac might set extrasub.
31520 # FIXME: do we really want to maintain this feature?
31521 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
31522 ac_sed_extra="$ac_vpsub
31523 $extrasub
31524 _ACEOF
31525 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
31526 :t
31527 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
31528 s|@configure_input@|$ac_sed_conf_input|;t t
31529 s&@top_builddir@&$ac_top_builddir_sub&;t t
31530 s&@top_build_prefix@&$ac_top_build_prefix&;t t
31531 s&@srcdir@&$ac_srcdir&;t t
31532 s&@abs_srcdir@&$ac_abs_srcdir&;t t
31533 s&@top_srcdir@&$ac_top_srcdir&;t t
31534 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
31535 s&@builddir@&$ac_builddir&;t t
31536 s&@abs_builddir@&$ac_abs_builddir&;t t
31537 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
31538 s&@INSTALL@&$ac_INSTALL&;t t
31539 $ac_datarootdir_hack
31540 "
31541 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" |
31542 if $ac_cs_awk_getline; then
31543   $AWK -f "$tmp/subs.awk"
31544 else
31545   $AWK -f "$tmp/subs.awk" | $SHELL
31546 fi >$tmp/out \
31547   || as_fn_error "could not create $ac_file" "$LINENO" 5
31548
31549 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
31550   { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
31551   { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
31552   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
31553 which seems to be undefined.  Please make sure it is defined." >&5
31554 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
31555 which seems to be undefined.  Please make sure it is defined." >&2;}
31556
31557   rm -f "$tmp/stdin"
31558   case $ac_file in
31559   -) cat "$tmp/out" && rm -f "$tmp/out";;
31560   *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
31561   esac \
31562   || as_fn_error "could not create $ac_file" "$LINENO" 5
31563  ;;
31564   :H)
31565   #
31566   # CONFIG_HEADER
31567   #
31568   if test x"$ac_file" != x-; then
31569     {
31570       $as_echo "/* $configure_input  */" \
31571       && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
31572     } >"$tmp/config.h" \
31573       || as_fn_error "could not create $ac_file" "$LINENO" 5
31574     if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
31575       { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
31576 $as_echo "$as_me: $ac_file is unchanged" >&6;}
31577     else
31578       rm -f "$ac_file"
31579       mv "$tmp/config.h" "$ac_file" \
31580         || as_fn_error "could not create $ac_file" "$LINENO" 5
31581     fi
31582   else
31583     $as_echo "/* $configure_input  */" \
31584       && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
31585       || as_fn_error "could not create -" "$LINENO" 5
31586   fi
31587  ;;
31588
31589   :C)  { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
31590 $as_echo "$as_me: executing $ac_file commands" >&6;}
31591  ;;
31592   esac
31593
31594
31595   case $ac_file$ac_mode in
31596     "libtool":C)
31597
31598     # See if we are running on zsh, and set the options which allow our
31599     # commands through without removal of \ escapes.
31600     if test -n "${ZSH_VERSION+set}" ; then
31601       setopt NO_GLOB_SUBST
31602     fi
31603
31604     cfgfile="${ofile}T"
31605     trap "$RM \"$cfgfile\"; exit 1" 1 2 15
31606     $RM "$cfgfile"
31607
31608     cat <<_LT_EOF >> "$cfgfile"
31609 #! $SHELL
31610
31611 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
31612 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
31613 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
31614 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
31615 #
31616 #   Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
31617 #                 2006, 2007, 2008 Free Software Foundation, Inc.
31618 #   Written by Gordon Matzigkeit, 1996
31619 #
31620 #   This file is part of GNU Libtool.
31621 #
31622 # GNU Libtool is free software; you can redistribute it and/or
31623 # modify it under the terms of the GNU General Public License as
31624 # published by the Free Software Foundation; either version 2 of
31625 # the License, or (at your option) any later version.
31626 #
31627 # As a special exception to the GNU General Public License,
31628 # if you distribute this file as part of a program or library that
31629 # is built using GNU Libtool, you may include this file under the
31630 # same distribution terms that you use for the rest of that program.
31631 #
31632 # GNU Libtool is distributed in the hope that it will be useful,
31633 # but WITHOUT ANY WARRANTY; without even the implied warranty of
31634 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
31635 # GNU General Public License for more details.
31636 #
31637 # You should have received a copy of the GNU General Public License
31638 # along with GNU Libtool; see the file COPYING.  If not, a copy
31639 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
31640 # obtained by writing to the Free Software Foundation, Inc.,
31641 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
31642
31643
31644 # The names of the tagged configurations supported by this script.
31645 available_tags="CXX "
31646
31647 # ### BEGIN LIBTOOL CONFIG
31648
31649 # Which release of libtool.m4 was used?
31650 macro_version=$macro_version
31651 macro_revision=$macro_revision
31652
31653 # Whether or not to build shared libraries.
31654 build_libtool_libs=$enable_shared
31655
31656 # Whether or not to build static libraries.
31657 build_old_libs=$enable_static
31658
31659 # What type of objects to build.
31660 pic_mode=$pic_mode
31661
31662 # Whether or not to optimize for fast installation.
31663 fast_install=$enable_fast_install
31664
31665 # The host system.
31666 host_alias=$host_alias
31667 host=$host
31668 host_os=$host_os
31669
31670 # The build system.
31671 build_alias=$build_alias
31672 build=$build
31673 build_os=$build_os
31674
31675 # A sed program that does not truncate output.
31676 SED=$lt_SED
31677
31678 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
31679 Xsed="\$SED -e 1s/^X//"
31680
31681 # A grep program that handles long lines.
31682 GREP=$lt_GREP
31683
31684 # An ERE matcher.
31685 EGREP=$lt_EGREP
31686
31687 # A literal string matcher.
31688 FGREP=$lt_FGREP
31689
31690 # A BSD- or MS-compatible name lister.
31691 NM=$lt_NM
31692
31693 # Whether we need soft or hard links.
31694 LN_S=$lt_LN_S
31695
31696 # What is the maximum length of a command?
31697 max_cmd_len=$max_cmd_len
31698
31699 # Object file suffix (normally "o").
31700 objext=$ac_objext
31701
31702 # Executable file suffix (normally "").
31703 exeext=$exeext
31704
31705 # whether the shell understands "unset".
31706 lt_unset=$lt_unset
31707
31708 # turn spaces into newlines.
31709 SP2NL=$lt_lt_SP2NL
31710
31711 # turn newlines into spaces.
31712 NL2SP=$lt_lt_NL2SP
31713
31714 # How to create reloadable object files.
31715 reload_flag=$lt_reload_flag
31716 reload_cmds=$lt_reload_cmds
31717
31718 # An object symbol dumper.
31719 OBJDUMP=$lt_OBJDUMP
31720
31721 # Method to check whether dependent libraries are shared objects.
31722 deplibs_check_method=$lt_deplibs_check_method
31723
31724 # Command to use when deplibs_check_method == "file_magic".
31725 file_magic_cmd=$lt_file_magic_cmd
31726
31727 # The archiver.
31728 AR=$lt_AR
31729 AR_FLAGS=$lt_AR_FLAGS
31730
31731 # A symbol stripping program.
31732 STRIP=$lt_STRIP
31733
31734 # Commands used to install an old-style archive.
31735 RANLIB=$lt_RANLIB
31736 old_postinstall_cmds=$lt_old_postinstall_cmds
31737 old_postuninstall_cmds=$lt_old_postuninstall_cmds
31738
31739 # A C compiler.
31740 LTCC=$lt_CC
31741
31742 # LTCC compiler flags.
31743 LTCFLAGS=$lt_CFLAGS
31744
31745 # Take the output of nm and produce a listing of raw symbols and C names.
31746 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
31747
31748 # Transform the output of nm in a proper C declaration.
31749 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
31750
31751 # Transform the output of nm in a C name address pair.
31752 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
31753
31754 # Transform the output of nm in a C name address pair when lib prefix is needed.
31755 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
31756
31757 # The name of the directory that contains temporary libtool files.
31758 objdir=$objdir
31759
31760 # Shell to use when invoking shell scripts.
31761 SHELL=$lt_SHELL
31762
31763 # An echo program that does not interpret backslashes.
31764 ECHO=$lt_ECHO
31765
31766 # Used to examine libraries when file_magic_cmd begins with "file".
31767 MAGIC_CMD=$MAGIC_CMD
31768
31769 # Must we lock files when doing compilation?
31770 need_locks=$lt_need_locks
31771
31772 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
31773 DSYMUTIL=$lt_DSYMUTIL
31774
31775 # Tool to change global to local symbols on Mac OS X.
31776 NMEDIT=$lt_NMEDIT
31777
31778 # Tool to manipulate fat objects and archives on Mac OS X.
31779 LIPO=$lt_LIPO
31780
31781 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
31782 OTOOL=$lt_OTOOL
31783
31784 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
31785 OTOOL64=$lt_OTOOL64
31786
31787 # Old archive suffix (normally "a").
31788 libext=$libext
31789
31790 # Shared library suffix (normally ".so").
31791 shrext_cmds=$lt_shrext_cmds
31792
31793 # The commands to extract the exported symbol list from a shared archive.
31794 extract_expsyms_cmds=$lt_extract_expsyms_cmds
31795
31796 # Variables whose values should be saved in libtool wrapper scripts and
31797 # restored at link time.
31798 variables_saved_for_relink=$lt_variables_saved_for_relink
31799
31800 # Do we need the "lib" prefix for modules?
31801 need_lib_prefix=$need_lib_prefix
31802
31803 # Do we need a version for libraries?
31804 need_version=$need_version
31805
31806 # Library versioning type.
31807 version_type=$version_type
31808
31809 # Shared library runtime path variable.
31810 runpath_var=$runpath_var
31811
31812 # Shared library path variable.
31813 shlibpath_var=$shlibpath_var
31814
31815 # Is shlibpath searched before the hard-coded library search path?
31816 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
31817
31818 # Format of library name prefix.
31819 libname_spec=$lt_libname_spec
31820
31821 # List of archive names.  First name is the real one, the rest are links.
31822 # The last name is the one that the linker finds with -lNAME
31823 library_names_spec=$lt_library_names_spec
31824
31825 # The coded name of the library, if different from the real name.
31826 soname_spec=$lt_soname_spec
31827
31828 # Command to use after installation of a shared archive.
31829 postinstall_cmds=$lt_postinstall_cmds
31830
31831 # Command to use after uninstallation of a shared archive.
31832 postuninstall_cmds=$lt_postuninstall_cmds
31833
31834 # Commands used to finish a libtool library installation in a directory.
31835 finish_cmds=$lt_finish_cmds
31836
31837 # As "finish_cmds", except a single script fragment to be evaled but
31838 # not shown.
31839 finish_eval=$lt_finish_eval
31840
31841 # Whether we should hardcode library paths into libraries.
31842 hardcode_into_libs=$hardcode_into_libs
31843
31844 # Compile-time system search path for libraries.
31845 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
31846
31847 # Run-time system search path for libraries.
31848 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
31849
31850 # Whether dlopen is supported.
31851 dlopen_support=$enable_dlopen
31852
31853 # Whether dlopen of programs is supported.
31854 dlopen_self=$enable_dlopen_self
31855
31856 # Whether dlopen of statically linked programs is supported.
31857 dlopen_self_static=$enable_dlopen_self_static
31858
31859 # Commands to strip libraries.
31860 old_striplib=$lt_old_striplib
31861 striplib=$lt_striplib
31862
31863
31864 # The linker used to build libraries.
31865 LD=$lt_LD
31866
31867 # Commands used to build an old-style archive.
31868 old_archive_cmds=$lt_old_archive_cmds
31869
31870 # A language specific compiler.
31871 CC=$lt_compiler
31872
31873 # Is the compiler the GNU compiler?
31874 with_gcc=$GCC
31875
31876 # Compiler flag to turn off builtin functions.
31877 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
31878
31879 # How to pass a linker flag through the compiler.
31880 wl=$lt_lt_prog_compiler_wl
31881
31882 # Additional compiler flags for building library objects.
31883 pic_flag=$lt_lt_prog_compiler_pic
31884
31885 # Compiler flag to prevent dynamic linking.
31886 link_static_flag=$lt_lt_prog_compiler_static
31887
31888 # Does compiler simultaneously support -c and -o options?
31889 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
31890
31891 # Whether or not to add -lc for building shared libraries.
31892 build_libtool_need_lc=$archive_cmds_need_lc
31893
31894 # Whether or not to disallow shared libs when runtime libs are static.
31895 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
31896
31897 # Compiler flag to allow reflexive dlopens.
31898 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
31899
31900 # Compiler flag to generate shared objects directly from archives.
31901 whole_archive_flag_spec=$lt_whole_archive_flag_spec
31902
31903 # Whether the compiler copes with passing no objects directly.
31904 compiler_needs_object=$lt_compiler_needs_object
31905
31906 # Create an old-style archive from a shared archive.
31907 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
31908
31909 # Create a temporary old-style archive to link instead of a shared archive.
31910 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
31911
31912 # Commands used to build a shared archive.
31913 archive_cmds=$lt_archive_cmds
31914 archive_expsym_cmds=$lt_archive_expsym_cmds
31915
31916 # Commands used to build a loadable module if different from building
31917 # a shared archive.
31918 module_cmds=$lt_module_cmds
31919 module_expsym_cmds=$lt_module_expsym_cmds
31920
31921 # Whether we are building with GNU ld or not.
31922 with_gnu_ld=$lt_with_gnu_ld
31923
31924 # Flag that allows shared libraries with undefined symbols to be built.
31925 allow_undefined_flag=$lt_allow_undefined_flag
31926
31927 # Flag that enforces no undefined symbols.
31928 no_undefined_flag=$lt_no_undefined_flag
31929
31930 # Flag to hardcode \$libdir into a binary during linking.
31931 # This must work even if \$libdir does not exist
31932 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
31933
31934 # If ld is used when linking, flag to hardcode \$libdir into a binary
31935 # during linking.  This must work even if \$libdir does not exist.
31936 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
31937
31938 # Whether we need a single "-rpath" flag with a separated argument.
31939 hardcode_libdir_separator=$lt_hardcode_libdir_separator
31940
31941 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
31942 # DIR into the resulting binary.
31943 hardcode_direct=$hardcode_direct
31944
31945 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
31946 # DIR into the resulting binary and the resulting library dependency is
31947 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
31948 # library is relocated.
31949 hardcode_direct_absolute=$hardcode_direct_absolute
31950
31951 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
31952 # into the resulting binary.
31953 hardcode_minus_L=$hardcode_minus_L
31954
31955 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
31956 # into the resulting binary.
31957 hardcode_shlibpath_var=$hardcode_shlibpath_var
31958
31959 # Set to "yes" if building a shared library automatically hardcodes DIR
31960 # into the library and all subsequent libraries and executables linked
31961 # against it.
31962 hardcode_automatic=$hardcode_automatic
31963
31964 # Set to yes if linker adds runtime paths of dependent libraries
31965 # to runtime path list.
31966 inherit_rpath=$inherit_rpath
31967
31968 # Whether libtool must link a program against all its dependency libraries.
31969 link_all_deplibs=$link_all_deplibs
31970
31971 # Fix the shell variable \$srcfile for the compiler.
31972 fix_srcfile_path=$lt_fix_srcfile_path
31973
31974 # Set to "yes" if exported symbols are required.
31975 always_export_symbols=$always_export_symbols
31976
31977 # The commands to list exported symbols.
31978 export_symbols_cmds=$lt_export_symbols_cmds
31979
31980 # Symbols that should not be listed in the preloaded symbols.
31981 exclude_expsyms=$lt_exclude_expsyms
31982
31983 # Symbols that must always be exported.
31984 include_expsyms=$lt_include_expsyms
31985
31986 # Commands necessary for linking programs (against libraries) with templates.
31987 prelink_cmds=$lt_prelink_cmds
31988
31989 # Specify filename containing input files.
31990 file_list_spec=$lt_file_list_spec
31991
31992 # How to hardcode a shared library path into an executable.
31993 hardcode_action=$hardcode_action
31994
31995 # The directories searched by this compiler when creating a shared library.
31996 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
31997
31998 # Dependencies to place before and after the objects being linked to
31999 # create a shared library.
32000 predep_objects=$lt_predep_objects
32001 postdep_objects=$lt_postdep_objects
32002 predeps=$lt_predeps
32003 postdeps=$lt_postdeps
32004
32005 # The library search path used internally by the compiler when linking
32006 # a shared library.
32007 compiler_lib_search_path=$lt_compiler_lib_search_path
32008
32009 # ### END LIBTOOL CONFIG
32010
32011 _LT_EOF
32012
32013   case $host_os in
32014   aix3*)
32015     cat <<\_LT_EOF >> "$cfgfile"
32016 # AIX sometimes has problems with the GCC collect2 program.  For some
32017 # reason, if we set the COLLECT_NAMES environment variable, the problems
32018 # vanish in a puff of smoke.
32019 if test "X${COLLECT_NAMES+set}" != Xset; then
32020   COLLECT_NAMES=
32021   export COLLECT_NAMES
32022 fi
32023 _LT_EOF
32024     ;;
32025   esac
32026
32027
32028 ltmain="$ac_aux_dir/ltmain.sh"
32029
32030
32031   # We use sed instead of cat because bash on DJGPP gets confused if
32032   # if finds mixed CR/LF and LF-only lines.  Since sed operates in
32033   # text mode, it properly converts lines to CR/LF.  This bash problem
32034   # is reportedly fixed, but why not run on old versions too?
32035   sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
32036     || (rm -f "$cfgfile"; exit 1)
32037
32038   case $xsi_shell in
32039   yes)
32040     cat << \_LT_EOF >> "$cfgfile"
32041
32042 # func_dirname file append nondir_replacement
32043 # Compute the dirname of FILE.  If nonempty, add APPEND to the result,
32044 # otherwise set result to NONDIR_REPLACEMENT.
32045 func_dirname ()
32046 {
32047   case ${1} in
32048     */*) func_dirname_result="${1%/*}${2}" ;;
32049     *  ) func_dirname_result="${3}" ;;
32050   esac
32051 }
32052
32053 # func_basename file
32054 func_basename ()
32055 {
32056   func_basename_result="${1##*/}"
32057 }
32058
32059 # func_dirname_and_basename file append nondir_replacement
32060 # perform func_basename and func_dirname in a single function
32061 # call:
32062 #   dirname:  Compute the dirname of FILE.  If nonempty,
32063 #             add APPEND to the result, otherwise set result
32064 #             to NONDIR_REPLACEMENT.
32065 #             value returned in "$func_dirname_result"
32066 #   basename: Compute filename of FILE.
32067 #             value retuned in "$func_basename_result"
32068 # Implementation must be kept synchronized with func_dirname
32069 # and func_basename. For efficiency, we do not delegate to
32070 # those functions but instead duplicate the functionality here.
32071 func_dirname_and_basename ()
32072 {
32073   case ${1} in
32074     */*) func_dirname_result="${1%/*}${2}" ;;
32075     *  ) func_dirname_result="${3}" ;;
32076   esac
32077   func_basename_result="${1##*/}"
32078 }
32079
32080 # func_stripname prefix suffix name
32081 # strip PREFIX and SUFFIX off of NAME.
32082 # PREFIX and SUFFIX must not contain globbing or regex special
32083 # characters, hashes, percent signs, but SUFFIX may contain a leading
32084 # dot (in which case that matches only a dot).
32085 func_stripname ()
32086 {
32087   # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
32088   # positional parameters, so assign one to ordinary parameter first.
32089   func_stripname_result=${3}
32090   func_stripname_result=${func_stripname_result#"${1}"}
32091   func_stripname_result=${func_stripname_result%"${2}"}
32092 }
32093
32094 # func_opt_split
32095 func_opt_split ()
32096 {
32097   func_opt_split_opt=${1%%=*}
32098   func_opt_split_arg=${1#*=}
32099 }
32100
32101 # func_lo2o object
32102 func_lo2o ()
32103 {
32104   case ${1} in
32105     *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
32106     *)    func_lo2o_result=${1} ;;
32107   esac
32108 }
32109
32110 # func_xform libobj-or-source
32111 func_xform ()
32112 {
32113   func_xform_result=${1%.*}.lo
32114 }
32115
32116 # func_arith arithmetic-term...
32117 func_arith ()
32118 {
32119   func_arith_result=$(( $* ))
32120 }
32121
32122 # func_len string
32123 # STRING may not start with a hyphen.
32124 func_len ()
32125 {
32126   func_len_result=${#1}
32127 }
32128
32129 _LT_EOF
32130     ;;
32131   *) # Bourne compatible functions.
32132     cat << \_LT_EOF >> "$cfgfile"
32133
32134 # func_dirname file append nondir_replacement
32135 # Compute the dirname of FILE.  If nonempty, add APPEND to the result,
32136 # otherwise set result to NONDIR_REPLACEMENT.
32137 func_dirname ()
32138 {
32139   # Extract subdirectory from the argument.
32140   func_dirname_result=`$ECHO "X${1}" | $Xsed -e "$dirname"`
32141   if test "X$func_dirname_result" = "X${1}"; then
32142     func_dirname_result="${3}"
32143   else
32144     func_dirname_result="$func_dirname_result${2}"
32145   fi
32146 }
32147
32148 # func_basename file
32149 func_basename ()
32150 {
32151   func_basename_result=`$ECHO "X${1}" | $Xsed -e "$basename"`
32152 }
32153
32154
32155 # func_stripname prefix suffix name
32156 # strip PREFIX and SUFFIX off of NAME.
32157 # PREFIX and SUFFIX must not contain globbing or regex special
32158 # characters, hashes, percent signs, but SUFFIX may contain a leading
32159 # dot (in which case that matches only a dot).
32160 # func_strip_suffix prefix name
32161 func_stripname ()
32162 {
32163   case ${2} in
32164     .*) func_stripname_result=`$ECHO "X${3}" \
32165            | $Xsed -e "s%^${1}%%" -e "s%\\\\${2}\$%%"`;;
32166     *)  func_stripname_result=`$ECHO "X${3}" \
32167            | $Xsed -e "s%^${1}%%" -e "s%${2}\$%%"`;;
32168   esac
32169 }
32170
32171 # sed scripts:
32172 my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
32173 my_sed_long_arg='1s/^-[^=]*=//'
32174
32175 # func_opt_split
32176 func_opt_split ()
32177 {
32178   func_opt_split_opt=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_opt"`
32179   func_opt_split_arg=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_arg"`
32180 }
32181
32182 # func_lo2o object
32183 func_lo2o ()
32184 {
32185   func_lo2o_result=`$ECHO "X${1}" | $Xsed -e "$lo2o"`
32186 }
32187
32188 # func_xform libobj-or-source
32189 func_xform ()
32190 {
32191   func_xform_result=`$ECHO "X${1}" | $Xsed -e 's/\.[^.]*$/.lo/'`
32192 }
32193
32194 # func_arith arithmetic-term...
32195 func_arith ()
32196 {
32197   func_arith_result=`expr "$@"`
32198 }
32199
32200 # func_len string
32201 # STRING may not start with a hyphen.
32202 func_len ()
32203 {
32204   func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
32205 }
32206
32207 _LT_EOF
32208 esac
32209
32210 case $lt_shell_append in
32211   yes)
32212     cat << \_LT_EOF >> "$cfgfile"
32213
32214 # func_append var value
32215 # Append VALUE to the end of shell variable VAR.
32216 func_append ()
32217 {
32218   eval "$1+=\$2"
32219 }
32220 _LT_EOF
32221     ;;
32222   *)
32223     cat << \_LT_EOF >> "$cfgfile"
32224
32225 # func_append var value
32226 # Append VALUE to the end of shell variable VAR.
32227 func_append ()
32228 {
32229   eval "$1=\$$1\$2"
32230 }
32231
32232 _LT_EOF
32233     ;;
32234   esac
32235
32236
32237   sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
32238     || (rm -f "$cfgfile"; exit 1)
32239
32240   mv -f "$cfgfile" "$ofile" ||
32241     (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
32242   chmod +x "$ofile"
32243
32244
32245     cat <<_LT_EOF >> "$ofile"
32246
32247 # ### BEGIN LIBTOOL TAG CONFIG: CXX
32248
32249 # The linker used to build libraries.
32250 LD=$lt_LD_CXX
32251
32252 # Commands used to build an old-style archive.
32253 old_archive_cmds=$lt_old_archive_cmds_CXX
32254
32255 # A language specific compiler.
32256 CC=$lt_compiler_CXX
32257
32258 # Is the compiler the GNU compiler?
32259 with_gcc=$GCC_CXX
32260
32261 # Compiler flag to turn off builtin functions.
32262 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
32263
32264 # How to pass a linker flag through the compiler.
32265 wl=$lt_lt_prog_compiler_wl_CXX
32266
32267 # Additional compiler flags for building library objects.
32268 pic_flag=$lt_lt_prog_compiler_pic_CXX
32269
32270 # Compiler flag to prevent dynamic linking.
32271 link_static_flag=$lt_lt_prog_compiler_static_CXX
32272
32273 # Does compiler simultaneously support -c and -o options?
32274 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
32275
32276 # Whether or not to add -lc for building shared libraries.
32277 build_libtool_need_lc=$archive_cmds_need_lc_CXX
32278
32279 # Whether or not to disallow shared libs when runtime libs are static.
32280 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
32281
32282 # Compiler flag to allow reflexive dlopens.
32283 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
32284
32285 # Compiler flag to generate shared objects directly from archives.
32286 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
32287
32288 # Whether the compiler copes with passing no objects directly.
32289 compiler_needs_object=$lt_compiler_needs_object_CXX
32290
32291 # Create an old-style archive from a shared archive.
32292 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
32293
32294 # Create a temporary old-style archive to link instead of a shared archive.
32295 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
32296
32297 # Commands used to build a shared archive.
32298 archive_cmds=$lt_archive_cmds_CXX
32299 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
32300
32301 # Commands used to build a loadable module if different from building
32302 # a shared archive.
32303 module_cmds=$lt_module_cmds_CXX
32304 module_expsym_cmds=$lt_module_expsym_cmds_CXX
32305
32306 # Whether we are building with GNU ld or not.
32307 with_gnu_ld=$lt_with_gnu_ld_CXX
32308
32309 # Flag that allows shared libraries with undefined symbols to be built.
32310 allow_undefined_flag=$lt_allow_undefined_flag_CXX
32311
32312 # Flag that enforces no undefined symbols.
32313 no_undefined_flag=$lt_no_undefined_flag_CXX
32314
32315 # Flag to hardcode \$libdir into a binary during linking.
32316 # This must work even if \$libdir does not exist
32317 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
32318
32319 # If ld is used when linking, flag to hardcode \$libdir into a binary
32320 # during linking.  This must work even if \$libdir does not exist.
32321 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
32322
32323 # Whether we need a single "-rpath" flag with a separated argument.
32324 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
32325
32326 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
32327 # DIR into the resulting binary.
32328 hardcode_direct=$hardcode_direct_CXX
32329
32330 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
32331 # DIR into the resulting binary and the resulting library dependency is
32332 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
32333 # library is relocated.
32334 hardcode_direct_absolute=$hardcode_direct_absolute_CXX
32335
32336 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
32337 # into the resulting binary.
32338 hardcode_minus_L=$hardcode_minus_L_CXX
32339
32340 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
32341 # into the resulting binary.
32342 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
32343
32344 # Set to "yes" if building a shared library automatically hardcodes DIR
32345 # into the library and all subsequent libraries and executables linked
32346 # against it.
32347 hardcode_automatic=$hardcode_automatic_CXX
32348
32349 # Set to yes if linker adds runtime paths of dependent libraries
32350 # to runtime path list.
32351 inherit_rpath=$inherit_rpath_CXX
32352
32353 # Whether libtool must link a program against all its dependency libraries.
32354 link_all_deplibs=$link_all_deplibs_CXX
32355
32356 # Fix the shell variable \$srcfile for the compiler.
32357 fix_srcfile_path=$lt_fix_srcfile_path_CXX
32358
32359 # Set to "yes" if exported symbols are required.
32360 always_export_symbols=$always_export_symbols_CXX
32361
32362 # The commands to list exported symbols.
32363 export_symbols_cmds=$lt_export_symbols_cmds_CXX
32364
32365 # Symbols that should not be listed in the preloaded symbols.
32366 exclude_expsyms=$lt_exclude_expsyms_CXX
32367
32368 # Symbols that must always be exported.
32369 include_expsyms=$lt_include_expsyms_CXX
32370
32371 # Commands necessary for linking programs (against libraries) with templates.
32372 prelink_cmds=$lt_prelink_cmds_CXX
32373
32374 # Specify filename containing input files.
32375 file_list_spec=$lt_file_list_spec_CXX
32376
32377 # How to hardcode a shared library path into an executable.
32378 hardcode_action=$hardcode_action_CXX
32379
32380 # The directories searched by this compiler when creating a shared library.
32381 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
32382
32383 # Dependencies to place before and after the objects being linked to
32384 # create a shared library.
32385 predep_objects=$lt_predep_objects_CXX
32386 postdep_objects=$lt_postdep_objects_CXX
32387 predeps=$lt_predeps_CXX
32388 postdeps=$lt_postdeps_CXX
32389
32390 # The library search path used internally by the compiler when linking
32391 # a shared library.
32392 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
32393
32394 # ### END LIBTOOL TAG CONFIG: CXX
32395 _LT_EOF
32396
32397  ;;
32398     "default-1":C)
32399     for ac_file in $CONFIG_FILES; do
32400       # Support "outfile[:infile[:infile...]]"
32401       case "$ac_file" in
32402         *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
32403       esac
32404       # PO directories have a Makefile.in generated from Makefile.in.in.
32405       case "$ac_file" in */Makefile.in)
32406         # Adjust a relative srcdir.
32407         ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
32408         ac_dir_suffix="/`echo "$ac_dir"|sed 's%^\./%%'`"
32409         ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
32410         # In autoconf-2.13 it is called $ac_given_srcdir.
32411         # In autoconf-2.50 it is called $srcdir.
32412         test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
32413         case "$ac_given_srcdir" in
32414           .)  top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
32415           /*) top_srcdir="$ac_given_srcdir" ;;
32416           *)  top_srcdir="$ac_dots$ac_given_srcdir" ;;
32417         esac
32418         # Treat a directory as a PO directory if and only if it has a
32419         # POTFILES.in file. This allows packages to have multiple PO
32420         # directories under different names or in different locations.
32421         if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
32422           rm -f "$ac_dir/POTFILES"
32423           test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
32424           cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[   ]*\$/d" -e "s,.*,     $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES"
32425           POMAKEFILEDEPS="POTFILES.in"
32426           # ALL_LINGUAS, POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES depend
32427           # on $ac_dir but don't depend on user-specified configuration
32428           # parameters.
32429           if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
32430             # The LINGUAS file contains the set of available languages.
32431             if test -n "$OBSOLETE_ALL_LINGUAS"; then
32432               test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete"
32433             fi
32434             ALL_LINGUAS_=`sed -e "/^#/d" -e "s/#.*//" "$ac_given_srcdir/$ac_dir/LINGUAS"`
32435             # Hide the ALL_LINGUAS assigment from automake.
32436             eval 'ALL_LINGUAS''=$ALL_LINGUAS_'
32437             POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS"
32438           else
32439             # The set of available languages was given in configure.in.
32440             eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS'
32441           fi
32442           # Compute POFILES
32443           # as      $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).po)
32444           # Compute UPDATEPOFILES
32445           # as      $(foreach lang, $(ALL_LINGUAS), $(lang).po-update)
32446           # Compute DUMMYPOFILES
32447           # as      $(foreach lang, $(ALL_LINGUAS), $(lang).nop)
32448           # Compute GMOFILES
32449           # as      $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).gmo)
32450           case "$ac_given_srcdir" in
32451             .) srcdirpre= ;;
32452             *) srcdirpre='$(srcdir)/' ;;
32453           esac
32454           POFILES=
32455           UPDATEPOFILES=
32456           DUMMYPOFILES=
32457           GMOFILES=
32458           for lang in $ALL_LINGUAS; do
32459             POFILES="$POFILES $srcdirpre$lang.po"
32460             UPDATEPOFILES="$UPDATEPOFILES $lang.po-update"
32461             DUMMYPOFILES="$DUMMYPOFILES $lang.nop"
32462             GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
32463           done
32464           # CATALOGS depends on both $ac_dir and the user's LINGUAS
32465           # environment variable.
32466           INST_LINGUAS=
32467           if test -n "$ALL_LINGUAS"; then
32468             for presentlang in $ALL_LINGUAS; do
32469               useit=no
32470               if test "%UNSET%" != "$LINGUAS"; then
32471                 desiredlanguages="$LINGUAS"
32472               else
32473                 desiredlanguages="$ALL_LINGUAS"
32474               fi
32475               for desiredlang in $desiredlanguages; do
32476                 # Use the presentlang catalog if desiredlang is
32477                 #   a. equal to presentlang, or
32478                 #   b. a variant of presentlang (because in this case,
32479                 #      presentlang can be used as a fallback for messages
32480                 #      which are not translated in the desiredlang catalog).
32481                 case "$desiredlang" in
32482                   "$presentlang"*) useit=yes;;
32483                 esac
32484               done
32485               if test $useit = yes; then
32486                 INST_LINGUAS="$INST_LINGUAS $presentlang"
32487               fi
32488             done
32489           fi
32490           CATALOGS=
32491           if test -n "$INST_LINGUAS"; then
32492             for lang in $INST_LINGUAS; do
32493               CATALOGS="$CATALOGS $lang.gmo"
32494             done
32495           fi
32496           test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
32497           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"
32498           for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do
32499             if test -f "$f"; then
32500               case "$f" in
32501                 *.orig | *.bak | *~) ;;
32502                 *) cat "$f" >> "$ac_dir/Makefile" ;;
32503               esac
32504             fi
32505           done
32506         fi
32507         ;;
32508       esac
32509     done ;;
32510     "default":C)
32511  ;;
32512
32513   esac
32514 done # for ac_tag
32515
32516
32517 as_fn_exit 0
32518 _ACEOF
32519 ac_clean_files=$ac_clean_files_save
32520
32521 test $ac_write_fail = 0 ||
32522   as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
32523
32524
32525 # configure is writing to config.log, and then calls config.status.
32526 # config.status does its own redirection, appending to config.log.
32527 # Unfortunately, on DOS this fails, as config.log is still kept open
32528 # by configure, so config.status won't be able to write to it; its
32529 # output is simply discarded.  So we exec the FD to /dev/null,
32530 # effectively closing config.log, so it can be properly (re)opened and
32531 # appended to by config.status.  When coming back to configure, we
32532 # need to make the FD available again.
32533 if test "$no_create" != yes; then
32534   ac_cs_success=:
32535   ac_config_status_args=
32536   test "$silent" = yes &&
32537     ac_config_status_args="$ac_config_status_args --quiet"
32538   exec 5>/dev/null
32539   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
32540   exec 5>>config.log
32541   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
32542   # would make configure fail if this is the last instruction.
32543   $ac_cs_success || as_fn_exit $?
32544 fi
32545 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
32546   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
32547 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
32548 fi
32549
32550
32551 if test "${support_bat}" = "yes" ; then
32552    if test "x$QMAKE" = "xnone"; then
32553       as_fn_error "Could not find qmake $PATH. Check your Qt installation" "$LINENO" 5
32554    fi
32555
32556    cd src/qt-console
32557    echo "Creating bat Makefile"
32558    touch bat
32559    chmod 755 bat
32560    rm -f Makefile
32561    $QMAKE
32562    ${MAKE:-make} clean
32563    cd ${BUILD_DIR}
32564 fi
32565
32566 if test X"$GCC" = "Xyes" ; then
32567   echo "Doing make of dependencies"
32568   ${MAKE:-make} depend
32569 fi
32570
32571 cd src/qt-console
32572 chmod 755 install_conf_file build-depkgs-qt-console
32573 cd ${BUILD_DIR}
32574
32575 cd scripts
32576 chmod 755 bacula btraceback mtx-changer
32577 chmod 755 dvd-handler dvd-simulator
32578 chmod 755 bconsole mtx-changer devel_bacula logrotate
32579 cd ..
32580
32581 c=updatedb
32582 chmod 755 $c/update_mysql_tables_10_to_11   $c/update_sqlite3_tables_10_to_11
32583 chmod 755 $c/update_postgresql_tables_10_to_11
32584 chmod 755 $c/update_mysql_tables_11_to_12   $c/update_sqlite3_tables_11_to_12
32585 chmod 755 $c/update_postgresql_tables_11_to_12
32586
32587
32588 c=src/cats
32589
32590 chmod 755 $c/create_bacula_database   $c/update_bacula_tables  $c/make_bacula_tables
32591 chmod 755 $c/grant_bacula_privileges  $c/drop_bacula_tables    $c/drop_bacula_database
32592
32593 chmod 755 $c/create_mysql_database    $c/update_mysql_tables   $c/make_mysql_tables
32594 chmod 755 $c/grant_mysql_privileges   $c/drop_mysql_tables     $c/drop_mysql_database
32595
32596 chmod 755 $c/create_sqlite3_database   $c/update_sqlite3_tables  $c/make_sqlite3_tables
32597 chmod 755 $c/grant_sqlite3_privileges  $c/drop_sqlite3_tables    $c/drop_sqlite3_database
32598
32599 chmod 755 $c/create_postgresql_database  $c/update_postgresql_tables $c/make_postgresql_tables
32600 chmod 755 $c/grant_postgresql_privileges $c/drop_postgresql_tables   $c/drop_postgresql_database
32601
32602 chmod 755 $c/create_ingres_database  $c/update_ingres_tables $c/make_ingres_tables
32603 chmod 755 $c/grant_ingres_privileges $c/drop_ingres_tables   $c/drop_ingres_database
32604
32605
32606 chmod 755 $c/make_catalog_backup $c/delete_catalog_backup  $c/make_catalog_backup.pl
32607 chmod 755 $c/sqlite
32608 chmod 755 $c/mysql
32609
32610 chmod 755 src/win32/build-depkgs-mingw32
32611
32612 if test "x$ac_cv_sys_largefile_CFLAGS" != "xno" ; then
32613    largefile_support="yes"
32614 fi
32615
32616 if test X"$GCC" = "Xyes" ; then
32617                CCVERSION=`${CC} --version | tr '\n' ' ' | cut -f 3 -d ' '`
32618    if test "x${CCVERSION}" = "x" ; then
32619       CCVERSION=`${CC} --version | tr '\n' ' ' | cut -f 1 -d ' '`
32620    fi
32621    CXXVERSION=`${CXX} --version | tr '\n' ' ' | cut -f 3 -d ' '`
32622    if test x"${CXXVERSION}" = x ; then
32623       CXXVERSION=`${CXX} --version | tr '\n' ' ' | cut -f 1 -d ' '`
32624    fi
32625 fi
32626
32627 # clean up any old junk
32628 echo " "
32629 echo "Cleaning up"
32630 echo " "
32631 ${MAKE:-make} clean
32632
32633 echo "
32634 Configuration on `date`:
32635
32636    Host:                     ${host}${post_host} -- ${DISTNAME} ${DISTVER}
32637    Bacula version:           ${BACULA} ${VERSION} (${DATE})
32638    Source code location:     ${srcdir}
32639    Install binaries:         ${sbindir}
32640    Install libraries:        ${libdir}
32641    Install config files:     ${sysconfdir}
32642    Scripts directory:        ${scriptdir}
32643    Archive directory:        ${archivedir}
32644    Working directory:        ${working_dir}
32645    PID directory:            ${piddir}
32646    Subsys directory:         ${subsysdir}
32647    Man directory:            ${mandir}
32648    Data directory:           ${datarootdir}
32649    Plugin directory:         ${plugindir}
32650    C Compiler:               ${CC} ${CCVERSION}
32651    C++ Compiler:             ${CXX} ${CXXVERSION}
32652    Compiler flags:           ${WCFLAGS} ${CFLAGS}
32653    Linker flags:             ${WLDFLAGS} ${LDFLAGS}
32654    Libraries:                ${LIBS}
32655    Statically Linked Tools:  ${support_static_tools}
32656    Statically Linked FD:     ${support_static_fd}
32657    Statically Linked SD:     ${support_static_sd}
32658    Statically Linked DIR:    ${support_static_dir}
32659    Statically Linked CONS:   ${support_static_cons}
32660    Database backends:        ${db_backends}
32661    Database port:            ${db_port}
32662    Database name:            ${db_name}
32663    Database user:            ${db_user}
32664
32665    Job Output Email:         ${job_email}
32666    Traceback Email:          ${dump_email}
32667    SMTP Host Address:        ${smtp_host}
32668
32669    Director Port:            ${dir_port}
32670    File daemon Port:         ${fd_port}
32671    Storage daemon Port:      ${sd_port}
32672
32673    Director User:            ${dir_user}
32674    Director Group:           ${dir_group}
32675    Storage Daemon User:      ${sd_user}
32676    Storage DaemonGroup:      ${sd_group}
32677    File Daemon User:         ${fd_user}
32678    File Daemon Group:        ${fd_group}
32679
32680    Large file support:      $largefile_support
32681    Bacula conio support:    ${got_conio} ${CONS_LIBS}
32682    readline support:        ${got_readline} ${PRTREADLINE_SRC}
32683    TCP Wrappers support:    ${TCPW_MSG} ${WRAPLIBS}
32684    TLS support:             ${support_tls}
32685    Encryption support:      ${support_crypto}
32686    ZLIB support:            ${have_zlib}
32687    enable-smartalloc:       ${support_smartalloc}
32688    enable-lockmgr:          ${support_lockmgr}
32689    bat support:             ${support_bat}
32690    enable-gnome:            ${support_gnome} ${gnome_version}
32691    enable-bwx-console:      ${support_wx_console} ${wx_version}
32692    enable-tray-monitor:     ${support_tray_monitor}
32693    client-only:             ${build_client_only}
32694    build-dird:              ${build_dird}
32695    build-stored:            ${build_stored}
32696    Plugin support:          ${have_plugins}
32697    AFS support:             ${have_afs}
32698    ACL support:             ${have_acl}
32699    XATTR support:           ${have_xattr}
32700    Python support:          ${support_python} ${PYTHON_LIBS}
32701    Batch insert enabled:    ${support_batch_insert}
32702
32703   " > config.out
32704
32705 # create a small shell script useful for support with
32706 # configure options and config.out info
32707 cat > scripts/bacula_config << EOF
32708 #!/bin/sh
32709 cat << __EOC__
32710 $ $0 $ac_configure_args
32711 EOF
32712 cat config.out >> scripts/bacula_config
32713 echo __EOC__ >> scripts/bacula_config
32714 chmod 755 scripts/bacula_config
32715
32716 cat config.out