]> git.sur5r.net Git - bacula/bacula/blob - bacula/configure
update configure
[bacula/bacula] / bacula / configure
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.65.
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 DB_LIBS
756 DLIB
757 DINCLUDE
758 DEBUG
759 FDLIBS
760 CAP_LIBS
761 LIBOBJS
762 X_EXTRA_LIBS
763 X_LIBS
764 X_PRE_LIBS
765 X_CFLAGS
766 XMKMF
767 GETCONF
768 DB_TYPE
769 cats
770 DB_PROG_LIB
771 DB_PROG
772 uncomment_dbi
773 DBI_DBD_DRIVERDIR
774 SQL_BINDIR
775 SQL_INCLUDE
776 SQL_LFLAGS
777 SBINPERM
778 fd_group
779 fd_user
780 sd_group
781 sd_user
782 dir_group
783 dir_user
784 db_port
785 db_password
786 db_user
787 db_name
788 mon_sd_password
789 mon_fd_password
790 mon_dir_password
791 sd_password
792 fd_password
793 dir_password
794 sd_port
795 fd_port
796 dir_port
797 baseport
798 subsysdir
799 piddir
800 smtp_host
801 job_email
802 dump_email
803 plugindir
804 logdir
805 bsrdir
806 scriptdir
807 hostname
808 basename
809 archivedir
810 working_dir
811 OPENSSL_INC
812 OPENSSL_LIBS
813 PYTHON_INCDIR
814 PYTHON_LIBS
815 READLINE_SRC
816 CONS_LDFLAGS
817 CONS_LIBS
818 CONS_SRC
819 CONS_OBJ
820 CONS_INC
821 STORED_DIR
822 DIR_TOOLS
823 DIRD_DIR
824 ALL_DIRS
825 STATIC_WX_CONS
826 STATIC_GNOME_CONS
827 STATIC_CONS
828 STATIC_DIR
829 STATIC_SD
830 STATIC_FD
831 TTOOL_LDFLAGS
832 TRAY_MONITOR_DIR
833 TRAY_MONITOR_LDFLAGS
834 TRAY_MONITOR_CPPFLAGS
835 WX_DIR
836 WXCONS_LDFLAGS
837 WXCONS_CPPFLAGS
838 QWT
839 QWT_LIB
840 QWT_LDFLAGS
841 QWT_INC
842 BAT_DIR
843 INTL_LIBTOOL_SUFFIX_PREFIX
844 INTLOBJS
845 GENCAT
846 INSTOBJEXT
847 DATADIRNAME
848 CATOBJEXT
849 USE_INCLUDED_LIBINTL
850 BUILD_INCLUDED_LIBINTL
851 INTLBISON
852 HAVE_WPRINTF
853 HAVE_SNPRINTF
854 HAVE_ASPRINTF
855 HAVE_POSIX_PRINTF
856 GLIBC21
857 ALLOCA
858 GLIBC2
859 POSUB
860 LTLIBINTL
861 LIBINTL
862 INTLLIBS
863 LTLIBICONV
864 LIBICONV
865 INTL_MACOSX_LIBS
866 MSGMERGE
867 XGETTEXT
868 GMSGFMT
869 MSGFMT
870 USE_NLS
871 MKINSTALLDIRS
872 SET_MAKE
873 HAVE_DARWIN_OS_FALSE
874 HAVE_DARWIN_OS_TRUE
875 HAVE_IRIX_OS_FALSE
876 HAVE_IRIX_OS_TRUE
877 HAVE_SGI_OS_FALSE
878 HAVE_SGI_OS_TRUE
879 HAVE_BSDI_OS_FALSE
880 HAVE_BSDI_OS_TRUE
881 HAVE_OPENBSD_OS_FALSE
882 HAVE_OPENBSD_OS_TRUE
883 HAVE_NETBSD_OS_FALSE
884 HAVE_NETBSD_OS_TRUE
885 HAVE_FREEBSD_OS_FALSE
886 HAVE_FREEBSD_OS_TRUE
887 HAVE_LINUX_OS_FALSE
888 HAVE_LINUX_OS_TRUE
889 HAVE_HPUX_OS_FALSE
890 HAVE_HPUX_OS_TRUE
891 HAVE_AIX_OS_FALSE
892 HAVE_AIX_OS_TRUE
893 HAVE_OSF1_OS_FALSE
894 HAVE_OSF1_OS_TRUE
895 HAVE_SUN_OS_FALSE
896 HAVE_SUN_OS_TRUE
897 INCLUDE_UNINSTALL_TARGET
898 INCLUDE_INSTALL_TARGET
899 FD_PLUGIN_DIR
900 QMAKE_LIBTOOL
901 LIBTOOL_CLEAN_TARGET
902 LIBTOOL_UNINSTALL_TARGET
903 LIBTOOL_INSTALL_TARGET
904 DEFAULT_SHARED_OBJECT_TYPE
905 DEFAULT_ARCHIVE_TYPE
906 DEFAULT_OBJECT_TYPE
907 CXXCPP
908 OTOOL64
909 OTOOL
910 LIPO
911 NMEDIT
912 DSYMUTIL
913 lt_ECHO
914 RANLIB
915 STRIP
916 OBJDUMP
917 LN_S
918 NM
919 ac_ct_DUMPBIN
920 DUMPBIN
921 LD
922 FGREP
923 host_os
924 host_vendor
925 host_cpu
926 host
927 build_os
928 build_vendor
929 build_cpu
930 build
931 LIBTOOL
932 LOCAL_DEFS
933 LOCAL_LDFLAGS
934 LOCAL_CFLAGS
935 LOCAL_LIBS
936 MAKE_SHELL
937 ARFLAGS
938 AWK
939 PIDOF
940 CDRECORD
941 WXFLAGS
942 WXCONFIG
943 GMAKE
944 QMAKE
945 PKGCONFIG
946 DVDRWFORMAT
947 DVDRWMEDIAINFO
948 GROWISOFS
949 PYTHON
950 MKISOFS
951 DD
952 MTX
953 OPENSSL
954 AR
955 TBL
956 CMP
957 ECHO
958 SED
959 CP
960 REMOVE
961 MV
962 INSTALL_DATA
963 INSTALL_SCRIPT
964 INSTALL_PROGRAM
965 EGREP
966 GREP
967 CPP
968 ac_ct_CXX
969 CXXFLAGS
970 CXX
971 OBJEXT
972 EXEEXT
973 ac_ct_CC
974 CPPFLAGS
975 LDFLAGS
976 CFLAGS
977 CC
978 LIBBACFIND_LT_RELEASE
979 LIBBACSQL_LT_RELEASE
980 LIBBACPY_LT_RELEASE
981 LIBBACCFG_LT_RELEASE
982 LIBBAC_LT_RELEASE
983 post_host
984 BACULA
985 LSMDATE
986 DATE
987 VERSION
988 FALSEPRG
989 TRUEPRG
990 WIN32TOPDIR
991 WIN32MAINDIR
992 WIN32BUILDDIR
993 TOP_DIR
994 BUILD_DIR
995 target_alias
996 host_alias
997 build_alias
998 LIBS
999 ECHO_T
1000 ECHO_N
1001 ECHO_C
1002 DEFS
1003 mandir
1004 localedir
1005 libdir
1006 psdir
1007 pdfdir
1008 dvidir
1009 htmldir
1010 infodir
1011 docdir
1012 oldincludedir
1013 includedir
1014 localstatedir
1015 sharedstatedir
1016 sysconfdir
1017 datadir
1018 datarootdir
1019 libexecdir
1020 sbindir
1021 bindir
1022 program_transform_name
1023 prefix
1024 exec_prefix
1025 PACKAGE_URL
1026 PACKAGE_BUGREPORT
1027 PACKAGE_STRING
1028 PACKAGE_VERSION
1029 PACKAGE_TARNAME
1030 PACKAGE_NAME
1031 PATH_SEPARATOR
1032 SHELL'
1033 ac_subst_files='MCOMMON'
1034 ac_user_opts='
1035 enable_option_checking
1036 enable_libtool
1037 enable_shared
1038 enable_static
1039 with_pic
1040 enable_fast_install
1041 with_gnu_ld
1042 enable_libtool_lock
1043 enable_includes
1044 enable_nls
1045 enable_rpath
1046 with_libiconv_prefix
1047 with_libintl_prefix
1048 with_included_gettext
1049 enable_gnome
1050 enable_bat
1051 enable_bwx_console
1052 enable_tray_monitor
1053 enable_smartalloc
1054 enable_lockmgr
1055 enable_static_tools
1056 enable_static_fd
1057 enable_static_sd
1058 enable_static_dir
1059 enable_static_cons
1060 enable_client_only
1061 enable_build_dird
1062 enable_build_stored
1063 enable_conio
1064 enable_ipv6
1065 enable_readline
1066 with_readline
1067 with_python
1068 with_tcp_wrappers
1069 with_openssl
1070 with_working_dir
1071 with_archivedir
1072 with_basename
1073 with_hostname
1074 with_scriptdir
1075 with_bsrdir
1076 with_logdir
1077 with_plugindir
1078 with_dump_email
1079 with_job_email
1080 with_smtp_host
1081 with_pid_dir
1082 with_subsys_dir
1083 with_baseport
1084 with_dir_password
1085 with_fd_password
1086 with_sd_password
1087 with_mon_dir_password
1088 with_mon_fd_password
1089 with_mon_sd_password
1090 with_db_name
1091 with_db_user
1092 with_db_password
1093 with_db_port
1094 with_dir_user
1095 with_dir_group
1096 with_sd_user
1097 with_sd_group
1098 with_fd_user
1099 with_fd_group
1100 with_sbin_perm
1101 with_postgresql
1102 with_mysql
1103 with_embedded_mysql
1104 with_ingres
1105 with_sqlite3
1106 with_dbi
1107 with_dbi_driver
1108 enable_batch_insert
1109 enable_largefile
1110 with_x
1111 enable_acl
1112 enable_xattr
1113 '
1114       ac_precious_vars='build_alias
1115 host_alias
1116 target_alias
1117 CC
1118 CFLAGS
1119 LDFLAGS
1120 LIBS
1121 CPPFLAGS
1122 CXX
1123 CXXFLAGS
1124 CCC
1125 CPP
1126 WXCONFIG
1127 WXFLAGS
1128 CXXCPP
1129 XMKMF'
1130
1131
1132 # Initialize some variables set by options.
1133 ac_init_help=
1134 ac_init_version=false
1135 ac_unrecognized_opts=
1136 ac_unrecognized_sep=
1137 # The variables have the same names as the options, with
1138 # dashes changed to underlines.
1139 cache_file=/dev/null
1140 exec_prefix=NONE
1141 no_create=
1142 no_recursion=
1143 prefix=NONE
1144 program_prefix=NONE
1145 program_suffix=NONE
1146 program_transform_name=s,x,x,
1147 silent=
1148 site=
1149 srcdir=
1150 verbose=
1151 x_includes=NONE
1152 x_libraries=NONE
1153
1154 # Installation directory options.
1155 # These are left unexpanded so users can "make install exec_prefix=/foo"
1156 # and all the variables that are supposed to be based on exec_prefix
1157 # by default will actually change.
1158 # Use braces instead of parens because sh, perl, etc. also accept them.
1159 # (The list follows the same order as the GNU Coding Standards.)
1160 bindir='${exec_prefix}/bin'
1161 sbindir='${exec_prefix}/sbin'
1162 libexecdir='${exec_prefix}/libexec'
1163 datarootdir='${prefix}/share'
1164 datadir='${datarootdir}'
1165 sysconfdir='${prefix}/etc'
1166 sharedstatedir='${prefix}/com'
1167 localstatedir='${prefix}/var'
1168 includedir='${prefix}/include'
1169 oldincludedir='/usr/include'
1170 docdir='${datarootdir}/doc/${PACKAGE}'
1171 infodir='${datarootdir}/info'
1172 htmldir='${docdir}'
1173 dvidir='${docdir}'
1174 pdfdir='${docdir}'
1175 psdir='${docdir}'
1176 libdir='${exec_prefix}/lib'
1177 localedir='${datarootdir}/locale'
1178 mandir='${datarootdir}/man'
1179
1180 ac_prev=
1181 ac_dashdash=
1182 for ac_option
1183 do
1184   # If the previous option needs an argument, assign it.
1185   if test -n "$ac_prev"; then
1186     eval $ac_prev=\$ac_option
1187     ac_prev=
1188     continue
1189   fi
1190
1191   case $ac_option in
1192   *=*)  ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1193   *)    ac_optarg=yes ;;
1194   esac
1195
1196   # Accept the important Cygnus configure options, so we can diagnose typos.
1197
1198   case $ac_dashdash$ac_option in
1199   --)
1200     ac_dashdash=yes ;;
1201
1202   -bindir | --bindir | --bindi | --bind | --bin | --bi)
1203     ac_prev=bindir ;;
1204   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1205     bindir=$ac_optarg ;;
1206
1207   -build | --build | --buil | --bui | --bu)
1208     ac_prev=build_alias ;;
1209   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1210     build_alias=$ac_optarg ;;
1211
1212   -cache-file | --cache-file | --cache-fil | --cache-fi \
1213   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1214     ac_prev=cache_file ;;
1215   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1216   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1217     cache_file=$ac_optarg ;;
1218
1219   --config-cache | -C)
1220     cache_file=config.cache ;;
1221
1222   -datadir | --datadir | --datadi | --datad)
1223     ac_prev=datadir ;;
1224   -datadir=* | --datadir=* | --datadi=* | --datad=*)
1225     datadir=$ac_optarg ;;
1226
1227   -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1228   | --dataroo | --dataro | --datar)
1229     ac_prev=datarootdir ;;
1230   -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1231   | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1232     datarootdir=$ac_optarg ;;
1233
1234   -disable-* | --disable-*)
1235     ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1236     # Reject names that are not valid shell variable names.
1237     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1238       as_fn_error "invalid feature name: $ac_useropt"
1239     ac_useropt_orig=$ac_useropt
1240     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1241     case $ac_user_opts in
1242       *"
1243 "enable_$ac_useropt"
1244 "*) ;;
1245       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1246          ac_unrecognized_sep=', ';;
1247     esac
1248     eval enable_$ac_useropt=no ;;
1249
1250   -docdir | --docdir | --docdi | --doc | --do)
1251     ac_prev=docdir ;;
1252   -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1253     docdir=$ac_optarg ;;
1254
1255   -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1256     ac_prev=dvidir ;;
1257   -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1258     dvidir=$ac_optarg ;;
1259
1260   -enable-* | --enable-*)
1261     ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1262     # Reject names that are not valid shell variable names.
1263     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1264       as_fn_error "invalid feature name: $ac_useropt"
1265     ac_useropt_orig=$ac_useropt
1266     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1267     case $ac_user_opts in
1268       *"
1269 "enable_$ac_useropt"
1270 "*) ;;
1271       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1272          ac_unrecognized_sep=', ';;
1273     esac
1274     eval enable_$ac_useropt=\$ac_optarg ;;
1275
1276   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1277   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1278   | --exec | --exe | --ex)
1279     ac_prev=exec_prefix ;;
1280   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1281   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1282   | --exec=* | --exe=* | --ex=*)
1283     exec_prefix=$ac_optarg ;;
1284
1285   -gas | --gas | --ga | --g)
1286     # Obsolete; use --with-gas.
1287     with_gas=yes ;;
1288
1289   -help | --help | --hel | --he | -h)
1290     ac_init_help=long ;;
1291   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1292     ac_init_help=recursive ;;
1293   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1294     ac_init_help=short ;;
1295
1296   -host | --host | --hos | --ho)
1297     ac_prev=host_alias ;;
1298   -host=* | --host=* | --hos=* | --ho=*)
1299     host_alias=$ac_optarg ;;
1300
1301   -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1302     ac_prev=htmldir ;;
1303   -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1304   | --ht=*)
1305     htmldir=$ac_optarg ;;
1306
1307   -includedir | --includedir | --includedi | --included | --include \
1308   | --includ | --inclu | --incl | --inc)
1309     ac_prev=includedir ;;
1310   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1311   | --includ=* | --inclu=* | --incl=* | --inc=*)
1312     includedir=$ac_optarg ;;
1313
1314   -infodir | --infodir | --infodi | --infod | --info | --inf)
1315     ac_prev=infodir ;;
1316   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1317     infodir=$ac_optarg ;;
1318
1319   -libdir | --libdir | --libdi | --libd)
1320     ac_prev=libdir ;;
1321   -libdir=* | --libdir=* | --libdi=* | --libd=*)
1322     libdir=$ac_optarg ;;
1323
1324   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1325   | --libexe | --libex | --libe)
1326     ac_prev=libexecdir ;;
1327   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1328   | --libexe=* | --libex=* | --libe=*)
1329     libexecdir=$ac_optarg ;;
1330
1331   -localedir | --localedir | --localedi | --localed | --locale)
1332     ac_prev=localedir ;;
1333   -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1334     localedir=$ac_optarg ;;
1335
1336   -localstatedir | --localstatedir | --localstatedi | --localstated \
1337   | --localstate | --localstat | --localsta | --localst | --locals)
1338     ac_prev=localstatedir ;;
1339   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1340   | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1341     localstatedir=$ac_optarg ;;
1342
1343   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1344     ac_prev=mandir ;;
1345   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1346     mandir=$ac_optarg ;;
1347
1348   -nfp | --nfp | --nf)
1349     # Obsolete; use --without-fp.
1350     with_fp=no ;;
1351
1352   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1353   | --no-cr | --no-c | -n)
1354     no_create=yes ;;
1355
1356   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1357   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1358     no_recursion=yes ;;
1359
1360   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1361   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1362   | --oldin | --oldi | --old | --ol | --o)
1363     ac_prev=oldincludedir ;;
1364   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1365   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1366   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1367     oldincludedir=$ac_optarg ;;
1368
1369   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1370     ac_prev=prefix ;;
1371   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1372     prefix=$ac_optarg ;;
1373
1374   -program-prefix | --program-prefix | --program-prefi | --program-pref \
1375   | --program-pre | --program-pr | --program-p)
1376     ac_prev=program_prefix ;;
1377   -program-prefix=* | --program-prefix=* | --program-prefi=* \
1378   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1379     program_prefix=$ac_optarg ;;
1380
1381   -program-suffix | --program-suffix | --program-suffi | --program-suff \
1382   | --program-suf | --program-su | --program-s)
1383     ac_prev=program_suffix ;;
1384   -program-suffix=* | --program-suffix=* | --program-suffi=* \
1385   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1386     program_suffix=$ac_optarg ;;
1387
1388   -program-transform-name | --program-transform-name \
1389   | --program-transform-nam | --program-transform-na \
1390   | --program-transform-n | --program-transform- \
1391   | --program-transform | --program-transfor \
1392   | --program-transfo | --program-transf \
1393   | --program-trans | --program-tran \
1394   | --progr-tra | --program-tr | --program-t)
1395     ac_prev=program_transform_name ;;
1396   -program-transform-name=* | --program-transform-name=* \
1397   | --program-transform-nam=* | --program-transform-na=* \
1398   | --program-transform-n=* | --program-transform-=* \
1399   | --program-transform=* | --program-transfor=* \
1400   | --program-transfo=* | --program-transf=* \
1401   | --program-trans=* | --program-tran=* \
1402   | --progr-tra=* | --program-tr=* | --program-t=*)
1403     program_transform_name=$ac_optarg ;;
1404
1405   -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1406     ac_prev=pdfdir ;;
1407   -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1408     pdfdir=$ac_optarg ;;
1409
1410   -psdir | --psdir | --psdi | --psd | --ps)
1411     ac_prev=psdir ;;
1412   -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1413     psdir=$ac_optarg ;;
1414
1415   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1416   | -silent | --silent | --silen | --sile | --sil)
1417     silent=yes ;;
1418
1419   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1420     ac_prev=sbindir ;;
1421   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1422   | --sbi=* | --sb=*)
1423     sbindir=$ac_optarg ;;
1424
1425   -sharedstatedir | --sharedstatedir | --sharedstatedi \
1426   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1427   | --sharedst | --shareds | --shared | --share | --shar \
1428   | --sha | --sh)
1429     ac_prev=sharedstatedir ;;
1430   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1431   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1432   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1433   | --sha=* | --sh=*)
1434     sharedstatedir=$ac_optarg ;;
1435
1436   -site | --site | --sit)
1437     ac_prev=site ;;
1438   -site=* | --site=* | --sit=*)
1439     site=$ac_optarg ;;
1440
1441   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1442     ac_prev=srcdir ;;
1443   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1444     srcdir=$ac_optarg ;;
1445
1446   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1447   | --syscon | --sysco | --sysc | --sys | --sy)
1448     ac_prev=sysconfdir ;;
1449   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1450   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1451     sysconfdir=$ac_optarg ;;
1452
1453   -target | --target | --targe | --targ | --tar | --ta | --t)
1454     ac_prev=target_alias ;;
1455   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1456     target_alias=$ac_optarg ;;
1457
1458   -v | -verbose | --verbose | --verbos | --verbo | --verb)
1459     verbose=yes ;;
1460
1461   -version | --version | --versio | --versi | --vers | -V)
1462     ac_init_version=: ;;
1463
1464   -with-* | --with-*)
1465     ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1466     # Reject names that are not valid shell variable names.
1467     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1468       as_fn_error "invalid package name: $ac_useropt"
1469     ac_useropt_orig=$ac_useropt
1470     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1471     case $ac_user_opts in
1472       *"
1473 "with_$ac_useropt"
1474 "*) ;;
1475       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1476          ac_unrecognized_sep=', ';;
1477     esac
1478     eval with_$ac_useropt=\$ac_optarg ;;
1479
1480   -without-* | --without-*)
1481     ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1482     # Reject names that are not valid shell variable names.
1483     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1484       as_fn_error "invalid package name: $ac_useropt"
1485     ac_useropt_orig=$ac_useropt
1486     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1487     case $ac_user_opts in
1488       *"
1489 "with_$ac_useropt"
1490 "*) ;;
1491       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1492          ac_unrecognized_sep=', ';;
1493     esac
1494     eval with_$ac_useropt=no ;;
1495
1496   --x)
1497     # Obsolete; use --with-x.
1498     with_x=yes ;;
1499
1500   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1501   | --x-incl | --x-inc | --x-in | --x-i)
1502     ac_prev=x_includes ;;
1503   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1504   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1505     x_includes=$ac_optarg ;;
1506
1507   -x-libraries | --x-libraries | --x-librarie | --x-librari \
1508   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1509     ac_prev=x_libraries ;;
1510   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1511   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1512     x_libraries=$ac_optarg ;;
1513
1514   -*) as_fn_error "unrecognized option: \`$ac_option'
1515 Try \`$0 --help' for more information."
1516     ;;
1517
1518   *=*)
1519     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1520     # Reject names that are not valid shell variable names.
1521     case $ac_envvar in #(
1522       '' | [0-9]* | *[!_$as_cr_alnum]* )
1523       as_fn_error "invalid variable name: \`$ac_envvar'" ;;
1524     esac
1525     eval $ac_envvar=\$ac_optarg
1526     export $ac_envvar ;;
1527
1528   *)
1529     # FIXME: should be removed in autoconf 3.0.
1530     $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1531     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1532       $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1533     : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1534     ;;
1535
1536   esac
1537 done
1538
1539 if test -n "$ac_prev"; then
1540   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1541   as_fn_error "missing argument to $ac_option"
1542 fi
1543
1544 if test -n "$ac_unrecognized_opts"; then
1545   case $enable_option_checking in
1546     no) ;;
1547     fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;;
1548     *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1549   esac
1550 fi
1551
1552 # Check all directory arguments for consistency.
1553 for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
1554                 datadir sysconfdir sharedstatedir localstatedir includedir \
1555                 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1556                 libdir localedir mandir
1557 do
1558   eval ac_val=\$$ac_var
1559   # Remove trailing slashes.
1560   case $ac_val in
1561     */ )
1562       ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1563       eval $ac_var=\$ac_val;;
1564   esac
1565   # Be sure to have absolute directory names.
1566   case $ac_val in
1567     [\\/$]* | ?:[\\/]* )  continue;;
1568     NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1569   esac
1570   as_fn_error "expected an absolute directory name for --$ac_var: $ac_val"
1571 done
1572
1573 # There might be people who depend on the old broken behavior: `$host'
1574 # used to hold the argument of --host etc.
1575 # FIXME: To remove some day.
1576 build=$build_alias
1577 host=$host_alias
1578 target=$target_alias
1579
1580 # FIXME: To remove some day.
1581 if test "x$host_alias" != x; then
1582   if test "x$build_alias" = x; then
1583     cross_compiling=maybe
1584     $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1585     If a cross compiler is detected then cross compile mode will be used." >&2
1586   elif test "x$build_alias" != "x$host_alias"; then
1587     cross_compiling=yes
1588   fi
1589 fi
1590
1591 ac_tool_prefix=
1592 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1593
1594 test "$silent" = yes && exec 6>/dev/null
1595
1596
1597 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1598 ac_ls_di=`ls -di .` &&
1599 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1600   as_fn_error "working directory cannot be determined"
1601 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1602   as_fn_error "pwd does not report name of working directory"
1603
1604
1605 # Find the source files, if location was not specified.
1606 if test -z "$srcdir"; then
1607   ac_srcdir_defaulted=yes
1608   # Try the directory containing this script, then the parent directory.
1609   ac_confdir=`$as_dirname -- "$as_myself" ||
1610 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1611          X"$as_myself" : 'X\(//\)[^/]' \| \
1612          X"$as_myself" : 'X\(//\)$' \| \
1613          X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1614 $as_echo X"$as_myself" |
1615     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1616             s//\1/
1617             q
1618           }
1619           /^X\(\/\/\)[^/].*/{
1620             s//\1/
1621             q
1622           }
1623           /^X\(\/\/\)$/{
1624             s//\1/
1625             q
1626           }
1627           /^X\(\/\).*/{
1628             s//\1/
1629             q
1630           }
1631           s/.*/./; q'`
1632   srcdir=$ac_confdir
1633   if test ! -r "$srcdir/$ac_unique_file"; then
1634     srcdir=..
1635   fi
1636 else
1637   ac_srcdir_defaulted=no
1638 fi
1639 if test ! -r "$srcdir/$ac_unique_file"; then
1640   test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1641   as_fn_error "cannot find sources ($ac_unique_file) in $srcdir"
1642 fi
1643 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1644 ac_abs_confdir=`(
1645         cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
1646         pwd)`
1647 # When building in place, set srcdir=.
1648 if test "$ac_abs_confdir" = "$ac_pwd"; then
1649   srcdir=.
1650 fi
1651 # Remove unnecessary trailing slashes from srcdir.
1652 # Double slashes in file names in object file debugging info
1653 # mess up M-x gdb in Emacs.
1654 case $srcdir in
1655 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1656 esac
1657 for ac_var in $ac_precious_vars; do
1658   eval ac_env_${ac_var}_set=\${${ac_var}+set}
1659   eval ac_env_${ac_var}_value=\$${ac_var}
1660   eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1661   eval ac_cv_env_${ac_var}_value=\$${ac_var}
1662 done
1663
1664 #
1665 # Report the --help message.
1666 #
1667 if test "$ac_init_help" = "long"; then
1668   # Omit some internal or obsolete options to make the list less imposing.
1669   # This message is too long to be a string in the A/UX 3.1 sh.
1670   cat <<_ACEOF
1671 \`configure' configures this package to adapt to many kinds of systems.
1672
1673 Usage: $0 [OPTION]... [VAR=VALUE]...
1674
1675 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1676 VAR=VALUE.  See below for descriptions of some of the useful variables.
1677
1678 Defaults for the options are specified in brackets.
1679
1680 Configuration:
1681   -h, --help              display this help and exit
1682       --help=short        display options specific to this package
1683       --help=recursive    display the short help of all the included packages
1684   -V, --version           display version information and exit
1685   -q, --quiet, --silent   do not print \`checking...' messages
1686       --cache-file=FILE   cache test results in FILE [disabled]
1687   -C, --config-cache      alias for \`--cache-file=config.cache'
1688   -n, --no-create         do not create output files
1689       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1690
1691 Installation directories:
1692   --prefix=PREFIX         install architecture-independent files in PREFIX
1693                           [$ac_default_prefix]
1694   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1695                           [PREFIX]
1696
1697 By default, \`make install' will install all the files in
1698 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1699 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1700 for instance \`--prefix=\$HOME'.
1701
1702 For better control, use the options below.
1703
1704 Fine tuning of the installation directories:
1705   --bindir=DIR            user executables [EPREFIX/bin]
1706   --sbindir=DIR           system admin executables [EPREFIX/sbin]
1707   --libexecdir=DIR        program executables [EPREFIX/libexec]
1708   --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1709   --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1710   --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1711   --libdir=DIR            object code libraries [EPREFIX/lib]
1712   --includedir=DIR        C header files [PREFIX/include]
1713   --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1714   --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1715   --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1716   --infodir=DIR           info documentation [DATAROOTDIR/info]
1717   --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1718   --mandir=DIR            man documentation [DATAROOTDIR/man]
1719   --docdir=DIR            documentation root [DATAROOTDIR/doc/PACKAGE]
1720   --htmldir=DIR           html documentation [DOCDIR]
1721   --dvidir=DIR            dvi documentation [DOCDIR]
1722   --pdfdir=DIR            pdf documentation [DOCDIR]
1723   --psdir=DIR             ps documentation [DOCDIR]
1724 _ACEOF
1725
1726   cat <<\_ACEOF
1727
1728 X features:
1729   --x-includes=DIR    X include files are in DIR
1730   --x-libraries=DIR   X library files are in DIR
1731
1732 System types:
1733   --build=BUILD     configure for building on BUILD [guessed]
1734   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1735 _ACEOF
1736 fi
1737
1738 if test -n "$ac_init_help"; then
1739
1740   cat <<\_ACEOF
1741
1742 Optional Features:
1743   --disable-option-checking  ignore unrecognized --enable/--with options
1744   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1745   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1746   --enable-libtool        enable building using GNU libtool [default=yes]
1747   --enable-shared[=PKGS]  build shared libraries [default=yes]
1748   --enable-static[=PKGS]  build static libraries [default=no]
1749   --enable-fast-install[=PKGS]
1750                           optimize for fast installation [default=yes]
1751   --disable-libtool-lock  avoid locking (might break parallel builds)
1752   --enable-includes       enable installing of include files [default=no]
1753   --disable-nls           do not use Native Language Support
1754   --disable-rpath         do not hardcode runtime library paths
1755   --enable-gnome          enable build of bgnome-console GUI [default=no]
1756   --enable-bat            enable build of bat Qt4 GUI [default=no]
1757   --enable-bwx-console    enable build of wxWidgets console [default=no]
1758   --enable-tray-monitor   enable build of Gnome tray monitor (compatible with
1759                           KDE [default=no]
1760   --enable-smartalloc     enable smartalloc debugging support [default=no]
1761   --enable-lockmgr        enable lock manager support [default=no]
1762   --enable-static-tools   enable static tape tools [default=no]
1763   --enable-static-fd      enable static File daemon [default=no]
1764   --enable-static-sd      enable static Storage daemon [default=no]
1765   --enable-static-dir     enable static Director [default=no]
1766   --enable-static-cons    enable static Console [default=no]
1767   --enable-client-only    build client (File daemon) only [default=no]
1768   --enable-build-dird     enable building of dird (Director) [default=yes]
1769   --enable-build-stored   enable building of stored (Storage daemon)
1770                           [default=yes]
1771   --disable-conio         disable conio support [default=no]
1772   --enable-ipv6           enable ipv6 support [default=yes]
1773   --disable-readline      disable readline support [default=yes]
1774   --enable-batch-insert   enable the DB batch insert code [default=no]
1775   --disable-largefile     omit support for large files
1776   --disable-acl           disable acl support [default=auto]
1777   --disable-xattr         disable xattr support [default=auto]
1778
1779 Optional Packages:
1780   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1781   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1782   --with-pic              try to use only PIC/non-PIC objects [default=use
1783                           both]
1784   --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1785   --with-gnu-ld           assume the C compiler uses GNU ld default=no
1786   --with-libiconv-prefix[=DIR]  search for libiconv in DIR/include and DIR/lib
1787   --without-libiconv-prefix     don't search for libiconv in includedir and libdir
1788   --with-libintl-prefix[=DIR]  search for libintl in DIR/include and DIR/lib
1789   --without-libintl-prefix     don't search for libintl in includedir and libdir
1790   --with-included-gettext use the GNU gettext library included here
1791   --with-readline[=DIR]   specify readline library directory
1792   --with-python[=DIR]     Include Python support. DIR is the Python base
1793                           install directory, default is to search through a
1794                           number of common places for the Python files.
1795   --with-tcp-wrappers[=DIR]
1796                           enable tcpwrappers support
1797   --with-openssl[=DIR]    Include OpenSSL support. DIR is the OpenSSL base
1798   --with-working-dir=PATH specify path of Bacula working directory
1799   --with-archivedir=PATH  specify path of SD archive directory
1800   --with-basename=RESNAME specify base resource name for daemons
1801   --with-hostname=RESNAME specify host name for daemons
1802   --with-scriptdir=PATH   specify path of Bacula scripts directory
1803   --with-bsrdir=PATH      specify path of Bacula bsrs directory
1804   --with-logdir=PATH      specify path of Bacula logs directory
1805   --with-plugindir=PATH   specify path of Bacula plugins directory
1806   --with-dump-email=EMAIL dump email address
1807   --with-job-email=EMAIL  job output email address
1808   --with-smtp-host=HOST   SMTP mail host address
1809   --with-pid-dir=PATH     specify location of Bacula pid files
1810   --with-subsys-dir=PATH  specify location of Bacula subsys file
1811   --with-baseport=PORT    specify base port address for daemons
1812   --with-dir-password=PASSWORD
1813                           specify Director's password
1814   --with-fd-password=PASSWORD
1815                           specify Client's password
1816   --with-sd-password=PASSWORD
1817                           specify Storage daemon's password
1818   --with-mon-dir-password=PASSWORD
1819                           specify Director's password used by the monitor
1820   --with-mon-fd-password=PASSWORD
1821                           specify Client's password used by the monitor
1822   --with-mon-sd-password=PASSWORD
1823                           specify Storage daemon's password used by the
1824                           monitor
1825   --with-db-name=DBNAME   specify database name [default=bacula]
1826   --with-db-user=UNAME    specify database user [default=bacula]
1827   --with-db-password=PWD  specify database password [default=*none*]
1828   --with-db-port=DBPORT   specify a database port [default=null]
1829   --with-dir-user=USER    specify user for Director daemon
1830   --with-dir-group=GROUP  specify group for Director daemon
1831   --with-sd-user=USER     specify user for Storage daemon
1832   --with-sd-group=GROUP   specify group for Storage daemon
1833   --with-fd-user=USER     specify user for File daemon
1834   --with-fd-group=GROUP   specify group for File daemon
1835   --with-sbin-perm=MODE   specify permissions for sbin binaries [default=0750]
1836   --with-postgresql[=DIR] Include PostgreSQL support. DIR is the PostgreSQL
1837                           base install directory, [default=/usr/local/pgsql]
1838   --with-mysql[=DIR]      Include MySQL support. DIR is the MySQL base install
1839                           directory, default is to search through a number of
1840                           common places for the MySQL files.
1841   --with-embedded-mysql[=DIR]
1842                           Include MySQL support. DIR is the MySQL base install
1843                           directory, default is to search through a number of
1844                           common places for the MySQL files.
1845   --with-ingres[=DIR]     Include Ingres support. DIR is the Ingres base
1846                           install directory, default is to search through a
1847                           number of common places for the Ingres files.
1848   --with-sqlite3[=DIR]    Include SQLite3 support. DIR is the SQLite3 base
1849                           install directory, default is to search through a
1850                           number of common places for the SQLite3 files.
1851   --with-dbi[=DIR]        Include DBI support. DIR is the DBD base install
1852                           directory, default is to search through a number of
1853                           common places for the DBI files.
1854   --with-dbi-driver[=DRIVER]
1855                           Suport for DBI driver. DRIVER is the one DBI driver
1856                           like Mysql, Postgresql, others. Default is to not
1857                           configure any driver.
1858   --with-x                use the X Window System
1859
1860 Some influential environment variables:
1861   CC          C compiler command
1862   CFLAGS      C compiler flags
1863   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1864               nonstandard directory <lib dir>
1865   LIBS        libraries to pass to the linker, e.g. -l<library>
1866   CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1867               you have headers in a nonstandard directory <include dir>
1868   CXX         C++ compiler command
1869   CXXFLAGS    C++ compiler flags
1870   CPP         C preprocessor
1871   WXCONFIG    wx-config command. On some systems, you must set it to
1872               wx-config-2.6 to use wxWidgets 2.6.
1873   WXFLAGS     Parameters to pass to wx-config (e.g. --unicode=no).
1874   CXXCPP      C++ preprocessor
1875   XMKMF       Path to xmkmf, Makefile generator for X Window System
1876
1877 Use these variables to override the choices made by `configure' or to help
1878 it to find libraries and programs with nonstandard names/locations.
1879
1880 Report bugs to the package provider.
1881 _ACEOF
1882 ac_status=$?
1883 fi
1884
1885 if test "$ac_init_help" = "recursive"; then
1886   # If there are subdirs, report their specific --help.
1887   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1888     test -d "$ac_dir" ||
1889       { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1890       continue
1891     ac_builddir=.
1892
1893 case "$ac_dir" in
1894 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1895 *)
1896   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1897   # A ".." for each directory in $ac_dir_suffix.
1898   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1899   case $ac_top_builddir_sub in
1900   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1901   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1902   esac ;;
1903 esac
1904 ac_abs_top_builddir=$ac_pwd
1905 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1906 # for backward compatibility:
1907 ac_top_builddir=$ac_top_build_prefix
1908
1909 case $srcdir in
1910   .)  # We are building in place.
1911     ac_srcdir=.
1912     ac_top_srcdir=$ac_top_builddir_sub
1913     ac_abs_top_srcdir=$ac_pwd ;;
1914   [\\/]* | ?:[\\/]* )  # Absolute name.
1915     ac_srcdir=$srcdir$ac_dir_suffix;
1916     ac_top_srcdir=$srcdir
1917     ac_abs_top_srcdir=$srcdir ;;
1918   *) # Relative name.
1919     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1920     ac_top_srcdir=$ac_top_build_prefix$srcdir
1921     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1922 esac
1923 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1924
1925     cd "$ac_dir" || { ac_status=$?; continue; }
1926     # Check for guested configure.
1927     if test -f "$ac_srcdir/configure.gnu"; then
1928       echo &&
1929       $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1930     elif test -f "$ac_srcdir/configure"; then
1931       echo &&
1932       $SHELL "$ac_srcdir/configure" --help=recursive
1933     else
1934       $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1935     fi || ac_status=$?
1936     cd "$ac_pwd" || { ac_status=$?; break; }
1937   done
1938 fi
1939
1940 test -n "$ac_init_help" && exit $ac_status
1941 if $ac_init_version; then
1942   cat <<\_ACEOF
1943 configure
1944 generated by GNU Autoconf 2.65
1945
1946 Copyright (C) 2009 Free Software Foundation, Inc.
1947 This configure script is free software; the Free Software Foundation
1948 gives unlimited permission to copy, distribute and modify it.
1949 _ACEOF
1950   exit
1951 fi
1952
1953 ## ------------------------ ##
1954 ## Autoconf initialization. ##
1955 ## ------------------------ ##
1956
1957 # ac_fn_c_try_compile LINENO
1958 # --------------------------
1959 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1960 ac_fn_c_try_compile ()
1961 {
1962   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1963   rm -f conftest.$ac_objext
1964   if { { ac_try="$ac_compile"
1965 case "(($ac_try" in
1966   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1967   *) ac_try_echo=$ac_try;;
1968 esac
1969 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1970 $as_echo "$ac_try_echo"; } >&5
1971   (eval "$ac_compile") 2>conftest.err
1972   ac_status=$?
1973   if test -s conftest.err; then
1974     grep -v '^ *+' conftest.err >conftest.er1
1975     cat conftest.er1 >&5
1976     mv -f conftest.er1 conftest.err
1977   fi
1978   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1979   test $ac_status = 0; } && {
1980          test -z "$ac_c_werror_flag" ||
1981          test ! -s conftest.err
1982        } && test -s conftest.$ac_objext; then :
1983   ac_retval=0
1984 else
1985   $as_echo "$as_me: failed program was:" >&5
1986 sed 's/^/| /' conftest.$ac_ext >&5
1987
1988         ac_retval=1
1989 fi
1990   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1991   as_fn_set_status $ac_retval
1992
1993 } # ac_fn_c_try_compile
1994
1995 # ac_fn_cxx_try_compile LINENO
1996 # ----------------------------
1997 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1998 ac_fn_cxx_try_compile ()
1999 {
2000   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2001   rm -f conftest.$ac_objext
2002   if { { ac_try="$ac_compile"
2003 case "(($ac_try" in
2004   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2005   *) ac_try_echo=$ac_try;;
2006 esac
2007 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2008 $as_echo "$ac_try_echo"; } >&5
2009   (eval "$ac_compile") 2>conftest.err
2010   ac_status=$?
2011   if test -s conftest.err; then
2012     grep -v '^ *+' conftest.err >conftest.er1
2013     cat conftest.er1 >&5
2014     mv -f conftest.er1 conftest.err
2015   fi
2016   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2017   test $ac_status = 0; } && {
2018          test -z "$ac_cxx_werror_flag" ||
2019          test ! -s conftest.err
2020        } && test -s conftest.$ac_objext; then :
2021   ac_retval=0
2022 else
2023   $as_echo "$as_me: failed program was:" >&5
2024 sed 's/^/| /' conftest.$ac_ext >&5
2025
2026         ac_retval=1
2027 fi
2028   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2029   as_fn_set_status $ac_retval
2030
2031 } # ac_fn_cxx_try_compile
2032
2033 # ac_fn_c_try_cpp LINENO
2034 # ----------------------
2035 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2036 ac_fn_c_try_cpp ()
2037 {
2038   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2039   if { { ac_try="$ac_cpp conftest.$ac_ext"
2040 case "(($ac_try" in
2041   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2042   *) ac_try_echo=$ac_try;;
2043 esac
2044 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2045 $as_echo "$ac_try_echo"; } >&5
2046   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2047   ac_status=$?
2048   if test -s conftest.err; then
2049     grep -v '^ *+' conftest.err >conftest.er1
2050     cat conftest.er1 >&5
2051     mv -f conftest.er1 conftest.err
2052   fi
2053   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2054   test $ac_status = 0; } >/dev/null && {
2055          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
2056          test ! -s conftest.err
2057        }; then :
2058   ac_retval=0
2059 else
2060   $as_echo "$as_me: failed program was:" >&5
2061 sed 's/^/| /' conftest.$ac_ext >&5
2062
2063     ac_retval=1
2064 fi
2065   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2066   as_fn_set_status $ac_retval
2067
2068 } # ac_fn_c_try_cpp
2069
2070 # ac_fn_c_try_link LINENO
2071 # -----------------------
2072 # Try to link conftest.$ac_ext, and return whether this succeeded.
2073 ac_fn_c_try_link ()
2074 {
2075   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2076   rm -f conftest.$ac_objext conftest$ac_exeext
2077   if { { ac_try="$ac_link"
2078 case "(($ac_try" in
2079   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2080   *) ac_try_echo=$ac_try;;
2081 esac
2082 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2083 $as_echo "$ac_try_echo"; } >&5
2084   (eval "$ac_link") 2>conftest.err
2085   ac_status=$?
2086   if test -s conftest.err; then
2087     grep -v '^ *+' conftest.err >conftest.er1
2088     cat conftest.er1 >&5
2089     mv -f conftest.er1 conftest.err
2090   fi
2091   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2092   test $ac_status = 0; } && {
2093          test -z "$ac_c_werror_flag" ||
2094          test ! -s conftest.err
2095        } && test -s conftest$ac_exeext && {
2096          test "$cross_compiling" = yes ||
2097          $as_test_x conftest$ac_exeext
2098        }; then :
2099   ac_retval=0
2100 else
2101   $as_echo "$as_me: failed program was:" >&5
2102 sed 's/^/| /' conftest.$ac_ext >&5
2103
2104         ac_retval=1
2105 fi
2106   # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2107   # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2108   # interfere with the next link command; also delete a directory that is
2109   # left behind by Apple's compiler.  We do this before executing the actions.
2110   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2111   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2112   as_fn_set_status $ac_retval
2113
2114 } # ac_fn_c_try_link
2115
2116 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
2117 # -------------------------------------------------------
2118 # Tests whether HEADER exists and can be compiled using the include files in
2119 # INCLUDES, setting the cache variable VAR accordingly.
2120 ac_fn_c_check_header_compile ()
2121 {
2122   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2123   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2124 $as_echo_n "checking for $2... " >&6; }
2125 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2126   $as_echo_n "(cached) " >&6
2127 else
2128   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2129 /* end confdefs.h.  */
2130 $4
2131 #include <$2>
2132 _ACEOF
2133 if ac_fn_c_try_compile "$LINENO"; then :
2134   eval "$3=yes"
2135 else
2136   eval "$3=no"
2137 fi
2138 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2139 fi
2140 eval ac_res=\$$3
2141                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2142 $as_echo "$ac_res" >&6; }
2143   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2144
2145 } # ac_fn_c_check_header_compile
2146
2147 # ac_fn_c_try_run LINENO
2148 # ----------------------
2149 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
2150 # that executables *can* be run.
2151 ac_fn_c_try_run ()
2152 {
2153   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2154   if { { ac_try="$ac_link"
2155 case "(($ac_try" in
2156   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2157   *) ac_try_echo=$ac_try;;
2158 esac
2159 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2160 $as_echo "$ac_try_echo"; } >&5
2161   (eval "$ac_link") 2>&5
2162   ac_status=$?
2163   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2164   test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
2165   { { case "(($ac_try" in
2166   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2167   *) ac_try_echo=$ac_try;;
2168 esac
2169 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2170 $as_echo "$ac_try_echo"; } >&5
2171   (eval "$ac_try") 2>&5
2172   ac_status=$?
2173   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2174   test $ac_status = 0; }; }; then :
2175   ac_retval=0
2176 else
2177   $as_echo "$as_me: program exited with status $ac_status" >&5
2178        $as_echo "$as_me: failed program was:" >&5
2179 sed 's/^/| /' conftest.$ac_ext >&5
2180
2181        ac_retval=$ac_status
2182 fi
2183   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2184   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2185   as_fn_set_status $ac_retval
2186
2187 } # ac_fn_c_try_run
2188
2189 # ac_fn_c_check_func LINENO FUNC VAR
2190 # ----------------------------------
2191 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2192 ac_fn_c_check_func ()
2193 {
2194   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2195   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2196 $as_echo_n "checking for $2... " >&6; }
2197 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2198   $as_echo_n "(cached) " >&6
2199 else
2200   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2201 /* end confdefs.h.  */
2202 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2203    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
2204 #define $2 innocuous_$2
2205
2206 /* System header to define __stub macros and hopefully few prototypes,
2207     which can conflict with char $2 (); below.
2208     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2209     <limits.h> exists even on freestanding compilers.  */
2210
2211 #ifdef __STDC__
2212 # include <limits.h>
2213 #else
2214 # include <assert.h>
2215 #endif
2216
2217 #undef $2
2218
2219 /* Override any GCC internal prototype to avoid an error.
2220    Use char because int might match the return type of a GCC
2221    builtin and then its argument prototype would still apply.  */
2222 #ifdef __cplusplus
2223 extern "C"
2224 #endif
2225 char $2 ();
2226 /* The GNU C library defines this for functions which it implements
2227     to always fail with ENOSYS.  Some functions are actually named
2228     something starting with __ and the normal name is an alias.  */
2229 #if defined __stub_$2 || defined __stub___$2
2230 choke me
2231 #endif
2232
2233 int
2234 main ()
2235 {
2236 return $2 ();
2237   ;
2238   return 0;
2239 }
2240 _ACEOF
2241 if ac_fn_c_try_link "$LINENO"; then :
2242   eval "$3=yes"
2243 else
2244   eval "$3=no"
2245 fi
2246 rm -f core conftest.err conftest.$ac_objext \
2247     conftest$ac_exeext conftest.$ac_ext
2248 fi
2249 eval ac_res=\$$3
2250                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2251 $as_echo "$ac_res" >&6; }
2252   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2253
2254 } # ac_fn_c_check_func
2255
2256 # ac_fn_cxx_try_cpp LINENO
2257 # ------------------------
2258 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2259 ac_fn_cxx_try_cpp ()
2260 {
2261   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2262   if { { ac_try="$ac_cpp conftest.$ac_ext"
2263 case "(($ac_try" in
2264   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2265   *) ac_try_echo=$ac_try;;
2266 esac
2267 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2268 $as_echo "$ac_try_echo"; } >&5
2269   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2270   ac_status=$?
2271   if test -s conftest.err; then
2272     grep -v '^ *+' conftest.err >conftest.er1
2273     cat conftest.er1 >&5
2274     mv -f conftest.er1 conftest.err
2275   fi
2276   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2277   test $ac_status = 0; } >/dev/null && {
2278          test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
2279          test ! -s conftest.err
2280        }; then :
2281   ac_retval=0
2282 else
2283   $as_echo "$as_me: failed program was:" >&5
2284 sed 's/^/| /' conftest.$ac_ext >&5
2285
2286     ac_retval=1
2287 fi
2288   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2289   as_fn_set_status $ac_retval
2290
2291 } # ac_fn_cxx_try_cpp
2292
2293 # ac_fn_cxx_try_link LINENO
2294 # -------------------------
2295 # Try to link conftest.$ac_ext, and return whether this succeeded.
2296 ac_fn_cxx_try_link ()
2297 {
2298   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2299   rm -f conftest.$ac_objext conftest$ac_exeext
2300   if { { ac_try="$ac_link"
2301 case "(($ac_try" in
2302   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2303   *) ac_try_echo=$ac_try;;
2304 esac
2305 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2306 $as_echo "$ac_try_echo"; } >&5
2307   (eval "$ac_link") 2>conftest.err
2308   ac_status=$?
2309   if test -s conftest.err; then
2310     grep -v '^ *+' conftest.err >conftest.er1
2311     cat conftest.er1 >&5
2312     mv -f conftest.er1 conftest.err
2313   fi
2314   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2315   test $ac_status = 0; } && {
2316          test -z "$ac_cxx_werror_flag" ||
2317          test ! -s conftest.err
2318        } && test -s conftest$ac_exeext && {
2319          test "$cross_compiling" = yes ||
2320          $as_test_x conftest$ac_exeext
2321        }; then :
2322   ac_retval=0
2323 else
2324   $as_echo "$as_me: failed program was:" >&5
2325 sed 's/^/| /' conftest.$ac_ext >&5
2326
2327         ac_retval=1
2328 fi
2329   # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2330   # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2331   # interfere with the next link command; also delete a directory that is
2332   # left behind by Apple's compiler.  We do this before executing the actions.
2333   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2334   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2335   as_fn_set_status $ac_retval
2336
2337 } # ac_fn_cxx_try_link
2338
2339 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2340 # -------------------------------------------
2341 # Tests whether TYPE exists after having included INCLUDES, setting cache
2342 # variable VAR accordingly.
2343 ac_fn_c_check_type ()
2344 {
2345   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2346   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2347 $as_echo_n "checking for $2... " >&6; }
2348 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2349   $as_echo_n "(cached) " >&6
2350 else
2351   eval "$3=no"
2352   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2353 /* end confdefs.h.  */
2354 $4
2355 int
2356 main ()
2357 {
2358 if (sizeof ($2))
2359          return 0;
2360   ;
2361   return 0;
2362 }
2363 _ACEOF
2364 if ac_fn_c_try_compile "$LINENO"; then :
2365   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2366 /* end confdefs.h.  */
2367 $4
2368 int
2369 main ()
2370 {
2371 if (sizeof (($2)))
2372             return 0;
2373   ;
2374   return 0;
2375 }
2376 _ACEOF
2377 if ac_fn_c_try_compile "$LINENO"; then :
2378
2379 else
2380   eval "$3=yes"
2381 fi
2382 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2383 fi
2384 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2385 fi
2386 eval ac_res=\$$3
2387                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2388 $as_echo "$ac_res" >&6; }
2389   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2390
2391 } # ac_fn_c_check_type
2392
2393 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
2394 # -------------------------------------------------------
2395 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
2396 # the include files in INCLUDES and setting the cache variable VAR
2397 # accordingly.
2398 ac_fn_c_check_header_mongrel ()
2399 {
2400   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2401   if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2402   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2403 $as_echo_n "checking for $2... " >&6; }
2404 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2405   $as_echo_n "(cached) " >&6
2406 fi
2407 eval ac_res=\$$3
2408                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2409 $as_echo "$ac_res" >&6; }
2410 else
2411   # Is the header compilable?
2412 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
2413 $as_echo_n "checking $2 usability... " >&6; }
2414 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2415 /* end confdefs.h.  */
2416 $4
2417 #include <$2>
2418 _ACEOF
2419 if ac_fn_c_try_compile "$LINENO"; then :
2420   ac_header_compiler=yes
2421 else
2422   ac_header_compiler=no
2423 fi
2424 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2425 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2426 $as_echo "$ac_header_compiler" >&6; }
2427
2428 # Is the header present?
2429 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2430 $as_echo_n "checking $2 presence... " >&6; }
2431 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2432 /* end confdefs.h.  */
2433 #include <$2>
2434 _ACEOF
2435 if ac_fn_c_try_cpp "$LINENO"; then :
2436   ac_header_preproc=yes
2437 else
2438   ac_header_preproc=no
2439 fi
2440 rm -f conftest.err conftest.$ac_ext
2441 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2442 $as_echo "$ac_header_preproc" >&6; }
2443
2444 # So?  What about this header?
2445 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
2446   yes:no: )
2447     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2448 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2449     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2450 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2451     ;;
2452   no:yes:* )
2453     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2454 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2455     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     check for missing prerequisite headers?" >&5
2456 $as_echo "$as_me: WARNING: $2:     check for missing prerequisite headers?" >&2;}
2457     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2458 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2459     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&5
2460 $as_echo "$as_me: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&2;}
2461     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2462 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2463     ;;
2464 esac
2465   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2466 $as_echo_n "checking for $2... " >&6; }
2467 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2468   $as_echo_n "(cached) " >&6
2469 else
2470   eval "$3=\$ac_header_compiler"
2471 fi
2472 eval ac_res=\$$3
2473                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2474 $as_echo "$ac_res" >&6; }
2475 fi
2476   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2477
2478 } # ac_fn_c_check_header_mongrel
2479
2480 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2481 # --------------------------------------------
2482 # Tries to find the compile-time value of EXPR in a program that includes
2483 # INCLUDES, setting VAR accordingly. Returns whether the value could be
2484 # computed
2485 ac_fn_c_compute_int ()
2486 {
2487   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2488   if test "$cross_compiling" = yes; then
2489     # Depending upon the size, compute the lo and hi bounds.
2490 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2491 /* end confdefs.h.  */
2492 $4
2493 int
2494 main ()
2495 {
2496 static int test_array [1 - 2 * !(($2) >= 0)];
2497 test_array [0] = 0
2498
2499   ;
2500   return 0;
2501 }
2502 _ACEOF
2503 if ac_fn_c_try_compile "$LINENO"; then :
2504   ac_lo=0 ac_mid=0
2505   while :; do
2506     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2507 /* end confdefs.h.  */
2508 $4
2509 int
2510 main ()
2511 {
2512 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2513 test_array [0] = 0
2514
2515   ;
2516   return 0;
2517 }
2518 _ACEOF
2519 if ac_fn_c_try_compile "$LINENO"; then :
2520   ac_hi=$ac_mid; break
2521 else
2522   as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2523                         if test $ac_lo -le $ac_mid; then
2524                           ac_lo= ac_hi=
2525                           break
2526                         fi
2527                         as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2528 fi
2529 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2530   done
2531 else
2532   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2533 /* end confdefs.h.  */
2534 $4
2535 int
2536 main ()
2537 {
2538 static int test_array [1 - 2 * !(($2) < 0)];
2539 test_array [0] = 0
2540
2541   ;
2542   return 0;
2543 }
2544 _ACEOF
2545 if ac_fn_c_try_compile "$LINENO"; then :
2546   ac_hi=-1 ac_mid=-1
2547   while :; do
2548     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2549 /* end confdefs.h.  */
2550 $4
2551 int
2552 main ()
2553 {
2554 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2555 test_array [0] = 0
2556
2557   ;
2558   return 0;
2559 }
2560 _ACEOF
2561 if ac_fn_c_try_compile "$LINENO"; then :
2562   ac_lo=$ac_mid; break
2563 else
2564   as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2565                         if test $ac_mid -le $ac_hi; then
2566                           ac_lo= ac_hi=
2567                           break
2568                         fi
2569                         as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2570 fi
2571 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2572   done
2573 else
2574   ac_lo= ac_hi=
2575 fi
2576 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2577 fi
2578 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2579 # Binary search between lo and hi bounds.
2580 while test "x$ac_lo" != "x$ac_hi"; do
2581   as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2582   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2583 /* end confdefs.h.  */
2584 $4
2585 int
2586 main ()
2587 {
2588 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2589 test_array [0] = 0
2590
2591   ;
2592   return 0;
2593 }
2594 _ACEOF
2595 if ac_fn_c_try_compile "$LINENO"; then :
2596   ac_hi=$ac_mid
2597 else
2598   as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2599 fi
2600 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2601 done
2602 case $ac_lo in #((
2603 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2604 '') ac_retval=1 ;;
2605 esac
2606   else
2607     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2608 /* end confdefs.h.  */
2609 $4
2610 static long int longval () { return $2; }
2611 static unsigned long int ulongval () { return $2; }
2612 #include <stdio.h>
2613 #include <stdlib.h>
2614 int
2615 main ()
2616 {
2617
2618   FILE *f = fopen ("conftest.val", "w");
2619   if (! f)
2620     return 1;
2621   if (($2) < 0)
2622     {
2623       long int i = longval ();
2624       if (i != ($2))
2625         return 1;
2626       fprintf (f, "%ld", i);
2627     }
2628   else
2629     {
2630       unsigned long int i = ulongval ();
2631       if (i != ($2))
2632         return 1;
2633       fprintf (f, "%lu", i);
2634     }
2635   /* Do not output a trailing newline, as this causes \r\n confusion
2636      on some platforms.  */
2637   return ferror (f) || fclose (f) != 0;
2638
2639   ;
2640   return 0;
2641 }
2642 _ACEOF
2643 if ac_fn_c_try_run "$LINENO"; then :
2644   echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2645 else
2646   ac_retval=1
2647 fi
2648 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2649   conftest.$ac_objext conftest.beam conftest.$ac_ext
2650 rm -f conftest.val
2651
2652   fi
2653   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2654   as_fn_set_status $ac_retval
2655
2656 } # ac_fn_c_compute_int
2657
2658 # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
2659 # ----------------------------------------------------
2660 # Tries to find if the field MEMBER exists in type AGGR, after including
2661 # INCLUDES, setting cache variable VAR accordingly.
2662 ac_fn_c_check_member ()
2663 {
2664   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2665   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2666 $as_echo_n "checking for $2.$3... " >&6; }
2667 if { as_var=$4; eval "test \"\${$as_var+set}\" = set"; }; then :
2668   $as_echo_n "(cached) " >&6
2669 else
2670   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2671 /* end confdefs.h.  */
2672 $5
2673 int
2674 main ()
2675 {
2676 static $2 ac_aggr;
2677 if (ac_aggr.$3)
2678 return 0;
2679   ;
2680   return 0;
2681 }
2682 _ACEOF
2683 if ac_fn_c_try_compile "$LINENO"; then :
2684   eval "$4=yes"
2685 else
2686   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2687 /* end confdefs.h.  */
2688 $5
2689 int
2690 main ()
2691 {
2692 static $2 ac_aggr;
2693 if (sizeof ac_aggr.$3)
2694 return 0;
2695   ;
2696   return 0;
2697 }
2698 _ACEOF
2699 if ac_fn_c_try_compile "$LINENO"; then :
2700   eval "$4=yes"
2701 else
2702   eval "$4=no"
2703 fi
2704 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2705 fi
2706 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2707 fi
2708 eval ac_res=\$$4
2709                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2710 $as_echo "$ac_res" >&6; }
2711   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2712
2713 } # ac_fn_c_check_member
2714
2715 # ac_fn_c_check_decl LINENO SYMBOL VAR
2716 # ------------------------------------
2717 # Tests whether SYMBOL is declared, setting cache variable VAR accordingly.
2718 ac_fn_c_check_decl ()
2719 {
2720   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2721   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $2 is declared" >&5
2722 $as_echo_n "checking whether $2 is declared... " >&6; }
2723 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2724   $as_echo_n "(cached) " >&6
2725 else
2726   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2727 /* end confdefs.h.  */
2728 $4
2729 int
2730 main ()
2731 {
2732 #ifndef $2
2733   (void) $2;
2734 #endif
2735
2736   ;
2737   return 0;
2738 }
2739 _ACEOF
2740 if ac_fn_c_try_compile "$LINENO"; then :
2741   eval "$3=yes"
2742 else
2743   eval "$3=no"
2744 fi
2745 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2746 fi
2747 eval ac_res=\$$3
2748                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2749 $as_echo "$ac_res" >&6; }
2750   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2751
2752 } # ac_fn_c_check_decl
2753
2754 # ac_fn_cxx_try_run LINENO
2755 # ------------------------
2756 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
2757 # that executables *can* be run.
2758 ac_fn_cxx_try_run ()
2759 {
2760   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2761   if { { ac_try="$ac_link"
2762 case "(($ac_try" in
2763   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2764   *) ac_try_echo=$ac_try;;
2765 esac
2766 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2767 $as_echo "$ac_try_echo"; } >&5
2768   (eval "$ac_link") 2>&5
2769   ac_status=$?
2770   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2771   test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
2772   { { case "(($ac_try" in
2773   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2774   *) ac_try_echo=$ac_try;;
2775 esac
2776 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2777 $as_echo "$ac_try_echo"; } >&5
2778   (eval "$ac_try") 2>&5
2779   ac_status=$?
2780   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2781   test $ac_status = 0; }; }; then :
2782   ac_retval=0
2783 else
2784   $as_echo "$as_me: program exited with status $ac_status" >&5
2785        $as_echo "$as_me: failed program was:" >&5
2786 sed 's/^/| /' conftest.$ac_ext >&5
2787
2788        ac_retval=$ac_status
2789 fi
2790   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2791   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2792   as_fn_set_status $ac_retval
2793
2794 } # ac_fn_cxx_try_run
2795 cat >config.log <<_ACEOF
2796 This file contains any messages produced by compilers while
2797 running configure, to aid debugging if configure makes a mistake.
2798
2799 It was created by $as_me, which was
2800 generated by GNU Autoconf 2.65.  Invocation command line was
2801
2802   $ $0 $@
2803
2804 _ACEOF
2805 exec 5>>config.log
2806 {
2807 cat <<_ASUNAME
2808 ## --------- ##
2809 ## Platform. ##
2810 ## --------- ##
2811
2812 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2813 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2814 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2815 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2816 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2817
2818 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2819 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
2820
2821 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
2822 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
2823 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2824 /usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
2825 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
2826 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
2827 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
2828
2829 _ASUNAME
2830
2831 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2832 for as_dir in $PATH
2833 do
2834   IFS=$as_save_IFS
2835   test -z "$as_dir" && as_dir=.
2836     $as_echo "PATH: $as_dir"
2837   done
2838 IFS=$as_save_IFS
2839
2840 } >&5
2841
2842 cat >&5 <<_ACEOF
2843
2844
2845 ## ----------- ##
2846 ## Core tests. ##
2847 ## ----------- ##
2848
2849 _ACEOF
2850
2851
2852 # Keep a trace of the command line.
2853 # Strip out --no-create and --no-recursion so they do not pile up.
2854 # Strip out --silent because we don't want to record it for future runs.
2855 # Also quote any args containing shell meta-characters.
2856 # Make two passes to allow for proper duplicate-argument suppression.
2857 ac_configure_args=
2858 ac_configure_args0=
2859 ac_configure_args1=
2860 ac_must_keep_next=false
2861 for ac_pass in 1 2
2862 do
2863   for ac_arg
2864   do
2865     case $ac_arg in
2866     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2867     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2868     | -silent | --silent | --silen | --sile | --sil)
2869       continue ;;
2870     *\'*)
2871       ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2872     esac
2873     case $ac_pass in
2874     1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2875     2)
2876       as_fn_append ac_configure_args1 " '$ac_arg'"
2877       if test $ac_must_keep_next = true; then
2878         ac_must_keep_next=false # Got value, back to normal.
2879       else
2880         case $ac_arg in
2881           *=* | --config-cache | -C | -disable-* | --disable-* \
2882           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2883           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2884           | -with-* | --with-* | -without-* | --without-* | --x)
2885             case "$ac_configure_args0 " in
2886               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2887             esac
2888             ;;
2889           -* ) ac_must_keep_next=true ;;
2890         esac
2891       fi
2892       as_fn_append ac_configure_args " '$ac_arg'"
2893       ;;
2894     esac
2895   done
2896 done
2897 { ac_configure_args0=; unset ac_configure_args0;}
2898 { ac_configure_args1=; unset ac_configure_args1;}
2899
2900 # When interrupted or exit'd, cleanup temporary files, and complete
2901 # config.log.  We remove comments because anyway the quotes in there
2902 # would cause problems or look ugly.
2903 # WARNING: Use '\'' to represent an apostrophe within the trap.
2904 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2905 trap 'exit_status=$?
2906   # Save into config.log some information that might help in debugging.
2907   {
2908     echo
2909
2910     cat <<\_ASBOX
2911 ## ---------------- ##
2912 ## Cache variables. ##
2913 ## ---------------- ##
2914 _ASBOX
2915     echo
2916     # The following way of writing the cache mishandles newlines in values,
2917 (
2918   for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2919     eval ac_val=\$$ac_var
2920     case $ac_val in #(
2921     *${as_nl}*)
2922       case $ac_var in #(
2923       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2924 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2925       esac
2926       case $ac_var in #(
2927       _ | IFS | as_nl) ;; #(
2928       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2929       *) { eval $ac_var=; unset $ac_var;} ;;
2930       esac ;;
2931     esac
2932   done
2933   (set) 2>&1 |
2934     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2935     *${as_nl}ac_space=\ *)
2936       sed -n \
2937         "s/'\''/'\''\\\\'\'''\''/g;
2938           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2939       ;; #(
2940     *)
2941       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2942       ;;
2943     esac |
2944     sort
2945 )
2946     echo
2947
2948     cat <<\_ASBOX
2949 ## ----------------- ##
2950 ## Output variables. ##
2951 ## ----------------- ##
2952 _ASBOX
2953     echo
2954     for ac_var in $ac_subst_vars
2955     do
2956       eval ac_val=\$$ac_var
2957       case $ac_val in
2958       *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2959       esac
2960       $as_echo "$ac_var='\''$ac_val'\''"
2961     done | sort
2962     echo
2963
2964     if test -n "$ac_subst_files"; then
2965       cat <<\_ASBOX
2966 ## ------------------- ##
2967 ## File substitutions. ##
2968 ## ------------------- ##
2969 _ASBOX
2970       echo
2971       for ac_var in $ac_subst_files
2972       do
2973         eval ac_val=\$$ac_var
2974         case $ac_val in
2975         *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2976         esac
2977         $as_echo "$ac_var='\''$ac_val'\''"
2978       done | sort
2979       echo
2980     fi
2981
2982     if test -s confdefs.h; then
2983       cat <<\_ASBOX
2984 ## ----------- ##
2985 ## confdefs.h. ##
2986 ## ----------- ##
2987 _ASBOX
2988       echo
2989       cat confdefs.h
2990       echo
2991     fi
2992     test "$ac_signal" != 0 &&
2993       $as_echo "$as_me: caught signal $ac_signal"
2994     $as_echo "$as_me: exit $exit_status"
2995   } >&5
2996   rm -f core *.core core.conftest.* &&
2997     rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2998     exit $exit_status
2999 ' 0
3000 for ac_signal in 1 2 13 15; do
3001   trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
3002 done
3003 ac_signal=0
3004
3005 # confdefs.h avoids OS command line length limits that DEFS can exceed.
3006 rm -f -r conftest* confdefs.h
3007
3008 $as_echo "/* confdefs.h */" > confdefs.h
3009
3010 # Predefined preprocessor variables.
3011
3012 cat >>confdefs.h <<_ACEOF
3013 #define PACKAGE_NAME "$PACKAGE_NAME"
3014 _ACEOF
3015
3016 cat >>confdefs.h <<_ACEOF
3017 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
3018 _ACEOF
3019
3020 cat >>confdefs.h <<_ACEOF
3021 #define PACKAGE_VERSION "$PACKAGE_VERSION"
3022 _ACEOF
3023
3024 cat >>confdefs.h <<_ACEOF
3025 #define PACKAGE_STRING "$PACKAGE_STRING"
3026 _ACEOF
3027
3028 cat >>confdefs.h <<_ACEOF
3029 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
3030 _ACEOF
3031
3032 cat >>confdefs.h <<_ACEOF
3033 #define PACKAGE_URL "$PACKAGE_URL"
3034 _ACEOF
3035
3036
3037 # Let the site file select an alternate cache file if it wants to.
3038 # Prefer an explicitly selected file to automatically selected ones.
3039 ac_site_file1=NONE
3040 ac_site_file2=NONE
3041 if test -n "$CONFIG_SITE"; then
3042   ac_site_file1=$CONFIG_SITE
3043 elif test "x$prefix" != xNONE; then
3044   ac_site_file1=$prefix/share/config.site
3045   ac_site_file2=$prefix/etc/config.site
3046 else
3047   ac_site_file1=$ac_default_prefix/share/config.site
3048   ac_site_file2=$ac_default_prefix/etc/config.site
3049 fi
3050 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
3051 do
3052   test "x$ac_site_file" = xNONE && continue
3053   if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
3054     { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
3055 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
3056     sed 's/^/| /' "$ac_site_file" >&5
3057     . "$ac_site_file"
3058   fi
3059 done
3060
3061 if test -r "$cache_file"; then
3062   # Some versions of bash will fail to source /dev/null (special files
3063   # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
3064   if test /dev/null != "$cache_file" && test -f "$cache_file"; then
3065     { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
3066 $as_echo "$as_me: loading cache $cache_file" >&6;}
3067     case $cache_file in
3068       [\\/]* | ?:[\\/]* ) . "$cache_file";;
3069       *)                      . "./$cache_file";;
3070     esac
3071   fi
3072 else
3073   { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
3074 $as_echo "$as_me: creating cache $cache_file" >&6;}
3075   >$cache_file
3076 fi
3077
3078 as_fn_append ac_header_list " stdlib.h"
3079 as_fn_append ac_header_list " unistd.h"
3080 as_fn_append ac_header_list " sys/param.h"
3081 # Check that the precious variables saved in the cache have kept the same
3082 # value.
3083 ac_cache_corrupted=false
3084 for ac_var in $ac_precious_vars; do
3085   eval ac_old_set=\$ac_cv_env_${ac_var}_set
3086   eval ac_new_set=\$ac_env_${ac_var}_set
3087   eval ac_old_val=\$ac_cv_env_${ac_var}_value
3088   eval ac_new_val=\$ac_env_${ac_var}_value
3089   case $ac_old_set,$ac_new_set in
3090     set,)
3091       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
3092 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
3093       ac_cache_corrupted=: ;;
3094     ,set)
3095       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
3096 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
3097       ac_cache_corrupted=: ;;
3098     ,);;
3099     *)
3100       if test "x$ac_old_val" != "x$ac_new_val"; then
3101         # differences in whitespace do not lead to failure.
3102         ac_old_val_w=`echo x $ac_old_val`
3103         ac_new_val_w=`echo x $ac_new_val`
3104         if test "$ac_old_val_w" != "$ac_new_val_w"; then
3105           { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
3106 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
3107           ac_cache_corrupted=:
3108         else
3109           { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
3110 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
3111           eval $ac_var=\$ac_old_val
3112         fi
3113         { $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
3114 $as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
3115         { $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
3116 $as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
3117       fi;;
3118   esac
3119   # Pass precious variables to config.status.
3120   if test "$ac_new_set" = set; then
3121     case $ac_new_val in
3122     *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
3123     *) ac_arg=$ac_var=$ac_new_val ;;
3124     esac
3125     case " $ac_configure_args " in
3126       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
3127       *) as_fn_append ac_configure_args " '$ac_arg'" ;;
3128     esac
3129   fi
3130 done
3131 if $ac_cache_corrupted; then
3132   { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3133 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3134   { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
3135 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
3136   as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
3137 fi
3138 ## -------------------- ##
3139 ## Main body of script. ##
3140 ## -------------------- ##
3141
3142 ac_ext=c
3143 ac_cpp='$CPP $CPPFLAGS'
3144 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3145 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3146 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3147
3148
3149 BUILD_DIR=`pwd`
3150 cd ..
3151 TOP_DIR=`pwd`
3152 cd ${BUILD_DIR}
3153
3154
3155 ac_aux_dir=
3156 for ac_dir in ${BUILD_DIR}/autoconf "$srcdir"/${BUILD_DIR}/autoconf; do
3157   for ac_t in install-sh install.sh shtool; do
3158     if test -f "$ac_dir/$ac_t"; then
3159       ac_aux_dir=$ac_dir
3160       ac_install_sh="$ac_aux_dir/$ac_t -c"
3161       break 2
3162     fi
3163   done
3164 done
3165 if test -z "$ac_aux_dir"; then
3166   as_fn_error "cannot find install-sh, install.sh, or shtool in ${BUILD_DIR}/autoconf \"$srcdir\"/${BUILD_DIR}/autoconf" "$LINENO" 5
3167 fi
3168
3169 # These three variables are undocumented and unsupported,
3170 # and are intended to be withdrawn in a future Autoconf release.
3171 # They can cause serious problems if a builder's source tree is in a directory
3172 # whose full name contains unusual characters.
3173 ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
3174 ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
3175 ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
3176
3177
3178 ac_config_headers="$ac_config_headers src/config.h:autoconf/config.h.in"
3179
3180
3181 WIN32BUILDDIR=${BUILD_DIR}/src/win32
3182 WIN32MAINDIR=${BUILD_DIR}
3183 WIN32TOPDIR=${TOP_DIR}
3184
3185
3186
3187
3188 for ac_prog in true
3189 do
3190   # Extract the first word of "$ac_prog", so it can be a program name with args.
3191 set dummy $ac_prog; ac_word=$2
3192 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3193 $as_echo_n "checking for $ac_word... " >&6; }
3194 if test "${ac_cv_path_TRUEPRG+set}" = set; then :
3195   $as_echo_n "(cached) " >&6
3196 else
3197   case $TRUEPRG in
3198   [\\/]* | ?:[\\/]*)
3199   ac_cv_path_TRUEPRG="$TRUEPRG" # Let the user override the test with a path.
3200   ;;
3201   *)
3202   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3203 for as_dir in $PATH
3204 do
3205   IFS=$as_save_IFS
3206   test -z "$as_dir" && as_dir=.
3207     for ac_exec_ext in '' $ac_executable_extensions; do
3208   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3209     ac_cv_path_TRUEPRG="$as_dir/$ac_word$ac_exec_ext"
3210     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3211     break 2
3212   fi
3213 done
3214   done
3215 IFS=$as_save_IFS
3216
3217   ;;
3218 esac
3219 fi
3220 TRUEPRG=$ac_cv_path_TRUEPRG
3221 if test -n "$TRUEPRG"; then
3222   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TRUEPRG" >&5
3223 $as_echo "$TRUEPRG" >&6; }
3224 else
3225   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3226 $as_echo "no" >&6; }
3227 fi
3228
3229
3230   test -n "$TRUEPRG" && break
3231 done
3232 test -n "$TRUEPRG" || TRUEPRG=":"
3233
3234 for ac_prog in false
3235 do
3236   # Extract the first word of "$ac_prog", so it can be a program name with args.
3237 set dummy $ac_prog; ac_word=$2
3238 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3239 $as_echo_n "checking for $ac_word... " >&6; }
3240 if test "${ac_cv_path_FALSEPRG+set}" = set; then :
3241   $as_echo_n "(cached) " >&6
3242 else
3243   case $FALSEPRG in
3244   [\\/]* | ?:[\\/]*)
3245   ac_cv_path_FALSEPRG="$FALSEPRG" # Let the user override the test with a path.
3246   ;;
3247   *)
3248   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3249 for as_dir in $PATH
3250 do
3251   IFS=$as_save_IFS
3252   test -z "$as_dir" && as_dir=.
3253     for ac_exec_ext in '' $ac_executable_extensions; do
3254   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3255     ac_cv_path_FALSEPRG="$as_dir/$ac_word$ac_exec_ext"
3256     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3257     break 2
3258   fi
3259 done
3260   done
3261 IFS=$as_save_IFS
3262
3263   ;;
3264 esac
3265 fi
3266 FALSEPRG=$ac_cv_path_FALSEPRG
3267 if test -n "$FALSEPRG"; then
3268   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FALSEPRG" >&5
3269 $as_echo "$FALSEPRG" >&6; }
3270 else
3271   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3272 $as_echo "no" >&6; }
3273 fi
3274
3275
3276   test -n "$FALSEPRG" && break
3277 done
3278 test -n "$FALSEPRG" || FALSEPRG=":"
3279
3280
3281
3282 post_host=
3283 if test "x$BACULA" != x; then
3284    post_host=`echo -${BACULA} | tr 'A-Z ' 'a-z-'`
3285 fi
3286 BACULA=${BACULA:-Bacula}
3287 VERSION=`sed -n -e 's/^.*VERSION.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
3288 DATE=`sed -n -e 's/^.* \t*BDATE.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
3289 LSMDATE=`sed -n -e 's/^.*LSMDATE.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
3290
3291 LIBBAC_LT_RELEASE=`sed -n -e 's/^#.*LIBBAC_LT_RELEASE.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
3292 LIBBACCFG_LT_RELEASE=`sed -n -e 's/^#.*LIBBACCFG_LT_RELEASE.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
3293 LIBBACPY_LT_RELEASE=`sed -n -e 's/^#.*LIBBACPY_LT_RELEASE.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
3294
3295 LIBBAC_LT_RELEASE=${LIBBAC_LT_RELEASE:-$VERSION}
3296 LIBBACCFG_LT_RELEASE=${LIBBACCFG_LT_RELEASE:-$VERSION}
3297 LIBBACPY_LT_RELEASE=${LIBBACPY_LT_RELEASE:-$VERSION}
3298
3299
3300 LIBBACSQL_LT_RELEASE=`sed -n -e 's/^#.*LIBBACSQL_LT_RELEASE.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
3301
3302 LIBBACSQL_LT_RELEASE=${LIBBACSQL_LT_RELEASE:-$VERSION}
3303
3304
3305 LIBBACFIND_LT_RELEASE=`sed -n -e 's/^#.*LIBBACFIND_LT_RELEASE.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
3306
3307 LIBBACFIND_LT_RELEASE=${LIBBACFIND_LT_RELEASE:-$VERSION}
3308
3309
3310 echo "configuring for ${BACULA} $VERSION ($DATE)"
3311
3312
3313
3314 ac_ext=c
3315 ac_cpp='$CPP $CPPFLAGS'
3316 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3317 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3318 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3319 if test -n "$ac_tool_prefix"; then
3320   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3321 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3322 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3323 $as_echo_n "checking for $ac_word... " >&6; }
3324 if test "${ac_cv_prog_CC+set}" = set; then :
3325   $as_echo_n "(cached) " >&6
3326 else
3327   if test -n "$CC"; then
3328   ac_cv_prog_CC="$CC" # Let the user override the test.
3329 else
3330 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3331 for as_dir in $PATH
3332 do
3333   IFS=$as_save_IFS
3334   test -z "$as_dir" && as_dir=.
3335     for ac_exec_ext in '' $ac_executable_extensions; do
3336   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3337     ac_cv_prog_CC="${ac_tool_prefix}gcc"
3338     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3339     break 2
3340   fi
3341 done
3342   done
3343 IFS=$as_save_IFS
3344
3345 fi
3346 fi
3347 CC=$ac_cv_prog_CC
3348 if test -n "$CC"; then
3349   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3350 $as_echo "$CC" >&6; }
3351 else
3352   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3353 $as_echo "no" >&6; }
3354 fi
3355
3356
3357 fi
3358 if test -z "$ac_cv_prog_CC"; then
3359   ac_ct_CC=$CC
3360   # Extract the first word of "gcc", so it can be a program name with args.
3361 set dummy gcc; ac_word=$2
3362 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3363 $as_echo_n "checking for $ac_word... " >&6; }
3364 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3365   $as_echo_n "(cached) " >&6
3366 else
3367   if test -n "$ac_ct_CC"; then
3368   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3369 else
3370 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3371 for as_dir in $PATH
3372 do
3373   IFS=$as_save_IFS
3374   test -z "$as_dir" && as_dir=.
3375     for ac_exec_ext in '' $ac_executable_extensions; do
3376   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3377     ac_cv_prog_ac_ct_CC="gcc"
3378     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3379     break 2
3380   fi
3381 done
3382   done
3383 IFS=$as_save_IFS
3384
3385 fi
3386 fi
3387 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3388 if test -n "$ac_ct_CC"; then
3389   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3390 $as_echo "$ac_ct_CC" >&6; }
3391 else
3392   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3393 $as_echo "no" >&6; }
3394 fi
3395
3396   if test "x$ac_ct_CC" = x; then
3397     CC=""
3398   else
3399     case $cross_compiling:$ac_tool_warned in
3400 yes:)
3401 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3402 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3403 ac_tool_warned=yes ;;
3404 esac
3405     CC=$ac_ct_CC
3406   fi
3407 else
3408   CC="$ac_cv_prog_CC"
3409 fi
3410
3411 if test -z "$CC"; then
3412           if test -n "$ac_tool_prefix"; then
3413     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3414 set dummy ${ac_tool_prefix}cc; ac_word=$2
3415 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3416 $as_echo_n "checking for $ac_word... " >&6; }
3417 if test "${ac_cv_prog_CC+set}" = set; then :
3418   $as_echo_n "(cached) " >&6
3419 else
3420   if test -n "$CC"; then
3421   ac_cv_prog_CC="$CC" # Let the user override the test.
3422 else
3423 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3424 for as_dir in $PATH
3425 do
3426   IFS=$as_save_IFS
3427   test -z "$as_dir" && as_dir=.
3428     for ac_exec_ext in '' $ac_executable_extensions; do
3429   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3430     ac_cv_prog_CC="${ac_tool_prefix}cc"
3431     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3432     break 2
3433   fi
3434 done
3435   done
3436 IFS=$as_save_IFS
3437
3438 fi
3439 fi
3440 CC=$ac_cv_prog_CC
3441 if test -n "$CC"; then
3442   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3443 $as_echo "$CC" >&6; }
3444 else
3445   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3446 $as_echo "no" >&6; }
3447 fi
3448
3449
3450   fi
3451 fi
3452 if test -z "$CC"; then
3453   # Extract the first word of "cc", so it can be a program name with args.
3454 set dummy cc; ac_word=$2
3455 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3456 $as_echo_n "checking for $ac_word... " >&6; }
3457 if test "${ac_cv_prog_CC+set}" = set; then :
3458   $as_echo_n "(cached) " >&6
3459 else
3460   if test -n "$CC"; then
3461   ac_cv_prog_CC="$CC" # Let the user override the test.
3462 else
3463   ac_prog_rejected=no
3464 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3465 for as_dir in $PATH
3466 do
3467   IFS=$as_save_IFS
3468   test -z "$as_dir" && as_dir=.
3469     for ac_exec_ext in '' $ac_executable_extensions; do
3470   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3471     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3472        ac_prog_rejected=yes
3473        continue
3474      fi
3475     ac_cv_prog_CC="cc"
3476     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3477     break 2
3478   fi
3479 done
3480   done
3481 IFS=$as_save_IFS
3482
3483 if test $ac_prog_rejected = yes; then
3484   # We found a bogon in the path, so make sure we never use it.
3485   set dummy $ac_cv_prog_CC
3486   shift
3487   if test $# != 0; then
3488     # We chose a different compiler from the bogus one.
3489     # However, it has the same basename, so the bogon will be chosen
3490     # first if we set CC to just the basename; use the full file name.
3491     shift
3492     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3493   fi
3494 fi
3495 fi
3496 fi
3497 CC=$ac_cv_prog_CC
3498 if test -n "$CC"; then
3499   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3500 $as_echo "$CC" >&6; }
3501 else
3502   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3503 $as_echo "no" >&6; }
3504 fi
3505
3506
3507 fi
3508 if test -z "$CC"; then
3509   if test -n "$ac_tool_prefix"; then
3510   for ac_prog in cl.exe
3511   do
3512     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3513 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3514 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3515 $as_echo_n "checking for $ac_word... " >&6; }
3516 if test "${ac_cv_prog_CC+set}" = set; then :
3517   $as_echo_n "(cached) " >&6
3518 else
3519   if test -n "$CC"; then
3520   ac_cv_prog_CC="$CC" # Let the user override the test.
3521 else
3522 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3523 for as_dir in $PATH
3524 do
3525   IFS=$as_save_IFS
3526   test -z "$as_dir" && as_dir=.
3527     for ac_exec_ext in '' $ac_executable_extensions; do
3528   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3529     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3530     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3531     break 2
3532   fi
3533 done
3534   done
3535 IFS=$as_save_IFS
3536
3537 fi
3538 fi
3539 CC=$ac_cv_prog_CC
3540 if test -n "$CC"; then
3541   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3542 $as_echo "$CC" >&6; }
3543 else
3544   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3545 $as_echo "no" >&6; }
3546 fi
3547
3548
3549     test -n "$CC" && break
3550   done
3551 fi
3552 if test -z "$CC"; then
3553   ac_ct_CC=$CC
3554   for ac_prog in cl.exe
3555 do
3556   # Extract the first word of "$ac_prog", so it can be a program name with args.
3557 set dummy $ac_prog; ac_word=$2
3558 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3559 $as_echo_n "checking for $ac_word... " >&6; }
3560 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3561   $as_echo_n "(cached) " >&6
3562 else
3563   if test -n "$ac_ct_CC"; then
3564   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3565 else
3566 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3567 for as_dir in $PATH
3568 do
3569   IFS=$as_save_IFS
3570   test -z "$as_dir" && as_dir=.
3571     for ac_exec_ext in '' $ac_executable_extensions; do
3572   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3573     ac_cv_prog_ac_ct_CC="$ac_prog"
3574     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3575     break 2
3576   fi
3577 done
3578   done
3579 IFS=$as_save_IFS
3580
3581 fi
3582 fi
3583 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3584 if test -n "$ac_ct_CC"; then
3585   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3586 $as_echo "$ac_ct_CC" >&6; }
3587 else
3588   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3589 $as_echo "no" >&6; }
3590 fi
3591
3592
3593   test -n "$ac_ct_CC" && break
3594 done
3595
3596   if test "x$ac_ct_CC" = x; then
3597     CC=""
3598   else
3599     case $cross_compiling:$ac_tool_warned in
3600 yes:)
3601 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3602 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3603 ac_tool_warned=yes ;;
3604 esac
3605     CC=$ac_ct_CC
3606   fi
3607 fi
3608
3609 fi
3610
3611
3612 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3613 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3614 as_fn_error "no acceptable C compiler found in \$PATH
3615 See \`config.log' for more details." "$LINENO" 5; }
3616
3617 # Provide some information about the compiler.
3618 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3619 set X $ac_compile
3620 ac_compiler=$2
3621 for ac_option in --version -v -V -qversion; do
3622   { { ac_try="$ac_compiler $ac_option >&5"
3623 case "(($ac_try" in
3624   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3625   *) ac_try_echo=$ac_try;;
3626 esac
3627 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3628 $as_echo "$ac_try_echo"; } >&5
3629   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3630   ac_status=$?
3631   if test -s conftest.err; then
3632     sed '10a\
3633 ... rest of stderr output deleted ...
3634          10q' conftest.err >conftest.er1
3635     cat conftest.er1 >&5
3636   fi
3637   rm -f conftest.er1 conftest.err
3638   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3639   test $ac_status = 0; }
3640 done
3641
3642 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3643 /* end confdefs.h.  */
3644
3645 int
3646 main ()
3647 {
3648
3649   ;
3650   return 0;
3651 }
3652 _ACEOF
3653 ac_clean_files_save=$ac_clean_files
3654 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3655 # Try to create an executable without -o first, disregard a.out.
3656 # It will help us diagnose broken compilers, and finding out an intuition
3657 # of exeext.
3658 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3659 $as_echo_n "checking whether the C compiler works... " >&6; }
3660 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3661
3662 # The possible output files:
3663 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3664
3665 ac_rmfiles=
3666 for ac_file in $ac_files
3667 do
3668   case $ac_file in
3669     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3670     * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3671   esac
3672 done
3673 rm -f $ac_rmfiles
3674
3675 if { { ac_try="$ac_link_default"
3676 case "(($ac_try" in
3677   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3678   *) ac_try_echo=$ac_try;;
3679 esac
3680 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3681 $as_echo "$ac_try_echo"; } >&5
3682   (eval "$ac_link_default") 2>&5
3683   ac_status=$?
3684   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3685   test $ac_status = 0; }; then :
3686   # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3687 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3688 # in a Makefile.  We should not override ac_cv_exeext if it was cached,
3689 # so that the user can short-circuit this test for compilers unknown to
3690 # Autoconf.
3691 for ac_file in $ac_files ''
3692 do
3693   test -f "$ac_file" || continue
3694   case $ac_file in
3695     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3696         ;;
3697     [ab].out )
3698         # We found the default executable, but exeext='' is most
3699         # certainly right.
3700         break;;
3701     *.* )
3702         if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3703         then :; else
3704            ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3705         fi
3706         # We set ac_cv_exeext here because the later test for it is not
3707         # safe: cross compilers may not add the suffix if given an `-o'
3708         # argument, so we may need to know it at that point already.
3709         # Even if this section looks crufty: it has the advantage of
3710         # actually working.
3711         break;;
3712     * )
3713         break;;
3714   esac
3715 done
3716 test "$ac_cv_exeext" = no && ac_cv_exeext=
3717
3718 else
3719   ac_file=''
3720 fi
3721 if test -z "$ac_file"; then :
3722   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3723 $as_echo "no" >&6; }
3724 $as_echo "$as_me: failed program was:" >&5
3725 sed 's/^/| /' conftest.$ac_ext >&5
3726
3727 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3728 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3729 { as_fn_set_status 77
3730 as_fn_error "C compiler cannot create executables
3731 See \`config.log' for more details." "$LINENO" 5; }; }
3732 else
3733   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3734 $as_echo "yes" >&6; }
3735 fi
3736 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3737 $as_echo_n "checking for C compiler default output file name... " >&6; }
3738 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3739 $as_echo "$ac_file" >&6; }
3740 ac_exeext=$ac_cv_exeext
3741
3742 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3743 ac_clean_files=$ac_clean_files_save
3744 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3745 $as_echo_n "checking for suffix of executables... " >&6; }
3746 if { { ac_try="$ac_link"
3747 case "(($ac_try" in
3748   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3749   *) ac_try_echo=$ac_try;;
3750 esac
3751 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3752 $as_echo "$ac_try_echo"; } >&5
3753   (eval "$ac_link") 2>&5
3754   ac_status=$?
3755   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3756   test $ac_status = 0; }; then :
3757   # If both `conftest.exe' and `conftest' are `present' (well, observable)
3758 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
3759 # work properly (i.e., refer to `conftest.exe'), while it won't with
3760 # `rm'.
3761 for ac_file in conftest.exe conftest conftest.*; do
3762   test -f "$ac_file" || continue
3763   case $ac_file in
3764     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3765     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3766           break;;
3767     * ) break;;
3768   esac
3769 done
3770 else
3771   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3772 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3773 as_fn_error "cannot compute suffix of executables: cannot compile and link
3774 See \`config.log' for more details." "$LINENO" 5; }
3775 fi
3776 rm -f conftest conftest$ac_cv_exeext
3777 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3778 $as_echo "$ac_cv_exeext" >&6; }
3779
3780 rm -f conftest.$ac_ext
3781 EXEEXT=$ac_cv_exeext
3782 ac_exeext=$EXEEXT
3783 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3784 /* end confdefs.h.  */
3785 #include <stdio.h>
3786 int
3787 main ()
3788 {
3789 FILE *f = fopen ("conftest.out", "w");
3790  return ferror (f) || fclose (f) != 0;
3791
3792   ;
3793   return 0;
3794 }
3795 _ACEOF
3796 ac_clean_files="$ac_clean_files conftest.out"
3797 # Check that the compiler produces executables we can run.  If not, either
3798 # the compiler is broken, or we cross compile.
3799 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3800 $as_echo_n "checking whether we are cross compiling... " >&6; }
3801 if test "$cross_compiling" != yes; then
3802   { { ac_try="$ac_link"
3803 case "(($ac_try" in
3804   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3805   *) ac_try_echo=$ac_try;;
3806 esac
3807 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3808 $as_echo "$ac_try_echo"; } >&5
3809   (eval "$ac_link") 2>&5
3810   ac_status=$?
3811   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3812   test $ac_status = 0; }
3813   if { ac_try='./conftest$ac_cv_exeext'
3814   { { case "(($ac_try" in
3815   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3816   *) ac_try_echo=$ac_try;;
3817 esac
3818 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3819 $as_echo "$ac_try_echo"; } >&5
3820   (eval "$ac_try") 2>&5
3821   ac_status=$?
3822   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3823   test $ac_status = 0; }; }; then
3824     cross_compiling=no
3825   else
3826     if test "$cross_compiling" = maybe; then
3827         cross_compiling=yes
3828     else
3829         { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3830 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3831 as_fn_error "cannot run C compiled programs.
3832 If you meant to cross compile, use \`--host'.
3833 See \`config.log' for more details." "$LINENO" 5; }
3834     fi
3835   fi
3836 fi
3837 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3838 $as_echo "$cross_compiling" >&6; }
3839
3840 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3841 ac_clean_files=$ac_clean_files_save
3842 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3843 $as_echo_n "checking for suffix of object files... " >&6; }
3844 if test "${ac_cv_objext+set}" = set; then :
3845   $as_echo_n "(cached) " >&6
3846 else
3847   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3848 /* end confdefs.h.  */
3849
3850 int
3851 main ()
3852 {
3853
3854   ;
3855   return 0;
3856 }
3857 _ACEOF
3858 rm -f conftest.o conftest.obj
3859 if { { ac_try="$ac_compile"
3860 case "(($ac_try" in
3861   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3862   *) ac_try_echo=$ac_try;;
3863 esac
3864 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3865 $as_echo "$ac_try_echo"; } >&5
3866   (eval "$ac_compile") 2>&5
3867   ac_status=$?
3868   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3869   test $ac_status = 0; }; then :
3870   for ac_file in conftest.o conftest.obj conftest.*; do
3871   test -f "$ac_file" || continue;
3872   case $ac_file in
3873     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3874     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3875        break;;
3876   esac
3877 done
3878 else
3879   $as_echo "$as_me: failed program was:" >&5
3880 sed 's/^/| /' conftest.$ac_ext >&5
3881
3882 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3883 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3884 as_fn_error "cannot compute suffix of object files: cannot compile
3885 See \`config.log' for more details." "$LINENO" 5; }
3886 fi
3887 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3888 fi
3889 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3890 $as_echo "$ac_cv_objext" >&6; }
3891 OBJEXT=$ac_cv_objext
3892 ac_objext=$OBJEXT
3893 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3894 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3895 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
3896   $as_echo_n "(cached) " >&6
3897 else
3898   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3899 /* end confdefs.h.  */
3900
3901 int
3902 main ()
3903 {
3904 #ifndef __GNUC__
3905        choke me
3906 #endif
3907
3908   ;
3909   return 0;
3910 }
3911 _ACEOF
3912 if ac_fn_c_try_compile "$LINENO"; then :
3913   ac_compiler_gnu=yes
3914 else
3915   ac_compiler_gnu=no
3916 fi
3917 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3918 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3919
3920 fi
3921 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3922 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3923 if test $ac_compiler_gnu = yes; then
3924   GCC=yes
3925 else
3926   GCC=
3927 fi
3928 ac_test_CFLAGS=${CFLAGS+set}
3929 ac_save_CFLAGS=$CFLAGS
3930 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3931 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3932 if test "${ac_cv_prog_cc_g+set}" = set; then :
3933   $as_echo_n "(cached) " >&6
3934 else
3935   ac_save_c_werror_flag=$ac_c_werror_flag
3936    ac_c_werror_flag=yes
3937    ac_cv_prog_cc_g=no
3938    CFLAGS="-g"
3939    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3940 /* end confdefs.h.  */
3941
3942 int
3943 main ()
3944 {
3945
3946   ;
3947   return 0;
3948 }
3949 _ACEOF
3950 if ac_fn_c_try_compile "$LINENO"; then :
3951   ac_cv_prog_cc_g=yes
3952 else
3953   CFLAGS=""
3954       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3955 /* end confdefs.h.  */
3956
3957 int
3958 main ()
3959 {
3960
3961   ;
3962   return 0;
3963 }
3964 _ACEOF
3965 if ac_fn_c_try_compile "$LINENO"; then :
3966
3967 else
3968   ac_c_werror_flag=$ac_save_c_werror_flag
3969          CFLAGS="-g"
3970          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3971 /* end confdefs.h.  */
3972
3973 int
3974 main ()
3975 {
3976
3977   ;
3978   return 0;
3979 }
3980 _ACEOF
3981 if ac_fn_c_try_compile "$LINENO"; then :
3982   ac_cv_prog_cc_g=yes
3983 fi
3984 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3985 fi
3986 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3987 fi
3988 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3989    ac_c_werror_flag=$ac_save_c_werror_flag
3990 fi
3991 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3992 $as_echo "$ac_cv_prog_cc_g" >&6; }
3993 if test "$ac_test_CFLAGS" = set; then
3994   CFLAGS=$ac_save_CFLAGS
3995 elif test $ac_cv_prog_cc_g = yes; then
3996   if test "$GCC" = yes; then
3997     CFLAGS="-g -O2"
3998   else
3999     CFLAGS="-g"
4000   fi
4001 else
4002   if test "$GCC" = yes; then
4003     CFLAGS="-O2"
4004   else
4005     CFLAGS=
4006   fi
4007 fi
4008 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4009 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4010 if test "${ac_cv_prog_cc_c89+set}" = set; then :
4011   $as_echo_n "(cached) " >&6
4012 else
4013   ac_cv_prog_cc_c89=no
4014 ac_save_CC=$CC
4015 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4016 /* end confdefs.h.  */
4017 #include <stdarg.h>
4018 #include <stdio.h>
4019 #include <sys/types.h>
4020 #include <sys/stat.h>
4021 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
4022 struct buf { int x; };
4023 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4024 static char *e (p, i)
4025      char **p;
4026      int i;
4027 {
4028   return p[i];
4029 }
4030 static char *f (char * (*g) (char **, int), char **p, ...)
4031 {
4032   char *s;
4033   va_list v;
4034   va_start (v,p);
4035   s = g (p, va_arg (v,int));
4036   va_end (v);
4037   return s;
4038 }
4039
4040 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
4041    function prototypes and stuff, but not '\xHH' hex character constants.
4042    These don't provoke an error unfortunately, instead are silently treated
4043    as 'x'.  The following induces an error, until -std is added to get
4044    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
4045    array size at least.  It's necessary to write '\x00'==0 to get something
4046    that's true only with -std.  */
4047 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4048
4049 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4050    inside strings and character constants.  */
4051 #define FOO(x) 'x'
4052 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4053
4054 int test (int i, double x);
4055 struct s1 {int (*f) (int a);};
4056 struct s2 {int (*f) (double a);};
4057 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4058 int argc;
4059 char **argv;
4060 int
4061 main ()
4062 {
4063 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
4064   ;
4065   return 0;
4066 }
4067 _ACEOF
4068 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4069         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4070 do
4071   CC="$ac_save_CC $ac_arg"
4072   if ac_fn_c_try_compile "$LINENO"; then :
4073   ac_cv_prog_cc_c89=$ac_arg
4074 fi
4075 rm -f core conftest.err conftest.$ac_objext
4076   test "x$ac_cv_prog_cc_c89" != "xno" && break
4077 done
4078 rm -f conftest.$ac_ext
4079 CC=$ac_save_CC
4080
4081 fi
4082 # AC_CACHE_VAL
4083 case "x$ac_cv_prog_cc_c89" in
4084   x)
4085     { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4086 $as_echo "none needed" >&6; } ;;
4087   xno)
4088     { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4089 $as_echo "unsupported" >&6; } ;;
4090   *)
4091     CC="$CC $ac_cv_prog_cc_c89"
4092     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4093 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4094 esac
4095 if test "x$ac_cv_prog_cc_c89" != xno; then :
4096
4097 fi
4098
4099 ac_ext=c
4100 ac_cpp='$CPP $CPPFLAGS'
4101 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4102 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4103 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4104
4105 ac_ext=cpp
4106 ac_cpp='$CXXCPP $CPPFLAGS'
4107 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4108 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4109 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4110 if test -z "$CXX"; then
4111   if test -n "$CCC"; then
4112     CXX=$CCC
4113   else
4114     if test -n "$ac_tool_prefix"; then
4115   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4116   do
4117     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4118 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4119 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4120 $as_echo_n "checking for $ac_word... " >&6; }
4121 if test "${ac_cv_prog_CXX+set}" = set; then :
4122   $as_echo_n "(cached) " >&6
4123 else
4124   if test -n "$CXX"; then
4125   ac_cv_prog_CXX="$CXX" # Let the user override the test.
4126 else
4127 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4128 for as_dir in $PATH
4129 do
4130   IFS=$as_save_IFS
4131   test -z "$as_dir" && as_dir=.
4132     for ac_exec_ext in '' $ac_executable_extensions; do
4133   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4134     ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
4135     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4136     break 2
4137   fi
4138 done
4139   done
4140 IFS=$as_save_IFS
4141
4142 fi
4143 fi
4144 CXX=$ac_cv_prog_CXX
4145 if test -n "$CXX"; then
4146   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
4147 $as_echo "$CXX" >&6; }
4148 else
4149   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4150 $as_echo "no" >&6; }
4151 fi
4152
4153
4154     test -n "$CXX" && break
4155   done
4156 fi
4157 if test -z "$CXX"; then
4158   ac_ct_CXX=$CXX
4159   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4160 do
4161   # Extract the first word of "$ac_prog", so it can be a program name with args.
4162 set dummy $ac_prog; ac_word=$2
4163 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4164 $as_echo_n "checking for $ac_word... " >&6; }
4165 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then :
4166   $as_echo_n "(cached) " >&6
4167 else
4168   if test -n "$ac_ct_CXX"; then
4169   ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
4170 else
4171 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4172 for as_dir in $PATH
4173 do
4174   IFS=$as_save_IFS
4175   test -z "$as_dir" && as_dir=.
4176     for ac_exec_ext in '' $ac_executable_extensions; do
4177   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4178     ac_cv_prog_ac_ct_CXX="$ac_prog"
4179     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4180     break 2
4181   fi
4182 done
4183   done
4184 IFS=$as_save_IFS
4185
4186 fi
4187 fi
4188 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
4189 if test -n "$ac_ct_CXX"; then
4190   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
4191 $as_echo "$ac_ct_CXX" >&6; }
4192 else
4193   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4194 $as_echo "no" >&6; }
4195 fi
4196
4197
4198   test -n "$ac_ct_CXX" && break
4199 done
4200
4201   if test "x$ac_ct_CXX" = x; then
4202     CXX="g++"
4203   else
4204     case $cross_compiling:$ac_tool_warned in
4205 yes:)
4206 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4207 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4208 ac_tool_warned=yes ;;
4209 esac
4210     CXX=$ac_ct_CXX
4211   fi
4212 fi
4213
4214   fi
4215 fi
4216 # Provide some information about the compiler.
4217 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
4218 set X $ac_compile
4219 ac_compiler=$2
4220 for ac_option in --version -v -V -qversion; do
4221   { { ac_try="$ac_compiler $ac_option >&5"
4222 case "(($ac_try" in
4223   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4224   *) ac_try_echo=$ac_try;;
4225 esac
4226 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4227 $as_echo "$ac_try_echo"; } >&5
4228   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4229   ac_status=$?
4230   if test -s conftest.err; then
4231     sed '10a\
4232 ... rest of stderr output deleted ...
4233          10q' conftest.err >conftest.er1
4234     cat conftest.er1 >&5
4235   fi
4236   rm -f conftest.er1 conftest.err
4237   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4238   test $ac_status = 0; }
4239 done
4240
4241 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
4242 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
4243 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then :
4244   $as_echo_n "(cached) " >&6
4245 else
4246   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4247 /* end confdefs.h.  */
4248
4249 int
4250 main ()
4251 {
4252 #ifndef __GNUC__
4253        choke me
4254 #endif
4255
4256   ;
4257   return 0;
4258 }
4259 _ACEOF
4260 if ac_fn_cxx_try_compile "$LINENO"; then :
4261   ac_compiler_gnu=yes
4262 else
4263   ac_compiler_gnu=no
4264 fi
4265 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4266 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
4267
4268 fi
4269 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
4270 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
4271 if test $ac_compiler_gnu = yes; then
4272   GXX=yes
4273 else
4274   GXX=
4275 fi
4276 ac_test_CXXFLAGS=${CXXFLAGS+set}
4277 ac_save_CXXFLAGS=$CXXFLAGS
4278 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
4279 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
4280 if test "${ac_cv_prog_cxx_g+set}" = set; then :
4281   $as_echo_n "(cached) " >&6
4282 else
4283   ac_save_cxx_werror_flag=$ac_cxx_werror_flag
4284    ac_cxx_werror_flag=yes
4285    ac_cv_prog_cxx_g=no
4286    CXXFLAGS="-g"
4287    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4288 /* end confdefs.h.  */
4289
4290 int
4291 main ()
4292 {
4293
4294   ;
4295   return 0;
4296 }
4297 _ACEOF
4298 if ac_fn_cxx_try_compile "$LINENO"; then :
4299   ac_cv_prog_cxx_g=yes
4300 else
4301   CXXFLAGS=""
4302       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4303 /* end confdefs.h.  */
4304
4305 int
4306 main ()
4307 {
4308
4309   ;
4310   return 0;
4311 }
4312 _ACEOF
4313 if ac_fn_cxx_try_compile "$LINENO"; then :
4314
4315 else
4316   ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4317          CXXFLAGS="-g"
4318          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4319 /* end confdefs.h.  */
4320
4321 int
4322 main ()
4323 {
4324
4325   ;
4326   return 0;
4327 }
4328 _ACEOF
4329 if ac_fn_cxx_try_compile "$LINENO"; then :
4330   ac_cv_prog_cxx_g=yes
4331 fi
4332 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4333 fi
4334 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4335 fi
4336 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4337    ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4338 fi
4339 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
4340 $as_echo "$ac_cv_prog_cxx_g" >&6; }
4341 if test "$ac_test_CXXFLAGS" = set; then
4342   CXXFLAGS=$ac_save_CXXFLAGS
4343 elif test $ac_cv_prog_cxx_g = yes; then
4344   if test "$GXX" = yes; then
4345     CXXFLAGS="-g -O2"
4346   else
4347     CXXFLAGS="-g"
4348   fi
4349 else
4350   if test "$GXX" = yes; then
4351     CXXFLAGS="-O2"
4352   else
4353     CXXFLAGS=
4354   fi
4355 fi
4356 ac_ext=c
4357 ac_cpp='$CPP $CPPFLAGS'
4358 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4359 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4360 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4361
4362 if test "x$CC" != xcc; then
4363   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC and cc understand -c and -o together" >&5
4364 $as_echo_n "checking whether $CC and cc understand -c and -o together... " >&6; }
4365 else
4366   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether cc understands -c and -o together" >&5
4367 $as_echo_n "checking whether cc understands -c and -o together... " >&6; }
4368 fi
4369 set dummy $CC; ac_cc=`$as_echo "$2" |
4370                       sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
4371 if { as_var=ac_cv_prog_cc_${ac_cc}_c_o; eval "test \"\${$as_var+set}\" = set"; }; then :
4372   $as_echo_n "(cached) " >&6
4373 else
4374   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4375 /* end confdefs.h.  */
4376
4377 int
4378 main ()
4379 {
4380
4381   ;
4382   return 0;
4383 }
4384 _ACEOF
4385 # Make sure it works both with $CC and with simple cc.
4386 # We do the test twice because some compilers refuse to overwrite an
4387 # existing .o file with -o, though they will create one.
4388 ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
4389 rm -f conftest2.*
4390 if { { case "(($ac_try" in
4391   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4392   *) ac_try_echo=$ac_try;;
4393 esac
4394 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4395 $as_echo "$ac_try_echo"; } >&5
4396   (eval "$ac_try") 2>&5
4397   ac_status=$?
4398   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4399   test $ac_status = 0; } &&
4400    test -f conftest2.$ac_objext && { { case "(($ac_try" in
4401   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4402   *) ac_try_echo=$ac_try;;
4403 esac
4404 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4405 $as_echo "$ac_try_echo"; } >&5
4406   (eval "$ac_try") 2>&5
4407   ac_status=$?
4408   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4409   test $ac_status = 0; };
4410 then
4411   eval ac_cv_prog_cc_${ac_cc}_c_o=yes
4412   if test "x$CC" != xcc; then
4413     # Test first that cc exists at all.
4414     if { ac_try='cc -c conftest.$ac_ext >&5'
4415   { { 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; }; }; then
4425       ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
4426       rm -f conftest2.*
4427       if { { case "(($ac_try" in
4428   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4429   *) ac_try_echo=$ac_try;;
4430 esac
4431 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4432 $as_echo "$ac_try_echo"; } >&5
4433   (eval "$ac_try") 2>&5
4434   ac_status=$?
4435   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4436   test $ac_status = 0; } &&
4437          test -f conftest2.$ac_objext && { { case "(($ac_try" in
4438   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4439   *) ac_try_echo=$ac_try;;
4440 esac
4441 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4442 $as_echo "$ac_try_echo"; } >&5
4443   (eval "$ac_try") 2>&5
4444   ac_status=$?
4445   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4446   test $ac_status = 0; };
4447       then
4448         # cc works too.
4449         :
4450       else
4451         # cc exists but doesn't like -o.
4452         eval ac_cv_prog_cc_${ac_cc}_c_o=no
4453       fi
4454     fi
4455   fi
4456 else
4457   eval ac_cv_prog_cc_${ac_cc}_c_o=no
4458 fi
4459 rm -f core conftest*
4460
4461 fi
4462 if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then
4463   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4464 $as_echo "yes" >&6; }
4465 else
4466   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4467 $as_echo "no" >&6; }
4468
4469 $as_echo "#define NO_MINUS_C_MINUS_O 1" >>confdefs.h
4470
4471 fi
4472
4473 ac_ext=c
4474 ac_cpp='$CPP $CPPFLAGS'
4475 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4476 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4477 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4478 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4479 $as_echo_n "checking how to run the C preprocessor... " >&6; }
4480 # On Suns, sometimes $CPP names a directory.
4481 if test -n "$CPP" && test -d "$CPP"; then
4482   CPP=
4483 fi
4484 if test -z "$CPP"; then
4485   if test "${ac_cv_prog_CPP+set}" = set; then :
4486   $as_echo_n "(cached) " >&6
4487 else
4488       # Double quotes because CPP needs to be expanded
4489     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4490     do
4491       ac_preproc_ok=false
4492 for ac_c_preproc_warn_flag in '' yes
4493 do
4494   # Use a header file that comes with gcc, so configuring glibc
4495   # with a fresh cross-compiler works.
4496   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4497   # <limits.h> exists even on freestanding compilers.
4498   # On the NeXT, cc -E runs the code through the compiler's parser,
4499   # not just through cpp. "Syntax error" is here to catch this case.
4500   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4501 /* end confdefs.h.  */
4502 #ifdef __STDC__
4503 # include <limits.h>
4504 #else
4505 # include <assert.h>
4506 #endif
4507                      Syntax error
4508 _ACEOF
4509 if ac_fn_c_try_cpp "$LINENO"; then :
4510
4511 else
4512   # Broken: fails on valid input.
4513 continue
4514 fi
4515 rm -f conftest.err conftest.$ac_ext
4516
4517   # OK, works on sane cases.  Now check whether nonexistent headers
4518   # can be detected and how.
4519   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4520 /* end confdefs.h.  */
4521 #include <ac_nonexistent.h>
4522 _ACEOF
4523 if ac_fn_c_try_cpp "$LINENO"; then :
4524   # Broken: success on invalid input.
4525 continue
4526 else
4527   # Passes both tests.
4528 ac_preproc_ok=:
4529 break
4530 fi
4531 rm -f conftest.err conftest.$ac_ext
4532
4533 done
4534 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4535 rm -f conftest.err conftest.$ac_ext
4536 if $ac_preproc_ok; then :
4537   break
4538 fi
4539
4540     done
4541     ac_cv_prog_CPP=$CPP
4542
4543 fi
4544   CPP=$ac_cv_prog_CPP
4545 else
4546   ac_cv_prog_CPP=$CPP
4547 fi
4548 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4549 $as_echo "$CPP" >&6; }
4550 ac_preproc_ok=false
4551 for ac_c_preproc_warn_flag in '' yes
4552 do
4553   # Use a header file that comes with gcc, so configuring glibc
4554   # with a fresh cross-compiler works.
4555   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4556   # <limits.h> exists even on freestanding compilers.
4557   # On the NeXT, cc -E runs the code through the compiler's parser,
4558   # not just through cpp. "Syntax error" is here to catch this case.
4559   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4560 /* end confdefs.h.  */
4561 #ifdef __STDC__
4562 # include <limits.h>
4563 #else
4564 # include <assert.h>
4565 #endif
4566                      Syntax error
4567 _ACEOF
4568 if ac_fn_c_try_cpp "$LINENO"; then :
4569
4570 else
4571   # Broken: fails on valid input.
4572 continue
4573 fi
4574 rm -f conftest.err conftest.$ac_ext
4575
4576   # OK, works on sane cases.  Now check whether nonexistent headers
4577   # can be detected and how.
4578   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4579 /* end confdefs.h.  */
4580 #include <ac_nonexistent.h>
4581 _ACEOF
4582 if ac_fn_c_try_cpp "$LINENO"; then :
4583   # Broken: success on invalid input.
4584 continue
4585 else
4586   # Passes both tests.
4587 ac_preproc_ok=:
4588 break
4589 fi
4590 rm -f conftest.err conftest.$ac_ext
4591
4592 done
4593 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4594 rm -f conftest.err conftest.$ac_ext
4595 if $ac_preproc_ok; then :
4596
4597 else
4598   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4599 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4600 as_fn_error "C preprocessor \"$CPP\" fails sanity check
4601 See \`config.log' for more details." "$LINENO" 5; }
4602 fi
4603
4604 ac_ext=c
4605 ac_cpp='$CPP $CPPFLAGS'
4606 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4607 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4608 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4609
4610
4611 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4612 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4613 if test "${ac_cv_path_GREP+set}" = set; then :
4614   $as_echo_n "(cached) " >&6
4615 else
4616   if test -z "$GREP"; then
4617   ac_path_GREP_found=false
4618   # Loop through the user's path and test for each of PROGNAME-LIST
4619   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4620 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4621 do
4622   IFS=$as_save_IFS
4623   test -z "$as_dir" && as_dir=.
4624     for ac_prog in grep ggrep; do
4625     for ac_exec_ext in '' $ac_executable_extensions; do
4626       ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4627       { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4628 # Check for GNU ac_path_GREP and select it if it is found.
4629   # Check for GNU $ac_path_GREP
4630 case `"$ac_path_GREP" --version 2>&1` in
4631 *GNU*)
4632   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4633 *)
4634   ac_count=0
4635   $as_echo_n 0123456789 >"conftest.in"
4636   while :
4637   do
4638     cat "conftest.in" "conftest.in" >"conftest.tmp"
4639     mv "conftest.tmp" "conftest.in"
4640     cp "conftest.in" "conftest.nl"
4641     $as_echo 'GREP' >> "conftest.nl"
4642     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4643     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4644     as_fn_arith $ac_count + 1 && ac_count=$as_val
4645     if test $ac_count -gt ${ac_path_GREP_max-0}; then
4646       # Best one so far, save it but keep looking for a better one
4647       ac_cv_path_GREP="$ac_path_GREP"
4648       ac_path_GREP_max=$ac_count
4649     fi
4650     # 10*(2^10) chars as input seems more than enough
4651     test $ac_count -gt 10 && break
4652   done
4653   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4654 esac
4655
4656       $ac_path_GREP_found && break 3
4657     done
4658   done
4659   done
4660 IFS=$as_save_IFS
4661   if test -z "$ac_cv_path_GREP"; then
4662     as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4663   fi
4664 else
4665   ac_cv_path_GREP=$GREP
4666 fi
4667
4668 fi
4669 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4670 $as_echo "$ac_cv_path_GREP" >&6; }
4671  GREP="$ac_cv_path_GREP"
4672
4673
4674 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4675 $as_echo_n "checking for egrep... " >&6; }
4676 if test "${ac_cv_path_EGREP+set}" = set; then :
4677   $as_echo_n "(cached) " >&6
4678 else
4679   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4680    then ac_cv_path_EGREP="$GREP -E"
4681    else
4682      if test -z "$EGREP"; then
4683   ac_path_EGREP_found=false
4684   # Loop through the user's path and test for each of PROGNAME-LIST
4685   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4686 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4687 do
4688   IFS=$as_save_IFS
4689   test -z "$as_dir" && as_dir=.
4690     for ac_prog in egrep; do
4691     for ac_exec_ext in '' $ac_executable_extensions; do
4692       ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4693       { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4694 # Check for GNU ac_path_EGREP and select it if it is found.
4695   # Check for GNU $ac_path_EGREP
4696 case `"$ac_path_EGREP" --version 2>&1` in
4697 *GNU*)
4698   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4699 *)
4700   ac_count=0
4701   $as_echo_n 0123456789 >"conftest.in"
4702   while :
4703   do
4704     cat "conftest.in" "conftest.in" >"conftest.tmp"
4705     mv "conftest.tmp" "conftest.in"
4706     cp "conftest.in" "conftest.nl"
4707     $as_echo 'EGREP' >> "conftest.nl"
4708     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4709     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4710     as_fn_arith $ac_count + 1 && ac_count=$as_val
4711     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4712       # Best one so far, save it but keep looking for a better one
4713       ac_cv_path_EGREP="$ac_path_EGREP"
4714       ac_path_EGREP_max=$ac_count
4715     fi
4716     # 10*(2^10) chars as input seems more than enough
4717     test $ac_count -gt 10 && break
4718   done
4719   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4720 esac
4721
4722       $ac_path_EGREP_found && break 3
4723     done
4724   done
4725   done
4726 IFS=$as_save_IFS
4727   if test -z "$ac_cv_path_EGREP"; then
4728     as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4729   fi
4730 else
4731   ac_cv_path_EGREP=$EGREP
4732 fi
4733
4734    fi
4735 fi
4736 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4737 $as_echo "$ac_cv_path_EGREP" >&6; }
4738  EGREP="$ac_cv_path_EGREP"
4739
4740
4741 if test $ac_cv_c_compiler_gnu = yes; then
4742     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC needs -traditional" >&5
4743 $as_echo_n "checking whether $CC needs -traditional... " >&6; }
4744 if test "${ac_cv_prog_gcc_traditional+set}" = set; then :
4745   $as_echo_n "(cached) " >&6
4746 else
4747     ac_pattern="Autoconf.*'x'"
4748   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4749 /* end confdefs.h.  */
4750 #include <sgtty.h>
4751 Autoconf TIOCGETP
4752 _ACEOF
4753 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4754   $EGREP "$ac_pattern" >/dev/null 2>&1; then :
4755   ac_cv_prog_gcc_traditional=yes
4756 else
4757   ac_cv_prog_gcc_traditional=no
4758 fi
4759 rm -f conftest*
4760
4761
4762   if test $ac_cv_prog_gcc_traditional = no; then
4763     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4764 /* end confdefs.h.  */
4765 #include <termio.h>
4766 Autoconf TCGETA
4767 _ACEOF
4768 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4769   $EGREP "$ac_pattern" >/dev/null 2>&1; then :
4770   ac_cv_prog_gcc_traditional=yes
4771 fi
4772 rm -f conftest*
4773
4774   fi
4775 fi
4776 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_gcc_traditional" >&5
4777 $as_echo "$ac_cv_prog_gcc_traditional" >&6; }
4778   if test $ac_cv_prog_gcc_traditional = yes; then
4779     CC="$CC -traditional"
4780   fi
4781 fi
4782
4783 BASECC=`basename $CC`
4784 have_gcc=no
4785 if test "x$BASECC" = xgcc; then
4786    $as_echo "#define HAVE_GCC 1" >>confdefs.h
4787
4788    have_gcc=yes
4789 fi
4790 # Extract the first word of "$CXX", so it can be a program name with args.
4791 set dummy $CXX; ac_word=$2
4792 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4793 $as_echo_n "checking for $ac_word... " >&6; }
4794 if test "${ac_cv_path_CXX+set}" = set; then :
4795   $as_echo_n "(cached) " >&6
4796 else
4797   case $CXX in
4798   [\\/]* | ?:[\\/]*)
4799   ac_cv_path_CXX="$CXX" # Let the user override the test with a path.
4800   ;;
4801   *)
4802   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4803 for as_dir in $PATH
4804 do
4805   IFS=$as_save_IFS
4806   test -z "$as_dir" && as_dir=.
4807     for ac_exec_ext in '' $ac_executable_extensions; do
4808   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4809     ac_cv_path_CXX="$as_dir/$ac_word$ac_exec_ext"
4810     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4811     break 2
4812   fi
4813 done
4814   done
4815 IFS=$as_save_IFS
4816
4817   test -z "$ac_cv_path_CXX" && ac_cv_path_CXX="$CXX"
4818   ;;
4819 esac
4820 fi
4821 CXX=$ac_cv_path_CXX
4822 if test -n "$CXX"; then
4823   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
4824 $as_echo "$CXX" >&6; }
4825 else
4826   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4827 $as_echo "no" >&6; }
4828 fi
4829
4830
4831 if test ! -e $CXX; then
4832    as_fn_error "Unable to find C++ compiler" "$LINENO" 5
4833 fi
4834
4835 # Find a good install program.  We prefer a C program (faster),
4836 # so one script is as good as another.  But avoid the broken or
4837 # incompatible versions:
4838 # SysV /etc/install, /usr/sbin/install
4839 # SunOS /usr/etc/install
4840 # IRIX /sbin/install
4841 # AIX /bin/install
4842 # AmigaOS /C/install, which installs bootblocks on floppy discs
4843 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
4844 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
4845 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
4846 # OS/2's system install, which has a completely different semantic
4847 # ./install, which can be erroneously created by make from ./install.sh.
4848 # Reject install programs that cannot install multiple files.
4849 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
4850 $as_echo_n "checking for a BSD-compatible install... " >&6; }
4851 if test -z "$INSTALL"; then
4852 if test "${ac_cv_path_install+set}" = set; then :
4853   $as_echo_n "(cached) " >&6
4854 else
4855   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4856 for as_dir in $PATH
4857 do
4858   IFS=$as_save_IFS
4859   test -z "$as_dir" && as_dir=.
4860     # Account for people who put trailing slashes in PATH elements.
4861 case $as_dir/ in #((
4862   ./ | .// | /[cC]/* | \
4863   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
4864   ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
4865   /usr/ucb/* ) ;;
4866   *)
4867     # OSF1 and SCO ODT 3.0 have their own names for install.
4868     # Don't use installbsd from OSF since it installs stuff as root
4869     # by default.
4870     for ac_prog in ginstall scoinst install; do
4871       for ac_exec_ext in '' $ac_executable_extensions; do
4872         if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
4873           if test $ac_prog = install &&
4874             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4875             # AIX install.  It has an incompatible calling convention.
4876             :
4877           elif test $ac_prog = install &&
4878             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4879             # program-specific install script used by HP pwplus--don't use.
4880             :
4881           else
4882             rm -rf conftest.one conftest.two conftest.dir
4883             echo one > conftest.one
4884             echo two > conftest.two
4885             mkdir conftest.dir
4886             if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
4887               test -s conftest.one && test -s conftest.two &&
4888               test -s conftest.dir/conftest.one &&
4889               test -s conftest.dir/conftest.two
4890             then
4891               ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
4892               break 3
4893             fi
4894           fi
4895         fi
4896       done
4897     done
4898     ;;
4899 esac
4900
4901   done
4902 IFS=$as_save_IFS
4903
4904 rm -rf conftest.one conftest.two conftest.dir
4905
4906 fi
4907   if test "${ac_cv_path_install+set}" = set; then
4908     INSTALL=$ac_cv_path_install
4909   else
4910     # As a last resort, use the slow shell script.  Don't cache a
4911     # value for INSTALL within a source directory, because that will
4912     # break other packages using the cache if that directory is
4913     # removed, or if the value is a relative name.
4914     INSTALL=$ac_install_sh
4915   fi
4916 fi
4917 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
4918 $as_echo "$INSTALL" >&6; }
4919
4920 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
4921 # It thinks the first close brace ends the variable substitution.
4922 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
4923
4924 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
4925
4926 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
4927
4928 # Extract the first word of "mv", so it can be a program name with args.
4929 set dummy mv; ac_word=$2
4930 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4931 $as_echo_n "checking for $ac_word... " >&6; }
4932 if test "${ac_cv_path_MV+set}" = set; then :
4933   $as_echo_n "(cached) " >&6
4934 else
4935   case $MV in
4936   [\\/]* | ?:[\\/]*)
4937   ac_cv_path_MV="$MV" # Let the user override the test with a path.
4938   ;;
4939   *)
4940   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4941 for as_dir in $PATH
4942 do
4943   IFS=$as_save_IFS
4944   test -z "$as_dir" && as_dir=.
4945     for ac_exec_ext in '' $ac_executable_extensions; do
4946   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4947     ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
4948     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4949     break 2
4950   fi
4951 done
4952   done
4953 IFS=$as_save_IFS
4954
4955   test -z "$ac_cv_path_MV" && ac_cv_path_MV="mv"
4956   ;;
4957 esac
4958 fi
4959 MV=$ac_cv_path_MV
4960 if test -n "$MV"; then
4961   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MV" >&5
4962 $as_echo "$MV" >&6; }
4963 else
4964   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4965 $as_echo "no" >&6; }
4966 fi
4967
4968
4969 # Extract the first word of "rm", so it can be a program name with args.
4970 set dummy rm; ac_word=$2
4971 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4972 $as_echo_n "checking for $ac_word... " >&6; }
4973 if test "${ac_cv_path_REMOVE+set}" = set; then :
4974   $as_echo_n "(cached) " >&6
4975 else
4976   case $REMOVE in
4977   [\\/]* | ?:[\\/]*)
4978   ac_cv_path_REMOVE="$REMOVE" # Let the user override the test with a path.
4979   ;;
4980   *)
4981   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4982 for as_dir in $PATH
4983 do
4984   IFS=$as_save_IFS
4985   test -z "$as_dir" && as_dir=.
4986     for ac_exec_ext in '' $ac_executable_extensions; do
4987   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4988     ac_cv_path_REMOVE="$as_dir/$ac_word$ac_exec_ext"
4989     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4990     break 2
4991   fi
4992 done
4993   done
4994 IFS=$as_save_IFS
4995
4996   test -z "$ac_cv_path_REMOVE" && ac_cv_path_REMOVE="rm"
4997   ;;
4998 esac
4999 fi
5000 REMOVE=$ac_cv_path_REMOVE
5001 if test -n "$REMOVE"; then
5002   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $REMOVE" >&5
5003 $as_echo "$REMOVE" >&6; }
5004 else
5005   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5006 $as_echo "no" >&6; }
5007 fi
5008
5009
5010 # Extract the first word of "cp", so it can be a program name with args.
5011 set dummy cp; ac_word=$2
5012 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5013 $as_echo_n "checking for $ac_word... " >&6; }
5014 if test "${ac_cv_path_CP+set}" = set; then :
5015   $as_echo_n "(cached) " >&6
5016 else
5017   case $CP in
5018   [\\/]* | ?:[\\/]*)
5019   ac_cv_path_CP="$CP" # Let the user override the test with a path.
5020   ;;
5021   *)
5022   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5023 for as_dir in $PATH
5024 do
5025   IFS=$as_save_IFS
5026   test -z "$as_dir" && as_dir=.
5027     for ac_exec_ext in '' $ac_executable_extensions; do
5028   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5029     ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext"
5030     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5031     break 2
5032   fi
5033 done
5034   done
5035 IFS=$as_save_IFS
5036
5037   test -z "$ac_cv_path_CP" && ac_cv_path_CP="cp"
5038   ;;
5039 esac
5040 fi
5041 CP=$ac_cv_path_CP
5042 if test -n "$CP"; then
5043   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CP" >&5
5044 $as_echo "$CP" >&6; }
5045 else
5046   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5047 $as_echo "no" >&6; }
5048 fi
5049
5050
5051 # Extract the first word of "sed", so it can be a program name with args.
5052 set dummy sed; ac_word=$2
5053 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5054 $as_echo_n "checking for $ac_word... " >&6; }
5055 if test "${ac_cv_path_SED+set}" = set; then :
5056   $as_echo_n "(cached) " >&6
5057 else
5058   case $SED in
5059   [\\/]* | ?:[\\/]*)
5060   ac_cv_path_SED="$SED" # Let the user override the test with a path.
5061   ;;
5062   *)
5063   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5064 for as_dir in $PATH
5065 do
5066   IFS=$as_save_IFS
5067   test -z "$as_dir" && as_dir=.
5068     for ac_exec_ext in '' $ac_executable_extensions; do
5069   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5070     ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
5071     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5072     break 2
5073   fi
5074 done
5075   done
5076 IFS=$as_save_IFS
5077
5078   test -z "$ac_cv_path_SED" && ac_cv_path_SED="sed"
5079   ;;
5080 esac
5081 fi
5082 SED=$ac_cv_path_SED
5083 if test -n "$SED"; then
5084   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SED" >&5
5085 $as_echo "$SED" >&6; }
5086 else
5087   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5088 $as_echo "no" >&6; }
5089 fi
5090
5091
5092 # Extract the first word of "echo", so it can be a program name with args.
5093 set dummy echo; ac_word=$2
5094 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5095 $as_echo_n "checking for $ac_word... " >&6; }
5096 if test "${ac_cv_path_ECHO+set}" = set; then :
5097   $as_echo_n "(cached) " >&6
5098 else
5099   case $ECHO in
5100   [\\/]* | ?:[\\/]*)
5101   ac_cv_path_ECHO="$ECHO" # Let the user override the test with a path.
5102   ;;
5103   *)
5104   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5105 for as_dir in $PATH
5106 do
5107   IFS=$as_save_IFS
5108   test -z "$as_dir" && as_dir=.
5109     for ac_exec_ext in '' $ac_executable_extensions; do
5110   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5111     ac_cv_path_ECHO="$as_dir/$ac_word$ac_exec_ext"
5112     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5113     break 2
5114   fi
5115 done
5116   done
5117 IFS=$as_save_IFS
5118
5119   test -z "$ac_cv_path_ECHO" && ac_cv_path_ECHO="echo"
5120   ;;
5121 esac
5122 fi
5123 ECHO=$ac_cv_path_ECHO
5124 if test -n "$ECHO"; then
5125   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ECHO" >&5
5126 $as_echo "$ECHO" >&6; }
5127 else
5128   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5129 $as_echo "no" >&6; }
5130 fi
5131
5132
5133 # Extract the first word of "cmp", so it can be a program name with args.
5134 set dummy cmp; ac_word=$2
5135 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5136 $as_echo_n "checking for $ac_word... " >&6; }
5137 if test "${ac_cv_path_CMP+set}" = set; then :
5138   $as_echo_n "(cached) " >&6
5139 else
5140   case $CMP in
5141   [\\/]* | ?:[\\/]*)
5142   ac_cv_path_CMP="$CMP" # Let the user override the test with a path.
5143   ;;
5144   *)
5145   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5146 for as_dir in $PATH
5147 do
5148   IFS=$as_save_IFS
5149   test -z "$as_dir" && as_dir=.
5150     for ac_exec_ext in '' $ac_executable_extensions; do
5151   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5152     ac_cv_path_CMP="$as_dir/$ac_word$ac_exec_ext"
5153     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5154     break 2
5155   fi
5156 done
5157   done
5158 IFS=$as_save_IFS
5159
5160   test -z "$ac_cv_path_CMP" && ac_cv_path_CMP="cmp"
5161   ;;
5162 esac
5163 fi
5164 CMP=$ac_cv_path_CMP
5165 if test -n "$CMP"; then
5166   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CMP" >&5
5167 $as_echo "$CMP" >&6; }
5168 else
5169   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5170 $as_echo "no" >&6; }
5171 fi
5172
5173
5174 # Extract the first word of "tbl", so it can be a program name with args.
5175 set dummy tbl; ac_word=$2
5176 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5177 $as_echo_n "checking for $ac_word... " >&6; }
5178 if test "${ac_cv_path_TBL+set}" = set; then :
5179   $as_echo_n "(cached) " >&6
5180 else
5181   case $TBL in
5182   [\\/]* | ?:[\\/]*)
5183   ac_cv_path_TBL="$TBL" # Let the user override the test with a path.
5184   ;;
5185   *)
5186   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5187 for as_dir in $PATH
5188 do
5189   IFS=$as_save_IFS
5190   test -z "$as_dir" && as_dir=.
5191     for ac_exec_ext in '' $ac_executable_extensions; do
5192   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5193     ac_cv_path_TBL="$as_dir/$ac_word$ac_exec_ext"
5194     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5195     break 2
5196   fi
5197 done
5198   done
5199 IFS=$as_save_IFS
5200
5201   test -z "$ac_cv_path_TBL" && ac_cv_path_TBL="tbl"
5202   ;;
5203 esac
5204 fi
5205 TBL=$ac_cv_path_TBL
5206 if test -n "$TBL"; then
5207   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TBL" >&5
5208 $as_echo "$TBL" >&6; }
5209 else
5210   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5211 $as_echo "no" >&6; }
5212 fi
5213
5214
5215 # Extract the first word of "ar", so it can be a program name with args.
5216 set dummy ar; ac_word=$2
5217 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5218 $as_echo_n "checking for $ac_word... " >&6; }
5219 if test "${ac_cv_path_AR+set}" = set; then :
5220   $as_echo_n "(cached) " >&6
5221 else
5222   case $AR in
5223   [\\/]* | ?:[\\/]*)
5224   ac_cv_path_AR="$AR" # Let the user override the test with a path.
5225   ;;
5226   *)
5227   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5228 for as_dir in $PATH
5229 do
5230   IFS=$as_save_IFS
5231   test -z "$as_dir" && as_dir=.
5232     for ac_exec_ext in '' $ac_executable_extensions; do
5233   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5234     ac_cv_path_AR="$as_dir/$ac_word$ac_exec_ext"
5235     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5236     break 2
5237   fi
5238 done
5239   done
5240 IFS=$as_save_IFS
5241
5242   test -z "$ac_cv_path_AR" && ac_cv_path_AR="ar"
5243   ;;
5244 esac
5245 fi
5246 AR=$ac_cv_path_AR
5247 if test -n "$AR"; then
5248   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
5249 $as_echo "$AR" >&6; }
5250 else
5251   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5252 $as_echo "no" >&6; }
5253 fi
5254
5255
5256 # Extract the first word of "openssl", so it can be a program name with args.
5257 set dummy openssl; ac_word=$2
5258 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5259 $as_echo_n "checking for $ac_word... " >&6; }
5260 if test "${ac_cv_path_OPENSSL+set}" = set; then :
5261   $as_echo_n "(cached) " >&6
5262 else
5263   case $OPENSSL in
5264   [\\/]* | ?:[\\/]*)
5265   ac_cv_path_OPENSSL="$OPENSSL" # Let the user override the test with a path.
5266   ;;
5267   *)
5268   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5269 for as_dir in $PATH
5270 do
5271   IFS=$as_save_IFS
5272   test -z "$as_dir" && as_dir=.
5273     for ac_exec_ext in '' $ac_executable_extensions; do
5274   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5275     ac_cv_path_OPENSSL="$as_dir/$ac_word$ac_exec_ext"
5276     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5277     break 2
5278   fi
5279 done
5280   done
5281 IFS=$as_save_IFS
5282
5283   test -z "$ac_cv_path_OPENSSL" && ac_cv_path_OPENSSL="none"
5284   ;;
5285 esac
5286 fi
5287 OPENSSL=$ac_cv_path_OPENSSL
5288 if test -n "$OPENSSL"; then
5289   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OPENSSL" >&5
5290 $as_echo "$OPENSSL" >&6; }
5291 else
5292   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5293 $as_echo "no" >&6; }
5294 fi
5295
5296
5297 # Extract the first word of "mtx", so it can be a program name with args.
5298 set dummy mtx; ac_word=$2
5299 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5300 $as_echo_n "checking for $ac_word... " >&6; }
5301 if test "${ac_cv_path_MTX+set}" = set; then :
5302   $as_echo_n "(cached) " >&6
5303 else
5304   case $MTX in
5305   [\\/]* | ?:[\\/]*)
5306   ac_cv_path_MTX="$MTX" # Let the user override the test with a path.
5307   ;;
5308   *)
5309   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5310 for as_dir in $PATH
5311 do
5312   IFS=$as_save_IFS
5313   test -z "$as_dir" && as_dir=.
5314     for ac_exec_ext in '' $ac_executable_extensions; do
5315   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5316     ac_cv_path_MTX="$as_dir/$ac_word$ac_exec_ext"
5317     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5318     break 2
5319   fi
5320 done
5321   done
5322 IFS=$as_save_IFS
5323
5324   test -z "$ac_cv_path_MTX" && ac_cv_path_MTX="mtx"
5325   ;;
5326 esac
5327 fi
5328 MTX=$ac_cv_path_MTX
5329 if test -n "$MTX"; then
5330   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MTX" >&5
5331 $as_echo "$MTX" >&6; }
5332 else
5333   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5334 $as_echo "no" >&6; }
5335 fi
5336
5337
5338 # Extract the first word of "dd", so it can be a program name with args.
5339 set dummy dd; ac_word=$2
5340 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5341 $as_echo_n "checking for $ac_word... " >&6; }
5342 if test "${ac_cv_path_DD+set}" = set; then :
5343   $as_echo_n "(cached) " >&6
5344 else
5345   case $DD in
5346   [\\/]* | ?:[\\/]*)
5347   ac_cv_path_DD="$DD" # Let the user override the test with a path.
5348   ;;
5349   *)
5350   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5351 for as_dir in $PATH
5352 do
5353   IFS=$as_save_IFS
5354   test -z "$as_dir" && as_dir=.
5355     for ac_exec_ext in '' $ac_executable_extensions; do
5356   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5357     ac_cv_path_DD="$as_dir/$ac_word$ac_exec_ext"
5358     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5359     break 2
5360   fi
5361 done
5362   done
5363 IFS=$as_save_IFS
5364
5365   test -z "$ac_cv_path_DD" && ac_cv_path_DD="dd"
5366   ;;
5367 esac
5368 fi
5369 DD=$ac_cv_path_DD
5370 if test -n "$DD"; then
5371   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DD" >&5
5372 $as_echo "$DD" >&6; }
5373 else
5374   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5375 $as_echo "no" >&6; }
5376 fi
5377
5378
5379 # Extract the first word of "mkisofs", so it can be a program name with args.
5380 set dummy mkisofs; ac_word=$2
5381 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5382 $as_echo_n "checking for $ac_word... " >&6; }
5383 if test "${ac_cv_path_MKISOFS+set}" = set; then :
5384   $as_echo_n "(cached) " >&6
5385 else
5386   case $MKISOFS in
5387   [\\/]* | ?:[\\/]*)
5388   ac_cv_path_MKISOFS="$MKISOFS" # Let the user override the test with a path.
5389   ;;
5390   *)
5391   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5392 for as_dir in $PATH
5393 do
5394   IFS=$as_save_IFS
5395   test -z "$as_dir" && as_dir=.
5396     for ac_exec_ext in '' $ac_executable_extensions; do
5397   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5398     ac_cv_path_MKISOFS="$as_dir/$ac_word$ac_exec_ext"
5399     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5400     break 2
5401   fi
5402 done
5403   done
5404 IFS=$as_save_IFS
5405
5406   test -z "$ac_cv_path_MKISOFS" && ac_cv_path_MKISOFS="mkisofs"
5407   ;;
5408 esac
5409 fi
5410 MKISOFS=$ac_cv_path_MKISOFS
5411 if test -n "$MKISOFS"; then
5412   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKISOFS" >&5
5413 $as_echo "$MKISOFS" >&6; }
5414 else
5415   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5416 $as_echo "no" >&6; }
5417 fi
5418
5419
5420 # Extract the first word of "python", so it can be a program name with args.
5421 set dummy python; ac_word=$2
5422 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5423 $as_echo_n "checking for $ac_word... " >&6; }
5424 if test "${ac_cv_path_PYTHON+set}" = set; then :
5425   $as_echo_n "(cached) " >&6
5426 else
5427   case $PYTHON in
5428   [\\/]* | ?:[\\/]*)
5429   ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path.
5430   ;;
5431   *)
5432   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5433 for as_dir in $PATH
5434 do
5435   IFS=$as_save_IFS
5436   test -z "$as_dir" && as_dir=.
5437     for ac_exec_ext in '' $ac_executable_extensions; do
5438   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5439     ac_cv_path_PYTHON="$as_dir/$ac_word$ac_exec_ext"
5440     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5441     break 2
5442   fi
5443 done
5444   done
5445 IFS=$as_save_IFS
5446
5447   test -z "$ac_cv_path_PYTHON" && ac_cv_path_PYTHON="python"
5448   ;;
5449 esac
5450 fi
5451 PYTHON=$ac_cv_path_PYTHON
5452 if test -n "$PYTHON"; then
5453   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON" >&5
5454 $as_echo "$PYTHON" >&6; }
5455 else
5456   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5457 $as_echo "no" >&6; }
5458 fi
5459
5460
5461 # Extract the first word of "growisofs", so it can be a program name with args.
5462 set dummy growisofs; ac_word=$2
5463 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5464 $as_echo_n "checking for $ac_word... " >&6; }
5465 if test "${ac_cv_path_GROWISOFS+set}" = set; then :
5466   $as_echo_n "(cached) " >&6
5467 else
5468   case $GROWISOFS in
5469   [\\/]* | ?:[\\/]*)
5470   ac_cv_path_GROWISOFS="$GROWISOFS" # Let the user override the test with a path.
5471   ;;
5472   *)
5473   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5474 for as_dir in $PATH
5475 do
5476   IFS=$as_save_IFS
5477   test -z "$as_dir" && as_dir=.
5478     for ac_exec_ext in '' $ac_executable_extensions; do
5479   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5480     ac_cv_path_GROWISOFS="$as_dir/$ac_word$ac_exec_ext"
5481     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5482     break 2
5483   fi
5484 done
5485   done
5486 IFS=$as_save_IFS
5487
5488   test -z "$ac_cv_path_GROWISOFS" && ac_cv_path_GROWISOFS="growisofs"
5489   ;;
5490 esac
5491 fi
5492 GROWISOFS=$ac_cv_path_GROWISOFS
5493 if test -n "$GROWISOFS"; then
5494   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GROWISOFS" >&5
5495 $as_echo "$GROWISOFS" >&6; }
5496 else
5497   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5498 $as_echo "no" >&6; }
5499 fi
5500
5501
5502 # Extract the first word of "dvd+rw-mediainfo", so it can be a program name with args.
5503 set dummy dvd+rw-mediainfo; ac_word=$2
5504 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5505 $as_echo_n "checking for $ac_word... " >&6; }
5506 if test "${ac_cv_path_DVDRWMEDIAINFO+set}" = set; then :
5507   $as_echo_n "(cached) " >&6
5508 else
5509   case $DVDRWMEDIAINFO in
5510   [\\/]* | ?:[\\/]*)
5511   ac_cv_path_DVDRWMEDIAINFO="$DVDRWMEDIAINFO" # Let the user override the test with a path.
5512   ;;
5513   *)
5514   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5515 for as_dir in $PATH
5516 do
5517   IFS=$as_save_IFS
5518   test -z "$as_dir" && as_dir=.
5519     for ac_exec_ext in '' $ac_executable_extensions; do
5520   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5521     ac_cv_path_DVDRWMEDIAINFO="$as_dir/$ac_word$ac_exec_ext"
5522     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5523     break 2
5524   fi
5525 done
5526   done
5527 IFS=$as_save_IFS
5528
5529   test -z "$ac_cv_path_DVDRWMEDIAINFO" && ac_cv_path_DVDRWMEDIAINFO="dvd+rw-mediainfo"
5530   ;;
5531 esac
5532 fi
5533 DVDRWMEDIAINFO=$ac_cv_path_DVDRWMEDIAINFO
5534 if test -n "$DVDRWMEDIAINFO"; then
5535   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DVDRWMEDIAINFO" >&5
5536 $as_echo "$DVDRWMEDIAINFO" >&6; }
5537 else
5538   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5539 $as_echo "no" >&6; }
5540 fi
5541
5542
5543 # Extract the first word of "dvd+rw-format", so it can be a program name with args.
5544 set dummy dvd+rw-format; ac_word=$2
5545 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5546 $as_echo_n "checking for $ac_word... " >&6; }
5547 if test "${ac_cv_path_DVDRWFORMAT+set}" = set; then :
5548   $as_echo_n "(cached) " >&6
5549 else
5550   case $DVDRWFORMAT in
5551   [\\/]* | ?:[\\/]*)
5552   ac_cv_path_DVDRWFORMAT="$DVDRWFORMAT" # Let the user override the test with a path.
5553   ;;
5554   *)
5555   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5556 for as_dir in $PATH
5557 do
5558   IFS=$as_save_IFS
5559   test -z "$as_dir" && as_dir=.
5560     for ac_exec_ext in '' $ac_executable_extensions; do
5561   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5562     ac_cv_path_DVDRWFORMAT="$as_dir/$ac_word$ac_exec_ext"
5563     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5564     break 2
5565   fi
5566 done
5567   done
5568 IFS=$as_save_IFS
5569
5570   test -z "$ac_cv_path_DVDRWFORMAT" && ac_cv_path_DVDRWFORMAT="dvd+rw-format"
5571   ;;
5572 esac
5573 fi
5574 DVDRWFORMAT=$ac_cv_path_DVDRWFORMAT
5575 if test -n "$DVDRWFORMAT"; then
5576   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DVDRWFORMAT" >&5
5577 $as_echo "$DVDRWFORMAT" >&6; }
5578 else
5579   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5580 $as_echo "no" >&6; }
5581 fi
5582
5583
5584 # Extract the first word of "pkg-config", so it can be a program name with args.
5585 set dummy pkg-config; ac_word=$2
5586 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5587 $as_echo_n "checking for $ac_word... " >&6; }
5588 if test "${ac_cv_path_PKGCONFIG+set}" = set; then :
5589   $as_echo_n "(cached) " >&6
5590 else
5591   case $PKGCONFIG in
5592   [\\/]* | ?:[\\/]*)
5593   ac_cv_path_PKGCONFIG="$PKGCONFIG" # Let the user override the test with a path.
5594   ;;
5595   *)
5596   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5597 for as_dir in $PATH
5598 do
5599   IFS=$as_save_IFS
5600   test -z "$as_dir" && as_dir=.
5601     for ac_exec_ext in '' $ac_executable_extensions; do
5602   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5603     ac_cv_path_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext"
5604     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5605     break 2
5606   fi
5607 done
5608   done
5609 IFS=$as_save_IFS
5610
5611   test -z "$ac_cv_path_PKGCONFIG" && ac_cv_path_PKGCONFIG="pkg-config"
5612   ;;
5613 esac
5614 fi
5615 PKGCONFIG=$ac_cv_path_PKGCONFIG
5616 if test -n "$PKGCONFIG"; then
5617   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKGCONFIG" >&5
5618 $as_echo "$PKGCONFIG" >&6; }
5619 else
5620   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5621 $as_echo "no" >&6; }
5622 fi
5623
5624
5625 # Extract the first word of "qmake", so it can be a program name with args.
5626 set dummy qmake; ac_word=$2
5627 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5628 $as_echo_n "checking for $ac_word... " >&6; }
5629 if test "${ac_cv_path_QMAKE+set}" = set; then :
5630   $as_echo_n "(cached) " >&6
5631 else
5632   case $QMAKE in
5633   [\\/]* | ?:[\\/]*)
5634   ac_cv_path_QMAKE="$QMAKE" # Let the user override the test with a path.
5635   ;;
5636   *)
5637   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5638 for as_dir in $PATH
5639 do
5640   IFS=$as_save_IFS
5641   test -z "$as_dir" && as_dir=.
5642     for ac_exec_ext in '' $ac_executable_extensions; do
5643   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5644     ac_cv_path_QMAKE="$as_dir/$ac_word$ac_exec_ext"
5645     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5646     break 2
5647   fi
5648 done
5649   done
5650 IFS=$as_save_IFS
5651
5652   test -z "$ac_cv_path_QMAKE" && ac_cv_path_QMAKE="none"
5653   ;;
5654 esac
5655 fi
5656 QMAKE=$ac_cv_path_QMAKE
5657 if test -n "$QMAKE"; then
5658   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $QMAKE" >&5
5659 $as_echo "$QMAKE" >&6; }
5660 else
5661   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5662 $as_echo "no" >&6; }
5663 fi
5664
5665
5666 # Extract the first word of "gmake", so it can be a program name with args.
5667 set dummy gmake; ac_word=$2
5668 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5669 $as_echo_n "checking for $ac_word... " >&6; }
5670 if test "${ac_cv_path_GMAKE+set}" = set; then :
5671   $as_echo_n "(cached) " >&6
5672 else
5673   case $GMAKE in
5674   [\\/]* | ?:[\\/]*)
5675   ac_cv_path_GMAKE="$GMAKE" # Let the user override the test with a path.
5676   ;;
5677   *)
5678   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5679 for as_dir in $PATH
5680 do
5681   IFS=$as_save_IFS
5682   test -z "$as_dir" && as_dir=.
5683     for ac_exec_ext in '' $ac_executable_extensions; do
5684   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5685     ac_cv_path_GMAKE="$as_dir/$ac_word$ac_exec_ext"
5686     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5687     break 2
5688   fi
5689 done
5690   done
5691 IFS=$as_save_IFS
5692
5693   test -z "$ac_cv_path_GMAKE" && ac_cv_path_GMAKE="none"
5694   ;;
5695 esac
5696 fi
5697 GMAKE=$ac_cv_path_GMAKE
5698 if test -n "$GMAKE"; then
5699   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GMAKE" >&5
5700 $as_echo "$GMAKE" >&6; }
5701 else
5702   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5703 $as_echo "no" >&6; }
5704 fi
5705
5706
5707
5708 if test "x$WXCONFIG" = x; then
5709    WXCONFIG=wx-config
5710 fi
5711 # Extract the first word of "${WXCONFIG}", so it can be a program name with args.
5712 set dummy ${WXCONFIG}; ac_word=$2
5713 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5714 $as_echo_n "checking for $ac_word... " >&6; }
5715 if test "${ac_cv_path_WXCONFIG+set}" = set; then :
5716   $as_echo_n "(cached) " >&6
5717 else
5718   case $WXCONFIG in
5719   [\\/]* | ?:[\\/]*)
5720   ac_cv_path_WXCONFIG="$WXCONFIG" # Let the user override the test with a path.
5721   ;;
5722   *)
5723   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5724 for as_dir in $PATH
5725 do
5726   IFS=$as_save_IFS
5727   test -z "$as_dir" && as_dir=.
5728     for ac_exec_ext in '' $ac_executable_extensions; do
5729   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5730     ac_cv_path_WXCONFIG="$as_dir/$ac_word$ac_exec_ext"
5731     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5732     break 2
5733   fi
5734 done
5735   done
5736 IFS=$as_save_IFS
5737
5738   test -z "$ac_cv_path_WXCONFIG" && ac_cv_path_WXCONFIG="${WXCONFIG}"
5739   ;;
5740 esac
5741 fi
5742 WXCONFIG=$ac_cv_path_WXCONFIG
5743 if test -n "$WXCONFIG"; then
5744   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WXCONFIG" >&5
5745 $as_echo "$WXCONFIG" >&6; }
5746 else
5747   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5748 $as_echo "no" >&6; }
5749 fi
5750
5751
5752
5753 # Extract the first word of "cdrecord", so it can be a program name with args.
5754 set dummy cdrecord; ac_word=$2
5755 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5756 $as_echo_n "checking for $ac_word... " >&6; }
5757 if test "${ac_cv_path_CDRECORD+set}" = set; then :
5758   $as_echo_n "(cached) " >&6
5759 else
5760   case $CDRECORD in
5761   [\\/]* | ?:[\\/]*)
5762   ac_cv_path_CDRECORD="$CDRECORD" # Let the user override the test with a path.
5763   ;;
5764   *)
5765   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5766 for as_dir in $PATH
5767 do
5768   IFS=$as_save_IFS
5769   test -z "$as_dir" && as_dir=.
5770     for ac_exec_ext in '' $ac_executable_extensions; do
5771   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5772     ac_cv_path_CDRECORD="$as_dir/$ac_word$ac_exec_ext"
5773     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5774     break 2
5775   fi
5776 done
5777   done
5778 IFS=$as_save_IFS
5779
5780   test -z "$ac_cv_path_CDRECORD" && ac_cv_path_CDRECORD="cdrecord"
5781   ;;
5782 esac
5783 fi
5784 CDRECORD=$ac_cv_path_CDRECORD
5785 if test -n "$CDRECORD"; then
5786   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CDRECORD" >&5
5787 $as_echo "$CDRECORD" >&6; }
5788 else
5789   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5790 $as_echo "no" >&6; }
5791 fi
5792
5793
5794 # Extract the first word of "pidof", so it can be a program name with args.
5795 set dummy pidof; ac_word=$2
5796 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5797 $as_echo_n "checking for $ac_word... " >&6; }
5798 if test "${ac_cv_path_PIDOF+set}" = set; then :
5799   $as_echo_n "(cached) " >&6
5800 else
5801   case $PIDOF in
5802   [\\/]* | ?:[\\/]*)
5803   ac_cv_path_PIDOF="$PIDOF" # Let the user override the test with a path.
5804   ;;
5805   *)
5806   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5807 for as_dir in $PATH
5808 do
5809   IFS=$as_save_IFS
5810   test -z "$as_dir" && as_dir=.
5811     for ac_exec_ext in '' $ac_executable_extensions; do
5812   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5813     ac_cv_path_PIDOF="$as_dir/$ac_word$ac_exec_ext"
5814     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5815     break 2
5816   fi
5817 done
5818   done
5819 IFS=$as_save_IFS
5820
5821   test -z "$ac_cv_path_PIDOF" && ac_cv_path_PIDOF="pidof"
5822   ;;
5823 esac
5824 fi
5825 PIDOF=$ac_cv_path_PIDOF
5826 if test -n "$PIDOF"; then
5827   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PIDOF" >&5
5828 $as_echo "$PIDOF" >&6; }
5829 else
5830   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5831 $as_echo "no" >&6; }
5832 fi
5833
5834
5835 for ac_prog in gawk mawk nawk awk
5836 do
5837   # Extract the first word of "$ac_prog", so it can be a program name with args.
5838 set dummy $ac_prog; ac_word=$2
5839 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5840 $as_echo_n "checking for $ac_word... " >&6; }
5841 if test "${ac_cv_prog_AWK+set}" = set; then :
5842   $as_echo_n "(cached) " >&6
5843 else
5844   if test -n "$AWK"; then
5845   ac_cv_prog_AWK="$AWK" # Let the user override the test.
5846 else
5847 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5848 for as_dir in $PATH
5849 do
5850   IFS=$as_save_IFS
5851   test -z "$as_dir" && as_dir=.
5852     for ac_exec_ext in '' $ac_executable_extensions; do
5853   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5854     ac_cv_prog_AWK="$ac_prog"
5855     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5856     break 2
5857   fi
5858 done
5859   done
5860 IFS=$as_save_IFS
5861
5862 fi
5863 fi
5864 AWK=$ac_cv_prog_AWK
5865 if test -n "$AWK"; then
5866   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
5867 $as_echo "$AWK" >&6; }
5868 else
5869   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5870 $as_echo "no" >&6; }
5871 fi
5872
5873
5874   test -n "$AWK" && break
5875 done
5876
5877 # Some AWK programs fail, so test it and warn the user
5878 if echo xfoo | $AWK 'BEGIN { prog=ARGV1; ARGC=1 }
5879       { if ((prog == $2) || (("(" prog ")") == $2) ||
5880       (("" prog "") == $2) ||
5881       ((prog ":") == $2)) { print $1 ; exit 0 } }' xfoo>/dev/null; then :;
5882 else
5883   as_fn_error "!!!!!!!!! WARNING !!!!!!!!!!!!!!
5884    The regex engine of $AWK is too broken to be used you
5885    might want to install GNU AWK.
5886    !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!" "$LINENO" 5
5887 fi
5888 THE_AWK=$AWK
5889 # Extract the first word of "$THE_AWK", so it can be a program name with args.
5890 set dummy $THE_AWK; ac_word=$2
5891 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5892 $as_echo_n "checking for $ac_word... " >&6; }
5893 if test "${ac_cv_path_AWK+set}" = set; then :
5894   $as_echo_n "(cached) " >&6
5895 else
5896   case $AWK in
5897   [\\/]* | ?:[\\/]*)
5898   ac_cv_path_AWK="$AWK" # Let the user override the test with a path.
5899   ;;
5900   *)
5901   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5902 for as_dir in $PATH
5903 do
5904   IFS=$as_save_IFS
5905   test -z "$as_dir" && as_dir=.
5906     for ac_exec_ext in '' $ac_executable_extensions; do
5907   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5908     ac_cv_path_AWK="$as_dir/$ac_word$ac_exec_ext"
5909     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5910     break 2
5911   fi
5912 done
5913   done
5914 IFS=$as_save_IFS
5915
5916   test -z "$ac_cv_path_AWK" && ac_cv_path_AWK="$THE_AWK"
5917   ;;
5918 esac
5919 fi
5920 AWK=$ac_cv_path_AWK
5921 if test -n "$AWK"; then
5922   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
5923 $as_echo "$AWK" >&6; }
5924 else
5925   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5926 $as_echo "no" >&6; }
5927 fi
5928
5929
5930
5931
5932 test -n "$ARFLAG" || ARFLAGS="cr"
5933
5934
5935 MAKE_SHELL=/bin/sh
5936
5937
5938
5939
5940
5941
5942
5943 use_libtool=yes
5944 # Check whether --enable-libtool was given.
5945 if test "${enable_libtool+set}" = set; then :
5946   enableval=$enable_libtool;
5947        if test x$enableval = xno; then
5948           use_libtool=no
5949        fi
5950
5951
5952 fi
5953
5954 case `pwd` in
5955   *\ * | *\     *)
5956     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
5957 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
5958 esac
5959
5960
5961
5962 macro_version='2.2.6'
5963 macro_revision='1.3012'
5964
5965
5966
5967
5968
5969
5970
5971
5972
5973
5974
5975
5976
5977 ltmain="$ac_aux_dir/ltmain.sh"
5978
5979 # Make sure we can run config.sub.
5980 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
5981   as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
5982
5983 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
5984 $as_echo_n "checking build system type... " >&6; }
5985 if test "${ac_cv_build+set}" = set; then :
5986   $as_echo_n "(cached) " >&6
5987 else
5988   ac_build_alias=$build_alias
5989 test "x$ac_build_alias" = x &&
5990   ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
5991 test "x$ac_build_alias" = x &&
5992   as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
5993 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
5994   as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
5995
5996 fi
5997 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
5998 $as_echo "$ac_cv_build" >&6; }
5999 case $ac_cv_build in
6000 *-*-*) ;;
6001 *) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
6002 esac
6003 build=$ac_cv_build
6004 ac_save_IFS=$IFS; IFS='-'
6005 set x $ac_cv_build
6006 shift
6007 build_cpu=$1
6008 build_vendor=$2
6009 shift; shift
6010 # Remember, the first character of IFS is used to create $*,
6011 # except with old shells:
6012 build_os=$*
6013 IFS=$ac_save_IFS
6014 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
6015
6016
6017 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
6018 $as_echo_n "checking host system type... " >&6; }
6019 if test "${ac_cv_host+set}" = set; then :
6020   $as_echo_n "(cached) " >&6
6021 else
6022   if test "x$host_alias" = x; then
6023   ac_cv_host=$ac_cv_build
6024 else
6025   ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
6026     as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
6027 fi
6028
6029 fi
6030 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
6031 $as_echo "$ac_cv_host" >&6; }
6032 case $ac_cv_host in
6033 *-*-*) ;;
6034 *) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
6035 esac
6036 host=$ac_cv_host
6037 ac_save_IFS=$IFS; IFS='-'
6038 set x $ac_cv_host
6039 shift
6040 host_cpu=$1
6041 host_vendor=$2
6042 shift; shift
6043 # Remember, the first character of IFS is used to create $*,
6044 # except with old shells:
6045 host_os=$*
6046 IFS=$ac_save_IFS
6047 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
6048
6049
6050 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
6051 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
6052 if test "${ac_cv_path_SED+set}" = set; then :
6053   $as_echo_n "(cached) " >&6
6054 else
6055             ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
6056      for ac_i in 1 2 3 4 5 6 7; do
6057        ac_script="$ac_script$as_nl$ac_script"
6058      done
6059      echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
6060      { ac_script=; unset ac_script;}
6061      if test -z "$SED"; then
6062   ac_path_SED_found=false
6063   # Loop through the user's path and test for each of PROGNAME-LIST
6064   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6065 for as_dir in $PATH
6066 do
6067   IFS=$as_save_IFS
6068   test -z "$as_dir" && as_dir=.
6069     for ac_prog in sed gsed; do
6070     for ac_exec_ext in '' $ac_executable_extensions; do
6071       ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
6072       { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
6073 # Check for GNU ac_path_SED and select it if it is found.
6074   # Check for GNU $ac_path_SED
6075 case `"$ac_path_SED" --version 2>&1` in
6076 *GNU*)
6077   ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
6078 *)
6079   ac_count=0
6080   $as_echo_n 0123456789 >"conftest.in"
6081   while :
6082   do
6083     cat "conftest.in" "conftest.in" >"conftest.tmp"
6084     mv "conftest.tmp" "conftest.in"
6085     cp "conftest.in" "conftest.nl"
6086     $as_echo '' >> "conftest.nl"
6087     "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
6088     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6089     as_fn_arith $ac_count + 1 && ac_count=$as_val
6090     if test $ac_count -gt ${ac_path_SED_max-0}; then
6091       # Best one so far, save it but keep looking for a better one
6092       ac_cv_path_SED="$ac_path_SED"
6093       ac_path_SED_max=$ac_count
6094     fi
6095     # 10*(2^10) chars as input seems more than enough
6096     test $ac_count -gt 10 && break
6097   done
6098   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6099 esac
6100
6101       $ac_path_SED_found && break 3
6102     done
6103   done
6104   done
6105 IFS=$as_save_IFS
6106   if test -z "$ac_cv_path_SED"; then
6107     as_fn_error "no acceptable sed could be found in \$PATH" "$LINENO" 5
6108   fi
6109 else
6110   ac_cv_path_SED=$SED
6111 fi
6112
6113 fi
6114 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
6115 $as_echo "$ac_cv_path_SED" >&6; }
6116  SED="$ac_cv_path_SED"
6117   rm -f conftest.sed
6118
6119 test -z "$SED" && SED=sed
6120 Xsed="$SED -e 1s/^X//"
6121
6122
6123
6124
6125
6126
6127
6128
6129
6130
6131
6132 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
6133 $as_echo_n "checking for fgrep... " >&6; }
6134 if test "${ac_cv_path_FGREP+set}" = set; then :
6135   $as_echo_n "(cached) " >&6
6136 else
6137   if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
6138    then ac_cv_path_FGREP="$GREP -F"
6139    else
6140      if test -z "$FGREP"; then
6141   ac_path_FGREP_found=false
6142   # Loop through the user's path and test for each of PROGNAME-LIST
6143   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6144 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
6145 do
6146   IFS=$as_save_IFS
6147   test -z "$as_dir" && as_dir=.
6148     for ac_prog in fgrep; do
6149     for ac_exec_ext in '' $ac_executable_extensions; do
6150       ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
6151       { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
6152 # Check for GNU ac_path_FGREP and select it if it is found.
6153   # Check for GNU $ac_path_FGREP
6154 case `"$ac_path_FGREP" --version 2>&1` in
6155 *GNU*)
6156   ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
6157 *)
6158   ac_count=0
6159   $as_echo_n 0123456789 >"conftest.in"
6160   while :
6161   do
6162     cat "conftest.in" "conftest.in" >"conftest.tmp"
6163     mv "conftest.tmp" "conftest.in"
6164     cp "conftest.in" "conftest.nl"
6165     $as_echo 'FGREP' >> "conftest.nl"
6166     "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
6167     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6168     as_fn_arith $ac_count + 1 && ac_count=$as_val
6169     if test $ac_count -gt ${ac_path_FGREP_max-0}; then
6170       # Best one so far, save it but keep looking for a better one
6171       ac_cv_path_FGREP="$ac_path_FGREP"
6172       ac_path_FGREP_max=$ac_count
6173     fi
6174     # 10*(2^10) chars as input seems more than enough
6175     test $ac_count -gt 10 && break
6176   done
6177   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6178 esac
6179
6180       $ac_path_FGREP_found && break 3
6181     done
6182   done
6183   done
6184 IFS=$as_save_IFS
6185   if test -z "$ac_cv_path_FGREP"; then
6186     as_fn_error "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
6187   fi
6188 else
6189   ac_cv_path_FGREP=$FGREP
6190 fi
6191
6192    fi
6193 fi
6194 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
6195 $as_echo "$ac_cv_path_FGREP" >&6; }
6196  FGREP="$ac_cv_path_FGREP"
6197
6198
6199 test -z "$GREP" && GREP=grep
6200
6201
6202
6203
6204
6205
6206
6207
6208
6209
6210
6211
6212
6213
6214
6215
6216
6217
6218
6219 # Check whether --with-gnu-ld was given.
6220 if test "${with_gnu_ld+set}" = set; then :
6221   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
6222 else
6223   with_gnu_ld=no
6224 fi
6225
6226 ac_prog=ld
6227 if test "$GCC" = yes; then
6228   # Check if gcc -print-prog-name=ld gives a path.
6229   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
6230 $as_echo_n "checking for ld used by $CC... " >&6; }
6231   case $host in
6232   *-*-mingw*)
6233     # gcc leaves a trailing carriage return which upsets mingw
6234     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
6235   *)
6236     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
6237   esac
6238   case $ac_prog in
6239     # Accept absolute paths.
6240     [\\/]* | ?:[\\/]*)
6241       re_direlt='/[^/][^/]*/\.\./'
6242       # Canonicalize the pathname of ld
6243       ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
6244       while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
6245         ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
6246       done
6247       test -z "$LD" && LD="$ac_prog"
6248       ;;
6249   "")
6250     # If it fails, then pretend we aren't using GCC.
6251     ac_prog=ld
6252     ;;
6253   *)
6254     # If it is relative, then search for the first ld in PATH.
6255     with_gnu_ld=unknown
6256     ;;
6257   esac
6258 elif test "$with_gnu_ld" = yes; then
6259   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
6260 $as_echo_n "checking for GNU ld... " >&6; }
6261 else
6262   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
6263 $as_echo_n "checking for non-GNU ld... " >&6; }
6264 fi
6265 if test "${lt_cv_path_LD+set}" = set; then :
6266   $as_echo_n "(cached) " >&6
6267 else
6268   if test -z "$LD"; then
6269   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6270   for ac_dir in $PATH; do
6271     IFS="$lt_save_ifs"
6272     test -z "$ac_dir" && ac_dir=.
6273     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
6274       lt_cv_path_LD="$ac_dir/$ac_prog"
6275       # Check to see if the program is GNU ld.  I'd rather use --version,
6276       # but apparently some variants of GNU ld only accept -v.
6277       # Break only if it was the GNU/non-GNU ld that we prefer.
6278       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
6279       *GNU* | *'with BFD'*)
6280         test "$with_gnu_ld" != no && break
6281         ;;
6282       *)
6283         test "$with_gnu_ld" != yes && break
6284         ;;
6285       esac
6286     fi
6287   done
6288   IFS="$lt_save_ifs"
6289 else
6290   lt_cv_path_LD="$LD" # Let the user override the test with a path.
6291 fi
6292 fi
6293
6294 LD="$lt_cv_path_LD"
6295 if test -n "$LD"; then
6296   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
6297 $as_echo "$LD" >&6; }
6298 else
6299   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6300 $as_echo "no" >&6; }
6301 fi
6302 test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
6303 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
6304 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
6305 if test "${lt_cv_prog_gnu_ld+set}" = set; then :
6306   $as_echo_n "(cached) " >&6
6307 else
6308   # I'd rather use --version here, but apparently some GNU lds only accept -v.
6309 case `$LD -v 2>&1 </dev/null` in
6310 *GNU* | *'with BFD'*)
6311   lt_cv_prog_gnu_ld=yes
6312   ;;
6313 *)
6314   lt_cv_prog_gnu_ld=no
6315   ;;
6316 esac
6317 fi
6318 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
6319 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
6320 with_gnu_ld=$lt_cv_prog_gnu_ld
6321
6322
6323
6324
6325
6326
6327
6328
6329
6330 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
6331 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
6332 if test "${lt_cv_path_NM+set}" = set; then :
6333   $as_echo_n "(cached) " >&6
6334 else
6335   if test -n "$NM"; then
6336   # Let the user override the test.
6337   lt_cv_path_NM="$NM"
6338 else
6339   lt_nm_to_check="${ac_tool_prefix}nm"
6340   if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
6341     lt_nm_to_check="$lt_nm_to_check nm"
6342   fi
6343   for lt_tmp_nm in $lt_nm_to_check; do
6344     lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6345     for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
6346       IFS="$lt_save_ifs"
6347       test -z "$ac_dir" && ac_dir=.
6348       tmp_nm="$ac_dir/$lt_tmp_nm"
6349       if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
6350         # Check to see if the nm accepts a BSD-compat flag.
6351         # Adding the `sed 1q' prevents false positives on HP-UX, which says:
6352         #   nm: unknown option "B" ignored
6353         # Tru64's nm complains that /dev/null is an invalid object file
6354         case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
6355         */dev/null* | *'Invalid file or object type'*)
6356           lt_cv_path_NM="$tmp_nm -B"
6357           break
6358           ;;
6359         *)
6360           case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
6361           */dev/null*)
6362             lt_cv_path_NM="$tmp_nm -p"
6363             break
6364             ;;
6365           *)
6366             lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
6367             continue # so that we can try to find one that supports BSD flags
6368             ;;
6369           esac
6370           ;;
6371         esac
6372       fi
6373     done
6374     IFS="$lt_save_ifs"
6375   done
6376   : ${lt_cv_path_NM=no}
6377 fi
6378 fi
6379 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
6380 $as_echo "$lt_cv_path_NM" >&6; }
6381 if test "$lt_cv_path_NM" != "no"; then
6382   NM="$lt_cv_path_NM"
6383 else
6384   # Didn't find any BSD compatible name lister, look for dumpbin.
6385   if test -n "$ac_tool_prefix"; then
6386   for ac_prog in "dumpbin -symbols" "link -dump -symbols"
6387   do
6388     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6389 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6390 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6391 $as_echo_n "checking for $ac_word... " >&6; }
6392 if test "${ac_cv_prog_DUMPBIN+set}" = set; then :
6393   $as_echo_n "(cached) " >&6
6394 else
6395   if test -n "$DUMPBIN"; then
6396   ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
6397 else
6398 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6399 for as_dir in $PATH
6400 do
6401   IFS=$as_save_IFS
6402   test -z "$as_dir" && as_dir=.
6403     for ac_exec_ext in '' $ac_executable_extensions; do
6404   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6405     ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
6406     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6407     break 2
6408   fi
6409 done
6410   done
6411 IFS=$as_save_IFS
6412
6413 fi
6414 fi
6415 DUMPBIN=$ac_cv_prog_DUMPBIN
6416 if test -n "$DUMPBIN"; then
6417   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
6418 $as_echo "$DUMPBIN" >&6; }
6419 else
6420   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6421 $as_echo "no" >&6; }
6422 fi
6423
6424
6425     test -n "$DUMPBIN" && break
6426   done
6427 fi
6428 if test -z "$DUMPBIN"; then
6429   ac_ct_DUMPBIN=$DUMPBIN
6430   for ac_prog in "dumpbin -symbols" "link -dump -symbols"
6431 do
6432   # Extract the first word of "$ac_prog", so it can be a program name with args.
6433 set dummy $ac_prog; ac_word=$2
6434 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6435 $as_echo_n "checking for $ac_word... " >&6; }
6436 if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then :
6437   $as_echo_n "(cached) " >&6
6438 else
6439   if test -n "$ac_ct_DUMPBIN"; then
6440   ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
6441 else
6442 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6443 for as_dir in $PATH
6444 do
6445   IFS=$as_save_IFS
6446   test -z "$as_dir" && as_dir=.
6447     for ac_exec_ext in '' $ac_executable_extensions; do
6448   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6449     ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
6450     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6451     break 2
6452   fi
6453 done
6454   done
6455 IFS=$as_save_IFS
6456
6457 fi
6458 fi
6459 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
6460 if test -n "$ac_ct_DUMPBIN"; then
6461   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
6462 $as_echo "$ac_ct_DUMPBIN" >&6; }
6463 else
6464   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6465 $as_echo "no" >&6; }
6466 fi
6467
6468
6469   test -n "$ac_ct_DUMPBIN" && break
6470 done
6471
6472   if test "x$ac_ct_DUMPBIN" = x; then
6473     DUMPBIN=":"
6474   else
6475     case $cross_compiling:$ac_tool_warned in
6476 yes:)
6477 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6478 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6479 ac_tool_warned=yes ;;
6480 esac
6481     DUMPBIN=$ac_ct_DUMPBIN
6482   fi
6483 fi
6484
6485
6486   if test "$DUMPBIN" != ":"; then
6487     NM="$DUMPBIN"
6488   fi
6489 fi
6490 test -z "$NM" && NM=nm
6491
6492
6493
6494
6495
6496
6497 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
6498 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
6499 if test "${lt_cv_nm_interface+set}" = set; then :
6500   $as_echo_n "(cached) " >&6
6501 else
6502   lt_cv_nm_interface="BSD nm"
6503   echo "int some_variable = 0;" > conftest.$ac_ext
6504   (eval echo "\"\$as_me:6504: $ac_compile\"" >&5)
6505   (eval "$ac_compile" 2>conftest.err)
6506   cat conftest.err >&5
6507   (eval echo "\"\$as_me:6507: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
6508   (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
6509   cat conftest.err >&5
6510   (eval echo "\"\$as_me:6510: output\"" >&5)
6511   cat conftest.out >&5
6512   if $GREP 'External.*some_variable' conftest.out > /dev/null; then
6513     lt_cv_nm_interface="MS dumpbin"
6514   fi
6515   rm -f conftest*
6516 fi
6517 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
6518 $as_echo "$lt_cv_nm_interface" >&6; }
6519
6520 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
6521 $as_echo_n "checking whether ln -s works... " >&6; }
6522 LN_S=$as_ln_s
6523 if test "$LN_S" = "ln -s"; then
6524   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6525 $as_echo "yes" >&6; }
6526 else
6527   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
6528 $as_echo "no, using $LN_S" >&6; }
6529 fi
6530
6531 # find the maximum length of command line arguments
6532 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
6533 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
6534 if test "${lt_cv_sys_max_cmd_len+set}" = set; then :
6535   $as_echo_n "(cached) " >&6
6536 else
6537     i=0
6538   teststring="ABCD"
6539
6540   case $build_os in
6541   msdosdjgpp*)
6542     # On DJGPP, this test can blow up pretty badly due to problems in libc
6543     # (any single argument exceeding 2000 bytes causes a buffer overrun
6544     # during glob expansion).  Even if it were fixed, the result of this
6545     # check would be larger than it should be.
6546     lt_cv_sys_max_cmd_len=12288;    # 12K is about right
6547     ;;
6548
6549   gnu*)
6550     # Under GNU Hurd, this test is not required because there is
6551     # no limit to the length of command line arguments.
6552     # Libtool will interpret -1 as no limit whatsoever
6553     lt_cv_sys_max_cmd_len=-1;
6554     ;;
6555
6556   cygwin* | mingw* | cegcc*)
6557     # On Win9x/ME, this test blows up -- it succeeds, but takes
6558     # about 5 minutes as the teststring grows exponentially.
6559     # Worse, since 9x/ME are not pre-emptively multitasking,
6560     # you end up with a "frozen" computer, even though with patience
6561     # the test eventually succeeds (with a max line length of 256k).
6562     # Instead, let's just punt: use the minimum linelength reported by
6563     # all of the supported platforms: 8192 (on NT/2K/XP).
6564     lt_cv_sys_max_cmd_len=8192;
6565     ;;
6566
6567   amigaos*)
6568     # On AmigaOS with pdksh, this test takes hours, literally.
6569     # So we just punt and use a minimum line length of 8192.
6570     lt_cv_sys_max_cmd_len=8192;
6571     ;;
6572
6573   netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
6574     # This has been around since 386BSD, at least.  Likely further.
6575     if test -x /sbin/sysctl; then
6576       lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
6577     elif test -x /usr/sbin/sysctl; then
6578       lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
6579     else
6580       lt_cv_sys_max_cmd_len=65536       # usable default for all BSDs
6581     fi
6582     # And add a safety zone
6583     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6584     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6585     ;;
6586
6587   interix*)
6588     # We know the value 262144 and hardcode it with a safety zone (like BSD)
6589     lt_cv_sys_max_cmd_len=196608
6590     ;;
6591
6592   osf*)
6593     # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
6594     # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
6595     # nice to cause kernel panics so lets avoid the loop below.
6596     # First set a reasonable default.
6597     lt_cv_sys_max_cmd_len=16384
6598     #
6599     if test -x /sbin/sysconfig; then
6600       case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
6601         *1*) lt_cv_sys_max_cmd_len=-1 ;;
6602       esac
6603     fi
6604     ;;
6605   sco3.2v5*)
6606     lt_cv_sys_max_cmd_len=102400
6607     ;;
6608   sysv5* | sco5v6* | sysv4.2uw2*)
6609     kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
6610     if test -n "$kargmax"; then
6611       lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[  ]//'`
6612     else
6613       lt_cv_sys_max_cmd_len=32768
6614     fi
6615     ;;
6616   *)
6617     lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
6618     if test -n "$lt_cv_sys_max_cmd_len"; then
6619       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6620       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6621     else
6622       # Make teststring a little bigger before we do anything with it.
6623       # a 1K string should be a reasonable start.
6624       for i in 1 2 3 4 5 6 7 8 ; do
6625         teststring=$teststring$teststring
6626       done
6627       SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
6628       # If test is not a shell built-in, we'll probably end up computing a
6629       # maximum length that is only half of the actual maximum length, but
6630       # we can't tell.
6631       while { test "X"`$SHELL $0 --fallback-echo "X$teststring$teststring" 2>/dev/null` \
6632                  = "XX$teststring$teststring"; } >/dev/null 2>&1 &&
6633               test $i != 17 # 1/2 MB should be enough
6634       do
6635         i=`expr $i + 1`
6636         teststring=$teststring$teststring
6637       done
6638       # Only check the string length outside the loop.
6639       lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
6640       teststring=
6641       # Add a significant safety factor because C++ compilers can tack on
6642       # massive amounts of additional arguments before passing them to the
6643       # linker.  It appears as though 1/2 is a usable value.
6644       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
6645     fi
6646     ;;
6647   esac
6648
6649 fi
6650
6651 if test -n $lt_cv_sys_max_cmd_len ; then
6652   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
6653 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
6654 else
6655   { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
6656 $as_echo "none" >&6; }
6657 fi
6658 max_cmd_len=$lt_cv_sys_max_cmd_len
6659
6660
6661
6662
6663
6664
6665 : ${CP="cp -f"}
6666 : ${MV="mv -f"}
6667 : ${RM="rm -f"}
6668
6669 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
6670 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
6671 # Try some XSI features
6672 xsi_shell=no
6673 ( _lt_dummy="a/b/c"
6674   test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
6675       = c,a/b,, \
6676     && eval 'test $(( 1 + 1 )) -eq 2 \
6677     && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
6678   && xsi_shell=yes
6679 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
6680 $as_echo "$xsi_shell" >&6; }
6681
6682
6683 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
6684 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
6685 lt_shell_append=no
6686 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
6687     >/dev/null 2>&1 \
6688   && lt_shell_append=yes
6689 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
6690 $as_echo "$lt_shell_append" >&6; }
6691
6692
6693 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
6694   lt_unset=unset
6695 else
6696   lt_unset=false
6697 fi
6698
6699
6700
6701
6702
6703 # test EBCDIC or ASCII
6704 case `echo X|tr X '\101'` in
6705  A) # ASCII based system
6706     # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
6707   lt_SP2NL='tr \040 \012'
6708   lt_NL2SP='tr \015\012 \040\040'
6709   ;;
6710  *) # EBCDIC based system
6711   lt_SP2NL='tr \100 \n'
6712   lt_NL2SP='tr \r\n \100\100'
6713   ;;
6714 esac
6715
6716
6717
6718
6719
6720
6721
6722
6723
6724 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
6725 $as_echo_n "checking for $LD option to reload object files... " >&6; }
6726 if test "${lt_cv_ld_reload_flag+set}" = set; then :
6727   $as_echo_n "(cached) " >&6
6728 else
6729   lt_cv_ld_reload_flag='-r'
6730 fi
6731 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
6732 $as_echo "$lt_cv_ld_reload_flag" >&6; }
6733 reload_flag=$lt_cv_ld_reload_flag
6734 case $reload_flag in
6735 "" | " "*) ;;
6736 *) reload_flag=" $reload_flag" ;;
6737 esac
6738 reload_cmds='$LD$reload_flag -o $output$reload_objs'
6739 case $host_os in
6740   darwin*)
6741     if test "$GCC" = yes; then
6742       reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
6743     else
6744       reload_cmds='$LD$reload_flag -o $output$reload_objs'
6745     fi
6746     ;;
6747 esac
6748
6749
6750
6751
6752
6753
6754
6755
6756
6757 if test -n "$ac_tool_prefix"; then
6758   # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
6759 set dummy ${ac_tool_prefix}objdump; ac_word=$2
6760 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6761 $as_echo_n "checking for $ac_word... " >&6; }
6762 if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
6763   $as_echo_n "(cached) " >&6
6764 else
6765   if test -n "$OBJDUMP"; then
6766   ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
6767 else
6768 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6769 for as_dir in $PATH
6770 do
6771   IFS=$as_save_IFS
6772   test -z "$as_dir" && as_dir=.
6773     for ac_exec_ext in '' $ac_executable_extensions; do
6774   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6775     ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
6776     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6777     break 2
6778   fi
6779 done
6780   done
6781 IFS=$as_save_IFS
6782
6783 fi
6784 fi
6785 OBJDUMP=$ac_cv_prog_OBJDUMP
6786 if test -n "$OBJDUMP"; then
6787   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
6788 $as_echo "$OBJDUMP" >&6; }
6789 else
6790   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6791 $as_echo "no" >&6; }
6792 fi
6793
6794
6795 fi
6796 if test -z "$ac_cv_prog_OBJDUMP"; then
6797   ac_ct_OBJDUMP=$OBJDUMP
6798   # Extract the first word of "objdump", so it can be a program name with args.
6799 set dummy objdump; ac_word=$2
6800 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6801 $as_echo_n "checking for $ac_word... " >&6; }
6802 if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then :
6803   $as_echo_n "(cached) " >&6
6804 else
6805   if test -n "$ac_ct_OBJDUMP"; then
6806   ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
6807 else
6808 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6809 for as_dir in $PATH
6810 do
6811   IFS=$as_save_IFS
6812   test -z "$as_dir" && as_dir=.
6813     for ac_exec_ext in '' $ac_executable_extensions; do
6814   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6815     ac_cv_prog_ac_ct_OBJDUMP="objdump"
6816     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6817     break 2
6818   fi
6819 done
6820   done
6821 IFS=$as_save_IFS
6822
6823 fi
6824 fi
6825 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
6826 if test -n "$ac_ct_OBJDUMP"; then
6827   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
6828 $as_echo "$ac_ct_OBJDUMP" >&6; }
6829 else
6830   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6831 $as_echo "no" >&6; }
6832 fi
6833
6834   if test "x$ac_ct_OBJDUMP" = x; then
6835     OBJDUMP="false"
6836   else
6837     case $cross_compiling:$ac_tool_warned in
6838 yes:)
6839 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6840 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6841 ac_tool_warned=yes ;;
6842 esac
6843     OBJDUMP=$ac_ct_OBJDUMP
6844   fi
6845 else
6846   OBJDUMP="$ac_cv_prog_OBJDUMP"
6847 fi
6848
6849 test -z "$OBJDUMP" && OBJDUMP=objdump
6850
6851
6852
6853
6854
6855
6856
6857
6858
6859 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
6860 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
6861 if test "${lt_cv_deplibs_check_method+set}" = set; then :
6862   $as_echo_n "(cached) " >&6
6863 else
6864   lt_cv_file_magic_cmd='$MAGIC_CMD'
6865 lt_cv_file_magic_test_file=
6866 lt_cv_deplibs_check_method='unknown'
6867 # Need to set the preceding variable on all platforms that support
6868 # interlibrary dependencies.
6869 # 'none' -- dependencies not supported.
6870 # `unknown' -- same as none, but documents that we really don't know.
6871 # 'pass_all' -- all dependencies passed with no checks.
6872 # 'test_compile' -- check by making test program.
6873 # 'file_magic [[regex]]' -- check by looking for files in library path
6874 # which responds to the $file_magic_cmd with a given extended regex.
6875 # If you have `file' or equivalent on your system and you're not sure
6876 # whether `pass_all' will *always* work, you probably want this one.
6877
6878 case $host_os in
6879 aix[4-9]*)
6880   lt_cv_deplibs_check_method=pass_all
6881   ;;
6882
6883 beos*)
6884   lt_cv_deplibs_check_method=pass_all
6885   ;;
6886
6887 bsdi[45]*)
6888   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
6889   lt_cv_file_magic_cmd='/usr/bin/file -L'
6890   lt_cv_file_magic_test_file=/shlib/libc.so
6891   ;;
6892
6893 cygwin*)
6894   # func_win32_libid is a shell function defined in ltmain.sh
6895   lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6896   lt_cv_file_magic_cmd='func_win32_libid'
6897   ;;
6898
6899 mingw* | pw32*)
6900   # Base MSYS/MinGW do not provide the 'file' command needed by
6901   # func_win32_libid shell function, so use a weaker test based on 'objdump',
6902   # unless we find 'file', for example because we are cross-compiling.
6903   if ( file / ) >/dev/null 2>&1; then
6904     lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6905     lt_cv_file_magic_cmd='func_win32_libid'
6906   else
6907     lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
6908     lt_cv_file_magic_cmd='$OBJDUMP -f'
6909   fi
6910   ;;
6911
6912 cegcc)
6913   # use the weaker test based on 'objdump'. See mingw*.
6914   lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
6915   lt_cv_file_magic_cmd='$OBJDUMP -f'
6916   ;;
6917
6918 darwin* | rhapsody*)
6919   lt_cv_deplibs_check_method=pass_all
6920   ;;
6921
6922 freebsd* | dragonfly*)
6923   if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6924     case $host_cpu in
6925     i*86 )
6926       # Not sure whether the presence of OpenBSD here was a mistake.
6927       # Let's accept both of them until this is cleared up.
6928       lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
6929       lt_cv_file_magic_cmd=/usr/bin/file
6930       lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
6931       ;;
6932     esac
6933   else
6934     lt_cv_deplibs_check_method=pass_all
6935   fi
6936   ;;
6937
6938 gnu*)
6939   lt_cv_deplibs_check_method=pass_all
6940   ;;
6941
6942 hpux10.20* | hpux11*)
6943   lt_cv_file_magic_cmd=/usr/bin/file
6944   case $host_cpu in
6945   ia64*)
6946     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
6947     lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
6948     ;;
6949   hppa*64*)
6950     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]'
6951     lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
6952     ;;
6953   *)
6954     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
6955     lt_cv_file_magic_test_file=/usr/lib/libc.sl
6956     ;;
6957   esac
6958   ;;
6959
6960 interix[3-9]*)
6961   # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
6962   lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
6963   ;;
6964
6965 irix5* | irix6* | nonstopux*)
6966   case $LD in
6967   *-32|*"-32 ") libmagic=32-bit;;
6968   *-n32|*"-n32 ") libmagic=N32;;
6969   *-64|*"-64 ") libmagic=64-bit;;
6970   *) libmagic=never-match;;
6971   esac
6972   lt_cv_deplibs_check_method=pass_all
6973   ;;
6974
6975 # This must be Linux ELF.
6976 linux* | k*bsd*-gnu)
6977   lt_cv_deplibs_check_method=pass_all
6978   ;;
6979
6980 netbsd*)
6981   if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6982     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6983   else
6984     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
6985   fi
6986   ;;
6987
6988 newos6*)
6989   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
6990   lt_cv_file_magic_cmd=/usr/bin/file
6991   lt_cv_file_magic_test_file=/usr/lib/libnls.so
6992   ;;
6993
6994 *nto* | *qnx*)
6995   lt_cv_deplibs_check_method=pass_all
6996   ;;
6997
6998 openbsd*)
6999   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
7000     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
7001   else
7002     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
7003   fi
7004   ;;
7005
7006 osf3* | osf4* | osf5*)
7007   lt_cv_deplibs_check_method=pass_all
7008   ;;
7009
7010 rdos*)
7011   lt_cv_deplibs_check_method=pass_all
7012   ;;
7013
7014 solaris*)
7015   lt_cv_deplibs_check_method=pass_all
7016   ;;
7017
7018 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
7019   lt_cv_deplibs_check_method=pass_all
7020   ;;
7021
7022 sysv4 | sysv4.3*)
7023   case $host_vendor in
7024   motorola)
7025     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]'
7026     lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
7027     ;;
7028   ncr)
7029     lt_cv_deplibs_check_method=pass_all
7030     ;;
7031   sequent)
7032     lt_cv_file_magic_cmd='/bin/file'
7033     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
7034     ;;
7035   sni)
7036     lt_cv_file_magic_cmd='/bin/file'
7037     lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
7038     lt_cv_file_magic_test_file=/lib/libc.so
7039     ;;
7040   siemens)
7041     lt_cv_deplibs_check_method=pass_all
7042     ;;
7043   pc)
7044     lt_cv_deplibs_check_method=pass_all
7045     ;;
7046   esac
7047   ;;
7048
7049 tpf*)
7050   lt_cv_deplibs_check_method=pass_all
7051   ;;
7052 esac
7053
7054 fi
7055 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
7056 $as_echo "$lt_cv_deplibs_check_method" >&6; }
7057 file_magic_cmd=$lt_cv_file_magic_cmd
7058 deplibs_check_method=$lt_cv_deplibs_check_method
7059 test -z "$deplibs_check_method" && deplibs_check_method=unknown
7060
7061
7062
7063
7064
7065
7066
7067
7068
7069
7070
7071
7072 if test -n "$ac_tool_prefix"; then
7073   # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
7074 set dummy ${ac_tool_prefix}ar; ac_word=$2
7075 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7076 $as_echo_n "checking for $ac_word... " >&6; }
7077 if test "${ac_cv_prog_AR+set}" = set; then :
7078   $as_echo_n "(cached) " >&6
7079 else
7080   if test -n "$AR"; then
7081   ac_cv_prog_AR="$AR" # Let the user override the test.
7082 else
7083 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7084 for as_dir in $PATH
7085 do
7086   IFS=$as_save_IFS
7087   test -z "$as_dir" && as_dir=.
7088     for ac_exec_ext in '' $ac_executable_extensions; do
7089   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7090     ac_cv_prog_AR="${ac_tool_prefix}ar"
7091     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7092     break 2
7093   fi
7094 done
7095   done
7096 IFS=$as_save_IFS
7097
7098 fi
7099 fi
7100 AR=$ac_cv_prog_AR
7101 if test -n "$AR"; then
7102   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
7103 $as_echo "$AR" >&6; }
7104 else
7105   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7106 $as_echo "no" >&6; }
7107 fi
7108
7109
7110 fi
7111 if test -z "$ac_cv_prog_AR"; then
7112   ac_ct_AR=$AR
7113   # Extract the first word of "ar", so it can be a program name with args.
7114 set dummy ar; ac_word=$2
7115 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7116 $as_echo_n "checking for $ac_word... " >&6; }
7117 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
7118   $as_echo_n "(cached) " >&6
7119 else
7120   if test -n "$ac_ct_AR"; then
7121   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
7122 else
7123 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7124 for as_dir in $PATH
7125 do
7126   IFS=$as_save_IFS
7127   test -z "$as_dir" && as_dir=.
7128     for ac_exec_ext in '' $ac_executable_extensions; do
7129   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7130     ac_cv_prog_ac_ct_AR="ar"
7131     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7132     break 2
7133   fi
7134 done
7135   done
7136 IFS=$as_save_IFS
7137
7138 fi
7139 fi
7140 ac_ct_AR=$ac_cv_prog_ac_ct_AR
7141 if test -n "$ac_ct_AR"; then
7142   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
7143 $as_echo "$ac_ct_AR" >&6; }
7144 else
7145   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7146 $as_echo "no" >&6; }
7147 fi
7148
7149   if test "x$ac_ct_AR" = x; then
7150     AR="false"
7151   else
7152     case $cross_compiling:$ac_tool_warned in
7153 yes:)
7154 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7155 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7156 ac_tool_warned=yes ;;
7157 esac
7158     AR=$ac_ct_AR
7159   fi
7160 else
7161   AR="$ac_cv_prog_AR"
7162 fi
7163
7164 test -z "$AR" && AR=ar
7165 test -z "$AR_FLAGS" && AR_FLAGS=cru
7166
7167
7168
7169
7170
7171
7172
7173
7174
7175
7176
7177 if test -n "$ac_tool_prefix"; then
7178   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
7179 set dummy ${ac_tool_prefix}strip; ac_word=$2
7180 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7181 $as_echo_n "checking for $ac_word... " >&6; }
7182 if test "${ac_cv_prog_STRIP+set}" = set; then :
7183   $as_echo_n "(cached) " >&6
7184 else
7185   if test -n "$STRIP"; then
7186   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
7187 else
7188 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7189 for as_dir in $PATH
7190 do
7191   IFS=$as_save_IFS
7192   test -z "$as_dir" && as_dir=.
7193     for ac_exec_ext in '' $ac_executable_extensions; do
7194   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7195     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
7196     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7197     break 2
7198   fi
7199 done
7200   done
7201 IFS=$as_save_IFS
7202
7203 fi
7204 fi
7205 STRIP=$ac_cv_prog_STRIP
7206 if test -n "$STRIP"; then
7207   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
7208 $as_echo "$STRIP" >&6; }
7209 else
7210   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7211 $as_echo "no" >&6; }
7212 fi
7213
7214
7215 fi
7216 if test -z "$ac_cv_prog_STRIP"; then
7217   ac_ct_STRIP=$STRIP
7218   # Extract the first word of "strip", so it can be a program name with args.
7219 set dummy strip; ac_word=$2
7220 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7221 $as_echo_n "checking for $ac_word... " >&6; }
7222 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
7223   $as_echo_n "(cached) " >&6
7224 else
7225   if test -n "$ac_ct_STRIP"; then
7226   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
7227 else
7228 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7229 for as_dir in $PATH
7230 do
7231   IFS=$as_save_IFS
7232   test -z "$as_dir" && as_dir=.
7233     for ac_exec_ext in '' $ac_executable_extensions; do
7234   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7235     ac_cv_prog_ac_ct_STRIP="strip"
7236     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7237     break 2
7238   fi
7239 done
7240   done
7241 IFS=$as_save_IFS
7242
7243 fi
7244 fi
7245 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
7246 if test -n "$ac_ct_STRIP"; then
7247   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
7248 $as_echo "$ac_ct_STRIP" >&6; }
7249 else
7250   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7251 $as_echo "no" >&6; }
7252 fi
7253
7254   if test "x$ac_ct_STRIP" = x; then
7255     STRIP=":"
7256   else
7257     case $cross_compiling:$ac_tool_warned in
7258 yes:)
7259 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7260 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7261 ac_tool_warned=yes ;;
7262 esac
7263     STRIP=$ac_ct_STRIP
7264   fi
7265 else
7266   STRIP="$ac_cv_prog_STRIP"
7267 fi
7268
7269 test -z "$STRIP" && STRIP=:
7270
7271
7272
7273
7274
7275
7276 if test -n "$ac_tool_prefix"; then
7277   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
7278 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
7279 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7280 $as_echo_n "checking for $ac_word... " >&6; }
7281 if test "${ac_cv_prog_RANLIB+set}" = set; then :
7282   $as_echo_n "(cached) " >&6
7283 else
7284   if test -n "$RANLIB"; then
7285   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
7286 else
7287 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7288 for as_dir in $PATH
7289 do
7290   IFS=$as_save_IFS
7291   test -z "$as_dir" && as_dir=.
7292     for ac_exec_ext in '' $ac_executable_extensions; do
7293   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7294     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
7295     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7296     break 2
7297   fi
7298 done
7299   done
7300 IFS=$as_save_IFS
7301
7302 fi
7303 fi
7304 RANLIB=$ac_cv_prog_RANLIB
7305 if test -n "$RANLIB"; then
7306   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
7307 $as_echo "$RANLIB" >&6; }
7308 else
7309   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7310 $as_echo "no" >&6; }
7311 fi
7312
7313
7314 fi
7315 if test -z "$ac_cv_prog_RANLIB"; then
7316   ac_ct_RANLIB=$RANLIB
7317   # Extract the first word of "ranlib", so it can be a program name with args.
7318 set dummy ranlib; ac_word=$2
7319 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7320 $as_echo_n "checking for $ac_word... " >&6; }
7321 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
7322   $as_echo_n "(cached) " >&6
7323 else
7324   if test -n "$ac_ct_RANLIB"; then
7325   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
7326 else
7327 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7328 for as_dir in $PATH
7329 do
7330   IFS=$as_save_IFS
7331   test -z "$as_dir" && as_dir=.
7332     for ac_exec_ext in '' $ac_executable_extensions; do
7333   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7334     ac_cv_prog_ac_ct_RANLIB="ranlib"
7335     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7336     break 2
7337   fi
7338 done
7339   done
7340 IFS=$as_save_IFS
7341
7342 fi
7343 fi
7344 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
7345 if test -n "$ac_ct_RANLIB"; then
7346   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
7347 $as_echo "$ac_ct_RANLIB" >&6; }
7348 else
7349   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7350 $as_echo "no" >&6; }
7351 fi
7352
7353   if test "x$ac_ct_RANLIB" = x; then
7354     RANLIB=":"
7355   else
7356     case $cross_compiling:$ac_tool_warned in
7357 yes:)
7358 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7359 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7360 ac_tool_warned=yes ;;
7361 esac
7362     RANLIB=$ac_ct_RANLIB
7363   fi
7364 else
7365   RANLIB="$ac_cv_prog_RANLIB"
7366 fi
7367
7368 test -z "$RANLIB" && RANLIB=:
7369
7370
7371
7372
7373
7374
7375 # Determine commands to create old-style static archives.
7376 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
7377 old_postinstall_cmds='chmod 644 $oldlib'
7378 old_postuninstall_cmds=
7379
7380 if test -n "$RANLIB"; then
7381   case $host_os in
7382   openbsd*)
7383     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
7384     ;;
7385   *)
7386     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
7387     ;;
7388   esac
7389   old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
7390 fi
7391
7392
7393
7394
7395
7396
7397
7398
7399
7400
7401
7402
7403
7404
7405
7406
7407
7408
7409
7410
7411
7412
7413
7414
7415
7416
7417
7418
7419
7420
7421
7422
7423
7424
7425 # If no C compiler was specified, use CC.
7426 LTCC=${LTCC-"$CC"}
7427
7428 # If no C compiler flags were specified, use CFLAGS.
7429 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7430
7431 # Allow CC to be a program name with arguments.
7432 compiler=$CC
7433
7434
7435 # Check for command to grab the raw symbol name followed by C symbol from nm.
7436 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
7437 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
7438 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then :
7439   $as_echo_n "(cached) " >&6
7440 else
7441
7442 # These are sane defaults that work on at least a few old systems.
7443 # [They come from Ultrix.  What could be older than Ultrix?!! ;)]
7444
7445 # Character class describing NM global symbol codes.
7446 symcode='[BCDEGRST]'
7447
7448 # Regexp to match symbols that can be accessed directly from C.
7449 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
7450
7451 # Define system-specific variables.
7452 case $host_os in
7453 aix*)
7454   symcode='[BCDT]'
7455   ;;
7456 cygwin* | mingw* | pw32* | cegcc*)
7457   symcode='[ABCDGISTW]'
7458   ;;
7459 hpux*)
7460   if test "$host_cpu" = ia64; then
7461     symcode='[ABCDEGRST]'
7462   fi
7463   ;;
7464 irix* | nonstopux*)
7465   symcode='[BCDEGRST]'
7466   ;;
7467 osf*)
7468   symcode='[BCDEGQRST]'
7469   ;;
7470 solaris*)
7471   symcode='[BDRT]'
7472   ;;
7473 sco3.2v5*)
7474   symcode='[DT]'
7475   ;;
7476 sysv4.2uw2*)
7477   symcode='[DT]'
7478   ;;
7479 sysv5* | sco5v6* | unixware* | OpenUNIX*)
7480   symcode='[ABDT]'
7481   ;;
7482 sysv4)
7483   symcode='[DFNSTU]'
7484   ;;
7485 esac
7486
7487 # If we're using GNU nm, then use its standard symbol codes.
7488 case `$NM -V 2>&1` in
7489 *GNU* | *'with BFD'*)
7490   symcode='[ABCDGIRSTW]' ;;
7491 esac
7492
7493 # Transform an extracted symbol line into a proper C declaration.
7494 # Some systems (esp. on ia64) link data and code symbols differently,
7495 # so use this general approach.
7496 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
7497
7498 # Transform an extracted symbol line into symbol name and symbol address
7499 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/  {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"\2\", (void *) \&\2},/p'"
7500 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'"
7501
7502 # Handle CRLF in mingw tool chain
7503 opt_cr=
7504 case $build_os in
7505 mingw*)
7506   opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
7507   ;;
7508 esac
7509
7510 # Try without a prefix underscore, then with it.
7511 for ac_symprfx in "" "_"; do
7512
7513   # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
7514   symxfrm="\\1 $ac_symprfx\\2 \\2"
7515
7516   # Write the raw and C identifiers.
7517   if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7518     # Fake it for dumpbin and say T for any non-static function
7519     # and D for any global variable.
7520     # Also find C++ and __fastcall symbols from MSVC++,
7521     # which start with @ or ?.
7522     lt_cv_sys_global_symbol_pipe="$AWK '"\
7523 "     {last_section=section; section=\$ 3};"\
7524 "     /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
7525 "     \$ 0!~/External *\|/{next};"\
7526 "     / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
7527 "     {if(hide[section]) next};"\
7528 "     {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
7529 "     {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
7530 "     s[1]~/^[@?]/{print s[1], s[1]; next};"\
7531 "     s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
7532 "     ' prfx=^$ac_symprfx"
7533   else
7534     lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[      ]\($symcode$symcode*\)[         ][      ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
7535   fi
7536
7537   # Check to see that the pipe works correctly.
7538   pipe_works=no
7539
7540   rm -f conftest*
7541   cat > conftest.$ac_ext <<_LT_EOF
7542 #ifdef __cplusplus
7543 extern "C" {
7544 #endif
7545 char nm_test_var;
7546 void nm_test_func(void);
7547 void nm_test_func(void){}
7548 #ifdef __cplusplus
7549 }
7550 #endif
7551 int main(){nm_test_var='a';nm_test_func();return(0);}
7552 _LT_EOF
7553
7554   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7555   (eval $ac_compile) 2>&5
7556   ac_status=$?
7557   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7558   test $ac_status = 0; }; then
7559     # Now try to grab the symbols.
7560     nlist=conftest.nm
7561     if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\""; } >&5
7562   (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
7563   ac_status=$?
7564   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7565   test $ac_status = 0; } && test -s "$nlist"; then
7566       # Try sorting and uniquifying the output.
7567       if sort "$nlist" | uniq > "$nlist"T; then
7568         mv -f "$nlist"T "$nlist"
7569       else
7570         rm -f "$nlist"T
7571       fi
7572
7573       # Make sure that we snagged all the symbols we need.
7574       if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
7575         if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
7576           cat <<_LT_EOF > conftest.$ac_ext
7577 #ifdef __cplusplus
7578 extern "C" {
7579 #endif
7580
7581 _LT_EOF
7582           # Now generate the symbol file.
7583           eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
7584
7585           cat <<_LT_EOF >> conftest.$ac_ext
7586
7587 /* The mapping between symbol names and symbols.  */
7588 const struct {
7589   const char *name;
7590   void       *address;
7591 }
7592 lt__PROGRAM__LTX_preloaded_symbols[] =
7593 {
7594   { "@PROGRAM@", (void *) 0 },
7595 _LT_EOF
7596           $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
7597           cat <<\_LT_EOF >> conftest.$ac_ext
7598   {0, (void *) 0}
7599 };
7600
7601 /* This works around a problem in FreeBSD linker */
7602 #ifdef FREEBSD_WORKAROUND
7603 static const void *lt_preloaded_setup() {
7604   return lt__PROGRAM__LTX_preloaded_symbols;
7605 }
7606 #endif
7607
7608 #ifdef __cplusplus
7609 }
7610 #endif
7611 _LT_EOF
7612           # Now try linking the two files.
7613           mv conftest.$ac_objext conftstm.$ac_objext
7614           lt_save_LIBS="$LIBS"
7615           lt_save_CFLAGS="$CFLAGS"
7616           LIBS="conftstm.$ac_objext"
7617           CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
7618           if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
7619   (eval $ac_link) 2>&5
7620   ac_status=$?
7621   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7622   test $ac_status = 0; } && test -s conftest${ac_exeext}; then
7623             pipe_works=yes
7624           fi
7625           LIBS="$lt_save_LIBS"
7626           CFLAGS="$lt_save_CFLAGS"
7627         else
7628           echo "cannot find nm_test_func in $nlist" >&5
7629         fi
7630       else
7631         echo "cannot find nm_test_var in $nlist" >&5
7632       fi
7633     else
7634       echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
7635     fi
7636   else
7637     echo "$progname: failed program was:" >&5
7638     cat conftest.$ac_ext >&5
7639   fi
7640   rm -rf conftest* conftst*
7641
7642   # Do not use the global_symbol_pipe unless it works.
7643   if test "$pipe_works" = yes; then
7644     break
7645   else
7646     lt_cv_sys_global_symbol_pipe=
7647   fi
7648 done
7649
7650 fi
7651
7652 if test -z "$lt_cv_sys_global_symbol_pipe"; then
7653   lt_cv_sys_global_symbol_to_cdecl=
7654 fi
7655 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
7656   { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
7657 $as_echo "failed" >&6; }
7658 else
7659   { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
7660 $as_echo "ok" >&6; }
7661 fi
7662
7663
7664
7665
7666
7667
7668
7669
7670
7671
7672
7673
7674
7675
7676
7677
7678
7679
7680
7681
7682
7683
7684 # Check whether --enable-libtool-lock was given.
7685 if test "${enable_libtool_lock+set}" = set; then :
7686   enableval=$enable_libtool_lock;
7687 fi
7688
7689 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
7690
7691 # Some flags need to be propagated to the compiler or linker for good
7692 # libtool support.
7693 case $host in
7694 ia64-*-hpux*)
7695   # Find out which ABI we are using.
7696   echo 'int i;' > conftest.$ac_ext
7697   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7698   (eval $ac_compile) 2>&5
7699   ac_status=$?
7700   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7701   test $ac_status = 0; }; then
7702     case `/usr/bin/file conftest.$ac_objext` in
7703       *ELF-32*)
7704         HPUX_IA64_MODE="32"
7705         ;;
7706       *ELF-64*)
7707         HPUX_IA64_MODE="64"
7708         ;;
7709     esac
7710   fi
7711   rm -rf conftest*
7712   ;;
7713 *-*-irix6*)
7714   # Find out which ABI we are using.
7715   echo '#line 7715 "configure"' > conftest.$ac_ext
7716   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7717   (eval $ac_compile) 2>&5
7718   ac_status=$?
7719   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7720   test $ac_status = 0; }; then
7721     if test "$lt_cv_prog_gnu_ld" = yes; then
7722       case `/usr/bin/file conftest.$ac_objext` in
7723         *32-bit*)
7724           LD="${LD-ld} -melf32bsmip"
7725           ;;
7726         *N32*)
7727           LD="${LD-ld} -melf32bmipn32"
7728           ;;
7729         *64-bit*)
7730           LD="${LD-ld} -melf64bmip"
7731         ;;
7732       esac
7733     else
7734       case `/usr/bin/file conftest.$ac_objext` in
7735         *32-bit*)
7736           LD="${LD-ld} -32"
7737           ;;
7738         *N32*)
7739           LD="${LD-ld} -n32"
7740           ;;
7741         *64-bit*)
7742           LD="${LD-ld} -64"
7743           ;;
7744       esac
7745     fi
7746   fi
7747   rm -rf conftest*
7748   ;;
7749
7750 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
7751 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
7752   # Find out which ABI we are using.
7753   echo 'int i;' > conftest.$ac_ext
7754   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7755   (eval $ac_compile) 2>&5
7756   ac_status=$?
7757   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7758   test $ac_status = 0; }; then
7759     case `/usr/bin/file conftest.o` in
7760       *32-bit*)
7761         case $host in
7762           x86_64-*kfreebsd*-gnu)
7763             LD="${LD-ld} -m elf_i386_fbsd"
7764             ;;
7765           x86_64-*linux*)
7766             LD="${LD-ld} -m elf_i386"
7767             ;;
7768           ppc64-*linux*|powerpc64-*linux*)
7769             LD="${LD-ld} -m elf32ppclinux"
7770             ;;
7771           s390x-*linux*)
7772             LD="${LD-ld} -m elf_s390"
7773             ;;
7774           sparc64-*linux*)
7775             LD="${LD-ld} -m elf32_sparc"
7776             ;;
7777         esac
7778         ;;
7779       *64-bit*)
7780         case $host in
7781           x86_64-*kfreebsd*-gnu)
7782             LD="${LD-ld} -m elf_x86_64_fbsd"
7783             ;;
7784           x86_64-*linux*)
7785             LD="${LD-ld} -m elf_x86_64"
7786             ;;
7787           ppc*-*linux*|powerpc*-*linux*)
7788             LD="${LD-ld} -m elf64ppc"
7789             ;;
7790           s390*-*linux*|s390*-*tpf*)
7791             LD="${LD-ld} -m elf64_s390"
7792             ;;
7793           sparc*-*linux*)
7794             LD="${LD-ld} -m elf64_sparc"
7795             ;;
7796         esac
7797         ;;
7798     esac
7799   fi
7800   rm -rf conftest*
7801   ;;
7802
7803 *-*-sco3.2v5*)
7804   # On SCO OpenServer 5, we need -belf to get full-featured binaries.
7805   SAVE_CFLAGS="$CFLAGS"
7806   CFLAGS="$CFLAGS -belf"
7807   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
7808 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
7809 if test "${lt_cv_cc_needs_belf+set}" = set; then :
7810   $as_echo_n "(cached) " >&6
7811 else
7812   ac_ext=c
7813 ac_cpp='$CPP $CPPFLAGS'
7814 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7815 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7816 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7817
7818      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7819 /* end confdefs.h.  */
7820
7821 int
7822 main ()
7823 {
7824
7825   ;
7826   return 0;
7827 }
7828 _ACEOF
7829 if ac_fn_c_try_link "$LINENO"; then :
7830   lt_cv_cc_needs_belf=yes
7831 else
7832   lt_cv_cc_needs_belf=no
7833 fi
7834 rm -f core conftest.err conftest.$ac_objext \
7835     conftest$ac_exeext conftest.$ac_ext
7836      ac_ext=c
7837 ac_cpp='$CPP $CPPFLAGS'
7838 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7839 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7840 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7841
7842 fi
7843 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
7844 $as_echo "$lt_cv_cc_needs_belf" >&6; }
7845   if test x"$lt_cv_cc_needs_belf" != x"yes"; then
7846     # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
7847     CFLAGS="$SAVE_CFLAGS"
7848   fi
7849   ;;
7850 sparc*-*solaris*)
7851   # Find out which ABI we are using.
7852   echo 'int i;' > conftest.$ac_ext
7853   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7854   (eval $ac_compile) 2>&5
7855   ac_status=$?
7856   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7857   test $ac_status = 0; }; then
7858     case `/usr/bin/file conftest.o` in
7859     *64-bit*)
7860       case $lt_cv_prog_gnu_ld in
7861       yes*) LD="${LD-ld} -m elf64_sparc" ;;
7862       *)
7863         if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
7864           LD="${LD-ld} -64"
7865         fi
7866         ;;
7867       esac
7868       ;;
7869     esac
7870   fi
7871   rm -rf conftest*
7872   ;;
7873 esac
7874
7875 need_locks="$enable_libtool_lock"
7876
7877
7878   case $host_os in
7879     rhapsody* | darwin*)
7880     if test -n "$ac_tool_prefix"; then
7881   # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
7882 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
7883 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7884 $as_echo_n "checking for $ac_word... " >&6; }
7885 if test "${ac_cv_prog_DSYMUTIL+set}" = set; then :
7886   $as_echo_n "(cached) " >&6
7887 else
7888   if test -n "$DSYMUTIL"; then
7889   ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
7890 else
7891 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7892 for as_dir in $PATH
7893 do
7894   IFS=$as_save_IFS
7895   test -z "$as_dir" && as_dir=.
7896     for ac_exec_ext in '' $ac_executable_extensions; do
7897   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7898     ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
7899     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7900     break 2
7901   fi
7902 done
7903   done
7904 IFS=$as_save_IFS
7905
7906 fi
7907 fi
7908 DSYMUTIL=$ac_cv_prog_DSYMUTIL
7909 if test -n "$DSYMUTIL"; then
7910   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
7911 $as_echo "$DSYMUTIL" >&6; }
7912 else
7913   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7914 $as_echo "no" >&6; }
7915 fi
7916
7917
7918 fi
7919 if test -z "$ac_cv_prog_DSYMUTIL"; then
7920   ac_ct_DSYMUTIL=$DSYMUTIL
7921   # Extract the first word of "dsymutil", so it can be a program name with args.
7922 set dummy dsymutil; ac_word=$2
7923 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7924 $as_echo_n "checking for $ac_word... " >&6; }
7925 if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then :
7926   $as_echo_n "(cached) " >&6
7927 else
7928   if test -n "$ac_ct_DSYMUTIL"; then
7929   ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
7930 else
7931 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7932 for as_dir in $PATH
7933 do
7934   IFS=$as_save_IFS
7935   test -z "$as_dir" && as_dir=.
7936     for ac_exec_ext in '' $ac_executable_extensions; do
7937   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7938     ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
7939     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7940     break 2
7941   fi
7942 done
7943   done
7944 IFS=$as_save_IFS
7945
7946 fi
7947 fi
7948 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
7949 if test -n "$ac_ct_DSYMUTIL"; then
7950   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
7951 $as_echo "$ac_ct_DSYMUTIL" >&6; }
7952 else
7953   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7954 $as_echo "no" >&6; }
7955 fi
7956
7957   if test "x$ac_ct_DSYMUTIL" = x; then
7958     DSYMUTIL=":"
7959   else
7960     case $cross_compiling:$ac_tool_warned in
7961 yes:)
7962 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7963 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7964 ac_tool_warned=yes ;;
7965 esac
7966     DSYMUTIL=$ac_ct_DSYMUTIL
7967   fi
7968 else
7969   DSYMUTIL="$ac_cv_prog_DSYMUTIL"
7970 fi
7971
7972     if test -n "$ac_tool_prefix"; then
7973   # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
7974 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
7975 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7976 $as_echo_n "checking for $ac_word... " >&6; }
7977 if test "${ac_cv_prog_NMEDIT+set}" = set; then :
7978   $as_echo_n "(cached) " >&6
7979 else
7980   if test -n "$NMEDIT"; then
7981   ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
7982 else
7983 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7984 for as_dir in $PATH
7985 do
7986   IFS=$as_save_IFS
7987   test -z "$as_dir" && as_dir=.
7988     for ac_exec_ext in '' $ac_executable_extensions; do
7989   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7990     ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
7991     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7992     break 2
7993   fi
7994 done
7995   done
7996 IFS=$as_save_IFS
7997
7998 fi
7999 fi
8000 NMEDIT=$ac_cv_prog_NMEDIT
8001 if test -n "$NMEDIT"; then
8002   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
8003 $as_echo "$NMEDIT" >&6; }
8004 else
8005   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8006 $as_echo "no" >&6; }
8007 fi
8008
8009
8010 fi
8011 if test -z "$ac_cv_prog_NMEDIT"; then
8012   ac_ct_NMEDIT=$NMEDIT
8013   # Extract the first word of "nmedit", so it can be a program name with args.
8014 set dummy nmedit; ac_word=$2
8015 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8016 $as_echo_n "checking for $ac_word... " >&6; }
8017 if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then :
8018   $as_echo_n "(cached) " >&6
8019 else
8020   if test -n "$ac_ct_NMEDIT"; then
8021   ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
8022 else
8023 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8024 for as_dir in $PATH
8025 do
8026   IFS=$as_save_IFS
8027   test -z "$as_dir" && as_dir=.
8028     for ac_exec_ext in '' $ac_executable_extensions; do
8029   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8030     ac_cv_prog_ac_ct_NMEDIT="nmedit"
8031     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8032     break 2
8033   fi
8034 done
8035   done
8036 IFS=$as_save_IFS
8037
8038 fi
8039 fi
8040 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
8041 if test -n "$ac_ct_NMEDIT"; then
8042   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
8043 $as_echo "$ac_ct_NMEDIT" >&6; }
8044 else
8045   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8046 $as_echo "no" >&6; }
8047 fi
8048
8049   if test "x$ac_ct_NMEDIT" = x; then
8050     NMEDIT=":"
8051   else
8052     case $cross_compiling:$ac_tool_warned in
8053 yes:)
8054 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8055 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8056 ac_tool_warned=yes ;;
8057 esac
8058     NMEDIT=$ac_ct_NMEDIT
8059   fi
8060 else
8061   NMEDIT="$ac_cv_prog_NMEDIT"
8062 fi
8063
8064     if test -n "$ac_tool_prefix"; then
8065   # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
8066 set dummy ${ac_tool_prefix}lipo; ac_word=$2
8067 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8068 $as_echo_n "checking for $ac_word... " >&6; }
8069 if test "${ac_cv_prog_LIPO+set}" = set; then :
8070   $as_echo_n "(cached) " >&6
8071 else
8072   if test -n "$LIPO"; then
8073   ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
8074 else
8075 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8076 for as_dir in $PATH
8077 do
8078   IFS=$as_save_IFS
8079   test -z "$as_dir" && as_dir=.
8080     for ac_exec_ext in '' $ac_executable_extensions; do
8081   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8082     ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
8083     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8084     break 2
8085   fi
8086 done
8087   done
8088 IFS=$as_save_IFS
8089
8090 fi
8091 fi
8092 LIPO=$ac_cv_prog_LIPO
8093 if test -n "$LIPO"; then
8094   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
8095 $as_echo "$LIPO" >&6; }
8096 else
8097   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8098 $as_echo "no" >&6; }
8099 fi
8100
8101
8102 fi
8103 if test -z "$ac_cv_prog_LIPO"; then
8104   ac_ct_LIPO=$LIPO
8105   # Extract the first word of "lipo", so it can be a program name with args.
8106 set dummy lipo; ac_word=$2
8107 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8108 $as_echo_n "checking for $ac_word... " >&6; }
8109 if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then :
8110   $as_echo_n "(cached) " >&6
8111 else
8112   if test -n "$ac_ct_LIPO"; then
8113   ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
8114 else
8115 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8116 for as_dir in $PATH
8117 do
8118   IFS=$as_save_IFS
8119   test -z "$as_dir" && as_dir=.
8120     for ac_exec_ext in '' $ac_executable_extensions; do
8121   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8122     ac_cv_prog_ac_ct_LIPO="lipo"
8123     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8124     break 2
8125   fi
8126 done
8127   done
8128 IFS=$as_save_IFS
8129
8130 fi
8131 fi
8132 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
8133 if test -n "$ac_ct_LIPO"; then
8134   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
8135 $as_echo "$ac_ct_LIPO" >&6; }
8136 else
8137   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8138 $as_echo "no" >&6; }
8139 fi
8140
8141   if test "x$ac_ct_LIPO" = x; then
8142     LIPO=":"
8143   else
8144     case $cross_compiling:$ac_tool_warned in
8145 yes:)
8146 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8147 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8148 ac_tool_warned=yes ;;
8149 esac
8150     LIPO=$ac_ct_LIPO
8151   fi
8152 else
8153   LIPO="$ac_cv_prog_LIPO"
8154 fi
8155
8156     if test -n "$ac_tool_prefix"; then
8157   # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
8158 set dummy ${ac_tool_prefix}otool; ac_word=$2
8159 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8160 $as_echo_n "checking for $ac_word... " >&6; }
8161 if test "${ac_cv_prog_OTOOL+set}" = set; then :
8162   $as_echo_n "(cached) " >&6
8163 else
8164   if test -n "$OTOOL"; then
8165   ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
8166 else
8167 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8168 for as_dir in $PATH
8169 do
8170   IFS=$as_save_IFS
8171   test -z "$as_dir" && as_dir=.
8172     for ac_exec_ext in '' $ac_executable_extensions; do
8173   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8174     ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
8175     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8176     break 2
8177   fi
8178 done
8179   done
8180 IFS=$as_save_IFS
8181
8182 fi
8183 fi
8184 OTOOL=$ac_cv_prog_OTOOL
8185 if test -n "$OTOOL"; then
8186   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
8187 $as_echo "$OTOOL" >&6; }
8188 else
8189   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8190 $as_echo "no" >&6; }
8191 fi
8192
8193
8194 fi
8195 if test -z "$ac_cv_prog_OTOOL"; then
8196   ac_ct_OTOOL=$OTOOL
8197   # Extract the first word of "otool", so it can be a program name with args.
8198 set dummy otool; ac_word=$2
8199 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8200 $as_echo_n "checking for $ac_word... " >&6; }
8201 if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then :
8202   $as_echo_n "(cached) " >&6
8203 else
8204   if test -n "$ac_ct_OTOOL"; then
8205   ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
8206 else
8207 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8208 for as_dir in $PATH
8209 do
8210   IFS=$as_save_IFS
8211   test -z "$as_dir" && as_dir=.
8212     for ac_exec_ext in '' $ac_executable_extensions; do
8213   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8214     ac_cv_prog_ac_ct_OTOOL="otool"
8215     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8216     break 2
8217   fi
8218 done
8219   done
8220 IFS=$as_save_IFS
8221
8222 fi
8223 fi
8224 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
8225 if test -n "$ac_ct_OTOOL"; then
8226   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
8227 $as_echo "$ac_ct_OTOOL" >&6; }
8228 else
8229   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8230 $as_echo "no" >&6; }
8231 fi
8232
8233   if test "x$ac_ct_OTOOL" = x; then
8234     OTOOL=":"
8235   else
8236     case $cross_compiling:$ac_tool_warned in
8237 yes:)
8238 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8239 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8240 ac_tool_warned=yes ;;
8241 esac
8242     OTOOL=$ac_ct_OTOOL
8243   fi
8244 else
8245   OTOOL="$ac_cv_prog_OTOOL"
8246 fi
8247
8248     if test -n "$ac_tool_prefix"; then
8249   # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
8250 set dummy ${ac_tool_prefix}otool64; ac_word=$2
8251 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8252 $as_echo_n "checking for $ac_word... " >&6; }
8253 if test "${ac_cv_prog_OTOOL64+set}" = set; then :
8254   $as_echo_n "(cached) " >&6
8255 else
8256   if test -n "$OTOOL64"; then
8257   ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
8258 else
8259 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8260 for as_dir in $PATH
8261 do
8262   IFS=$as_save_IFS
8263   test -z "$as_dir" && as_dir=.
8264     for ac_exec_ext in '' $ac_executable_extensions; do
8265   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8266     ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
8267     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8268     break 2
8269   fi
8270 done
8271   done
8272 IFS=$as_save_IFS
8273
8274 fi
8275 fi
8276 OTOOL64=$ac_cv_prog_OTOOL64
8277 if test -n "$OTOOL64"; then
8278   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
8279 $as_echo "$OTOOL64" >&6; }
8280 else
8281   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8282 $as_echo "no" >&6; }
8283 fi
8284
8285
8286 fi
8287 if test -z "$ac_cv_prog_OTOOL64"; then
8288   ac_ct_OTOOL64=$OTOOL64
8289   # Extract the first word of "otool64", so it can be a program name with args.
8290 set dummy otool64; ac_word=$2
8291 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8292 $as_echo_n "checking for $ac_word... " >&6; }
8293 if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then :
8294   $as_echo_n "(cached) " >&6
8295 else
8296   if test -n "$ac_ct_OTOOL64"; then
8297   ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
8298 else
8299 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8300 for as_dir in $PATH
8301 do
8302   IFS=$as_save_IFS
8303   test -z "$as_dir" && as_dir=.
8304     for ac_exec_ext in '' $ac_executable_extensions; do
8305   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8306     ac_cv_prog_ac_ct_OTOOL64="otool64"
8307     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8308     break 2
8309   fi
8310 done
8311   done
8312 IFS=$as_save_IFS
8313
8314 fi
8315 fi
8316 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
8317 if test -n "$ac_ct_OTOOL64"; then
8318   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
8319 $as_echo "$ac_ct_OTOOL64" >&6; }
8320 else
8321   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8322 $as_echo "no" >&6; }
8323 fi
8324
8325   if test "x$ac_ct_OTOOL64" = x; then
8326     OTOOL64=":"
8327   else
8328     case $cross_compiling:$ac_tool_warned in
8329 yes:)
8330 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8331 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8332 ac_tool_warned=yes ;;
8333 esac
8334     OTOOL64=$ac_ct_OTOOL64
8335   fi
8336 else
8337   OTOOL64="$ac_cv_prog_OTOOL64"
8338 fi
8339
8340
8341
8342
8343
8344
8345
8346
8347
8348
8349
8350
8351
8352
8353
8354
8355
8356
8357
8358
8359
8360
8361
8362
8363
8364
8365
8366     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
8367 $as_echo_n "checking for -single_module linker flag... " >&6; }
8368 if test "${lt_cv_apple_cc_single_mod+set}" = set; then :
8369   $as_echo_n "(cached) " >&6
8370 else
8371   lt_cv_apple_cc_single_mod=no
8372       if test -z "${LT_MULTI_MODULE}"; then
8373         # By default we will add the -single_module flag. You can override
8374         # by either setting the environment variable LT_MULTI_MODULE
8375         # non-empty at configure time, or by adding -multi_module to the
8376         # link flags.
8377         rm -rf libconftest.dylib*
8378         echo "int foo(void){return 1;}" > conftest.c
8379         echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8380 -dynamiclib -Wl,-single_module conftest.c" >&5
8381         $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8382           -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
8383         _lt_result=$?
8384         if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
8385           lt_cv_apple_cc_single_mod=yes
8386         else
8387           cat conftest.err >&5
8388         fi
8389         rm -rf libconftest.dylib*
8390         rm -f conftest.*
8391       fi
8392 fi
8393 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
8394 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
8395     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
8396 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
8397 if test "${lt_cv_ld_exported_symbols_list+set}" = set; then :
8398   $as_echo_n "(cached) " >&6
8399 else
8400   lt_cv_ld_exported_symbols_list=no
8401       save_LDFLAGS=$LDFLAGS
8402       echo "_main" > conftest.sym
8403       LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
8404       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8405 /* end confdefs.h.  */
8406
8407 int
8408 main ()
8409 {
8410
8411   ;
8412   return 0;
8413 }
8414 _ACEOF
8415 if ac_fn_c_try_link "$LINENO"; then :
8416   lt_cv_ld_exported_symbols_list=yes
8417 else
8418   lt_cv_ld_exported_symbols_list=no
8419 fi
8420 rm -f core conftest.err conftest.$ac_objext \
8421     conftest$ac_exeext conftest.$ac_ext
8422         LDFLAGS="$save_LDFLAGS"
8423
8424 fi
8425 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
8426 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
8427     case $host_os in
8428     rhapsody* | darwin1.[012])
8429       _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
8430     darwin1.*)
8431       _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
8432     darwin*) # darwin 5.x on
8433       # if running on 10.5 or later, the deployment target defaults
8434       # to the OS version, if on x86, and 10.4, the deployment
8435       # target defaults to 10.4. Don't you love it?
8436       case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
8437         10.0,*86*-darwin8*|10.0,*-darwin[91]*)
8438           _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
8439         10.[012]*)
8440           _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
8441         10.*)
8442           _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
8443       esac
8444     ;;
8445   esac
8446     if test "$lt_cv_apple_cc_single_mod" = "yes"; then
8447       _lt_dar_single_mod='$single_module'
8448     fi
8449     if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
8450       _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
8451     else
8452       _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
8453     fi
8454     if test "$DSYMUTIL" != ":"; then
8455       _lt_dsymutil='~$DSYMUTIL $lib || :'
8456     else
8457       _lt_dsymutil=
8458     fi
8459     ;;
8460   esac
8461
8462 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
8463 $as_echo_n "checking for ANSI C header files... " >&6; }
8464 if test "${ac_cv_header_stdc+set}" = set; then :
8465   $as_echo_n "(cached) " >&6
8466 else
8467   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8468 /* end confdefs.h.  */
8469 #include <stdlib.h>
8470 #include <stdarg.h>
8471 #include <string.h>
8472 #include <float.h>
8473
8474 int
8475 main ()
8476 {
8477
8478   ;
8479   return 0;
8480 }
8481 _ACEOF
8482 if ac_fn_c_try_compile "$LINENO"; then :
8483   ac_cv_header_stdc=yes
8484 else
8485   ac_cv_header_stdc=no
8486 fi
8487 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8488
8489 if test $ac_cv_header_stdc = yes; then
8490   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
8491   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8492 /* end confdefs.h.  */
8493 #include <string.h>
8494
8495 _ACEOF
8496 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8497   $EGREP "memchr" >/dev/null 2>&1; then :
8498
8499 else
8500   ac_cv_header_stdc=no
8501 fi
8502 rm -f conftest*
8503
8504 fi
8505
8506 if test $ac_cv_header_stdc = yes; then
8507   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
8508   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8509 /* end confdefs.h.  */
8510 #include <stdlib.h>
8511
8512 _ACEOF
8513 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8514   $EGREP "free" >/dev/null 2>&1; then :
8515
8516 else
8517   ac_cv_header_stdc=no
8518 fi
8519 rm -f conftest*
8520
8521 fi
8522
8523 if test $ac_cv_header_stdc = yes; then
8524   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
8525   if test "$cross_compiling" = yes; then :
8526   :
8527 else
8528   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8529 /* end confdefs.h.  */
8530 #include <ctype.h>
8531 #include <stdlib.h>
8532 #if ((' ' & 0x0FF) == 0x020)
8533 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
8534 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
8535 #else
8536 # define ISLOWER(c) \
8537                    (('a' <= (c) && (c) <= 'i') \
8538                      || ('j' <= (c) && (c) <= 'r') \
8539                      || ('s' <= (c) && (c) <= 'z'))
8540 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
8541 #endif
8542
8543 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
8544 int
8545 main ()
8546 {
8547   int i;
8548   for (i = 0; i < 256; i++)
8549     if (XOR (islower (i), ISLOWER (i))
8550         || toupper (i) != TOUPPER (i))
8551       return 2;
8552   return 0;
8553 }
8554 _ACEOF
8555 if ac_fn_c_try_run "$LINENO"; then :
8556
8557 else
8558   ac_cv_header_stdc=no
8559 fi
8560 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8561   conftest.$ac_objext conftest.beam conftest.$ac_ext
8562 fi
8563
8564 fi
8565 fi
8566 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
8567 $as_echo "$ac_cv_header_stdc" >&6; }
8568 if test $ac_cv_header_stdc = yes; then
8569
8570 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
8571
8572 fi
8573
8574 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
8575 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
8576                   inttypes.h stdint.h unistd.h
8577 do :
8578   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
8579 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
8580 "
8581 eval as_val=\$$as_ac_Header
8582    if test "x$as_val" = x""yes; then :
8583   cat >>confdefs.h <<_ACEOF
8584 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
8585 _ACEOF
8586
8587 fi
8588
8589 done
8590
8591
8592 for ac_header in dlfcn.h
8593 do :
8594   ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
8595 "
8596 if test "x$ac_cv_header_dlfcn_h" = x""yes; then :
8597   cat >>confdefs.h <<_ACEOF
8598 #define HAVE_DLFCN_H 1
8599 _ACEOF
8600
8601 fi
8602
8603 done
8604
8605
8606
8607 ac_ext=cpp
8608 ac_cpp='$CXXCPP $CPPFLAGS'
8609 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8610 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8611 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
8612 if test -z "$CXX"; then
8613   if test -n "$CCC"; then
8614     CXX=$CCC
8615   else
8616     if test -n "$ac_tool_prefix"; then
8617   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
8618   do
8619     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
8620 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
8621 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8622 $as_echo_n "checking for $ac_word... " >&6; }
8623 if test "${ac_cv_prog_CXX+set}" = set; then :
8624   $as_echo_n "(cached) " >&6
8625 else
8626   if test -n "$CXX"; then
8627   ac_cv_prog_CXX="$CXX" # Let the user override the test.
8628 else
8629 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8630 for as_dir in $PATH
8631 do
8632   IFS=$as_save_IFS
8633   test -z "$as_dir" && as_dir=.
8634     for ac_exec_ext in '' $ac_executable_extensions; do
8635   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8636     ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
8637     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8638     break 2
8639   fi
8640 done
8641   done
8642 IFS=$as_save_IFS
8643
8644 fi
8645 fi
8646 CXX=$ac_cv_prog_CXX
8647 if test -n "$CXX"; then
8648   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
8649 $as_echo "$CXX" >&6; }
8650 else
8651   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8652 $as_echo "no" >&6; }
8653 fi
8654
8655
8656     test -n "$CXX" && break
8657   done
8658 fi
8659 if test -z "$CXX"; then
8660   ac_ct_CXX=$CXX
8661   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
8662 do
8663   # Extract the first word of "$ac_prog", so it can be a program name with args.
8664 set dummy $ac_prog; ac_word=$2
8665 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8666 $as_echo_n "checking for $ac_word... " >&6; }
8667 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then :
8668   $as_echo_n "(cached) " >&6
8669 else
8670   if test -n "$ac_ct_CXX"; then
8671   ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
8672 else
8673 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8674 for as_dir in $PATH
8675 do
8676   IFS=$as_save_IFS
8677   test -z "$as_dir" && as_dir=.
8678     for ac_exec_ext in '' $ac_executable_extensions; do
8679   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8680     ac_cv_prog_ac_ct_CXX="$ac_prog"
8681     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8682     break 2
8683   fi
8684 done
8685   done
8686 IFS=$as_save_IFS
8687
8688 fi
8689 fi
8690 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
8691 if test -n "$ac_ct_CXX"; then
8692   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
8693 $as_echo "$ac_ct_CXX" >&6; }
8694 else
8695   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8696 $as_echo "no" >&6; }
8697 fi
8698
8699
8700   test -n "$ac_ct_CXX" && break
8701 done
8702
8703   if test "x$ac_ct_CXX" = x; then
8704     CXX="g++"
8705   else
8706     case $cross_compiling:$ac_tool_warned in
8707 yes:)
8708 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8709 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8710 ac_tool_warned=yes ;;
8711 esac
8712     CXX=$ac_ct_CXX
8713   fi
8714 fi
8715
8716   fi
8717 fi
8718 # Provide some information about the compiler.
8719 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
8720 set X $ac_compile
8721 ac_compiler=$2
8722 for ac_option in --version -v -V -qversion; do
8723   { { ac_try="$ac_compiler $ac_option >&5"
8724 case "(($ac_try" in
8725   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8726   *) ac_try_echo=$ac_try;;
8727 esac
8728 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
8729 $as_echo "$ac_try_echo"; } >&5
8730   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
8731   ac_status=$?
8732   if test -s conftest.err; then
8733     sed '10a\
8734 ... rest of stderr output deleted ...
8735          10q' conftest.err >conftest.er1
8736     cat conftest.er1 >&5
8737   fi
8738   rm -f conftest.er1 conftest.err
8739   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8740   test $ac_status = 0; }
8741 done
8742
8743 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
8744 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
8745 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then :
8746   $as_echo_n "(cached) " >&6
8747 else
8748   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8749 /* end confdefs.h.  */
8750
8751 int
8752 main ()
8753 {
8754 #ifndef __GNUC__
8755        choke me
8756 #endif
8757
8758   ;
8759   return 0;
8760 }
8761 _ACEOF
8762 if ac_fn_cxx_try_compile "$LINENO"; then :
8763   ac_compiler_gnu=yes
8764 else
8765   ac_compiler_gnu=no
8766 fi
8767 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8768 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
8769
8770 fi
8771 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
8772 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
8773 if test $ac_compiler_gnu = yes; then
8774   GXX=yes
8775 else
8776   GXX=
8777 fi
8778 ac_test_CXXFLAGS=${CXXFLAGS+set}
8779 ac_save_CXXFLAGS=$CXXFLAGS
8780 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
8781 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
8782 if test "${ac_cv_prog_cxx_g+set}" = set; then :
8783   $as_echo_n "(cached) " >&6
8784 else
8785   ac_save_cxx_werror_flag=$ac_cxx_werror_flag
8786    ac_cxx_werror_flag=yes
8787    ac_cv_prog_cxx_g=no
8788    CXXFLAGS="-g"
8789    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8790 /* end confdefs.h.  */
8791
8792 int
8793 main ()
8794 {
8795
8796   ;
8797   return 0;
8798 }
8799 _ACEOF
8800 if ac_fn_cxx_try_compile "$LINENO"; then :
8801   ac_cv_prog_cxx_g=yes
8802 else
8803   CXXFLAGS=""
8804       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8805 /* end confdefs.h.  */
8806
8807 int
8808 main ()
8809 {
8810
8811   ;
8812   return 0;
8813 }
8814 _ACEOF
8815 if ac_fn_cxx_try_compile "$LINENO"; then :
8816
8817 else
8818   ac_cxx_werror_flag=$ac_save_cxx_werror_flag
8819          CXXFLAGS="-g"
8820          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8821 /* end confdefs.h.  */
8822
8823 int
8824 main ()
8825 {
8826
8827   ;
8828   return 0;
8829 }
8830 _ACEOF
8831 if ac_fn_cxx_try_compile "$LINENO"; then :
8832   ac_cv_prog_cxx_g=yes
8833 fi
8834 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8835 fi
8836 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8837 fi
8838 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8839    ac_cxx_werror_flag=$ac_save_cxx_werror_flag
8840 fi
8841 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
8842 $as_echo "$ac_cv_prog_cxx_g" >&6; }
8843 if test "$ac_test_CXXFLAGS" = set; then
8844   CXXFLAGS=$ac_save_CXXFLAGS
8845 elif test $ac_cv_prog_cxx_g = yes; then
8846   if test "$GXX" = yes; then
8847     CXXFLAGS="-g -O2"
8848   else
8849     CXXFLAGS="-g"
8850   fi
8851 else
8852   if test "$GXX" = yes; then
8853     CXXFLAGS="-O2"
8854   else
8855     CXXFLAGS=
8856   fi
8857 fi
8858 ac_ext=c
8859 ac_cpp='$CPP $CPPFLAGS'
8860 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8861 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8862 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8863
8864 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
8865     ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
8866     (test "X$CXX" != "Xg++"))) ; then
8867   ac_ext=cpp
8868 ac_cpp='$CXXCPP $CPPFLAGS'
8869 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8870 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8871 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
8872 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
8873 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
8874 if test -z "$CXXCPP"; then
8875   if test "${ac_cv_prog_CXXCPP+set}" = set; then :
8876   $as_echo_n "(cached) " >&6
8877 else
8878       # Double quotes because CXXCPP needs to be expanded
8879     for CXXCPP in "$CXX -E" "/lib/cpp"
8880     do
8881       ac_preproc_ok=false
8882 for ac_cxx_preproc_warn_flag in '' yes
8883 do
8884   # Use a header file that comes with gcc, so configuring glibc
8885   # with a fresh cross-compiler works.
8886   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8887   # <limits.h> exists even on freestanding compilers.
8888   # On the NeXT, cc -E runs the code through the compiler's parser,
8889   # not just through cpp. "Syntax error" is here to catch this case.
8890   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8891 /* end confdefs.h.  */
8892 #ifdef __STDC__
8893 # include <limits.h>
8894 #else
8895 # include <assert.h>
8896 #endif
8897                      Syntax error
8898 _ACEOF
8899 if ac_fn_cxx_try_cpp "$LINENO"; then :
8900
8901 else
8902   # Broken: fails on valid input.
8903 continue
8904 fi
8905 rm -f conftest.err conftest.$ac_ext
8906
8907   # OK, works on sane cases.  Now check whether nonexistent headers
8908   # can be detected and how.
8909   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8910 /* end confdefs.h.  */
8911 #include <ac_nonexistent.h>
8912 _ACEOF
8913 if ac_fn_cxx_try_cpp "$LINENO"; then :
8914   # Broken: success on invalid input.
8915 continue
8916 else
8917   # Passes both tests.
8918 ac_preproc_ok=:
8919 break
8920 fi
8921 rm -f conftest.err conftest.$ac_ext
8922
8923 done
8924 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
8925 rm -f conftest.err conftest.$ac_ext
8926 if $ac_preproc_ok; then :
8927   break
8928 fi
8929
8930     done
8931     ac_cv_prog_CXXCPP=$CXXCPP
8932
8933 fi
8934   CXXCPP=$ac_cv_prog_CXXCPP
8935 else
8936   ac_cv_prog_CXXCPP=$CXXCPP
8937 fi
8938 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
8939 $as_echo "$CXXCPP" >&6; }
8940 ac_preproc_ok=false
8941 for ac_cxx_preproc_warn_flag in '' yes
8942 do
8943   # Use a header file that comes with gcc, so configuring glibc
8944   # with a fresh cross-compiler works.
8945   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8946   # <limits.h> exists even on freestanding compilers.
8947   # On the NeXT, cc -E runs the code through the compiler's parser,
8948   # not just through cpp. "Syntax error" is here to catch this case.
8949   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8950 /* end confdefs.h.  */
8951 #ifdef __STDC__
8952 # include <limits.h>
8953 #else
8954 # include <assert.h>
8955 #endif
8956                      Syntax error
8957 _ACEOF
8958 if ac_fn_cxx_try_cpp "$LINENO"; then :
8959
8960 else
8961   # Broken: fails on valid input.
8962 continue
8963 fi
8964 rm -f conftest.err conftest.$ac_ext
8965
8966   # OK, works on sane cases.  Now check whether nonexistent headers
8967   # can be detected and how.
8968   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8969 /* end confdefs.h.  */
8970 #include <ac_nonexistent.h>
8971 _ACEOF
8972 if ac_fn_cxx_try_cpp "$LINENO"; then :
8973   # Broken: success on invalid input.
8974 continue
8975 else
8976   # Passes both tests.
8977 ac_preproc_ok=:
8978 break
8979 fi
8980 rm -f conftest.err conftest.$ac_ext
8981
8982 done
8983 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
8984 rm -f conftest.err conftest.$ac_ext
8985 if $ac_preproc_ok; then :
8986
8987 else
8988   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
8989 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
8990 _lt_caught_CXX_error=yes; }
8991 fi
8992
8993 ac_ext=c
8994 ac_cpp='$CPP $CPPFLAGS'
8995 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8996 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8997 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8998
8999 else
9000   _lt_caught_CXX_error=yes
9001 fi
9002
9003
9004
9005
9006
9007 # Set options
9008 # Check whether --enable-shared was given.
9009 if test "${enable_shared+set}" = set; then :
9010   enableval=$enable_shared; p=${PACKAGE-default}
9011     case $enableval in
9012     yes) enable_shared=yes ;;
9013     no) enable_shared=no ;;
9014     *)
9015       enable_shared=no
9016       # Look at the argument we got.  We use all the common list separators.
9017       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9018       for pkg in $enableval; do
9019         IFS="$lt_save_ifs"
9020         if test "X$pkg" = "X$p"; then
9021           enable_shared=yes
9022         fi
9023       done
9024       IFS="$lt_save_ifs"
9025       ;;
9026     esac
9027 else
9028   enable_shared=yes
9029 fi
9030
9031
9032
9033
9034
9035
9036
9037 # Check whether --enable-static was given.
9038 if test "${enable_static+set}" = set; then :
9039   enableval=$enable_static; p=${PACKAGE-default}
9040     case $enableval in
9041     yes) enable_static=yes ;;
9042     no) enable_static=no ;;
9043     *)
9044      enable_static=no
9045       # Look at the argument we got.  We use all the common list separators.
9046       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9047       for pkg in $enableval; do
9048         IFS="$lt_save_ifs"
9049         if test "X$pkg" = "X$p"; then
9050           enable_static=yes
9051         fi
9052       done
9053       IFS="$lt_save_ifs"
9054       ;;
9055     esac
9056 else
9057   enable_static=no
9058 fi
9059
9060
9061
9062
9063
9064
9065
9066
9067
9068
9069         enable_dlopen=no
9070
9071
9072   enable_win32_dll=no
9073
9074
9075
9076
9077
9078 # Check whether --with-pic was given.
9079 if test "${with_pic+set}" = set; then :
9080   withval=$with_pic; pic_mode="$withval"
9081 else
9082   pic_mode=default
9083 fi
9084
9085
9086 test -z "$pic_mode" && pic_mode=default
9087
9088
9089
9090
9091
9092
9093
9094   # Check whether --enable-fast-install was given.
9095 if test "${enable_fast_install+set}" = set; then :
9096   enableval=$enable_fast_install; p=${PACKAGE-default}
9097     case $enableval in
9098     yes) enable_fast_install=yes ;;
9099     no) enable_fast_install=no ;;
9100     *)
9101       enable_fast_install=no
9102       # Look at the argument we got.  We use all the common list separators.
9103       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9104       for pkg in $enableval; do
9105         IFS="$lt_save_ifs"
9106         if test "X$pkg" = "X$p"; then
9107           enable_fast_install=yes
9108         fi
9109       done
9110       IFS="$lt_save_ifs"
9111       ;;
9112     esac
9113 else
9114   enable_fast_install=yes
9115 fi
9116
9117
9118
9119
9120
9121
9122
9123
9124
9125
9126
9127 # This can be used to rebuild libtool when needed
9128 LIBTOOL_DEPS="$ltmain"
9129
9130 # Always use our own libtool.
9131 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
9132
9133
9134
9135
9136
9137
9138
9139
9140
9141
9142
9143
9144
9145
9146
9147
9148
9149
9150
9151
9152
9153
9154
9155
9156
9157 test -z "$LN_S" && LN_S="ln -s"
9158
9159
9160
9161
9162
9163
9164
9165
9166
9167
9168
9169
9170
9171
9172 if test -n "${ZSH_VERSION+set}" ; then
9173    setopt NO_GLOB_SUBST
9174 fi
9175
9176 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
9177 $as_echo_n "checking for objdir... " >&6; }
9178 if test "${lt_cv_objdir+set}" = set; then :
9179   $as_echo_n "(cached) " >&6
9180 else
9181   rm -f .libs 2>/dev/null
9182 mkdir .libs 2>/dev/null
9183 if test -d .libs; then
9184   lt_cv_objdir=.libs
9185 else
9186   # MS-DOS does not allow filenames that begin with a dot.
9187   lt_cv_objdir=_libs
9188 fi
9189 rmdir .libs 2>/dev/null
9190 fi
9191 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
9192 $as_echo "$lt_cv_objdir" >&6; }
9193 objdir=$lt_cv_objdir
9194
9195
9196
9197
9198
9199 cat >>confdefs.h <<_ACEOF
9200 #define LT_OBJDIR "$lt_cv_objdir/"
9201 _ACEOF
9202
9203
9204
9205
9206
9207
9208
9209
9210
9211
9212
9213
9214
9215
9216
9217
9218
9219 case $host_os in
9220 aix3*)
9221   # AIX sometimes has problems with the GCC collect2 program.  For some
9222   # reason, if we set the COLLECT_NAMES environment variable, the problems
9223   # vanish in a puff of smoke.
9224   if test "X${COLLECT_NAMES+set}" != Xset; then
9225     COLLECT_NAMES=
9226     export COLLECT_NAMES
9227   fi
9228   ;;
9229 esac
9230
9231 # Sed substitution that helps us do robust quoting.  It backslashifies
9232 # metacharacters that are still active within double-quoted strings.
9233 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
9234
9235 # Same as above, but do not quote variable references.
9236 double_quote_subst='s/\(["`\\]\)/\\\1/g'
9237
9238 # Sed substitution to delay expansion of an escaped shell variable in a
9239 # double_quote_subst'ed string.
9240 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
9241
9242 # Sed substitution to delay expansion of an escaped single quote.
9243 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
9244
9245 # Sed substitution to avoid accidental globbing in evaled expressions
9246 no_glob_subst='s/\*/\\\*/g'
9247
9248 # Global variables:
9249 ofile=libtool
9250 can_build_shared=yes
9251
9252 # All known linkers require a `.a' archive for static linking (except MSVC,
9253 # which needs '.lib').
9254 libext=a
9255
9256 with_gnu_ld="$lt_cv_prog_gnu_ld"
9257
9258 old_CC="$CC"
9259 old_CFLAGS="$CFLAGS"
9260
9261 # Set sane defaults for various variables
9262 test -z "$CC" && CC=cc
9263 test -z "$LTCC" && LTCC=$CC
9264 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
9265 test -z "$LD" && LD=ld
9266 test -z "$ac_objext" && ac_objext=o
9267
9268 for cc_temp in $compiler""; do
9269   case $cc_temp in
9270     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
9271     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
9272     \-*) ;;
9273     *) break;;
9274   esac
9275 done
9276 cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
9277
9278
9279 # Only perform the check for file, if the check method requires it
9280 test -z "$MAGIC_CMD" && MAGIC_CMD=file
9281 case $deplibs_check_method in
9282 file_magic*)
9283   if test "$file_magic_cmd" = '$MAGIC_CMD'; then
9284     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
9285 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
9286 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
9287   $as_echo_n "(cached) " >&6
9288 else
9289   case $MAGIC_CMD in
9290 [\\/*] |  ?:[\\/]*)
9291   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
9292   ;;
9293 *)
9294   lt_save_MAGIC_CMD="$MAGIC_CMD"
9295   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
9296   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
9297   for ac_dir in $ac_dummy; do
9298     IFS="$lt_save_ifs"
9299     test -z "$ac_dir" && ac_dir=.
9300     if test -f $ac_dir/${ac_tool_prefix}file; then
9301       lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
9302       if test -n "$file_magic_test_file"; then
9303         case $deplibs_check_method in
9304         "file_magic "*)
9305           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
9306           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9307           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
9308             $EGREP "$file_magic_regex" > /dev/null; then
9309             :
9310           else
9311             cat <<_LT_EOF 1>&2
9312
9313 *** Warning: the command libtool uses to detect shared libraries,
9314 *** $file_magic_cmd, produces output that libtool cannot recognize.
9315 *** The result is that libtool may fail to recognize shared libraries
9316 *** as such.  This will affect the creation of libtool libraries that
9317 *** depend on shared libraries, but programs linked with such libtool
9318 *** libraries will work regardless of this problem.  Nevertheless, you
9319 *** may want to report the problem to your system manager and/or to
9320 *** bug-libtool@gnu.org
9321
9322 _LT_EOF
9323           fi ;;
9324         esac
9325       fi
9326       break
9327     fi
9328   done
9329   IFS="$lt_save_ifs"
9330   MAGIC_CMD="$lt_save_MAGIC_CMD"
9331   ;;
9332 esac
9333 fi
9334
9335 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9336 if test -n "$MAGIC_CMD"; then
9337   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
9338 $as_echo "$MAGIC_CMD" >&6; }
9339 else
9340   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9341 $as_echo "no" >&6; }
9342 fi
9343
9344
9345
9346
9347
9348 if test -z "$lt_cv_path_MAGIC_CMD"; then
9349   if test -n "$ac_tool_prefix"; then
9350     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
9351 $as_echo_n "checking for file... " >&6; }
9352 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
9353   $as_echo_n "(cached) " >&6
9354 else
9355   case $MAGIC_CMD in
9356 [\\/*] |  ?:[\\/]*)
9357   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
9358   ;;
9359 *)
9360   lt_save_MAGIC_CMD="$MAGIC_CMD"
9361   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
9362   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
9363   for ac_dir in $ac_dummy; do
9364     IFS="$lt_save_ifs"
9365     test -z "$ac_dir" && ac_dir=.
9366     if test -f $ac_dir/file; then
9367       lt_cv_path_MAGIC_CMD="$ac_dir/file"
9368       if test -n "$file_magic_test_file"; then
9369         case $deplibs_check_method in
9370         "file_magic "*)
9371           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
9372           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9373           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
9374             $EGREP "$file_magic_regex" > /dev/null; then
9375             :
9376           else
9377             cat <<_LT_EOF 1>&2
9378
9379 *** Warning: the command libtool uses to detect shared libraries,
9380 *** $file_magic_cmd, produces output that libtool cannot recognize.
9381 *** The result is that libtool may fail to recognize shared libraries
9382 *** as such.  This will affect the creation of libtool libraries that
9383 *** depend on shared libraries, but programs linked with such libtool
9384 *** libraries will work regardless of this problem.  Nevertheless, you
9385 *** may want to report the problem to your system manager and/or to
9386 *** bug-libtool@gnu.org
9387
9388 _LT_EOF
9389           fi ;;
9390         esac
9391       fi
9392       break
9393     fi
9394   done
9395   IFS="$lt_save_ifs"
9396   MAGIC_CMD="$lt_save_MAGIC_CMD"
9397   ;;
9398 esac
9399 fi
9400
9401 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9402 if test -n "$MAGIC_CMD"; then
9403   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
9404 $as_echo "$MAGIC_CMD" >&6; }
9405 else
9406   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9407 $as_echo "no" >&6; }
9408 fi
9409
9410
9411   else
9412     MAGIC_CMD=:
9413   fi
9414 fi
9415
9416   fi
9417   ;;
9418 esac
9419
9420 # Use C for the default configuration in the libtool script
9421
9422 lt_save_CC="$CC"
9423 ac_ext=c
9424 ac_cpp='$CPP $CPPFLAGS'
9425 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9426 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9427 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9428
9429
9430 # Source file extension for C test sources.
9431 ac_ext=c
9432
9433 # Object file extension for compiled C test sources.
9434 objext=o
9435 objext=$objext
9436
9437 # Code to be used in simple compile tests
9438 lt_simple_compile_test_code="int some_variable = 0;"
9439
9440 # Code to be used in simple link tests
9441 lt_simple_link_test_code='int main(){return(0);}'
9442
9443
9444
9445
9446
9447
9448
9449 # If no C compiler was specified, use CC.
9450 LTCC=${LTCC-"$CC"}
9451
9452 # If no C compiler flags were specified, use CFLAGS.
9453 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
9454
9455 # Allow CC to be a program name with arguments.
9456 compiler=$CC
9457
9458 # Save the default compiler, since it gets overwritten when the other
9459 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
9460 compiler_DEFAULT=$CC
9461
9462 # save warnings/boilerplate of simple test code
9463 ac_outfile=conftest.$ac_objext
9464 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
9465 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9466 _lt_compiler_boilerplate=`cat conftest.err`
9467 $RM conftest*
9468
9469 ac_outfile=conftest.$ac_objext
9470 echo "$lt_simple_link_test_code" >conftest.$ac_ext
9471 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9472 _lt_linker_boilerplate=`cat conftest.err`
9473 $RM -r conftest*
9474
9475
9476 ## CAVEAT EMPTOR:
9477 ## There is no encapsulation within the following macros, do not change
9478 ## the running order or otherwise move them around unless you know exactly
9479 ## what you are doing...
9480 if test -n "$compiler"; then
9481
9482 lt_prog_compiler_no_builtin_flag=
9483
9484 if test "$GCC" = yes; then
9485   lt_prog_compiler_no_builtin_flag=' -fno-builtin'
9486
9487   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
9488 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
9489 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then :
9490   $as_echo_n "(cached) " >&6
9491 else
9492   lt_cv_prog_compiler_rtti_exceptions=no
9493    ac_outfile=conftest.$ac_objext
9494    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9495    lt_compiler_flag="-fno-rtti -fno-exceptions"
9496    # Insert the option either (1) after the last *FLAGS variable, or
9497    # (2) before a word containing "conftest.", or (3) at the end.
9498    # Note that $ac_compile itself does not contain backslashes and begins
9499    # with a dollar sign (not a hyphen), so the echo should work correctly.
9500    # The option is referenced via a variable to avoid confusing sed.
9501    lt_compile=`echo "$ac_compile" | $SED \
9502    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9503    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9504    -e 's:$: $lt_compiler_flag:'`
9505    (eval echo "\"\$as_me:9505: $lt_compile\"" >&5)
9506    (eval "$lt_compile" 2>conftest.err)
9507    ac_status=$?
9508    cat conftest.err >&5
9509    echo "$as_me:9509: \$? = $ac_status" >&5
9510    if (exit $ac_status) && test -s "$ac_outfile"; then
9511      # The compiler can only warn and ignore the option if not recognized
9512      # So say no if there are warnings other than the usual output.
9513      $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
9514      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9515      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9516        lt_cv_prog_compiler_rtti_exceptions=yes
9517      fi
9518    fi
9519    $RM conftest*
9520
9521 fi
9522 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
9523 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
9524
9525 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
9526     lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
9527 else
9528     :
9529 fi
9530
9531 fi
9532
9533
9534
9535
9536
9537
9538   lt_prog_compiler_wl=
9539 lt_prog_compiler_pic=
9540 lt_prog_compiler_static=
9541
9542 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
9543 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
9544
9545   if test "$GCC" = yes; then
9546     lt_prog_compiler_wl='-Wl,'
9547     lt_prog_compiler_static='-static'
9548
9549     case $host_os in
9550       aix*)
9551       # All AIX code is PIC.
9552       if test "$host_cpu" = ia64; then
9553         # AIX 5 now supports IA64 processor
9554         lt_prog_compiler_static='-Bstatic'
9555       fi
9556       ;;
9557
9558     amigaos*)
9559       case $host_cpu in
9560       powerpc)
9561             # see comment about AmigaOS4 .so support
9562             lt_prog_compiler_pic='-fPIC'
9563         ;;
9564       m68k)
9565             # FIXME: we need at least 68020 code to build shared libraries, but
9566             # adding the `-m68020' flag to GCC prevents building anything better,
9567             # like `-m68040'.
9568             lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
9569         ;;
9570       esac
9571       ;;
9572
9573     beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
9574       # PIC is the default for these OSes.
9575       ;;
9576
9577     mingw* | cygwin* | pw32* | os2* | cegcc*)
9578       # This hack is so that the source file can tell whether it is being
9579       # built for inclusion in a dll (and should export symbols for example).
9580       # Although the cygwin gcc ignores -fPIC, still need this for old-style
9581       # (--disable-auto-import) libraries
9582       lt_prog_compiler_pic='-DDLL_EXPORT'
9583       ;;
9584
9585     darwin* | rhapsody*)
9586       # PIC is the default on this platform
9587       # Common symbols not allowed in MH_DYLIB files
9588       lt_prog_compiler_pic='-fno-common'
9589       ;;
9590
9591     hpux*)
9592       # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
9593       # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
9594       # sets the default TLS model and affects inlining.
9595       case $host_cpu in
9596       hppa*64*)
9597         # +Z the default
9598         ;;
9599       *)
9600         lt_prog_compiler_pic='-fPIC'
9601         ;;
9602       esac
9603       ;;
9604
9605     interix[3-9]*)
9606       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
9607       # Instead, we relocate shared libraries at runtime.
9608       ;;
9609
9610     msdosdjgpp*)
9611       # Just because we use GCC doesn't mean we suddenly get shared libraries
9612       # on systems that don't support them.
9613       lt_prog_compiler_can_build_shared=no
9614       enable_shared=no
9615       ;;
9616
9617     *nto* | *qnx*)
9618       # QNX uses GNU C++, but need to define -shared option too, otherwise
9619       # it will coredump.
9620       lt_prog_compiler_pic='-fPIC -shared'
9621       ;;
9622
9623     sysv4*MP*)
9624       if test -d /usr/nec; then
9625         lt_prog_compiler_pic=-Kconform_pic
9626       fi
9627       ;;
9628
9629     *)
9630       lt_prog_compiler_pic='-fPIC'
9631       ;;
9632     esac
9633   else
9634     # PORTME Check for flag to pass linker flags through the system compiler.
9635     case $host_os in
9636     aix*)
9637       lt_prog_compiler_wl='-Wl,'
9638       if test "$host_cpu" = ia64; then
9639         # AIX 5 now supports IA64 processor
9640         lt_prog_compiler_static='-Bstatic'
9641       else
9642         lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
9643       fi
9644       ;;
9645
9646     mingw* | cygwin* | pw32* | os2* | cegcc*)
9647       # This hack is so that the source file can tell whether it is being
9648       # built for inclusion in a dll (and should export symbols for example).
9649       lt_prog_compiler_pic='-DDLL_EXPORT'
9650       ;;
9651
9652     hpux9* | hpux10* | hpux11*)
9653       lt_prog_compiler_wl='-Wl,'
9654       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
9655       # not for PA HP-UX.
9656       case $host_cpu in
9657       hppa*64*|ia64*)
9658         # +Z the default
9659         ;;
9660       *)
9661         lt_prog_compiler_pic='+Z'
9662         ;;
9663       esac
9664       # Is there a better lt_prog_compiler_static that works with the bundled CC?
9665       lt_prog_compiler_static='${wl}-a ${wl}archive'
9666       ;;
9667
9668     irix5* | irix6* | nonstopux*)
9669       lt_prog_compiler_wl='-Wl,'
9670       # PIC (with -KPIC) is the default.
9671       lt_prog_compiler_static='-non_shared'
9672       ;;
9673
9674     linux* | k*bsd*-gnu)
9675       case $cc_basename in
9676       # old Intel for x86_64 which still supported -KPIC.
9677       ecc*)
9678         lt_prog_compiler_wl='-Wl,'
9679         lt_prog_compiler_pic='-KPIC'
9680         lt_prog_compiler_static='-static'
9681         ;;
9682       # icc used to be incompatible with GCC.
9683       # ICC 10 doesn't accept -KPIC any more.
9684       icc* | ifort*)
9685         lt_prog_compiler_wl='-Wl,'
9686         lt_prog_compiler_pic='-fPIC'
9687         lt_prog_compiler_static='-static'
9688         ;;
9689       # Lahey Fortran 8.1.
9690       lf95*)
9691         lt_prog_compiler_wl='-Wl,'
9692         lt_prog_compiler_pic='--shared'
9693         lt_prog_compiler_static='--static'
9694         ;;
9695       pgcc* | pgf77* | pgf90* | pgf95*)
9696         # Portland Group compilers (*not* the Pentium gcc compiler,
9697         # which looks to be a dead project)
9698         lt_prog_compiler_wl='-Wl,'
9699         lt_prog_compiler_pic='-fpic'
9700         lt_prog_compiler_static='-Bstatic'
9701         ;;
9702       ccc*)
9703         lt_prog_compiler_wl='-Wl,'
9704         # All Alpha code is PIC.
9705         lt_prog_compiler_static='-non_shared'
9706         ;;
9707       xl*)
9708         # IBM XL C 8.0/Fortran 10.1 on PPC
9709         lt_prog_compiler_wl='-Wl,'
9710         lt_prog_compiler_pic='-qpic'
9711         lt_prog_compiler_static='-qstaticlink'
9712         ;;
9713       *)
9714         case `$CC -V 2>&1 | sed 5q` in
9715         *Sun\ C*)
9716           # Sun C 5.9
9717           lt_prog_compiler_pic='-KPIC'
9718           lt_prog_compiler_static='-Bstatic'
9719           lt_prog_compiler_wl='-Wl,'
9720           ;;
9721         *Sun\ F*)
9722           # Sun Fortran 8.3 passes all unrecognized flags to the linker
9723           lt_prog_compiler_pic='-KPIC'
9724           lt_prog_compiler_static='-Bstatic'
9725           lt_prog_compiler_wl=''
9726           ;;
9727         esac
9728         ;;
9729       esac
9730       ;;
9731
9732     newsos6)
9733       lt_prog_compiler_pic='-KPIC'
9734       lt_prog_compiler_static='-Bstatic'
9735       ;;
9736
9737     *nto* | *qnx*)
9738       # QNX uses GNU C++, but need to define -shared option too, otherwise
9739       # it will coredump.
9740       lt_prog_compiler_pic='-fPIC -shared'
9741       ;;
9742
9743     osf3* | osf4* | osf5*)
9744       lt_prog_compiler_wl='-Wl,'
9745       # All OSF/1 code is PIC.
9746       lt_prog_compiler_static='-non_shared'
9747       ;;
9748
9749     rdos*)
9750       lt_prog_compiler_static='-non_shared'
9751       ;;
9752
9753     solaris*)
9754       lt_prog_compiler_pic='-KPIC'
9755       lt_prog_compiler_static='-Bstatic'
9756       case $cc_basename in
9757       f77* | f90* | f95*)
9758         lt_prog_compiler_wl='-Qoption ld ';;
9759       *)
9760         lt_prog_compiler_wl='-Wl,';;
9761       esac
9762       ;;
9763
9764     sunos4*)
9765       lt_prog_compiler_wl='-Qoption ld '
9766       lt_prog_compiler_pic='-PIC'
9767       lt_prog_compiler_static='-Bstatic'
9768       ;;
9769
9770     sysv4 | sysv4.2uw2* | sysv4.3*)
9771       lt_prog_compiler_wl='-Wl,'
9772       lt_prog_compiler_pic='-KPIC'
9773       lt_prog_compiler_static='-Bstatic'
9774       ;;
9775
9776     sysv4*MP*)
9777       if test -d /usr/nec ;then
9778         lt_prog_compiler_pic='-Kconform_pic'
9779         lt_prog_compiler_static='-Bstatic'
9780       fi
9781       ;;
9782
9783     sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
9784       lt_prog_compiler_wl='-Wl,'
9785       lt_prog_compiler_pic='-KPIC'
9786       lt_prog_compiler_static='-Bstatic'
9787       ;;
9788
9789     unicos*)
9790       lt_prog_compiler_wl='-Wl,'
9791       lt_prog_compiler_can_build_shared=no
9792       ;;
9793
9794     uts4*)
9795       lt_prog_compiler_pic='-pic'
9796       lt_prog_compiler_static='-Bstatic'
9797       ;;
9798
9799     *)
9800       lt_prog_compiler_can_build_shared=no
9801       ;;
9802     esac
9803   fi
9804
9805 case $host_os in
9806   # For platforms which do not support PIC, -DPIC is meaningless:
9807   *djgpp*)
9808     lt_prog_compiler_pic=
9809     ;;
9810   *)
9811     lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
9812     ;;
9813 esac
9814 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
9815 $as_echo "$lt_prog_compiler_pic" >&6; }
9816
9817
9818
9819
9820
9821
9822 #
9823 # Check to make sure the PIC flag actually works.
9824 #
9825 if test -n "$lt_prog_compiler_pic"; then
9826   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
9827 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
9828 if test "${lt_cv_prog_compiler_pic_works+set}" = set; then :
9829   $as_echo_n "(cached) " >&6
9830 else
9831   lt_cv_prog_compiler_pic_works=no
9832    ac_outfile=conftest.$ac_objext
9833    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9834    lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
9835    # Insert the option either (1) after the last *FLAGS variable, or
9836    # (2) before a word containing "conftest.", or (3) at the end.
9837    # Note that $ac_compile itself does not contain backslashes and begins
9838    # with a dollar sign (not a hyphen), so the echo should work correctly.
9839    # The option is referenced via a variable to avoid confusing sed.
9840    lt_compile=`echo "$ac_compile" | $SED \
9841    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9842    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9843    -e 's:$: $lt_compiler_flag:'`
9844    (eval echo "\"\$as_me:9844: $lt_compile\"" >&5)
9845    (eval "$lt_compile" 2>conftest.err)
9846    ac_status=$?
9847    cat conftest.err >&5
9848    echo "$as_me:9848: \$? = $ac_status" >&5
9849    if (exit $ac_status) && test -s "$ac_outfile"; then
9850      # The compiler can only warn and ignore the option if not recognized
9851      # So say no if there are warnings other than the usual output.
9852      $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
9853      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9854      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9855        lt_cv_prog_compiler_pic_works=yes
9856      fi
9857    fi
9858    $RM conftest*
9859
9860 fi
9861 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
9862 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
9863
9864 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
9865     case $lt_prog_compiler_pic in
9866      "" | " "*) ;;
9867      *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
9868      esac
9869 else
9870     lt_prog_compiler_pic=
9871      lt_prog_compiler_can_build_shared=no
9872 fi
9873
9874 fi
9875
9876
9877
9878
9879
9880
9881 #
9882 # Check to make sure the static flag actually works.
9883 #
9884 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
9885 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
9886 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
9887 if test "${lt_cv_prog_compiler_static_works+set}" = set; then :
9888   $as_echo_n "(cached) " >&6
9889 else
9890   lt_cv_prog_compiler_static_works=no
9891    save_LDFLAGS="$LDFLAGS"
9892    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
9893    echo "$lt_simple_link_test_code" > conftest.$ac_ext
9894    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9895      # The linker can only warn and ignore the option if not recognized
9896      # So say no if there are warnings
9897      if test -s conftest.err; then
9898        # Append any errors to the config.log.
9899        cat conftest.err 1>&5
9900        $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
9901        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9902        if diff conftest.exp conftest.er2 >/dev/null; then
9903          lt_cv_prog_compiler_static_works=yes
9904        fi
9905      else
9906        lt_cv_prog_compiler_static_works=yes
9907      fi
9908    fi
9909    $RM -r conftest*
9910    LDFLAGS="$save_LDFLAGS"
9911
9912 fi
9913 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
9914 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
9915
9916 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
9917     :
9918 else
9919     lt_prog_compiler_static=
9920 fi
9921
9922
9923
9924
9925
9926
9927
9928   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9929 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9930 if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
9931   $as_echo_n "(cached) " >&6
9932 else
9933   lt_cv_prog_compiler_c_o=no
9934    $RM -r conftest 2>/dev/null
9935    mkdir conftest
9936    cd conftest
9937    mkdir out
9938    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9939
9940    lt_compiler_flag="-o out/conftest2.$ac_objext"
9941    # Insert the option either (1) after the last *FLAGS variable, or
9942    # (2) before a word containing "conftest.", or (3) at the end.
9943    # Note that $ac_compile itself does not contain backslashes and begins
9944    # with a dollar sign (not a hyphen), so the echo should work correctly.
9945    lt_compile=`echo "$ac_compile" | $SED \
9946    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9947    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9948    -e 's:$: $lt_compiler_flag:'`
9949    (eval echo "\"\$as_me:9949: $lt_compile\"" >&5)
9950    (eval "$lt_compile" 2>out/conftest.err)
9951    ac_status=$?
9952    cat out/conftest.err >&5
9953    echo "$as_me:9953: \$? = $ac_status" >&5
9954    if (exit $ac_status) && test -s out/conftest2.$ac_objext
9955    then
9956      # The compiler can only warn and ignore the option if not recognized
9957      # So say no if there are warnings
9958      $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
9959      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9960      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9961        lt_cv_prog_compiler_c_o=yes
9962      fi
9963    fi
9964    chmod u+w . 2>&5
9965    $RM conftest*
9966    # SGI C++ compiler will create directory out/ii_files/ for
9967    # template instantiation
9968    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9969    $RM out/* && rmdir out
9970    cd ..
9971    $RM -r conftest
9972    $RM conftest*
9973
9974 fi
9975 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9976 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9977
9978
9979
9980
9981
9982
9983   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9984 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9985 if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
9986   $as_echo_n "(cached) " >&6
9987 else
9988   lt_cv_prog_compiler_c_o=no
9989    $RM -r conftest 2>/dev/null
9990    mkdir conftest
9991    cd conftest
9992    mkdir out
9993    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9994
9995    lt_compiler_flag="-o out/conftest2.$ac_objext"
9996    # Insert the option either (1) after the last *FLAGS variable, or
9997    # (2) before a word containing "conftest.", or (3) at the end.
9998    # Note that $ac_compile itself does not contain backslashes and begins
9999    # with a dollar sign (not a hyphen), so the echo should work correctly.
10000    lt_compile=`echo "$ac_compile" | $SED \
10001    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10002    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10003    -e 's:$: $lt_compiler_flag:'`
10004    (eval echo "\"\$as_me:10004: $lt_compile\"" >&5)
10005    (eval "$lt_compile" 2>out/conftest.err)
10006    ac_status=$?
10007    cat out/conftest.err >&5
10008    echo "$as_me:10008: \$? = $ac_status" >&5
10009    if (exit $ac_status) && test -s out/conftest2.$ac_objext
10010    then
10011      # The compiler can only warn and ignore the option if not recognized
10012      # So say no if there are warnings
10013      $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
10014      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
10015      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
10016        lt_cv_prog_compiler_c_o=yes
10017      fi
10018    fi
10019    chmod u+w . 2>&5
10020    $RM conftest*
10021    # SGI C++ compiler will create directory out/ii_files/ for
10022    # template instantiation
10023    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
10024    $RM out/* && rmdir out
10025    cd ..
10026    $RM -r conftest
10027    $RM conftest*
10028
10029 fi
10030 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
10031 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
10032
10033
10034
10035
10036 hard_links="nottested"
10037 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
10038   # do not overwrite the value of need_locks provided by the user
10039   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
10040 $as_echo_n "checking if we can lock with hard links... " >&6; }
10041   hard_links=yes
10042   $RM conftest*
10043   ln conftest.a conftest.b 2>/dev/null && hard_links=no
10044   touch conftest.a
10045   ln conftest.a conftest.b 2>&5 || hard_links=no
10046   ln conftest.a conftest.b 2>/dev/null && hard_links=no
10047   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
10048 $as_echo "$hard_links" >&6; }
10049   if test "$hard_links" = no; then
10050     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
10051 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
10052     need_locks=warn
10053   fi
10054 else
10055   need_locks=no
10056 fi
10057
10058
10059
10060
10061
10062
10063   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
10064 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
10065
10066   runpath_var=
10067   allow_undefined_flag=
10068   always_export_symbols=no
10069   archive_cmds=
10070   archive_expsym_cmds=
10071   compiler_needs_object=no
10072   enable_shared_with_static_runtimes=no
10073   export_dynamic_flag_spec=
10074   export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
10075   hardcode_automatic=no
10076   hardcode_direct=no
10077   hardcode_direct_absolute=no
10078   hardcode_libdir_flag_spec=
10079   hardcode_libdir_flag_spec_ld=
10080   hardcode_libdir_separator=
10081   hardcode_minus_L=no
10082   hardcode_shlibpath_var=unsupported
10083   inherit_rpath=no
10084   link_all_deplibs=unknown
10085   module_cmds=
10086   module_expsym_cmds=
10087   old_archive_from_new_cmds=
10088   old_archive_from_expsyms_cmds=
10089   thread_safe_flag_spec=
10090   whole_archive_flag_spec=
10091   # include_expsyms should be a list of space-separated symbols to be *always*
10092   # included in the symbol list
10093   include_expsyms=
10094   # exclude_expsyms can be an extended regexp of symbols to exclude
10095   # it will be wrapped by ` (' and `)$', so one must not match beginning or
10096   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
10097   # as well as any symbol that contains `d'.
10098   exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
10099   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
10100   # platforms (ab)use it in PIC code, but their linkers get confused if
10101   # the symbol is explicitly referenced.  Since portable code cannot
10102   # rely on this symbol name, it's probably fine to never include it in
10103   # preloaded symbol tables.
10104   # Exclude shared library initialization/finalization symbols.
10105   extract_expsyms_cmds=
10106
10107   case $host_os in
10108   cygwin* | mingw* | pw32* | cegcc*)
10109     # FIXME: the MSVC++ port hasn't been tested in a loooong time
10110     # When not using gcc, we currently assume that we are using
10111     # Microsoft Visual C++.
10112     if test "$GCC" != yes; then
10113       with_gnu_ld=no
10114     fi
10115     ;;
10116   interix*)
10117     # we just hope/assume this is gcc and not c89 (= MSVC++)
10118     with_gnu_ld=yes
10119     ;;
10120   openbsd*)
10121     with_gnu_ld=no
10122     ;;
10123   esac
10124
10125   ld_shlibs=yes
10126   if test "$with_gnu_ld" = yes; then
10127     # If archive_cmds runs LD, not CC, wlarc should be empty
10128     wlarc='${wl}'
10129
10130     # Set some defaults for GNU ld with shared library support. These
10131     # are reset later if shared libraries are not supported. Putting them
10132     # here allows them to be overridden if necessary.
10133     runpath_var=LD_RUN_PATH
10134     hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10135     export_dynamic_flag_spec='${wl}--export-dynamic'
10136     # ancient GNU ld didn't support --whole-archive et. al.
10137     if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
10138       whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
10139     else
10140       whole_archive_flag_spec=
10141     fi
10142     supports_anon_versioning=no
10143     case `$LD -v 2>&1` in
10144       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
10145       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
10146       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
10147       *\ 2.11.*) ;; # other 2.11 versions
10148       *) supports_anon_versioning=yes ;;
10149     esac
10150
10151     # See if GNU ld supports shared libraries.
10152     case $host_os in
10153     aix[3-9]*)
10154       # On AIX/PPC, the GNU linker is very broken
10155       if test "$host_cpu" != ia64; then
10156         ld_shlibs=no
10157         cat <<_LT_EOF 1>&2
10158
10159 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
10160 *** to be unable to reliably create shared libraries on AIX.
10161 *** Therefore, libtool is disabling shared libraries support.  If you
10162 *** really care for shared libraries, you may want to modify your PATH
10163 *** so that a non-GNU linker is found, and then restart.
10164
10165 _LT_EOF
10166       fi
10167       ;;
10168
10169     amigaos*)
10170       case $host_cpu in
10171       powerpc)
10172             # see comment about AmigaOS4 .so support
10173             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10174             archive_expsym_cmds=''
10175         ;;
10176       m68k)
10177             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)'
10178             hardcode_libdir_flag_spec='-L$libdir'
10179             hardcode_minus_L=yes
10180         ;;
10181       esac
10182       ;;
10183
10184     beos*)
10185       if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10186         allow_undefined_flag=unsupported
10187         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
10188         # support --undefined.  This deserves some investigation.  FIXME
10189         archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10190       else
10191         ld_shlibs=no
10192       fi
10193       ;;
10194
10195     cygwin* | mingw* | pw32* | cegcc*)
10196       # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
10197       # as there is no search path for DLLs.
10198       hardcode_libdir_flag_spec='-L$libdir'
10199       allow_undefined_flag=unsupported
10200       always_export_symbols=no
10201       enable_shared_with_static_runtimes=yes
10202       export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
10203
10204       if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
10205         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
10206         # If the export-symbols file already is a .def file (1st line
10207         # is EXPORTS), use it as is; otherwise, prepend...
10208         archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
10209           cp $export_symbols $output_objdir/$soname.def;
10210         else
10211           echo EXPORTS > $output_objdir/$soname.def;
10212           cat $export_symbols >> $output_objdir/$soname.def;
10213         fi~
10214         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
10215       else
10216         ld_shlibs=no
10217       fi
10218       ;;
10219
10220     interix[3-9]*)
10221       hardcode_direct=no
10222       hardcode_shlibpath_var=no
10223       hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10224       export_dynamic_flag_spec='${wl}-E'
10225       # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
10226       # Instead, shared libraries are loaded at an image base (0x10000000 by
10227       # default) and relocated if they conflict, which is a slow very memory
10228       # consuming and fragmenting process.  To avoid this, we pick a random,
10229       # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
10230       # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
10231       archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
10232       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'
10233       ;;
10234
10235     gnu* | linux* | tpf* | k*bsd*-gnu)
10236       tmp_diet=no
10237       if test "$host_os" = linux-dietlibc; then
10238         case $cc_basename in
10239           diet\ *) tmp_diet=yes;;       # linux-dietlibc with static linking (!diet-dyn)
10240         esac
10241       fi
10242       if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
10243          && test "$tmp_diet" = no
10244       then
10245         tmp_addflag=
10246         tmp_sharedflag='-shared'
10247         case $cc_basename,$host_cpu in
10248         pgcc*)                          # Portland Group C compiler
10249           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'
10250           tmp_addflag=' $pic_flag'
10251           ;;
10252         pgf77* | pgf90* | pgf95*)       # Portland Group f77 and f90 compilers
10253           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'
10254           tmp_addflag=' $pic_flag -Mnomain' ;;
10255         ecc*,ia64* | icc*,ia64*)        # Intel C compiler on ia64
10256           tmp_addflag=' -i_dynamic' ;;
10257         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
10258           tmp_addflag=' -i_dynamic -nofor_main' ;;
10259         ifc* | ifort*)                  # Intel Fortran compiler
10260           tmp_addflag=' -nofor_main' ;;
10261         lf95*)                          # Lahey Fortran 8.1
10262           whole_archive_flag_spec=
10263           tmp_sharedflag='--shared' ;;
10264         xl[cC]*)                        # IBM XL C 8.0 on PPC (deal with xlf below)
10265           tmp_sharedflag='-qmkshrobj'
10266           tmp_addflag= ;;
10267         esac
10268         case `$CC -V 2>&1 | sed 5q` in
10269         *Sun\ C*)                       # Sun C 5.9
10270           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'
10271           compiler_needs_object=yes
10272           tmp_sharedflag='-G' ;;
10273         *Sun\ F*)                       # Sun Fortran 8.3
10274           tmp_sharedflag='-G' ;;
10275         esac
10276         archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10277
10278         if test "x$supports_anon_versioning" = xyes; then
10279           archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
10280             cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
10281             echo "local: *; };" >> $output_objdir/$libname.ver~
10282             $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
10283         fi
10284
10285         case $cc_basename in
10286         xlf*)
10287           # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
10288           whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
10289           hardcode_libdir_flag_spec=
10290           hardcode_libdir_flag_spec_ld='-rpath $libdir'
10291           archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
10292           if test "x$supports_anon_versioning" = xyes; then
10293             archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
10294               cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
10295               echo "local: *; };" >> $output_objdir/$libname.ver~
10296               $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
10297           fi
10298           ;;
10299         esac
10300       else
10301         ld_shlibs=no
10302       fi
10303       ;;
10304
10305     netbsd*)
10306       if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10307         archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
10308         wlarc=
10309       else
10310         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10311         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10312       fi
10313       ;;
10314
10315     solaris*)
10316       if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
10317         ld_shlibs=no
10318         cat <<_LT_EOF 1>&2
10319
10320 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
10321 *** create shared libraries on Solaris systems.  Therefore, libtool
10322 *** is disabling shared libraries support.  We urge you to upgrade GNU
10323 *** binutils to release 2.9.1 or newer.  Another option is to modify
10324 *** your PATH or compiler configuration so that the native linker is
10325 *** used, and then restart.
10326
10327 _LT_EOF
10328       elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10329         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10330         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10331       else
10332         ld_shlibs=no
10333       fi
10334       ;;
10335
10336     sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
10337       case `$LD -v 2>&1` in
10338         *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
10339         ld_shlibs=no
10340         cat <<_LT_EOF 1>&2
10341
10342 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
10343 *** reliably create shared libraries on SCO systems.  Therefore, libtool
10344 *** is disabling shared libraries support.  We urge you to upgrade GNU
10345 *** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
10346 *** your PATH or compiler configuration so that the native linker is
10347 *** used, and then restart.
10348
10349 _LT_EOF
10350         ;;
10351         *)
10352           # For security reasons, it is highly recommended that you always
10353           # use absolute paths for naming shared libraries, and exclude the
10354           # DT_RUNPATH tag from executables and libraries.  But doing so
10355           # requires that you compile everything twice, which is a pain.
10356           if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10357             hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10358             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10359             archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10360           else
10361             ld_shlibs=no
10362           fi
10363         ;;
10364       esac
10365       ;;
10366
10367     sunos4*)
10368       archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10369       wlarc=
10370       hardcode_direct=yes
10371       hardcode_shlibpath_var=no
10372       ;;
10373
10374     *)
10375       if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10376         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10377         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10378       else
10379         ld_shlibs=no
10380       fi
10381       ;;
10382     esac
10383
10384     if test "$ld_shlibs" = no; then
10385       runpath_var=
10386       hardcode_libdir_flag_spec=
10387       export_dynamic_flag_spec=
10388       whole_archive_flag_spec=
10389     fi
10390   else
10391     # PORTME fill in a description of your system's linker (not GNU ld)
10392     case $host_os in
10393     aix3*)
10394       allow_undefined_flag=unsupported
10395       always_export_symbols=yes
10396       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'
10397       # Note: this linker hardcodes the directories in LIBPATH if there
10398       # are no directories specified by -L.
10399       hardcode_minus_L=yes
10400       if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
10401         # Neither direct hardcoding nor static linking is supported with a
10402         # broken collect2.
10403         hardcode_direct=unsupported
10404       fi
10405       ;;
10406
10407     aix[4-9]*)
10408       if test "$host_cpu" = ia64; then
10409         # On IA64, the linker does run time linking by default, so we don't
10410         # have to do anything special.
10411         aix_use_runtimelinking=no
10412         exp_sym_flag='-Bexport'
10413         no_entry_flag=""
10414       else
10415         # If we're using GNU nm, then we don't want the "-C" option.
10416         # -C means demangle to AIX nm, but means don't demangle with GNU nm
10417         if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
10418           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'
10419         else
10420           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'
10421         fi
10422         aix_use_runtimelinking=no
10423
10424         # Test if we are trying to use run time linking or normal
10425         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
10426         # need to do runtime linking.
10427         case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
10428           for ld_flag in $LDFLAGS; do
10429           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
10430             aix_use_runtimelinking=yes
10431             break
10432           fi
10433           done
10434           ;;
10435         esac
10436
10437         exp_sym_flag='-bexport'
10438         no_entry_flag='-bnoentry'
10439       fi
10440
10441       # When large executables or shared objects are built, AIX ld can
10442       # have problems creating the table of contents.  If linking a library
10443       # or program results in "error TOC overflow" add -mminimal-toc to
10444       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
10445       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
10446
10447       archive_cmds=''
10448       hardcode_direct=yes
10449       hardcode_direct_absolute=yes
10450       hardcode_libdir_separator=':'
10451       link_all_deplibs=yes
10452       file_list_spec='${wl}-f,'
10453
10454       if test "$GCC" = yes; then
10455         case $host_os in aix4.[012]|aix4.[012].*)
10456         # We only want to do this on AIX 4.2 and lower, the check
10457         # below for broken collect2 doesn't work under 4.3+
10458           collect2name=`${CC} -print-prog-name=collect2`
10459           if test -f "$collect2name" &&
10460            strings "$collect2name" | $GREP resolve_lib_name >/dev/null
10461           then
10462           # We have reworked collect2
10463           :
10464           else
10465           # We have old collect2
10466           hardcode_direct=unsupported
10467           # It fails to find uninstalled libraries when the uninstalled
10468           # path is not listed in the libpath.  Setting hardcode_minus_L
10469           # to unsupported forces relinking
10470           hardcode_minus_L=yes
10471           hardcode_libdir_flag_spec='-L$libdir'
10472           hardcode_libdir_separator=
10473           fi
10474           ;;
10475         esac
10476         shared_flag='-shared'
10477         if test "$aix_use_runtimelinking" = yes; then
10478           shared_flag="$shared_flag "'${wl}-G'
10479         fi
10480       else
10481         # not using gcc
10482         if test "$host_cpu" = ia64; then
10483         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
10484         # chokes on -Wl,-G. The following line is correct:
10485           shared_flag='-G'
10486         else
10487           if test "$aix_use_runtimelinking" = yes; then
10488             shared_flag='${wl}-G'
10489           else
10490             shared_flag='${wl}-bM:SRE'
10491           fi
10492         fi
10493       fi
10494
10495       export_dynamic_flag_spec='${wl}-bexpall'
10496       # It seems that -bexpall does not export symbols beginning with
10497       # underscore (_), so it is better to generate a list of symbols to export.
10498       always_export_symbols=yes
10499       if test "$aix_use_runtimelinking" = yes; then
10500         # Warning - without using the other runtime loading flags (-brtl),
10501         # -berok will link without error, but may produce a broken library.
10502         allow_undefined_flag='-berok'
10503         # Determine the default libpath from the value encoded in an
10504         # empty executable.
10505         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10506 /* end confdefs.h.  */
10507
10508 int
10509 main ()
10510 {
10511
10512   ;
10513   return 0;
10514 }
10515 _ACEOF
10516 if ac_fn_c_try_link "$LINENO"; then :
10517
10518 lt_aix_libpath_sed='
10519     /Import File Strings/,/^$/ {
10520         /^0/ {
10521             s/^0  *\(.*\)$/\1/
10522             p
10523         }
10524     }'
10525 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10526 # Check for a 64-bit object if we didn't find anything.
10527 if test -z "$aix_libpath"; then
10528   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10529 fi
10530 fi
10531 rm -f core conftest.err conftest.$ac_objext \
10532     conftest$ac_exeext conftest.$ac_ext
10533 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
10534
10535         hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
10536         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"
10537       else
10538         if test "$host_cpu" = ia64; then
10539           hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
10540           allow_undefined_flag="-z nodefs"
10541           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"
10542         else
10543          # Determine the default libpath from the value encoded in an
10544          # empty executable.
10545          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10546 /* end confdefs.h.  */
10547
10548 int
10549 main ()
10550 {
10551
10552   ;
10553   return 0;
10554 }
10555 _ACEOF
10556 if ac_fn_c_try_link "$LINENO"; then :
10557
10558 lt_aix_libpath_sed='
10559     /Import File Strings/,/^$/ {
10560         /^0/ {
10561             s/^0  *\(.*\)$/\1/
10562             p
10563         }
10564     }'
10565 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10566 # Check for a 64-bit object if we didn't find anything.
10567 if test -z "$aix_libpath"; then
10568   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10569 fi
10570 fi
10571 rm -f core conftest.err conftest.$ac_objext \
10572     conftest$ac_exeext conftest.$ac_ext
10573 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
10574
10575          hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
10576           # Warning - without using the other run time loading flags,
10577           # -berok will link without error, but may produce a broken library.
10578           no_undefined_flag=' ${wl}-bernotok'
10579           allow_undefined_flag=' ${wl}-berok'
10580           # Exported symbols can be pulled into shared objects from archives
10581           whole_archive_flag_spec='$convenience'
10582           archive_cmds_need_lc=yes
10583           # This is similar to how AIX traditionally builds its shared libraries.
10584           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'
10585         fi
10586       fi
10587       ;;
10588
10589     amigaos*)
10590       case $host_cpu in
10591       powerpc)
10592             # see comment about AmigaOS4 .so support
10593             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10594             archive_expsym_cmds=''
10595         ;;
10596       m68k)
10597             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)'
10598             hardcode_libdir_flag_spec='-L$libdir'
10599             hardcode_minus_L=yes
10600         ;;
10601       esac
10602       ;;
10603
10604     bsdi[45]*)
10605       export_dynamic_flag_spec=-rdynamic
10606       ;;
10607
10608     cygwin* | mingw* | pw32* | cegcc*)
10609       # When not using gcc, we currently assume that we are using
10610       # Microsoft Visual C++.
10611       # hardcode_libdir_flag_spec is actually meaningless, as there is
10612       # no search path for DLLs.
10613       hardcode_libdir_flag_spec=' '
10614       allow_undefined_flag=unsupported
10615       # Tell ltmain to make .lib files, not .a files.
10616       libext=lib
10617       # Tell ltmain to make .dll files, not .so files.
10618       shrext_cmds=".dll"
10619       # FIXME: Setting linknames here is a bad hack.
10620       archive_cmds='$CC -o $lib $libobjs $compiler_flags `$ECHO "X$deplibs" | $Xsed -e '\''s/ -lc$//'\''` -link -dll~linknames='
10621       # The linker will automatically build a .lib file if we build a DLL.
10622       old_archive_from_new_cmds='true'
10623       # FIXME: Should let the user specify the lib program.
10624       old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
10625       fix_srcfile_path='`cygpath -w "$srcfile"`'
10626       enable_shared_with_static_runtimes=yes
10627       ;;
10628
10629     darwin* | rhapsody*)
10630
10631
10632   archive_cmds_need_lc=no
10633   hardcode_direct=no
10634   hardcode_automatic=yes
10635   hardcode_shlibpath_var=unsupported
10636   whole_archive_flag_spec=''
10637   link_all_deplibs=yes
10638   allow_undefined_flag="$_lt_dar_allow_undefined"
10639   case $cc_basename in
10640      ifort*) _lt_dar_can_shared=yes ;;
10641      *) _lt_dar_can_shared=$GCC ;;
10642   esac
10643   if test "$_lt_dar_can_shared" = "yes"; then
10644     output_verbose_link_cmd=echo
10645     archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
10646     module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
10647     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}"
10648     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}"
10649
10650   else
10651   ld_shlibs=no
10652   fi
10653
10654       ;;
10655
10656     dgux*)
10657       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10658       hardcode_libdir_flag_spec='-L$libdir'
10659       hardcode_shlibpath_var=no
10660       ;;
10661
10662     freebsd1*)
10663       ld_shlibs=no
10664       ;;
10665
10666     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
10667     # support.  Future versions do this automatically, but an explicit c++rt0.o
10668     # does not break anything, and helps significantly (at the cost of a little
10669     # extra space).
10670     freebsd2.2*)
10671       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
10672       hardcode_libdir_flag_spec='-R$libdir'
10673       hardcode_direct=yes
10674       hardcode_shlibpath_var=no
10675       ;;
10676
10677     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
10678     freebsd2*)
10679       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10680       hardcode_direct=yes
10681       hardcode_minus_L=yes
10682       hardcode_shlibpath_var=no
10683       ;;
10684
10685     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
10686     freebsd* | dragonfly*)
10687       archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
10688       hardcode_libdir_flag_spec='-R$libdir'
10689       hardcode_direct=yes
10690       hardcode_shlibpath_var=no
10691       ;;
10692
10693     hpux9*)
10694       if test "$GCC" = yes; then
10695         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'
10696       else
10697         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'
10698       fi
10699       hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10700       hardcode_libdir_separator=:
10701       hardcode_direct=yes
10702
10703       # hardcode_minus_L: Not really in the search PATH,
10704       # but as the default location of the library.
10705       hardcode_minus_L=yes
10706       export_dynamic_flag_spec='${wl}-E'
10707       ;;
10708
10709     hpux10*)
10710       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
10711         archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10712       else
10713         archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10714       fi
10715       if test "$with_gnu_ld" = no; then
10716         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10717         hardcode_libdir_flag_spec_ld='+b $libdir'
10718         hardcode_libdir_separator=:
10719         hardcode_direct=yes
10720         hardcode_direct_absolute=yes
10721         export_dynamic_flag_spec='${wl}-E'
10722         # hardcode_minus_L: Not really in the search PATH,
10723         # but as the default location of the library.
10724         hardcode_minus_L=yes
10725       fi
10726       ;;
10727
10728     hpux11*)
10729       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
10730         case $host_cpu in
10731         hppa*64*)
10732           archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10733           ;;
10734         ia64*)
10735           archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10736           ;;
10737         *)
10738           archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10739           ;;
10740         esac
10741       else
10742         case $host_cpu in
10743         hppa*64*)
10744           archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10745           ;;
10746         ia64*)
10747           archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10748           ;;
10749         *)
10750           archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10751           ;;
10752         esac
10753       fi
10754       if test "$with_gnu_ld" = no; then
10755         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10756         hardcode_libdir_separator=:
10757
10758         case $host_cpu in
10759         hppa*64*|ia64*)
10760           hardcode_direct=no
10761           hardcode_shlibpath_var=no
10762           ;;
10763         *)
10764           hardcode_direct=yes
10765           hardcode_direct_absolute=yes
10766           export_dynamic_flag_spec='${wl}-E'
10767
10768           # hardcode_minus_L: Not really in the search PATH,
10769           # but as the default location of the library.
10770           hardcode_minus_L=yes
10771           ;;
10772         esac
10773       fi
10774       ;;
10775
10776     irix5* | irix6* | nonstopux*)
10777       if test "$GCC" = yes; then
10778         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'
10779         # Try to use the -exported_symbol ld option, if it does not
10780         # work, assume that -exports_file does not work either and
10781         # implicitly export all symbols.
10782         save_LDFLAGS="$LDFLAGS"
10783         LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
10784         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10785 /* end confdefs.h.  */
10786 int foo(void) {}
10787 _ACEOF
10788 if ac_fn_c_try_link "$LINENO"; then :
10789   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'
10790
10791 fi
10792 rm -f core conftest.err conftest.$ac_objext \
10793     conftest$ac_exeext conftest.$ac_ext
10794         LDFLAGS="$save_LDFLAGS"
10795       else
10796         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'
10797         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'
10798       fi
10799       archive_cmds_need_lc='no'
10800       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10801       hardcode_libdir_separator=:
10802       inherit_rpath=yes
10803       link_all_deplibs=yes
10804       ;;
10805
10806     netbsd*)
10807       if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10808         archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
10809       else
10810         archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
10811       fi
10812       hardcode_libdir_flag_spec='-R$libdir'
10813       hardcode_direct=yes
10814       hardcode_shlibpath_var=no
10815       ;;
10816
10817     newsos6)
10818       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10819       hardcode_direct=yes
10820       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10821       hardcode_libdir_separator=:
10822       hardcode_shlibpath_var=no
10823       ;;
10824
10825     *nto* | *qnx*)
10826       ;;
10827
10828     openbsd*)
10829       if test -f /usr/libexec/ld.so; then
10830         hardcode_direct=yes
10831         hardcode_shlibpath_var=no
10832         hardcode_direct_absolute=yes
10833         if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10834           archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10835           archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
10836           hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10837           export_dynamic_flag_spec='${wl}-E'
10838         else
10839           case $host_os in
10840            openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
10841              archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10842              hardcode_libdir_flag_spec='-R$libdir'
10843              ;;
10844            *)
10845              archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10846              hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10847              ;;
10848           esac
10849         fi
10850       else
10851         ld_shlibs=no
10852       fi
10853       ;;
10854
10855     os2*)
10856       hardcode_libdir_flag_spec='-L$libdir'
10857       hardcode_minus_L=yes
10858       allow_undefined_flag=unsupported
10859       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'
10860       old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
10861       ;;
10862
10863     osf3*)
10864       if test "$GCC" = yes; then
10865         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10866         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'
10867       else
10868         allow_undefined_flag=' -expect_unresolved \*'
10869         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'
10870       fi
10871       archive_cmds_need_lc='no'
10872       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10873       hardcode_libdir_separator=:
10874       ;;
10875
10876     osf4* | osf5*)      # as osf3* with the addition of -msym flag
10877       if test "$GCC" = yes; then
10878         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10879         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'
10880         hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10881       else
10882         allow_undefined_flag=' -expect_unresolved \*'
10883         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'
10884         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~
10885         $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'
10886
10887         # Both c and cxx compiler support -rpath directly
10888         hardcode_libdir_flag_spec='-rpath $libdir'
10889       fi
10890       archive_cmds_need_lc='no'
10891       hardcode_libdir_separator=:
10892       ;;
10893
10894     solaris*)
10895       no_undefined_flag=' -z defs'
10896       if test "$GCC" = yes; then
10897         wlarc='${wl}'
10898         archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10899         archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10900           $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10901       else
10902         case `$CC -V 2>&1` in
10903         *"Compilers 5.0"*)
10904           wlarc=''
10905           archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
10906           archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10907           $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
10908           ;;
10909         *)
10910           wlarc='${wl}'
10911           archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
10912           archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10913           $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10914           ;;
10915         esac
10916       fi
10917       hardcode_libdir_flag_spec='-R$libdir'
10918       hardcode_shlibpath_var=no
10919       case $host_os in
10920       solaris2.[0-5] | solaris2.[0-5].*) ;;
10921       *)
10922         # The compiler driver will combine and reorder linker options,
10923         # but understands `-z linker_flag'.  GCC discards it without `$wl',
10924         # but is careful enough not to reorder.
10925         # Supported since Solaris 2.6 (maybe 2.5.1?)
10926         if test "$GCC" = yes; then
10927           whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
10928         else
10929           whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
10930         fi
10931         ;;
10932       esac
10933       link_all_deplibs=yes
10934       ;;
10935
10936     sunos4*)
10937       if test "x$host_vendor" = xsequent; then
10938         # Use $CC to link under sequent, because it throws in some extra .o
10939         # files that make .init and .fini sections work.
10940         archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
10941       else
10942         archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
10943       fi
10944       hardcode_libdir_flag_spec='-L$libdir'
10945       hardcode_direct=yes
10946       hardcode_minus_L=yes
10947       hardcode_shlibpath_var=no
10948       ;;
10949
10950     sysv4)
10951       case $host_vendor in
10952         sni)
10953           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10954           hardcode_direct=yes # is this really true???
10955         ;;
10956         siemens)
10957           ## LD is ld it makes a PLAMLIB
10958           ## CC just makes a GrossModule.
10959           archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
10960           reload_cmds='$CC -r -o $output$reload_objs'
10961           hardcode_direct=no
10962         ;;
10963         motorola)
10964           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10965           hardcode_direct=no #Motorola manual says yes, but my tests say they lie
10966         ;;
10967       esac
10968       runpath_var='LD_RUN_PATH'
10969       hardcode_shlibpath_var=no
10970       ;;
10971
10972     sysv4.3*)
10973       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10974       hardcode_shlibpath_var=no
10975       export_dynamic_flag_spec='-Bexport'
10976       ;;
10977
10978     sysv4*MP*)
10979       if test -d /usr/nec; then
10980         archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10981         hardcode_shlibpath_var=no
10982         runpath_var=LD_RUN_PATH
10983         hardcode_runpath_var=yes
10984         ld_shlibs=yes
10985       fi
10986       ;;
10987
10988     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
10989       no_undefined_flag='${wl}-z,text'
10990       archive_cmds_need_lc=no
10991       hardcode_shlibpath_var=no
10992       runpath_var='LD_RUN_PATH'
10993
10994       if test "$GCC" = yes; then
10995         archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10996         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10997       else
10998         archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10999         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11000       fi
11001       ;;
11002
11003     sysv5* | sco3.2v5* | sco5v6*)
11004       # Note: We can NOT use -z defs as we might desire, because we do not
11005       # link with -lc, and that would cause any symbols used from libc to
11006       # always be unresolved, which means just about no library would
11007       # ever link correctly.  If we're not using GNU ld we use -z text
11008       # though, which does catch some bad symbols but isn't as heavy-handed
11009       # as -z defs.
11010       no_undefined_flag='${wl}-z,text'
11011       allow_undefined_flag='${wl}-z,nodefs'
11012       archive_cmds_need_lc=no
11013       hardcode_shlibpath_var=no
11014       hardcode_libdir_flag_spec='${wl}-R,$libdir'
11015       hardcode_libdir_separator=':'
11016       link_all_deplibs=yes
11017       export_dynamic_flag_spec='${wl}-Bexport'
11018       runpath_var='LD_RUN_PATH'
11019
11020       if test "$GCC" = yes; then
11021         archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11022         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11023       else
11024         archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11025         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11026       fi
11027       ;;
11028
11029     uts4*)
11030       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11031       hardcode_libdir_flag_spec='-L$libdir'
11032       hardcode_shlibpath_var=no
11033       ;;
11034
11035     *)
11036       ld_shlibs=no
11037       ;;
11038     esac
11039
11040     if test x$host_vendor = xsni; then
11041       case $host in
11042       sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
11043         export_dynamic_flag_spec='${wl}-Blargedynsym'
11044         ;;
11045       esac
11046     fi
11047   fi
11048
11049 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
11050 $as_echo "$ld_shlibs" >&6; }
11051 test "$ld_shlibs" = no && can_build_shared=no
11052
11053 with_gnu_ld=$with_gnu_ld
11054
11055
11056
11057
11058
11059
11060
11061
11062
11063
11064
11065
11066
11067
11068
11069 #
11070 # Do we need to explicitly link libc?
11071 #
11072 case "x$archive_cmds_need_lc" in
11073 x|xyes)
11074   # Assume -lc should be added
11075   archive_cmds_need_lc=yes
11076
11077   if test "$enable_shared" = yes && test "$GCC" = yes; then
11078     case $archive_cmds in
11079     *'~'*)
11080       # FIXME: we may have to deal with multi-command sequences.
11081       ;;
11082     '$CC '*)
11083       # Test whether the compiler implicitly links with -lc since on some
11084       # systems, -lgcc has to come before -lc. If gcc already passes -lc
11085       # to ld, don't add -lc before -lgcc.
11086       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
11087 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
11088       $RM conftest*
11089       echo "$lt_simple_compile_test_code" > conftest.$ac_ext
11090
11091       if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
11092   (eval $ac_compile) 2>&5
11093   ac_status=$?
11094   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11095   test $ac_status = 0; } 2>conftest.err; then
11096         soname=conftest
11097         lib=conftest
11098         libobjs=conftest.$ac_objext
11099         deplibs=
11100         wl=$lt_prog_compiler_wl
11101         pic_flag=$lt_prog_compiler_pic
11102         compiler_flags=-v
11103         linker_flags=-v
11104         verstring=
11105         output_objdir=.
11106         libname=conftest
11107         lt_save_allow_undefined_flag=$allow_undefined_flag
11108         allow_undefined_flag=
11109         if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
11110   (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
11111   ac_status=$?
11112   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11113   test $ac_status = 0; }
11114         then
11115           archive_cmds_need_lc=no
11116         else
11117           archive_cmds_need_lc=yes
11118         fi
11119         allow_undefined_flag=$lt_save_allow_undefined_flag
11120       else
11121         cat conftest.err 1>&5
11122       fi
11123       $RM conftest*
11124       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $archive_cmds_need_lc" >&5
11125 $as_echo "$archive_cmds_need_lc" >&6; }
11126       ;;
11127     esac
11128   fi
11129   ;;
11130 esac
11131
11132
11133
11134
11135
11136
11137
11138
11139
11140
11141
11142
11143
11144
11145
11146
11147
11148
11149
11150
11151
11152
11153
11154
11155
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   { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
11289 $as_echo_n "checking dynamic linker characteristics... " >&6; }
11290
11291 if test "$GCC" = yes; then
11292   case $host_os in
11293     darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
11294     *) lt_awk_arg="/^libraries:/" ;;
11295   esac
11296   lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
11297   if $ECHO "$lt_search_path_spec" | $GREP ';' >/dev/null ; then
11298     # if the path contains ";" then we assume it to be the separator
11299     # otherwise default to the standard path separator (i.e. ":") - it is
11300     # assumed that no part of a normal pathname contains ";" but that should
11301     # okay in the real world where ";" in dirpaths is itself problematic.
11302     lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e 's/;/ /g'`
11303   else
11304     lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
11305   fi
11306   # Ok, now we have the path, separated by spaces, we can step through it
11307   # and add multilib dir if necessary.
11308   lt_tmp_lt_search_path_spec=
11309   lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
11310   for lt_sys_path in $lt_search_path_spec; do
11311     if test -d "$lt_sys_path/$lt_multi_os_dir"; then
11312       lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
11313     else
11314       test -d "$lt_sys_path" && \
11315         lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
11316     fi
11317   done
11318   lt_search_path_spec=`$ECHO $lt_tmp_lt_search_path_spec | awk '
11319 BEGIN {RS=" "; FS="/|\n";} {
11320   lt_foo="";
11321   lt_count=0;
11322   for (lt_i = NF; lt_i > 0; lt_i--) {
11323     if ($lt_i != "" && $lt_i != ".") {
11324       if ($lt_i == "..") {
11325         lt_count++;
11326       } else {
11327         if (lt_count == 0) {
11328           lt_foo="/" $lt_i lt_foo;
11329         } else {
11330           lt_count--;
11331         }
11332       }
11333     }
11334   }
11335   if (lt_foo != "") { lt_freq[lt_foo]++; }
11336   if (lt_freq[lt_foo] == 1) { print lt_foo; }
11337 }'`
11338   sys_lib_search_path_spec=`$ECHO $lt_search_path_spec`
11339 else
11340   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
11341 fi
11342 library_names_spec=
11343 libname_spec='lib$name'
11344 soname_spec=
11345 shrext_cmds=".so"
11346 postinstall_cmds=
11347 postuninstall_cmds=
11348 finish_cmds=
11349 finish_eval=
11350 shlibpath_var=
11351 shlibpath_overrides_runpath=unknown
11352 version_type=none
11353 dynamic_linker="$host_os ld.so"
11354 sys_lib_dlsearch_path_spec="/lib /usr/lib"
11355 need_lib_prefix=unknown
11356 hardcode_into_libs=no
11357
11358 # when you set need_version to no, make sure it does not cause -set_version
11359 # flags to be left without arguments
11360 need_version=unknown
11361
11362 case $host_os in
11363 aix3*)
11364   version_type=linux
11365   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
11366   shlibpath_var=LIBPATH
11367
11368   # AIX 3 has no versioning support, so we append a major version to the name.
11369   soname_spec='${libname}${release}${shared_ext}$major'
11370   ;;
11371
11372 aix[4-9]*)
11373   version_type=linux
11374   need_lib_prefix=no
11375   need_version=no
11376   hardcode_into_libs=yes
11377   if test "$host_cpu" = ia64; then
11378     # AIX 5 supports IA64
11379     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
11380     shlibpath_var=LD_LIBRARY_PATH
11381   else
11382     # With GCC up to 2.95.x, collect2 would create an import file
11383     # for dependence libraries.  The import file would start with
11384     # the line `#! .'.  This would cause the generated library to
11385     # depend on `.', always an invalid library.  This was fixed in
11386     # development snapshots of GCC prior to 3.0.
11387     case $host_os in
11388       aix4 | aix4.[01] | aix4.[01].*)
11389       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
11390            echo ' yes '
11391            echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
11392         :
11393       else
11394         can_build_shared=no
11395       fi
11396       ;;
11397     esac
11398     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
11399     # soname into executable. Probably we can add versioning support to
11400     # collect2, so additional links can be useful in future.
11401     if test "$aix_use_runtimelinking" = yes; then
11402       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
11403       # instead of lib<name>.a to let people know that these are not
11404       # typical AIX shared libraries.
11405       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11406     else
11407       # We preserve .a as extension for shared libraries through AIX4.2
11408       # and later when we are not doing run time linking.
11409       library_names_spec='${libname}${release}.a $libname.a'
11410       soname_spec='${libname}${release}${shared_ext}$major'
11411     fi
11412     shlibpath_var=LIBPATH
11413   fi
11414   ;;
11415
11416 amigaos*)
11417   case $host_cpu in
11418   powerpc)
11419     # Since July 2007 AmigaOS4 officially supports .so libraries.
11420     # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
11421     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11422     ;;
11423   m68k)
11424     library_names_spec='$libname.ixlibrary $libname.a'
11425     # Create ${libname}_ixlibrary.a entries in /sys/libs.
11426     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'
11427     ;;
11428   esac
11429   ;;
11430
11431 beos*)
11432   library_names_spec='${libname}${shared_ext}'
11433   dynamic_linker="$host_os ld.so"
11434   shlibpath_var=LIBRARY_PATH
11435   ;;
11436
11437 bsdi[45]*)
11438   version_type=linux
11439   need_version=no
11440   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11441   soname_spec='${libname}${release}${shared_ext}$major'
11442   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
11443   shlibpath_var=LD_LIBRARY_PATH
11444   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
11445   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
11446   # the default ld.so.conf also contains /usr/contrib/lib and
11447   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
11448   # libtool to hard-code these into programs
11449   ;;
11450
11451 cygwin* | mingw* | pw32* | cegcc*)
11452   version_type=windows
11453   shrext_cmds=".dll"
11454   need_version=no
11455   need_lib_prefix=no
11456
11457   case $GCC,$host_os in
11458   yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
11459     library_names_spec='$libname.dll.a'
11460     # DLL is installed to $(libdir)/../bin by postinstall_cmds
11461     postinstall_cmds='base_file=`basename \${file}`~
11462       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
11463       dldir=$destdir/`dirname \$dlpath`~
11464       test -d \$dldir || mkdir -p \$dldir~
11465       $install_prog $dir/$dlname \$dldir/$dlname~
11466       chmod a+x \$dldir/$dlname~
11467       if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
11468         eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
11469       fi'
11470     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11471       dlpath=$dir/\$dldll~
11472        $RM \$dlpath'
11473     shlibpath_overrides_runpath=yes
11474
11475     case $host_os in
11476     cygwin*)
11477       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
11478       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11479       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
11480       ;;
11481     mingw* | cegcc*)
11482       # MinGW DLLs use traditional 'lib' prefix
11483       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11484       sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
11485       if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
11486         # It is most probably a Windows format PATH printed by
11487         # mingw gcc, but we are running on Cygwin. Gcc prints its search
11488         # path with ; separators, and with drive letters. We can handle the
11489         # drive letters (cygwin fileutils understands them), so leave them,
11490         # especially as we might pass files found there to a mingw objdump,
11491         # which wouldn't understand a cygwinified path. Ahh.
11492         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
11493       else
11494         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
11495       fi
11496       ;;
11497     pw32*)
11498       # pw32 DLLs use 'pw' prefix rather than 'lib'
11499       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11500       ;;
11501     esac
11502     ;;
11503
11504   *)
11505     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
11506     ;;
11507   esac
11508   dynamic_linker='Win32 ld.exe'
11509   # FIXME: first we should search . and the directory the executable is in
11510   shlibpath_var=PATH
11511   ;;
11512
11513 darwin* | rhapsody*)
11514   dynamic_linker="$host_os dyld"
11515   version_type=darwin
11516   need_lib_prefix=no
11517   need_version=no
11518   library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
11519   soname_spec='${libname}${release}${major}$shared_ext'
11520   shlibpath_overrides_runpath=yes
11521   shlibpath_var=DYLD_LIBRARY_PATH
11522   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
11523
11524   sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
11525   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
11526   ;;
11527
11528 dgux*)
11529   version_type=linux
11530   need_lib_prefix=no
11531   need_version=no
11532   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
11533   soname_spec='${libname}${release}${shared_ext}$major'
11534   shlibpath_var=LD_LIBRARY_PATH
11535   ;;
11536
11537 freebsd1*)
11538   dynamic_linker=no
11539   ;;
11540
11541 freebsd* | dragonfly*)
11542   # DragonFly does not have aout.  When/if they implement a new
11543   # versioning mechanism, adjust this.
11544   if test -x /usr/bin/objformat; then
11545     objformat=`/usr/bin/objformat`
11546   else
11547     case $host_os in
11548     freebsd[123]*) objformat=aout ;;
11549     *) objformat=elf ;;
11550     esac
11551   fi
11552   version_type=freebsd-$objformat
11553   case $version_type in
11554     freebsd-elf*)
11555       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11556       need_version=no
11557       need_lib_prefix=no
11558       ;;
11559     freebsd-*)
11560       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
11561       need_version=yes
11562       ;;
11563   esac
11564   shlibpath_var=LD_LIBRARY_PATH
11565   case $host_os in
11566   freebsd2*)
11567     shlibpath_overrides_runpath=yes
11568     ;;
11569   freebsd3.[01]* | freebsdelf3.[01]*)
11570     shlibpath_overrides_runpath=yes
11571     hardcode_into_libs=yes
11572     ;;
11573   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
11574   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
11575     shlibpath_overrides_runpath=no
11576     hardcode_into_libs=yes
11577     ;;
11578   *) # from 4.6 on, and DragonFly
11579     shlibpath_overrides_runpath=yes
11580     hardcode_into_libs=yes
11581     ;;
11582   esac
11583   ;;
11584
11585 gnu*)
11586   version_type=linux
11587   need_lib_prefix=no
11588   need_version=no
11589   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
11590   soname_spec='${libname}${release}${shared_ext}$major'
11591   shlibpath_var=LD_LIBRARY_PATH
11592   hardcode_into_libs=yes
11593   ;;
11594
11595 hpux9* | hpux10* | hpux11*)
11596   # Give a soname corresponding to the major version so that dld.sl refuses to
11597   # link against other versions.
11598   version_type=sunos
11599   need_lib_prefix=no
11600   need_version=no
11601   case $host_cpu in
11602   ia64*)
11603     shrext_cmds='.so'
11604     hardcode_into_libs=yes
11605     dynamic_linker="$host_os dld.so"
11606     shlibpath_var=LD_LIBRARY_PATH
11607     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11608     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11609     soname_spec='${libname}${release}${shared_ext}$major'
11610     if test "X$HPUX_IA64_MODE" = X32; then
11611       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
11612     else
11613       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
11614     fi
11615     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11616     ;;
11617   hppa*64*)
11618     shrext_cmds='.sl'
11619     hardcode_into_libs=yes
11620     dynamic_linker="$host_os dld.sl"
11621     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
11622     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11623     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11624     soname_spec='${libname}${release}${shared_ext}$major'
11625     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
11626     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11627     ;;
11628   *)
11629     shrext_cmds='.sl'
11630     dynamic_linker="$host_os dld.sl"
11631     shlibpath_var=SHLIB_PATH
11632     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
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     ;;
11636   esac
11637   # HP-UX runs *really* slowly unless shared libraries are mode 555.
11638   postinstall_cmds='chmod 555 $lib'
11639   ;;
11640
11641 interix[3-9]*)
11642   version_type=linux
11643   need_lib_prefix=no
11644   need_version=no
11645   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11646   soname_spec='${libname}${release}${shared_ext}$major'
11647   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
11648   shlibpath_var=LD_LIBRARY_PATH
11649   shlibpath_overrides_runpath=no
11650   hardcode_into_libs=yes
11651   ;;
11652
11653 irix5* | irix6* | nonstopux*)
11654   case $host_os in
11655     nonstopux*) version_type=nonstopux ;;
11656     *)
11657         if test "$lt_cv_prog_gnu_ld" = yes; then
11658                 version_type=linux
11659         else
11660                 version_type=irix
11661         fi ;;
11662   esac
11663   need_lib_prefix=no
11664   need_version=no
11665   soname_spec='${libname}${release}${shared_ext}$major'
11666   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
11667   case $host_os in
11668   irix5* | nonstopux*)
11669     libsuff= shlibsuff=
11670     ;;
11671   *)
11672     case $LD in # libtool.m4 will add one of these switches to LD
11673     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
11674       libsuff= shlibsuff= libmagic=32-bit;;
11675     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
11676       libsuff=32 shlibsuff=N32 libmagic=N32;;
11677     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
11678       libsuff=64 shlibsuff=64 libmagic=64-bit;;
11679     *) libsuff= shlibsuff= libmagic=never-match;;
11680     esac
11681     ;;
11682   esac
11683   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
11684   shlibpath_overrides_runpath=no
11685   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
11686   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
11687   hardcode_into_libs=yes
11688   ;;
11689
11690 # No shared lib support for Linux oldld, aout, or coff.
11691 linux*oldld* | linux*aout* | linux*coff*)
11692   dynamic_linker=no
11693   ;;
11694
11695 # This must be Linux ELF.
11696 linux* | k*bsd*-gnu)
11697   version_type=linux
11698   need_lib_prefix=no
11699   need_version=no
11700   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11701   soname_spec='${libname}${release}${shared_ext}$major'
11702   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
11703   shlibpath_var=LD_LIBRARY_PATH
11704   shlibpath_overrides_runpath=no
11705   # Some binutils ld are patched to set DT_RUNPATH
11706   save_LDFLAGS=$LDFLAGS
11707   save_libdir=$libdir
11708   eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
11709        LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
11710   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11711 /* end confdefs.h.  */
11712
11713 int
11714 main ()
11715 {
11716
11717   ;
11718   return 0;
11719 }
11720 _ACEOF
11721 if ac_fn_c_try_link "$LINENO"; then :
11722   if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
11723   shlibpath_overrides_runpath=yes
11724 fi
11725 fi
11726 rm -f core conftest.err conftest.$ac_objext \
11727     conftest$ac_exeext conftest.$ac_ext
11728   LDFLAGS=$save_LDFLAGS
11729   libdir=$save_libdir
11730
11731   # This implies no fast_install, which is unacceptable.
11732   # Some rework will be needed to allow for fast_install
11733   # before this can be enabled.
11734   hardcode_into_libs=yes
11735
11736   # Append ld.so.conf contents to the search path
11737   if test -f /etc/ld.so.conf; then
11738     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' ' '`
11739     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
11740   fi
11741
11742   # We used to test for /lib/ld.so.1 and disable shared libraries on
11743   # powerpc, because MkLinux only supported shared libraries with the
11744   # GNU dynamic linker.  Since this was broken with cross compilers,
11745   # most powerpc-linux boxes support dynamic linking these days and
11746   # people can always --disable-shared, the test was removed, and we
11747   # assume the GNU/Linux dynamic linker is in use.
11748   dynamic_linker='GNU/Linux ld.so'
11749   ;;
11750
11751 netbsd*)
11752   version_type=sunos
11753   need_lib_prefix=no
11754   need_version=no
11755   if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11756     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11757     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11758     dynamic_linker='NetBSD (a.out) ld.so'
11759   else
11760     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11761     soname_spec='${libname}${release}${shared_ext}$major'
11762     dynamic_linker='NetBSD ld.elf_so'
11763   fi
11764   shlibpath_var=LD_LIBRARY_PATH
11765   shlibpath_overrides_runpath=yes
11766   hardcode_into_libs=yes
11767   ;;
11768
11769 newsos6)
11770   version_type=linux
11771   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11772   shlibpath_var=LD_LIBRARY_PATH
11773   shlibpath_overrides_runpath=yes
11774   ;;
11775
11776 *nto* | *qnx*)
11777   version_type=qnx
11778   need_lib_prefix=no
11779   need_version=no
11780   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11781   soname_spec='${libname}${release}${shared_ext}$major'
11782   shlibpath_var=LD_LIBRARY_PATH
11783   shlibpath_overrides_runpath=no
11784   hardcode_into_libs=yes
11785   dynamic_linker='ldqnx.so'
11786   ;;
11787
11788 openbsd*)
11789   version_type=sunos
11790   sys_lib_dlsearch_path_spec="/usr/lib"
11791   need_lib_prefix=no
11792   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
11793   case $host_os in
11794     openbsd3.3 | openbsd3.3.*)  need_version=yes ;;
11795     *)                          need_version=no  ;;
11796   esac
11797   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11798   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11799   shlibpath_var=LD_LIBRARY_PATH
11800   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11801     case $host_os in
11802       openbsd2.[89] | openbsd2.[89].*)
11803         shlibpath_overrides_runpath=no
11804         ;;
11805       *)
11806         shlibpath_overrides_runpath=yes
11807         ;;
11808       esac
11809   else
11810     shlibpath_overrides_runpath=yes
11811   fi
11812   ;;
11813
11814 os2*)
11815   libname_spec='$name'
11816   shrext_cmds=".dll"
11817   need_lib_prefix=no
11818   library_names_spec='$libname${shared_ext} $libname.a'
11819   dynamic_linker='OS/2 ld.exe'
11820   shlibpath_var=LIBPATH
11821   ;;
11822
11823 osf3* | osf4* | osf5*)
11824   version_type=osf
11825   need_lib_prefix=no
11826   need_version=no
11827   soname_spec='${libname}${release}${shared_ext}$major'
11828   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11829   shlibpath_var=LD_LIBRARY_PATH
11830   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
11831   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
11832   ;;
11833
11834 rdos*)
11835   dynamic_linker=no
11836   ;;
11837
11838 solaris*)
11839   version_type=linux
11840   need_lib_prefix=no
11841   need_version=no
11842   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11843   soname_spec='${libname}${release}${shared_ext}$major'
11844   shlibpath_var=LD_LIBRARY_PATH
11845   shlibpath_overrides_runpath=yes
11846   hardcode_into_libs=yes
11847   # ldd complains unless libraries are executable
11848   postinstall_cmds='chmod +x $lib'
11849   ;;
11850
11851 sunos4*)
11852   version_type=sunos
11853   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11854   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
11855   shlibpath_var=LD_LIBRARY_PATH
11856   shlibpath_overrides_runpath=yes
11857   if test "$with_gnu_ld" = yes; then
11858     need_lib_prefix=no
11859   fi
11860   need_version=yes
11861   ;;
11862
11863 sysv4 | sysv4.3*)
11864   version_type=linux
11865   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11866   soname_spec='${libname}${release}${shared_ext}$major'
11867   shlibpath_var=LD_LIBRARY_PATH
11868   case $host_vendor in
11869     sni)
11870       shlibpath_overrides_runpath=no
11871       need_lib_prefix=no
11872       runpath_var=LD_RUN_PATH
11873       ;;
11874     siemens)
11875       need_lib_prefix=no
11876       ;;
11877     motorola)
11878       need_lib_prefix=no
11879       need_version=no
11880       shlibpath_overrides_runpath=no
11881       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
11882       ;;
11883   esac
11884   ;;
11885
11886 sysv4*MP*)
11887   if test -d /usr/nec ;then
11888     version_type=linux
11889     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
11890     soname_spec='$libname${shared_ext}.$major'
11891     shlibpath_var=LD_LIBRARY_PATH
11892   fi
11893   ;;
11894
11895 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
11896   version_type=freebsd-elf
11897   need_lib_prefix=no
11898   need_version=no
11899   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11900   soname_spec='${libname}${release}${shared_ext}$major'
11901   shlibpath_var=LD_LIBRARY_PATH
11902   shlibpath_overrides_runpath=yes
11903   hardcode_into_libs=yes
11904   if test "$with_gnu_ld" = yes; then
11905     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
11906   else
11907     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
11908     case $host_os in
11909       sco3.2v5*)
11910         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
11911         ;;
11912     esac
11913   fi
11914   sys_lib_dlsearch_path_spec='/usr/lib'
11915   ;;
11916
11917 tpf*)
11918   # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
11919   version_type=linux
11920   need_lib_prefix=no
11921   need_version=no
11922   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11923   shlibpath_var=LD_LIBRARY_PATH
11924   shlibpath_overrides_runpath=no
11925   hardcode_into_libs=yes
11926   ;;
11927
11928 uts4*)
11929   version_type=linux
11930   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11931   soname_spec='${libname}${release}${shared_ext}$major'
11932   shlibpath_var=LD_LIBRARY_PATH
11933   ;;
11934
11935 *)
11936   dynamic_linker=no
11937   ;;
11938 esac
11939 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
11940 $as_echo "$dynamic_linker" >&6; }
11941 test "$dynamic_linker" = no && can_build_shared=no
11942
11943 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
11944 if test "$GCC" = yes; then
11945   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
11946 fi
11947
11948 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
11949   sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
11950 fi
11951 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
11952   sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
11953 fi
11954
11955
11956
11957
11958
11959
11960
11961
11962
11963
11964
11965
11966
11967
11968
11969
11970
11971
11972
11973
11974
11975
11976
11977
11978
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   { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
12042 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
12043 hardcode_action=
12044 if test -n "$hardcode_libdir_flag_spec" ||
12045    test -n "$runpath_var" ||
12046    test "X$hardcode_automatic" = "Xyes" ; then
12047
12048   # We can hardcode non-existent directories.
12049   if test "$hardcode_direct" != no &&
12050      # If the only mechanism to avoid hardcoding is shlibpath_var, we
12051      # have to relink, otherwise we might link with an installed library
12052      # when we should be linking with a yet-to-be-installed one
12053      ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
12054      test "$hardcode_minus_L" != no; then
12055     # Linking always hardcodes the temporary library directory.
12056     hardcode_action=relink
12057   else
12058     # We can link without hardcoding, and we can hardcode nonexisting dirs.
12059     hardcode_action=immediate
12060   fi
12061 else
12062   # We cannot hardcode anything, or else we can only hardcode existing
12063   # directories.
12064   hardcode_action=unsupported
12065 fi
12066 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
12067 $as_echo "$hardcode_action" >&6; }
12068
12069 if test "$hardcode_action" = relink ||
12070    test "$inherit_rpath" = yes; then
12071   # Fast installation is not supported
12072   enable_fast_install=no
12073 elif test "$shlibpath_overrides_runpath" = yes ||
12074      test "$enable_shared" = no; then
12075   # Fast installation is not necessary
12076   enable_fast_install=needless
12077 fi
12078
12079
12080
12081
12082
12083
12084   if test "x$enable_dlopen" != xyes; then
12085   enable_dlopen=unknown
12086   enable_dlopen_self=unknown
12087   enable_dlopen_self_static=unknown
12088 else
12089   lt_cv_dlopen=no
12090   lt_cv_dlopen_libs=
12091
12092   case $host_os in
12093   beos*)
12094     lt_cv_dlopen="load_add_on"
12095     lt_cv_dlopen_libs=
12096     lt_cv_dlopen_self=yes
12097     ;;
12098
12099   mingw* | pw32* | cegcc*)
12100     lt_cv_dlopen="LoadLibrary"
12101     lt_cv_dlopen_libs=
12102     ;;
12103
12104   cygwin*)
12105     lt_cv_dlopen="dlopen"
12106     lt_cv_dlopen_libs=
12107     ;;
12108
12109   darwin*)
12110   # if libdl is installed we need to link against it
12111     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
12112 $as_echo_n "checking for dlopen in -ldl... " >&6; }
12113 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
12114   $as_echo_n "(cached) " >&6
12115 else
12116   ac_check_lib_save_LIBS=$LIBS
12117 LIBS="-ldl  $LIBS"
12118 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12119 /* end confdefs.h.  */
12120
12121 /* Override any GCC internal prototype to avoid an error.
12122    Use char because int might match the return type of a GCC
12123    builtin and then its argument prototype would still apply.  */
12124 #ifdef __cplusplus
12125 extern "C"
12126 #endif
12127 char dlopen ();
12128 int
12129 main ()
12130 {
12131 return dlopen ();
12132   ;
12133   return 0;
12134 }
12135 _ACEOF
12136 if ac_fn_c_try_link "$LINENO"; then :
12137   ac_cv_lib_dl_dlopen=yes
12138 else
12139   ac_cv_lib_dl_dlopen=no
12140 fi
12141 rm -f core conftest.err conftest.$ac_objext \
12142     conftest$ac_exeext conftest.$ac_ext
12143 LIBS=$ac_check_lib_save_LIBS
12144 fi
12145 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
12146 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
12147 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
12148   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
12149 else
12150
12151     lt_cv_dlopen="dyld"
12152     lt_cv_dlopen_libs=
12153     lt_cv_dlopen_self=yes
12154
12155 fi
12156
12157     ;;
12158
12159   *)
12160     ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
12161 if test "x$ac_cv_func_shl_load" = x""yes; then :
12162   lt_cv_dlopen="shl_load"
12163 else
12164   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
12165 $as_echo_n "checking for shl_load in -ldld... " >&6; }
12166 if test "${ac_cv_lib_dld_shl_load+set}" = set; then :
12167   $as_echo_n "(cached) " >&6
12168 else
12169   ac_check_lib_save_LIBS=$LIBS
12170 LIBS="-ldld  $LIBS"
12171 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12172 /* end confdefs.h.  */
12173
12174 /* Override any GCC internal prototype to avoid an error.
12175    Use char because int might match the return type of a GCC
12176    builtin and then its argument prototype would still apply.  */
12177 #ifdef __cplusplus
12178 extern "C"
12179 #endif
12180 char shl_load ();
12181 int
12182 main ()
12183 {
12184 return shl_load ();
12185   ;
12186   return 0;
12187 }
12188 _ACEOF
12189 if ac_fn_c_try_link "$LINENO"; then :
12190   ac_cv_lib_dld_shl_load=yes
12191 else
12192   ac_cv_lib_dld_shl_load=no
12193 fi
12194 rm -f core conftest.err conftest.$ac_objext \
12195     conftest$ac_exeext conftest.$ac_ext
12196 LIBS=$ac_check_lib_save_LIBS
12197 fi
12198 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
12199 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
12200 if test "x$ac_cv_lib_dld_shl_load" = x""yes; then :
12201   lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
12202 else
12203   ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
12204 if test "x$ac_cv_func_dlopen" = x""yes; then :
12205   lt_cv_dlopen="dlopen"
12206 else
12207   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
12208 $as_echo_n "checking for dlopen in -ldl... " >&6; }
12209 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
12210   $as_echo_n "(cached) " >&6
12211 else
12212   ac_check_lib_save_LIBS=$LIBS
12213 LIBS="-ldl  $LIBS"
12214 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12215 /* end confdefs.h.  */
12216
12217 /* Override any GCC internal prototype to avoid an error.
12218    Use char because int might match the return type of a GCC
12219    builtin and then its argument prototype would still apply.  */
12220 #ifdef __cplusplus
12221 extern "C"
12222 #endif
12223 char dlopen ();
12224 int
12225 main ()
12226 {
12227 return dlopen ();
12228   ;
12229   return 0;
12230 }
12231 _ACEOF
12232 if ac_fn_c_try_link "$LINENO"; then :
12233   ac_cv_lib_dl_dlopen=yes
12234 else
12235   ac_cv_lib_dl_dlopen=no
12236 fi
12237 rm -f core conftest.err conftest.$ac_objext \
12238     conftest$ac_exeext conftest.$ac_ext
12239 LIBS=$ac_check_lib_save_LIBS
12240 fi
12241 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
12242 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
12243 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
12244   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
12245 else
12246   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
12247 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
12248 if test "${ac_cv_lib_svld_dlopen+set}" = set; then :
12249   $as_echo_n "(cached) " >&6
12250 else
12251   ac_check_lib_save_LIBS=$LIBS
12252 LIBS="-lsvld  $LIBS"
12253 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12254 /* end confdefs.h.  */
12255
12256 /* Override any GCC internal prototype to avoid an error.
12257    Use char because int might match the return type of a GCC
12258    builtin and then its argument prototype would still apply.  */
12259 #ifdef __cplusplus
12260 extern "C"
12261 #endif
12262 char dlopen ();
12263 int
12264 main ()
12265 {
12266 return dlopen ();
12267   ;
12268   return 0;
12269 }
12270 _ACEOF
12271 if ac_fn_c_try_link "$LINENO"; then :
12272   ac_cv_lib_svld_dlopen=yes
12273 else
12274   ac_cv_lib_svld_dlopen=no
12275 fi
12276 rm -f core conftest.err conftest.$ac_objext \
12277     conftest$ac_exeext conftest.$ac_ext
12278 LIBS=$ac_check_lib_save_LIBS
12279 fi
12280 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
12281 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
12282 if test "x$ac_cv_lib_svld_dlopen" = x""yes; then :
12283   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
12284 else
12285   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
12286 $as_echo_n "checking for dld_link in -ldld... " >&6; }
12287 if test "${ac_cv_lib_dld_dld_link+set}" = set; then :
12288   $as_echo_n "(cached) " >&6
12289 else
12290   ac_check_lib_save_LIBS=$LIBS
12291 LIBS="-ldld  $LIBS"
12292 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12293 /* end confdefs.h.  */
12294
12295 /* Override any GCC internal prototype to avoid an error.
12296    Use char because int might match the return type of a GCC
12297    builtin and then its argument prototype would still apply.  */
12298 #ifdef __cplusplus
12299 extern "C"
12300 #endif
12301 char dld_link ();
12302 int
12303 main ()
12304 {
12305 return dld_link ();
12306   ;
12307   return 0;
12308 }
12309 _ACEOF
12310 if ac_fn_c_try_link "$LINENO"; then :
12311   ac_cv_lib_dld_dld_link=yes
12312 else
12313   ac_cv_lib_dld_dld_link=no
12314 fi
12315 rm -f core conftest.err conftest.$ac_objext \
12316     conftest$ac_exeext conftest.$ac_ext
12317 LIBS=$ac_check_lib_save_LIBS
12318 fi
12319 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
12320 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
12321 if test "x$ac_cv_lib_dld_dld_link" = x""yes; then :
12322   lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
12323 fi
12324
12325
12326 fi
12327
12328
12329 fi
12330
12331
12332 fi
12333
12334
12335 fi
12336
12337
12338 fi
12339
12340     ;;
12341   esac
12342
12343   if test "x$lt_cv_dlopen" != xno; then
12344     enable_dlopen=yes
12345   else
12346     enable_dlopen=no
12347   fi
12348
12349   case $lt_cv_dlopen in
12350   dlopen)
12351     save_CPPFLAGS="$CPPFLAGS"
12352     test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
12353
12354     save_LDFLAGS="$LDFLAGS"
12355     wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
12356
12357     save_LIBS="$LIBS"
12358     LIBS="$lt_cv_dlopen_libs $LIBS"
12359
12360     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
12361 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
12362 if test "${lt_cv_dlopen_self+set}" = set; then :
12363   $as_echo_n "(cached) " >&6
12364 else
12365           if test "$cross_compiling" = yes; then :
12366   lt_cv_dlopen_self=cross
12367 else
12368   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12369   lt_status=$lt_dlunknown
12370   cat > conftest.$ac_ext <<_LT_EOF
12371 #line 12371 "configure"
12372 #include "confdefs.h"
12373
12374 #if HAVE_DLFCN_H
12375 #include <dlfcn.h>
12376 #endif
12377
12378 #include <stdio.h>
12379
12380 #ifdef RTLD_GLOBAL
12381 #  define LT_DLGLOBAL           RTLD_GLOBAL
12382 #else
12383 #  ifdef DL_GLOBAL
12384 #    define LT_DLGLOBAL         DL_GLOBAL
12385 #  else
12386 #    define LT_DLGLOBAL         0
12387 #  endif
12388 #endif
12389
12390 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12391    find out it does not work in some platform. */
12392 #ifndef LT_DLLAZY_OR_NOW
12393 #  ifdef RTLD_LAZY
12394 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
12395 #  else
12396 #    ifdef DL_LAZY
12397 #      define LT_DLLAZY_OR_NOW          DL_LAZY
12398 #    else
12399 #      ifdef RTLD_NOW
12400 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
12401 #      else
12402 #        ifdef DL_NOW
12403 #          define LT_DLLAZY_OR_NOW      DL_NOW
12404 #        else
12405 #          define LT_DLLAZY_OR_NOW      0
12406 #        endif
12407 #      endif
12408 #    endif
12409 #  endif
12410 #endif
12411
12412 void fnord() { int i=42;}
12413 int main ()
12414 {
12415   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12416   int status = $lt_dlunknown;
12417
12418   if (self)
12419     {
12420       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
12421       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12422       /* dlclose (self); */
12423     }
12424   else
12425     puts (dlerror ());
12426
12427   return status;
12428 }
12429 _LT_EOF
12430   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12431   (eval $ac_link) 2>&5
12432   ac_status=$?
12433   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12434   test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
12435     (./conftest; exit; ) >&5 2>/dev/null
12436     lt_status=$?
12437     case x$lt_status in
12438       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
12439       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
12440       x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
12441     esac
12442   else :
12443     # compilation failed
12444     lt_cv_dlopen_self=no
12445   fi
12446 fi
12447 rm -fr conftest*
12448
12449
12450 fi
12451 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
12452 $as_echo "$lt_cv_dlopen_self" >&6; }
12453
12454     if test "x$lt_cv_dlopen_self" = xyes; then
12455       wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
12456       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
12457 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
12458 if test "${lt_cv_dlopen_self_static+set}" = set; then :
12459   $as_echo_n "(cached) " >&6
12460 else
12461           if test "$cross_compiling" = yes; then :
12462   lt_cv_dlopen_self_static=cross
12463 else
12464   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12465   lt_status=$lt_dlunknown
12466   cat > conftest.$ac_ext <<_LT_EOF
12467 #line 12467 "configure"
12468 #include "confdefs.h"
12469
12470 #if HAVE_DLFCN_H
12471 #include <dlfcn.h>
12472 #endif
12473
12474 #include <stdio.h>
12475
12476 #ifdef RTLD_GLOBAL
12477 #  define LT_DLGLOBAL           RTLD_GLOBAL
12478 #else
12479 #  ifdef DL_GLOBAL
12480 #    define LT_DLGLOBAL         DL_GLOBAL
12481 #  else
12482 #    define LT_DLGLOBAL         0
12483 #  endif
12484 #endif
12485
12486 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12487    find out it does not work in some platform. */
12488 #ifndef LT_DLLAZY_OR_NOW
12489 #  ifdef RTLD_LAZY
12490 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
12491 #  else
12492 #    ifdef DL_LAZY
12493 #      define LT_DLLAZY_OR_NOW          DL_LAZY
12494 #    else
12495 #      ifdef RTLD_NOW
12496 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
12497 #      else
12498 #        ifdef DL_NOW
12499 #          define LT_DLLAZY_OR_NOW      DL_NOW
12500 #        else
12501 #          define LT_DLLAZY_OR_NOW      0
12502 #        endif
12503 #      endif
12504 #    endif
12505 #  endif
12506 #endif
12507
12508 void fnord() { int i=42;}
12509 int main ()
12510 {
12511   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12512   int status = $lt_dlunknown;
12513
12514   if (self)
12515     {
12516       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
12517       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12518       /* dlclose (self); */
12519     }
12520   else
12521     puts (dlerror ());
12522
12523   return status;
12524 }
12525 _LT_EOF
12526   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12527   (eval $ac_link) 2>&5
12528   ac_status=$?
12529   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12530   test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
12531     (./conftest; exit; ) >&5 2>/dev/null
12532     lt_status=$?
12533     case x$lt_status in
12534       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
12535       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
12536       x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
12537     esac
12538   else :
12539     # compilation failed
12540     lt_cv_dlopen_self_static=no
12541   fi
12542 fi
12543 rm -fr conftest*
12544
12545
12546 fi
12547 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
12548 $as_echo "$lt_cv_dlopen_self_static" >&6; }
12549     fi
12550
12551     CPPFLAGS="$save_CPPFLAGS"
12552     LDFLAGS="$save_LDFLAGS"
12553     LIBS="$save_LIBS"
12554     ;;
12555   esac
12556
12557   case $lt_cv_dlopen_self in
12558   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
12559   *) enable_dlopen_self=unknown ;;
12560   esac
12561
12562   case $lt_cv_dlopen_self_static in
12563   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
12564   *) enable_dlopen_self_static=unknown ;;
12565   esac
12566 fi
12567
12568
12569
12570
12571
12572
12573
12574
12575
12576
12577
12578
12579
12580
12581
12582
12583
12584 striplib=
12585 old_striplib=
12586 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
12587 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
12588 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
12589   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
12590   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
12591   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12592 $as_echo "yes" >&6; }
12593 else
12594 # FIXME - insert some real tests, host_os isn't really good enough
12595   case $host_os in
12596   darwin*)
12597     if test -n "$STRIP" ; then
12598       striplib="$STRIP -x"
12599       old_striplib="$STRIP -S"
12600       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12601 $as_echo "yes" >&6; }
12602     else
12603       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12604 $as_echo "no" >&6; }
12605     fi
12606     ;;
12607   *)
12608     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12609 $as_echo "no" >&6; }
12610     ;;
12611   esac
12612 fi
12613
12614
12615
12616
12617
12618
12619
12620
12621
12622
12623
12624
12625   # Report which library types will actually be built
12626   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
12627 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
12628   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
12629 $as_echo "$can_build_shared" >&6; }
12630
12631   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
12632 $as_echo_n "checking whether to build shared libraries... " >&6; }
12633   test "$can_build_shared" = "no" && enable_shared=no
12634
12635   # On AIX, shared libraries and static libraries use the same namespace, and
12636   # are all built from PIC.
12637   case $host_os in
12638   aix3*)
12639     test "$enable_shared" = yes && enable_static=no
12640     if test -n "$RANLIB"; then
12641       archive_cmds="$archive_cmds~\$RANLIB \$lib"
12642       postinstall_cmds='$RANLIB $lib'
12643     fi
12644     ;;
12645
12646   aix[4-9]*)
12647     if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
12648       test "$enable_shared" = yes && enable_static=no
12649     fi
12650     ;;
12651   esac
12652   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
12653 $as_echo "$enable_shared" >&6; }
12654
12655   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
12656 $as_echo_n "checking whether to build static libraries... " >&6; }
12657   # Make sure either enable_shared or enable_static is yes.
12658   test "$enable_shared" = yes || enable_static=yes
12659   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
12660 $as_echo "$enable_static" >&6; }
12661
12662
12663
12664
12665 fi
12666 ac_ext=c
12667 ac_cpp='$CPP $CPPFLAGS'
12668 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12669 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12670 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12671
12672 CC="$lt_save_CC"
12673
12674
12675 ac_ext=cpp
12676 ac_cpp='$CXXCPP $CPPFLAGS'
12677 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12678 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12679 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12680
12681 archive_cmds_need_lc_CXX=no
12682 allow_undefined_flag_CXX=
12683 always_export_symbols_CXX=no
12684 archive_expsym_cmds_CXX=
12685 compiler_needs_object_CXX=no
12686 export_dynamic_flag_spec_CXX=
12687 hardcode_direct_CXX=no
12688 hardcode_direct_absolute_CXX=no
12689 hardcode_libdir_flag_spec_CXX=
12690 hardcode_libdir_flag_spec_ld_CXX=
12691 hardcode_libdir_separator_CXX=
12692 hardcode_minus_L_CXX=no
12693 hardcode_shlibpath_var_CXX=unsupported
12694 hardcode_automatic_CXX=no
12695 inherit_rpath_CXX=no
12696 module_cmds_CXX=
12697 module_expsym_cmds_CXX=
12698 link_all_deplibs_CXX=unknown
12699 old_archive_cmds_CXX=$old_archive_cmds
12700 no_undefined_flag_CXX=
12701 whole_archive_flag_spec_CXX=
12702 enable_shared_with_static_runtimes_CXX=no
12703
12704 # Source file extension for C++ test sources.
12705 ac_ext=cpp
12706
12707 # Object file extension for compiled C++ test sources.
12708 objext=o
12709 objext_CXX=$objext
12710
12711 # No sense in running all these tests if we already determined that
12712 # the CXX compiler isn't working.  Some variables (like enable_shared)
12713 # are currently assumed to apply to all compilers on this platform,
12714 # and will be corrupted by setting them based on a non-working compiler.
12715 if test "$_lt_caught_CXX_error" != yes; then
12716   # Code to be used in simple compile tests
12717   lt_simple_compile_test_code="int some_variable = 0;"
12718
12719   # Code to be used in simple link tests
12720   lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
12721
12722   # ltmain only uses $CC for tagged configurations so make sure $CC is set.
12723
12724
12725
12726
12727
12728
12729 # If no C compiler was specified, use CC.
12730 LTCC=${LTCC-"$CC"}
12731
12732 # If no C compiler flags were specified, use CFLAGS.
12733 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
12734
12735 # Allow CC to be a program name with arguments.
12736 compiler=$CC
12737
12738
12739   # save warnings/boilerplate of simple test code
12740   ac_outfile=conftest.$ac_objext
12741 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
12742 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
12743 _lt_compiler_boilerplate=`cat conftest.err`
12744 $RM conftest*
12745
12746   ac_outfile=conftest.$ac_objext
12747 echo "$lt_simple_link_test_code" >conftest.$ac_ext
12748 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
12749 _lt_linker_boilerplate=`cat conftest.err`
12750 $RM -r conftest*
12751
12752
12753   # Allow CC to be a program name with arguments.
12754   lt_save_CC=$CC
12755   lt_save_LD=$LD
12756   lt_save_GCC=$GCC
12757   GCC=$GXX
12758   lt_save_with_gnu_ld=$with_gnu_ld
12759   lt_save_path_LD=$lt_cv_path_LD
12760   if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
12761     lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
12762   else
12763     $as_unset lt_cv_prog_gnu_ld
12764   fi
12765   if test -n "${lt_cv_path_LDCXX+set}"; then
12766     lt_cv_path_LD=$lt_cv_path_LDCXX
12767   else
12768     $as_unset lt_cv_path_LD
12769   fi
12770   test -z "${LDCXX+set}" || LD=$LDCXX
12771   CC=${CXX-"c++"}
12772   compiler=$CC
12773   compiler_CXX=$CC
12774   for cc_temp in $compiler""; do
12775   case $cc_temp in
12776     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
12777     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
12778     \-*) ;;
12779     *) break;;
12780   esac
12781 done
12782 cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
12783
12784
12785   if test -n "$compiler"; then
12786     # We don't want -fno-exception when compiling C++ code, so set the
12787     # no_builtin_flag separately
12788     if test "$GXX" = yes; then
12789       lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
12790     else
12791       lt_prog_compiler_no_builtin_flag_CXX=
12792     fi
12793
12794     if test "$GXX" = yes; then
12795       # Set up default GNU C++ configuration
12796
12797
12798
12799 # Check whether --with-gnu-ld was given.
12800 if test "${with_gnu_ld+set}" = set; then :
12801   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
12802 else
12803   with_gnu_ld=no
12804 fi
12805
12806 ac_prog=ld
12807 if test "$GCC" = yes; then
12808   # Check if gcc -print-prog-name=ld gives a path.
12809   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
12810 $as_echo_n "checking for ld used by $CC... " >&6; }
12811   case $host in
12812   *-*-mingw*)
12813     # gcc leaves a trailing carriage return which upsets mingw
12814     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
12815   *)
12816     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
12817   esac
12818   case $ac_prog in
12819     # Accept absolute paths.
12820     [\\/]* | ?:[\\/]*)
12821       re_direlt='/[^/][^/]*/\.\./'
12822       # Canonicalize the pathname of ld
12823       ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
12824       while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
12825         ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
12826       done
12827       test -z "$LD" && LD="$ac_prog"
12828       ;;
12829   "")
12830     # If it fails, then pretend we aren't using GCC.
12831     ac_prog=ld
12832     ;;
12833   *)
12834     # If it is relative, then search for the first ld in PATH.
12835     with_gnu_ld=unknown
12836     ;;
12837   esac
12838 elif test "$with_gnu_ld" = yes; then
12839   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
12840 $as_echo_n "checking for GNU ld... " >&6; }
12841 else
12842   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
12843 $as_echo_n "checking for non-GNU ld... " >&6; }
12844 fi
12845 if test "${lt_cv_path_LD+set}" = set; then :
12846   $as_echo_n "(cached) " >&6
12847 else
12848   if test -z "$LD"; then
12849   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
12850   for ac_dir in $PATH; do
12851     IFS="$lt_save_ifs"
12852     test -z "$ac_dir" && ac_dir=.
12853     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
12854       lt_cv_path_LD="$ac_dir/$ac_prog"
12855       # Check to see if the program is GNU ld.  I'd rather use --version,
12856       # but apparently some variants of GNU ld only accept -v.
12857       # Break only if it was the GNU/non-GNU ld that we prefer.
12858       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
12859       *GNU* | *'with BFD'*)
12860         test "$with_gnu_ld" != no && break
12861         ;;
12862       *)
12863         test "$with_gnu_ld" != yes && break
12864         ;;
12865       esac
12866     fi
12867   done
12868   IFS="$lt_save_ifs"
12869 else
12870   lt_cv_path_LD="$LD" # Let the user override the test with a path.
12871 fi
12872 fi
12873
12874 LD="$lt_cv_path_LD"
12875 if test -n "$LD"; then
12876   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
12877 $as_echo "$LD" >&6; }
12878 else
12879   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12880 $as_echo "no" >&6; }
12881 fi
12882 test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
12883 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
12884 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
12885 if test "${lt_cv_prog_gnu_ld+set}" = set; then :
12886   $as_echo_n "(cached) " >&6
12887 else
12888   # I'd rather use --version here, but apparently some GNU lds only accept -v.
12889 case `$LD -v 2>&1 </dev/null` in
12890 *GNU* | *'with BFD'*)
12891   lt_cv_prog_gnu_ld=yes
12892   ;;
12893 *)
12894   lt_cv_prog_gnu_ld=no
12895   ;;
12896 esac
12897 fi
12898 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
12899 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
12900 with_gnu_ld=$lt_cv_prog_gnu_ld
12901
12902
12903
12904
12905
12906
12907
12908       # Check if GNU C++ uses GNU ld as the underlying linker, since the
12909       # archiving commands below assume that GNU ld is being used.
12910       if test "$with_gnu_ld" = yes; then
12911         archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
12912         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'
12913
12914         hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12915         export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12916
12917         # If archive_cmds runs LD, not CC, wlarc should be empty
12918         # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
12919         #     investigate it a little bit more. (MM)
12920         wlarc='${wl}'
12921
12922         # ancient GNU ld didn't support --whole-archive et. al.
12923         if eval "`$CC -print-prog-name=ld` --help 2>&1" |
12924           $GREP 'no-whole-archive' > /dev/null; then
12925           whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
12926         else
12927           whole_archive_flag_spec_CXX=
12928         fi
12929       else
12930         with_gnu_ld=no
12931         wlarc=
12932
12933         # A generic and very simple default shared library creation
12934         # command for GNU C++ for the case where it uses the native
12935         # linker, instead of GNU ld.  If possible, this setting should
12936         # overridden to take advantage of the native linker features on
12937         # the platform it is being used on.
12938         archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
12939       fi
12940
12941       # Commands to make compiler produce verbose output that lists
12942       # what "hidden" libraries, object files and flags are used when
12943       # linking a shared library.
12944       output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
12945
12946     else
12947       GXX=no
12948       with_gnu_ld=no
12949       wlarc=
12950     fi
12951
12952     # PORTME: fill in a description of your system's C++ link characteristics
12953     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
12954 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
12955     ld_shlibs_CXX=yes
12956     case $host_os in
12957       aix3*)
12958         # FIXME: insert proper C++ library support
12959         ld_shlibs_CXX=no
12960         ;;
12961       aix[4-9]*)
12962         if test "$host_cpu" = ia64; then
12963           # On IA64, the linker does run time linking by default, so we don't
12964           # have to do anything special.
12965           aix_use_runtimelinking=no
12966           exp_sym_flag='-Bexport'
12967           no_entry_flag=""
12968         else
12969           aix_use_runtimelinking=no
12970
12971           # Test if we are trying to use run time linking or normal
12972           # AIX style linking. If -brtl is somewhere in LDFLAGS, we
12973           # need to do runtime linking.
12974           case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
12975             for ld_flag in $LDFLAGS; do
12976               case $ld_flag in
12977               *-brtl*)
12978                 aix_use_runtimelinking=yes
12979                 break
12980                 ;;
12981               esac
12982             done
12983             ;;
12984           esac
12985
12986           exp_sym_flag='-bexport'
12987           no_entry_flag='-bnoentry'
12988         fi
12989
12990         # When large executables or shared objects are built, AIX ld can
12991         # have problems creating the table of contents.  If linking a library
12992         # or program results in "error TOC overflow" add -mminimal-toc to
12993         # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
12994         # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
12995
12996         archive_cmds_CXX=''
12997         hardcode_direct_CXX=yes
12998         hardcode_direct_absolute_CXX=yes
12999         hardcode_libdir_separator_CXX=':'
13000         link_all_deplibs_CXX=yes
13001         file_list_spec_CXX='${wl}-f,'
13002
13003         if test "$GXX" = yes; then
13004           case $host_os in aix4.[012]|aix4.[012].*)
13005           # We only want to do this on AIX 4.2 and lower, the check
13006           # below for broken collect2 doesn't work under 4.3+
13007           collect2name=`${CC} -print-prog-name=collect2`
13008           if test -f "$collect2name" &&
13009              strings "$collect2name" | $GREP resolve_lib_name >/dev/null
13010           then
13011             # We have reworked collect2
13012             :
13013           else
13014             # We have old collect2
13015             hardcode_direct_CXX=unsupported
13016             # It fails to find uninstalled libraries when the uninstalled
13017             # path is not listed in the libpath.  Setting hardcode_minus_L
13018             # to unsupported forces relinking
13019             hardcode_minus_L_CXX=yes
13020             hardcode_libdir_flag_spec_CXX='-L$libdir'
13021             hardcode_libdir_separator_CXX=
13022           fi
13023           esac
13024           shared_flag='-shared'
13025           if test "$aix_use_runtimelinking" = yes; then
13026             shared_flag="$shared_flag "'${wl}-G'
13027           fi
13028         else
13029           # not using gcc
13030           if test "$host_cpu" = ia64; then
13031           # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
13032           # chokes on -Wl,-G. The following line is correct:
13033           shared_flag='-G'
13034           else
13035             if test "$aix_use_runtimelinking" = yes; then
13036               shared_flag='${wl}-G'
13037             else
13038               shared_flag='${wl}-bM:SRE'
13039             fi
13040           fi
13041         fi
13042
13043         export_dynamic_flag_spec_CXX='${wl}-bexpall'
13044         # It seems that -bexpall does not export symbols beginning with
13045         # underscore (_), so it is better to generate a list of symbols to
13046         # export.
13047         always_export_symbols_CXX=yes
13048         if test "$aix_use_runtimelinking" = yes; then
13049           # Warning - without using the other runtime loading flags (-brtl),
13050           # -berok will link without error, but may produce a broken library.
13051           allow_undefined_flag_CXX='-berok'
13052           # Determine the default libpath from the value encoded in an empty
13053           # executable.
13054           cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13055 /* end confdefs.h.  */
13056
13057 int
13058 main ()
13059 {
13060
13061   ;
13062   return 0;
13063 }
13064 _ACEOF
13065 if ac_fn_cxx_try_link "$LINENO"; then :
13066
13067 lt_aix_libpath_sed='
13068     /Import File Strings/,/^$/ {
13069         /^0/ {
13070             s/^0  *\(.*\)$/\1/
13071             p
13072         }
13073     }'
13074 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13075 # Check for a 64-bit object if we didn't find anything.
13076 if test -z "$aix_libpath"; then
13077   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13078 fi
13079 fi
13080 rm -f core conftest.err conftest.$ac_objext \
13081     conftest$ac_exeext conftest.$ac_ext
13082 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
13083
13084           hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
13085
13086           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"
13087         else
13088           if test "$host_cpu" = ia64; then
13089             hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
13090             allow_undefined_flag_CXX="-z nodefs"
13091             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"
13092           else
13093             # Determine the default libpath from the value encoded in an
13094             # empty executable.
13095             cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13096 /* end confdefs.h.  */
13097
13098 int
13099 main ()
13100 {
13101
13102   ;
13103   return 0;
13104 }
13105 _ACEOF
13106 if ac_fn_cxx_try_link "$LINENO"; then :
13107
13108 lt_aix_libpath_sed='
13109     /Import File Strings/,/^$/ {
13110         /^0/ {
13111             s/^0  *\(.*\)$/\1/
13112             p
13113         }
13114     }'
13115 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13116 # Check for a 64-bit object if we didn't find anything.
13117 if test -z "$aix_libpath"; then
13118   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13119 fi
13120 fi
13121 rm -f core conftest.err conftest.$ac_objext \
13122     conftest$ac_exeext conftest.$ac_ext
13123 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
13124
13125             hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
13126             # Warning - without using the other run time loading flags,
13127             # -berok will link without error, but may produce a broken library.
13128             no_undefined_flag_CXX=' ${wl}-bernotok'
13129             allow_undefined_flag_CXX=' ${wl}-berok'
13130             # Exported symbols can be pulled into shared objects from archives
13131             whole_archive_flag_spec_CXX='$convenience'
13132             archive_cmds_need_lc_CXX=yes
13133             # This is similar to how AIX traditionally builds its shared
13134             # libraries.
13135             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'
13136           fi
13137         fi
13138         ;;
13139
13140       beos*)
13141         if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
13142           allow_undefined_flag_CXX=unsupported
13143           # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
13144           # support --undefined.  This deserves some investigation.  FIXME
13145           archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13146         else
13147           ld_shlibs_CXX=no
13148         fi
13149         ;;
13150
13151       chorus*)
13152         case $cc_basename in
13153           *)
13154           # FIXME: insert proper C++ library support
13155           ld_shlibs_CXX=no
13156           ;;
13157         esac
13158         ;;
13159
13160       cygwin* | mingw* | pw32* | cegcc*)
13161         # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
13162         # as there is no search path for DLLs.
13163         hardcode_libdir_flag_spec_CXX='-L$libdir'
13164         allow_undefined_flag_CXX=unsupported
13165         always_export_symbols_CXX=no
13166         enable_shared_with_static_runtimes_CXX=yes
13167
13168         if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
13169           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'
13170           # If the export-symbols file already is a .def file (1st line
13171           # is EXPORTS), use it as is; otherwise, prepend...
13172           archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
13173             cp $export_symbols $output_objdir/$soname.def;
13174           else
13175             echo EXPORTS > $output_objdir/$soname.def;
13176             cat $export_symbols >> $output_objdir/$soname.def;
13177           fi~
13178           $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'
13179         else
13180           ld_shlibs_CXX=no
13181         fi
13182         ;;
13183       darwin* | rhapsody*)
13184
13185
13186   archive_cmds_need_lc_CXX=no
13187   hardcode_direct_CXX=no
13188   hardcode_automatic_CXX=yes
13189   hardcode_shlibpath_var_CXX=unsupported
13190   whole_archive_flag_spec_CXX=''
13191   link_all_deplibs_CXX=yes
13192   allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
13193   case $cc_basename in
13194      ifort*) _lt_dar_can_shared=yes ;;
13195      *) _lt_dar_can_shared=$GCC ;;
13196   esac
13197   if test "$_lt_dar_can_shared" = "yes"; then
13198     output_verbose_link_cmd=echo
13199     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}"
13200     module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
13201     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}"
13202     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}"
13203        if test "$lt_cv_apple_cc_single_mod" != "yes"; then
13204       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}"
13205       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}"
13206     fi
13207
13208   else
13209   ld_shlibs_CXX=no
13210   fi
13211
13212         ;;
13213
13214       dgux*)
13215         case $cc_basename in
13216           ec++*)
13217             # FIXME: insert proper C++ library support
13218             ld_shlibs_CXX=no
13219             ;;
13220           ghcx*)
13221             # Green Hills C++ Compiler
13222             # FIXME: insert proper C++ library support
13223             ld_shlibs_CXX=no
13224             ;;
13225           *)
13226             # FIXME: insert proper C++ library support
13227             ld_shlibs_CXX=no
13228             ;;
13229         esac
13230         ;;
13231
13232       freebsd[12]*)
13233         # C++ shared libraries reported to be fairly broken before
13234         # switch to ELF
13235         ld_shlibs_CXX=no
13236         ;;
13237
13238       freebsd-elf*)
13239         archive_cmds_need_lc_CXX=no
13240         ;;
13241
13242       freebsd* | dragonfly*)
13243         # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
13244         # conventions
13245         ld_shlibs_CXX=yes
13246         ;;
13247
13248       gnu*)
13249         ;;
13250
13251       hpux9*)
13252         hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
13253         hardcode_libdir_separator_CXX=:
13254         export_dynamic_flag_spec_CXX='${wl}-E'
13255         hardcode_direct_CXX=yes
13256         hardcode_minus_L_CXX=yes # Not in the search PATH,
13257                                              # but as the default
13258                                              # location of the library.
13259
13260         case $cc_basename in
13261           CC*)
13262             # FIXME: insert proper C++ library support
13263             ld_shlibs_CXX=no
13264             ;;
13265           aCC*)
13266             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'
13267             # Commands to make compiler produce verbose output that lists
13268             # what "hidden" libraries, object files and flags are used when
13269             # linking a shared library.
13270             #
13271             # There doesn't appear to be a way to prevent this compiler from
13272             # explicitly linking system object files so we need to strip them
13273             # from the output so that they don't get included in the library
13274             # dependencies.
13275             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'
13276             ;;
13277           *)
13278             if test "$GXX" = yes; then
13279               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'
13280             else
13281               # FIXME: insert proper C++ library support
13282               ld_shlibs_CXX=no
13283             fi
13284             ;;
13285         esac
13286         ;;
13287
13288       hpux10*|hpux11*)
13289         if test $with_gnu_ld = no; then
13290           hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
13291           hardcode_libdir_separator_CXX=:
13292
13293           case $host_cpu in
13294             hppa*64*|ia64*)
13295               ;;
13296             *)
13297               export_dynamic_flag_spec_CXX='${wl}-E'
13298               ;;
13299           esac
13300         fi
13301         case $host_cpu in
13302           hppa*64*|ia64*)
13303             hardcode_direct_CXX=no
13304             hardcode_shlibpath_var_CXX=no
13305             ;;
13306           *)
13307             hardcode_direct_CXX=yes
13308             hardcode_direct_absolute_CXX=yes
13309             hardcode_minus_L_CXX=yes # Not in the search PATH,
13310                                                  # but as the default
13311                                                  # location of the library.
13312             ;;
13313         esac
13314
13315         case $cc_basename in
13316           CC*)
13317             # FIXME: insert proper C++ library support
13318             ld_shlibs_CXX=no
13319             ;;
13320           aCC*)
13321             case $host_cpu in
13322               hppa*64*)
13323                 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13324                 ;;
13325               ia64*)
13326                 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13327                 ;;
13328               *)
13329                 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13330                 ;;
13331             esac
13332             # Commands to make compiler produce verbose output that lists
13333             # what "hidden" libraries, object files and flags are used when
13334             # linking a shared library.
13335             #
13336             # There doesn't appear to be a way to prevent this compiler from
13337             # explicitly linking system object files so we need to strip them
13338             # from the output so that they don't get included in the library
13339             # dependencies.
13340             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'
13341             ;;
13342           *)
13343             if test "$GXX" = yes; then
13344               if test $with_gnu_ld = no; then
13345                 case $host_cpu in
13346                   hppa*64*)
13347                     archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13348                     ;;
13349                   ia64*)
13350                     archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13351                     ;;
13352                   *)
13353                     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'
13354                     ;;
13355                 esac
13356               fi
13357             else
13358               # FIXME: insert proper C++ library support
13359               ld_shlibs_CXX=no
13360             fi
13361             ;;
13362         esac
13363         ;;
13364
13365       interix[3-9]*)
13366         hardcode_direct_CXX=no
13367         hardcode_shlibpath_var_CXX=no
13368         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13369         export_dynamic_flag_spec_CXX='${wl}-E'
13370         # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
13371         # Instead, shared libraries are loaded at an image base (0x10000000 by
13372         # default) and relocated if they conflict, which is a slow very memory
13373         # consuming and fragmenting process.  To avoid this, we pick a random,
13374         # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
13375         # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
13376         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'
13377         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'
13378         ;;
13379       irix5* | irix6*)
13380         case $cc_basename in
13381           CC*)
13382             # SGI C++
13383             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'
13384
13385             # Archives containing C++ object files must be created using
13386             # "CC -ar", where "CC" is the IRIX C++ compiler.  This is
13387             # necessary to make sure instantiated templates are included
13388             # in the archive.
13389             old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
13390             ;;
13391           *)
13392             if test "$GXX" = yes; then
13393               if test "$with_gnu_ld" = no; then
13394                 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'
13395               else
13396                 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'
13397               fi
13398             fi
13399             link_all_deplibs_CXX=yes
13400             ;;
13401         esac
13402         hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13403         hardcode_libdir_separator_CXX=:
13404         inherit_rpath_CXX=yes
13405         ;;
13406
13407       linux* | k*bsd*-gnu)
13408         case $cc_basename in
13409           KCC*)
13410             # Kuck and Associates, Inc. (KAI) C++ Compiler
13411
13412             # KCC will only create a shared library if the output file
13413             # ends with ".so" (or ".sl" for HP-UX), so rename the library
13414             # to its proper name (with version) after linking.
13415             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'
13416             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'
13417             # Commands to make compiler produce verbose output that lists
13418             # what "hidden" libraries, object files and flags are used when
13419             # linking a shared library.
13420             #
13421             # There doesn't appear to be a way to prevent this compiler from
13422             # explicitly linking system object files so we need to strip them
13423             # from the output so that they don't get included in the library
13424             # dependencies.
13425             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'
13426
13427             hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13428             export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13429
13430             # Archives containing C++ object files must be created using
13431             # "CC -Bstatic", where "CC" is the KAI C++ compiler.
13432             old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
13433             ;;
13434           icpc* | ecpc* )
13435             # Intel C++
13436             with_gnu_ld=yes
13437             # version 8.0 and above of icpc choke on multiply defined symbols
13438             # if we add $predep_objects and $postdep_objects, however 7.1 and
13439             # earlier do not add the objects themselves.
13440             case `$CC -V 2>&1` in
13441               *"Version 7."*)
13442                 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
13443                 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'
13444                 ;;
13445               *)  # Version 8.0 or newer
13446                 tmp_idyn=
13447                 case $host_cpu in
13448                   ia64*) tmp_idyn=' -i_dynamic';;
13449                 esac
13450                 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13451                 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'
13452                 ;;
13453             esac
13454             archive_cmds_need_lc_CXX=no
13455             hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13456             export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13457             whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
13458             ;;
13459           pgCC* | pgcpp*)
13460             # Portland Group C++ compiler
13461             case `$CC -V` in
13462             *pgCC\ [1-5]* | *pgcpp\ [1-5]*)
13463               prelink_cmds_CXX='tpldir=Template.dir~
13464                 rm -rf $tpldir~
13465                 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
13466                 compile_command="$compile_command `find $tpldir -name \*.o | $NL2SP`"'
13467               old_archive_cmds_CXX='tpldir=Template.dir~
13468                 rm -rf $tpldir~
13469                 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
13470                 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | $NL2SP`~
13471                 $RANLIB $oldlib'
13472               archive_cmds_CXX='tpldir=Template.dir~
13473                 rm -rf $tpldir~
13474                 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
13475                 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
13476               archive_expsym_cmds_CXX='tpldir=Template.dir~
13477                 rm -rf $tpldir~
13478                 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
13479                 $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'
13480               ;;
13481             *) # Version 6 will use weak symbols
13482               archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
13483               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'
13484               ;;
13485             esac
13486
13487             hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
13488             export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13489             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'
13490             ;;
13491           cxx*)
13492             # Compaq C++
13493             archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
13494             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'
13495
13496             runpath_var=LD_RUN_PATH
13497             hardcode_libdir_flag_spec_CXX='-rpath $libdir'
13498             hardcode_libdir_separator_CXX=:
13499
13500             # Commands to make compiler produce verbose output that lists
13501             # what "hidden" libraries, object files and flags are used when
13502             # linking a shared library.
13503             #
13504             # There doesn't appear to be a way to prevent this compiler from
13505             # explicitly linking system object files so we need to strip them
13506             # from the output so that they don't get included in the library
13507             # dependencies.
13508             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'
13509             ;;
13510           xl*)
13511             # IBM XL 8.0 on PPC, with GNU ld
13512             hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13513             export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13514             archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13515             if test "x$supports_anon_versioning" = xyes; then
13516               archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
13517                 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
13518                 echo "local: *; };" >> $output_objdir/$libname.ver~
13519                 $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
13520             fi
13521             ;;
13522           *)
13523             case `$CC -V 2>&1 | sed 5q` in
13524             *Sun\ C*)
13525               # Sun C++ 5.9
13526               no_undefined_flag_CXX=' -zdefs'
13527               archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13528               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'
13529               hardcode_libdir_flag_spec_CXX='-R$libdir'
13530               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'
13531               compiler_needs_object_CXX=yes
13532
13533               # Not sure whether something based on
13534               # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
13535               # would be better.
13536               output_verbose_link_cmd='echo'
13537
13538               # Archives containing C++ object files must be created using
13539               # "CC -xar", where "CC" is the Sun C++ compiler.  This is
13540               # necessary to make sure instantiated templates are included
13541               # in the archive.
13542               old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
13543               ;;
13544             esac
13545             ;;
13546         esac
13547         ;;
13548
13549       lynxos*)
13550         # FIXME: insert proper C++ library support
13551         ld_shlibs_CXX=no
13552         ;;
13553
13554       m88k*)
13555         # FIXME: insert proper C++ library support
13556         ld_shlibs_CXX=no
13557         ;;
13558
13559       mvs*)
13560         case $cc_basename in
13561           cxx*)
13562             # FIXME: insert proper C++ library support
13563             ld_shlibs_CXX=no
13564             ;;
13565           *)
13566             # FIXME: insert proper C++ library support
13567             ld_shlibs_CXX=no
13568             ;;
13569         esac
13570         ;;
13571
13572       netbsd*)
13573         if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
13574           archive_cmds_CXX='$LD -Bshareable  -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
13575           wlarc=
13576           hardcode_libdir_flag_spec_CXX='-R$libdir'
13577           hardcode_direct_CXX=yes
13578           hardcode_shlibpath_var_CXX=no
13579         fi
13580         # Workaround some broken pre-1.5 toolchains
13581         output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
13582         ;;
13583
13584       *nto* | *qnx*)
13585         ld_shlibs_CXX=yes
13586         ;;
13587
13588       openbsd2*)
13589         # C++ shared libraries are fairly broken
13590         ld_shlibs_CXX=no
13591         ;;
13592
13593       openbsd*)
13594         if test -f /usr/libexec/ld.so; then
13595           hardcode_direct_CXX=yes
13596           hardcode_shlibpath_var_CXX=no
13597           hardcode_direct_absolute_CXX=yes
13598           archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
13599           hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13600           if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13601             archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
13602             export_dynamic_flag_spec_CXX='${wl}-E'
13603             whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
13604           fi
13605           output_verbose_link_cmd=echo
13606         else
13607           ld_shlibs_CXX=no
13608         fi
13609         ;;
13610
13611       osf3* | osf4* | osf5*)
13612         case $cc_basename in
13613           KCC*)
13614             # Kuck and Associates, Inc. (KAI) C++ Compiler
13615
13616             # KCC will only create a shared library if the output file
13617             # ends with ".so" (or ".sl" for HP-UX), so rename the library
13618             # to its proper name (with version) after linking.
13619             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'
13620
13621             hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13622             hardcode_libdir_separator_CXX=:
13623
13624             # Archives containing C++ object files must be created using
13625             # the KAI C++ compiler.
13626             case $host in
13627               osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
13628               *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
13629             esac
13630             ;;
13631           RCC*)
13632             # Rational C++ 2.4.1
13633             # FIXME: insert proper C++ library support
13634             ld_shlibs_CXX=no
13635             ;;
13636           cxx*)
13637             case $host in
13638               osf3*)
13639                 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
13640                 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'
13641                 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13642                 ;;
13643               *)
13644                 allow_undefined_flag_CXX=' -expect_unresolved \*'
13645                 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'
13646                 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
13647                   echo "-hidden">> $lib.exp~
13648                   $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~
13649                   $RM $lib.exp'
13650                 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
13651                 ;;
13652             esac
13653
13654             hardcode_libdir_separator_CXX=:
13655
13656             # Commands to make compiler produce verbose output that lists
13657             # what "hidden" libraries, object files and flags are used when
13658             # linking a shared library.
13659             #
13660             # There doesn't appear to be a way to prevent this compiler from
13661             # explicitly linking system object files so we need to strip them
13662             # from the output so that they don't get included in the library
13663             # dependencies.
13664             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'
13665             ;;
13666           *)
13667             if test "$GXX" = yes && test "$with_gnu_ld" = no; then
13668               allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
13669               case $host in
13670                 osf3*)
13671                   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'
13672                   ;;
13673                 *)
13674                   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'
13675                   ;;
13676               esac
13677
13678               hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
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               output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
13685
13686             else
13687               # FIXME: insert proper C++ library support
13688               ld_shlibs_CXX=no
13689             fi
13690             ;;
13691         esac
13692         ;;
13693
13694       psos*)
13695         # FIXME: insert proper C++ library support
13696         ld_shlibs_CXX=no
13697         ;;
13698
13699       sunos4*)
13700         case $cc_basename in
13701           CC*)
13702             # Sun C++ 4.x
13703             # FIXME: insert proper C++ library support
13704             ld_shlibs_CXX=no
13705             ;;
13706           lcc*)
13707             # Lucid
13708             # FIXME: insert proper C++ library support
13709             ld_shlibs_CXX=no
13710             ;;
13711           *)
13712             # FIXME: insert proper C++ library support
13713             ld_shlibs_CXX=no
13714             ;;
13715         esac
13716         ;;
13717
13718       solaris*)
13719         case $cc_basename in
13720           CC*)
13721             # Sun C++ 4.2, 5.x and Centerline C++
13722             archive_cmds_need_lc_CXX=yes
13723             no_undefined_flag_CXX=' -zdefs'
13724             archive_cmds_CXX='$CC -G${allow_undefined_flag}  -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13725             archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13726               $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'
13727
13728             hardcode_libdir_flag_spec_CXX='-R$libdir'
13729             hardcode_shlibpath_var_CXX=no
13730             case $host_os in
13731               solaris2.[0-5] | solaris2.[0-5].*) ;;
13732               *)
13733                 # The compiler driver will combine and reorder linker options,
13734                 # but understands `-z linker_flag'.
13735                 # Supported since Solaris 2.6 (maybe 2.5.1?)
13736                 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
13737                 ;;
13738             esac
13739             link_all_deplibs_CXX=yes
13740
13741             output_verbose_link_cmd='echo'
13742
13743             # Archives containing C++ object files must be created using
13744             # "CC -xar", where "CC" is the Sun C++ compiler.  This is
13745             # necessary to make sure instantiated templates are included
13746             # in the archive.
13747             old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
13748             ;;
13749           gcx*)
13750             # Green Hills C++ Compiler
13751             archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
13752
13753             # The C++ compiler must be used to create the archive.
13754             old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
13755             ;;
13756           *)
13757             # GNU C++ compiler with Solaris linker
13758             if test "$GXX" = yes && test "$with_gnu_ld" = no; then
13759               no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
13760               if $CC --version | $GREP -v '^2\.7' > /dev/null; then
13761                 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
13762                 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13763                   $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
13764
13765                 # Commands to make compiler produce verbose output that lists
13766                 # what "hidden" libraries, object files and flags are used when
13767                 # linking a shared library.
13768                 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
13769               else
13770                 # g++ 2.7 appears to require `-G' NOT `-shared' on this
13771                 # platform.
13772                 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
13773                 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13774                   $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
13775
13776                 # Commands to make compiler produce verbose output that lists
13777                 # what "hidden" libraries, object files and flags are used when
13778                 # linking a shared library.
13779                 output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
13780               fi
13781
13782               hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
13783               case $host_os in
13784                 solaris2.[0-5] | solaris2.[0-5].*) ;;
13785                 *)
13786                   whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
13787                   ;;
13788               esac
13789             fi
13790             ;;
13791         esac
13792         ;;
13793
13794     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
13795       no_undefined_flag_CXX='${wl}-z,text'
13796       archive_cmds_need_lc_CXX=no
13797       hardcode_shlibpath_var_CXX=no
13798       runpath_var='LD_RUN_PATH'
13799
13800       case $cc_basename in
13801         CC*)
13802           archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13803           archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13804           ;;
13805         *)
13806           archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13807           archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13808           ;;
13809       esac
13810       ;;
13811
13812       sysv5* | sco3.2v5* | sco5v6*)
13813         # Note: We can NOT use -z defs as we might desire, because we do not
13814         # link with -lc, and that would cause any symbols used from libc to
13815         # always be unresolved, which means just about no library would
13816         # ever link correctly.  If we're not using GNU ld we use -z text
13817         # though, which does catch some bad symbols but isn't as heavy-handed
13818         # as -z defs.
13819         no_undefined_flag_CXX='${wl}-z,text'
13820         allow_undefined_flag_CXX='${wl}-z,nodefs'
13821         archive_cmds_need_lc_CXX=no
13822         hardcode_shlibpath_var_CXX=no
13823         hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir'
13824         hardcode_libdir_separator_CXX=':'
13825         link_all_deplibs_CXX=yes
13826         export_dynamic_flag_spec_CXX='${wl}-Bexport'
13827         runpath_var='LD_RUN_PATH'
13828
13829         case $cc_basename in
13830           CC*)
13831             archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13832             archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13833             ;;
13834           *)
13835             archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13836             archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13837             ;;
13838         esac
13839       ;;
13840
13841       tandem*)
13842         case $cc_basename in
13843           NCC*)
13844             # NonStop-UX NCC 3.20
13845             # FIXME: insert proper C++ library support
13846             ld_shlibs_CXX=no
13847             ;;
13848           *)
13849             # FIXME: insert proper C++ library support
13850             ld_shlibs_CXX=no
13851             ;;
13852         esac
13853         ;;
13854
13855       vxworks*)
13856         # FIXME: insert proper C++ library support
13857         ld_shlibs_CXX=no
13858         ;;
13859
13860       *)
13861         # FIXME: insert proper C++ library support
13862         ld_shlibs_CXX=no
13863         ;;
13864     esac
13865
13866     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
13867 $as_echo "$ld_shlibs_CXX" >&6; }
13868     test "$ld_shlibs_CXX" = no && can_build_shared=no
13869
13870     GCC_CXX="$GXX"
13871     LD_CXX="$LD"
13872
13873     ## CAVEAT EMPTOR:
13874     ## There is no encapsulation within the following macros, do not change
13875     ## the running order or otherwise move them around unless you know exactly
13876     ## what you are doing...
13877     # Dependencies to place before and after the object being linked:
13878 predep_objects_CXX=
13879 postdep_objects_CXX=
13880 predeps_CXX=
13881 postdeps_CXX=
13882 compiler_lib_search_path_CXX=
13883
13884 cat > conftest.$ac_ext <<_LT_EOF
13885 class Foo
13886 {
13887 public:
13888   Foo (void) { a = 0; }
13889 private:
13890   int a;
13891 };
13892 _LT_EOF
13893
13894 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13895   (eval $ac_compile) 2>&5
13896   ac_status=$?
13897   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13898   test $ac_status = 0; }; then
13899   # Parse the compiler output and extract the necessary
13900   # objects, libraries and library flags.
13901
13902   # Sentinel used to keep track of whether or not we are before
13903   # the conftest object file.
13904   pre_test_object_deps_done=no
13905
13906   for p in `eval "$output_verbose_link_cmd"`; do
13907     case $p in
13908
13909     -L* | -R* | -l*)
13910        # Some compilers place space between "-{L,R}" and the path.
13911        # Remove the space.
13912        if test $p = "-L" ||
13913           test $p = "-R"; then
13914          prev=$p
13915          continue
13916        else
13917          prev=
13918        fi
13919
13920        if test "$pre_test_object_deps_done" = no; then
13921          case $p in
13922          -L* | -R*)
13923            # Internal compiler library paths should come after those
13924            # provided the user.  The postdeps already come after the
13925            # user supplied libs so there is no need to process them.
13926            if test -z "$compiler_lib_search_path_CXX"; then
13927              compiler_lib_search_path_CXX="${prev}${p}"
13928            else
13929              compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
13930            fi
13931            ;;
13932          # The "-l" case would never come before the object being
13933          # linked, so don't bother handling this case.
13934          esac
13935        else
13936          if test -z "$postdeps_CXX"; then
13937            postdeps_CXX="${prev}${p}"
13938          else
13939            postdeps_CXX="${postdeps_CXX} ${prev}${p}"
13940          fi
13941        fi
13942        ;;
13943
13944     *.$objext)
13945        # This assumes that the test object file only shows up
13946        # once in the compiler output.
13947        if test "$p" = "conftest.$objext"; then
13948          pre_test_object_deps_done=yes
13949          continue
13950        fi
13951
13952        if test "$pre_test_object_deps_done" = no; then
13953          if test -z "$predep_objects_CXX"; then
13954            predep_objects_CXX="$p"
13955          else
13956            predep_objects_CXX="$predep_objects_CXX $p"
13957          fi
13958        else
13959          if test -z "$postdep_objects_CXX"; then
13960            postdep_objects_CXX="$p"
13961          else
13962            postdep_objects_CXX="$postdep_objects_CXX $p"
13963          fi
13964        fi
13965        ;;
13966
13967     *) ;; # Ignore the rest.
13968
13969     esac
13970   done
13971
13972   # Clean up.
13973   rm -f a.out a.exe
13974 else
13975   echo "libtool.m4: error: problem compiling CXX test program"
13976 fi
13977
13978 $RM -f confest.$objext
13979
13980 # PORTME: override above test on systems where it is broken
13981 case $host_os in
13982 interix[3-9]*)
13983   # Interix 3.5 installs completely hosed .la files for C++, so rather than
13984   # hack all around it, let's just trust "g++" to DTRT.
13985   predep_objects_CXX=
13986   postdep_objects_CXX=
13987   postdeps_CXX=
13988   ;;
13989
13990 linux*)
13991   case `$CC -V 2>&1 | sed 5q` in
13992   *Sun\ C*)
13993     # Sun C++ 5.9
13994
13995     # The more standards-conforming stlport4 library is
13996     # incompatible with the Cstd library. Avoid specifying
13997     # it if it's in CXXFLAGS. Ignore libCrun as
13998     # -library=stlport4 depends on it.
13999     case " $CXX $CXXFLAGS " in
14000     *" -library=stlport4 "*)
14001       solaris_use_stlport4=yes
14002       ;;
14003     esac
14004
14005     if test "$solaris_use_stlport4" != yes; then
14006       postdeps_CXX='-library=Cstd -library=Crun'
14007     fi
14008     ;;
14009   esac
14010   ;;
14011
14012 solaris*)
14013   case $cc_basename in
14014   CC*)
14015     # The more standards-conforming stlport4 library is
14016     # incompatible with the Cstd library. Avoid specifying
14017     # it if it's in CXXFLAGS. Ignore libCrun as
14018     # -library=stlport4 depends on it.
14019     case " $CXX $CXXFLAGS " in
14020     *" -library=stlport4 "*)
14021       solaris_use_stlport4=yes
14022       ;;
14023     esac
14024
14025     # Adding this requires a known-good setup of shared libraries for
14026     # Sun compiler versions before 5.6, else PIC objects from an old
14027     # archive will be linked into the output, leading to subtle bugs.
14028     if test "$solaris_use_stlport4" != yes; then
14029       postdeps_CXX='-library=Cstd -library=Crun'
14030     fi
14031     ;;
14032   esac
14033   ;;
14034 esac
14035
14036
14037 case " $postdeps_CXX " in
14038 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
14039 esac
14040  compiler_lib_search_dirs_CXX=
14041 if test -n "${compiler_lib_search_path_CXX}"; then
14042  compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
14043 fi
14044
14045
14046
14047
14048
14049
14050
14051
14052
14053
14054
14055
14056
14057
14058
14059
14060
14061
14062
14063
14064
14065
14066
14067
14068
14069
14070
14071
14072
14073
14074
14075     lt_prog_compiler_wl_CXX=
14076 lt_prog_compiler_pic_CXX=
14077 lt_prog_compiler_static_CXX=
14078
14079 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
14080 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
14081
14082   # C++ specific cases for pic, static, wl, etc.
14083   if test "$GXX" = yes; then
14084     lt_prog_compiler_wl_CXX='-Wl,'
14085     lt_prog_compiler_static_CXX='-static'
14086
14087     case $host_os in
14088     aix*)
14089       # All AIX code is PIC.
14090       if test "$host_cpu" = ia64; then
14091         # AIX 5 now supports IA64 processor
14092         lt_prog_compiler_static_CXX='-Bstatic'
14093       fi
14094       ;;
14095
14096     amigaos*)
14097       case $host_cpu in
14098       powerpc)
14099             # see comment about AmigaOS4 .so support
14100             lt_prog_compiler_pic_CXX='-fPIC'
14101         ;;
14102       m68k)
14103             # FIXME: we need at least 68020 code to build shared libraries, but
14104             # adding the `-m68020' flag to GCC prevents building anything better,
14105             # like `-m68040'.
14106             lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
14107         ;;
14108       esac
14109       ;;
14110
14111     beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
14112       # PIC is the default for these OSes.
14113       ;;
14114     mingw* | cygwin* | os2* | pw32* | cegcc*)
14115       # This hack is so that the source file can tell whether it is being
14116       # built for inclusion in a dll (and should export symbols for example).
14117       # Although the cygwin gcc ignores -fPIC, still need this for old-style
14118       # (--disable-auto-import) libraries
14119       lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
14120       ;;
14121     darwin* | rhapsody*)
14122       # PIC is the default on this platform
14123       # Common symbols not allowed in MH_DYLIB files
14124       lt_prog_compiler_pic_CXX='-fno-common'
14125       ;;
14126     *djgpp*)
14127       # DJGPP does not support shared libraries at all
14128       lt_prog_compiler_pic_CXX=
14129       ;;
14130     interix[3-9]*)
14131       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
14132       # Instead, we relocate shared libraries at runtime.
14133       ;;
14134     sysv4*MP*)
14135       if test -d /usr/nec; then
14136         lt_prog_compiler_pic_CXX=-Kconform_pic
14137       fi
14138       ;;
14139     hpux*)
14140       # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
14141       # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
14142       # sets the default TLS model and affects inlining.
14143       case $host_cpu in
14144       hppa*64*)
14145         ;;
14146       *)
14147         lt_prog_compiler_pic_CXX='-fPIC'
14148         ;;
14149       esac
14150       ;;
14151     *qnx* | *nto*)
14152       # QNX uses GNU C++, but need to define -shared option too, otherwise
14153       # it will coredump.
14154       lt_prog_compiler_pic_CXX='-fPIC -shared'
14155       ;;
14156     *)
14157       lt_prog_compiler_pic_CXX='-fPIC'
14158       ;;
14159     esac
14160   else
14161     case $host_os in
14162       aix[4-9]*)
14163         # All AIX code is PIC.
14164         if test "$host_cpu" = ia64; then
14165           # AIX 5 now supports IA64 processor
14166           lt_prog_compiler_static_CXX='-Bstatic'
14167         else
14168           lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
14169         fi
14170         ;;
14171       chorus*)
14172         case $cc_basename in
14173         cxch68*)
14174           # Green Hills C++ Compiler
14175           # _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"
14176           ;;
14177         esac
14178         ;;
14179       dgux*)
14180         case $cc_basename in
14181           ec++*)
14182             lt_prog_compiler_pic_CXX='-KPIC'
14183             ;;
14184           ghcx*)
14185             # Green Hills C++ Compiler
14186             lt_prog_compiler_pic_CXX='-pic'
14187             ;;
14188           *)
14189             ;;
14190         esac
14191         ;;
14192       freebsd* | dragonfly*)
14193         # FreeBSD uses GNU C++
14194         ;;
14195       hpux9* | hpux10* | hpux11*)
14196         case $cc_basename in
14197           CC*)
14198             lt_prog_compiler_wl_CXX='-Wl,'
14199             lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
14200             if test "$host_cpu" != ia64; then
14201               lt_prog_compiler_pic_CXX='+Z'
14202             fi
14203             ;;
14204           aCC*)
14205             lt_prog_compiler_wl_CXX='-Wl,'
14206             lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
14207             case $host_cpu in
14208             hppa*64*|ia64*)
14209               # +Z the default
14210               ;;
14211             *)
14212               lt_prog_compiler_pic_CXX='+Z'
14213               ;;
14214             esac
14215             ;;
14216           *)
14217             ;;
14218         esac
14219         ;;
14220       interix*)
14221         # This is c89, which is MS Visual C++ (no shared libs)
14222         # Anyone wants to do a port?
14223         ;;
14224       irix5* | irix6* | nonstopux*)
14225         case $cc_basename in
14226           CC*)
14227             lt_prog_compiler_wl_CXX='-Wl,'
14228             lt_prog_compiler_static_CXX='-non_shared'
14229             # CC pic flag -KPIC is the default.
14230             ;;
14231           *)
14232             ;;
14233         esac
14234         ;;
14235       linux* | k*bsd*-gnu)
14236         case $cc_basename in
14237           KCC*)
14238             # KAI C++ Compiler
14239             lt_prog_compiler_wl_CXX='--backend -Wl,'
14240             lt_prog_compiler_pic_CXX='-fPIC'
14241             ;;
14242           ecpc* )
14243             # old Intel C++ for x86_64 which still supported -KPIC.
14244             lt_prog_compiler_wl_CXX='-Wl,'
14245             lt_prog_compiler_pic_CXX='-KPIC'
14246             lt_prog_compiler_static_CXX='-static'
14247             ;;
14248           icpc* )
14249             # Intel C++, used to be incompatible with GCC.
14250             # ICC 10 doesn't accept -KPIC any more.
14251             lt_prog_compiler_wl_CXX='-Wl,'
14252             lt_prog_compiler_pic_CXX='-fPIC'
14253             lt_prog_compiler_static_CXX='-static'
14254             ;;
14255           pgCC* | pgcpp*)
14256             # Portland Group C++ compiler
14257             lt_prog_compiler_wl_CXX='-Wl,'
14258             lt_prog_compiler_pic_CXX='-fpic'
14259             lt_prog_compiler_static_CXX='-Bstatic'
14260             ;;
14261           cxx*)
14262             # Compaq C++
14263             # Make sure the PIC flag is empty.  It appears that all Alpha
14264             # Linux and Compaq Tru64 Unix objects are PIC.
14265             lt_prog_compiler_pic_CXX=
14266             lt_prog_compiler_static_CXX='-non_shared'
14267             ;;
14268           xlc* | xlC*)
14269             # IBM XL 8.0 on PPC
14270             lt_prog_compiler_wl_CXX='-Wl,'
14271             lt_prog_compiler_pic_CXX='-qpic'
14272             lt_prog_compiler_static_CXX='-qstaticlink'
14273             ;;
14274           *)
14275             case `$CC -V 2>&1 | sed 5q` in
14276             *Sun\ C*)
14277               # Sun C++ 5.9
14278               lt_prog_compiler_pic_CXX='-KPIC'
14279               lt_prog_compiler_static_CXX='-Bstatic'
14280               lt_prog_compiler_wl_CXX='-Qoption ld '
14281               ;;
14282             esac
14283             ;;
14284         esac
14285         ;;
14286       lynxos*)
14287         ;;
14288       m88k*)
14289         ;;
14290       mvs*)
14291         case $cc_basename in
14292           cxx*)
14293             lt_prog_compiler_pic_CXX='-W c,exportall'
14294             ;;
14295           *)
14296             ;;
14297         esac
14298         ;;
14299       netbsd*)
14300         ;;
14301       *qnx* | *nto*)
14302         # QNX uses GNU C++, but need to define -shared option too, otherwise
14303         # it will coredump.
14304         lt_prog_compiler_pic_CXX='-fPIC -shared'
14305         ;;
14306       osf3* | osf4* | osf5*)
14307         case $cc_basename in
14308           KCC*)
14309             lt_prog_compiler_wl_CXX='--backend -Wl,'
14310             ;;
14311           RCC*)
14312             # Rational C++ 2.4.1
14313             lt_prog_compiler_pic_CXX='-pic'
14314             ;;
14315           cxx*)
14316             # Digital/Compaq C++
14317             lt_prog_compiler_wl_CXX='-Wl,'
14318             # Make sure the PIC flag is empty.  It appears that all Alpha
14319             # Linux and Compaq Tru64 Unix objects are PIC.
14320             lt_prog_compiler_pic_CXX=
14321             lt_prog_compiler_static_CXX='-non_shared'
14322             ;;
14323           *)
14324             ;;
14325         esac
14326         ;;
14327       psos*)
14328         ;;
14329       solaris*)
14330         case $cc_basename in
14331           CC*)
14332             # Sun C++ 4.2, 5.x and Centerline C++
14333             lt_prog_compiler_pic_CXX='-KPIC'
14334             lt_prog_compiler_static_CXX='-Bstatic'
14335             lt_prog_compiler_wl_CXX='-Qoption ld '
14336             ;;
14337           gcx*)
14338             # Green Hills C++ Compiler
14339             lt_prog_compiler_pic_CXX='-PIC'
14340             ;;
14341           *)
14342             ;;
14343         esac
14344         ;;
14345       sunos4*)
14346         case $cc_basename in
14347           CC*)
14348             # Sun C++ 4.x
14349             lt_prog_compiler_pic_CXX='-pic'
14350             lt_prog_compiler_static_CXX='-Bstatic'
14351             ;;
14352           lcc*)
14353             # Lucid
14354             lt_prog_compiler_pic_CXX='-pic'
14355             ;;
14356           *)
14357             ;;
14358         esac
14359         ;;
14360       sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
14361         case $cc_basename in
14362           CC*)
14363             lt_prog_compiler_wl_CXX='-Wl,'
14364             lt_prog_compiler_pic_CXX='-KPIC'
14365             lt_prog_compiler_static_CXX='-Bstatic'
14366             ;;
14367         esac
14368         ;;
14369       tandem*)
14370         case $cc_basename in
14371           NCC*)
14372             # NonStop-UX NCC 3.20
14373             lt_prog_compiler_pic_CXX='-KPIC'
14374             ;;
14375           *)
14376             ;;
14377         esac
14378         ;;
14379       vxworks*)
14380         ;;
14381       *)
14382         lt_prog_compiler_can_build_shared_CXX=no
14383         ;;
14384     esac
14385   fi
14386
14387 case $host_os in
14388   # For platforms which do not support PIC, -DPIC is meaningless:
14389   *djgpp*)
14390     lt_prog_compiler_pic_CXX=
14391     ;;
14392   *)
14393     lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
14394     ;;
14395 esac
14396 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic_CXX" >&5
14397 $as_echo "$lt_prog_compiler_pic_CXX" >&6; }
14398
14399
14400
14401 #
14402 # Check to make sure the PIC flag actually works.
14403 #
14404 if test -n "$lt_prog_compiler_pic_CXX"; then
14405   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
14406 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
14407 if test "${lt_cv_prog_compiler_pic_works_CXX+set}" = set; then :
14408   $as_echo_n "(cached) " >&6
14409 else
14410   lt_cv_prog_compiler_pic_works_CXX=no
14411    ac_outfile=conftest.$ac_objext
14412    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14413    lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
14414    # Insert the option either (1) after the last *FLAGS variable, or
14415    # (2) before a word containing "conftest.", or (3) at the end.
14416    # Note that $ac_compile itself does not contain backslashes and begins
14417    # with a dollar sign (not a hyphen), so the echo should work correctly.
14418    # The option is referenced via a variable to avoid confusing sed.
14419    lt_compile=`echo "$ac_compile" | $SED \
14420    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14421    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14422    -e 's:$: $lt_compiler_flag:'`
14423    (eval echo "\"\$as_me:14423: $lt_compile\"" >&5)
14424    (eval "$lt_compile" 2>conftest.err)
14425    ac_status=$?
14426    cat conftest.err >&5
14427    echo "$as_me:14427: \$? = $ac_status" >&5
14428    if (exit $ac_status) && test -s "$ac_outfile"; then
14429      # The compiler can only warn and ignore the option if not recognized
14430      # So say no if there are warnings other than the usual output.
14431      $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
14432      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14433      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
14434        lt_cv_prog_compiler_pic_works_CXX=yes
14435      fi
14436    fi
14437    $RM conftest*
14438
14439 fi
14440 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
14441 $as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
14442
14443 if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
14444     case $lt_prog_compiler_pic_CXX in
14445      "" | " "*) ;;
14446      *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
14447      esac
14448 else
14449     lt_prog_compiler_pic_CXX=
14450      lt_prog_compiler_can_build_shared_CXX=no
14451 fi
14452
14453 fi
14454
14455
14456
14457 #
14458 # Check to make sure the static flag actually works.
14459 #
14460 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
14461 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
14462 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
14463 if test "${lt_cv_prog_compiler_static_works_CXX+set}" = set; then :
14464   $as_echo_n "(cached) " >&6
14465 else
14466   lt_cv_prog_compiler_static_works_CXX=no
14467    save_LDFLAGS="$LDFLAGS"
14468    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
14469    echo "$lt_simple_link_test_code" > conftest.$ac_ext
14470    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
14471      # The linker can only warn and ignore the option if not recognized
14472      # So say no if there are warnings
14473      if test -s conftest.err; then
14474        # Append any errors to the config.log.
14475        cat conftest.err 1>&5
14476        $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
14477        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14478        if diff conftest.exp conftest.er2 >/dev/null; then
14479          lt_cv_prog_compiler_static_works_CXX=yes
14480        fi
14481      else
14482        lt_cv_prog_compiler_static_works_CXX=yes
14483      fi
14484    fi
14485    $RM -r conftest*
14486    LDFLAGS="$save_LDFLAGS"
14487
14488 fi
14489 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
14490 $as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
14491
14492 if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
14493     :
14494 else
14495     lt_prog_compiler_static_CXX=
14496 fi
14497
14498
14499
14500
14501     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
14502 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
14503 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then :
14504   $as_echo_n "(cached) " >&6
14505 else
14506   lt_cv_prog_compiler_c_o_CXX=no
14507    $RM -r conftest 2>/dev/null
14508    mkdir conftest
14509    cd conftest
14510    mkdir out
14511    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14512
14513    lt_compiler_flag="-o out/conftest2.$ac_objext"
14514    # Insert the option either (1) after the last *FLAGS variable, or
14515    # (2) before a word containing "conftest.", or (3) at the end.
14516    # Note that $ac_compile itself does not contain backslashes and begins
14517    # with a dollar sign (not a hyphen), so the echo should work correctly.
14518    lt_compile=`echo "$ac_compile" | $SED \
14519    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14520    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14521    -e 's:$: $lt_compiler_flag:'`
14522    (eval echo "\"\$as_me:14522: $lt_compile\"" >&5)
14523    (eval "$lt_compile" 2>out/conftest.err)
14524    ac_status=$?
14525    cat out/conftest.err >&5
14526    echo "$as_me:14526: \$? = $ac_status" >&5
14527    if (exit $ac_status) && test -s out/conftest2.$ac_objext
14528    then
14529      # The compiler can only warn and ignore the option if not recognized
14530      # So say no if there are warnings
14531      $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
14532      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14533      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14534        lt_cv_prog_compiler_c_o_CXX=yes
14535      fi
14536    fi
14537    chmod u+w . 2>&5
14538    $RM conftest*
14539    # SGI C++ compiler will create directory out/ii_files/ for
14540    # template instantiation
14541    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
14542    $RM out/* && rmdir out
14543    cd ..
14544    $RM -r conftest
14545    $RM conftest*
14546
14547 fi
14548 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
14549 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
14550
14551
14552
14553     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
14554 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
14555 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then :
14556   $as_echo_n "(cached) " >&6
14557 else
14558   lt_cv_prog_compiler_c_o_CXX=no
14559    $RM -r conftest 2>/dev/null
14560    mkdir conftest
14561    cd conftest
14562    mkdir out
14563    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14564
14565    lt_compiler_flag="-o out/conftest2.$ac_objext"
14566    # Insert the option either (1) after the last *FLAGS variable, or
14567    # (2) before a word containing "conftest.", or (3) at the end.
14568    # Note that $ac_compile itself does not contain backslashes and begins
14569    # with a dollar sign (not a hyphen), so the echo should work correctly.
14570    lt_compile=`echo "$ac_compile" | $SED \
14571    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14572    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14573    -e 's:$: $lt_compiler_flag:'`
14574    (eval echo "\"\$as_me:14574: $lt_compile\"" >&5)
14575    (eval "$lt_compile" 2>out/conftest.err)
14576    ac_status=$?
14577    cat out/conftest.err >&5
14578    echo "$as_me:14578: \$? = $ac_status" >&5
14579    if (exit $ac_status) && test -s out/conftest2.$ac_objext
14580    then
14581      # The compiler can only warn and ignore the option if not recognized
14582      # So say no if there are warnings
14583      $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
14584      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14585      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14586        lt_cv_prog_compiler_c_o_CXX=yes
14587      fi
14588    fi
14589    chmod u+w . 2>&5
14590    $RM conftest*
14591    # SGI C++ compiler will create directory out/ii_files/ for
14592    # template instantiation
14593    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
14594    $RM out/* && rmdir out
14595    cd ..
14596    $RM -r conftest
14597    $RM conftest*
14598
14599 fi
14600 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
14601 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
14602
14603
14604
14605
14606 hard_links="nottested"
14607 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
14608   # do not overwrite the value of need_locks provided by the user
14609   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
14610 $as_echo_n "checking if we can lock with hard links... " >&6; }
14611   hard_links=yes
14612   $RM conftest*
14613   ln conftest.a conftest.b 2>/dev/null && hard_links=no
14614   touch conftest.a
14615   ln conftest.a conftest.b 2>&5 || hard_links=no
14616   ln conftest.a conftest.b 2>/dev/null && hard_links=no
14617   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
14618 $as_echo "$hard_links" >&6; }
14619   if test "$hard_links" = no; then
14620     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
14621 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
14622     need_locks=warn
14623   fi
14624 else
14625   need_locks=no
14626 fi
14627
14628
14629
14630     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
14631 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
14632
14633   export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14634   case $host_os in
14635   aix[4-9]*)
14636     # If we're using GNU nm, then we don't want the "-C" option.
14637     # -C means demangle to AIX nm, but means don't demangle with GNU nm
14638     if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
14639       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'
14640     else
14641       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'
14642     fi
14643     ;;
14644   pw32*)
14645     export_symbols_cmds_CXX="$ltdll_cmds"
14646   ;;
14647   cygwin* | mingw* | cegcc*)
14648     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'
14649   ;;
14650   *)
14651     export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14652   ;;
14653   esac
14654   exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
14655
14656 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
14657 $as_echo "$ld_shlibs_CXX" >&6; }
14658 test "$ld_shlibs_CXX" = no && can_build_shared=no
14659
14660 with_gnu_ld_CXX=$with_gnu_ld
14661
14662
14663
14664
14665
14666
14667 #
14668 # Do we need to explicitly link libc?
14669 #
14670 case "x$archive_cmds_need_lc_CXX" in
14671 x|xyes)
14672   # Assume -lc should be added
14673   archive_cmds_need_lc_CXX=yes
14674
14675   if test "$enable_shared" = yes && test "$GCC" = yes; then
14676     case $archive_cmds_CXX in
14677     *'~'*)
14678       # FIXME: we may have to deal with multi-command sequences.
14679       ;;
14680     '$CC '*)
14681       # Test whether the compiler implicitly links with -lc since on some
14682       # systems, -lgcc has to come before -lc. If gcc already passes -lc
14683       # to ld, don't add -lc before -lgcc.
14684       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
14685 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
14686       $RM conftest*
14687       echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14688
14689       if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
14690   (eval $ac_compile) 2>&5
14691   ac_status=$?
14692   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14693   test $ac_status = 0; } 2>conftest.err; then
14694         soname=conftest
14695         lib=conftest
14696         libobjs=conftest.$ac_objext
14697         deplibs=
14698         wl=$lt_prog_compiler_wl_CXX
14699         pic_flag=$lt_prog_compiler_pic_CXX
14700         compiler_flags=-v
14701         linker_flags=-v
14702         verstring=
14703         output_objdir=.
14704         libname=conftest
14705         lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
14706         allow_undefined_flag_CXX=
14707         if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
14708   (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
14709   ac_status=$?
14710   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14711   test $ac_status = 0; }
14712         then
14713           archive_cmds_need_lc_CXX=no
14714         else
14715           archive_cmds_need_lc_CXX=yes
14716         fi
14717         allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
14718       else
14719         cat conftest.err 1>&5
14720       fi
14721       $RM conftest*
14722       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $archive_cmds_need_lc_CXX" >&5
14723 $as_echo "$archive_cmds_need_lc_CXX" >&6; }
14724       ;;
14725     esac
14726   fi
14727   ;;
14728 esac
14729
14730
14731
14732
14733
14734
14735
14736
14737
14738
14739
14740
14741
14742
14743
14744
14745
14746
14747
14748
14749
14750
14751
14752
14753
14754
14755
14756
14757
14758
14759
14760
14761
14762
14763
14764
14765
14766
14767
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     { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
14794 $as_echo_n "checking dynamic linker characteristics... " >&6; }
14795
14796 library_names_spec=
14797 libname_spec='lib$name'
14798 soname_spec=
14799 shrext_cmds=".so"
14800 postinstall_cmds=
14801 postuninstall_cmds=
14802 finish_cmds=
14803 finish_eval=
14804 shlibpath_var=
14805 shlibpath_overrides_runpath=unknown
14806 version_type=none
14807 dynamic_linker="$host_os ld.so"
14808 sys_lib_dlsearch_path_spec="/lib /usr/lib"
14809 need_lib_prefix=unknown
14810 hardcode_into_libs=no
14811
14812 # when you set need_version to no, make sure it does not cause -set_version
14813 # flags to be left without arguments
14814 need_version=unknown
14815
14816 case $host_os in
14817 aix3*)
14818   version_type=linux
14819   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
14820   shlibpath_var=LIBPATH
14821
14822   # AIX 3 has no versioning support, so we append a major version to the name.
14823   soname_spec='${libname}${release}${shared_ext}$major'
14824   ;;
14825
14826 aix[4-9]*)
14827   version_type=linux
14828   need_lib_prefix=no
14829   need_version=no
14830   hardcode_into_libs=yes
14831   if test "$host_cpu" = ia64; then
14832     # AIX 5 supports IA64
14833     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
14834     shlibpath_var=LD_LIBRARY_PATH
14835   else
14836     # With GCC up to 2.95.x, collect2 would create an import file
14837     # for dependence libraries.  The import file would start with
14838     # the line `#! .'.  This would cause the generated library to
14839     # depend on `.', always an invalid library.  This was fixed in
14840     # development snapshots of GCC prior to 3.0.
14841     case $host_os in
14842       aix4 | aix4.[01] | aix4.[01].*)
14843       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
14844            echo ' yes '
14845            echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
14846         :
14847       else
14848         can_build_shared=no
14849       fi
14850       ;;
14851     esac
14852     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
14853     # soname into executable. Probably we can add versioning support to
14854     # collect2, so additional links can be useful in future.
14855     if test "$aix_use_runtimelinking" = yes; then
14856       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
14857       # instead of lib<name>.a to let people know that these are not
14858       # typical AIX shared libraries.
14859       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14860     else
14861       # We preserve .a as extension for shared libraries through AIX4.2
14862       # and later when we are not doing run time linking.
14863       library_names_spec='${libname}${release}.a $libname.a'
14864       soname_spec='${libname}${release}${shared_ext}$major'
14865     fi
14866     shlibpath_var=LIBPATH
14867   fi
14868   ;;
14869
14870 amigaos*)
14871   case $host_cpu in
14872   powerpc)
14873     # Since July 2007 AmigaOS4 officially supports .so libraries.
14874     # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
14875     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14876     ;;
14877   m68k)
14878     library_names_spec='$libname.ixlibrary $libname.a'
14879     # Create ${libname}_ixlibrary.a entries in /sys/libs.
14880     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'
14881     ;;
14882   esac
14883   ;;
14884
14885 beos*)
14886   library_names_spec='${libname}${shared_ext}'
14887   dynamic_linker="$host_os ld.so"
14888   shlibpath_var=LIBRARY_PATH
14889   ;;
14890
14891 bsdi[45]*)
14892   version_type=linux
14893   need_version=no
14894   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14895   soname_spec='${libname}${release}${shared_ext}$major'
14896   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
14897   shlibpath_var=LD_LIBRARY_PATH
14898   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
14899   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
14900   # the default ld.so.conf also contains /usr/contrib/lib and
14901   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
14902   # libtool to hard-code these into programs
14903   ;;
14904
14905 cygwin* | mingw* | pw32* | cegcc*)
14906   version_type=windows
14907   shrext_cmds=".dll"
14908   need_version=no
14909   need_lib_prefix=no
14910
14911   case $GCC,$host_os in
14912   yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
14913     library_names_spec='$libname.dll.a'
14914     # DLL is installed to $(libdir)/../bin by postinstall_cmds
14915     postinstall_cmds='base_file=`basename \${file}`~
14916       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
14917       dldir=$destdir/`dirname \$dlpath`~
14918       test -d \$dldir || mkdir -p \$dldir~
14919       $install_prog $dir/$dlname \$dldir/$dlname~
14920       chmod a+x \$dldir/$dlname~
14921       if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
14922         eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
14923       fi'
14924     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
14925       dlpath=$dir/\$dldll~
14926        $RM \$dlpath'
14927     shlibpath_overrides_runpath=yes
14928
14929     case $host_os in
14930     cygwin*)
14931       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
14932       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14933       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
14934       ;;
14935     mingw* | cegcc*)
14936       # MinGW DLLs use traditional 'lib' prefix
14937       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14938       sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
14939       if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
14940         # It is most probably a Windows format PATH printed by
14941         # mingw gcc, but we are running on Cygwin. Gcc prints its search
14942         # path with ; separators, and with drive letters. We can handle the
14943         # drive letters (cygwin fileutils understands them), so leave them,
14944         # especially as we might pass files found there to a mingw objdump,
14945         # which wouldn't understand a cygwinified path. Ahh.
14946         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
14947       else
14948         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
14949       fi
14950       ;;
14951     pw32*)
14952       # pw32 DLLs use 'pw' prefix rather than 'lib'
14953       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14954       ;;
14955     esac
14956     ;;
14957
14958   *)
14959     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
14960     ;;
14961   esac
14962   dynamic_linker='Win32 ld.exe'
14963   # FIXME: first we should search . and the directory the executable is in
14964   shlibpath_var=PATH
14965   ;;
14966
14967 darwin* | rhapsody*)
14968   dynamic_linker="$host_os dyld"
14969   version_type=darwin
14970   need_lib_prefix=no
14971   need_version=no
14972   library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
14973   soname_spec='${libname}${release}${major}$shared_ext'
14974   shlibpath_overrides_runpath=yes
14975   shlibpath_var=DYLD_LIBRARY_PATH
14976   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
14977
14978   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
14979   ;;
14980
14981 dgux*)
14982   version_type=linux
14983   need_lib_prefix=no
14984   need_version=no
14985   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
14986   soname_spec='${libname}${release}${shared_ext}$major'
14987   shlibpath_var=LD_LIBRARY_PATH
14988   ;;
14989
14990 freebsd1*)
14991   dynamic_linker=no
14992   ;;
14993
14994 freebsd* | dragonfly*)
14995   # DragonFly does not have aout.  When/if they implement a new
14996   # versioning mechanism, adjust this.
14997   if test -x /usr/bin/objformat; then
14998     objformat=`/usr/bin/objformat`
14999   else
15000     case $host_os in
15001     freebsd[123]*) objformat=aout ;;
15002     *) objformat=elf ;;
15003     esac
15004   fi
15005   version_type=freebsd-$objformat
15006   case $version_type in
15007     freebsd-elf*)
15008       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15009       need_version=no
15010       need_lib_prefix=no
15011       ;;
15012     freebsd-*)
15013       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
15014       need_version=yes
15015       ;;
15016   esac
15017   shlibpath_var=LD_LIBRARY_PATH
15018   case $host_os in
15019   freebsd2*)
15020     shlibpath_overrides_runpath=yes
15021     ;;
15022   freebsd3.[01]* | freebsdelf3.[01]*)
15023     shlibpath_overrides_runpath=yes
15024     hardcode_into_libs=yes
15025     ;;
15026   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
15027   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
15028     shlibpath_overrides_runpath=no
15029     hardcode_into_libs=yes
15030     ;;
15031   *) # from 4.6 on, and DragonFly
15032     shlibpath_overrides_runpath=yes
15033     hardcode_into_libs=yes
15034     ;;
15035   esac
15036   ;;
15037
15038 gnu*)
15039   version_type=linux
15040   need_lib_prefix=no
15041   need_version=no
15042   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
15043   soname_spec='${libname}${release}${shared_ext}$major'
15044   shlibpath_var=LD_LIBRARY_PATH
15045   hardcode_into_libs=yes
15046   ;;
15047
15048 hpux9* | hpux10* | hpux11*)
15049   # Give a soname corresponding to the major version so that dld.sl refuses to
15050   # link against other versions.
15051   version_type=sunos
15052   need_lib_prefix=no
15053   need_version=no
15054   case $host_cpu in
15055   ia64*)
15056     shrext_cmds='.so'
15057     hardcode_into_libs=yes
15058     dynamic_linker="$host_os dld.so"
15059     shlibpath_var=LD_LIBRARY_PATH
15060     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15061     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15062     soname_spec='${libname}${release}${shared_ext}$major'
15063     if test "X$HPUX_IA64_MODE" = X32; then
15064       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
15065     else
15066       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
15067     fi
15068     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15069     ;;
15070   hppa*64*)
15071     shrext_cmds='.sl'
15072     hardcode_into_libs=yes
15073     dynamic_linker="$host_os dld.sl"
15074     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
15075     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15076     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15077     soname_spec='${libname}${release}${shared_ext}$major'
15078     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
15079     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15080     ;;
15081   *)
15082     shrext_cmds='.sl'
15083     dynamic_linker="$host_os dld.sl"
15084     shlibpath_var=SHLIB_PATH
15085     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
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     ;;
15089   esac
15090   # HP-UX runs *really* slowly unless shared libraries are mode 555.
15091   postinstall_cmds='chmod 555 $lib'
15092   ;;
15093
15094 interix[3-9]*)
15095   version_type=linux
15096   need_lib_prefix=no
15097   need_version=no
15098   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15099   soname_spec='${libname}${release}${shared_ext}$major'
15100   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
15101   shlibpath_var=LD_LIBRARY_PATH
15102   shlibpath_overrides_runpath=no
15103   hardcode_into_libs=yes
15104   ;;
15105
15106 irix5* | irix6* | nonstopux*)
15107   case $host_os in
15108     nonstopux*) version_type=nonstopux ;;
15109     *)
15110         if test "$lt_cv_prog_gnu_ld" = yes; then
15111                 version_type=linux
15112         else
15113                 version_type=irix
15114         fi ;;
15115   esac
15116   need_lib_prefix=no
15117   need_version=no
15118   soname_spec='${libname}${release}${shared_ext}$major'
15119   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
15120   case $host_os in
15121   irix5* | nonstopux*)
15122     libsuff= shlibsuff=
15123     ;;
15124   *)
15125     case $LD in # libtool.m4 will add one of these switches to LD
15126     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
15127       libsuff= shlibsuff= libmagic=32-bit;;
15128     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
15129       libsuff=32 shlibsuff=N32 libmagic=N32;;
15130     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
15131       libsuff=64 shlibsuff=64 libmagic=64-bit;;
15132     *) libsuff= shlibsuff= libmagic=never-match;;
15133     esac
15134     ;;
15135   esac
15136   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
15137   shlibpath_overrides_runpath=no
15138   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
15139   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
15140   hardcode_into_libs=yes
15141   ;;
15142
15143 # No shared lib support for Linux oldld, aout, or coff.
15144 linux*oldld* | linux*aout* | linux*coff*)
15145   dynamic_linker=no
15146   ;;
15147
15148 # This must be Linux ELF.
15149 linux* | k*bsd*-gnu)
15150   version_type=linux
15151   need_lib_prefix=no
15152   need_version=no
15153   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15154   soname_spec='${libname}${release}${shared_ext}$major'
15155   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
15156   shlibpath_var=LD_LIBRARY_PATH
15157   shlibpath_overrides_runpath=no
15158   # Some binutils ld are patched to set DT_RUNPATH
15159   save_LDFLAGS=$LDFLAGS
15160   save_libdir=$libdir
15161   eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
15162        LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
15163   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15164 /* end confdefs.h.  */
15165
15166 int
15167 main ()
15168 {
15169
15170   ;
15171   return 0;
15172 }
15173 _ACEOF
15174 if ac_fn_cxx_try_link "$LINENO"; then :
15175   if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
15176   shlibpath_overrides_runpath=yes
15177 fi
15178 fi
15179 rm -f core conftest.err conftest.$ac_objext \
15180     conftest$ac_exeext conftest.$ac_ext
15181   LDFLAGS=$save_LDFLAGS
15182   libdir=$save_libdir
15183
15184   # This implies no fast_install, which is unacceptable.
15185   # Some rework will be needed to allow for fast_install
15186   # before this can be enabled.
15187   hardcode_into_libs=yes
15188
15189   # Append ld.so.conf contents to the search path
15190   if test -f /etc/ld.so.conf; then
15191     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' ' '`
15192     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
15193   fi
15194
15195   # We used to test for /lib/ld.so.1 and disable shared libraries on
15196   # powerpc, because MkLinux only supported shared libraries with the
15197   # GNU dynamic linker.  Since this was broken with cross compilers,
15198   # most powerpc-linux boxes support dynamic linking these days and
15199   # people can always --disable-shared, the test was removed, and we
15200   # assume the GNU/Linux dynamic linker is in use.
15201   dynamic_linker='GNU/Linux ld.so'
15202   ;;
15203
15204 netbsd*)
15205   version_type=sunos
15206   need_lib_prefix=no
15207   need_version=no
15208   if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
15209     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15210     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15211     dynamic_linker='NetBSD (a.out) ld.so'
15212   else
15213     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15214     soname_spec='${libname}${release}${shared_ext}$major'
15215     dynamic_linker='NetBSD ld.elf_so'
15216   fi
15217   shlibpath_var=LD_LIBRARY_PATH
15218   shlibpath_overrides_runpath=yes
15219   hardcode_into_libs=yes
15220   ;;
15221
15222 newsos6)
15223   version_type=linux
15224   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15225   shlibpath_var=LD_LIBRARY_PATH
15226   shlibpath_overrides_runpath=yes
15227   ;;
15228
15229 *nto* | *qnx*)
15230   version_type=qnx
15231   need_lib_prefix=no
15232   need_version=no
15233   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15234   soname_spec='${libname}${release}${shared_ext}$major'
15235   shlibpath_var=LD_LIBRARY_PATH
15236   shlibpath_overrides_runpath=no
15237   hardcode_into_libs=yes
15238   dynamic_linker='ldqnx.so'
15239   ;;
15240
15241 openbsd*)
15242   version_type=sunos
15243   sys_lib_dlsearch_path_spec="/usr/lib"
15244   need_lib_prefix=no
15245   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
15246   case $host_os in
15247     openbsd3.3 | openbsd3.3.*)  need_version=yes ;;
15248     *)                          need_version=no  ;;
15249   esac
15250   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15251   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15252   shlibpath_var=LD_LIBRARY_PATH
15253   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15254     case $host_os in
15255       openbsd2.[89] | openbsd2.[89].*)
15256         shlibpath_overrides_runpath=no
15257         ;;
15258       *)
15259         shlibpath_overrides_runpath=yes
15260         ;;
15261       esac
15262   else
15263     shlibpath_overrides_runpath=yes
15264   fi
15265   ;;
15266
15267 os2*)
15268   libname_spec='$name'
15269   shrext_cmds=".dll"
15270   need_lib_prefix=no
15271   library_names_spec='$libname${shared_ext} $libname.a'
15272   dynamic_linker='OS/2 ld.exe'
15273   shlibpath_var=LIBPATH
15274   ;;
15275
15276 osf3* | osf4* | osf5*)
15277   version_type=osf
15278   need_lib_prefix=no
15279   need_version=no
15280   soname_spec='${libname}${release}${shared_ext}$major'
15281   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15282   shlibpath_var=LD_LIBRARY_PATH
15283   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
15284   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
15285   ;;
15286
15287 rdos*)
15288   dynamic_linker=no
15289   ;;
15290
15291 solaris*)
15292   version_type=linux
15293   need_lib_prefix=no
15294   need_version=no
15295   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15296   soname_spec='${libname}${release}${shared_ext}$major'
15297   shlibpath_var=LD_LIBRARY_PATH
15298   shlibpath_overrides_runpath=yes
15299   hardcode_into_libs=yes
15300   # ldd complains unless libraries are executable
15301   postinstall_cmds='chmod +x $lib'
15302   ;;
15303
15304 sunos4*)
15305   version_type=sunos
15306   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15307   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
15308   shlibpath_var=LD_LIBRARY_PATH
15309   shlibpath_overrides_runpath=yes
15310   if test "$with_gnu_ld" = yes; then
15311     need_lib_prefix=no
15312   fi
15313   need_version=yes
15314   ;;
15315
15316 sysv4 | sysv4.3*)
15317   version_type=linux
15318   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15319   soname_spec='${libname}${release}${shared_ext}$major'
15320   shlibpath_var=LD_LIBRARY_PATH
15321   case $host_vendor in
15322     sni)
15323       shlibpath_overrides_runpath=no
15324       need_lib_prefix=no
15325       runpath_var=LD_RUN_PATH
15326       ;;
15327     siemens)
15328       need_lib_prefix=no
15329       ;;
15330     motorola)
15331       need_lib_prefix=no
15332       need_version=no
15333       shlibpath_overrides_runpath=no
15334       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
15335       ;;
15336   esac
15337   ;;
15338
15339 sysv4*MP*)
15340   if test -d /usr/nec ;then
15341     version_type=linux
15342     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
15343     soname_spec='$libname${shared_ext}.$major'
15344     shlibpath_var=LD_LIBRARY_PATH
15345   fi
15346   ;;
15347
15348 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
15349   version_type=freebsd-elf
15350   need_lib_prefix=no
15351   need_version=no
15352   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15353   soname_spec='${libname}${release}${shared_ext}$major'
15354   shlibpath_var=LD_LIBRARY_PATH
15355   shlibpath_overrides_runpath=yes
15356   hardcode_into_libs=yes
15357   if test "$with_gnu_ld" = yes; then
15358     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
15359   else
15360     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
15361     case $host_os in
15362       sco3.2v5*)
15363         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
15364         ;;
15365     esac
15366   fi
15367   sys_lib_dlsearch_path_spec='/usr/lib'
15368   ;;
15369
15370 tpf*)
15371   # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
15372   version_type=linux
15373   need_lib_prefix=no
15374   need_version=no
15375   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15376   shlibpath_var=LD_LIBRARY_PATH
15377   shlibpath_overrides_runpath=no
15378   hardcode_into_libs=yes
15379   ;;
15380
15381 uts4*)
15382   version_type=linux
15383   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15384   soname_spec='${libname}${release}${shared_ext}$major'
15385   shlibpath_var=LD_LIBRARY_PATH
15386   ;;
15387
15388 *)
15389   dynamic_linker=no
15390   ;;
15391 esac
15392 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
15393 $as_echo "$dynamic_linker" >&6; }
15394 test "$dynamic_linker" = no && can_build_shared=no
15395
15396 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
15397 if test "$GCC" = yes; then
15398   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
15399 fi
15400
15401 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
15402   sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
15403 fi
15404 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
15405   sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
15406 fi
15407
15408
15409
15410
15411
15412
15413
15414
15415
15416
15417
15418
15419
15420
15421
15422
15423
15424
15425
15426
15427
15428
15429
15430
15431
15432
15433
15434
15435
15436
15437
15438
15439
15440
15441
15442
15443     { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
15444 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
15445 hardcode_action_CXX=
15446 if test -n "$hardcode_libdir_flag_spec_CXX" ||
15447    test -n "$runpath_var_CXX" ||
15448    test "X$hardcode_automatic_CXX" = "Xyes" ; then
15449
15450   # We can hardcode non-existent directories.
15451   if test "$hardcode_direct_CXX" != no &&
15452      # If the only mechanism to avoid hardcoding is shlibpath_var, we
15453      # have to relink, otherwise we might link with an installed library
15454      # when we should be linking with a yet-to-be-installed one
15455      ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
15456      test "$hardcode_minus_L_CXX" != no; then
15457     # Linking always hardcodes the temporary library directory.
15458     hardcode_action_CXX=relink
15459   else
15460     # We can link without hardcoding, and we can hardcode nonexisting dirs.
15461     hardcode_action_CXX=immediate
15462   fi
15463 else
15464   # We cannot hardcode anything, or else we can only hardcode existing
15465   # directories.
15466   hardcode_action_CXX=unsupported
15467 fi
15468 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
15469 $as_echo "$hardcode_action_CXX" >&6; }
15470
15471 if test "$hardcode_action_CXX" = relink ||
15472    test "$inherit_rpath_CXX" = yes; then
15473   # Fast installation is not supported
15474   enable_fast_install=no
15475 elif test "$shlibpath_overrides_runpath" = yes ||
15476      test "$enable_shared" = no; then
15477   # Fast installation is not necessary
15478   enable_fast_install=needless
15479 fi
15480
15481
15482
15483
15484
15485
15486
15487   fi # test -n "$compiler"
15488
15489   CC=$lt_save_CC
15490   LDCXX=$LD
15491   LD=$lt_save_LD
15492   GCC=$lt_save_GCC
15493   with_gnu_ld=$lt_save_with_gnu_ld
15494   lt_cv_path_LDCXX=$lt_cv_path_LD
15495   lt_cv_path_LD=$lt_save_path_LD
15496   lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
15497   lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
15498 fi # test "$_lt_caught_CXX_error" != yes
15499
15500 ac_ext=c
15501 ac_cpp='$CPP $CPPFLAGS'
15502 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15503 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15504 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15505
15506
15507
15508
15509
15510
15511
15512
15513
15514
15515
15516
15517
15518         ac_config_commands="$ac_config_commands libtool"
15519
15520
15521
15522
15523 # Only expand once:
15524
15525
15526
15527
15528 if test x$use_libtool != xno; then
15529    DEFAULT_OBJECT_TYPE=".lo"
15530    DEFAULT_ARCHIVE_TYPE=".la"
15531    DEFAULT_SHARED_OBJECT_TYPE=".la"
15532    LIBTOOL="\$(LIBTOOL)"
15533    LIBTOOL_INSTALL_TARGET="libtool-install"
15534    LIBTOOL_UNINSTALL_TARGET="libtool-uninstall"
15535    LIBTOOL_CLEAN_TARGET="libtool-clean"
15536    QMAKE_LIBTOOL="${BUILD_DIR}/libtool"
15537    FD_PLUGIN_DIR="src/plugins/fd"
15538    have_plugins=yes
15539 else
15540    DEFAULT_OBJECT_TYPE=".o"
15541    DEFAULT_ARCHIVE_TYPE=".a"
15542    DEFAULT_SHARED_OBJECT_TYPE=".so"
15543    LIBTOOL="# \$(LIBTOOL)"
15544    LIBTOOL_INSTALL_TARGET=""
15545    LIBTOOL_UNINSTALL_TARGET=""
15546    LIBTOOL_CLEAN_TARGET=""
15547    QMAKE_LIBTOOL="# ${BUILD_DIR}/libtool"
15548    FD_PLUGIN_DIR=""
15549    have_plugins=no
15550 fi
15551
15552
15553
15554
15555
15556
15557
15558
15559
15560
15561
15562 # Check whether --enable-includes was given.
15563 if test "${enable_includes+set}" = set; then :
15564   enableval=$enable_includes;
15565        if test x$enableval = xyes; then
15566           install_includes=yes
15567        fi
15568
15569
15570 fi
15571
15572
15573
15574 if test x$use_libtool != xno -a x$install_includes = xyes; then
15575    INCLUDE_INSTALL_TARGET="install-includes"
15576    INCLUDE_UNINSTALL_TARGET="uninstall-includes"
15577 else
15578    INCLUDE_INSTALL_TARGET=""
15579    INCLUDE_UNINSTALL_TARGET=""
15580 fi
15581
15582
15583
15584
15585
15586 case $host_os in
15587   *cygwin* ) CYGWIN=yes;;
15588          * ) CYGWIN=no;;
15589 esac
15590
15591 if test $HAVE_UNAME=yes -a x`uname -s` = xSunOS
15592 then
15593
15594
15595 if $TRUEPRG; then
15596   HAVE_SUN_OS_TRUE=
15597   HAVE_SUN_OS_FALSE='#'
15598 else
15599   HAVE_SUN_OS_TRUE='#'
15600   HAVE_SUN_OS_FALSE=
15601 fi
15602         $as_echo "#define HAVE_SUN_OS 1" >>confdefs.h
15603
15604 else
15605
15606
15607 if $FALSEPRG; then
15608   HAVE_SUN_OS_TRUE=
15609   HAVE_SUN_OS_FALSE='#'
15610 else
15611   HAVE_SUN_OS_TRUE='#'
15612   HAVE_SUN_OS_FALSE=
15613 fi
15614 fi
15615
15616 if test $HAVE_UNAME=yes -a x`uname -s` = xOSF1
15617 then
15618
15619
15620 if $TRUEPRG; then
15621   HAVE_OSF1_OS_TRUE=
15622   HAVE_OSF1_OS_FALSE='#'
15623 else
15624   HAVE_OSF1_OS_TRUE='#'
15625   HAVE_OSF1_OS_FALSE=
15626 fi
15627         $as_echo "#define HAVE_OSF1_OS 1" >>confdefs.h
15628
15629 else
15630
15631
15632 if $FALSEPRG; then
15633   HAVE_OSF1_OS_TRUE=
15634   HAVE_OSF1_OS_FALSE='#'
15635 else
15636   HAVE_OSF1_OS_TRUE='#'
15637   HAVE_OSF1_OS_FALSE=
15638 fi
15639 fi
15640
15641 if test $HAVE_UNAME=yes -a x`uname -s` = xAIX
15642 then
15643
15644
15645 if $TRUEPRG; then
15646   HAVE_AIX_OS_TRUE=
15647   HAVE_AIX_OS_FALSE='#'
15648 else
15649   HAVE_AIX_OS_TRUE='#'
15650   HAVE_AIX_OS_FALSE=
15651 fi
15652         $as_echo "#define HAVE_AIX_OS 1" >>confdefs.h
15653
15654 else
15655
15656
15657 if $FALSEPRG; then
15658   HAVE_AIX_OS_TRUE=
15659   HAVE_AIX_OS_FALSE='#'
15660 else
15661   HAVE_AIX_OS_TRUE='#'
15662   HAVE_AIX_OS_FALSE=
15663 fi
15664 fi
15665
15666 if test $HAVE_UNAME=yes -a x`uname -s` = xHP-UX
15667 then
15668
15669
15670 if $TRUEPRG; then
15671   HAVE_HPUX_OS_TRUE=
15672   HAVE_HPUX_OS_FALSE='#'
15673 else
15674   HAVE_HPUX_OS_TRUE='#'
15675   HAVE_HPUX_OS_FALSE=
15676 fi
15677         $as_echo "#define HAVE_HPUX_OS 1" >>confdefs.h
15678
15679 else
15680
15681
15682 if $FALSEPRG; then
15683   HAVE_HPUX_OS_TRUE=
15684   HAVE_HPUX_OS_FALSE='#'
15685 else
15686   HAVE_HPUX_OS_TRUE='#'
15687   HAVE_HPUX_OS_FALSE=
15688 fi
15689 fi
15690
15691 if test $HAVE_UNAME=yes -a x`uname -s` = xLinux
15692 then
15693
15694
15695 if $TRUEPRG; then
15696   HAVE_LINUX_OS_TRUE=
15697   HAVE_LINUX_OS_FALSE='#'
15698 else
15699   HAVE_LINUX_OS_TRUE='#'
15700   HAVE_LINUX_OS_FALSE=
15701 fi
15702         $as_echo "#define HAVE_LINUX_OS 1" >>confdefs.h
15703
15704 else
15705
15706
15707 if $FALSEPRG; then
15708   HAVE_LINUX_OS_TRUE=
15709   HAVE_LINUX_OS_FALSE='#'
15710 else
15711   HAVE_LINUX_OS_TRUE='#'
15712   HAVE_LINUX_OS_FALSE=
15713 fi
15714 fi
15715
15716 if test $HAVE_UNAME=yes -a x`uname -s` = xFreeBSD
15717 then
15718
15719
15720 if $TRUEPRG; then
15721   HAVE_FREEBSD_OS_TRUE=
15722   HAVE_FREEBSD_OS_FALSE='#'
15723 else
15724   HAVE_FREEBSD_OS_TRUE='#'
15725   HAVE_FREEBSD_OS_FALSE=
15726 fi
15727         $as_echo "#define HAVE_FREEBSD_OS 1" >>confdefs.h
15728
15729 else
15730
15731
15732 if $FALSEPRG; then
15733   HAVE_FREEBSD_OS_TRUE=
15734   HAVE_FREEBSD_OS_FALSE='#'
15735 else
15736   HAVE_FREEBSD_OS_TRUE='#'
15737   HAVE_FREEBSD_OS_FALSE=
15738 fi
15739 fi
15740
15741 if test $HAVE_UNAME=yes -a x`uname -s` = xNetBSD
15742 then
15743
15744
15745 if $TRUEPRG; then
15746   HAVE_NETBSD_OS_TRUE=
15747   HAVE_NETBSD_OS_FALSE='#'
15748 else
15749   HAVE_NETBSD_OS_TRUE='#'
15750   HAVE_NETBSD_OS_FALSE=
15751 fi
15752         $as_echo "#define HAVE_NETBSD_OS 1" >>confdefs.h
15753
15754 else
15755
15756
15757 if $FALSEPRG; then
15758   HAVE_NETBSD_OS_TRUE=
15759   HAVE_NETBSD_OS_FALSE='#'
15760 else
15761   HAVE_NETBSD_OS_TRUE='#'
15762   HAVE_NETBSD_OS_FALSE=
15763 fi
15764 fi
15765
15766 if test $HAVE_UNAME=yes -a x`uname -s` = xOpenBSD
15767 then
15768
15769
15770 if $TRUEPRG; then
15771   HAVE_OPENBSD_OS_TRUE=
15772   HAVE_OPENBSD_OS_FALSE='#'
15773 else
15774   HAVE_OPENBSD_OS_TRUE='#'
15775   HAVE_OPENBSD_OS_FALSE=
15776 fi
15777         $as_echo "#define HAVE_OPENBSD_OS 1" >>confdefs.h
15778
15779 else
15780
15781
15782 if $FALSEPRG; then
15783   HAVE_OPENBSD_OS_TRUE=
15784   HAVE_OPENBSD_OS_FALSE='#'
15785 else
15786   HAVE_OPENBSD_OS_TRUE='#'
15787   HAVE_OPENBSD_OS_FALSE=
15788 fi
15789 fi
15790
15791 if test $HAVE_UNAME=yes -a x`uname -s` = xBSD/OS
15792 then
15793
15794
15795 if $TRUEPRG; then
15796   HAVE_BSDI_OS_TRUE=
15797   HAVE_BSDI_OS_FALSE='#'
15798 else
15799   HAVE_BSDI_OS_TRUE='#'
15800   HAVE_BSDI_OS_FALSE=
15801 fi
15802         $as_echo "#define HAVE_BSDI_OS 1" >>confdefs.h
15803
15804 else
15805
15806
15807 if $FALSEPRG; then
15808   HAVE_BSDI_OS_TRUE=
15809   HAVE_BSDI_OS_FALSE='#'
15810 else
15811   HAVE_BSDI_OS_TRUE='#'
15812   HAVE_BSDI_OS_FALSE=
15813 fi
15814 fi
15815
15816 if test $HAVE_UNAME=yes -a x`uname -s` = xSGI
15817 then
15818
15819
15820 if $TRUEPRG; then
15821   HAVE_SGI_OS_TRUE=
15822   HAVE_SGI_OS_FALSE='#'
15823 else
15824   HAVE_SGI_OS_TRUE='#'
15825   HAVE_SGI_OS_FALSE=
15826 fi
15827         $as_echo "#define HAVE_SGI_OS 1" >>confdefs.h
15828
15829 else
15830
15831
15832 if $FALSEPRG; then
15833   HAVE_SGI_OS_TRUE=
15834   HAVE_SGI_OS_FALSE='#'
15835 else
15836   HAVE_SGI_OS_TRUE='#'
15837   HAVE_SGI_OS_FALSE=
15838 fi
15839 fi
15840
15841 if test $HAVE_UNAME=yes -a x`uname -s` = xIRIX -o x`uname -s` = xIRIX64
15842 then
15843
15844
15845 if $TRUEPRG; then
15846   HAVE_IRIX_OS_TRUE=
15847   HAVE_IRIX_OS_FALSE='#'
15848 else
15849   HAVE_IRIX_OS_TRUE='#'
15850   HAVE_IRIX_OS_FALSE=
15851 fi
15852         $as_echo "#define HAVE_IRIX_OS 1" >>confdefs.h
15853
15854 else
15855
15856
15857 if $FALSEPRG; then
15858   HAVE_IRIX_OS_TRUE=
15859   HAVE_IRIX_OS_FALSE='#'
15860 else
15861   HAVE_IRIX_OS_TRUE='#'
15862   HAVE_IRIX_OS_FALSE=
15863 fi
15864 fi
15865
15866 if test $HAVE_UNAME=yes -a x`uname -s` = xDarwin
15867 then
15868
15869
15870 if $TRUEPRG; then
15871   HAVE_DARWIN_OS_TRUE=
15872   HAVE_DARWIN_OS_FALSE='#'
15873 else
15874   HAVE_DARWIN_OS_TRUE='#'
15875   HAVE_DARWIN_OS_FALSE=
15876 fi
15877     $as_echo "#define HAVE_DARWIN_OS 1" >>confdefs.h
15878
15879 else
15880
15881
15882 if $FALSEPRG; then
15883   HAVE_DARWIN_OS_TRUE=
15884   HAVE_DARWIN_OS_FALSE='#'
15885 else
15886   HAVE_DARWIN_OS_TRUE='#'
15887   HAVE_DARWIN_OS_FALSE=
15888 fi
15889 fi
15890
15891
15892 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Operating System Distribution" >&5
15893 $as_echo_n "checking for Operating System Distribution... " >&6; }
15894 if test "x$DISTNAME" != "x"
15895 then
15896         echo "distname set to $DISTNAME"
15897 elif test $HAVE_UNAME=yes -a x`uname -s` = xOSF1
15898 then
15899         DISTNAME=alpha
15900 elif test $HAVE_UNAME=yes -a x`uname -s` = xAIX
15901 then
15902         DISTNAME=aix
15903 elif test $HAVE_UNAME=yes -a x`uname -s` = xHP-UX
15904 then
15905         DISTNAME=hpux
15906 elif test $HAVE_UNAME=yes -a x`uname -s` = xSunOS
15907 then
15908         DISTNAME=solaris
15909 elif test $HAVE_UNAME=yes -a x`uname -s` = xFreeBSD
15910 then
15911         DISTNAME=freebsd
15912 elif test $HAVE_UNAME=yes -a x`uname -s` = xNetBSD
15913 then
15914         DISTNAME=netbsd
15915 elif test $HAVE_UNAME=yes -a x`uname -s` = xOpenBSD
15916 then
15917         DISTNAME=openbsd
15918 elif test $HAVE_UNAME=yes -a x`uname -s` = xIRIX
15919 then
15920         DISTNAME=irix
15921 elif test $HAVE_UNAME=yes -a x`uname -s` = xBSD/OS
15922 then
15923         DISTNAME=bsdi
15924 elif test -f /etc/SuSE-release
15925 then
15926         DISTNAME=suse
15927 elif test -d /etc/SuSEconfig
15928 then
15929         DISTNAME=suse5
15930 elif test -f /etc/mandrake-release
15931 then
15932         DISTNAME=mandrake
15933 elif test -f /etc/whitebox-release
15934 then
15935        DISTNAME=redhat
15936 elif test -f /etc/redhat-release
15937 then
15938         DISTNAME=redhat
15939 elif test -f /etc/gentoo-release
15940 then
15941         DISTNAME=gentoo
15942 elif test -f /etc/debian_version
15943 then
15944         DISTNAME=debian
15945 elif test -f /etc/slackware-version
15946 then
15947         DISTNAME=slackware
15948 elif test x$host_vendor = xapple
15949 then
15950     DISTNAME=osx
15951 elif test $HAVE_UNAME=yes -a x`uname -s` = xDarwin
15952 then
15953     DISTNAME=darwin
15954 elif test -f /etc/engarde-version
15955 then
15956         DISTNAME=engarde
15957 elif test "$CYGWIN" = yes
15958 then
15959         DISTNAME=cygwin
15960         $as_echo "#define HAVE_CYGWIN 1" >>confdefs.h
15961
15962 else
15963         DISTNAME=unknown
15964 fi
15965 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
15966 $as_echo "done" >&6; }
15967
15968
15969 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
15970 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
15971 set x ${MAKE-make}
15972 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
15973 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
15974   $as_echo_n "(cached) " >&6
15975 else
15976   cat >conftest.make <<\_ACEOF
15977 SHELL = /bin/sh
15978 all:
15979         @echo '@@@%%%=$(MAKE)=@@@%%%'
15980 _ACEOF
15981 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
15982 case `${MAKE-make} -f conftest.make 2>/dev/null` in
15983   *@@@%%%=?*=@@@%%%*)
15984     eval ac_cv_prog_make_${ac_make}_set=yes;;
15985   *)
15986     eval ac_cv_prog_make_${ac_make}_set=no;;
15987 esac
15988 rm -f conftest.make
15989 fi
15990 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
15991   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15992 $as_echo "yes" >&6; }
15993   SET_MAKE=
15994 else
15995   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15996 $as_echo "no" >&6; }
15997   SET_MAKE="MAKE=${MAKE-make}"
15998 fi
15999
16000
16001
16002         MKINSTALLDIRS=
16003   if test -n "$ac_aux_dir"; then
16004     case "$ac_aux_dir" in
16005       /*) MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs" ;;
16006       *) MKINSTALLDIRS="\$(top_builddir)/$ac_aux_dir/mkinstalldirs" ;;
16007     esac
16008   fi
16009   if test -z "$MKINSTALLDIRS"; then
16010     MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs"
16011   fi
16012
16013
16014
16015   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
16016 $as_echo_n "checking whether NLS is requested... " >&6; }
16017     # Check whether --enable-nls was given.
16018 if test "${enable_nls+set}" = set; then :
16019   enableval=$enable_nls; USE_NLS=$enableval
16020 else
16021   USE_NLS=yes
16022 fi
16023
16024   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
16025 $as_echo "$USE_NLS" >&6; }
16026
16027
16028
16029
16030
16031
16032 # Prepare PATH_SEPARATOR.
16033 # The user is always right.
16034 if test "${PATH_SEPARATOR+set}" != set; then
16035   echo "#! /bin/sh" >conf$$.sh
16036   echo  "exit 0"   >>conf$$.sh
16037   chmod +x conf$$.sh
16038   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
16039     PATH_SEPARATOR=';'
16040   else
16041     PATH_SEPARATOR=:
16042   fi
16043   rm -f conf$$.sh
16044 fi
16045
16046 # Find out how to test for executable files. Don't use a zero-byte file,
16047 # as systems may use methods other than mode bits to determine executability.
16048 cat >conf$$.file <<_ASEOF
16049 #! /bin/sh
16050 exit 0
16051 _ASEOF
16052 chmod +x conf$$.file
16053 if test -x conf$$.file >/dev/null 2>&1; then
16054   ac_executable_p="test -x"
16055 else
16056   ac_executable_p="test -f"
16057 fi
16058 rm -f conf$$.file
16059
16060 # Extract the first word of "msgfmt", so it can be a program name with args.
16061 set dummy msgfmt; ac_word=$2
16062 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16063 $as_echo_n "checking for $ac_word... " >&6; }
16064 if test "${ac_cv_path_MSGFMT+set}" = set; then :
16065   $as_echo_n "(cached) " >&6
16066 else
16067   case "$MSGFMT" in
16068   [\\/]* | ?:[\\/]*)
16069     ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
16070     ;;
16071   *)
16072     ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
16073     for ac_dir in $PATH; do
16074       IFS="$ac_save_IFS"
16075       test -z "$ac_dir" && ac_dir=.
16076       for ac_exec_ext in '' $ac_executable_extensions; do
16077         if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
16078           echo "$as_me: trying $ac_dir/$ac_word..." >&5
16079           if $ac_dir/$ac_word --statistics /dev/null >&5 2>&1 &&
16080      (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
16081             ac_cv_path_MSGFMT="$ac_dir/$ac_word$ac_exec_ext"
16082             break 2
16083           fi
16084         fi
16085       done
16086     done
16087     IFS="$ac_save_IFS"
16088   test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
16089     ;;
16090 esac
16091 fi
16092 MSGFMT="$ac_cv_path_MSGFMT"
16093 if test "$MSGFMT" != ":"; then
16094   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGFMT" >&5
16095 $as_echo "$MSGFMT" >&6; }
16096 else
16097   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16098 $as_echo "no" >&6; }
16099 fi
16100
16101   # Extract the first word of "gmsgfmt", so it can be a program name with args.
16102 set dummy gmsgfmt; ac_word=$2
16103 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16104 $as_echo_n "checking for $ac_word... " >&6; }
16105 if test "${ac_cv_path_GMSGFMT+set}" = set; then :
16106   $as_echo_n "(cached) " >&6
16107 else
16108   case $GMSGFMT in
16109   [\\/]* | ?:[\\/]*)
16110   ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
16111   ;;
16112   *)
16113   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16114 for as_dir in $PATH
16115 do
16116   IFS=$as_save_IFS
16117   test -z "$as_dir" && as_dir=.
16118     for ac_exec_ext in '' $ac_executable_extensions; do
16119   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
16120     ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
16121     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16122     break 2
16123   fi
16124 done
16125   done
16126 IFS=$as_save_IFS
16127
16128   test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
16129   ;;
16130 esac
16131 fi
16132 GMSGFMT=$ac_cv_path_GMSGFMT
16133 if test -n "$GMSGFMT"; then
16134   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GMSGFMT" >&5
16135 $as_echo "$GMSGFMT" >&6; }
16136 else
16137   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16138 $as_echo "no" >&6; }
16139 fi
16140
16141
16142
16143
16144 # Prepare PATH_SEPARATOR.
16145 # The user is always right.
16146 if test "${PATH_SEPARATOR+set}" != set; then
16147   echo "#! /bin/sh" >conf$$.sh
16148   echo  "exit 0"   >>conf$$.sh
16149   chmod +x conf$$.sh
16150   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
16151     PATH_SEPARATOR=';'
16152   else
16153     PATH_SEPARATOR=:
16154   fi
16155   rm -f conf$$.sh
16156 fi
16157
16158 # Find out how to test for executable files. Don't use a zero-byte file,
16159 # as systems may use methods other than mode bits to determine executability.
16160 cat >conf$$.file <<_ASEOF
16161 #! /bin/sh
16162 exit 0
16163 _ASEOF
16164 chmod +x conf$$.file
16165 if test -x conf$$.file >/dev/null 2>&1; then
16166   ac_executable_p="test -x"
16167 else
16168   ac_executable_p="test -f"
16169 fi
16170 rm -f conf$$.file
16171
16172 # Extract the first word of "xgettext", so it can be a program name with args.
16173 set dummy xgettext; ac_word=$2
16174 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16175 $as_echo_n "checking for $ac_word... " >&6; }
16176 if test "${ac_cv_path_XGETTEXT+set}" = set; then :
16177   $as_echo_n "(cached) " >&6
16178 else
16179   case "$XGETTEXT" in
16180   [\\/]* | ?:[\\/]*)
16181     ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
16182     ;;
16183   *)
16184     ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
16185     for ac_dir in $PATH; do
16186       IFS="$ac_save_IFS"
16187       test -z "$ac_dir" && ac_dir=.
16188       for ac_exec_ext in '' $ac_executable_extensions; do
16189         if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
16190           echo "$as_me: trying $ac_dir/$ac_word..." >&5
16191           if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >&5 2>&1 &&
16192      (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
16193             ac_cv_path_XGETTEXT="$ac_dir/$ac_word$ac_exec_ext"
16194             break 2
16195           fi
16196         fi
16197       done
16198     done
16199     IFS="$ac_save_IFS"
16200   test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
16201     ;;
16202 esac
16203 fi
16204 XGETTEXT="$ac_cv_path_XGETTEXT"
16205 if test "$XGETTEXT" != ":"; then
16206   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XGETTEXT" >&5
16207 $as_echo "$XGETTEXT" >&6; }
16208 else
16209   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16210 $as_echo "no" >&6; }
16211 fi
16212
16213     rm -f messages.po
16214
16215
16216 # Prepare PATH_SEPARATOR.
16217 # The user is always right.
16218 if test "${PATH_SEPARATOR+set}" != set; then
16219   echo "#! /bin/sh" >conf$$.sh
16220   echo  "exit 0"   >>conf$$.sh
16221   chmod +x conf$$.sh
16222   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
16223     PATH_SEPARATOR=';'
16224   else
16225     PATH_SEPARATOR=:
16226   fi
16227   rm -f conf$$.sh
16228 fi
16229
16230 # Find out how to test for executable files. Don't use a zero-byte file,
16231 # as systems may use methods other than mode bits to determine executability.
16232 cat >conf$$.file <<_ASEOF
16233 #! /bin/sh
16234 exit 0
16235 _ASEOF
16236 chmod +x conf$$.file
16237 if test -x conf$$.file >/dev/null 2>&1; then
16238   ac_executable_p="test -x"
16239 else
16240   ac_executable_p="test -f"
16241 fi
16242 rm -f conf$$.file
16243
16244 # Extract the first word of "msgmerge", so it can be a program name with args.
16245 set dummy msgmerge; ac_word=$2
16246 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16247 $as_echo_n "checking for $ac_word... " >&6; }
16248 if test "${ac_cv_path_MSGMERGE+set}" = set; then :
16249   $as_echo_n "(cached) " >&6
16250 else
16251   case "$MSGMERGE" in
16252   [\\/]* | ?:[\\/]*)
16253     ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path.
16254     ;;
16255   *)
16256     ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
16257     for ac_dir in $PATH; do
16258       IFS="$ac_save_IFS"
16259       test -z "$ac_dir" && ac_dir=.
16260       for ac_exec_ext in '' $ac_executable_extensions; do
16261         if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
16262           echo "$as_me: trying $ac_dir/$ac_word..." >&5
16263           if $ac_dir/$ac_word --update -q /dev/null /dev/null >&5 2>&1; then
16264             ac_cv_path_MSGMERGE="$ac_dir/$ac_word$ac_exec_ext"
16265             break 2
16266           fi
16267         fi
16268       done
16269     done
16270     IFS="$ac_save_IFS"
16271   test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":"
16272     ;;
16273 esac
16274 fi
16275 MSGMERGE="$ac_cv_path_MSGMERGE"
16276 if test "$MSGMERGE" != ":"; then
16277   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGMERGE" >&5
16278 $as_echo "$MSGMERGE" >&6; }
16279 else
16280   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16281 $as_echo "no" >&6; }
16282 fi
16283
16284
16285       if test "$GMSGFMT" != ":"; then
16286             if $GMSGFMT --statistics /dev/null >/dev/null 2>&1 &&
16287        (if $GMSGFMT --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
16288       : ;
16289     else
16290       GMSGFMT=`echo "$GMSGFMT" | sed -e 's,^.*/,,'`
16291       { $as_echo "$as_me:${as_lineno-$LINENO}: result: found $GMSGFMT program is not GNU msgfmt; ignore it" >&5
16292 $as_echo "found $GMSGFMT program is not GNU msgfmt; ignore it" >&6; }
16293       GMSGFMT=":"
16294     fi
16295   fi
16296
16297       if test "$XGETTEXT" != ":"; then
16298             if $XGETTEXT --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 &&
16299        (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
16300       : ;
16301     else
16302       { $as_echo "$as_me:${as_lineno-$LINENO}: result: found xgettext program is not GNU xgettext; ignore it" >&5
16303 $as_echo "found xgettext program is not GNU xgettext; ignore it" >&6; }
16304       XGETTEXT=":"
16305     fi
16306         rm -f messages.po
16307   fi
16308
16309   ac_config_commands="$ac_config_commands default-1"
16310
16311
16312
16313       if test "X$prefix" = "XNONE"; then
16314     acl_final_prefix="$ac_default_prefix"
16315   else
16316     acl_final_prefix="$prefix"
16317   fi
16318   if test "X$exec_prefix" = "XNONE"; then
16319     acl_final_exec_prefix='${prefix}'
16320   else
16321     acl_final_exec_prefix="$exec_prefix"
16322   fi
16323   acl_save_prefix="$prefix"
16324   prefix="$acl_final_prefix"
16325   eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
16326   prefix="$acl_save_prefix"
16327
16328
16329 # Check whether --with-gnu-ld was given.
16330 if test "${with_gnu_ld+set}" = set; then :
16331   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
16332 else
16333   with_gnu_ld=no
16334 fi
16335
16336 # Prepare PATH_SEPARATOR.
16337 # The user is always right.
16338 if test "${PATH_SEPARATOR+set}" != set; then
16339   echo "#! /bin/sh" >conf$$.sh
16340   echo  "exit 0"   >>conf$$.sh
16341   chmod +x conf$$.sh
16342   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
16343     PATH_SEPARATOR=';'
16344   else
16345     PATH_SEPARATOR=:
16346   fi
16347   rm -f conf$$.sh
16348 fi
16349 ac_prog=ld
16350 if test "$GCC" = yes; then
16351   # Check if gcc -print-prog-name=ld gives a path.
16352   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by GCC" >&5
16353 $as_echo_n "checking for ld used by GCC... " >&6; }
16354   case $host in
16355   *-*-mingw*)
16356     # gcc leaves a trailing carriage return which upsets mingw
16357     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
16358   *)
16359     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
16360   esac
16361   case $ac_prog in
16362     # Accept absolute paths.
16363     [\\/]* | [A-Za-z]:[\\/]*)
16364       re_direlt='/[^/][^/]*/\.\./'
16365       # Canonicalize the path of ld
16366       ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
16367       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
16368         ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
16369       done
16370       test -z "$LD" && LD="$ac_prog"
16371       ;;
16372   "")
16373     # If it fails, then pretend we aren't using GCC.
16374     ac_prog=ld
16375     ;;
16376   *)
16377     # If it is relative, then search for the first ld in PATH.
16378     with_gnu_ld=unknown
16379     ;;
16380   esac
16381 elif test "$with_gnu_ld" = yes; then
16382   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
16383 $as_echo_n "checking for GNU ld... " >&6; }
16384 else
16385   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
16386 $as_echo_n "checking for non-GNU ld... " >&6; }
16387 fi
16388 if test "${acl_cv_path_LD+set}" = set; then :
16389   $as_echo_n "(cached) " >&6
16390 else
16391   if test -z "$LD"; then
16392   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
16393   for ac_dir in $PATH; do
16394     test -z "$ac_dir" && ac_dir=.
16395     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
16396       acl_cv_path_LD="$ac_dir/$ac_prog"
16397       # Check to see if the program is GNU ld.  I'd rather use --version,
16398       # but apparently some GNU ld's only accept -v.
16399       # Break only if it was the GNU/non-GNU ld that we prefer.
16400       case `"$acl_cv_path_LD" -v 2>&1 < /dev/null` in
16401       *GNU* | *'with BFD'*)
16402         test "$with_gnu_ld" != no && break ;;
16403       *)
16404         test "$with_gnu_ld" != yes && break ;;
16405       esac
16406     fi
16407   done
16408   IFS="$ac_save_ifs"
16409 else
16410   acl_cv_path_LD="$LD" # Let the user override the test with a path.
16411 fi
16412 fi
16413
16414 LD="$acl_cv_path_LD"
16415 if test -n "$LD"; then
16416   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
16417 $as_echo "$LD" >&6; }
16418 else
16419   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16420 $as_echo "no" >&6; }
16421 fi
16422 test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
16423 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
16424 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
16425 if test "${acl_cv_prog_gnu_ld+set}" = set; then :
16426   $as_echo_n "(cached) " >&6
16427 else
16428   # I'd rather use --version here, but apparently some GNU ld's only accept -v.
16429 case `$LD -v 2>&1 </dev/null` in
16430 *GNU* | *'with BFD'*)
16431   acl_cv_prog_gnu_ld=yes ;;
16432 *)
16433   acl_cv_prog_gnu_ld=no ;;
16434 esac
16435 fi
16436 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_prog_gnu_ld" >&5
16437 $as_echo "$acl_cv_prog_gnu_ld" >&6; }
16438 with_gnu_ld=$acl_cv_prog_gnu_ld
16439
16440
16441
16442
16443                                                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shared library run path origin" >&5
16444 $as_echo_n "checking for shared library run path origin... " >&6; }
16445 if test "${acl_cv_rpath+set}" = set; then :
16446   $as_echo_n "(cached) " >&6
16447 else
16448
16449     CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
16450     ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
16451     . ./conftest.sh
16452     rm -f ./conftest.sh
16453     acl_cv_rpath=done
16454
16455 fi
16456 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_rpath" >&5
16457 $as_echo "$acl_cv_rpath" >&6; }
16458   wl="$acl_cv_wl"
16459   libext="$acl_cv_libext"
16460   shlibext="$acl_cv_shlibext"
16461   hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
16462   hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
16463   hardcode_direct="$acl_cv_hardcode_direct"
16464   hardcode_minus_L="$acl_cv_hardcode_minus_L"
16465     # Check whether --enable-rpath was given.
16466 if test "${enable_rpath+set}" = set; then :
16467   enableval=$enable_rpath; :
16468 else
16469   enable_rpath=yes
16470 fi
16471
16472
16473
16474
16475
16476
16477
16478
16479     use_additional=yes
16480
16481   acl_save_prefix="$prefix"
16482   prefix="$acl_final_prefix"
16483   acl_save_exec_prefix="$exec_prefix"
16484   exec_prefix="$acl_final_exec_prefix"
16485
16486     eval additional_includedir=\"$includedir\"
16487     eval additional_libdir=\"$libdir\"
16488
16489   exec_prefix="$acl_save_exec_prefix"
16490   prefix="$acl_save_prefix"
16491
16492
16493 # Check whether --with-libiconv-prefix was given.
16494 if test "${with_libiconv_prefix+set}" = set; then :
16495   withval=$with_libiconv_prefix;
16496     if test "X$withval" = "Xno"; then
16497       use_additional=no
16498     else
16499       if test "X$withval" = "X"; then
16500
16501   acl_save_prefix="$prefix"
16502   prefix="$acl_final_prefix"
16503   acl_save_exec_prefix="$exec_prefix"
16504   exec_prefix="$acl_final_exec_prefix"
16505
16506           eval additional_includedir=\"$includedir\"
16507           eval additional_libdir=\"$libdir\"
16508
16509   exec_prefix="$acl_save_exec_prefix"
16510   prefix="$acl_save_prefix"
16511
16512       else
16513         additional_includedir="$withval/include"
16514         additional_libdir="$withval/lib"
16515       fi
16516     fi
16517
16518 fi
16519
16520       LIBICONV=
16521   LTLIBICONV=
16522   INCICONV=
16523   rpathdirs=
16524   ltrpathdirs=
16525   names_already_handled=
16526   names_next_round='iconv '
16527   while test -n "$names_next_round"; do
16528     names_this_round="$names_next_round"
16529     names_next_round=
16530     for name in $names_this_round; do
16531       already_handled=
16532       for n in $names_already_handled; do
16533         if test "$n" = "$name"; then
16534           already_handled=yes
16535           break
16536         fi
16537       done
16538       if test -z "$already_handled"; then
16539         names_already_handled="$names_already_handled $name"
16540                         uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
16541         eval value=\"\$HAVE_LIB$uppername\"
16542         if test -n "$value"; then
16543           if test "$value" = yes; then
16544             eval value=\"\$LIB$uppername\"
16545             test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
16546             eval value=\"\$LTLIB$uppername\"
16547             test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
16548           else
16549                                     :
16550           fi
16551         else
16552                               found_dir=
16553           found_la=
16554           found_so=
16555           found_a=
16556           if test $use_additional = yes; then
16557             if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
16558               found_dir="$additional_libdir"
16559               found_so="$additional_libdir/lib$name.$shlibext"
16560               if test -f "$additional_libdir/lib$name.la"; then
16561                 found_la="$additional_libdir/lib$name.la"
16562               fi
16563             else
16564               if test -f "$additional_libdir/lib$name.$libext"; then
16565                 found_dir="$additional_libdir"
16566                 found_a="$additional_libdir/lib$name.$libext"
16567                 if test -f "$additional_libdir/lib$name.la"; then
16568                   found_la="$additional_libdir/lib$name.la"
16569                 fi
16570               fi
16571             fi
16572           fi
16573           if test "X$found_dir" = "X"; then
16574             for x in $LDFLAGS $LTLIBICONV; do
16575
16576   acl_save_prefix="$prefix"
16577   prefix="$acl_final_prefix"
16578   acl_save_exec_prefix="$exec_prefix"
16579   exec_prefix="$acl_final_exec_prefix"
16580   eval x=\"$x\"
16581   exec_prefix="$acl_save_exec_prefix"
16582   prefix="$acl_save_prefix"
16583
16584               case "$x" in
16585                 -L*)
16586                   dir=`echo "X$x" | sed -e 's/^X-L//'`
16587                   if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
16588                     found_dir="$dir"
16589                     found_so="$dir/lib$name.$shlibext"
16590                     if test -f "$dir/lib$name.la"; then
16591                       found_la="$dir/lib$name.la"
16592                     fi
16593                   else
16594                     if test -f "$dir/lib$name.$libext"; then
16595                       found_dir="$dir"
16596                       found_a="$dir/lib$name.$libext"
16597                       if test -f "$dir/lib$name.la"; then
16598                         found_la="$dir/lib$name.la"
16599                       fi
16600                     fi
16601                   fi
16602                   ;;
16603               esac
16604               if test "X$found_dir" != "X"; then
16605                 break
16606               fi
16607             done
16608           fi
16609           if test "X$found_dir" != "X"; then
16610                         LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
16611             if test "X$found_so" != "X"; then
16612                                                         if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
16613                                 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
16614               else
16615                                                                                 haveit=
16616                 for x in $ltrpathdirs; do
16617                   if test "X$x" = "X$found_dir"; then
16618                     haveit=yes
16619                     break
16620                   fi
16621                 done
16622                 if test -z "$haveit"; then
16623                   ltrpathdirs="$ltrpathdirs $found_dir"
16624                 fi
16625                                 if test "$hardcode_direct" = yes; then
16626                                                       LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
16627                 else
16628                   if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
16629                                                             LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
16630                                                             haveit=
16631                     for x in $rpathdirs; do
16632                       if test "X$x" = "X$found_dir"; then
16633                         haveit=yes
16634                         break
16635                       fi
16636                     done
16637                     if test -z "$haveit"; then
16638                       rpathdirs="$rpathdirs $found_dir"
16639                     fi
16640                   else
16641                                                                                 haveit=
16642                     for x in $LDFLAGS $LIBICONV; do
16643
16644   acl_save_prefix="$prefix"
16645   prefix="$acl_final_prefix"
16646   acl_save_exec_prefix="$exec_prefix"
16647   exec_prefix="$acl_final_exec_prefix"
16648   eval x=\"$x\"
16649   exec_prefix="$acl_save_exec_prefix"
16650   prefix="$acl_save_prefix"
16651
16652                       if test "X$x" = "X-L$found_dir"; then
16653                         haveit=yes
16654                         break
16655                       fi
16656                     done
16657                     if test -z "$haveit"; then
16658                       LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
16659                     fi
16660                     if test "$hardcode_minus_L" != no; then
16661                                                                                         LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
16662                     else
16663                                                                                                                                                                                 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
16664                     fi
16665                   fi
16666                 fi
16667               fi
16668             else
16669               if test "X$found_a" != "X"; then
16670                                 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
16671               else
16672                                                 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
16673               fi
16674             fi
16675                         additional_includedir=
16676             case "$found_dir" in
16677               */lib | */lib/)
16678                 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
16679                 additional_includedir="$basedir/include"
16680                 ;;
16681             esac
16682             if test "X$additional_includedir" != "X"; then
16683                                                                                                                 if test "X$additional_includedir" != "X/usr/include"; then
16684                 haveit=
16685                 if test "X$additional_includedir" = "X/usr/local/include"; then
16686                   if test -n "$GCC"; then
16687                     case $host_os in
16688                       linux* | gnu* | k*bsd*-gnu) haveit=yes;;
16689                     esac
16690                   fi
16691                 fi
16692                 if test -z "$haveit"; then
16693                   for x in $CPPFLAGS $INCICONV; do
16694
16695   acl_save_prefix="$prefix"
16696   prefix="$acl_final_prefix"
16697   acl_save_exec_prefix="$exec_prefix"
16698   exec_prefix="$acl_final_exec_prefix"
16699   eval x=\"$x\"
16700   exec_prefix="$acl_save_exec_prefix"
16701   prefix="$acl_save_prefix"
16702
16703                     if test "X$x" = "X-I$additional_includedir"; then
16704                       haveit=yes
16705                       break
16706                     fi
16707                   done
16708                   if test -z "$haveit"; then
16709                     if test -d "$additional_includedir"; then
16710                                             INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
16711                     fi
16712                   fi
16713                 fi
16714               fi
16715             fi
16716                         if test -n "$found_la"; then
16717                                                         save_libdir="$libdir"
16718               case "$found_la" in
16719                 */* | *\\*) . "$found_la" ;;
16720                 *) . "./$found_la" ;;
16721               esac
16722               libdir="$save_libdir"
16723                             for dep in $dependency_libs; do
16724                 case "$dep" in
16725                   -L*)
16726                     additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
16727                                                                                                                                                                 if test "X$additional_libdir" != "X/usr/lib"; then
16728                       haveit=
16729                       if test "X$additional_libdir" = "X/usr/local/lib"; then
16730                         if test -n "$GCC"; then
16731                           case $host_os in
16732                             linux* | gnu* | k*bsd*-gnu) haveit=yes;;
16733                           esac
16734                         fi
16735                       fi
16736                       if test -z "$haveit"; then
16737                         haveit=
16738                         for x in $LDFLAGS $LIBICONV; do
16739
16740   acl_save_prefix="$prefix"
16741   prefix="$acl_final_prefix"
16742   acl_save_exec_prefix="$exec_prefix"
16743   exec_prefix="$acl_final_exec_prefix"
16744   eval x=\"$x\"
16745   exec_prefix="$acl_save_exec_prefix"
16746   prefix="$acl_save_prefix"
16747
16748                           if test "X$x" = "X-L$additional_libdir"; then
16749                             haveit=yes
16750                             break
16751                           fi
16752                         done
16753                         if test -z "$haveit"; then
16754                           if test -d "$additional_libdir"; then
16755                                                         LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
16756                           fi
16757                         fi
16758                         haveit=
16759                         for x in $LDFLAGS $LTLIBICONV; do
16760
16761   acl_save_prefix="$prefix"
16762   prefix="$acl_final_prefix"
16763   acl_save_exec_prefix="$exec_prefix"
16764   exec_prefix="$acl_final_exec_prefix"
16765   eval x=\"$x\"
16766   exec_prefix="$acl_save_exec_prefix"
16767   prefix="$acl_save_prefix"
16768
16769                           if test "X$x" = "X-L$additional_libdir"; then
16770                             haveit=yes
16771                             break
16772                           fi
16773                         done
16774                         if test -z "$haveit"; then
16775                           if test -d "$additional_libdir"; then
16776                                                         LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
16777                           fi
16778                         fi
16779                       fi
16780                     fi
16781                     ;;
16782                   -R*)
16783                     dir=`echo "X$dep" | sed -e 's/^X-R//'`
16784                     if test "$enable_rpath" != no; then
16785                                                                   haveit=
16786                       for x in $rpathdirs; do
16787                         if test "X$x" = "X$dir"; then
16788                           haveit=yes
16789                           break
16790                         fi
16791                       done
16792                       if test -z "$haveit"; then
16793                         rpathdirs="$rpathdirs $dir"
16794                       fi
16795                                                                   haveit=
16796                       for x in $ltrpathdirs; do
16797                         if test "X$x" = "X$dir"; then
16798                           haveit=yes
16799                           break
16800                         fi
16801                       done
16802                       if test -z "$haveit"; then
16803                         ltrpathdirs="$ltrpathdirs $dir"
16804                       fi
16805                     fi
16806                     ;;
16807                   -l*)
16808                                         names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
16809                     ;;
16810                   *.la)
16811                                                                                 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
16812                     ;;
16813                   *)
16814                                         LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
16815                     LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
16816                     ;;
16817                 esac
16818               done
16819             fi
16820           else
16821                                                             LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
16822             LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
16823           fi
16824         fi
16825       fi
16826     done
16827   done
16828   if test "X$rpathdirs" != "X"; then
16829     if test -n "$hardcode_libdir_separator"; then
16830                         alldirs=
16831       for found_dir in $rpathdirs; do
16832         alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
16833       done
16834             acl_save_libdir="$libdir"
16835       libdir="$alldirs"
16836       eval flag=\"$hardcode_libdir_flag_spec\"
16837       libdir="$acl_save_libdir"
16838       LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
16839     else
16840             for found_dir in $rpathdirs; do
16841         acl_save_libdir="$libdir"
16842         libdir="$found_dir"
16843         eval flag=\"$hardcode_libdir_flag_spec\"
16844         libdir="$acl_save_libdir"
16845         LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
16846       done
16847     fi
16848   fi
16849   if test "X$ltrpathdirs" != "X"; then
16850             for found_dir in $ltrpathdirs; do
16851       LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
16852     done
16853   fi
16854
16855
16856
16857
16858
16859
16860
16861
16862
16863
16864
16865
16866
16867
16868
16869
16870
16871
16872     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFPreferencesCopyAppValue" >&5
16873 $as_echo_n "checking for CFPreferencesCopyAppValue... " >&6; }
16874 if test "${gt_cv_func_CFPreferencesCopyAppValue+set}" = set; then :
16875   $as_echo_n "(cached) " >&6
16876 else
16877   gt_save_CPPFLAGS="$CPPFLAGS"
16878      CPPFLAGS="$CPPFLAGS -I/System/Library/Frameworks/CoreFoundation.framework/Headers"
16879      gt_save_LIBS="$LIBS"
16880      LIBS="$LIBS -framework CoreFoundation"
16881      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16882 /* end confdefs.h.  */
16883 #include <CFPreferences.h>
16884 int
16885 main ()
16886 {
16887 CFPreferencesCopyAppValue(NULL, NULL)
16888   ;
16889   return 0;
16890 }
16891 _ACEOF
16892 if ac_fn_c_try_link "$LINENO"; then :
16893   gt_cv_func_CFPreferencesCopyAppValue=yes
16894 else
16895   gt_cv_func_CFPreferencesCopyAppValue=no
16896 fi
16897 rm -f core conftest.err conftest.$ac_objext \
16898     conftest$ac_exeext conftest.$ac_ext
16899      CPPFLAGS="$gt_save_CPPFLAGS"
16900      LIBS="$gt_save_LIBS"
16901 fi
16902 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFPreferencesCopyAppValue" >&5
16903 $as_echo "$gt_cv_func_CFPreferencesCopyAppValue" >&6; }
16904   if test $gt_cv_func_CFPreferencesCopyAppValue = yes; then
16905
16906 $as_echo "#define HAVE_CFPREFERENCESCOPYAPPVALUE 1" >>confdefs.h
16907
16908   fi
16909     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFLocaleCopyCurrent" >&5
16910 $as_echo_n "checking for CFLocaleCopyCurrent... " >&6; }
16911 if test "${gt_cv_func_CFLocaleCopyCurrent+set}" = set; then :
16912   $as_echo_n "(cached) " >&6
16913 else
16914   gt_save_CPPFLAGS="$CPPFLAGS"
16915      CPPFLAGS="$CPPFLAGS -I/System/Library/Frameworks/CoreFoundation.framework/Headers"
16916      gt_save_LIBS="$LIBS"
16917      LIBS="$LIBS -framework CoreFoundation"
16918      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16919 /* end confdefs.h.  */
16920 #include <CFLocale.h>
16921 int
16922 main ()
16923 {
16924 CFLocaleCopyCurrent();
16925   ;
16926   return 0;
16927 }
16928 _ACEOF
16929 if ac_fn_c_try_link "$LINENO"; then :
16930   gt_cv_func_CFLocaleCopyCurrent=yes
16931 else
16932   gt_cv_func_CFLocaleCopyCurrent=no
16933 fi
16934 rm -f core conftest.err conftest.$ac_objext \
16935     conftest$ac_exeext conftest.$ac_ext
16936      CPPFLAGS="$gt_save_CPPFLAGS"
16937      LIBS="$gt_save_LIBS"
16938 fi
16939 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFLocaleCopyCurrent" >&5
16940 $as_echo "$gt_cv_func_CFLocaleCopyCurrent" >&6; }
16941   if test $gt_cv_func_CFLocaleCopyCurrent = yes; then
16942
16943 $as_echo "#define HAVE_CFLOCALECOPYCURRENT 1" >>confdefs.h
16944
16945   fi
16946   INTL_MACOSX_LIBS=
16947   if test $gt_cv_func_CFPreferencesCopyAppValue = yes || test $gt_cv_func_CFLocaleCopyCurrent = yes; then
16948     INTL_MACOSX_LIBS="-Wl,-framework -Wl,CoreFoundation"
16949   fi
16950
16951
16952
16953
16954   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
16955 $as_echo_n "checking whether NLS is requested... " >&6; }
16956     # Check whether --enable-nls was given.
16957 if test "${enable_nls+set}" = set; then :
16958   enableval=$enable_nls; USE_NLS=$enableval
16959 else
16960   USE_NLS=yes
16961 fi
16962
16963   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
16964 $as_echo "$USE_NLS" >&6; }
16965
16966
16967
16968
16969   LIBINTL=
16970   LTLIBINTL=
16971   POSUB=
16972
16973     if test "$USE_NLS" = "yes"; then
16974     gt_use_preinstalled_gnugettext=no
16975
16976
16977
16978
16979
16980
16981         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libc" >&5
16982 $as_echo_n "checking for GNU gettext in libc... " >&6; }
16983 if test "${gt_cv_func_gnugettext1_libc+set}" = set; then :
16984   $as_echo_n "(cached) " >&6
16985 else
16986   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16987 /* end confdefs.h.  */
16988 #include <libintl.h>
16989 extern int _nl_msg_cat_cntr;
16990 extern int *_nl_domain_bindings;
16991 int
16992 main ()
16993 {
16994 bindtextdomain ("", "");
16995 return * gettext ("") + _nl_msg_cat_cntr + *_nl_domain_bindings
16996   ;
16997   return 0;
16998 }
16999 _ACEOF
17000 if ac_fn_c_try_link "$LINENO"; then :
17001   gt_cv_func_gnugettext1_libc=yes
17002 else
17003   gt_cv_func_gnugettext1_libc=no
17004 fi
17005 rm -f core conftest.err conftest.$ac_objext \
17006     conftest$ac_exeext conftest.$ac_ext
17007 fi
17008 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_gnugettext1_libc" >&5
17009 $as_echo "$gt_cv_func_gnugettext1_libc" >&6; }
17010
17011         if test "$gt_cv_func_gnugettext1_libc" != "yes"; then
17012
17013
17014
17015
17016
17017           am_save_CPPFLAGS="$CPPFLAGS"
17018
17019   for element in $INCICONV; do
17020     haveit=
17021     for x in $CPPFLAGS; do
17022
17023   acl_save_prefix="$prefix"
17024   prefix="$acl_final_prefix"
17025   acl_save_exec_prefix="$exec_prefix"
17026   exec_prefix="$acl_final_exec_prefix"
17027   eval x=\"$x\"
17028   exec_prefix="$acl_save_exec_prefix"
17029   prefix="$acl_save_prefix"
17030
17031       if test "X$x" = "X$element"; then
17032         haveit=yes
17033         break
17034       fi
17035     done
17036     if test -z "$haveit"; then
17037       CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
17038     fi
17039   done
17040
17041
17042   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5
17043 $as_echo_n "checking for iconv... " >&6; }
17044 if test "${am_cv_func_iconv+set}" = set; then :
17045   $as_echo_n "(cached) " >&6
17046 else
17047
17048     am_cv_func_iconv="no, consider installing GNU libiconv"
17049     am_cv_lib_iconv=no
17050     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17051 /* end confdefs.h.  */
17052 #include <stdlib.h>
17053 #include <iconv.h>
17054 int
17055 main ()
17056 {
17057 iconv_t cd = iconv_open("","");
17058        iconv(cd,NULL,NULL,NULL,NULL);
17059        iconv_close(cd);
17060   ;
17061   return 0;
17062 }
17063 _ACEOF
17064 if ac_fn_c_try_link "$LINENO"; then :
17065   am_cv_func_iconv=yes
17066 fi
17067 rm -f core conftest.err conftest.$ac_objext \
17068     conftest$ac_exeext conftest.$ac_ext
17069     if test "$am_cv_func_iconv" != yes; then
17070       am_save_LIBS="$LIBS"
17071       LIBS="$LIBS $LIBICONV"
17072       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17073 /* end confdefs.h.  */
17074 #include <stdlib.h>
17075 #include <iconv.h>
17076 int
17077 main ()
17078 {
17079 iconv_t cd = iconv_open("","");
17080          iconv(cd,NULL,NULL,NULL,NULL);
17081          iconv_close(cd);
17082   ;
17083   return 0;
17084 }
17085 _ACEOF
17086 if ac_fn_c_try_link "$LINENO"; then :
17087   am_cv_lib_iconv=yes
17088         am_cv_func_iconv=yes
17089 fi
17090 rm -f core conftest.err conftest.$ac_objext \
17091     conftest$ac_exeext conftest.$ac_ext
17092       LIBS="$am_save_LIBS"
17093     fi
17094
17095 fi
17096 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5
17097 $as_echo "$am_cv_func_iconv" >&6; }
17098   if test "$am_cv_func_iconv" = yes; then
17099
17100 $as_echo "#define HAVE_ICONV 1" >>confdefs.h
17101
17102   fi
17103   if test "$am_cv_lib_iconv" = yes; then
17104     { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libiconv" >&5
17105 $as_echo_n "checking how to link with libiconv... " >&6; }
17106     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBICONV" >&5
17107 $as_echo "$LIBICONV" >&6; }
17108   else
17109             CPPFLAGS="$am_save_CPPFLAGS"
17110     LIBICONV=
17111     LTLIBICONV=
17112   fi
17113
17114
17115
17116
17117
17118
17119     use_additional=yes
17120
17121   acl_save_prefix="$prefix"
17122   prefix="$acl_final_prefix"
17123   acl_save_exec_prefix="$exec_prefix"
17124   exec_prefix="$acl_final_exec_prefix"
17125
17126     eval additional_includedir=\"$includedir\"
17127     eval additional_libdir=\"$libdir\"
17128
17129   exec_prefix="$acl_save_exec_prefix"
17130   prefix="$acl_save_prefix"
17131
17132
17133 # Check whether --with-libintl-prefix was given.
17134 if test "${with_libintl_prefix+set}" = set; then :
17135   withval=$with_libintl_prefix;
17136     if test "X$withval" = "Xno"; then
17137       use_additional=no
17138     else
17139       if test "X$withval" = "X"; then
17140
17141   acl_save_prefix="$prefix"
17142   prefix="$acl_final_prefix"
17143   acl_save_exec_prefix="$exec_prefix"
17144   exec_prefix="$acl_final_exec_prefix"
17145
17146           eval additional_includedir=\"$includedir\"
17147           eval additional_libdir=\"$libdir\"
17148
17149   exec_prefix="$acl_save_exec_prefix"
17150   prefix="$acl_save_prefix"
17151
17152       else
17153         additional_includedir="$withval/include"
17154         additional_libdir="$withval/lib"
17155       fi
17156     fi
17157
17158 fi
17159
17160       LIBINTL=
17161   LTLIBINTL=
17162   INCINTL=
17163   rpathdirs=
17164   ltrpathdirs=
17165   names_already_handled=
17166   names_next_round='intl '
17167   while test -n "$names_next_round"; do
17168     names_this_round="$names_next_round"
17169     names_next_round=
17170     for name in $names_this_round; do
17171       already_handled=
17172       for n in $names_already_handled; do
17173         if test "$n" = "$name"; then
17174           already_handled=yes
17175           break
17176         fi
17177       done
17178       if test -z "$already_handled"; then
17179         names_already_handled="$names_already_handled $name"
17180                         uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
17181         eval value=\"\$HAVE_LIB$uppername\"
17182         if test -n "$value"; then
17183           if test "$value" = yes; then
17184             eval value=\"\$LIB$uppername\"
17185             test -z "$value" || LIBINTL="${LIBINTL}${LIBINTL:+ }$value"
17186             eval value=\"\$LTLIB$uppername\"
17187             test -z "$value" || LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$value"
17188           else
17189                                     :
17190           fi
17191         else
17192                               found_dir=
17193           found_la=
17194           found_so=
17195           found_a=
17196           if test $use_additional = yes; then
17197             if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
17198               found_dir="$additional_libdir"
17199               found_so="$additional_libdir/lib$name.$shlibext"
17200               if test -f "$additional_libdir/lib$name.la"; then
17201                 found_la="$additional_libdir/lib$name.la"
17202               fi
17203             else
17204               if test -f "$additional_libdir/lib$name.$libext"; then
17205                 found_dir="$additional_libdir"
17206                 found_a="$additional_libdir/lib$name.$libext"
17207                 if test -f "$additional_libdir/lib$name.la"; then
17208                   found_la="$additional_libdir/lib$name.la"
17209                 fi
17210               fi
17211             fi
17212           fi
17213           if test "X$found_dir" = "X"; then
17214             for x in $LDFLAGS $LTLIBINTL; do
17215
17216   acl_save_prefix="$prefix"
17217   prefix="$acl_final_prefix"
17218   acl_save_exec_prefix="$exec_prefix"
17219   exec_prefix="$acl_final_exec_prefix"
17220   eval x=\"$x\"
17221   exec_prefix="$acl_save_exec_prefix"
17222   prefix="$acl_save_prefix"
17223
17224               case "$x" in
17225                 -L*)
17226                   dir=`echo "X$x" | sed -e 's/^X-L//'`
17227                   if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
17228                     found_dir="$dir"
17229                     found_so="$dir/lib$name.$shlibext"
17230                     if test -f "$dir/lib$name.la"; then
17231                       found_la="$dir/lib$name.la"
17232                     fi
17233                   else
17234                     if test -f "$dir/lib$name.$libext"; then
17235                       found_dir="$dir"
17236                       found_a="$dir/lib$name.$libext"
17237                       if test -f "$dir/lib$name.la"; then
17238                         found_la="$dir/lib$name.la"
17239                       fi
17240                     fi
17241                   fi
17242                   ;;
17243               esac
17244               if test "X$found_dir" != "X"; then
17245                 break
17246               fi
17247             done
17248           fi
17249           if test "X$found_dir" != "X"; then
17250                         LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$found_dir -l$name"
17251             if test "X$found_so" != "X"; then
17252                                                         if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
17253                                 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
17254               else
17255                                                                                 haveit=
17256                 for x in $ltrpathdirs; do
17257                   if test "X$x" = "X$found_dir"; then
17258                     haveit=yes
17259                     break
17260                   fi
17261                 done
17262                 if test -z "$haveit"; then
17263                   ltrpathdirs="$ltrpathdirs $found_dir"
17264                 fi
17265                                 if test "$hardcode_direct" = yes; then
17266                                                       LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
17267                 else
17268                   if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
17269                                                             LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
17270                                                             haveit=
17271                     for x in $rpathdirs; do
17272                       if test "X$x" = "X$found_dir"; then
17273                         haveit=yes
17274                         break
17275                       fi
17276                     done
17277                     if test -z "$haveit"; then
17278                       rpathdirs="$rpathdirs $found_dir"
17279                     fi
17280                   else
17281                                                                                 haveit=
17282                     for x in $LDFLAGS $LIBINTL; do
17283
17284   acl_save_prefix="$prefix"
17285   prefix="$acl_final_prefix"
17286   acl_save_exec_prefix="$exec_prefix"
17287   exec_prefix="$acl_final_exec_prefix"
17288   eval x=\"$x\"
17289   exec_prefix="$acl_save_exec_prefix"
17290   prefix="$acl_save_prefix"
17291
17292                       if test "X$x" = "X-L$found_dir"; then
17293                         haveit=yes
17294                         break
17295                       fi
17296                     done
17297                     if test -z "$haveit"; then
17298                       LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir"
17299                     fi
17300                     if test "$hardcode_minus_L" != no; then
17301                                                                                         LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
17302                     else
17303                                                                                                                                                                                 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
17304                     fi
17305                   fi
17306                 fi
17307               fi
17308             else
17309               if test "X$found_a" != "X"; then
17310                                 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_a"
17311               else
17312                                                 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir -l$name"
17313               fi
17314             fi
17315                         additional_includedir=
17316             case "$found_dir" in
17317               */lib | */lib/)
17318                 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
17319                 additional_includedir="$basedir/include"
17320                 ;;
17321             esac
17322             if test "X$additional_includedir" != "X"; then
17323                                                                                                                 if test "X$additional_includedir" != "X/usr/include"; then
17324                 haveit=
17325                 if test "X$additional_includedir" = "X/usr/local/include"; then
17326                   if test -n "$GCC"; then
17327                     case $host_os in
17328                       linux* | gnu* | k*bsd*-gnu) haveit=yes;;
17329                     esac
17330                   fi
17331                 fi
17332                 if test -z "$haveit"; then
17333                   for x in $CPPFLAGS $INCINTL; do
17334
17335   acl_save_prefix="$prefix"
17336   prefix="$acl_final_prefix"
17337   acl_save_exec_prefix="$exec_prefix"
17338   exec_prefix="$acl_final_exec_prefix"
17339   eval x=\"$x\"
17340   exec_prefix="$acl_save_exec_prefix"
17341   prefix="$acl_save_prefix"
17342
17343                     if test "X$x" = "X-I$additional_includedir"; then
17344                       haveit=yes
17345                       break
17346                     fi
17347                   done
17348                   if test -z "$haveit"; then
17349                     if test -d "$additional_includedir"; then
17350                                             INCINTL="${INCINTL}${INCINTL:+ }-I$additional_includedir"
17351                     fi
17352                   fi
17353                 fi
17354               fi
17355             fi
17356                         if test -n "$found_la"; then
17357                                                         save_libdir="$libdir"
17358               case "$found_la" in
17359                 */* | *\\*) . "$found_la" ;;
17360                 *) . "./$found_la" ;;
17361               esac
17362               libdir="$save_libdir"
17363                             for dep in $dependency_libs; do
17364                 case "$dep" in
17365                   -L*)
17366                     additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
17367                                                                                                                                                                 if test "X$additional_libdir" != "X/usr/lib"; then
17368                       haveit=
17369                       if test "X$additional_libdir" = "X/usr/local/lib"; then
17370                         if test -n "$GCC"; then
17371                           case $host_os in
17372                             linux* | gnu* | k*bsd*-gnu) haveit=yes;;
17373                           esac
17374                         fi
17375                       fi
17376                       if test -z "$haveit"; then
17377                         haveit=
17378                         for x in $LDFLAGS $LIBINTL; do
17379
17380   acl_save_prefix="$prefix"
17381   prefix="$acl_final_prefix"
17382   acl_save_exec_prefix="$exec_prefix"
17383   exec_prefix="$acl_final_exec_prefix"
17384   eval x=\"$x\"
17385   exec_prefix="$acl_save_exec_prefix"
17386   prefix="$acl_save_prefix"
17387
17388                           if test "X$x" = "X-L$additional_libdir"; then
17389                             haveit=yes
17390                             break
17391                           fi
17392                         done
17393                         if test -z "$haveit"; then
17394                           if test -d "$additional_libdir"; then
17395                                                         LIBINTL="${LIBINTL}${LIBINTL:+ }-L$additional_libdir"
17396                           fi
17397                         fi
17398                         haveit=
17399                         for x in $LDFLAGS $LTLIBINTL; do
17400
17401   acl_save_prefix="$prefix"
17402   prefix="$acl_final_prefix"
17403   acl_save_exec_prefix="$exec_prefix"
17404   exec_prefix="$acl_final_exec_prefix"
17405   eval x=\"$x\"
17406   exec_prefix="$acl_save_exec_prefix"
17407   prefix="$acl_save_prefix"
17408
17409                           if test "X$x" = "X-L$additional_libdir"; then
17410                             haveit=yes
17411                             break
17412                           fi
17413                         done
17414                         if test -z "$haveit"; then
17415                           if test -d "$additional_libdir"; then
17416                                                         LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$additional_libdir"
17417                           fi
17418                         fi
17419                       fi
17420                     fi
17421                     ;;
17422                   -R*)
17423                     dir=`echo "X$dep" | sed -e 's/^X-R//'`
17424                     if test "$enable_rpath" != no; then
17425                                                                   haveit=
17426                       for x in $rpathdirs; do
17427                         if test "X$x" = "X$dir"; then
17428                           haveit=yes
17429                           break
17430                         fi
17431                       done
17432                       if test -z "$haveit"; then
17433                         rpathdirs="$rpathdirs $dir"
17434                       fi
17435                                                                   haveit=
17436                       for x in $ltrpathdirs; do
17437                         if test "X$x" = "X$dir"; then
17438                           haveit=yes
17439                           break
17440                         fi
17441                       done
17442                       if test -z "$haveit"; then
17443                         ltrpathdirs="$ltrpathdirs $dir"
17444                       fi
17445                     fi
17446                     ;;
17447                   -l*)
17448                                         names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
17449                     ;;
17450                   *.la)
17451                                                                                 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
17452                     ;;
17453                   *)
17454                                         LIBINTL="${LIBINTL}${LIBINTL:+ }$dep"
17455                     LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$dep"
17456                     ;;
17457                 esac
17458               done
17459             fi
17460           else
17461                                                             LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
17462             LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-l$name"
17463           fi
17464         fi
17465       fi
17466     done
17467   done
17468   if test "X$rpathdirs" != "X"; then
17469     if test -n "$hardcode_libdir_separator"; then
17470                         alldirs=
17471       for found_dir in $rpathdirs; do
17472         alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
17473       done
17474             acl_save_libdir="$libdir"
17475       libdir="$alldirs"
17476       eval flag=\"$hardcode_libdir_flag_spec\"
17477       libdir="$acl_save_libdir"
17478       LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
17479     else
17480             for found_dir in $rpathdirs; do
17481         acl_save_libdir="$libdir"
17482         libdir="$found_dir"
17483         eval flag=\"$hardcode_libdir_flag_spec\"
17484         libdir="$acl_save_libdir"
17485         LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
17486       done
17487     fi
17488   fi
17489   if test "X$ltrpathdirs" != "X"; then
17490             for found_dir in $ltrpathdirs; do
17491       LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-R$found_dir"
17492     done
17493   fi
17494
17495           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libintl" >&5
17496 $as_echo_n "checking for GNU gettext in libintl... " >&6; }
17497 if test "${gt_cv_func_gnugettext1_libintl+set}" = set; then :
17498   $as_echo_n "(cached) " >&6
17499 else
17500   gt_save_CPPFLAGS="$CPPFLAGS"
17501             CPPFLAGS="$CPPFLAGS $INCINTL"
17502             gt_save_LIBS="$LIBS"
17503             LIBS="$LIBS $LIBINTL"
17504                         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17505 /* end confdefs.h.  */
17506 #include <libintl.h>
17507 extern int _nl_msg_cat_cntr;
17508 extern
17509 #ifdef __cplusplus
17510 "C"
17511 #endif
17512 const char *_nl_expand_alias (const char *);
17513 int
17514 main ()
17515 {
17516 bindtextdomain ("", "");
17517 return * gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias ("")
17518   ;
17519   return 0;
17520 }
17521 _ACEOF
17522 if ac_fn_c_try_link "$LINENO"; then :
17523   gt_cv_func_gnugettext1_libintl=yes
17524 else
17525   gt_cv_func_gnugettext1_libintl=no
17526 fi
17527 rm -f core conftest.err conftest.$ac_objext \
17528     conftest$ac_exeext conftest.$ac_ext
17529                         if test "$gt_cv_func_gnugettext1_libintl" != yes && test -n "$LIBICONV"; then
17530               LIBS="$LIBS $LIBICONV"
17531               cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17532 /* end confdefs.h.  */
17533 #include <libintl.h>
17534 extern int _nl_msg_cat_cntr;
17535 extern
17536 #ifdef __cplusplus
17537 "C"
17538 #endif
17539 const char *_nl_expand_alias (const char *);
17540 int
17541 main ()
17542 {
17543 bindtextdomain ("", "");
17544 return * gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias ("")
17545   ;
17546   return 0;
17547 }
17548 _ACEOF
17549 if ac_fn_c_try_link "$LINENO"; then :
17550   LIBINTL="$LIBINTL $LIBICONV"
17551                 LTLIBINTL="$LTLIBINTL $LTLIBICONV"
17552                 gt_cv_func_gnugettext1_libintl=yes
17553
17554 fi
17555 rm -f core conftest.err conftest.$ac_objext \
17556     conftest$ac_exeext conftest.$ac_ext
17557             fi
17558             CPPFLAGS="$gt_save_CPPFLAGS"
17559             LIBS="$gt_save_LIBS"
17560 fi
17561 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_gnugettext1_libintl" >&5
17562 $as_echo "$gt_cv_func_gnugettext1_libintl" >&6; }
17563         fi
17564
17565                                         if test "$gt_cv_func_gnugettext1_libc" = "yes" \
17566            || { test "$gt_cv_func_gnugettext1_libintl" = "yes" \
17567                 && test "$PACKAGE" != gettext-runtime \
17568                 && test "$PACKAGE" != gettext-tools; }; then
17569           gt_use_preinstalled_gnugettext=yes
17570         else
17571                     LIBINTL=
17572           LTLIBINTL=
17573           INCINTL=
17574         fi
17575
17576
17577
17578     if test -n "$INTL_MACOSX_LIBS"; then
17579       if test "$gt_use_preinstalled_gnugettext" = "yes" \
17580          || test "$nls_cv_use_gnu_gettext" = "yes"; then
17581                 LIBINTL="$LIBINTL $INTL_MACOSX_LIBS"
17582         LTLIBINTL="$LTLIBINTL $INTL_MACOSX_LIBS"
17583       fi
17584     fi
17585
17586     if test "$gt_use_preinstalled_gnugettext" = "yes" \
17587        || test "$nls_cv_use_gnu_gettext" = "yes"; then
17588
17589 $as_echo "#define ENABLE_NLS 1" >>confdefs.h
17590
17591     else
17592       USE_NLS=no
17593     fi
17594   fi
17595
17596   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use NLS" >&5
17597 $as_echo_n "checking whether to use NLS... " >&6; }
17598   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
17599 $as_echo "$USE_NLS" >&6; }
17600   if test "$USE_NLS" = "yes"; then
17601     { $as_echo "$as_me:${as_lineno-$LINENO}: checking where the gettext function comes from" >&5
17602 $as_echo_n "checking where the gettext function comes from... " >&6; }
17603     if test "$gt_use_preinstalled_gnugettext" = "yes"; then
17604       if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
17605         gt_source="external libintl"
17606       else
17607         gt_source="libc"
17608       fi
17609     else
17610       gt_source="included intl directory"
17611     fi
17612     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_source" >&5
17613 $as_echo "$gt_source" >&6; }
17614   fi
17615
17616   if test "$USE_NLS" = "yes"; then
17617
17618     if test "$gt_use_preinstalled_gnugettext" = "yes"; then
17619       if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
17620         { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libintl" >&5
17621 $as_echo_n "checking how to link with libintl... " >&6; }
17622         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBINTL" >&5
17623 $as_echo "$LIBINTL" >&6; }
17624
17625   for element in $INCINTL; do
17626     haveit=
17627     for x in $CPPFLAGS; do
17628
17629   acl_save_prefix="$prefix"
17630   prefix="$acl_final_prefix"
17631   acl_save_exec_prefix="$exec_prefix"
17632   exec_prefix="$acl_final_exec_prefix"
17633   eval x=\"$x\"
17634   exec_prefix="$acl_save_exec_prefix"
17635   prefix="$acl_save_prefix"
17636
17637       if test "X$x" = "X$element"; then
17638         haveit=yes
17639         break
17640       fi
17641     done
17642     if test -z "$haveit"; then
17643       CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
17644     fi
17645   done
17646
17647       fi
17648
17649
17650 $as_echo "#define HAVE_GETTEXT 1" >>confdefs.h
17651
17652
17653 $as_echo "#define HAVE_DCGETTEXT 1" >>confdefs.h
17654
17655     fi
17656
17657         POSUB=po
17658   fi
17659
17660
17661
17662     INTLLIBS="$LIBINTL"
17663
17664
17665
17666
17667
17668
17669
17670 os_name=`uname -s 2>/dev/null`
17671 if test x${prefix} = xNONE ; then
17672    if test `eval echo ${sysconfdir}` = NONE/etc ; then
17673       sysconfdir=/etc/bacula
17674    fi
17675
17676    if test `eval echo ${libdir}` = NONE/lib ; then
17677       case ${os_name} in
17678       Linux)
17679          os_processor=`uname -p 2>/dev/null`
17680          case ${os_processor} in
17681          x86_64)
17682             libdir=/usr/lib64
17683             ;;
17684          *)
17685             libdir=/usr/lib
17686             ;;
17687          esac
17688          ;;
17689       *)
17690          libdir=/usr/lib
17691          ;;
17692       esac
17693    fi
17694
17695    if test `eval echo ${includedir}` = NONE/include ; then
17696       includedir=/usr/include
17697    fi
17698
17699    if test `eval echo ${datarootdir}` = NONE/share ; then
17700       datarootdir=/usr/share
17701    fi
17702    prefix=
17703 fi
17704
17705 if test x${exec_prefix} = xNONE ; then
17706    exec_prefix=${prefix}
17707 fi
17708
17709 sysconfdir=`eval echo ${sysconfdir}`
17710 datarootdir=`eval echo ${datarootdir}`
17711 docdir=`eval echo ${docdir}`
17712 htmldir=`eval echo ${htmldir}`
17713 libdir=`eval echo ${libdir}`
17714 includedir=`eval echo ${includedir}`
17715 localedir=`eval echo ${datarootdir}/locale`
17716 cat >>confdefs.h <<_ACEOF
17717 #define SYSCONFDIR "$sysconfdir"
17718 _ACEOF
17719
17720 cat >>confdefs.h <<_ACEOF
17721 #define LOCALEDIR "$localedir"
17722 _ACEOF
17723
17724
17725 if test x$sbindir = x'${exec_prefix}/sbin' ; then
17726    sbindir=${exec_prefix}/sbin
17727 fi
17728 sbindir=`eval echo ${sbindir}`
17729
17730 if test x$mandir = x'${prefix}/man' ; then
17731    mandir=/usr/share/man
17732 fi
17733
17734 if test x$htmldir = x${docdir} ; then
17735    htmldir=`eval echo ${docdir}bacula/html`
17736 fi
17737
17738 if test x$docdir = x'/usr/share/doc/' ; then
17739    docdir=`eval echo ${docdir}bacula`
17740 fi
17741
17742
17743 for ac_prog in msgfmt
17744 do
17745   # Extract the first word of "$ac_prog", so it can be a program name with args.
17746 set dummy $ac_prog; ac_word=$2
17747 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17748 $as_echo_n "checking for $ac_word... " >&6; }
17749 if test "${ac_cv_path_MSGFMT+set}" = set; then :
17750   $as_echo_n "(cached) " >&6
17751 else
17752   case $MSGFMT in
17753   [\\/]* | ?:[\\/]*)
17754   ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
17755   ;;
17756   *)
17757   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17758 for as_dir in $PATH
17759 do
17760   IFS=$as_save_IFS
17761   test -z "$as_dir" && as_dir=.
17762     for ac_exec_ext in '' $ac_executable_extensions; do
17763   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
17764     ac_cv_path_MSGFMT="$as_dir/$ac_word$ac_exec_ext"
17765     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17766     break 2
17767   fi
17768 done
17769   done
17770 IFS=$as_save_IFS
17771
17772   ;;
17773 esac
17774 fi
17775 MSGFMT=$ac_cv_path_MSGFMT
17776 if test -n "$MSGFMT"; then
17777   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGFMT" >&5
17778 $as_echo "$MSGFMT" >&6; }
17779 else
17780   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17781 $as_echo "no" >&6; }
17782 fi
17783
17784
17785   test -n "$MSGFMT" && break
17786 done
17787 test -n "$MSGFMT" || MSGFMT="no"
17788
17789 if test "$MSGFMT" = "no"
17790 then
17791    echo 'msgfmt program not found, disabling NLS !'
17792    USE_NLS=no
17793    USE_INCLUDED_LIBINTL=no
17794 #else
17795
17796     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C Library 2 or newer" >&5
17797 $as_echo_n "checking whether we are using the GNU C Library 2 or newer... " >&6; }
17798 if test "${ac_cv_gnu_library_2+set}" = set; then :
17799   $as_echo_n "(cached) " >&6
17800 else
17801   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17802 /* end confdefs.h.  */
17803
17804 #include <features.h>
17805 #ifdef __GNU_LIBRARY__
17806  #if (__GLIBC__ >= 2)
17807   Lucky GNU user
17808  #endif
17809 #endif
17810
17811 _ACEOF
17812 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
17813   $EGREP "Lucky GNU user" >/dev/null 2>&1; then :
17814   ac_cv_gnu_library_2=yes
17815 else
17816   ac_cv_gnu_library_2=no
17817 fi
17818 rm -f conftest*
17819
17820
17821
17822 fi
17823 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_gnu_library_2" >&5
17824 $as_echo "$ac_cv_gnu_library_2" >&6; }
17825
17826     GLIBC2="$ac_cv_gnu_library_2"
17827
17828
17829 if test -n "$ac_tool_prefix"; then
17830   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
17831 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
17832 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17833 $as_echo_n "checking for $ac_word... " >&6; }
17834 if test "${ac_cv_prog_RANLIB+set}" = set; then :
17835   $as_echo_n "(cached) " >&6
17836 else
17837   if test -n "$RANLIB"; then
17838   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
17839 else
17840 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17841 for as_dir in $PATH
17842 do
17843   IFS=$as_save_IFS
17844   test -z "$as_dir" && as_dir=.
17845     for ac_exec_ext in '' $ac_executable_extensions; do
17846   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
17847     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
17848     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17849     break 2
17850   fi
17851 done
17852   done
17853 IFS=$as_save_IFS
17854
17855 fi
17856 fi
17857 RANLIB=$ac_cv_prog_RANLIB
17858 if test -n "$RANLIB"; then
17859   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
17860 $as_echo "$RANLIB" >&6; }
17861 else
17862   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17863 $as_echo "no" >&6; }
17864 fi
17865
17866
17867 fi
17868 if test -z "$ac_cv_prog_RANLIB"; then
17869   ac_ct_RANLIB=$RANLIB
17870   # Extract the first word of "ranlib", so it can be a program name with args.
17871 set dummy ranlib; ac_word=$2
17872 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17873 $as_echo_n "checking for $ac_word... " >&6; }
17874 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
17875   $as_echo_n "(cached) " >&6
17876 else
17877   if test -n "$ac_ct_RANLIB"; then
17878   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
17879 else
17880 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17881 for as_dir in $PATH
17882 do
17883   IFS=$as_save_IFS
17884   test -z "$as_dir" && as_dir=.
17885     for ac_exec_ext in '' $ac_executable_extensions; do
17886   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
17887     ac_cv_prog_ac_ct_RANLIB="ranlib"
17888     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17889     break 2
17890   fi
17891 done
17892   done
17893 IFS=$as_save_IFS
17894
17895 fi
17896 fi
17897 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
17898 if test -n "$ac_ct_RANLIB"; then
17899   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
17900 $as_echo "$ac_ct_RANLIB" >&6; }
17901 else
17902   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17903 $as_echo "no" >&6; }
17904 fi
17905
17906   if test "x$ac_ct_RANLIB" = x; then
17907     RANLIB=":"
17908   else
17909     case $cross_compiling:$ac_tool_warned in
17910 yes:)
17911 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
17912 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
17913 ac_tool_warned=yes ;;
17914 esac
17915     RANLIB=$ac_ct_RANLIB
17916   fi
17917 else
17918   RANLIB="$ac_cv_prog_RANLIB"
17919 fi
17920
17921
17922         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for strerror in -lcposix" >&5
17923 $as_echo_n "checking for strerror in -lcposix... " >&6; }
17924 if test "${ac_cv_lib_cposix_strerror+set}" = set; then :
17925   $as_echo_n "(cached) " >&6
17926 else
17927   ac_check_lib_save_LIBS=$LIBS
17928 LIBS="-lcposix  $LIBS"
17929 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17930 /* end confdefs.h.  */
17931
17932 /* Override any GCC internal prototype to avoid an error.
17933    Use char because int might match the return type of a GCC
17934    builtin and then its argument prototype would still apply.  */
17935 #ifdef __cplusplus
17936 extern "C"
17937 #endif
17938 char strerror ();
17939 int
17940 main ()
17941 {
17942 return strerror ();
17943   ;
17944   return 0;
17945 }
17946 _ACEOF
17947 if ac_fn_c_try_link "$LINENO"; then :
17948   ac_cv_lib_cposix_strerror=yes
17949 else
17950   ac_cv_lib_cposix_strerror=no
17951 fi
17952 rm -f core conftest.err conftest.$ac_objext \
17953     conftest$ac_exeext conftest.$ac_ext
17954 LIBS=$ac_check_lib_save_LIBS
17955 fi
17956 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_cposix_strerror" >&5
17957 $as_echo "$ac_cv_lib_cposix_strerror" >&6; }
17958 if test "x$ac_cv_lib_cposix_strerror" = x""yes; then :
17959   LIBS="$LIBS -lcposix"
17960 fi
17961
17962
17963
17964 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
17965 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
17966 if test "${ac_cv_c_const+set}" = set; then :
17967   $as_echo_n "(cached) " >&6
17968 else
17969   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17970 /* end confdefs.h.  */
17971
17972 int
17973 main ()
17974 {
17975 /* FIXME: Include the comments suggested by Paul. */
17976 #ifndef __cplusplus
17977   /* Ultrix mips cc rejects this.  */
17978   typedef int charset[2];
17979   const charset cs;
17980   /* SunOS 4.1.1 cc rejects this.  */
17981   char const *const *pcpcc;
17982   char **ppc;
17983   /* NEC SVR4.0.2 mips cc rejects this.  */
17984   struct point {int x, y;};
17985   static struct point const zero = {0,0};
17986   /* AIX XL C 1.02.0.0 rejects this.
17987      It does not let you subtract one const X* pointer from another in
17988      an arm of an if-expression whose if-part is not a constant
17989      expression */
17990   const char *g = "string";
17991   pcpcc = &g + (g ? g-g : 0);
17992   /* HPUX 7.0 cc rejects these. */
17993   ++pcpcc;
17994   ppc = (char**) pcpcc;
17995   pcpcc = (char const *const *) ppc;
17996   { /* SCO 3.2v4 cc rejects this.  */
17997     char *t;
17998     char const *s = 0 ? (char *) 0 : (char const *) 0;
17999
18000     *t++ = 0;
18001     if (s) return 0;
18002   }
18003   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
18004     int x[] = {25, 17};
18005     const int *foo = &x[0];
18006     ++foo;
18007   }
18008   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
18009     typedef const int *iptr;
18010     iptr p = 0;
18011     ++p;
18012   }
18013   { /* AIX XL C 1.02.0.0 rejects this saying
18014        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
18015     struct s { int j; const int *ap[3]; };
18016     struct s *b; b->j = 5;
18017   }
18018   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
18019     const int foo = 10;
18020     if (!foo) return 0;
18021   }
18022   return !cs[0] && !zero.x;
18023 #endif
18024
18025   ;
18026   return 0;
18027 }
18028 _ACEOF
18029 if ac_fn_c_try_compile "$LINENO"; then :
18030   ac_cv_c_const=yes
18031 else
18032   ac_cv_c_const=no
18033 fi
18034 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18035 fi
18036 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
18037 $as_echo "$ac_cv_c_const" >&6; }
18038 if test $ac_cv_c_const = no; then
18039
18040 $as_echo "#define const /**/" >>confdefs.h
18041
18042 fi
18043
18044
18045   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for signed" >&5
18046 $as_echo_n "checking for signed... " >&6; }
18047 if test "${bh_cv_c_signed+set}" = set; then :
18048   $as_echo_n "(cached) " >&6
18049 else
18050   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18051 /* end confdefs.h.  */
18052
18053 int
18054 main ()
18055 {
18056 signed char x;
18057   ;
18058   return 0;
18059 }
18060 _ACEOF
18061 if ac_fn_c_try_compile "$LINENO"; then :
18062   bh_cv_c_signed=yes
18063 else
18064   bh_cv_c_signed=no
18065 fi
18066 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18067 fi
18068 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bh_cv_c_signed" >&5
18069 $as_echo "$bh_cv_c_signed" >&6; }
18070   if test $bh_cv_c_signed = no; then
18071
18072 $as_echo "#define signed /**/" >>confdefs.h
18073
18074   fi
18075
18076 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
18077 $as_echo_n "checking for inline... " >&6; }
18078 if test "${ac_cv_c_inline+set}" = set; then :
18079   $as_echo_n "(cached) " >&6
18080 else
18081   ac_cv_c_inline=no
18082 for ac_kw in inline __inline__ __inline; do
18083   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18084 /* end confdefs.h.  */
18085 #ifndef __cplusplus
18086 typedef int foo_t;
18087 static $ac_kw foo_t static_foo () {return 0; }
18088 $ac_kw foo_t foo () {return 0; }
18089 #endif
18090
18091 _ACEOF
18092 if ac_fn_c_try_compile "$LINENO"; then :
18093   ac_cv_c_inline=$ac_kw
18094 fi
18095 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18096   test "$ac_cv_c_inline" != no && break
18097 done
18098
18099 fi
18100 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
18101 $as_echo "$ac_cv_c_inline" >&6; }
18102
18103 case $ac_cv_c_inline in
18104   inline | yes) ;;
18105   *)
18106     case $ac_cv_c_inline in
18107       no) ac_val=;;
18108       *) ac_val=$ac_cv_c_inline;;
18109     esac
18110     cat >>confdefs.h <<_ACEOF
18111 #ifndef __cplusplus
18112 #define inline $ac_val
18113 #endif
18114 _ACEOF
18115     ;;
18116 esac
18117
18118 ac_fn_c_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default"
18119 if test "x$ac_cv_type_off_t" = x""yes; then :
18120
18121 else
18122
18123 cat >>confdefs.h <<_ACEOF
18124 #define off_t long int
18125 _ACEOF
18126
18127 fi
18128
18129 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
18130 if test "x$ac_cv_type_size_t" = x""yes; then :
18131
18132 else
18133
18134 cat >>confdefs.h <<_ACEOF
18135 #define size_t unsigned int
18136 _ACEOF
18137
18138 fi
18139
18140
18141   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long" >&5
18142 $as_echo_n "checking for long long... " >&6; }
18143 if test "${ac_cv_type_long_long+set}" = set; then :
18144   $as_echo_n "(cached) " >&6
18145 else
18146   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18147 /* end confdefs.h.  */
18148 long long ll = 1LL; int i = 63;
18149 int
18150 main ()
18151 {
18152 long long llmax = (long long) -1;
18153      return ll << i | ll >> i | llmax / ll | llmax % ll;
18154   ;
18155   return 0;
18156 }
18157 _ACEOF
18158 if ac_fn_c_try_link "$LINENO"; then :
18159   ac_cv_type_long_long=yes
18160 else
18161   ac_cv_type_long_long=no
18162 fi
18163 rm -f core conftest.err conftest.$ac_objext \
18164     conftest$ac_exeext conftest.$ac_ext
18165 fi
18166 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_long" >&5
18167 $as_echo "$ac_cv_type_long_long" >&6; }
18168   if test $ac_cv_type_long_long = yes; then
18169
18170 $as_echo "#define HAVE_LONG_LONG 1" >>confdefs.h
18171
18172   fi
18173
18174
18175   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long double" >&5
18176 $as_echo_n "checking for long double... " >&6; }
18177 if test "${gt_cv_c_long_double+set}" = set; then :
18178   $as_echo_n "(cached) " >&6
18179 else
18180   if test "$GCC" = yes; then
18181        gt_cv_c_long_double=yes
18182      else
18183        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18184 /* end confdefs.h.  */
18185
18186          /* The Stardent Vistra knows sizeof(long double), but does not support it.  */
18187          long double foo = 0.0;
18188          /* On Ultrix 4.3 cc, long double is 4 and double is 8.  */
18189          int array [2*(sizeof(long double) >= sizeof(double)) - 1];
18190
18191 int
18192 main ()
18193 {
18194
18195   ;
18196   return 0;
18197 }
18198 _ACEOF
18199 if ac_fn_c_try_compile "$LINENO"; then :
18200   gt_cv_c_long_double=yes
18201 else
18202   gt_cv_c_long_double=no
18203 fi
18204 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18205      fi
18206 fi
18207 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_long_double" >&5
18208 $as_echo "$gt_cv_c_long_double" >&6; }
18209   if test $gt_cv_c_long_double = yes; then
18210
18211 $as_echo "#define HAVE_LONG_DOUBLE 1" >>confdefs.h
18212
18213   fi
18214
18215
18216   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wchar_t" >&5
18217 $as_echo_n "checking for wchar_t... " >&6; }
18218 if test "${gt_cv_c_wchar_t+set}" = set; then :
18219   $as_echo_n "(cached) " >&6
18220 else
18221   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18222 /* end confdefs.h.  */
18223 #include <stddef.h>
18224        wchar_t foo = (wchar_t)'\0';
18225 int
18226 main ()
18227 {
18228
18229   ;
18230   return 0;
18231 }
18232 _ACEOF
18233 if ac_fn_c_try_compile "$LINENO"; then :
18234   gt_cv_c_wchar_t=yes
18235 else
18236   gt_cv_c_wchar_t=no
18237 fi
18238 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18239 fi
18240 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_wchar_t" >&5
18241 $as_echo "$gt_cv_c_wchar_t" >&6; }
18242   if test $gt_cv_c_wchar_t = yes; then
18243
18244 $as_echo "#define HAVE_WCHAR_T 1" >>confdefs.h
18245
18246   fi
18247
18248
18249   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wint_t" >&5
18250 $as_echo_n "checking for wint_t... " >&6; }
18251 if test "${gt_cv_c_wint_t+set}" = set; then :
18252   $as_echo_n "(cached) " >&6
18253 else
18254   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18255 /* end confdefs.h.  */
18256 #include <wchar.h>
18257        wint_t foo = (wchar_t)'\0';
18258 int
18259 main ()
18260 {
18261
18262   ;
18263   return 0;
18264 }
18265 _ACEOF
18266 if ac_fn_c_try_compile "$LINENO"; then :
18267   gt_cv_c_wint_t=yes
18268 else
18269   gt_cv_c_wint_t=no
18270 fi
18271 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18272 fi
18273 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_wint_t" >&5
18274 $as_echo "$gt_cv_c_wint_t" >&6; }
18275   if test $gt_cv_c_wint_t = yes; then
18276
18277 $as_echo "#define HAVE_WINT_T 1" >>confdefs.h
18278
18279   fi
18280
18281
18282   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inttypes.h" >&5
18283 $as_echo_n "checking for inttypes.h... " >&6; }
18284 if test "${gl_cv_header_inttypes_h+set}" = set; then :
18285   $as_echo_n "(cached) " >&6
18286 else
18287   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18288 /* end confdefs.h.  */
18289 #include <sys/types.h>
18290 #include <inttypes.h>
18291 int
18292 main ()
18293 {
18294 uintmax_t i = (uintmax_t) -1;
18295   ;
18296   return 0;
18297 }
18298 _ACEOF
18299 if ac_fn_c_try_compile "$LINENO"; then :
18300   gl_cv_header_inttypes_h=yes
18301 else
18302   gl_cv_header_inttypes_h=no
18303 fi
18304 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18305 fi
18306 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_inttypes_h" >&5
18307 $as_echo "$gl_cv_header_inttypes_h" >&6; }
18308   if test $gl_cv_header_inttypes_h = yes; then
18309
18310 cat >>confdefs.h <<_ACEOF
18311 #define HAVE_INTTYPES_H_WITH_UINTMAX 1
18312 _ACEOF
18313
18314   fi
18315
18316
18317   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdint.h" >&5
18318 $as_echo_n "checking for stdint.h... " >&6; }
18319 if test "${gl_cv_header_stdint_h+set}" = set; then :
18320   $as_echo_n "(cached) " >&6
18321 else
18322   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18323 /* end confdefs.h.  */
18324 #include <sys/types.h>
18325 #include <stdint.h>
18326 int
18327 main ()
18328 {
18329 uintmax_t i = (uintmax_t) -1;
18330   ;
18331   return 0;
18332 }
18333 _ACEOF
18334 if ac_fn_c_try_compile "$LINENO"; then :
18335   gl_cv_header_stdint_h=yes
18336 else
18337   gl_cv_header_stdint_h=no
18338 fi
18339 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18340 fi
18341 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_stdint_h" >&5
18342 $as_echo "$gl_cv_header_stdint_h" >&6; }
18343   if test $gl_cv_header_stdint_h = yes; then
18344
18345 cat >>confdefs.h <<_ACEOF
18346 #define HAVE_STDINT_H_WITH_UINTMAX 1
18347 _ACEOF
18348
18349   fi
18350
18351
18352
18353
18354   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for intmax_t" >&5
18355 $as_echo_n "checking for intmax_t... " >&6; }
18356 if test "${gt_cv_c_intmax_t+set}" = set; then :
18357   $as_echo_n "(cached) " >&6
18358 else
18359   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18360 /* end confdefs.h.  */
18361
18362 #include <stddef.h>
18363 #include <stdlib.h>
18364 #if HAVE_STDINT_H_WITH_UINTMAX
18365 #include <stdint.h>
18366 #endif
18367 #if HAVE_INTTYPES_H_WITH_UINTMAX
18368 #include <inttypes.h>
18369 #endif
18370
18371 int
18372 main ()
18373 {
18374 intmax_t x = -1;
18375   ;
18376   return 0;
18377 }
18378 _ACEOF
18379 if ac_fn_c_try_compile "$LINENO"; then :
18380   gt_cv_c_intmax_t=yes
18381 else
18382   gt_cv_c_intmax_t=no
18383 fi
18384 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18385 fi
18386 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_intmax_t" >&5
18387 $as_echo "$gt_cv_c_intmax_t" >&6; }
18388   if test $gt_cv_c_intmax_t = yes; then
18389
18390 $as_echo "#define HAVE_INTMAX_T 1" >>confdefs.h
18391
18392   fi
18393
18394
18395
18396   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether printf() supports POSIX/XSI format strings" >&5
18397 $as_echo_n "checking whether printf() supports POSIX/XSI format strings... " >&6; }
18398 if test "${gt_cv_func_printf_posix+set}" = set; then :
18399   $as_echo_n "(cached) " >&6
18400 else
18401
18402       if test "$cross_compiling" = yes; then :
18403
18404         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18405 /* end confdefs.h.  */
18406
18407 #if defined __NetBSD__ || defined _MSC_VER || defined __MINGW32__ || defined __CYGWIN__
18408   notposix
18409 #endif
18410
18411 _ACEOF
18412 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
18413   $EGREP "notposix" >/dev/null 2>&1; then :
18414   gt_cv_func_printf_posix="guessing no"
18415 else
18416   gt_cv_func_printf_posix="guessing yes"
18417 fi
18418 rm -f conftest*
18419
18420
18421 else
18422   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18423 /* end confdefs.h.  */
18424
18425 #include <stdio.h>
18426 #include <string.h>
18427 /* The string "%2$d %1$d", with dollar characters protected from the shell's
18428    dollar expansion (possibly an autoconf bug).  */
18429 static char format[] = { '%', '2', '$', 'd', ' ', '%', '1', '$', 'd', '\0' };
18430 static char buf[100];
18431 int main ()
18432 {
18433   sprintf (buf, format, 33, 55);
18434   return (strcmp (buf, "55 33") != 0);
18435 }
18436 _ACEOF
18437 if ac_fn_c_try_run "$LINENO"; then :
18438   gt_cv_func_printf_posix=yes
18439 else
18440   gt_cv_func_printf_posix=no
18441 fi
18442 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
18443   conftest.$ac_objext conftest.beam conftest.$ac_ext
18444 fi
18445
18446
18447 fi
18448 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_printf_posix" >&5
18449 $as_echo "$gt_cv_func_printf_posix" >&6; }
18450   case $gt_cv_func_printf_posix in
18451     *yes)
18452
18453 $as_echo "#define HAVE_POSIX_PRINTF 1" >>confdefs.h
18454
18455       ;;
18456   esac
18457
18458 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
18459 # for constant arguments.  Useless!
18460 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5
18461 $as_echo_n "checking for working alloca.h... " >&6; }
18462 if test "${ac_cv_working_alloca_h+set}" = set; then :
18463   $as_echo_n "(cached) " >&6
18464 else
18465   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18466 /* end confdefs.h.  */
18467 #include <alloca.h>
18468 int
18469 main ()
18470 {
18471 char *p = (char *) alloca (2 * sizeof (int));
18472                           if (p) return 0;
18473   ;
18474   return 0;
18475 }
18476 _ACEOF
18477 if ac_fn_c_try_link "$LINENO"; then :
18478   ac_cv_working_alloca_h=yes
18479 else
18480   ac_cv_working_alloca_h=no
18481 fi
18482 rm -f core conftest.err conftest.$ac_objext \
18483     conftest$ac_exeext conftest.$ac_ext
18484 fi
18485 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5
18486 $as_echo "$ac_cv_working_alloca_h" >&6; }
18487 if test $ac_cv_working_alloca_h = yes; then
18488
18489 $as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h
18490
18491 fi
18492
18493 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5
18494 $as_echo_n "checking for alloca... " >&6; }
18495 if test "${ac_cv_func_alloca_works+set}" = set; then :
18496   $as_echo_n "(cached) " >&6
18497 else
18498   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18499 /* end confdefs.h.  */
18500 #ifdef __GNUC__
18501 # define alloca __builtin_alloca
18502 #else
18503 # ifdef _MSC_VER
18504 #  include <malloc.h>
18505 #  define alloca _alloca
18506 # else
18507 #  ifdef HAVE_ALLOCA_H
18508 #   include <alloca.h>
18509 #  else
18510 #   ifdef _AIX
18511  #pragma alloca
18512 #   else
18513 #    ifndef alloca /* predefined by HP cc +Olibcalls */
18514 char *alloca ();
18515 #    endif
18516 #   endif
18517 #  endif
18518 # endif
18519 #endif
18520
18521 int
18522 main ()
18523 {
18524 char *p = (char *) alloca (1);
18525                                     if (p) return 0;
18526   ;
18527   return 0;
18528 }
18529 _ACEOF
18530 if ac_fn_c_try_link "$LINENO"; then :
18531   ac_cv_func_alloca_works=yes
18532 else
18533   ac_cv_func_alloca_works=no
18534 fi
18535 rm -f core conftest.err conftest.$ac_objext \
18536     conftest$ac_exeext conftest.$ac_ext
18537 fi
18538 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5
18539 $as_echo "$ac_cv_func_alloca_works" >&6; }
18540
18541 if test $ac_cv_func_alloca_works = yes; then
18542
18543 $as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
18544
18545 else
18546   # The SVR3 libPW and SVR4 libucb both contain incompatible functions
18547 # that cause trouble.  Some versions do not even contain alloca or
18548 # contain a buggy version.  If you still want to use their alloca,
18549 # use ar to extract alloca.o from them instead of compiling alloca.c.
18550
18551 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
18552
18553 $as_echo "#define C_ALLOCA 1" >>confdefs.h
18554
18555
18556 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether \`alloca.c' needs Cray hooks" >&5
18557 $as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; }
18558 if test "${ac_cv_os_cray+set}" = set; then :
18559   $as_echo_n "(cached) " >&6
18560 else
18561   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18562 /* end confdefs.h.  */
18563 #if defined CRAY && ! defined CRAY2
18564 webecray
18565 #else
18566 wenotbecray
18567 #endif
18568
18569 _ACEOF
18570 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
18571   $EGREP "webecray" >/dev/null 2>&1; then :
18572   ac_cv_os_cray=yes
18573 else
18574   ac_cv_os_cray=no
18575 fi
18576 rm -f conftest*
18577
18578 fi
18579 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5
18580 $as_echo "$ac_cv_os_cray" >&6; }
18581 if test $ac_cv_os_cray = yes; then
18582   for ac_func in _getb67 GETB67 getb67; do
18583     as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
18584 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
18585 eval as_val=\$$as_ac_var
18586    if test "x$as_val" = x""yes; then :
18587
18588 cat >>confdefs.h <<_ACEOF
18589 #define CRAY_STACKSEG_END $ac_func
18590 _ACEOF
18591
18592     break
18593 fi
18594
18595   done
18596 fi
18597
18598 { $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5
18599 $as_echo_n "checking stack direction for C alloca... " >&6; }
18600 if test "${ac_cv_c_stack_direction+set}" = set; then :
18601   $as_echo_n "(cached) " >&6
18602 else
18603   if test "$cross_compiling" = yes; then :
18604   ac_cv_c_stack_direction=0
18605 else
18606   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18607 /* end confdefs.h.  */
18608 $ac_includes_default
18609 int
18610 find_stack_direction ()
18611 {
18612   static char *addr = 0;
18613   auto char dummy;
18614   if (addr == 0)
18615     {
18616       addr = &dummy;
18617       return find_stack_direction ();
18618     }
18619   else
18620     return (&dummy > addr) ? 1 : -1;
18621 }
18622
18623 int
18624 main ()
18625 {
18626   return find_stack_direction () < 0;
18627 }
18628 _ACEOF
18629 if ac_fn_c_try_run "$LINENO"; then :
18630   ac_cv_c_stack_direction=1
18631 else
18632   ac_cv_c_stack_direction=-1
18633 fi
18634 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
18635   conftest.$ac_objext conftest.beam conftest.$ac_ext
18636 fi
18637
18638 fi
18639 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5
18640 $as_echo "$ac_cv_c_stack_direction" >&6; }
18641 cat >>confdefs.h <<_ACEOF
18642 #define STACK_DIRECTION $ac_cv_c_stack_direction
18643 _ACEOF
18644
18645
18646 fi
18647
18648
18649
18650
18651   for ac_header in $ac_header_list
18652 do :
18653   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
18654 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
18655 "
18656 eval as_val=\$$as_ac_Header
18657    if test "x$as_val" = x""yes; then :
18658   cat >>confdefs.h <<_ACEOF
18659 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
18660 _ACEOF
18661
18662 fi
18663
18664 done
18665
18666
18667
18668
18669
18670
18671
18672
18673 for ac_func in getpagesize
18674 do :
18675   ac_fn_c_check_func "$LINENO" "getpagesize" "ac_cv_func_getpagesize"
18676 if test "x$ac_cv_func_getpagesize" = x""yes; then :
18677   cat >>confdefs.h <<_ACEOF
18678 #define HAVE_GETPAGESIZE 1
18679 _ACEOF
18680
18681 fi
18682 done
18683
18684 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap" >&5
18685 $as_echo_n "checking for working mmap... " >&6; }
18686 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then :
18687   $as_echo_n "(cached) " >&6
18688 else
18689   if test "$cross_compiling" = yes; then :
18690   ac_cv_func_mmap_fixed_mapped=no
18691 else
18692   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18693 /* end confdefs.h.  */
18694 $ac_includes_default
18695 /* malloc might have been renamed as rpl_malloc. */
18696 #undef malloc
18697
18698 /* Thanks to Mike Haertel and Jim Avera for this test.
18699    Here is a matrix of mmap possibilities:
18700         mmap private not fixed
18701         mmap private fixed at somewhere currently unmapped
18702         mmap private fixed at somewhere already mapped
18703         mmap shared not fixed
18704         mmap shared fixed at somewhere currently unmapped
18705         mmap shared fixed at somewhere already mapped
18706    For private mappings, we should verify that changes cannot be read()
18707    back from the file, nor mmap's back from the file at a different
18708    address.  (There have been systems where private was not correctly
18709    implemented like the infamous i386 svr4.0, and systems where the
18710    VM page cache was not coherent with the file system buffer cache
18711    like early versions of FreeBSD and possibly contemporary NetBSD.)
18712    For shared mappings, we should conversely verify that changes get
18713    propagated back to all the places they're supposed to be.
18714
18715    Grep wants private fixed already mapped.
18716    The main things grep needs to know about mmap are:
18717    * does it exist and is it safe to write into the mmap'd area
18718    * how to use it (BSD variants)  */
18719
18720 #include <fcntl.h>
18721 #include <sys/mman.h>
18722
18723 #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
18724 char *malloc ();
18725 #endif
18726
18727 /* This mess was copied from the GNU getpagesize.h.  */
18728 #ifndef HAVE_GETPAGESIZE
18729 # ifdef _SC_PAGESIZE
18730 #  define getpagesize() sysconf(_SC_PAGESIZE)
18731 # else /* no _SC_PAGESIZE */
18732 #  ifdef HAVE_SYS_PARAM_H
18733 #   include <sys/param.h>
18734 #   ifdef EXEC_PAGESIZE
18735 #    define getpagesize() EXEC_PAGESIZE
18736 #   else /* no EXEC_PAGESIZE */
18737 #    ifdef NBPG
18738 #     define getpagesize() NBPG * CLSIZE
18739 #     ifndef CLSIZE
18740 #      define CLSIZE 1
18741 #     endif /* no CLSIZE */
18742 #    else /* no NBPG */
18743 #     ifdef NBPC
18744 #      define getpagesize() NBPC
18745 #     else /* no NBPC */
18746 #      ifdef PAGESIZE
18747 #       define getpagesize() PAGESIZE
18748 #      endif /* PAGESIZE */
18749 #     endif /* no NBPC */
18750 #    endif /* no NBPG */
18751 #   endif /* no EXEC_PAGESIZE */
18752 #  else /* no HAVE_SYS_PARAM_H */
18753 #   define getpagesize() 8192   /* punt totally */
18754 #  endif /* no HAVE_SYS_PARAM_H */
18755 # endif /* no _SC_PAGESIZE */
18756
18757 #endif /* no HAVE_GETPAGESIZE */
18758
18759 int
18760 main ()
18761 {
18762   char *data, *data2, *data3;
18763   int i, pagesize;
18764   int fd, fd2;
18765
18766   pagesize = getpagesize ();
18767
18768   /* First, make a file with some known garbage in it. */
18769   data = (char *) malloc (pagesize);
18770   if (!data)
18771     return 1;
18772   for (i = 0; i < pagesize; ++i)
18773     *(data + i) = rand ();
18774   umask (0);
18775   fd = creat ("conftest.mmap", 0600);
18776   if (fd < 0)
18777     return 2;
18778   if (write (fd, data, pagesize) != pagesize)
18779     return 3;
18780   close (fd);
18781
18782   /* Next, check that the tail of a page is zero-filled.  File must have
18783      non-zero length, otherwise we risk SIGBUS for entire page.  */
18784   fd2 = open ("conftest.txt", O_RDWR | O_CREAT | O_TRUNC, 0600);
18785   if (fd2 < 0)
18786     return 4;
18787   data2 = "";
18788   if (write (fd2, data2, 1) != 1)
18789     return 5;
18790   data2 = mmap (0, pagesize, PROT_READ | PROT_WRITE, MAP_SHARED, fd2, 0L);
18791   if (data2 == MAP_FAILED)
18792     return 6;
18793   for (i = 0; i < pagesize; ++i)
18794     if (*(data2 + i))
18795       return 7;
18796   close (fd2);
18797   if (munmap (data2, pagesize))
18798     return 8;
18799
18800   /* Next, try to mmap the file at a fixed address which already has
18801      something else allocated at it.  If we can, also make sure that
18802      we see the same garbage.  */
18803   fd = open ("conftest.mmap", O_RDWR);
18804   if (fd < 0)
18805     return 9;
18806   if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
18807                      MAP_PRIVATE | MAP_FIXED, fd, 0L))
18808     return 10;
18809   for (i = 0; i < pagesize; ++i)
18810     if (*(data + i) != *(data2 + i))
18811       return 11;
18812
18813   /* Finally, make sure that changes to the mapped area do not
18814      percolate back to the file as seen by read().  (This is a bug on
18815      some variants of i386 svr4.0.)  */
18816   for (i = 0; i < pagesize; ++i)
18817     *(data2 + i) = *(data2 + i) + 1;
18818   data3 = (char *) malloc (pagesize);
18819   if (!data3)
18820     return 12;
18821   if (read (fd, data3, pagesize) != pagesize)
18822     return 13;
18823   for (i = 0; i < pagesize; ++i)
18824     if (*(data + i) != *(data3 + i))
18825       return 14;
18826   close (fd);
18827   return 0;
18828 }
18829 _ACEOF
18830 if ac_fn_c_try_run "$LINENO"; then :
18831   ac_cv_func_mmap_fixed_mapped=yes
18832 else
18833   ac_cv_func_mmap_fixed_mapped=no
18834 fi
18835 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
18836   conftest.$ac_objext conftest.beam conftest.$ac_ext
18837 fi
18838
18839 fi
18840 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_fixed_mapped" >&5
18841 $as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; }
18842 if test $ac_cv_func_mmap_fixed_mapped = yes; then
18843
18844 $as_echo "#define HAVE_MMAP 1" >>confdefs.h
18845
18846 fi
18847 rm -f conftest.mmap conftest.txt
18848
18849
18850     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C Library 2.1 or newer" >&5
18851 $as_echo_n "checking whether we are using the GNU C Library 2.1 or newer... " >&6; }
18852 if test "${ac_cv_gnu_library_2_1+set}" = set; then :
18853   $as_echo_n "(cached) " >&6
18854 else
18855   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18856 /* end confdefs.h.  */
18857
18858 #include <features.h>
18859 #ifdef __GNU_LIBRARY__
18860  #if (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 1) || (__GLIBC__ > 2)
18861   Lucky GNU user
18862  #endif
18863 #endif
18864
18865 _ACEOF
18866 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
18867   $EGREP "Lucky GNU user" >/dev/null 2>&1; then :
18868   ac_cv_gnu_library_2_1=yes
18869 else
18870   ac_cv_gnu_library_2_1=no
18871 fi
18872 rm -f conftest*
18873
18874
18875
18876 fi
18877 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_gnu_library_2_1" >&5
18878 $as_echo "$ac_cv_gnu_library_2_1" >&6; }
18879
18880     GLIBC21="$ac_cv_gnu_library_2_1"
18881
18882
18883
18884
18885   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether integer division by zero raises SIGFPE" >&5
18886 $as_echo_n "checking whether integer division by zero raises SIGFPE... " >&6; }
18887 if test "${gt_cv_int_divbyzero_sigfpe+set}" = set; then :
18888   $as_echo_n "(cached) " >&6
18889 else
18890
18891       if test "$cross_compiling" = yes; then :
18892
18893           # Guess based on the CPU.
18894           case "$host_cpu" in
18895             alpha* | i3456786 | m68k | s390*)
18896               gt_cv_int_divbyzero_sigfpe="guessing yes";;
18897             *)
18898               gt_cv_int_divbyzero_sigfpe="guessing no";;
18899           esac
18900
18901 else
18902   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18903 /* end confdefs.h.  */
18904
18905 #include <stdlib.h>
18906 #include <signal.h>
18907
18908 static void
18909 #ifdef __cplusplus
18910 sigfpe_handler (int sig)
18911 #else
18912 sigfpe_handler (sig) int sig;
18913 #endif
18914 {
18915   /* Exit with code 0 if SIGFPE, with code 1 if any other signal.  */
18916   exit (sig != SIGFPE);
18917 }
18918
18919 int x = 1;
18920 int y = 0;
18921 int z;
18922 int nan;
18923
18924 int main ()
18925 {
18926   signal (SIGFPE, sigfpe_handler);
18927 /* IRIX and AIX (when "xlc -qcheck" is used) yield signal SIGTRAP.  */
18928 #if (defined (__sgi) || defined (_AIX)) && defined (SIGTRAP)
18929   signal (SIGTRAP, sigfpe_handler);
18930 #endif
18931 /* Linux/SPARC yields signal SIGILL.  */
18932 #if defined (__sparc__) && defined (__linux__)
18933   signal (SIGILL, sigfpe_handler);
18934 #endif
18935
18936   z = x / y;
18937   nan = y / y;
18938   exit (1);
18939 }
18940
18941 _ACEOF
18942 if ac_fn_c_try_run "$LINENO"; then :
18943   gt_cv_int_divbyzero_sigfpe=yes
18944 else
18945   gt_cv_int_divbyzero_sigfpe=no
18946 fi
18947 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
18948   conftest.$ac_objext conftest.beam conftest.$ac_ext
18949 fi
18950
18951
18952 fi
18953 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_int_divbyzero_sigfpe" >&5
18954 $as_echo "$gt_cv_int_divbyzero_sigfpe" >&6; }
18955   case "$gt_cv_int_divbyzero_sigfpe" in
18956     *yes) value=1;;
18957     *) value=0;;
18958   esac
18959
18960 cat >>confdefs.h <<_ACEOF
18961 #define INTDIV0_RAISES_SIGFPE $value
18962 _ACEOF
18963
18964
18965
18966   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned long long" >&5
18967 $as_echo_n "checking for unsigned long long... " >&6; }
18968 if test "${ac_cv_type_unsigned_long_long+set}" = set; then :
18969   $as_echo_n "(cached) " >&6
18970 else
18971   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18972 /* end confdefs.h.  */
18973 unsigned long long ull = 1ULL; int i = 63;
18974 int
18975 main ()
18976 {
18977 unsigned long long ullmax = (unsigned long long) -1;
18978      return ull << i | ull >> i | ullmax / ull | ullmax % ull;
18979   ;
18980   return 0;
18981 }
18982 _ACEOF
18983 if ac_fn_c_try_link "$LINENO"; then :
18984   ac_cv_type_unsigned_long_long=yes
18985 else
18986   ac_cv_type_unsigned_long_long=no
18987 fi
18988 rm -f core conftest.err conftest.$ac_objext \
18989     conftest$ac_exeext conftest.$ac_ext
18990 fi
18991 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_unsigned_long_long" >&5
18992 $as_echo "$ac_cv_type_unsigned_long_long" >&6; }
18993   if test $ac_cv_type_unsigned_long_long = yes; then
18994
18995 $as_echo "#define HAVE_UNSIGNED_LONG_LONG 1" >>confdefs.h
18996
18997   fi
18998
18999
19000
19001
19002   if test $gl_cv_header_inttypes_h = no && test $gl_cv_header_stdint_h = no; then
19003
19004     test $ac_cv_type_unsigned_long_long = yes \
19005       && ac_type='unsigned long long' \
19006       || ac_type='unsigned long'
19007
19008 cat >>confdefs.h <<_ACEOF
19009 #define uintmax_t $ac_type
19010 _ACEOF
19011
19012   else
19013
19014 $as_echo "#define HAVE_UINTMAX_T 1" >>confdefs.h
19015
19016   fi
19017
19018
19019   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inttypes.h" >&5
19020 $as_echo_n "checking for inttypes.h... " >&6; }
19021 if test "${gt_cv_header_inttypes_h+set}" = set; then :
19022   $as_echo_n "(cached) " >&6
19023 else
19024
19025     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19026 /* end confdefs.h.  */
19027 #include <sys/types.h>
19028 #include <inttypes.h>
19029 int
19030 main ()
19031 {
19032
19033   ;
19034   return 0;
19035 }
19036 _ACEOF
19037 if ac_fn_c_try_compile "$LINENO"; then :
19038   gt_cv_header_inttypes_h=yes
19039 else
19040   gt_cv_header_inttypes_h=no
19041 fi
19042 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19043
19044 fi
19045 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_header_inttypes_h" >&5
19046 $as_echo "$gt_cv_header_inttypes_h" >&6; }
19047   if test $gt_cv_header_inttypes_h = yes; then
19048
19049 cat >>confdefs.h <<_ACEOF
19050 #define HAVE_INTTYPES_H 1
19051 _ACEOF
19052
19053   fi
19054
19055
19056
19057   if test $gt_cv_header_inttypes_h = yes; then
19058     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the inttypes.h PRIxNN macros are broken" >&5
19059 $as_echo_n "checking whether the inttypes.h PRIxNN macros are broken... " >&6; }
19060 if test "${gt_cv_inttypes_pri_broken+set}" = set; then :
19061   $as_echo_n "(cached) " >&6
19062 else
19063
19064         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19065 /* end confdefs.h.  */
19066 #include <inttypes.h>
19067 #ifdef PRId32
19068 char *p = PRId32;
19069 #endif
19070
19071 int
19072 main ()
19073 {
19074
19075   ;
19076   return 0;
19077 }
19078 _ACEOF
19079 if ac_fn_c_try_compile "$LINENO"; then :
19080   gt_cv_inttypes_pri_broken=no
19081 else
19082   gt_cv_inttypes_pri_broken=yes
19083 fi
19084 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19085
19086 fi
19087 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_inttypes_pri_broken" >&5
19088 $as_echo "$gt_cv_inttypes_pri_broken" >&6; }
19089   fi
19090   if test "$gt_cv_inttypes_pri_broken" = yes; then
19091
19092 cat >>confdefs.h <<_ACEOF
19093 #define PRI_MACROS_BROKEN 1
19094 _ACEOF
19095
19096   fi
19097
19098
19099   for ac_header in stdint.h
19100 do :
19101   ac_fn_c_check_header_mongrel "$LINENO" "stdint.h" "ac_cv_header_stdint_h" "$ac_includes_default"
19102 if test "x$ac_cv_header_stdint_h" = x""yes; then :
19103   cat >>confdefs.h <<_ACEOF
19104 #define HAVE_STDINT_H 1
19105 _ACEOF
19106
19107 fi
19108
19109 done
19110
19111     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SIZE_MAX" >&5
19112 $as_echo_n "checking for SIZE_MAX... " >&6; }
19113   result=
19114   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19115 /* end confdefs.h.  */
19116
19117 #include <limits.h>
19118 #if HAVE_STDINT_H
19119 #include <stdint.h>
19120 #endif
19121 #ifdef SIZE_MAX
19122 Found it
19123 #endif
19124
19125 _ACEOF
19126 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19127   $EGREP "Found it" >/dev/null 2>&1; then :
19128   result=yes
19129 fi
19130 rm -f conftest*
19131
19132   if test -z "$result"; then
19133                     if ac_fn_c_compute_int "$LINENO" "~(size_t)0 / 10" "res_hi"        "#include <stddef.h>"; then :
19134
19135 else
19136   result=?
19137 fi
19138
19139
19140     if ac_fn_c_compute_int "$LINENO" "~(size_t)0 % 10" "res_lo"        "#include <stddef.h>"; then :
19141
19142 else
19143   result=?
19144 fi
19145
19146
19147     if ac_fn_c_compute_int "$LINENO" "sizeof (size_t) <= sizeof (unsigned int)" "fits_in_uint"        "#include <stddef.h>"; then :
19148
19149 else
19150   result=?
19151 fi
19152
19153
19154     if test "$fits_in_uint" = 1; then
19155                   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19156 /* end confdefs.h.  */
19157 #include <stddef.h>
19158         extern size_t foo;
19159         extern unsigned long foo;
19160
19161 int
19162 main ()
19163 {
19164
19165   ;
19166   return 0;
19167 }
19168 _ACEOF
19169 if ac_fn_c_try_compile "$LINENO"; then :
19170   fits_in_uint=0
19171 fi
19172 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19173     fi
19174     if test -z "$result"; then
19175       if test "$fits_in_uint" = 1; then
19176         result="$res_hi$res_lo"U
19177       else
19178         result="$res_hi$res_lo"UL
19179       fi
19180     else
19181             result='~(size_t)0'
19182     fi
19183   fi
19184   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $result" >&5
19185 $as_echo "$result" >&6; }
19186   if test "$result" != yes; then
19187
19188 cat >>confdefs.h <<_ACEOF
19189 #define SIZE_MAX $result
19190 _ACEOF
19191
19192   fi
19193
19194
19195
19196
19197   for ac_header in stdint.h
19198 do :
19199   ac_fn_c_check_header_mongrel "$LINENO" "stdint.h" "ac_cv_header_stdint_h" "$ac_includes_default"
19200 if test "x$ac_cv_header_stdint_h" = x""yes; then :
19201   cat >>confdefs.h <<_ACEOF
19202 #define HAVE_STDINT_H 1
19203 _ACEOF
19204
19205 fi
19206
19207 done
19208
19209
19210
19211
19212
19213
19214
19215
19216   ac_fn_c_check_type "$LINENO" "ptrdiff_t" "ac_cv_type_ptrdiff_t" "$ac_includes_default"
19217 if test "x$ac_cv_type_ptrdiff_t" = x""yes; then :
19218
19219 else
19220
19221 $as_echo "#define ptrdiff_t long" >>confdefs.h
19222
19223
19224 fi
19225
19226   for ac_header in argz.h limits.h locale.h nl_types.h malloc.h stddef.h \
19227 stdlib.h string.h unistd.h sys/param.h
19228 do :
19229   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
19230 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
19231 eval as_val=\$$as_ac_Header
19232    if test "x$as_val" = x""yes; then :
19233   cat >>confdefs.h <<_ACEOF
19234 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
19235 _ACEOF
19236
19237 fi
19238
19239 done
19240
19241   for ac_func in asprintf fwprintf getcwd getegid geteuid getgid getuid \
19242 mempcpy munmap putenv setenv setlocale snprintf stpcpy strcasecmp strdup \
19243 strtoul tsearch wcslen __argz_count __argz_stringify __argz_next \
19244 __fsetlocking
19245 do :
19246   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
19247 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
19248 eval as_val=\$$as_ac_var
19249    if test "x$as_val" = x""yes; then :
19250   cat >>confdefs.h <<_ACEOF
19251 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
19252 _ACEOF
19253
19254 fi
19255 done
19256
19257
19258
19259   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether _snprintf is declared" >&5
19260 $as_echo_n "checking whether _snprintf is declared... " >&6; }
19261 if test "${ac_cv_have_decl__snprintf+set}" = set; then :
19262   $as_echo_n "(cached) " >&6
19263 else
19264   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19265 /* end confdefs.h.  */
19266 #include <stdio.h>
19267 int
19268 main ()
19269 {
19270
19271 #ifndef _snprintf
19272   char *p = (char *) _snprintf;
19273 #endif
19274
19275   ;
19276   return 0;
19277 }
19278 _ACEOF
19279 if ac_fn_c_try_compile "$LINENO"; then :
19280   ac_cv_have_decl__snprintf=yes
19281 else
19282   ac_cv_have_decl__snprintf=no
19283 fi
19284 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19285 fi
19286 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_decl__snprintf" >&5
19287 $as_echo "$ac_cv_have_decl__snprintf" >&6; }
19288   if test $ac_cv_have_decl__snprintf = yes; then
19289     gt_value=1
19290   else
19291     gt_value=0
19292   fi
19293
19294 cat >>confdefs.h <<_ACEOF
19295 #define HAVE_DECL__SNPRINTF $gt_value
19296 _ACEOF
19297
19298
19299
19300   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether _snwprintf is declared" >&5
19301 $as_echo_n "checking whether _snwprintf is declared... " >&6; }
19302 if test "${ac_cv_have_decl__snwprintf+set}" = set; then :
19303   $as_echo_n "(cached) " >&6
19304 else
19305   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19306 /* end confdefs.h.  */
19307 #include <stdio.h>
19308 int
19309 main ()
19310 {
19311
19312 #ifndef _snwprintf
19313   char *p = (char *) _snwprintf;
19314 #endif
19315
19316   ;
19317   return 0;
19318 }
19319 _ACEOF
19320 if ac_fn_c_try_compile "$LINENO"; then :
19321   ac_cv_have_decl__snwprintf=yes
19322 else
19323   ac_cv_have_decl__snwprintf=no
19324 fi
19325 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19326 fi
19327 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_decl__snwprintf" >&5
19328 $as_echo "$ac_cv_have_decl__snwprintf" >&6; }
19329   if test $ac_cv_have_decl__snwprintf = yes; then
19330     gt_value=1
19331   else
19332     gt_value=0
19333   fi
19334
19335 cat >>confdefs.h <<_ACEOF
19336 #define HAVE_DECL__SNWPRINTF $gt_value
19337 _ACEOF
19338
19339
19340
19341
19342   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether feof_unlocked is declared" >&5
19343 $as_echo_n "checking whether feof_unlocked is declared... " >&6; }
19344 if test "${ac_cv_have_decl_feof_unlocked+set}" = set; then :
19345   $as_echo_n "(cached) " >&6
19346 else
19347   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19348 /* end confdefs.h.  */
19349 #include <stdio.h>
19350 int
19351 main ()
19352 {
19353
19354 #ifndef feof_unlocked
19355   char *p = (char *) feof_unlocked;
19356 #endif
19357
19358   ;
19359   return 0;
19360 }
19361 _ACEOF
19362 if ac_fn_c_try_compile "$LINENO"; then :
19363   ac_cv_have_decl_feof_unlocked=yes
19364 else
19365   ac_cv_have_decl_feof_unlocked=no
19366 fi
19367 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19368 fi
19369 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_decl_feof_unlocked" >&5
19370 $as_echo "$ac_cv_have_decl_feof_unlocked" >&6; }
19371   if test $ac_cv_have_decl_feof_unlocked = yes; then
19372     gt_value=1
19373   else
19374     gt_value=0
19375   fi
19376
19377 cat >>confdefs.h <<_ACEOF
19378 #define HAVE_DECL_FEOF_UNLOCKED $gt_value
19379 _ACEOF
19380
19381
19382
19383   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether fgets_unlocked is declared" >&5
19384 $as_echo_n "checking whether fgets_unlocked is declared... " >&6; }
19385 if test "${ac_cv_have_decl_fgets_unlocked+set}" = set; then :
19386   $as_echo_n "(cached) " >&6
19387 else
19388   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19389 /* end confdefs.h.  */
19390 #include <stdio.h>
19391 int
19392 main ()
19393 {
19394
19395 #ifndef fgets_unlocked
19396   char *p = (char *) fgets_unlocked;
19397 #endif
19398
19399   ;
19400   return 0;
19401 }
19402 _ACEOF
19403 if ac_fn_c_try_compile "$LINENO"; then :
19404   ac_cv_have_decl_fgets_unlocked=yes
19405 else
19406   ac_cv_have_decl_fgets_unlocked=no
19407 fi
19408 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19409 fi
19410 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_decl_fgets_unlocked" >&5
19411 $as_echo "$ac_cv_have_decl_fgets_unlocked" >&6; }
19412   if test $ac_cv_have_decl_fgets_unlocked = yes; then
19413     gt_value=1
19414   else
19415     gt_value=0
19416   fi
19417
19418 cat >>confdefs.h <<_ACEOF
19419 #define HAVE_DECL_FGETS_UNLOCKED $gt_value
19420 _ACEOF
19421
19422
19423
19424   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether getc_unlocked is declared" >&5
19425 $as_echo_n "checking whether getc_unlocked is declared... " >&6; }
19426 if test "${ac_cv_have_decl_getc_unlocked+set}" = set; then :
19427   $as_echo_n "(cached) " >&6
19428 else
19429   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19430 /* end confdefs.h.  */
19431 #include <stdio.h>
19432 int
19433 main ()
19434 {
19435
19436 #ifndef getc_unlocked
19437   char *p = (char *) getc_unlocked;
19438 #endif
19439
19440   ;
19441   return 0;
19442 }
19443 _ACEOF
19444 if ac_fn_c_try_compile "$LINENO"; then :
19445   ac_cv_have_decl_getc_unlocked=yes
19446 else
19447   ac_cv_have_decl_getc_unlocked=no
19448 fi
19449 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19450 fi
19451 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_decl_getc_unlocked" >&5
19452 $as_echo "$ac_cv_have_decl_getc_unlocked" >&6; }
19453   if test $ac_cv_have_decl_getc_unlocked = yes; then
19454     gt_value=1
19455   else
19456     gt_value=0
19457   fi
19458
19459 cat >>confdefs.h <<_ACEOF
19460 #define HAVE_DECL_GETC_UNLOCKED $gt_value
19461 _ACEOF
19462
19463
19464
19465   case $gt_cv_func_printf_posix in
19466     *yes) HAVE_POSIX_PRINTF=1 ;;
19467     *) HAVE_POSIX_PRINTF=0 ;;
19468   esac
19469
19470   if test "$ac_cv_func_asprintf" = yes; then
19471     HAVE_ASPRINTF=1
19472   else
19473     HAVE_ASPRINTF=0
19474   fi
19475
19476   if test "$ac_cv_func_snprintf" = yes; then
19477     HAVE_SNPRINTF=1
19478   else
19479     HAVE_SNPRINTF=0
19480   fi
19481
19482   if test "$ac_cv_func_wprintf" = yes; then
19483     HAVE_WPRINTF=1
19484   else
19485     HAVE_WPRINTF=0
19486   fi
19487
19488
19489
19490
19491
19492
19493
19494           am_save_CPPFLAGS="$CPPFLAGS"
19495
19496   for element in $INCICONV; do
19497     haveit=
19498     for x in $CPPFLAGS; do
19499
19500   acl_save_prefix="$prefix"
19501   prefix="$acl_final_prefix"
19502   acl_save_exec_prefix="$exec_prefix"
19503   exec_prefix="$acl_final_exec_prefix"
19504   eval x=\"$x\"
19505   exec_prefix="$acl_save_exec_prefix"
19506   prefix="$acl_save_prefix"
19507
19508       if test "X$x" = "X$element"; then
19509         haveit=yes
19510         break
19511       fi
19512     done
19513     if test -z "$haveit"; then
19514       CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
19515     fi
19516   done
19517
19518
19519   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5
19520 $as_echo_n "checking for iconv... " >&6; }
19521 if test "${am_cv_func_iconv+set}" = set; then :
19522   $as_echo_n "(cached) " >&6
19523 else
19524
19525     am_cv_func_iconv="no, consider installing GNU libiconv"
19526     am_cv_lib_iconv=no
19527     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19528 /* end confdefs.h.  */
19529 #include <stdlib.h>
19530 #include <iconv.h>
19531 int
19532 main ()
19533 {
19534 iconv_t cd = iconv_open("","");
19535        iconv(cd,NULL,NULL,NULL,NULL);
19536        iconv_close(cd);
19537   ;
19538   return 0;
19539 }
19540 _ACEOF
19541 if ac_fn_c_try_link "$LINENO"; then :
19542   am_cv_func_iconv=yes
19543 fi
19544 rm -f core conftest.err conftest.$ac_objext \
19545     conftest$ac_exeext conftest.$ac_ext
19546     if test "$am_cv_func_iconv" != yes; then
19547       am_save_LIBS="$LIBS"
19548       LIBS="$LIBS $LIBICONV"
19549       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19550 /* end confdefs.h.  */
19551 #include <stdlib.h>
19552 #include <iconv.h>
19553 int
19554 main ()
19555 {
19556 iconv_t cd = iconv_open("","");
19557          iconv(cd,NULL,NULL,NULL,NULL);
19558          iconv_close(cd);
19559   ;
19560   return 0;
19561 }
19562 _ACEOF
19563 if ac_fn_c_try_link "$LINENO"; then :
19564   am_cv_lib_iconv=yes
19565         am_cv_func_iconv=yes
19566 fi
19567 rm -f core conftest.err conftest.$ac_objext \
19568     conftest$ac_exeext conftest.$ac_ext
19569       LIBS="$am_save_LIBS"
19570     fi
19571
19572 fi
19573 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5
19574 $as_echo "$am_cv_func_iconv" >&6; }
19575   if test "$am_cv_func_iconv" = yes; then
19576
19577 $as_echo "#define HAVE_ICONV 1" >>confdefs.h
19578
19579   fi
19580   if test "$am_cv_lib_iconv" = yes; then
19581     { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libiconv" >&5
19582 $as_echo_n "checking how to link with libiconv... " >&6; }
19583     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBICONV" >&5
19584 $as_echo "$LIBICONV" >&6; }
19585   else
19586             CPPFLAGS="$am_save_CPPFLAGS"
19587     LIBICONV=
19588     LTLIBICONV=
19589   fi
19590
19591
19592
19593   if test "$am_cv_func_iconv" = yes; then
19594     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv declaration" >&5
19595 $as_echo_n "checking for iconv declaration... " >&6; }
19596     if test "${am_cv_proto_iconv+set}" = set; then :
19597   $as_echo_n "(cached) " >&6
19598 else
19599
19600       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19601 /* end confdefs.h.  */
19602
19603 #include <stdlib.h>
19604 #include <iconv.h>
19605 extern
19606 #ifdef __cplusplus
19607 "C"
19608 #endif
19609 #if defined(__STDC__) || defined(__cplusplus)
19610 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
19611 #else
19612 size_t iconv();
19613 #endif
19614
19615 int
19616 main ()
19617 {
19618
19619   ;
19620   return 0;
19621 }
19622 _ACEOF
19623 if ac_fn_c_try_compile "$LINENO"; then :
19624   am_cv_proto_iconv_arg1=""
19625 else
19626   am_cv_proto_iconv_arg1="const"
19627 fi
19628 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19629       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);"
19630 fi
19631
19632     am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
19633     { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${ac_t:-
19634          }$am_cv_proto_iconv" >&5
19635 $as_echo "${ac_t:-
19636          }$am_cv_proto_iconv" >&6; }
19637
19638 cat >>confdefs.h <<_ACEOF
19639 #define ICONV_CONST $am_cv_proto_iconv_arg1
19640 _ACEOF
19641
19642   fi
19643
19644
19645   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nl_langinfo and CODESET" >&5
19646 $as_echo_n "checking for nl_langinfo and CODESET... " >&6; }
19647 if test "${am_cv_langinfo_codeset+set}" = set; then :
19648   $as_echo_n "(cached) " >&6
19649 else
19650   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19651 /* end confdefs.h.  */
19652 #include <langinfo.h>
19653 int
19654 main ()
19655 {
19656 char* cs = nl_langinfo(CODESET);
19657   ;
19658   return 0;
19659 }
19660 _ACEOF
19661 if ac_fn_c_try_link "$LINENO"; then :
19662   am_cv_langinfo_codeset=yes
19663 else
19664   am_cv_langinfo_codeset=no
19665 fi
19666 rm -f core conftest.err conftest.$ac_objext \
19667     conftest$ac_exeext conftest.$ac_ext
19668
19669 fi
19670 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_langinfo_codeset" >&5
19671 $as_echo "$am_cv_langinfo_codeset" >&6; }
19672   if test $am_cv_langinfo_codeset = yes; then
19673
19674 $as_echo "#define HAVE_LANGINFO_CODESET 1" >>confdefs.h
19675
19676   fi
19677
19678   if test $ac_cv_header_locale_h = yes; then
19679
19680   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LC_MESSAGES" >&5
19681 $as_echo_n "checking for LC_MESSAGES... " >&6; }
19682 if test "${gt_cv_val_LC_MESSAGES+set}" = set; then :
19683   $as_echo_n "(cached) " >&6
19684 else
19685   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19686 /* end confdefs.h.  */
19687 #include <locale.h>
19688 int
19689 main ()
19690 {
19691 return LC_MESSAGES
19692   ;
19693   return 0;
19694 }
19695 _ACEOF
19696 if ac_fn_c_try_link "$LINENO"; then :
19697   gt_cv_val_LC_MESSAGES=yes
19698 else
19699   gt_cv_val_LC_MESSAGES=no
19700 fi
19701 rm -f core conftest.err conftest.$ac_objext \
19702     conftest$ac_exeext conftest.$ac_ext
19703 fi
19704 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_val_LC_MESSAGES" >&5
19705 $as_echo "$gt_cv_val_LC_MESSAGES" >&6; }
19706   if test $gt_cv_val_LC_MESSAGES = yes; then
19707
19708 $as_echo "#define HAVE_LC_MESSAGES 1" >>confdefs.h
19709
19710   fi
19711
19712   fi
19713
19714   if test -n "$INTL_MACOSX_LIBS"; then
19715     CPPFLAGS="$CPPFLAGS -I/System/Library/Frameworks/CoreFoundation.framework/Headers"
19716   fi
19717
19718                       for ac_prog in bison
19719 do
19720   # Extract the first word of "$ac_prog", so it can be a program name with args.
19721 set dummy $ac_prog; ac_word=$2
19722 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19723 $as_echo_n "checking for $ac_word... " >&6; }
19724 if test "${ac_cv_prog_INTLBISON+set}" = set; then :
19725   $as_echo_n "(cached) " >&6
19726 else
19727   if test -n "$INTLBISON"; then
19728   ac_cv_prog_INTLBISON="$INTLBISON" # Let the user override the test.
19729 else
19730 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19731 for as_dir in $PATH
19732 do
19733   IFS=$as_save_IFS
19734   test -z "$as_dir" && as_dir=.
19735     for ac_exec_ext in '' $ac_executable_extensions; do
19736   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
19737     ac_cv_prog_INTLBISON="$ac_prog"
19738     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
19739     break 2
19740   fi
19741 done
19742   done
19743 IFS=$as_save_IFS
19744
19745 fi
19746 fi
19747 INTLBISON=$ac_cv_prog_INTLBISON
19748 if test -n "$INTLBISON"; then
19749   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INTLBISON" >&5
19750 $as_echo "$INTLBISON" >&6; }
19751 else
19752   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19753 $as_echo "no" >&6; }
19754 fi
19755
19756
19757   test -n "$INTLBISON" && break
19758 done
19759
19760   if test -z "$INTLBISON"; then
19761     ac_verc_fail=yes
19762   else
19763         { $as_echo "$as_me:${as_lineno-$LINENO}: checking version of bison" >&5
19764 $as_echo_n "checking version of bison... " >&6; }
19765     ac_prog_version=`$INTLBISON --version 2>&1 | sed -n 's/^.*GNU Bison.* \([0-9]*\.[0-9.]*\).*$/\1/p'`
19766     case $ac_prog_version in
19767       '') ac_prog_version="v. ?.??, bad"; ac_verc_fail=yes;;
19768       1.2[6-9]* | 1.[3-9][0-9]* | [2-9].*)
19769          ac_prog_version="$ac_prog_version, ok"; ac_verc_fail=no;;
19770       *) ac_prog_version="$ac_prog_version, bad"; ac_verc_fail=yes;;
19771     esac
19772     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_prog_version" >&5
19773 $as_echo "$ac_prog_version" >&6; }
19774   fi
19775   if test $ac_verc_fail = yes; then
19776     INTLBISON=:
19777   fi
19778
19779
19780
19781
19782
19783
19784
19785
19786
19787
19788
19789
19790
19791
19792
19793
19794     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFPreferencesCopyAppValue" >&5
19795 $as_echo_n "checking for CFPreferencesCopyAppValue... " >&6; }
19796 if test "${gt_cv_func_CFPreferencesCopyAppValue+set}" = set; then :
19797   $as_echo_n "(cached) " >&6
19798 else
19799   gt_save_CPPFLAGS="$CPPFLAGS"
19800      CPPFLAGS="$CPPFLAGS -I/System/Library/Frameworks/CoreFoundation.framework/Headers"
19801      gt_save_LIBS="$LIBS"
19802      LIBS="$LIBS -framework CoreFoundation"
19803      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19804 /* end confdefs.h.  */
19805 #include <CFPreferences.h>
19806 int
19807 main ()
19808 {
19809 CFPreferencesCopyAppValue(NULL, NULL)
19810   ;
19811   return 0;
19812 }
19813 _ACEOF
19814 if ac_fn_c_try_link "$LINENO"; then :
19815   gt_cv_func_CFPreferencesCopyAppValue=yes
19816 else
19817   gt_cv_func_CFPreferencesCopyAppValue=no
19818 fi
19819 rm -f core conftest.err conftest.$ac_objext \
19820     conftest$ac_exeext conftest.$ac_ext
19821      CPPFLAGS="$gt_save_CPPFLAGS"
19822      LIBS="$gt_save_LIBS"
19823 fi
19824 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFPreferencesCopyAppValue" >&5
19825 $as_echo "$gt_cv_func_CFPreferencesCopyAppValue" >&6; }
19826   if test $gt_cv_func_CFPreferencesCopyAppValue = yes; then
19827
19828 $as_echo "#define HAVE_CFPREFERENCESCOPYAPPVALUE 1" >>confdefs.h
19829
19830   fi
19831     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFLocaleCopyCurrent" >&5
19832 $as_echo_n "checking for CFLocaleCopyCurrent... " >&6; }
19833 if test "${gt_cv_func_CFLocaleCopyCurrent+set}" = set; then :
19834   $as_echo_n "(cached) " >&6
19835 else
19836   gt_save_CPPFLAGS="$CPPFLAGS"
19837      CPPFLAGS="$CPPFLAGS -I/System/Library/Frameworks/CoreFoundation.framework/Headers"
19838      gt_save_LIBS="$LIBS"
19839      LIBS="$LIBS -framework CoreFoundation"
19840      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19841 /* end confdefs.h.  */
19842 #include <CFLocale.h>
19843 int
19844 main ()
19845 {
19846 CFLocaleCopyCurrent();
19847   ;
19848   return 0;
19849 }
19850 _ACEOF
19851 if ac_fn_c_try_link "$LINENO"; then :
19852   gt_cv_func_CFLocaleCopyCurrent=yes
19853 else
19854   gt_cv_func_CFLocaleCopyCurrent=no
19855 fi
19856 rm -f core conftest.err conftest.$ac_objext \
19857     conftest$ac_exeext conftest.$ac_ext
19858      CPPFLAGS="$gt_save_CPPFLAGS"
19859      LIBS="$gt_save_LIBS"
19860 fi
19861 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFLocaleCopyCurrent" >&5
19862 $as_echo "$gt_cv_func_CFLocaleCopyCurrent" >&6; }
19863   if test $gt_cv_func_CFLocaleCopyCurrent = yes; then
19864
19865 $as_echo "#define HAVE_CFLOCALECOPYCURRENT 1" >>confdefs.h
19866
19867   fi
19868   INTL_MACOSX_LIBS=
19869   if test $gt_cv_func_CFPreferencesCopyAppValue = yes || test $gt_cv_func_CFLocaleCopyCurrent = yes; then
19870     INTL_MACOSX_LIBS="-Wl,-framework -Wl,CoreFoundation"
19871   fi
19872
19873
19874
19875
19876   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
19877 $as_echo_n "checking whether NLS is requested... " >&6; }
19878     # Check whether --enable-nls was given.
19879 if test "${enable_nls+set}" = set; then :
19880   enableval=$enable_nls; USE_NLS=$enableval
19881 else
19882   USE_NLS=yes
19883 fi
19884
19885   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
19886 $as_echo "$USE_NLS" >&6; }
19887
19888
19889
19890
19891     BUILD_INCLUDED_LIBINTL=no
19892     USE_INCLUDED_LIBINTL=no
19893
19894   LIBINTL=
19895   LTLIBINTL=
19896   POSUB=
19897
19898     if test "$USE_NLS" = "yes"; then
19899     gt_use_preinstalled_gnugettext=no
19900
19901       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether included gettext is requested" >&5
19902 $as_echo_n "checking whether included gettext is requested... " >&6; }
19903
19904 # Check whether --with-included-gettext was given.
19905 if test "${with_included_gettext+set}" = set; then :
19906   withval=$with_included_gettext; nls_cv_force_use_gnu_gettext=$withval
19907 else
19908   nls_cv_force_use_gnu_gettext=no
19909 fi
19910
19911       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $nls_cv_force_use_gnu_gettext" >&5
19912 $as_echo "$nls_cv_force_use_gnu_gettext" >&6; }
19913
19914       nls_cv_use_gnu_gettext="$nls_cv_force_use_gnu_gettext"
19915       if test "$nls_cv_force_use_gnu_gettext" != "yes"; then
19916
19917
19918
19919
19920
19921
19922         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libc" >&5
19923 $as_echo_n "checking for GNU gettext in libc... " >&6; }
19924 if test "${gt_cv_func_gnugettext1_libc+set}" = set; then :
19925   $as_echo_n "(cached) " >&6
19926 else
19927   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19928 /* end confdefs.h.  */
19929 #include <libintl.h>
19930 extern int _nl_msg_cat_cntr;
19931 extern int *_nl_domain_bindings;
19932 int
19933 main ()
19934 {
19935 bindtextdomain ("", "");
19936 return * gettext ("") + _nl_msg_cat_cntr + *_nl_domain_bindings
19937   ;
19938   return 0;
19939 }
19940 _ACEOF
19941 if ac_fn_c_try_link "$LINENO"; then :
19942   gt_cv_func_gnugettext1_libc=yes
19943 else
19944   gt_cv_func_gnugettext1_libc=no
19945 fi
19946 rm -f core conftest.err conftest.$ac_objext \
19947     conftest$ac_exeext conftest.$ac_ext
19948 fi
19949 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_gnugettext1_libc" >&5
19950 $as_echo "$gt_cv_func_gnugettext1_libc" >&6; }
19951
19952         if test "$gt_cv_func_gnugettext1_libc" != "yes"; then
19953
19954
19955
19956     use_additional=yes
19957
19958   acl_save_prefix="$prefix"
19959   prefix="$acl_final_prefix"
19960   acl_save_exec_prefix="$exec_prefix"
19961   exec_prefix="$acl_final_exec_prefix"
19962
19963     eval additional_includedir=\"$includedir\"
19964     eval additional_libdir=\"$libdir\"
19965
19966   exec_prefix="$acl_save_exec_prefix"
19967   prefix="$acl_save_prefix"
19968
19969
19970 # Check whether --with-libintl-prefix was given.
19971 if test "${with_libintl_prefix+set}" = set; then :
19972   withval=$with_libintl_prefix;
19973     if test "X$withval" = "Xno"; then
19974       use_additional=no
19975     else
19976       if test "X$withval" = "X"; then
19977
19978   acl_save_prefix="$prefix"
19979   prefix="$acl_final_prefix"
19980   acl_save_exec_prefix="$exec_prefix"
19981   exec_prefix="$acl_final_exec_prefix"
19982
19983           eval additional_includedir=\"$includedir\"
19984           eval additional_libdir=\"$libdir\"
19985
19986   exec_prefix="$acl_save_exec_prefix"
19987   prefix="$acl_save_prefix"
19988
19989       else
19990         additional_includedir="$withval/include"
19991         additional_libdir="$withval/lib"
19992       fi
19993     fi
19994
19995 fi
19996
19997       LIBINTL=
19998   LTLIBINTL=
19999   INCINTL=
20000   rpathdirs=
20001   ltrpathdirs=
20002   names_already_handled=
20003   names_next_round='intl '
20004   while test -n "$names_next_round"; do
20005     names_this_round="$names_next_round"
20006     names_next_round=
20007     for name in $names_this_round; do
20008       already_handled=
20009       for n in $names_already_handled; do
20010         if test "$n" = "$name"; then
20011           already_handled=yes
20012           break
20013         fi
20014       done
20015       if test -z "$already_handled"; then
20016         names_already_handled="$names_already_handled $name"
20017                         uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
20018         eval value=\"\$HAVE_LIB$uppername\"
20019         if test -n "$value"; then
20020           if test "$value" = yes; then
20021             eval value=\"\$LIB$uppername\"
20022             test -z "$value" || LIBINTL="${LIBINTL}${LIBINTL:+ }$value"
20023             eval value=\"\$LTLIB$uppername\"
20024             test -z "$value" || LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$value"
20025           else
20026                                     :
20027           fi
20028         else
20029                               found_dir=
20030           found_la=
20031           found_so=
20032           found_a=
20033           if test $use_additional = yes; then
20034             if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
20035               found_dir="$additional_libdir"
20036               found_so="$additional_libdir/lib$name.$shlibext"
20037               if test -f "$additional_libdir/lib$name.la"; then
20038                 found_la="$additional_libdir/lib$name.la"
20039               fi
20040             else
20041               if test -f "$additional_libdir/lib$name.$libext"; then
20042                 found_dir="$additional_libdir"
20043                 found_a="$additional_libdir/lib$name.$libext"
20044                 if test -f "$additional_libdir/lib$name.la"; then
20045                   found_la="$additional_libdir/lib$name.la"
20046                 fi
20047               fi
20048             fi
20049           fi
20050           if test "X$found_dir" = "X"; then
20051             for x in $LDFLAGS $LTLIBINTL; do
20052
20053   acl_save_prefix="$prefix"
20054   prefix="$acl_final_prefix"
20055   acl_save_exec_prefix="$exec_prefix"
20056   exec_prefix="$acl_final_exec_prefix"
20057   eval x=\"$x\"
20058   exec_prefix="$acl_save_exec_prefix"
20059   prefix="$acl_save_prefix"
20060
20061               case "$x" in
20062                 -L*)
20063                   dir=`echo "X$x" | sed -e 's/^X-L//'`
20064                   if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
20065                     found_dir="$dir"
20066                     found_so="$dir/lib$name.$shlibext"
20067                     if test -f "$dir/lib$name.la"; then
20068                       found_la="$dir/lib$name.la"
20069                     fi
20070                   else
20071                     if test -f "$dir/lib$name.$libext"; then
20072                       found_dir="$dir"
20073                       found_a="$dir/lib$name.$libext"
20074                       if test -f "$dir/lib$name.la"; then
20075                         found_la="$dir/lib$name.la"
20076                       fi
20077                     fi
20078                   fi
20079                   ;;
20080               esac
20081               if test "X$found_dir" != "X"; then
20082                 break
20083               fi
20084             done
20085           fi
20086           if test "X$found_dir" != "X"; then
20087                         LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$found_dir -l$name"
20088             if test "X$found_so" != "X"; then
20089                                                         if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
20090                                 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
20091               else
20092                                                                                 haveit=
20093                 for x in $ltrpathdirs; do
20094                   if test "X$x" = "X$found_dir"; then
20095                     haveit=yes
20096                     break
20097                   fi
20098                 done
20099                 if test -z "$haveit"; then
20100                   ltrpathdirs="$ltrpathdirs $found_dir"
20101                 fi
20102                                 if test "$hardcode_direct" = yes; then
20103                                                       LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
20104                 else
20105                   if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
20106                                                             LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
20107                                                             haveit=
20108                     for x in $rpathdirs; do
20109                       if test "X$x" = "X$found_dir"; then
20110                         haveit=yes
20111                         break
20112                       fi
20113                     done
20114                     if test -z "$haveit"; then
20115                       rpathdirs="$rpathdirs $found_dir"
20116                     fi
20117                   else
20118                                                                                 haveit=
20119                     for x in $LDFLAGS $LIBINTL; do
20120
20121   acl_save_prefix="$prefix"
20122   prefix="$acl_final_prefix"
20123   acl_save_exec_prefix="$exec_prefix"
20124   exec_prefix="$acl_final_exec_prefix"
20125   eval x=\"$x\"
20126   exec_prefix="$acl_save_exec_prefix"
20127   prefix="$acl_save_prefix"
20128
20129                       if test "X$x" = "X-L$found_dir"; then
20130                         haveit=yes
20131                         break
20132                       fi
20133                     done
20134                     if test -z "$haveit"; then
20135                       LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir"
20136                     fi
20137                     if test "$hardcode_minus_L" != no; then
20138                                                                                         LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
20139                     else
20140                                                                                                                                                                                 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
20141                     fi
20142                   fi
20143                 fi
20144               fi
20145             else
20146               if test "X$found_a" != "X"; then
20147                                 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_a"
20148               else
20149                                                 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir -l$name"
20150               fi
20151             fi
20152                         additional_includedir=
20153             case "$found_dir" in
20154               */lib | */lib/)
20155                 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
20156                 additional_includedir="$basedir/include"
20157                 ;;
20158             esac
20159             if test "X$additional_includedir" != "X"; then
20160                                                                                                                 if test "X$additional_includedir" != "X/usr/include"; then
20161                 haveit=
20162                 if test "X$additional_includedir" = "X/usr/local/include"; then
20163                   if test -n "$GCC"; then
20164                     case $host_os in
20165                       linux* | gnu* | k*bsd*-gnu) haveit=yes;;
20166                     esac
20167                   fi
20168                 fi
20169                 if test -z "$haveit"; then
20170                   for x in $CPPFLAGS $INCINTL; do
20171
20172   acl_save_prefix="$prefix"
20173   prefix="$acl_final_prefix"
20174   acl_save_exec_prefix="$exec_prefix"
20175   exec_prefix="$acl_final_exec_prefix"
20176   eval x=\"$x\"
20177   exec_prefix="$acl_save_exec_prefix"
20178   prefix="$acl_save_prefix"
20179
20180                     if test "X$x" = "X-I$additional_includedir"; then
20181                       haveit=yes
20182                       break
20183                     fi
20184                   done
20185                   if test -z "$haveit"; then
20186                     if test -d "$additional_includedir"; then
20187                                             INCINTL="${INCINTL}${INCINTL:+ }-I$additional_includedir"
20188                     fi
20189                   fi
20190                 fi
20191               fi
20192             fi
20193                         if test -n "$found_la"; then
20194                                                         save_libdir="$libdir"
20195               case "$found_la" in
20196                 */* | *\\*) . "$found_la" ;;
20197                 *) . "./$found_la" ;;
20198               esac
20199               libdir="$save_libdir"
20200                             for dep in $dependency_libs; do
20201                 case "$dep" in
20202                   -L*)
20203                     additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
20204                                                                                                                                                                 if test "X$additional_libdir" != "X/usr/lib"; then
20205                       haveit=
20206                       if test "X$additional_libdir" = "X/usr/local/lib"; then
20207                         if test -n "$GCC"; then
20208                           case $host_os in
20209                             linux* | gnu* | k*bsd*-gnu) haveit=yes;;
20210                           esac
20211                         fi
20212                       fi
20213                       if test -z "$haveit"; then
20214                         haveit=
20215                         for x in $LDFLAGS $LIBINTL; do
20216
20217   acl_save_prefix="$prefix"
20218   prefix="$acl_final_prefix"
20219   acl_save_exec_prefix="$exec_prefix"
20220   exec_prefix="$acl_final_exec_prefix"
20221   eval x=\"$x\"
20222   exec_prefix="$acl_save_exec_prefix"
20223   prefix="$acl_save_prefix"
20224
20225                           if test "X$x" = "X-L$additional_libdir"; then
20226                             haveit=yes
20227                             break
20228                           fi
20229                         done
20230                         if test -z "$haveit"; then
20231                           if test -d "$additional_libdir"; then
20232                                                         LIBINTL="${LIBINTL}${LIBINTL:+ }-L$additional_libdir"
20233                           fi
20234                         fi
20235                         haveit=
20236                         for x in $LDFLAGS $LTLIBINTL; do
20237
20238   acl_save_prefix="$prefix"
20239   prefix="$acl_final_prefix"
20240   acl_save_exec_prefix="$exec_prefix"
20241   exec_prefix="$acl_final_exec_prefix"
20242   eval x=\"$x\"
20243   exec_prefix="$acl_save_exec_prefix"
20244   prefix="$acl_save_prefix"
20245
20246                           if test "X$x" = "X-L$additional_libdir"; then
20247                             haveit=yes
20248                             break
20249                           fi
20250                         done
20251                         if test -z "$haveit"; then
20252                           if test -d "$additional_libdir"; then
20253                                                         LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$additional_libdir"
20254                           fi
20255                         fi
20256                       fi
20257                     fi
20258                     ;;
20259                   -R*)
20260                     dir=`echo "X$dep" | sed -e 's/^X-R//'`
20261                     if test "$enable_rpath" != no; then
20262                                                                   haveit=
20263                       for x in $rpathdirs; do
20264                         if test "X$x" = "X$dir"; then
20265                           haveit=yes
20266                           break
20267                         fi
20268                       done
20269                       if test -z "$haveit"; then
20270                         rpathdirs="$rpathdirs $dir"
20271                       fi
20272                                                                   haveit=
20273                       for x in $ltrpathdirs; do
20274                         if test "X$x" = "X$dir"; then
20275                           haveit=yes
20276                           break
20277                         fi
20278                       done
20279                       if test -z "$haveit"; then
20280                         ltrpathdirs="$ltrpathdirs $dir"
20281                       fi
20282                     fi
20283                     ;;
20284                   -l*)
20285                                         names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
20286                     ;;
20287                   *.la)
20288                                                                                 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
20289                     ;;
20290                   *)
20291                                         LIBINTL="${LIBINTL}${LIBINTL:+ }$dep"
20292                     LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$dep"
20293                     ;;
20294                 esac
20295               done
20296             fi
20297           else
20298                                                             LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
20299             LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-l$name"
20300           fi
20301         fi
20302       fi
20303     done
20304   done
20305   if test "X$rpathdirs" != "X"; then
20306     if test -n "$hardcode_libdir_separator"; then
20307                         alldirs=
20308       for found_dir in $rpathdirs; do
20309         alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
20310       done
20311             acl_save_libdir="$libdir"
20312       libdir="$alldirs"
20313       eval flag=\"$hardcode_libdir_flag_spec\"
20314       libdir="$acl_save_libdir"
20315       LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
20316     else
20317             for found_dir in $rpathdirs; do
20318         acl_save_libdir="$libdir"
20319         libdir="$found_dir"
20320         eval flag=\"$hardcode_libdir_flag_spec\"
20321         libdir="$acl_save_libdir"
20322         LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
20323       done
20324     fi
20325   fi
20326   if test "X$ltrpathdirs" != "X"; then
20327             for found_dir in $ltrpathdirs; do
20328       LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-R$found_dir"
20329     done
20330   fi
20331
20332           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libintl" >&5
20333 $as_echo_n "checking for GNU gettext in libintl... " >&6; }
20334 if test "${gt_cv_func_gnugettext1_libintl+set}" = set; then :
20335   $as_echo_n "(cached) " >&6
20336 else
20337   gt_save_CPPFLAGS="$CPPFLAGS"
20338             CPPFLAGS="$CPPFLAGS $INCINTL"
20339             gt_save_LIBS="$LIBS"
20340             LIBS="$LIBS $LIBINTL"
20341                         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20342 /* end confdefs.h.  */
20343 #include <libintl.h>
20344 extern int _nl_msg_cat_cntr;
20345 extern
20346 #ifdef __cplusplus
20347 "C"
20348 #endif
20349 const char *_nl_expand_alias (const char *);
20350 int
20351 main ()
20352 {
20353 bindtextdomain ("", "");
20354 return * gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias ("")
20355   ;
20356   return 0;
20357 }
20358 _ACEOF
20359 if ac_fn_c_try_link "$LINENO"; then :
20360   gt_cv_func_gnugettext1_libintl=yes
20361 else
20362   gt_cv_func_gnugettext1_libintl=no
20363 fi
20364 rm -f core conftest.err conftest.$ac_objext \
20365     conftest$ac_exeext conftest.$ac_ext
20366                         if test "$gt_cv_func_gnugettext1_libintl" != yes && test -n "$LIBICONV"; then
20367               LIBS="$LIBS $LIBICONV"
20368               cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20369 /* end confdefs.h.  */
20370 #include <libintl.h>
20371 extern int _nl_msg_cat_cntr;
20372 extern
20373 #ifdef __cplusplus
20374 "C"
20375 #endif
20376 const char *_nl_expand_alias (const char *);
20377 int
20378 main ()
20379 {
20380 bindtextdomain ("", "");
20381 return * gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias ("")
20382   ;
20383   return 0;
20384 }
20385 _ACEOF
20386 if ac_fn_c_try_link "$LINENO"; then :
20387   LIBINTL="$LIBINTL $LIBICONV"
20388                 LTLIBINTL="$LTLIBINTL $LTLIBICONV"
20389                 gt_cv_func_gnugettext1_libintl=yes
20390
20391 fi
20392 rm -f core conftest.err conftest.$ac_objext \
20393     conftest$ac_exeext conftest.$ac_ext
20394             fi
20395             CPPFLAGS="$gt_save_CPPFLAGS"
20396             LIBS="$gt_save_LIBS"
20397 fi
20398 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_gnugettext1_libintl" >&5
20399 $as_echo "$gt_cv_func_gnugettext1_libintl" >&6; }
20400         fi
20401
20402                                         if test "$gt_cv_func_gnugettext1_libc" = "yes" \
20403            || { test "$gt_cv_func_gnugettext1_libintl" = "yes" \
20404                 && test "$PACKAGE" != gettext-runtime \
20405                 && test "$PACKAGE" != gettext-tools; }; then
20406           gt_use_preinstalled_gnugettext=yes
20407         else
20408                     LIBINTL=
20409           LTLIBINTL=
20410           INCINTL=
20411         fi
20412
20413
20414         if test "$gt_use_preinstalled_gnugettext" != "yes"; then
20415                               nls_cv_use_gnu_gettext=yes
20416         fi
20417       fi
20418
20419       if test "$nls_cv_use_gnu_gettext" = "yes"; then
20420                 BUILD_INCLUDED_LIBINTL=yes
20421         USE_INCLUDED_LIBINTL=yes
20422         LIBINTL="\${top_builddir}/intl/libintl.a $LIBICONV"
20423         LTLIBINTL="\${top_builddir}/intl/libintl.a $LTLIBICONV"
20424         LIBS=`echo " $LIBS " | sed -e 's/ -lintl / /' -e 's/^ //' -e 's/ $//'`
20425       fi
20426
20427       CATOBJEXT=
20428       if test "$gt_use_preinstalled_gnugettext" = "yes" \
20429          || test "$nls_cv_use_gnu_gettext" = "yes"; then
20430                 CATOBJEXT=.gmo
20431       fi
20432
20433
20434     if test -n "$INTL_MACOSX_LIBS"; then
20435       if test "$gt_use_preinstalled_gnugettext" = "yes" \
20436          || test "$nls_cv_use_gnu_gettext" = "yes"; then
20437                 LIBINTL="$LIBINTL $INTL_MACOSX_LIBS"
20438         LTLIBINTL="$LTLIBINTL $INTL_MACOSX_LIBS"
20439       fi
20440     fi
20441
20442     if test "$gt_use_preinstalled_gnugettext" = "yes" \
20443        || test "$nls_cv_use_gnu_gettext" = "yes"; then
20444
20445 $as_echo "#define ENABLE_NLS 1" >>confdefs.h
20446
20447     else
20448       USE_NLS=no
20449     fi
20450   fi
20451
20452   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use NLS" >&5
20453 $as_echo_n "checking whether to use NLS... " >&6; }
20454   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
20455 $as_echo "$USE_NLS" >&6; }
20456   if test "$USE_NLS" = "yes"; then
20457     { $as_echo "$as_me:${as_lineno-$LINENO}: checking where the gettext function comes from" >&5
20458 $as_echo_n "checking where the gettext function comes from... " >&6; }
20459     if test "$gt_use_preinstalled_gnugettext" = "yes"; then
20460       if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
20461         gt_source="external libintl"
20462       else
20463         gt_source="libc"
20464       fi
20465     else
20466       gt_source="included intl directory"
20467     fi
20468     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_source" >&5
20469 $as_echo "$gt_source" >&6; }
20470   fi
20471
20472   if test "$USE_NLS" = "yes"; then
20473
20474     if test "$gt_use_preinstalled_gnugettext" = "yes"; then
20475       if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
20476         { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libintl" >&5
20477 $as_echo_n "checking how to link with libintl... " >&6; }
20478         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBINTL" >&5
20479 $as_echo "$LIBINTL" >&6; }
20480
20481   for element in $INCINTL; do
20482     haveit=
20483     for x in $CPPFLAGS; do
20484
20485   acl_save_prefix="$prefix"
20486   prefix="$acl_final_prefix"
20487   acl_save_exec_prefix="$exec_prefix"
20488   exec_prefix="$acl_final_exec_prefix"
20489   eval x=\"$x\"
20490   exec_prefix="$acl_save_exec_prefix"
20491   prefix="$acl_save_prefix"
20492
20493       if test "X$x" = "X$element"; then
20494         haveit=yes
20495         break
20496       fi
20497     done
20498     if test -z "$haveit"; then
20499       CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
20500     fi
20501   done
20502
20503       fi
20504
20505
20506 $as_echo "#define HAVE_GETTEXT 1" >>confdefs.h
20507
20508
20509 $as_echo "#define HAVE_DCGETTEXT 1" >>confdefs.h
20510
20511     fi
20512
20513         POSUB=po
20514   fi
20515
20516
20517             if test "$PACKAGE" = gettext-runtime || test "$PACKAGE" = gettext-tools; then
20518       BUILD_INCLUDED_LIBINTL=yes
20519     fi
20520
20521
20522
20523
20524
20525         nls_cv_header_intl=
20526     nls_cv_header_libgt=
20527
20528         DATADIRNAME=share
20529
20530
20531         INSTOBJEXT=.mo
20532
20533
20534         GENCAT=gencat
20535
20536
20537         INTLOBJS=
20538     if test "$USE_INCLUDED_LIBINTL" = yes; then
20539       INTLOBJS="\$(GETTOBJS)"
20540     fi
20541
20542
20543         INTL_LIBTOOL_SUFFIX_PREFIX=
20544
20545
20546
20547     INTLLIBS="$LIBINTL"
20548
20549
20550
20551
20552
20553
20554 fi
20555
20556 support_mysql=no
20557 support_sqlite=no
20558 support_sqlite3=no
20559 support_postgresql=no
20560 support_ingres=no
20561 support_dbi=no
20562 support_smartalloc=yes
20563 support_readline=yes
20564 support_conio=yes
20565 support_gnome=no
20566 support_bat=no
20567 support_wx_console=no
20568 support_tray_monitor=no
20569 support_tls=no
20570 support_crypto=no
20571 gnome_version=
20572 wx_version=
20573 support_static_tools=no
20574 support_static_fd=no
20575 support_static_sd=no
20576 support_static_dir=no
20577 support_static_cons=no
20578 support_python=no
20579 build_client_only=no
20580 build_dird=yes
20581 build_stored=yes
20582 cats=
20583 db_type=Internal
20584 support_lockmgr=no
20585 DB_TYPE=bdb
20586
20587
20588 # Check whether --enable-gnome was given.
20589 if test "${enable_gnome+set}" = set; then :
20590   enableval=$enable_gnome;
20591        if test x$enableval = xyes; then
20592           support_gnome=yes
20593        fi
20594
20595
20596 fi
20597
20598
20599 GNOME_DIR=
20600 if test x$support_gnome = xyes; then
20601    as_fn_error "bgnome-console no longer supported" "$LINENO" 5
20602    as_fn_error "--enable-gnome option no longer supported" "$LINENO" 5
20603 fi
20604 # AC_SUBST(GNOME_DIR)
20605
20606 # Check whether --enable-bat was given.
20607 if test "${enable_bat+set}" = set; then :
20608   enableval=$enable_bat;
20609        if test x$enableval = xyes; then
20610
20611 $as_echo "#define HAVE_BAT 1" >>confdefs.h
20612
20613           support_bat=yes
20614        fi
20615
20616
20617 fi
20618
20619
20620 BAT_DIR=
20621 if test x$support_bat = xyes; then
20622    abc=`$PKGCONFIG --atleast-version=4.2 QtGui`
20623    pkg=$?
20624    if test $pkg = 0; then
20625       BAT_DIR=src/qt-console
20626    else
20627       as_fn_error "Unable to find Qt4 installation needed by bat" "$LINENO" 5
20628    fi
20629 fi
20630
20631 got_qwt=no
20632 QWT_INC=
20633 QWT_LDFLAGS=
20634 QWT_LIB=
20635 QWT=
20636 no_qwt=no
20637
20638
20639
20640
20641
20642
20643
20644
20645 # Check whether --enable-bwx-console was given.
20646 if test "${enable_bwx_console+set}" = set; then :
20647   enableval=$enable_bwx_console;
20648        if test x$enableval = xyes; then
20649           support_wx_console=yes
20650        fi
20651
20652
20653 fi
20654
20655
20656 WX_DIR=
20657 if test x$support_wx_console = xyes; then
20658    abc=`$WXCONFIG $WXFLAGS --cppflags`
20659    pkg=$?
20660    if test $pkg = 0; then
20661       wx_version="wxWidgets `$WXCONFIG $WXFLAGS --release`"
20662       WXCONS_CPPFLAGS=`$WXCONFIG $WXFLAGS --cppflags`
20663       WXCONS_LDFLAGS=`$WXCONFIG $WXFLAGS --libs`
20664
20665
20666
20667       WX_DIR="src/wx-console"
20668    else
20669       echo " "
20670       echo "wx-config program not found. bwx-console disabled."
20671       echo " "
20672       support_wx_console=no
20673    fi
20674 fi
20675
20676
20677 # Check whether --enable-tray-monitor was given.
20678 if test "${enable_tray_monitor+set}" = set; then :
20679   enableval=$enable_tray_monitor;
20680        if test x$enableval = xyes; then
20681           support_tray_monitor=yes
20682        fi
20683
20684
20685 fi
20686
20687
20688 TRAY_MONITOR_DIR=
20689 if test x$support_tray_monitor = xyes; then
20690    abc=`$PKGCONFIG --exists gtk+-2.0`
20691    pkg=$?
20692    if test $pkg = 0; then
20693       TRAY_MONITOR_CPPFLAGS=`$PKGCONFIG --cflags gtk+-2.0`
20694       TRAY_MONITOR_LDFLAGS=`$PKGCONFIG --libs gtk+-2.0`
20695
20696
20697       TRAY_MONITOR_DIR=src/tray-monitor
20698       abc=`$PKGCONFIG --atleast-version=2.4 gtk+-2.0`
20699       pkg=$?
20700       if test $pkg = 0; then
20701
20702 $as_echo "#define HAVE_GTK_2_4 1" >>confdefs.h
20703
20704       fi
20705    fi
20706 fi
20707
20708
20709 # Check whether --enable-smartalloc was given.
20710 if test "${enable_smartalloc+set}" = set; then :
20711   enableval=$enable_smartalloc;
20712        if test x$enableval = xno; then
20713           support_smartalloc=no
20714        fi
20715
20716
20717 fi
20718
20719
20720 if test x$support_smartalloc = xyes; then
20721
20722 $as_echo "#define SMARTALLOC 1" >>confdefs.h
20723
20724 fi
20725
20726 # Check whether --enable-lockmgr was given.
20727 if test "${enable_lockmgr+set}" = set; then :
20728   enableval=$enable_lockmgr;
20729        if test x$enableval = xyes; then
20730           support_lockmgr=yes
20731        fi
20732
20733
20734 fi
20735
20736
20737 if test x$support_lockmgr = xyes; then
20738
20739 $as_echo "#define _USE_LOCKMGR 1" >>confdefs.h
20740
20741 fi
20742
20743
20744 # Check whether --enable-static-tools was given.
20745 if test "${enable_static_tools+set}" = set; then :
20746   enableval=$enable_static_tools;
20747        if test x$enableval = xyes; then
20748           if test x$use_libtool = xyes; then
20749              as_fn_error "Libtool is enabled, not compatible with static tools,
20750   please rerun configure with --disable-libtool" "$LINENO" 5
20751           fi
20752           support_static_tools=yes
20753        fi
20754
20755
20756 fi
20757
20758
20759 TTOOL_LDFLAGS=
20760 if test x$support_static_tools = xyes; then
20761    TTOOL_LDFLAGS="-static"
20762 fi
20763
20764
20765 # Check whether --enable-static-fd was given.
20766 if test "${enable_static_fd+set}" = set; then :
20767   enableval=$enable_static_fd;
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_fd=yes
20774        fi
20775
20776
20777 fi
20778
20779
20780 STATIC_FD=
20781 if test x$support_static_fd = xyes; then
20782    STATIC_FD="static-bacula-fd"
20783 fi
20784
20785
20786 # Check whether --enable-static-sd was given.
20787 if test "${enable_static_sd+set}" = set; then :
20788   enableval=$enable_static_sd;
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_sd=yes
20795        fi
20796
20797
20798 fi
20799
20800
20801 STATIC_SD=
20802 if test x$support_static_sd = xyes; then
20803    STATIC_SD="static-bacula-sd"
20804 fi
20805
20806
20807 # Check whether --enable-static-dir was given.
20808 if test "${enable_static_dir+set}" = set; then :
20809   enableval=$enable_static_dir;
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_dir=yes
20816        fi
20817
20818
20819 fi
20820
20821
20822 STATIC_DIR=
20823 if test x$support_static_dir = xyes; then
20824    STATIC_DIR="static-bacula-dir"
20825 fi
20826
20827
20828 # Check whether --enable-static-cons was given.
20829 if test "${enable_static_cons+set}" = set; then :
20830   enableval=$enable_static_cons;
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_cons=yes
20837        fi
20838
20839
20840 fi
20841
20842
20843 STATIC_CONS=
20844 STATIC_GNOME_CONS=
20845 STATIC_WX_CONS=
20846 if test x$support_static_cons = xyes; then
20847    STATIC_CONS="static-bconsole"
20848    STATIC_GNOME_CONS="static-bgnome-console"
20849    STATIC_WX_CONS="static-bwx-console"
20850 fi
20851
20852
20853
20854
20855 # Check whether --enable-client-only was given.
20856 if test "${enable_client_only+set}" = set; then :
20857   enableval=$enable_client_only;
20858        if test x$enableval = xyes; then
20859           build_client_only=yes
20860           db_type=None
20861           DB_TYPE=none
20862        fi
20863
20864
20865 fi
20866
20867 if test x$build_client_only = xno; then
20868    ALL_DIRS="subdirs"
20869 else
20870    ALL_DIRS=""
20871 fi
20872
20873
20874 # Check whether --enable-build-dird was given.
20875 if test "${enable_build_dird+set}" = set; then :
20876   enableval=$enable_build_dird;
20877        if test x$enableval = xno; then
20878           build_dird=no
20879        fi
20880
20881
20882 fi
20883
20884 if test x$build_dird = xyes; then
20885    DIRD_DIR="src/dird"
20886    DIR_TOOLS="DIRTOOLS"
20887 else
20888    DIRD_DIR=""
20889    DIR_TOOLS="NODIRTOOLS"
20890 fi
20891
20892
20893
20894 # Check whether --enable-build-stored was given.
20895 if test "${enable_build_stored+set}" = set; then :
20896   enableval=$enable_build_stored;
20897       if test x$enableval = xno; then
20898          build_stored=no
20899       fi
20900
20901
20902 fi
20903
20904 if test x$build_stored = xyes; then
20905    STORED_DIR="src/stored"
20906 else
20907    STORED_DIR=""
20908 fi
20909
20910
20911 # Check whether --enable-conio was given.
20912 if test "${enable_conio+set}" = set; then :
20913   enableval=$enable_conio;
20914        if test x$enableval = xno; then
20915           support_conio=no
20916        fi
20917
20918
20919 fi
20920
20921
20922
20923 support_ipv6=yes
20924 # Check whether --enable-ipv6 was given.
20925 if test "${enable_ipv6+set}" = set; then :
20926   enableval=$enable_ipv6;
20927        if test x$enableval = xno; then
20928           support_ipv6=no
20929        fi
20930
20931
20932 fi
20933
20934
20935 if test x$support_ipv6 = xyes; then
20936     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20937 /* end confdefs.h.  */
20938  #include <sys/types.h>
20939 #include <sys/socket.h>
20940 #include <netinet/in.h>
20941 int
20942 main ()
20943 {
20944 struct sockaddr_in6 s; struct in6_addr t=in6addr_any; int i=AF_INET6; s; t.s6_addr[0] = 0;
20945   ;
20946   return 0;
20947 }
20948 _ACEOF
20949 if ac_fn_c_try_link "$LINENO"; then :
20950   support_ipv6=yes
20951 else
20952   support_ipv6=no
20953 fi
20954 rm -f core conftest.err conftest.$ac_objext \
20955     conftest$ac_exeext conftest.$ac_ext
20956 fi
20957
20958 if test x$support_ipv6 = xyes; then
20959
20960 $as_echo "#define HAVE_IPV6 1" >>confdefs.h
20961
20962 fi
20963
20964 TERM_LIB=""
20965 ac_fn_c_check_header_mongrel "$LINENO" "termcap.h" "ac_cv_header_termcap_h" "$ac_includes_default"
20966 if test "x$ac_cv_header_termcap_h" = x""yes; then :
20967    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tgetent in -ltermcap" >&5
20968 $as_echo_n "checking for tgetent in -ltermcap... " >&6; }
20969 if test "${ac_cv_lib_termcap_tgetent+set}" = set; then :
20970   $as_echo_n "(cached) " >&6
20971 else
20972   ac_check_lib_save_LIBS=$LIBS
20973 LIBS="-ltermcap  $LIBS"
20974 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20975 /* end confdefs.h.  */
20976
20977 /* Override any GCC internal prototype to avoid an error.
20978    Use char because int might match the return type of a GCC
20979    builtin and then its argument prototype would still apply.  */
20980 #ifdef __cplusplus
20981 extern "C"
20982 #endif
20983 char tgetent ();
20984 int
20985 main ()
20986 {
20987 return tgetent ();
20988   ;
20989   return 0;
20990 }
20991 _ACEOF
20992 if ac_fn_c_try_link "$LINENO"; then :
20993   ac_cv_lib_termcap_tgetent=yes
20994 else
20995   ac_cv_lib_termcap_tgetent=no
20996 fi
20997 rm -f core conftest.err conftest.$ac_objext \
20998     conftest$ac_exeext conftest.$ac_ext
20999 LIBS=$ac_check_lib_save_LIBS
21000 fi
21001 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_termcap_tgetent" >&5
21002 $as_echo "$ac_cv_lib_termcap_tgetent" >&6; }
21003 if test "x$ac_cv_lib_termcap_tgetent" = x""yes; then :
21004    TERM_LIB="-ltermcap"
21005 else
21006    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tgetent in -lncurses" >&5
21007 $as_echo_n "checking for tgetent in -lncurses... " >&6; }
21008 if test "${ac_cv_lib_ncurses_tgetent+set}" = set; then :
21009   $as_echo_n "(cached) " >&6
21010 else
21011   ac_check_lib_save_LIBS=$LIBS
21012 LIBS="-lncurses  $LIBS"
21013 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21014 /* end confdefs.h.  */
21015
21016 /* Override any GCC internal prototype to avoid an error.
21017    Use char because int might match the return type of a GCC
21018    builtin and then its argument prototype would still apply.  */
21019 #ifdef __cplusplus
21020 extern "C"
21021 #endif
21022 char tgetent ();
21023 int
21024 main ()
21025 {
21026 return tgetent ();
21027   ;
21028   return 0;
21029 }
21030 _ACEOF
21031 if ac_fn_c_try_link "$LINENO"; then :
21032   ac_cv_lib_ncurses_tgetent=yes
21033 else
21034   ac_cv_lib_ncurses_tgetent=no
21035 fi
21036 rm -f core conftest.err conftest.$ac_objext \
21037     conftest$ac_exeext conftest.$ac_ext
21038 LIBS=$ac_check_lib_save_LIBS
21039 fi
21040 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ncurses_tgetent" >&5
21041 $as_echo "$ac_cv_lib_ncurses_tgetent" >&6; }
21042 if test "x$ac_cv_lib_ncurses_tgetent" = x""yes; then :
21043    TERM_LIB="-lncurses"
21044 fi
21045
21046
21047 fi
21048
21049
21050 else
21051     for ac_header in curses.h
21052 do :
21053   ac_fn_c_check_header_mongrel "$LINENO" "curses.h" "ac_cv_header_curses_h" "$ac_includes_default"
21054 if test "x$ac_cv_header_curses_h" = x""yes; then :
21055   cat >>confdefs.h <<_ACEOF
21056 #define HAVE_CURSES_H 1
21057 _ACEOF
21058
21059 fi
21060
21061 done
21062
21063      ac_fn_c_check_header_mongrel "$LINENO" "term.h" "ac_cv_header_term_h" "$ac_includes_default"
21064 if test "x$ac_cv_header_term_h" = x""yes; then :
21065    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tgetent in -lcurses" >&5
21066 $as_echo_n "checking for tgetent in -lcurses... " >&6; }
21067 if test "${ac_cv_lib_curses_tgetent+set}" = set; then :
21068   $as_echo_n "(cached) " >&6
21069 else
21070   ac_check_lib_save_LIBS=$LIBS
21071 LIBS="-lcurses  $LIBS"
21072 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21073 /* end confdefs.h.  */
21074
21075 /* Override any GCC internal prototype to avoid an error.
21076    Use char because int might match the return type of a GCC
21077    builtin and then its argument prototype would still apply.  */
21078 #ifdef __cplusplus
21079 extern "C"
21080 #endif
21081 char tgetent ();
21082 int
21083 main ()
21084 {
21085 return tgetent ();
21086   ;
21087   return 0;
21088 }
21089 _ACEOF
21090 if ac_fn_c_try_link "$LINENO"; then :
21091   ac_cv_lib_curses_tgetent=yes
21092 else
21093   ac_cv_lib_curses_tgetent=no
21094 fi
21095 rm -f core conftest.err conftest.$ac_objext \
21096     conftest$ac_exeext conftest.$ac_ext
21097 LIBS=$ac_check_lib_save_LIBS
21098 fi
21099 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_curses_tgetent" >&5
21100 $as_echo "$ac_cv_lib_curses_tgetent" >&6; }
21101 if test "x$ac_cv_lib_curses_tgetent" = x""yes; then :
21102    TERM_LIB="-lcurses"
21103 fi
21104
21105
21106 fi
21107
21108
21109
21110 fi
21111
21112
21113
21114
21115 got_conio="no"
21116 if test x$support_conio = xyes; then
21117    if test x$TERM_LIB != x; then
21118       CONS_LIBS=$TERM_LIB
21119       CONS_OBJ="conio.o"
21120       CONS_SRC="conio.c"
21121       got_conio="yes"
21122       support_readline=no
21123
21124 $as_echo "#define HAVE_CONIO 1" >>confdefs.h
21125
21126    else
21127       echo " "; echo "Required libraries not found. CONIO turned off ..."; echo " "],
21128    fi
21129 fi
21130
21131
21132 # Check whether --enable-readline was given.
21133 if test "${enable_readline+set}" = set; then :
21134   enableval=$enable_readline;
21135        if test x$enableval = xno; then
21136           support_readline=no
21137        fi
21138
21139
21140 fi
21141
21142 if test x$TERM_LIB = x ; then
21143    support_readline=no
21144 fi
21145
21146 got_readline="no"
21147 READLINE_SRC=
21148 if test x$support_readline = xyes; then
21149
21150 # Check whether --with-readline was given.
21151 if test "${with_readline+set}" = set; then :
21152   withval=$with_readline;
21153           case "$with_readline" in
21154           no)
21155              :
21156              ;;
21157           yes|*)
21158              if test -f ${with_readline}/readline.h; then
21159                 CONS_INC="-I${with_readline}"
21160                 CONS_LDFLAGS="-L$with_readline"
21161              elif test -f ${with_readline}/include/readline/readline.h; then
21162                 CONS_INC="-I${with_readline}/include/readline"
21163                 CONS_LDFLAGS="-L${with_readline}/lib"
21164                 with_readline="${with_readline}/include/readline"
21165              else
21166                 with_readline="/usr/include/readline"
21167              fi
21168
21169              as_ac_Header=`$as_echo "ac_cv_header_${with_readline}/readline.h" | $as_tr_sh`
21170 ac_fn_c_check_header_mongrel "$LINENO" "${with_readline}/readline.h" "$as_ac_Header" "$ac_includes_default"
21171 eval as_val=\$$as_ac_Header
21172    if test "x$as_val" = x""yes; then :
21173
21174
21175 $as_echo "#define HAVE_READLINE 1" >>confdefs.h
21176
21177                     CONS_LIBS="-lreadline -lhistory $TERM_LIB"
21178                     got_readline="yes"
21179
21180 else
21181
21182                     echo " "
21183                     echo "readline.h not found. readline turned off ..."
21184                     echo " "
21185
21186
21187 fi
21188
21189
21190              ;;
21191           esac
21192
21193 else
21194
21195                  ac_fn_c_check_header_mongrel "$LINENO" "/usr/include/readline/readline.h" "ac_cv_header__usr_include_readline_readline_h" "$ac_includes_default"
21196 if test "x$ac_cv_header__usr_include_readline_readline_h" = x""yes; then :
21197
21198
21199 $as_echo "#define HAVE_READLINE 1" >>confdefs.h
21200
21201                 got_readline="yes"
21202                 CONS_INC="-I/usr/include/readline"
21203                 CONS_LIBS="-lreadline $TERM_LIB"
21204
21205 else
21206
21207                                 as_ac_Header=`$as_echo "ac_cv_header_${TOP_DIR}/depkgs/readline/readline.h" | $as_tr_sh`
21208 ac_fn_c_check_header_mongrel "$LINENO" "${TOP_DIR}/depkgs/readline/readline.h" "$as_ac_Header" "$ac_includes_default"
21209 eval as_val=\$$as_ac_Header
21210    if test "x$as_val" = x""yes; then :
21211
21212
21213 $as_echo "#define HAVE_READLINE 1" >>confdefs.h
21214
21215                         got_readline="yes"
21216                         CONS_INC="-I${TOP_DIR}/depkgs/readline"
21217                         CONS_LIBS="-lreadline -lhistory $TERM_LIB"
21218                         CONS_LDFLAGS="-L${TOP_DIR}/depkgs/readline"
21219                         PRTREADLINE_SRC="${TOP_DIR}/depkgs/readline"
21220
21221 else
21222
21223                         echo " "
21224                         echo "readline.h not found. readline turned off ..."
21225                         echo " "
21226
21227
21228 fi
21229
21230
21231
21232
21233 fi
21234
21235
21236
21237
21238 fi
21239
21240 fi
21241
21242
21243
21244
21245
21246
21247
21248
21249 MAKE_SHELL=/bin/sh
21250
21251 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat file-mode macros are broken" >&5
21252 $as_echo_n "checking whether stat file-mode macros are broken... " >&6; }
21253 if test "${ac_cv_header_stat_broken+set}" = set; then :
21254   $as_echo_n "(cached) " >&6
21255 else
21256   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21257 /* end confdefs.h.  */
21258 #include <sys/types.h>
21259 #include <sys/stat.h>
21260
21261 #if defined S_ISBLK && defined S_IFDIR
21262 extern char c1[S_ISBLK (S_IFDIR) ? -1 : 1];
21263 #endif
21264
21265 #if defined S_ISBLK && defined S_IFCHR
21266 extern char c2[S_ISBLK (S_IFCHR) ? -1 : 1];
21267 #endif
21268
21269 #if defined S_ISLNK && defined S_IFREG
21270 extern char c3[S_ISLNK (S_IFREG) ? -1 : 1];
21271 #endif
21272
21273 #if defined S_ISSOCK && defined S_IFREG
21274 extern char c4[S_ISSOCK (S_IFREG) ? -1 : 1];
21275 #endif
21276
21277 _ACEOF
21278 if ac_fn_c_try_compile "$LINENO"; then :
21279   ac_cv_header_stat_broken=no
21280 else
21281   ac_cv_header_stat_broken=yes
21282 fi
21283 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21284 fi
21285 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stat_broken" >&5
21286 $as_echo "$ac_cv_header_stat_broken" >&6; }
21287 if test $ac_cv_header_stat_broken = yes; then
21288
21289 $as_echo "#define STAT_MACROS_BROKEN 1" >>confdefs.h
21290
21291 fi
21292
21293 ac_header_dirent=no
21294 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
21295   as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
21296 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_hdr that defines DIR" >&5
21297 $as_echo_n "checking for $ac_hdr that defines DIR... " >&6; }
21298 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then :
21299   $as_echo_n "(cached) " >&6
21300 else
21301   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21302 /* end confdefs.h.  */
21303 #include <sys/types.h>
21304 #include <$ac_hdr>
21305
21306 int
21307 main ()
21308 {
21309 if ((DIR *) 0)
21310 return 0;
21311   ;
21312   return 0;
21313 }
21314 _ACEOF
21315 if ac_fn_c_try_compile "$LINENO"; then :
21316   eval "$as_ac_Header=yes"
21317 else
21318   eval "$as_ac_Header=no"
21319 fi
21320 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21321 fi
21322 eval ac_res=\$$as_ac_Header
21323                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
21324 $as_echo "$ac_res" >&6; }
21325 eval as_val=\$$as_ac_Header
21326    if test "x$as_val" = x""yes; then :
21327   cat >>confdefs.h <<_ACEOF
21328 #define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
21329 _ACEOF
21330
21331 ac_header_dirent=$ac_hdr; break
21332 fi
21333
21334 done
21335 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
21336 if test $ac_header_dirent = dirent.h; then
21337   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
21338 $as_echo_n "checking for library containing opendir... " >&6; }
21339 if test "${ac_cv_search_opendir+set}" = set; then :
21340   $as_echo_n "(cached) " >&6
21341 else
21342   ac_func_search_save_LIBS=$LIBS
21343 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21344 /* end confdefs.h.  */
21345
21346 /* Override any GCC internal prototype to avoid an error.
21347    Use char because int might match the return type of a GCC
21348    builtin and then its argument prototype would still apply.  */
21349 #ifdef __cplusplus
21350 extern "C"
21351 #endif
21352 char opendir ();
21353 int
21354 main ()
21355 {
21356 return opendir ();
21357   ;
21358   return 0;
21359 }
21360 _ACEOF
21361 for ac_lib in '' dir; do
21362   if test -z "$ac_lib"; then
21363     ac_res="none required"
21364   else
21365     ac_res=-l$ac_lib
21366     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
21367   fi
21368   if ac_fn_c_try_link "$LINENO"; then :
21369   ac_cv_search_opendir=$ac_res
21370 fi
21371 rm -f core conftest.err conftest.$ac_objext \
21372     conftest$ac_exeext
21373   if test "${ac_cv_search_opendir+set}" = set; then :
21374   break
21375 fi
21376 done
21377 if test "${ac_cv_search_opendir+set}" = set; then :
21378
21379 else
21380   ac_cv_search_opendir=no
21381 fi
21382 rm conftest.$ac_ext
21383 LIBS=$ac_func_search_save_LIBS
21384 fi
21385 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
21386 $as_echo "$ac_cv_search_opendir" >&6; }
21387 ac_res=$ac_cv_search_opendir
21388 if test "$ac_res" != no; then :
21389   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
21390
21391 fi
21392
21393 else
21394   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
21395 $as_echo_n "checking for library containing opendir... " >&6; }
21396 if test "${ac_cv_search_opendir+set}" = set; then :
21397   $as_echo_n "(cached) " >&6
21398 else
21399   ac_func_search_save_LIBS=$LIBS
21400 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21401 /* end confdefs.h.  */
21402
21403 /* Override any GCC internal prototype to avoid an error.
21404    Use char because int might match the return type of a GCC
21405    builtin and then its argument prototype would still apply.  */
21406 #ifdef __cplusplus
21407 extern "C"
21408 #endif
21409 char opendir ();
21410 int
21411 main ()
21412 {
21413 return opendir ();
21414   ;
21415   return 0;
21416 }
21417 _ACEOF
21418 for ac_lib in '' x; do
21419   if test -z "$ac_lib"; then
21420     ac_res="none required"
21421   else
21422     ac_res=-l$ac_lib
21423     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
21424   fi
21425   if ac_fn_c_try_link "$LINENO"; then :
21426   ac_cv_search_opendir=$ac_res
21427 fi
21428 rm -f core conftest.err conftest.$ac_objext \
21429     conftest$ac_exeext
21430   if test "${ac_cv_search_opendir+set}" = set; then :
21431   break
21432 fi
21433 done
21434 if test "${ac_cv_search_opendir+set}" = set; then :
21435
21436 else
21437   ac_cv_search_opendir=no
21438 fi
21439 rm conftest.$ac_ext
21440 LIBS=$ac_func_search_save_LIBS
21441 fi
21442 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
21443 $as_echo "$ac_cv_search_opendir" >&6; }
21444 ac_res=$ac_cv_search_opendir
21445 if test "$ac_res" != no; then :
21446   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
21447
21448 fi
21449
21450 fi
21451
21452 for ac_func in strcasecmp select setenv putenv tcgetattr lstat lchown
21453 do :
21454   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
21455 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
21456 eval as_val=\$$as_ac_var
21457    if test "x$as_val" = x""yes; then :
21458   cat >>confdefs.h <<_ACEOF
21459 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
21460 _ACEOF
21461
21462 fi
21463 done
21464
21465 for ac_func in nanosleep nl_langinfo
21466 do :
21467   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
21468 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
21469 eval as_val=\$$as_ac_var
21470    if test "x$as_val" = x""yes; then :
21471   cat >>confdefs.h <<_ACEOF
21472 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
21473 _ACEOF
21474
21475 fi
21476 done
21477
21478 for ac_header in varargs.h
21479 do :
21480   ac_fn_c_check_header_mongrel "$LINENO" "varargs.h" "ac_cv_header_varargs_h" "$ac_includes_default"
21481 if test "x$ac_cv_header_varargs_h" = x""yes; then :
21482   cat >>confdefs.h <<_ACEOF
21483 #define HAVE_VARARGS_H 1
21484 _ACEOF
21485
21486 fi
21487
21488 done
21489
21490
21491
21492 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Python support" >&5
21493 $as_echo_n "checking for Python support... " >&6; }
21494
21495 # Check whether --with-python was given.
21496 if test "${with_python+set}" = set; then :
21497   withval=$with_python;
21498        PYTHON_INCDIR=
21499        PYTHON_LIBS=
21500        if test "$withval" != "no"; then
21501           if test "$withval" = "yes"; then
21502              if test -e /usr/bin/python-config ; then
21503                 PYTHON_INCDIR=`/usr/bin/python-config --includes`
21504                 PYTHON_LIBS=`/usr/bin/python-config --libs`
21505              else
21506                 for python_root in /usr /usr/local /usr/sfw; do
21507                    for ver in python2.2 python2.3 python2.4 python2.5 python2.6 python3; do
21508                       if test -f $python_root/include/${ver}/Python.h; then
21509                          PYTHON_INCDIR=-I$python_root/include/${ver}
21510                          if test -d $python_root/lib64/${ver}/config; then
21511                             PYTHON_LIBS="-L$python_root/lib64/${ver}/config -l${ver}"
21512                          else
21513                             PYTHON_LIBS="-L$python_root/lib/${ver}/config -l${ver}"
21514                          fi
21515                          break
21516                       fi
21517                    done
21518                 done
21519
21520                 if test x$PYTHON_INCDIR = x; then
21521                    if test -f $prefix/include/Python.h; then
21522                       PYTHON_INCDIR=-I$prefix/include
21523                       if test -d $prefix/lib64/config; then
21524                          PYTHON_LIBS="-L$prefix/lib64/config -lpython"
21525                       else
21526                          PYTHON_LIBS="-L$prefix/lib/config -lpython"
21527                       fi
21528                    else
21529                       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21530 $as_echo "no" >&6; }
21531                       as_fn_error "Unable to find Python.h in standard locations" "$LINENO" 5
21532                    fi
21533                 fi
21534              fi
21535           else
21536              if test -e $withval/bin/python-config ; then
21537                 PYTHON_INCDIR=`$withval/bin/python-config --includes`
21538                 PYTHON_LIBS=`$withval/bin/python-config --libs`
21539              elif test -f $withval/Python.h; then
21540                 PYTHON_INCDIR=-I$withval
21541                 PYTHON_LIBS="-L$withval/config -lpython"
21542              elif test -f $withval/include/Python.h; then
21543                 PYTHON_INCDIR=-I$withval/include
21544                 if test -d $withval/lib64/config; then
21545                    PYTHON_LIBS="-L$withval/lib64/config -lpython"
21546                 else
21547                    PYTHON_LIBS="-L$withval/lib/config -lpython"
21548                 fi
21549              elif test -f $withval/include/python/Python.h; then
21550                 PYTHON_INCDIR=-I$withval/include/python
21551                 if test -d $withval/lib64/python/config; then
21552                    PYTHON_LIBS="-L$withval/lib64/python/config -lpython"
21553                 else
21554                    PYTHON_LIBS="-L$withval/lib/python/config -lpython"
21555                 fi
21556              else
21557                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21558 $as_echo "no" >&6; }
21559                 as_fn_error "Invalid Python directory $withval - unable to find Python.h under $withval" "$LINENO" 5
21560              fi
21561           fi
21562
21563           $as_echo "#define HAVE_PYTHON 1" >>confdefs.h
21564
21565           { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21566 $as_echo "yes" >&6; }
21567           support_python=yes
21568           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for more Python libs" >&5
21569 $as_echo "$as_me: checking for more Python libs" >&6;}
21570           saved_LIBS="$LIBS"; LIBS=
21571           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing shm_open" >&5
21572 $as_echo_n "checking for library containing shm_open... " >&6; }
21573 if test "${ac_cv_search_shm_open+set}" = set; then :
21574   $as_echo_n "(cached) " >&6
21575 else
21576   ac_func_search_save_LIBS=$LIBS
21577 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21578 /* end confdefs.h.  */
21579
21580 /* Override any GCC internal prototype to avoid an error.
21581    Use char because int might match the return type of a GCC
21582    builtin and then its argument prototype would still apply.  */
21583 #ifdef __cplusplus
21584 extern "C"
21585 #endif
21586 char shm_open ();
21587 int
21588 main ()
21589 {
21590 return shm_open ();
21591   ;
21592   return 0;
21593 }
21594 _ACEOF
21595 for ac_lib in '' rt; do
21596   if test -z "$ac_lib"; then
21597     ac_res="none required"
21598   else
21599     ac_res=-l$ac_lib
21600     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
21601   fi
21602   if ac_fn_c_try_link "$LINENO"; then :
21603   ac_cv_search_shm_open=$ac_res
21604 fi
21605 rm -f core conftest.err conftest.$ac_objext \
21606     conftest$ac_exeext
21607   if test "${ac_cv_search_shm_open+set}" = set; then :
21608   break
21609 fi
21610 done
21611 if test "${ac_cv_search_shm_open+set}" = set; then :
21612
21613 else
21614   ac_cv_search_shm_open=no
21615 fi
21616 rm conftest.$ac_ext
21617 LIBS=$ac_func_search_save_LIBS
21618 fi
21619 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_shm_open" >&5
21620 $as_echo "$ac_cv_search_shm_open" >&6; }
21621 ac_res=$ac_cv_search_shm_open
21622 if test "$ac_res" != no; then :
21623   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
21624
21625 fi
21626
21627           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for openpty in -lutil" >&5
21628 $as_echo_n "checking for openpty in -lutil... " >&6; }
21629 if test "${ac_cv_lib_util_openpty+set}" = set; then :
21630   $as_echo_n "(cached) " >&6
21631 else
21632   ac_check_lib_save_LIBS=$LIBS
21633 LIBS="-lutil  $LIBS"
21634 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21635 /* end confdefs.h.  */
21636
21637 /* Override any GCC internal prototype to avoid an error.
21638    Use char because int might match the return type of a GCC
21639    builtin and then its argument prototype would still apply.  */
21640 #ifdef __cplusplus
21641 extern "C"
21642 #endif
21643 char openpty ();
21644 int
21645 main ()
21646 {
21647 return openpty ();
21648   ;
21649   return 0;
21650 }
21651 _ACEOF
21652 if ac_fn_c_try_link "$LINENO"; then :
21653   ac_cv_lib_util_openpty=yes
21654 else
21655   ac_cv_lib_util_openpty=no
21656 fi
21657 rm -f core conftest.err conftest.$ac_objext \
21658     conftest$ac_exeext conftest.$ac_ext
21659 LIBS=$ac_check_lib_save_LIBS
21660 fi
21661 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_util_openpty" >&5
21662 $as_echo "$ac_cv_lib_util_openpty" >&6; }
21663 if test "x$ac_cv_lib_util_openpty" = x""yes; then :
21664   cat >>confdefs.h <<_ACEOF
21665 #define HAVE_LIBUTIL 1
21666 _ACEOF
21667
21668   LIBS="-lutil $LIBS"
21669
21670 fi
21671
21672           PYTHON_LIBS="$PYTHON_LIBS $LIBS"
21673           LIBS="$saved_LIBS"
21674        else
21675           { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21676 $as_echo "no" >&6; }
21677        fi
21678
21679 else
21680
21681        { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21682 $as_echo "no" >&6; }
21683
21684
21685 fi
21686
21687
21688
21689
21690 ac_fn_c_check_func "$LINENO" "socket" "ac_cv_func_socket"
21691 if test "x$ac_cv_func_socket" = x""yes; then :
21692   { $as_echo "$as_me:${as_lineno-$LINENO}: result: using libc's socket" >&5
21693 $as_echo "using libc's socket" >&6; }
21694 else
21695   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socket in -lxnet" >&5
21696 $as_echo_n "checking for socket in -lxnet... " >&6; }
21697 if test "${ac_cv_lib_xnet_socket+set}" = set; then :
21698   $as_echo_n "(cached) " >&6
21699 else
21700   ac_check_lib_save_LIBS=$LIBS
21701 LIBS="-lxnet  $LIBS"
21702 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21703 /* end confdefs.h.  */
21704
21705 /* Override any GCC internal prototype to avoid an error.
21706    Use char because int might match the return type of a GCC
21707    builtin and then its argument prototype would still apply.  */
21708 #ifdef __cplusplus
21709 extern "C"
21710 #endif
21711 char socket ();
21712 int
21713 main ()
21714 {
21715 return socket ();
21716   ;
21717   return 0;
21718 }
21719 _ACEOF
21720 if ac_fn_c_try_link "$LINENO"; then :
21721   ac_cv_lib_xnet_socket=yes
21722 else
21723   ac_cv_lib_xnet_socket=no
21724 fi
21725 rm -f core conftest.err conftest.$ac_objext \
21726     conftest$ac_exeext conftest.$ac_ext
21727 LIBS=$ac_check_lib_save_LIBS
21728 fi
21729 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_xnet_socket" >&5
21730 $as_echo "$ac_cv_lib_xnet_socket" >&6; }
21731 if test "x$ac_cv_lib_xnet_socket" = x""yes; then :
21732   cat >>confdefs.h <<_ACEOF
21733 #define HAVE_LIBXNET 1
21734 _ACEOF
21735
21736   LIBS="-lxnet $LIBS"
21737
21738 fi
21739
21740     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socket in -lsocket" >&5
21741 $as_echo_n "checking for socket in -lsocket... " >&6; }
21742 if test "${ac_cv_lib_socket_socket+set}" = set; then :
21743   $as_echo_n "(cached) " >&6
21744 else
21745   ac_check_lib_save_LIBS=$LIBS
21746 LIBS="-lsocket  $LIBS"
21747 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21748 /* end confdefs.h.  */
21749
21750 /* Override any GCC internal prototype to avoid an error.
21751    Use char because int might match the return type of a GCC
21752    builtin and then its argument prototype would still apply.  */
21753 #ifdef __cplusplus
21754 extern "C"
21755 #endif
21756 char socket ();
21757 int
21758 main ()
21759 {
21760 return socket ();
21761   ;
21762   return 0;
21763 }
21764 _ACEOF
21765 if ac_fn_c_try_link "$LINENO"; then :
21766   ac_cv_lib_socket_socket=yes
21767 else
21768   ac_cv_lib_socket_socket=no
21769 fi
21770 rm -f core conftest.err conftest.$ac_objext \
21771     conftest$ac_exeext conftest.$ac_ext
21772 LIBS=$ac_check_lib_save_LIBS
21773 fi
21774 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_socket" >&5
21775 $as_echo "$ac_cv_lib_socket_socket" >&6; }
21776 if test "x$ac_cv_lib_socket_socket" = x""yes; then :
21777   cat >>confdefs.h <<_ACEOF
21778 #define HAVE_LIBSOCKET 1
21779 _ACEOF
21780
21781   LIBS="-lsocket $LIBS"
21782
21783 fi
21784
21785     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socket in -linet" >&5
21786 $as_echo_n "checking for socket in -linet... " >&6; }
21787 if test "${ac_cv_lib_inet_socket+set}" = set; then :
21788   $as_echo_n "(cached) " >&6
21789 else
21790   ac_check_lib_save_LIBS=$LIBS
21791 LIBS="-linet  $LIBS"
21792 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21793 /* end confdefs.h.  */
21794
21795 /* Override any GCC internal prototype to avoid an error.
21796    Use char because int might match the return type of a GCC
21797    builtin and then its argument prototype would still apply.  */
21798 #ifdef __cplusplus
21799 extern "C"
21800 #endif
21801 char socket ();
21802 int
21803 main ()
21804 {
21805 return socket ();
21806   ;
21807   return 0;
21808 }
21809 _ACEOF
21810 if ac_fn_c_try_link "$LINENO"; then :
21811   ac_cv_lib_inet_socket=yes
21812 else
21813   ac_cv_lib_inet_socket=no
21814 fi
21815 rm -f core conftest.err conftest.$ac_objext \
21816     conftest$ac_exeext conftest.$ac_ext
21817 LIBS=$ac_check_lib_save_LIBS
21818 fi
21819 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_inet_socket" >&5
21820 $as_echo "$ac_cv_lib_inet_socket" >&6; }
21821 if test "x$ac_cv_lib_inet_socket" = x""yes; then :
21822   cat >>confdefs.h <<_ACEOF
21823 #define HAVE_LIBINET 1
21824 _ACEOF
21825
21826   LIBS="-linet $LIBS"
21827
21828 fi
21829
21830 fi
21831
21832
21833 TCPW_MSG="no"
21834 WRAPLIBS=""
21835
21836 # Check whether --with-tcp-wrappers was given.
21837 if test "${with_tcp_wrappers+set}" = set; then :
21838   withval=$with_tcp_wrappers;
21839        if test "x$withval" != "xno" ; then
21840           saved_LIBS="$LIBS"
21841           LIBS="$saved_LIBS -lwrap"
21842           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing nanosleep" >&5
21843 $as_echo_n "checking for library containing nanosleep... " >&6; }
21844 if test "${ac_cv_search_nanosleep+set}" = set; then :
21845   $as_echo_n "(cached) " >&6
21846 else
21847   ac_func_search_save_LIBS=$LIBS
21848 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21849 /* end confdefs.h.  */
21850
21851 /* Override any GCC internal prototype to avoid an error.
21852    Use char because int might match the return type of a GCC
21853    builtin and then its argument prototype would still apply.  */
21854 #ifdef __cplusplus
21855 extern "C"
21856 #endif
21857 char nanosleep ();
21858 int
21859 main ()
21860 {
21861 return nanosleep ();
21862   ;
21863   return 0;
21864 }
21865 _ACEOF
21866 for ac_lib in '' rt; do
21867   if test -z "$ac_lib"; then
21868     ac_res="none required"
21869   else
21870     ac_res=-l$ac_lib
21871     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
21872   fi
21873   if ac_fn_c_try_link "$LINENO"; then :
21874   ac_cv_search_nanosleep=$ac_res
21875 fi
21876 rm -f core conftest.err conftest.$ac_objext \
21877     conftest$ac_exeext
21878   if test "${ac_cv_search_nanosleep+set}" = set; then :
21879   break
21880 fi
21881 done
21882 if test "${ac_cv_search_nanosleep+set}" = set; then :
21883
21884 else
21885   ac_cv_search_nanosleep=no
21886 fi
21887 rm conftest.$ac_ext
21888 LIBS=$ac_func_search_save_LIBS
21889 fi
21890 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_nanosleep" >&5
21891 $as_echo "$ac_cv_search_nanosleep" >&6; }
21892 ac_res=$ac_cv_search_nanosleep
21893 if test "$ac_res" != no; then :
21894   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
21895
21896 fi
21897
21898           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libwrap" >&5
21899 $as_echo_n "checking for libwrap... " >&6; }
21900           cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21901 /* end confdefs.h.  */
21902
21903                #include <sys/types.h>
21904                #include <tcpd.h>
21905                int deny_severity = 0;
21906                int allow_severity = 0;
21907                struct request_info *req;
21908
21909 int
21910 main ()
21911 {
21912
21913                 hosts_access(req);
21914
21915   ;
21916   return 0;
21917 }
21918 _ACEOF
21919 if ac_fn_c_try_link "$LINENO"; then :
21920
21921                  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21922 $as_echo "yes" >&6; }
21923
21924 $as_echo "#define HAVE_LIBWRAP 1" >>confdefs.h
21925
21926                  TCPW_MSG="yes"
21927                  LIBS="$saved_LIBS"
21928                  WRAPLIBS="-lwrap"
21929
21930 else
21931
21932                  LIBS="$saved_LIBS -lwrap -lnsl"
21933                  WRAPLIBS="$saved_LIBS -lwrap -lnsl"
21934                  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21935 /* end confdefs.h.  */
21936
21937                        #include <sys/types.h>
21938                        #include <tcpd.h>
21939                        int deny_severity = 0;
21940                        int allow_severity = 0;
21941                        struct request_info *req;
21942
21943 int
21944 main ()
21945 {
21946
21947                        hosts_access(req);
21948
21949   ;
21950   return 0;
21951 }
21952 _ACEOF
21953 if ac_fn_c_try_link "$LINENO"; then :
21954
21955                       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21956 $as_echo "yes" >&6; }
21957
21958 $as_echo "#define HAVE_LIBWRAP 1" >>confdefs.h
21959
21960                       TCPW_MSG="yes"
21961                       LIBS="$saved_LIBS"
21962                       WRAPLIBS="-lwrap"
21963
21964 else
21965
21966                       as_fn_error "*** libwrap missing" "$LINENO" 5
21967
21968
21969 fi
21970 rm -f core conftest.err conftest.$ac_objext \
21971     conftest$ac_exeext conftest.$ac_ext
21972
21973
21974 fi
21975 rm -f core conftest.err conftest.$ac_objext \
21976     conftest$ac_exeext conftest.$ac_ext
21977        fi
21978
21979
21980 fi
21981
21982
21983 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OpenSSL" >&5
21984 $as_echo_n "checking for OpenSSL... " >&6; }
21985
21986 # Check whether --with-openssl was given.
21987 if test "${with_openssl+set}" = set; then :
21988   withval=$with_openssl;
21989         with_openssl_directory=${withval}
21990
21991
21992 fi
21993
21994
21995 if test "x$with_openssl_directory" != "xno"; then
21996    OPENSSL_LIBS="-lssl -lcrypto"
21997    OPENSSL_INC=""
21998
21999    if test "x$with_openssl_directory" != "xyes" && test x"${with_openssl_directory}" != "x"; then
22000       #
22001       # Make sure the $with_openssl_directory also makes sense
22002       #
22003       if test -d "$with_openssl_directory/lib" -a -d "$with_openssl_directory/include"; then
22004          OPENSSL_LIBS="-L$with_openssl_directory/lib $OPENSSL_LIBS"
22005          OPENSSL_INC="-I$with_openssl_directory/include $OPENSSL_INC"
22006       fi
22007    fi
22008
22009    saved_LIBS="${LIBS}"
22010    saved_CFLAGS="${CFLAGS}"
22011    LIBS="${saved_LIBS} ${OPENSSL_LIBS}"
22012    CFLAGS="${saved_CFLAGS} ${OPENSSL_INC}"
22013
22014    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22015 /* end confdefs.h.  */
22016
22017           #include <openssl/ssl.h>
22018
22019 int
22020 main ()
22021 {
22022
22023            CRYPTO_set_id_callback(NULL);
22024
22025   ;
22026   return 0;
22027 }
22028 _ACEOF
22029 if ac_fn_c_try_link "$LINENO"; then :
22030
22031           support_tls="yes"
22032           support_crypto="yes"
22033
22034 else
22035
22036           support_tls="no"
22037           support_crypto="no"
22038
22039
22040 fi
22041 rm -f core conftest.err conftest.$ac_objext \
22042     conftest$ac_exeext conftest.$ac_ext
22043
22044    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22045 /* end confdefs.h.  */
22046
22047           #include <openssl/evp.h>
22048
22049 int
22050 main ()
22051 {
22052
22053           EVP_sha512();
22054
22055   ;
22056   return 0;
22057 }
22058 _ACEOF
22059 if ac_fn_c_try_link "$LINENO"; then :
22060
22061           ac_cv_openssl_sha2="yes"
22062
22063 else
22064
22065           ac_cv_openssl_sha2="no"
22066
22067
22068 fi
22069 rm -f core conftest.err conftest.$ac_objext \
22070     conftest$ac_exeext conftest.$ac_ext
22071
22072                cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22073 /* end confdefs.h.  */
22074
22075           #include <openssl/evp.h>
22076
22077 int
22078 main ()
22079 {
22080
22081           EVP_aes_192_cbc();
22082
22083   ;
22084   return 0;
22085 }
22086 _ACEOF
22087 if ac_fn_c_try_link "$LINENO"; then :
22088
22089           ac_cv_openssl_export="no"
22090
22091 else
22092
22093           ac_cv_openssl_export="yes"
22094
22095
22096 fi
22097 rm -f core conftest.err conftest.$ac_objext \
22098     conftest$ac_exeext conftest.$ac_ext
22099
22100    LIBS="${saved_LIBS}"
22101    CFLAGS="${saved_CFLAGS}"
22102
22103    if test "$support_tls" = "yes"; then
22104
22105 $as_echo "#define HAVE_OPENSSL 1" >>confdefs.h
22106
22107
22108 $as_echo "#define HAVE_TLS 1" >>confdefs.h
22109
22110
22111 $as_echo "#define HAVE_CRYPTO 1" >>confdefs.h
22112
22113    fi
22114
22115    if test "$ac_cv_openssl_sha2" = "yes"; then
22116
22117 $as_echo "#define HAVE_SHA2 1" >>confdefs.h
22118
22119    fi
22120
22121    if test "$ac_cv_openssl_export" = "yes"; then
22122
22123 $as_echo "#define HAVE_OPENSSL_EXPORT_LIBRARY 1" >>confdefs.h
22124
22125    fi
22126 else
22127    support_tls="no"
22128    support_crypto="no"
22129    OPENSSL_LIBS=""
22130    OPENSSL_INC=""
22131 fi
22132
22133 if test "$support_tls" = "no"; then
22134    OPENSSL_LIBS=""
22135    OPENSSL_INC=""
22136 fi
22137 if test "$support_crypto" = "no"; then
22138    OPENSSL_LIBS=""
22139    OPENSSL_INC=""
22140 else
22141    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EVP_PKEY_encrypt_old in -lssl" >&5
22142 $as_echo_n "checking for EVP_PKEY_encrypt_old in -lssl... " >&6; }
22143 if test "${ac_cv_lib_ssl_EVP_PKEY_encrypt_old+set}" = set; then :
22144   $as_echo_n "(cached) " >&6
22145 else
22146   ac_check_lib_save_LIBS=$LIBS
22147 LIBS="-lssl  $LIBS"
22148 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22149 /* end confdefs.h.  */
22150
22151 /* Override any GCC internal prototype to avoid an error.
22152    Use char because int might match the return type of a GCC
22153    builtin and then its argument prototype would still apply.  */
22154 #ifdef __cplusplus
22155 extern "C"
22156 #endif
22157 char EVP_PKEY_encrypt_old ();
22158 int
22159 main ()
22160 {
22161 return EVP_PKEY_encrypt_old ();
22162   ;
22163   return 0;
22164 }
22165 _ACEOF
22166 if ac_fn_c_try_link "$LINENO"; then :
22167   ac_cv_lib_ssl_EVP_PKEY_encrypt_old=yes
22168 else
22169   ac_cv_lib_ssl_EVP_PKEY_encrypt_old=no
22170 fi
22171 rm -f core conftest.err conftest.$ac_objext \
22172     conftest$ac_exeext conftest.$ac_ext
22173 LIBS=$ac_check_lib_save_LIBS
22174 fi
22175 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ssl_EVP_PKEY_encrypt_old" >&5
22176 $as_echo "$ac_cv_lib_ssl_EVP_PKEY_encrypt_old" >&6; }
22177 if test "x$ac_cv_lib_ssl_EVP_PKEY_encrypt_old" = x""yes; then :
22178
22179 $as_echo "#define HAVE_OPENSSLv1 1" >>confdefs.h
22180
22181 fi
22182
22183 fi
22184
22185 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $support_tls" >&5
22186 $as_echo "$support_tls" >&6; }
22187
22188
22189
22190 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5
22191 $as_echo_n "checking for library containing dlopen... " >&6; }
22192 if test "${ac_cv_search_dlopen+set}" = set; then :
22193   $as_echo_n "(cached) " >&6
22194 else
22195   ac_func_search_save_LIBS=$LIBS
22196 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22197 /* end confdefs.h.  */
22198
22199 /* Override any GCC internal prototype to avoid an error.
22200    Use char because int might match the return type of a GCC
22201    builtin and then its argument prototype would still apply.  */
22202 #ifdef __cplusplus
22203 extern "C"
22204 #endif
22205 char dlopen ();
22206 int
22207 main ()
22208 {
22209 return dlopen ();
22210   ;
22211   return 0;
22212 }
22213 _ACEOF
22214 for ac_lib in '' dl; do
22215   if test -z "$ac_lib"; then
22216     ac_res="none required"
22217   else
22218     ac_res=-l$ac_lib
22219     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
22220   fi
22221   if ac_fn_c_try_link "$LINENO"; then :
22222   ac_cv_search_dlopen=$ac_res
22223 fi
22224 rm -f core conftest.err conftest.$ac_objext \
22225     conftest$ac_exeext
22226   if test "${ac_cv_search_dlopen+set}" = set; then :
22227   break
22228 fi
22229 done
22230 if test "${ac_cv_search_dlopen+set}" = set; then :
22231
22232 else
22233   ac_cv_search_dlopen=no
22234 fi
22235 rm conftest.$ac_ext
22236 LIBS=$ac_func_search_save_LIBS
22237 fi
22238 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5
22239 $as_echo "$ac_cv_search_dlopen" >&6; }
22240 ac_res=$ac_cv_search_dlopen
22241 if test "$ac_res" != no; then :
22242   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
22243
22244 fi
22245
22246
22247 working_dir=`eval echo ${prefix}/var/bacula/working`
22248
22249 # Check whether --with-working-dir was given.
22250 if test "${with_working_dir+set}" = set; then :
22251   withval=$with_working_dir;
22252        if test "x$withval" != "xno" ; then
22253          working_dir=$withval
22254        fi
22255
22256
22257 fi
22258
22259
22260
22261
22262 archivedir=/tmp
22263
22264 # Check whether --with-archivedir was given.
22265 if test "${with_archivedir+set}" = set; then :
22266   withval=$with_archivedir;
22267        if test "x$withval" != "xno" ; then
22268           archivedir=$withval
22269        fi
22270
22271
22272 fi
22273
22274
22275
22276
22277 basename=`hostname`
22278
22279 # Check whether --with-basename was given.
22280 if test "${with_basename+set}" = set; then :
22281   withval=$with_basename;
22282        if test "x$withval" != "xno" ; then
22283           basename=$withval
22284        fi
22285
22286
22287 fi
22288
22289
22290
22291
22292 hostname=`uname -n | cut -d '.' -f 1`
22293 if test x${hostname} = x ; then
22294   hostname="localhost"
22295 fi
22296
22297 # Check whether --with-hostname was given.
22298 if test "${with_hostname+set}" = set; then :
22299   withval=$with_hostname;
22300        if test "x$withval" != "xno" ; then
22301          hostname=$withval
22302        fi
22303
22304
22305 fi
22306
22307
22308
22309
22310
22311 scriptdir=`eval echo ${sysconfdir}`
22312
22313 # Check whether --with-scriptdir was given.
22314 if test "${with_scriptdir+set}" = set; then :
22315   withval=$with_scriptdir;
22316        if test "x$withval" != "xno" ; then
22317           scriptdir=$withval
22318        fi
22319
22320
22321 fi
22322
22323
22324
22325
22326
22327 bsrdir=/tmp
22328
22329 # Check whether --with-bsrdir was given.
22330 if test "${with_bsrdir+set}" = set; then :
22331   withval=$with_bsrdir;
22332        if test "x$withval" != "xno" ; then
22333           bsrdir=$withval
22334        fi
22335
22336
22337 fi
22338
22339
22340
22341
22342 logdir=/tmp
22343
22344 # Check whether --with-logdir was given.
22345 if test "${with_logdir+set}" = set; then :
22346   withval=$with_logdir;
22347        if test "x$withval" != "xno" ; then
22348           logdir=$withval
22349        fi
22350
22351
22352 fi
22353
22354
22355
22356
22357
22358 # ------------------------------------------
22359 # Where to place plugindir (plugin files)
22360 # ------------------------------------------
22361 plugindir=`eval echo ${libdir}`
22362
22363 # Check whether --with-plugindir was given.
22364 if test "${with_plugindir+set}" = set; then :
22365   withval=$with_plugindir;
22366        if test "x$withval" != "xno" ; then
22367           plugindir=$withval
22368        fi
22369
22370
22371 fi
22372
22373
22374
22375
22376 dump_email=root@localhost
22377
22378 # Check whether --with-dump-email was given.
22379 if test "${with_dump_email+set}" = set; then :
22380   withval=$with_dump_email;
22381        if test "x$withval" != "xno" ; then
22382           dump_email=$withval
22383        fi
22384
22385
22386 fi
22387
22388
22389
22390
22391 job_email=root@localhost
22392
22393 # Check whether --with-job-email was given.
22394 if test "${with_job_email+set}" = set; then :
22395   withval=$with_job_email;
22396        if test "x$withval" != "xno" ; then
22397           job_email=$withval
22398        fi
22399
22400
22401 fi
22402
22403
22404
22405
22406 smtp_host=localhost
22407
22408 # Check whether --with-smtp_host was given.
22409 if test "${with_smtp_host+set}" = set; then :
22410   withval=$with_smtp_host;
22411        if test "x$withval" != "xno" ; then
22412           smtp_host=$withval
22413        fi
22414
22415
22416 fi
22417
22418
22419
22420
22421 piddir=/var/run
22422
22423 # Check whether --with-pid-dir was given.
22424 if test "${with_pid_dir+set}" = set; then :
22425   withval=$with_pid_dir;
22426        if test "x$withval" != "xno" ; then
22427           piddir=$withval
22428        fi
22429
22430
22431 fi
22432
22433
22434 cat >>confdefs.h <<_ACEOF
22435 #define _PATH_BACULA_PIDDIR "$piddir"
22436 _ACEOF
22437
22438
22439
22440 subsysdir=/var/run/subsys
22441 if test -d /var/run/subsys; then
22442    subsysdir=/var/run/subsys
22443 elif test -d /var/lock/subsys; then
22444    subsysdir=/var/lock/subsys
22445 else
22446    subsysdir=/var/run/subsys
22447 fi
22448
22449 # Check whether --with-subsys-dir was given.
22450 if test "${with_subsys_dir+set}" = set; then :
22451   withval=$with_subsys_dir;
22452        if test "x$withval" != "xno" ; then
22453           subsysdir=$withval
22454        fi
22455
22456
22457 fi
22458
22459
22460
22461
22462 baseport=9101
22463
22464 # Check whether --with-baseport was given.
22465 if test "${with_baseport+set}" = set; then :
22466   withval=$with_baseport;
22467        if test "x$withval" != "xno" ; then
22468           baseport=$withval
22469        fi
22470
22471
22472 fi
22473
22474
22475
22476 dir_port=`expr $baseport`
22477 fd_port=`expr $baseport + 1`
22478 sd_port=`expr $fd_port + 1`
22479
22480
22481
22482
22483
22484 dir_password=
22485
22486 # Check whether --with-dir-password was given.
22487 if test "${with_dir_password+set}" = set; then :
22488   withval=$with_dir_password;
22489        if test "x$withval" != "xno" ; then
22490           dir_password=$withval
22491        fi
22492
22493
22494 fi
22495
22496
22497 if test "x$dir_password" = "x" ; then
22498    if test "x$OPENSSL" = "xnone" ; then
22499       key=`autoconf/randpass 33`
22500    else
22501       key=`openssl rand -base64 33`
22502    fi
22503    dir_password=$key
22504 fi
22505
22506 fd_password=
22507
22508 # Check whether --with-fd-password was given.
22509 if test "${with_fd_password+set}" = set; then :
22510   withval=$with_fd_password;
22511        if test "x$withval" != "xno" ; then
22512           fd_password=$withval
22513        fi
22514
22515
22516 fi
22517
22518
22519 if test "x$fd_password" = "x" ; then
22520    if test "x$OPENSSL" = "xnone" ; then
22521       key=`autoconf/randpass 37`
22522    else
22523       key=`openssl rand -base64 33`
22524    fi
22525    fd_password=$key
22526 fi
22527
22528 sd_password=
22529
22530 # Check whether --with-sd-password was given.
22531 if test "${with_sd_password+set}" = set; then :
22532   withval=$with_sd_password;
22533        if test "x$withval" != "xno" ; then
22534           sd_password=$withval
22535        fi
22536
22537
22538 fi
22539
22540
22541 if test "x$sd_password" = "x" ; then
22542    if test "x$OPENSSL" = "xnone" ; then
22543       key=`autoconf/randpass 41`
22544    else
22545       key=`openssl rand -base64 33`
22546    fi
22547    sd_password=$key
22548 fi
22549
22550 mon_dir_password=
22551
22552 # Check whether --with-mon-dir-password was given.
22553 if test "${with_mon_dir_password+set}" = set; then :
22554   withval=$with_mon_dir_password;
22555        if test "x$withval" != "xno" ; then
22556           mon_dir_password=$withval
22557        fi
22558
22559
22560 fi
22561
22562
22563 if test "x$mon_dir_password" = "x" ; then
22564    if test "x$OPENSSL" = "xnone" ; then
22565       key=`autoconf/randpass 33`
22566    else
22567       key=`openssl rand -base64 33`
22568    fi
22569    mon_dir_password=$key
22570 fi
22571
22572 mon_fd_password=
22573
22574 # Check whether --with-mon-fd-password was given.
22575 if test "${with_mon_fd_password+set}" = set; then :
22576   withval=$with_mon_fd_password;
22577        if test "x$withval" != "xno" ; then
22578           mon_fd_password=$withval
22579        fi
22580
22581
22582 fi
22583
22584
22585 if test "x$mon_fd_password" = "x" ; then
22586    if test "x$OPENSSL" = "xnone" ; then
22587       key=`autoconf/randpass 37`
22588    else
22589       key=`openssl rand -base64 33`
22590    fi
22591    mon_fd_password=$key
22592 fi
22593
22594 mon_sd_password=
22595
22596 # Check whether --with-mon-sd-password was given.
22597 if test "${with_mon_sd_password+set}" = set; then :
22598   withval=$with_mon_sd_password;
22599        if test "x$withval" != "xno" ; then
22600           mon_sd_password=$withval
22601        fi
22602
22603
22604 fi
22605
22606
22607 if test "x$mon_sd_password" = "x" ; then
22608    if test "x$OPENSSL" = "xnone" ; then
22609       key=`autoconf/randpass 41`
22610    else
22611       key=`openssl rand -base64 33`
22612    fi
22613    mon_sd_password=$key
22614 fi
22615
22616
22617
22618
22619
22620
22621
22622
22623 db_name=bacula
22624
22625 # Check whether --with-db_name was given.
22626 if test "${with_db_name+set}" = set; then :
22627   withval=$with_db_name;
22628        if test "x$withval" != "x" ; then
22629           db_name=$withval
22630        fi
22631
22632
22633 fi
22634
22635
22636
22637 db_user=bacula
22638
22639 # Check whether --with-db_user was given.
22640 if test "${with_db_user+set}" = set; then :
22641   withval=$with_db_user;
22642        if test "x$withval" != "x" ; then
22643           db_user=$withval
22644        fi
22645
22646
22647 fi
22648
22649
22650
22651 db_password=
22652
22653 # Check whether --with-db_password was given.
22654 if test "${with_db_password+set}" = set; then :
22655   withval=$with_db_password;
22656        if test "x$withval" != "x" ; then
22657           db_password=$withval
22658        fi
22659
22660
22661 fi
22662
22663
22664
22665 db_port=" "
22666
22667 # Check whether --with-db_port was given.
22668 if test "${with_db_port+set}" = set; then :
22669   withval=$with_db_port;
22670        if test "x$withval" != "x" ; then
22671           db_port=$withval
22672        fi
22673
22674
22675 fi
22676
22677
22678
22679 #
22680 # Handle users and groups for each daemon
22681 #
22682 dir_user=
22683
22684 # Check whether --with-dir_user was given.
22685 if test "${with_dir_user+set}" = set; then :
22686   withval=$with_dir_user;
22687        if test "x$withval" != "x" ; then
22688            dir_user=$withval
22689        fi
22690
22691
22692 fi
22693
22694
22695 dir_group=
22696
22697 # Check whether --with-dir_group was given.
22698 if test "${with_dir_group+set}" = set; then :
22699   withval=$with_dir_group;
22700        if test "x$withval" != "x" ; then
22701           dir_group=$withval
22702        fi
22703
22704
22705 fi
22706
22707
22708 sd_user=
22709
22710 # Check whether --with-sd_user was given.
22711 if test "${with_sd_user+set}" = set; then :
22712   withval=$with_sd_user;
22713        if test "x$withval" != "x" ; then
22714           sd_user=$withval
22715        fi
22716
22717
22718 fi
22719
22720
22721 sd_group=
22722
22723 # Check whether --with-sd_group was given.
22724 if test "${with_sd_group+set}" = set; then :
22725   withval=$with_sd_group;
22726        if test "x$withval" != "x" ; then
22727           sd_group=$withval
22728        fi
22729
22730
22731 fi
22732
22733
22734 fd_user=
22735
22736 # Check whether --with-fd_user was given.
22737 if test "${with_fd_user+set}" = set; then :
22738   withval=$with_fd_user;
22739        if test "x$withval" != "x" ; then
22740           fd_user=$withval
22741        fi
22742
22743
22744 fi
22745
22746
22747 fd_group=
22748
22749 # Check whether --with-fd_group was given.
22750 if test "${with_fd_group+set}" = set; then :
22751   withval=$with_fd_group;
22752        if test "x$withval" != "x" ; then
22753           fd_group=$withval
22754        fi
22755
22756
22757 fi
22758
22759
22760
22761
22762
22763
22764
22765
22766
22767 SBINPERM=0750
22768
22769 # Check whether --with-sbin-perm was given.
22770 if test "${with_sbin_perm+set}" = set; then :
22771   withval=$with_sbin_perm;
22772        if test "x$withval" != "x" ; then
22773           SBINPERM=$withval
22774        fi
22775
22776
22777 fi
22778
22779
22780
22781
22782 SQL_LIB=
22783
22784 db_found=no
22785 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PostgreSQL support" >&5
22786 $as_echo_n "checking for PostgreSQL support... " >&6; }
22787
22788 # Check whether --with-postgresql was given.
22789 if test "${with_postgresql+set}" = set; then :
22790   withval=$with_postgresql;
22791   if test "$withval" != "no"; then
22792       if test "$db_found" = "yes"; then
22793           { $as_echo "$as_me:${as_lineno-$LINENO}: result: error" >&5
22794 $as_echo "error" >&6; }
22795           as_fn_error "\"You can configure for only one database.\"" "$LINENO" 5;
22796       fi
22797       if test "$withval" = "yes"; then
22798           PG_CONFIG=`which pg_config`
22799           if test -n "$PG_CONFIG";then
22800               POSTGRESQL_INCDIR=`"$PG_CONFIG" --includedir`
22801               POSTGRESQL_LIBDIR=`"$PG_CONFIG" --libdir`
22802               POSTGRESQL_BINDIR=`"$PG_CONFIG" --bindir`
22803           elif test -f /usr/local/include/libpq-fe.h; then
22804               POSTGRESQL_INCDIR=/usr/local/include
22805               if test -d /usr/local/lib64; then
22806                  POSTGRESQL_LIBDIR=/usr/local/lib64
22807               else
22808                  POSTGRESQL_LIBDIR=/usr/local/lib
22809               fi
22810               POSTGRESQL_BINDIR=/usr/local/bin
22811           elif test -f /usr/include/libpq-fe.h; then
22812               POSTGRESQL_INCDIR=/usr/include
22813               if test -d /usr/lib64; then
22814                  POSTGRESQL_LIBDIR=/usr/lib64
22815               else
22816                  POSTGRESQL_LIBDIR=/usr/lib
22817               fi
22818               POSTGRESQL_BINDIR=/usr/bin
22819           elif test -f /usr/include/pgsql/libpq-fe.h; then
22820               POSTGRESQL_INCDIR=/usr/include/pgsql
22821               if test -d /usr/lib64/pgsql; then
22822                  POSTGRESQL_LIBDIR=/usr/lib64/pgsql
22823               else
22824                  POSTGRESQL_LIBDIR=/usr/lib/pgsql
22825               fi
22826               POSTGRESQL_BINDIR=/usr/bin
22827           elif test -f /usr/include/postgresql/libpq-fe.h; then
22828               POSTGRESQL_INCDIR=/usr/include/postgresql
22829               if test -d /usr/lib64/postgresql; then
22830                  POSTGRESQL_LIBDIR=/usr/lib64/postgresql
22831               else
22832                  POSTGRESQL_LIBDIR=/usr/lib/postgresql
22833               fi
22834               POSTGRESQL_BINDIR=/usr/bin
22835           else
22836               { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22837 $as_echo "no" >&6; }
22838               as_fn_error "Unable to find libpq-fe.h in standard locations" "$LINENO" 5
22839           fi
22840       elif test -f $withval/include/libpq-fe.h; then
22841           POSTGRESQL_INCDIR=$withval/include
22842           POSTGRESQL_LIBDIR=$withval/lib
22843           POSTGRESQL_BINDIR=$withval/bin
22844       elif test -f $withval/include/postgresql/libpq-fe.h; then
22845           POSTGRESQL_INCDIR=$withval/include/postgresql
22846      if test -d $withval/lib64; then
22847          POSTGRESQL_LIBDIR=$withval/lib64
22848      else
22849          POSTGRESQL_LIBDIR=$withval/lib
22850      fi
22851           POSTGRESQL_BINDIR=$withval/bin
22852       else
22853           { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22854 $as_echo "no" >&6; }
22855           as_fn_error "Invalid PostgreSQL directory $withval - unable to find libpq-fe.h under $withval" "$LINENO" 5
22856       fi
22857       POSTGRESQL_LFLAGS="-L$POSTGRESQL_LIBDIR -lpq"
22858       ac_fn_c_check_func "$LINENO" "crypt" "ac_cv_func_crypt"
22859 if test "x$ac_cv_func_crypt" = x""yes; then :
22860
22861 else
22862   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for crypt in -lcrypt" >&5
22863 $as_echo_n "checking for crypt in -lcrypt... " >&6; }
22864 if test "${ac_cv_lib_crypt_crypt+set}" = set; then :
22865   $as_echo_n "(cached) " >&6
22866 else
22867   ac_check_lib_save_LIBS=$LIBS
22868 LIBS="-lcrypt  $LIBS"
22869 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22870 /* end confdefs.h.  */
22871
22872 /* Override any GCC internal prototype to avoid an error.
22873    Use char because int might match the return type of a GCC
22874    builtin and then its argument prototype would still apply.  */
22875 #ifdef __cplusplus
22876 extern "C"
22877 #endif
22878 char crypt ();
22879 int
22880 main ()
22881 {
22882 return crypt ();
22883   ;
22884   return 0;
22885 }
22886 _ACEOF
22887 if ac_fn_c_try_link "$LINENO"; then :
22888   ac_cv_lib_crypt_crypt=yes
22889 else
22890   ac_cv_lib_crypt_crypt=no
22891 fi
22892 rm -f core conftest.err conftest.$ac_objext \
22893     conftest$ac_exeext conftest.$ac_ext
22894 LIBS=$ac_check_lib_save_LIBS
22895 fi
22896 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypt_crypt" >&5
22897 $as_echo "$ac_cv_lib_crypt_crypt" >&6; }
22898 if test "x$ac_cv_lib_crypt_crypt" = x""yes; then :
22899   POSTGRESQL_LFLAGS="$POSTGRESQL_LFLAGS -lcrypt"
22900 fi
22901
22902 fi
22903
22904       SQL_INCLUDE=-I$POSTGRESQL_INCDIR
22905       SQL_LFLAGS=$POSTGRESQL_LFLAGS
22906       SQL_BINDIR=$POSTGRESQL_BINDIR
22907       SQL_LIB=$POSTGRESQL_LIBDIR/libpq.a
22908
22909       $as_echo "#define HAVE_POSTGRESQL 1" >>confdefs.h
22910
22911       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22912 $as_echo "yes" >&6; }
22913       db_found=yes
22914       support_postgresql=yes
22915       db_type=PostgreSQL
22916       DB_TYPE=postgresql
22917   else
22918       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22919 $as_echo "no" >&6; }
22920   fi
22921
22922 else
22923
22924   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22925 $as_echo "no" >&6; }
22926
22927 fi
22928
22929
22930
22931
22932
22933
22934
22935
22936 db_found=no
22937 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MySQL support" >&5
22938 $as_echo_n "checking for MySQL support... " >&6; }
22939
22940 # Check whether --with-mysql was given.
22941 if test "${with_mysql+set}" = set; then :
22942   withval=$with_mysql;
22943   if test "$withval" != "no"; then
22944         if test "$withval" = "yes"; then
22945            if test -f /usr/local/mysql/include/mysql/mysql.h; then
22946                    MYSQL_INCDIR=/usr/local/mysql/include/mysql
22947                    if test -f /usr/local/mysql/lib64/mysql/libmysqlclient_r.a \
22948                         -o -f /usr/local/mysql/lib64/mysql/libmysqlclient_r.so; then
22949                            MYSQL_LIBDIR=/usr/local/mysql/lib64/mysql
22950                    else
22951                            MYSQL_LIBDIR=/usr/local/mysql/lib/mysql
22952                    fi
22953                    MYSQL_BINDIR=/usr/local/mysql/bin
22954            elif test -f /usr/include/mysql/mysql.h; then
22955                    MYSQL_INCDIR=/usr/include/mysql
22956                    if test -f /usr/lib64/mysql/libmysqlclient_r.a \
22957                         -o -f /usr/lib64/mysql/libmysqlclient_r.so; then
22958                            MYSQL_LIBDIR=/usr/lib64/mysql
22959                    elif test -f /usr/lib64/libmysqlclient_r.a \
22960                         -o -f /usr/lib64/libmysqlclient_r.so; then
22961                            MYSQL_LIBDIR=/usr/lib64
22962                    elif test -f /usr/lib/mysql/libmysqlclient_r.a \
22963                           -o -f /usr/lib/mysql/libmysqlclient_r.so; then
22964                            MYSQL_LIBDIR=/usr/lib/mysql
22965                    else
22966                            MYSQL_LIBDIR=/usr/lib
22967                    fi
22968                    MYSQL_BINDIR=/usr/bin
22969            elif test -f /usr/include/mysql.h; then
22970                    MYSQL_INCDIR=/usr/include
22971                    if test -f /usr/lib64/libmysqlclient_r.a \
22972                         -o -f /usr/lib64/libmysqlclient_r.so; then
22973                            MYSQL_LIBDIR=/usr/lib64
22974                    else
22975                            MYSQL_LIBDIR=/usr/lib
22976                    fi
22977                    MYSQL_BINDIR=/usr/bin
22978            elif test -f /usr/local/include/mysql/mysql.h; then
22979                    MYSQL_INCDIR=/usr/local/include/mysql
22980                    if test -f /usr/local/lib64/mysql/libmysqlclient_r.a \
22981                         -o -f /usr/local/lib64/mysql/libmysqlclient_r.so; then
22982                            MYSQL_LIBDIR=/usr/local/lib64/mysql
22983                    else
22984                            MYSQL_LIBDIR=/usr/local/lib/mysql
22985                    fi
22986                    MYSQL_BINDIR=/usr/local/bin
22987            elif test -f /usr/local/include/mysql.h; then
22988                    MYSQL_INCDIR=/usr/local/include
22989                    if test -f /usr/local/lib64/libmysqlclient_r.a \
22990                         -o -f /usr/local/lib64/libmysqlclient_r.so; then
22991                            MYSQL_LIBDIR=/usr/local/lib64
22992                    else
22993                            MYSQL_LIBDIR=/usr/local/lib
22994                    fi
22995                    MYSQL_BINDIR=/usr/local/bin
22996            else
22997               { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22998 $as_echo "no" >&6; }
22999               as_fn_error "Unable to find mysql.h in standard locations" "$LINENO" 5
23000            fi
23001         else
23002            if test -f $withval/include/mysql/mysql.h; then
23003               MYSQL_INCDIR=$withval/include/mysql
23004               if test -f $withval/lib64/mysql/libmysqlclient_r.a \
23005                    -o -f $withval/lib64/mysql/libmysqlclient_r.so; then
23006                  MYSQL_LIBDIR=$withval/lib64/mysql
23007               elif test -f $withval/lib64/libmysqlclient_r.a \
23008                    -o -f $withval/lib64/libmysqlclient_r.so; then
23009                  MYSQL_LIBDIR=$withval/lib64
23010               elif test -f $withval/lib/libmysqlclient_r.a \
23011                    -o -f $withval/lib/libmysqlclient_r.so; then
23012                  MYSQL_LIBDIR=$withval/lib
23013               else
23014                  MYSQL_LIBDIR=$withval/lib/mysql
23015               fi
23016               MYSQL_BINDIR=$withval/bin
23017            elif test -f $withval/include/mysql.h; then
23018               MYSQL_INCDIR=$withval/include
23019               if test -f $withval/lib64/libmysqlclient_r.a \
23020                    -o -f $withval/lib64/libmysqlclient_r.so; then
23021                  MYSQL_LIBDIR=$withval/lib64
23022               else
23023                  MYSQL_LIBDIR=$withval/lib
23024               fi
23025               MYSQL_BINDIR=$withval/bin
23026            else
23027               { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23028 $as_echo "no" >&6; }
23029               as_fn_error "Invalid MySQL directory $withval - unable to find mysql.h under $withval" "$LINENO" 5
23030            fi
23031         fi
23032     SQL_INCLUDE=-I$MYSQL_INCDIR
23033     if test -f $MYSQL_LIBDIR/libmysqlclient_r.a \
23034          -o -f $MYSQL_LIBDIR/libmysqlclient_r.so; then
23035        SQL_LFLAGS="-L$MYSQL_LIBDIR -lmysqlclient_r -lz"
23036        $as_echo "#define HAVE_THREAD_SAFE_MYSQL 1" >>confdefs.h
23037
23038     fi
23039     SQL_BINDIR=$MYSQL_BINDIR
23040     SQL_LIB=$MYSQL_LIBDIR/libmysqlclient_r.a
23041
23042
23043 $as_echo "#define HAVE_MYSQL 1" >>confdefs.h
23044
23045     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
23046 $as_echo "yes" >&6; }
23047     db_found=yes
23048     support_mysql=yes
23049     db_type=MySQL
23050     DB_TYPE=mysql
23051
23052   else
23053         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23054 $as_echo "no" >&6; }
23055   fi
23056
23057
23058 fi
23059
23060
23061
23062 # Check whether --with-embedded-mysql was given.
23063 if test "${with_embedded_mysql+set}" = set; then :
23064   withval=$with_embedded_mysql;
23065   if test "$withval" != "no"; then
23066         if test "$withval" = "yes"; then
23067                 if test -f /usr/local/mysql/include/mysql/mysql.h; then
23068                         MYSQL_INCDIR=/usr/local/mysql/include/mysql
23069                         if test -d /usr/local/mysql/lib64/mysql; then
23070                                 MYSQL_LIBDIR=/usr/local/mysql/lib64/mysql
23071                         else
23072                                 MYSQL_LIBDIR=/usr/local/mysql/lib/mysql
23073                         fi
23074                         MYSQL_BINDIR=/usr/local/mysql/bin
23075                 elif test -f /usr/include/mysql/mysql.h; then
23076                         MYSQL_INCDIR=/usr/include/mysql
23077                         if test -d /usr/lib64/mysql; then
23078                                 MYSQL_LIBDIR=/usr/lib64/mysql
23079                         else
23080                                 MYSQL_LIBDIR=/usr/lib/mysql
23081                         fi
23082                         MYSQL_BINDIR=/usr/bin
23083                 elif test -f /usr/include/mysql.h; then
23084                         MYSQL_INCDIR=/usr/include
23085                         if test -d /usr/lib64; then
23086                                 MYSQL_LIBDIR=/usr/lib64
23087                         else
23088                                 MYSQL_LIBDIR=/usr/lib
23089                         fi
23090                         MYSQL_BINDIR=/usr/bin
23091                 elif test -f /usr/local/include/mysql/mysql.h; then
23092                         MYSQL_INCDIR=/usr/local/include/mysql
23093                         if test -d /usr/local/lib64/mysql; then
23094                                 MYSQL_LIBDIR=/usr/local/lib64/mysql
23095                         else
23096                                 MYSQL_LIBDIR=/usr/local/lib/mysql
23097                         fi
23098                         MYSQL_BINDIR=/usr/local/bin
23099                 elif test -f /usr/local/include/mysql.h; then
23100                         MYSQL_INCDIR=/usr/local/include
23101                         if test -d /usr/local/lib64; then
23102                                 MYSQL_LIBDIR=/usr/local/lib64
23103                         else
23104                                 MYSQL_LIBDIR=/usr/local/lib
23105                         fi
23106                         MYSQL_BINDIR=/usr/local/bin
23107                 else
23108                    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23109 $as_echo "no" >&6; }
23110                    as_fn_error "Unable to find mysql.h in standard locations" "$LINENO" 5
23111                 fi
23112         else
23113                 if test -f $withval/include/mysql/mysql.h; then
23114                         MYSQL_INCDIR=$withval/include/mysql
23115                         if test -d $withval/lib64/mysql; then
23116                                 MYSQL_LIBDIR=$withval/lib64/mysql
23117                         else
23118                                 MYSQL_LIBDIR=$withval/lib/mysql
23119                         fi
23120                         MYSQL_BINDIR=$withval/bin
23121                 elif test -f $withval/include/mysql.h; then
23122                         MYSQL_INCDIR=$withval/include
23123                         if test -d $withval/lib64; then
23124                                 MYSQL_LIBDIR=$withval/lib64
23125                         else
23126                                 MYSQL_LIBDIR=$withval/lib
23127                         fi
23128                         MYSQL_BINDIR=$withval/bin
23129                 else
23130                    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23131 $as_echo "no" >&6; }
23132                    as_fn_error "Invalid MySQL directory $withval - unable to find mysql.h under $withval" "$LINENO" 5
23133                 fi
23134         fi
23135     SQL_INCLUDE=-I$MYSQL_INCDIR
23136     SQL_LFLAGS="-L$MYSQL_LIBDIR -lmysqld -lz -lm -lcrypt"
23137     SQL_BINDIR=$MYSQL_BINDIR
23138     SQL_LIB=$MYSQL_LIBDIR/libmysqld.a
23139
23140     $as_echo "#define HAVE_MYSQL 1" >>confdefs.h
23141
23142     $as_echo "#define HAVE_EMBEDDED_MYSQL 1" >>confdefs.h
23143
23144     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
23145 $as_echo "yes" >&6; }
23146     db_found=yes
23147     support_mysql=yes
23148     db_type=MySQL
23149     DB_TYPE=mysql
23150
23151   else
23152         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23153 $as_echo "no" >&6; }
23154   fi
23155
23156
23157 fi
23158
23159
23160
23161
23162
23163
23164
23165
23166
23167
23168 db_found=no
23169 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Ingres support" >&5
23170 $as_echo_n "checking for Ingres support... " >&6; }
23171
23172 # Check whether --with-ingres was given.
23173 if test "${with_ingres+set}" = set; then :
23174   withval=$with_ingres;
23175   if test "$withval" != "no"; then
23176      if test "$withval" = "yes"; then
23177         if test -f ${II_SYSTEM}/files/eqdefc.h; then
23178            INGRES_INCDIR=${II_SYSTEM}/files
23179            INGRES_LIBDIR=${II_SYSTEM}/lib
23180            INGRES_BINDIR=${II_SYSTEM}/bin
23181         elif test -f ${II_SYSTEM}/ingres/files/eqdefc.h; then
23182            INGRES_INCDIR=${II_SYSTEM}/ingres/files
23183            INGRES_LIBDIR=${II_SYSTEM}/ingres/lib
23184            INGRES_BINDIR=${II_SYSTEM}/ingres/bin
23185         else
23186            { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23187 $as_echo "no" >&6; }
23188            as_fn_error "Unable to find eqdefc.h in standard locations" "$LINENO" 5
23189         fi
23190      else
23191         if test -f $withval/files/eqdefc.h; then
23192            INGRES_INCDIR=$withval/files
23193            INGRES_LIBDIR=$withval/lib
23194            INGRES_BINDIR=$withval/bin
23195         else
23196            { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23197 $as_echo "no" >&6; }
23198            as_fn_error "Invalid Ingres directory $withval - unable to find Ingres headers under $withval" "$LINENO" 5
23199         fi
23200      fi
23201      SQL_INCLUDE=-I$INGRES_INCDIR
23202      SQL_LFLAGS="-L$INGRES_LIBDIR -lingres"
23203      SQL_BINDIR=$INGRES_BINDIR
23204      SQL_LIB=$INGRES_LIBDIR/libingres.a
23205
23206 $as_echo "#define HAVE_INGRES 1" >>confdefs.h
23207
23208      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
23209 $as_echo "yes" >&6; }
23210      db_found=yes
23211      support_ingres=yes
23212      db_type=Ingres
23213      DB_TYPE=ingres
23214
23215   else
23216      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23217 $as_echo "no" >&6; }
23218   fi
23219
23220 else
23221
23222   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23223 $as_echo "no" >&6; }
23224
23225 fi
23226
23227
23228
23229
23230
23231
23232
23233
23234 db_found=no
23235 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SQLite3 support" >&5
23236 $as_echo_n "checking for SQLite3 support... " >&6; }
23237
23238 # Check whether --with-sqlite3 was given.
23239 if test "${with_sqlite3+set}" = set; then :
23240   withval=$with_sqlite3;
23241   if test "$withval" != "no"; then
23242      if test "$withval" = "yes"; then
23243         if test -f /usr/local/include/sqlite3.h; then
23244            SQLITE_INCDIR=/usr/local/include
23245            if test -d /usr/local/lib64; then
23246               SQLITE_LIBDIR=/usr/local/lib64
23247            else
23248               SQLITE_LIBDIR=/usr/local/lib
23249            fi
23250            SQLITE_BINDIR=/usr/local/bin
23251         elif test -f /usr/include/sqlite3.h; then
23252            SQLITE_INCDIR=/usr/include
23253            if test -d /usr/lib64; then
23254               SQLITE_LIBDIR=/usr/lib64
23255            else
23256               SQLITE_LIBDIR=/usr/lib
23257            fi
23258            SQLITE_BINDIR=/usr/bin
23259         elif test -f $prefix/include/sqlite3.h; then
23260            SQLITE_INCDIR=$prefix/include
23261            if test -d $prefix/lib64; then
23262               SQLITE_LIBDIR=$prefix/lib64
23263            else
23264               SQLITE_LIBDIR=$prefix/lib
23265            fi
23266            SQLITE_BINDIR=$prefix/bin
23267         else
23268            { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23269 $as_echo "no" >&6; }
23270            as_fn_error "Unable to find sqlite3.h in standard locations" "$LINENO" 5
23271         fi
23272      else
23273         if test -f $withval/sqlite3.h; then
23274            SQLITE_INCDIR=$withval
23275            SQLITE_LIBDIR=$withval
23276            SQLITE_BINDIR=$withval
23277         elif test -f $withval/include/sqlite3.h; then
23278            SQLITE_INCDIR=$withval/include
23279            if test -d $withval/lib64; then
23280               SQLITE_LIBDIR=$withval/lib64
23281            else
23282               SQLITE_LIBDIR=$withval/lib
23283            fi
23284            SQLITE_BINDIR=$withval/bin
23285         else
23286            { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23287 $as_echo "no" >&6; }
23288            as_fn_error "Invalid SQLite3 directory $withval - unable to find sqlite3.h under $withval" "$LINENO" 5
23289         fi
23290      fi
23291      SQL_INCLUDE=-I$SQLITE_INCDIR
23292      SQL_LFLAGS="-L$SQLITE_LIBDIR -lsqlite3"
23293      SQL_BINDIR=$SQLITE_BINDIR
23294      SQL_LIB=$SQLITE_LIBDIR/libsqlite3.a
23295
23296      $as_echo "#define HAVE_SQLITE3 1" >>confdefs.h
23297
23298      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
23299 $as_echo "yes" >&6; }
23300      db_found=yes
23301      support_sqlite3=yes
23302      db_type=SQLite3
23303      DB_TYPE=sqlite3
23304
23305   else
23306      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23307 $as_echo "no" >&6; }
23308   fi
23309
23310 else
23311
23312   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23313 $as_echo "no" >&6; }
23314
23315 fi
23316
23317
23318
23319
23320
23321
23322
23323 # BA_CHECK_SQLITE_DB
23324
23325
23326 db_found=no
23327 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DBI support" >&5
23328 $as_echo_n "checking for DBI support... " >&6; }
23329
23330 # Check whether --with-dbi was given.
23331 if test "${with_dbi+set}" = set; then :
23332   withval=$with_dbi;
23333   if test "$withval" != "no"; then
23334      if test "$withval" = "yes"; then
23335         if test -f /usr/local/include/dbi/dbi.h; then
23336            DBI_INCDIR=/usr/local/dbi/include
23337            if test -d /usr/local/lib64; then
23338               DBI_LIBDIR=/usr/local/lib64
23339            else
23340               DBI_LIBDIR=/usr/local/lib
23341            fi
23342            DBI_BINDIR=/usr/local/bin
23343         elif test -f /usr/include/dbi/dbi.h; then
23344            DBI_INCDIR=/usr/include
23345            if test -d /usr/lib64; then
23346               DBI_LIBDIR=/usr/lib64
23347            else
23348               DBI_LIBDIR=/usr/lib
23349            fi
23350            DBI_BINDIR=/usr/bin
23351         elif test -f $prefix/include/dbi/dbi.h; then
23352            DBI_INCDIR=$prefix/include
23353            if test -d $prefix/lib64; then
23354               DBI_LIBDIR=$prefix/lib64
23355            else
23356               DBI_LIBDIR=$prefix/lib
23357            fi
23358            DBI_BINDIR=$prefix/bin
23359         else
23360            { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23361 $as_echo "no" >&6; }
23362            as_fn_error "Unable to find dbi.h in standard locations" "$LINENO" 5
23363         fi
23364         if test -d /usr/local/lib/dbd; then
23365            DRIVERDIR=/usr/local/lib/dbd
23366            if test -d /usr/local/lib64/dbd; then
23367               DRIVERDIR=/usr/local/lib64/dbd
23368            else
23369               DRIVERDIR=/usr/local/lib/dbd
23370            fi
23371         elif test -d /usr/lib/dbd; then
23372            DRIVERDIR=/usr/lib/dbd
23373            if test -d /usr/lib64/dbd; then
23374               DRIVERDIR=/usr/lib64/dbd
23375            else
23376               DRIVERDIR=/usr/lib/dbd
23377            fi
23378         elif test -d $prefix/lib/dbd; then
23379            if test -d $prefix/lib64/dbd; then
23380               DRIVERDIR=$prefix/lib64/dbd
23381            else
23382               DRIVERDIR=$prefix/lib/dbd
23383            fi
23384         elif test -d /usr/local/lib64/dbd; then
23385            DRIVERDIR=/usr/local/lib64/dbd
23386         elif test -d /usr/lib64/dbd; then
23387            DRIVERDIR=/usr/lib64/dbd
23388         elif test -d $prefix/lib64/dbd; then
23389            DRIVERDIR=$prefix/lib64/dbd
23390         else
23391            { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23392 $as_echo "no" >&6; }
23393            as_fn_error "Unable to find DBD drivers in standard locations" "$LINENO" 5
23394         fi
23395      else
23396         if test -f $withval/dbi.h; then
23397            DBI_INCDIR=$withval
23398            DBI_LIBDIR=$withval
23399            DBI_BINDIR=$withval
23400         elif test -f $withval/include/dbi/dbi.h; then
23401            DBI_INCDIR=$withval/include
23402            if test -d $withval/lib64; then
23403               DBI_LIBDIR=$withval/lib64
23404            else
23405               DBI_LIBDIR=$withval/lib
23406            fi
23407            DBI_BINDIR=$withval/bin
23408         else
23409            { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23410 $as_echo "no" >&6; }
23411            as_fn_error "Invalid DBI directory $withval - unable to find dbi.h under $withval" "$LINENO" 5
23412         fi
23413         if test -d $withval/dbd; then
23414            DRIVERDIR=$withval/dbd
23415         elif test -d $withval/lib/; then
23416            if test -d $withval/lib64/dbd; then
23417               DRIVERDIR=$withval/lib64/dbd
23418            else
23419               DRIVERDIR=$withval/lib/dbd
23420            fi
23421         elif test -d $withval/lib64/dbd; then
23422            DRIVERDIR=$withval/lib64/dbd
23423         else
23424            { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23425 $as_echo "no" >&6; }
23426            as_fn_error "Invalid DBD driver directory $withval - unable to find DBD drivers under $withval" "$LINENO" 5
23427         fi
23428      fi
23429      SQL_INCLUDE=-I$DBI_INCDIR
23430      SQL_LFLAGS="-L$DBI_LIBDIR -ldbi"
23431      SQL_BINDIR=$DBI_BINDIR
23432      SQL_LIB=$DBI_LIBDIR/libdbi.a
23433      DBI_DBD_DRIVERDIR="-D DBI_DRIVER_DIR=\\\"$DRIVERDIR\\\""
23434
23435
23436 $as_echo "#define HAVE_DBI 1" >>confdefs.h
23437
23438      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
23439 $as_echo "yes" >&6; }
23440      db_found=yes
23441      support_dbi=yes
23442      db_type=DBI
23443      DB_TYPE=dbi
23444      uncomment_dbi=" "
23445
23446   else
23447      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23448 $as_echo "no" >&6; }
23449   fi
23450
23451 else
23452
23453   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23454 $as_echo "no" >&6; }
23455
23456 fi
23457
23458
23459
23460
23461
23462
23463
23464
23465
23466
23467 db_found=no
23468 db_prog=no
23469 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DBI drivers support" >&5
23470 $as_echo_n "checking for DBI drivers support... " >&6; }
23471
23472 # Check whether --with-dbi-driver was given.
23473 if test "${with_dbi_driver+set}" = set; then :
23474   withval=$with_dbi_driver;
23475   if test "$withval" != "no"; then
23476      case $withval in
23477         "mysql")
23478            db_prog="mysql"
23479            if test -f /usr/local/mysql/bin/mysql; then
23480               SQL_BINDIR=/usr/local/mysql/bin
23481               if test -f /usr/local/mysql/lib64/mysql/libmysqlclient_r.a \
23482                  -o -f /usr/local/mysql/lib64/mysql/libmysqlclient_r.so; then
23483                  SQL_LIBDIR=/usr/local/mysql/lib64/mysql
23484               else
23485                  SQL_LIBDIR=/usr/local/mysql/lib/mysql
23486               fi
23487            elif test -f /usr/bin/mysql; then
23488               SQL_BINDIR=/usr/bin
23489               if test -f /usr/lib64/mysql/libmysqlclient_r.a \
23490                   -o -f /usr/lib64/mysql/libmysqlclient_r.so; then
23491                   SQL_LIBDIR=/usr/lib64/mysql
23492               elif test -f /usr/lib/mysql/libmysqlclient_r.a \
23493                   -o -f /usr/lib/mysql/libmysqlclient_r.so; then
23494                   SQL_LIBDIR=/usr/lib/mysql
23495               else
23496                   SQL_LIBDIR=/usr/lib
23497               fi
23498            elif test -f /usr/local/bin/mysql; then
23499               SQL_BINDIR=/usr/local/bin
23500               if test -f /usr/local/lib64/mysql/libmysqlclient_r.a \
23501                   -o -f /usr/local/lib64/mysql/libmysqlclient_r.so; then
23502                   SQL_LIBDIR=/usr/local/lib64/mysql
23503               elif test -f /usr/local/lib/mysql/libmysqlclient_r.a \
23504                   -o -f /usr/local/lib/mysql/libmysqlclient_r.so; then
23505                   SQL_LIBDIR=/usr/local/lib/mysql
23506               else
23507                   SQL_LIBDIR=/usr/local/lib
23508               fi
23509            elif test -f $withval/bin/mysql; then
23510               SQL_BINDIR=$withval/bin
23511               if test -f $withval/lib64/mysql/libmysqlclient_r.a \
23512                   -o -f $withval/lib64/mysql/libmysqlclient_r.so; then
23513                   SQL_LIBDIR=$withval/lib64/mysql
23514               elif test -f $withval/lib64/libmysqlclient_r.a \
23515                   -o -f $withval/lib64/libmysqlclient_r.so; then
23516                   SQL_LIBDIR=$withval/lib64
23517               elif test -f $withval/lib/libmysqlclient_r.a \
23518                   -o -f $withval/lib/libmysqlclient_r.so; then
23519                   SQL_LIBDIR=$withval/lib/
23520               else
23521                   SQL_LIBDIR=$withval/lib/mysql
23522               fi
23523            else
23524               { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23525 $as_echo "no" >&6; }
23526               as_fn_error "Unable to find mysql in standard locations" "$LINENO" 5
23527            fi
23528            if test -f $SQL_LIBDIR/libmysqlclient_r.so; then
23529               DB_PROG_LIB=$SQL_LIBDIR/libmysqlclient_r.so
23530            else
23531               DB_PROG_LIB=$SQL_LIBDIR/libmysqlclient_r.a
23532            fi
23533         ;;
23534         "postgresql")
23535            db_prog="postgresql"
23536            PG_CONFIG=`which pg_config`
23537            if test -n "$PG_CONFIG"; then
23538               SQL_BINDIR=`"$PG_CONFIG" --bindir`
23539               SQL_LIBDIR=`"$PG_CONFIG" --libdir`
23540            elif test -f /usr/local/bin/psql; then
23541               SQL_BINDIR=/usr/local/bin
23542               if test -d /usr/local/lib64; then
23543                  SQL_LIBDIR=/usr/local/lib64
23544               else
23545                  SQL_LIBDIR=/usr/local/lib
23546               fi
23547            elif test -f /usr/bin/psql; then
23548               SQL_BINDIR=/usr/local/bin
23549               if test -d /usr/lib64/postgresql; then
23550                  SQL_LIBDIR=/usr/lib64/postgresql
23551               elif test -d /usr/lib/postgresql; then
23552                  SQL_LIBDIR=/usr/lib/postgresql
23553               elif test -d /usr/lib64; then
23554                  SQL_LIBDIR=/usr/lib64
23555               else
23556                  SQL_LIBDIR=/usr/lib
23557               fi
23558            elif test -f $withval/bin/psql; then
23559               SQL_BINDIR=$withval/bin
23560               if test -d $withval/lib64; then
23561                  SQL_LIBDIR=$withval/lib64
23562               else
23563                  SQL_LIBDIR=$withval/lib
23564               fi
23565            else
23566               { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23567 $as_echo "no" >&6; }
23568               as_fn_error "Unable to find psql in standard locations" "$LINENO" 5
23569            fi
23570            if test -f $SQL_LIBDIR/libpq.so; then
23571               DB_PROG_LIB=$SQL_LIBDIR/libpq.so
23572            else
23573               DB_PROG_LIB=$SQL_LIBDIR/libpq.a
23574            fi
23575         ;;
23576         "sqlite")
23577            db_prog="sqlite"
23578            if test -f /usr/local/bin/sqlite; then
23579               SQL_BINDIR=/usr/local/bin
23580               if test -d /usr/local/lib64; then
23581                  SQL_LIBDIR=/usr/local/lib64
23582               else
23583                  SQL_LIBDIR=/usr/local/lib
23584               fi
23585            elif test -f /usr/bin/sqlite; then
23586               SQL_BINDIR=/usr/bin
23587               if test -d /usr/lib64; then
23588                  SQL_LIBDIR=/usr/lib64
23589               else
23590                  SQL_LIBDIR=/usr/lib
23591               fi
23592            elif test -f $withval/bin/sqlite; then
23593               SQL_BINDIR=$withval/bin
23594               if test -d $withval/lib64; then
23595                  SQL_LIBDIR=$withval/lib64
23596               else
23597                  SQL_LIBDIR=$withval/lib
23598               fi
23599            else
23600               { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23601 $as_echo "no" >&6; }
23602               as_fn_error "Unable to find sqlite in standard locations" "$LINENO" 5
23603            fi
23604            if test -f $SQL_LIBDIR/libsqlite.so; then
23605               DB_PROG_LIB=$SQL_LIBDIR/libsqlite.so
23606            else
23607               DB_PROG_LIB=$SQL_LIBDIR/libsqlite.a
23608            fi
23609         ;;
23610         "sqlite3")
23611            db_prog="sqlite3"
23612            if test -f /usr/local/bin/sqlite3; then
23613               SQL_BINDIR=/usr/local/bin
23614               if test -d /usr/local/lib64; then
23615                  SQL_LIBDIR=/usr/local/lib64
23616               else
23617                  SQL_LIBDIR=/usr/local/lib
23618               fi
23619            elif test -f /usr/bin/sqlite3; then
23620               SQL_BINDIR=/usr/bin
23621               if test -d /usr/lib64; then
23622                  SQL_LIBDIR=/usr/lib64
23623               else
23624                  SQL_LIBDIR=/usr/lib
23625               fi
23626            elif test -f $withval/bin/sqlite3; then
23627               SQL_BINDIR=$withval/bin
23628               if test -d $withval/lib64; then
23629                  SQL_LIBDIR=$withval/lib64
23630               else
23631                  SQL_LIBDIR=$withval/lib
23632               fi
23633            else
23634               { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23635 $as_echo "no" >&6; }
23636               as_fn_error "Unable to find sqlite in standard locations" "$LINENO" 5
23637            fi
23638            if test -f $SQL_LIBDIR/libsqlite3.so; then
23639               DB_PROG_LIB=$SQL_LIBDIR/libsqlite3.so
23640            else
23641               DB_PROG_LIB=$SQL_LIBDIR/libsqlite3.a
23642            fi
23643         ;;
23644         *)
23645            { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23646 $as_echo "no" >&6; }
23647            as_fn_error "Unable to set DBI driver. $withval is not supported" "$LINENO" 5
23648         ;;
23649      esac
23650
23651      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
23652 $as_echo "yes" >&6; }
23653      DB_PROG=$db_prog
23654   else
23655      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23656 $as_echo "no" >&6; }
23657   fi
23658
23659 else
23660
23661   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23662 $as_echo "no" >&6; }
23663
23664 fi
23665
23666
23667
23668
23669
23670
23671
23672
23673
23674
23675 support_batch_insert=no
23676 A=`test -f $SQL_LIB && nm $SQL_LIB | grep pthread_mutex_lock`
23677 pkg=$?
23678 if test $pkg = 0; then
23679    support_batch_insert=yes
23680    # Check whether --enable-batch-insert was given.
23681 if test "${enable_batch_insert+set}" = set; then :
23682   enableval=$enable_batch_insert;
23683           if test x$enableval = xno; then
23684              support_batch_insert=no
23685           else
23686              support_batch_insert=yes
23687           fi
23688
23689
23690 fi
23691
23692 fi
23693
23694 saved_LIBS="${LIBS}"
23695 LIBS="${saved_LIBS} ${SQL_LFLAGS}"
23696
23697 if test x$DB_TYPE = xpostgresql; then
23698    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PQisthreadsafe in -lpq" >&5
23699 $as_echo_n "checking for PQisthreadsafe in -lpq... " >&6; }
23700 if test "${ac_cv_lib_pq_PQisthreadsafe+set}" = set; then :
23701   $as_echo_n "(cached) " >&6
23702 else
23703   ac_check_lib_save_LIBS=$LIBS
23704 LIBS="-lpq  $LIBS"
23705 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23706 /* end confdefs.h.  */
23707
23708 /* Override any GCC internal prototype to avoid an error.
23709    Use char because int might match the return type of a GCC
23710    builtin and then its argument prototype would still apply.  */
23711 #ifdef __cplusplus
23712 extern "C"
23713 #endif
23714 char PQisthreadsafe ();
23715 int
23716 main ()
23717 {
23718 return PQisthreadsafe ();
23719   ;
23720   return 0;
23721 }
23722 _ACEOF
23723 if ac_fn_c_try_link "$LINENO"; then :
23724   ac_cv_lib_pq_PQisthreadsafe=yes
23725 else
23726   ac_cv_lib_pq_PQisthreadsafe=no
23727 fi
23728 rm -f core conftest.err conftest.$ac_objext \
23729     conftest$ac_exeext conftest.$ac_ext
23730 LIBS=$ac_check_lib_save_LIBS
23731 fi
23732 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pq_PQisthreadsafe" >&5
23733 $as_echo "$ac_cv_lib_pq_PQisthreadsafe" >&6; }
23734 if test "x$ac_cv_lib_pq_PQisthreadsafe" = x""yes; then :
23735
23736 $as_echo "#define HAVE_PQISTHREADSAFE 1" >>confdefs.h
23737
23738 fi
23739
23740    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PQputCopyData in -lpq" >&5
23741 $as_echo_n "checking for PQputCopyData in -lpq... " >&6; }
23742 if test "${ac_cv_lib_pq_PQputCopyData+set}" = set; then :
23743   $as_echo_n "(cached) " >&6
23744 else
23745   ac_check_lib_save_LIBS=$LIBS
23746 LIBS="-lpq  $LIBS"
23747 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23748 /* end confdefs.h.  */
23749
23750 /* Override any GCC internal prototype to avoid an error.
23751    Use char because int might match the return type of a GCC
23752    builtin and then its argument prototype would still apply.  */
23753 #ifdef __cplusplus
23754 extern "C"
23755 #endif
23756 char PQputCopyData ();
23757 int
23758 main ()
23759 {
23760 return PQputCopyData ();
23761   ;
23762   return 0;
23763 }
23764 _ACEOF
23765 if ac_fn_c_try_link "$LINENO"; then :
23766   ac_cv_lib_pq_PQputCopyData=yes
23767 else
23768   ac_cv_lib_pq_PQputCopyData=no
23769 fi
23770 rm -f core conftest.err conftest.$ac_objext \
23771     conftest$ac_exeext conftest.$ac_ext
23772 LIBS=$ac_check_lib_save_LIBS
23773 fi
23774 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pq_PQputCopyData" >&5
23775 $as_echo "$ac_cv_lib_pq_PQputCopyData" >&6; }
23776 if test "x$ac_cv_lib_pq_PQputCopyData" = x""yes; then :
23777
23778 $as_echo "#define HAVE_PQ_COPY 1" >>confdefs.h
23779
23780 fi
23781
23782    if test "x$ac_cv_lib_pq_PQputCopyData" != "xyes"
23783     then
23784         support_batch_insert=no
23785    fi
23786 fi
23787
23788 if test x$DB_TYPE = xdbi; then
23789    DB_TYPE=$DB_PROG
23790    db_type=$DB_PROG
23791    pkg=1
23792       if test $DB_PROG = postgresql; then
23793       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PQisthreadsafe in -lpq" >&5
23794 $as_echo_n "checking for PQisthreadsafe in -lpq... " >&6; }
23795 if test "${ac_cv_lib_pq_PQisthreadsafe+set}" = set; then :
23796   $as_echo_n "(cached) " >&6
23797 else
23798   ac_check_lib_save_LIBS=$LIBS
23799 LIBS="-lpq  $LIBS"
23800 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23801 /* end confdefs.h.  */
23802
23803 /* Override any GCC internal prototype to avoid an error.
23804    Use char because int might match the return type of a GCC
23805    builtin and then its argument prototype would still apply.  */
23806 #ifdef __cplusplus
23807 extern "C"
23808 #endif
23809 char PQisthreadsafe ();
23810 int
23811 main ()
23812 {
23813 return PQisthreadsafe ();
23814   ;
23815   return 0;
23816 }
23817 _ACEOF
23818 if ac_fn_c_try_link "$LINENO"; then :
23819   ac_cv_lib_pq_PQisthreadsafe=yes
23820 else
23821   ac_cv_lib_pq_PQisthreadsafe=no
23822 fi
23823 rm -f core conftest.err conftest.$ac_objext \
23824     conftest$ac_exeext conftest.$ac_ext
23825 LIBS=$ac_check_lib_save_LIBS
23826 fi
23827 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pq_PQisthreadsafe" >&5
23828 $as_echo "$ac_cv_lib_pq_PQisthreadsafe" >&6; }
23829 if test "x$ac_cv_lib_pq_PQisthreadsafe" = x""yes; then :
23830   $as_echo "#define HAVE_PQISTHREADSAFE 1" >>confdefs.h
23831
23832 fi
23833
23834       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PQputCopyData in -lpq" >&5
23835 $as_echo_n "checking for PQputCopyData in -lpq... " >&6; }
23836 if test "${ac_cv_lib_pq_PQputCopyData+set}" = set; then :
23837   $as_echo_n "(cached) " >&6
23838 else
23839   ac_check_lib_save_LIBS=$LIBS
23840 LIBS="-lpq  $LIBS"
23841 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23842 /* end confdefs.h.  */
23843
23844 /* Override any GCC internal prototype to avoid an error.
23845    Use char because int might match the return type of a GCC
23846    builtin and then its argument prototype would still apply.  */
23847 #ifdef __cplusplus
23848 extern "C"
23849 #endif
23850 char PQputCopyData ();
23851 int
23852 main ()
23853 {
23854 return PQputCopyData ();
23855   ;
23856   return 0;
23857 }
23858 _ACEOF
23859 if ac_fn_c_try_link "$LINENO"; then :
23860   ac_cv_lib_pq_PQputCopyData=yes
23861 else
23862   ac_cv_lib_pq_PQputCopyData=no
23863 fi
23864 rm -f core conftest.err conftest.$ac_objext \
23865     conftest$ac_exeext conftest.$ac_ext
23866 LIBS=$ac_check_lib_save_LIBS
23867 fi
23868 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pq_PQputCopyData" >&5
23869 $as_echo "$ac_cv_lib_pq_PQputCopyData" >&6; }
23870 if test "x$ac_cv_lib_pq_PQputCopyData" = x""yes; then :
23871   $as_echo "#define HAVE_PQ_COPY 1" >>confdefs.h
23872
23873 fi
23874
23875       test "x$ac_cv_lib_pq_PQputCopyData" != "xyes"
23876       pkg=$?
23877    fi
23878
23879    if test $DB_PROG = mysql; then
23880       A=`test -f $SQL_LIB && nm $DB_PROG_LIB | grep pthread_mutex_lock`
23881       pkg=$?
23882    fi
23883
23884    if test $DB_PROG = sqlite3; then
23885       A=`test -f $SQL_LIB && nm $DB_PROG_LIB | grep pthread_mutex_lock`
23886       pkg=$?
23887       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sqlite3_threadsafe in -lsqlite3" >&5
23888 $as_echo_n "checking for sqlite3_threadsafe in -lsqlite3... " >&6; }
23889 if test "${ac_cv_lib_sqlite3_sqlite3_threadsafe+set}" = set; then :
23890   $as_echo_n "(cached) " >&6
23891 else
23892   ac_check_lib_save_LIBS=$LIBS
23893 LIBS="-lsqlite3  $LIBS"
23894 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23895 /* end confdefs.h.  */
23896
23897 /* Override any GCC internal prototype to avoid an error.
23898    Use char because int might match the return type of a GCC
23899    builtin and then its argument prototype would still apply.  */
23900 #ifdef __cplusplus
23901 extern "C"
23902 #endif
23903 char sqlite3_threadsafe ();
23904 int
23905 main ()
23906 {
23907 return sqlite3_threadsafe ();
23908   ;
23909   return 0;
23910 }
23911 _ACEOF
23912 if ac_fn_c_try_link "$LINENO"; then :
23913   ac_cv_lib_sqlite3_sqlite3_threadsafe=yes
23914 else
23915   ac_cv_lib_sqlite3_sqlite3_threadsafe=no
23916 fi
23917 rm -f core conftest.err conftest.$ac_objext \
23918     conftest$ac_exeext conftest.$ac_ext
23919 LIBS=$ac_check_lib_save_LIBS
23920 fi
23921 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_sqlite3_sqlite3_threadsafe" >&5
23922 $as_echo "$ac_cv_lib_sqlite3_sqlite3_threadsafe" >&6; }
23923 if test "x$ac_cv_lib_sqlite3_sqlite3_threadsafe" = x""yes; then :
23924
23925 $as_echo "#define HAVE_SQLITE3_THREADSAFE 1" >>confdefs.h
23926
23927 fi
23928
23929    fi
23930
23931    if test $pkg = 0; then
23932       # Check whether --enable-batch-insert was given.
23933 if test "${enable_batch_insert+set}" = set; then :
23934   enableval=$enable_batch_insert;
23935              if test x$enableval = xno; then
23936                 support_batch_insert=no
23937              else
23938                 support_batch_insert=yes
23939              fi
23940
23941
23942 fi
23943
23944    fi
23945 else
23946       uncomment_dbi="#"
23947 fi
23948
23949 LIBS="${saved_LIBS}"
23950
23951
23952
23953 if test $support_batch_insert = yes ; then
23954
23955 $as_echo "#define HAVE_BATCH_FILE_INSERT 1" >>confdefs.h
23956
23957 fi
23958
23959 $as_echo "#define PROTOTYPES 1" >>confdefs.h
23960
23961
23962 if test -z "$CFLAGS" -o "$CFLAGS" = "-g -O2"; then
23963    if test -z "$CCOPTS"; then
23964       CCOPTS='-g -O2 -Wall'
23965    fi
23966    CFLAGS="$CCOPTS"
23967 fi
23968
23969
23970
23971 largefile_support="no"
23972
23973    # Check whether --enable-largefile was given.
23974 if test "${enable_largefile+set}" = set; then :
23975   enableval=$enable_largefile;
23976 fi
23977
23978    if test "$enable_largefile" != no; then
23979      if test -n "$ac_tool_prefix"; then
23980   # Extract the first word of "${ac_tool_prefix}getconf", so it can be a program name with args.
23981 set dummy ${ac_tool_prefix}getconf; ac_word=$2
23982 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
23983 $as_echo_n "checking for $ac_word... " >&6; }
23984 if test "${ac_cv_prog_GETCONF+set}" = set; then :
23985   $as_echo_n "(cached) " >&6
23986 else
23987   if test -n "$GETCONF"; then
23988   ac_cv_prog_GETCONF="$GETCONF" # Let the user override the test.
23989 else
23990 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23991 for as_dir in $PATH
23992 do
23993   IFS=$as_save_IFS
23994   test -z "$as_dir" && as_dir=.
23995     for ac_exec_ext in '' $ac_executable_extensions; do
23996   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
23997     ac_cv_prog_GETCONF="${ac_tool_prefix}getconf"
23998     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
23999     break 2
24000   fi
24001 done
24002   done
24003 IFS=$as_save_IFS
24004
24005 fi
24006 fi
24007 GETCONF=$ac_cv_prog_GETCONF
24008 if test -n "$GETCONF"; then
24009   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GETCONF" >&5
24010 $as_echo "$GETCONF" >&6; }
24011 else
24012   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24013 $as_echo "no" >&6; }
24014 fi
24015
24016
24017 fi
24018 if test -z "$ac_cv_prog_GETCONF"; then
24019   ac_ct_GETCONF=$GETCONF
24020   # Extract the first word of "getconf", so it can be a program name with args.
24021 set dummy getconf; ac_word=$2
24022 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
24023 $as_echo_n "checking for $ac_word... " >&6; }
24024 if test "${ac_cv_prog_ac_ct_GETCONF+set}" = set; then :
24025   $as_echo_n "(cached) " >&6
24026 else
24027   if test -n "$ac_ct_GETCONF"; then
24028   ac_cv_prog_ac_ct_GETCONF="$ac_ct_GETCONF" # Let the user override the test.
24029 else
24030 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24031 for as_dir in $PATH
24032 do
24033   IFS=$as_save_IFS
24034   test -z "$as_dir" && as_dir=.
24035     for ac_exec_ext in '' $ac_executable_extensions; do
24036   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
24037     ac_cv_prog_ac_ct_GETCONF="getconf"
24038     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
24039     break 2
24040   fi
24041 done
24042   done
24043 IFS=$as_save_IFS
24044
24045 fi
24046 fi
24047 ac_ct_GETCONF=$ac_cv_prog_ac_ct_GETCONF
24048 if test -n "$ac_ct_GETCONF"; then
24049   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GETCONF" >&5
24050 $as_echo "$ac_ct_GETCONF" >&6; }
24051 else
24052   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24053 $as_echo "no" >&6; }
24054 fi
24055
24056   if test "x$ac_ct_GETCONF" = x; then
24057     GETCONF=""
24058   else
24059     case $cross_compiling:$ac_tool_warned in
24060 yes:)
24061 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
24062 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
24063 ac_tool_warned=yes ;;
24064 esac
24065     GETCONF=$ac_ct_GETCONF
24066   fi
24067 else
24068   GETCONF="$ac_cv_prog_GETCONF"
24069 fi
24070
24071      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFLAGS value to request large file support" >&5
24072 $as_echo_n "checking for CFLAGS value to request large file support... " >&6; }
24073 if test "${ac_cv_sys_largefile_CFLAGS+set}" = set; then :
24074   $as_echo_n "(cached) " >&6
24075 else
24076   ac_cv_sys_largefile_CFLAGS=`($GETCONF LFS_CFLAGS) 2>/dev/null` || {
24077         ac_cv_sys_largefile_CFLAGS=no
24078         case "$host_os" in
24079            # IRIX 6.2 and later require cc -n32.
24080            irix6.[2-9]* | irix6.1[0-9]* | irix[7-9].* | irix[1-9][0-9]*)
24081              if test "$GCC" != yes; then
24082                ac_cv_sys_largefile_CFLAGS=-n32
24083              fi
24084              ac_save_CC="$CC"
24085              CC="$CC $ac_cv_sys_largefile_CFLAGS"
24086              cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24087 /* end confdefs.h.  */
24088
24089 int
24090 main ()
24091 {
24092
24093   ;
24094   return 0;
24095 }
24096 _ACEOF
24097 if ac_fn_c_try_link "$LINENO"; then :
24098
24099 else
24100   ac_cv_sys_largefile_CFLAGS=no
24101 fi
24102 rm -f core conftest.err conftest.$ac_objext \
24103     conftest$ac_exeext conftest.$ac_ext
24104              CC="$ac_save_CC"
24105            esac
24106       }
24107 fi
24108 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CFLAGS" >&5
24109 $as_echo "$ac_cv_sys_largefile_CFLAGS" >&6; }
24110      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LDFLAGS value to request large file support" >&5
24111 $as_echo_n "checking for LDFLAGS value to request large file support... " >&6; }
24112 if test "${ac_cv_sys_largefile_LDFLAGS+set}" = set; then :
24113   $as_echo_n "(cached) " >&6
24114 else
24115   ac_cv_sys_largefile_LDFLAGS=`($GETCONF LFS_LDFLAGS) 2>/dev/null` || {
24116         ac_cv_sys_largefile_LDFLAGS=no
24117
24118       }
24119 fi
24120 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_LDFLAGS" >&5
24121 $as_echo "$ac_cv_sys_largefile_LDFLAGS" >&6; }
24122      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LIBS value to request large file support" >&5
24123 $as_echo_n "checking for LIBS value to request large file support... " >&6; }
24124 if test "${ac_cv_sys_largefile_LIBS+set}" = set; then :
24125   $as_echo_n "(cached) " >&6
24126 else
24127   ac_cv_sys_largefile_LIBS=`($GETCONF LFS_LIBS) 2>/dev/null` || {
24128         ac_cv_sys_largefile_LIBS=no
24129
24130       }
24131 fi
24132 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_LIBS" >&5
24133 $as_echo "$ac_cv_sys_largefile_LIBS" >&6; }
24134
24135      for ac_flag in $ac_cv_sys_largefile_CFLAGS no; do
24136        case "$ac_flag" in
24137        no) ;;
24138        -D_FILE_OFFSET_BITS=*) ;;
24139        -D_LARGEFILE_SOURCE | -D_LARGEFILE_SOURCE=*) ;;
24140        -D_LARGE_FILES | -D_LARGE_FILES=*) ;;
24141        -D?* | -I?*)
24142          case "$ac_flag" in
24143    no) ;;
24144    ?*)
24145      case "$CPPFLAGS" in
24146      '') CPPFLAGS="$ac_flag" ;;
24147      *) CPPFLAGS=$CPPFLAGS' '"$ac_flag" ;;
24148      esac ;;
24149    esac ;;
24150        *)
24151          case "$ac_flag" in
24152    no) ;;
24153    ?*)
24154      case "$CFLAGS" in
24155      '') CFLAGS="$ac_flag" ;;
24156      *) CFLAGS=$CFLAGS' '"$ac_flag" ;;
24157      esac ;;
24158    esac ;;
24159        esac
24160      done
24161      case "$ac_cv_sys_largefile_LDFLAGS" in
24162    no) ;;
24163    ?*)
24164      case "$LDFLAGS" in
24165      '') LDFLAGS="$ac_cv_sys_largefile_LDFLAGS" ;;
24166      *) LDFLAGS=$LDFLAGS' '"$ac_cv_sys_largefile_LDFLAGS" ;;
24167      esac ;;
24168    esac
24169      case "$ac_cv_sys_largefile_LIBS" in
24170    no) ;;
24171    ?*)
24172      case "$LIBS" in
24173      '') LIBS="$ac_cv_sys_largefile_LIBS" ;;
24174      *) LIBS=$LIBS' '"$ac_cv_sys_largefile_LIBS" ;;
24175      esac ;;
24176    esac
24177      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS" >&5
24178 $as_echo_n "checking for _FILE_OFFSET_BITS... " >&6; }
24179 if test "${ac_cv_sys_file_offset_bits+set}" = set; then :
24180   $as_echo_n "(cached) " >&6
24181 else
24182   ac_cv_sys_file_offset_bits=no
24183       ac_cv_sys_file_offset_bits=64
24184       for ac_flag in $ac_cv_sys_largefile_CFLAGS no; do
24185         case "$ac_flag" in
24186         -D_FILE_OFFSET_BITS)
24187           ac_cv_sys_file_offset_bits=1 ;;
24188         -D_FILE_OFFSET_BITS=*)
24189           ac_cv_sys_file_offset_bits=`expr " $ac_flag" : '[^=]*=\(.*\)'` ;;
24190         esac
24191       done
24192
24193 fi
24194 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
24195 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
24196    if test "$ac_cv_sys_file_offset_bits" != no; then
24197
24198 cat >>confdefs.h <<_ACEOF
24199 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
24200 _ACEOF
24201
24202    fi
24203      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGEFILE_SOURCE" >&5
24204 $as_echo_n "checking for _LARGEFILE_SOURCE... " >&6; }
24205 if test "${ac_cv_sys_largefile_source+set}" = set; then :
24206   $as_echo_n "(cached) " >&6
24207 else
24208   ac_cv_sys_largefile_source=no
24209       ac_cv_sys_largefile_source=1
24210       for ac_flag in $ac_cv_sys_largefile_CFLAGS no; do
24211         case "$ac_flag" in
24212         -D_LARGEFILE_SOURCE)
24213           ac_cv_sys_largefile_source=1 ;;
24214         -D_LARGEFILE_SOURCE=*)
24215           ac_cv_sys_largefile_source=`expr " $ac_flag" : '[^=]*=\(.*\)'` ;;
24216         esac
24217       done
24218
24219 fi
24220 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_source" >&5
24221 $as_echo "$ac_cv_sys_largefile_source" >&6; }
24222    if test "$ac_cv_sys_largefile_source" != no; then
24223
24224 cat >>confdefs.h <<_ACEOF
24225 #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
24226 _ACEOF
24227
24228    fi
24229      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES" >&5
24230 $as_echo_n "checking for _LARGE_FILES... " >&6; }
24231 if test "${ac_cv_sys_large_files+set}" = set; then :
24232   $as_echo_n "(cached) " >&6
24233 else
24234   ac_cv_sys_large_files=no
24235       ac_cv_sys_large_files=1
24236       for ac_flag in $ac_cv_sys_largefile_CFLAGS no; do
24237         case "$ac_flag" in
24238         -D_LARGE_FILES)
24239           ac_cv_sys_large_files=1 ;;
24240         -D_LARGE_FILES=*)
24241           ac_cv_sys_large_files=`expr " $ac_flag" : '[^=]*=\(.*\)'` ;;
24242         esac
24243       done
24244
24245 fi
24246 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
24247 $as_echo "$ac_cv_sys_large_files" >&6; }
24248    if test "$ac_cv_sys_large_files" != no; then
24249
24250 cat >>confdefs.h <<_ACEOF
24251 #define _LARGE_FILES $ac_cv_sys_large_files
24252 _ACEOF
24253
24254    fi
24255    fi
24256
24257
24258 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for X" >&5
24259 $as_echo_n "checking for X... " >&6; }
24260
24261
24262 # Check whether --with-x was given.
24263 if test "${with_x+set}" = set; then :
24264   withval=$with_x;
24265 fi
24266
24267 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
24268 if test "x$with_x" = xno; then
24269   # The user explicitly disabled X.
24270   have_x=disabled
24271 else
24272   case $x_includes,$x_libraries in #(
24273     *\'*) as_fn_error "cannot use X directory names containing '" "$LINENO" 5;; #(
24274     *,NONE | NONE,*) if test "${ac_cv_have_x+set}" = set; then :
24275   $as_echo_n "(cached) " >&6
24276 else
24277   # One or both of the vars are not set, and there is no cached value.
24278 ac_x_includes=no ac_x_libraries=no
24279 rm -f -r conftest.dir
24280 if mkdir conftest.dir; then
24281   cd conftest.dir
24282   cat >Imakefile <<'_ACEOF'
24283 incroot:
24284         @echo incroot='${INCROOT}'
24285 usrlibdir:
24286         @echo usrlibdir='${USRLIBDIR}'
24287 libdir:
24288         @echo libdir='${LIBDIR}'
24289 _ACEOF
24290   if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
24291     # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
24292     for ac_var in incroot usrlibdir libdir; do
24293       eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
24294     done
24295     # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
24296     for ac_extension in a so sl dylib la dll; do
24297       if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
24298          test -f "$ac_im_libdir/libX11.$ac_extension"; then
24299         ac_im_usrlibdir=$ac_im_libdir; break
24300       fi
24301     done
24302     # Screen out bogus values from the imake configuration.  They are
24303     # bogus both because they are the default anyway, and because
24304     # using them would break gcc on systems where it needs fixed includes.
24305     case $ac_im_incroot in
24306         /usr/include) ac_x_includes= ;;
24307         *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
24308     esac
24309     case $ac_im_usrlibdir in
24310         /usr/lib | /usr/lib64 | /lib | /lib64) ;;
24311         *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
24312     esac
24313   fi
24314   cd ..
24315   rm -f -r conftest.dir
24316 fi
24317
24318 # Standard set of common directories for X headers.
24319 # Check X11 before X11Rn because it is often a symlink to the current release.
24320 ac_x_header_dirs='
24321 /usr/X11/include
24322 /usr/X11R7/include
24323 /usr/X11R6/include
24324 /usr/X11R5/include
24325 /usr/X11R4/include
24326
24327 /usr/include/X11
24328 /usr/include/X11R7
24329 /usr/include/X11R6
24330 /usr/include/X11R5
24331 /usr/include/X11R4
24332
24333 /usr/local/X11/include
24334 /usr/local/X11R7/include
24335 /usr/local/X11R6/include
24336 /usr/local/X11R5/include
24337 /usr/local/X11R4/include
24338
24339 /usr/local/include/X11
24340 /usr/local/include/X11R7
24341 /usr/local/include/X11R6
24342 /usr/local/include/X11R5
24343 /usr/local/include/X11R4
24344
24345 /usr/X386/include
24346 /usr/x386/include
24347 /usr/XFree86/include/X11
24348
24349 /usr/include
24350 /usr/local/include
24351 /usr/unsupported/include
24352 /usr/athena/include
24353 /usr/local/x11r5/include
24354 /usr/lpp/Xamples/include
24355
24356 /usr/openwin/include
24357 /usr/openwin/share/include'
24358
24359 if test "$ac_x_includes" = no; then
24360   # Guess where to find include files, by looking for Xlib.h.
24361   # First, try using that file with no special directory specified.
24362   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24363 /* end confdefs.h.  */
24364 #include <X11/Xlib.h>
24365 _ACEOF
24366 if ac_fn_c_try_cpp "$LINENO"; then :
24367   # We can compile using X headers with no special include directory.
24368 ac_x_includes=
24369 else
24370   for ac_dir in $ac_x_header_dirs; do
24371   if test -r "$ac_dir/X11/Xlib.h"; then
24372     ac_x_includes=$ac_dir
24373     break
24374   fi
24375 done
24376 fi
24377 rm -f conftest.err conftest.$ac_ext
24378 fi # $ac_x_includes = no
24379
24380 if test "$ac_x_libraries" = no; then
24381   # Check for the libraries.
24382   # See if we find them without any special options.
24383   # Don't add to $LIBS permanently.
24384   ac_save_LIBS=$LIBS
24385   LIBS="-lX11 $LIBS"
24386   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24387 /* end confdefs.h.  */
24388 #include <X11/Xlib.h>
24389 int
24390 main ()
24391 {
24392 XrmInitialize ()
24393   ;
24394   return 0;
24395 }
24396 _ACEOF
24397 if ac_fn_c_try_link "$LINENO"; then :
24398   LIBS=$ac_save_LIBS
24399 # We can link X programs with no special library path.
24400 ac_x_libraries=
24401 else
24402   LIBS=$ac_save_LIBS
24403 for ac_dir in `$as_echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
24404 do
24405   # Don't even attempt the hair of trying to link an X program!
24406   for ac_extension in a so sl dylib la dll; do
24407     if test -r "$ac_dir/libX11.$ac_extension"; then
24408       ac_x_libraries=$ac_dir
24409       break 2
24410     fi
24411   done
24412 done
24413 fi
24414 rm -f core conftest.err conftest.$ac_objext \
24415     conftest$ac_exeext conftest.$ac_ext
24416 fi # $ac_x_libraries = no
24417
24418 case $ac_x_includes,$ac_x_libraries in #(
24419   no,* | *,no | *\'*)
24420     # Didn't find X, or a directory has "'" in its name.
24421     ac_cv_have_x="have_x=no";; #(
24422   *)
24423     # Record where we found X for the cache.
24424     ac_cv_have_x="have_x=yes\
24425         ac_x_includes='$ac_x_includes'\
24426         ac_x_libraries='$ac_x_libraries'"
24427 esac
24428 fi
24429 ;; #(
24430     *) have_x=yes;;
24431   esac
24432   eval "$ac_cv_have_x"
24433 fi # $with_x != no
24434
24435 if test "$have_x" != yes; then
24436   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_x" >&5
24437 $as_echo "$have_x" >&6; }
24438   no_x=yes
24439 else
24440   # If each of the values was on the command line, it overrides each guess.
24441   test "x$x_includes" = xNONE && x_includes=$ac_x_includes
24442   test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
24443   # Update the cache value to reflect the command line values.
24444   ac_cv_have_x="have_x=yes\
24445         ac_x_includes='$x_includes'\
24446         ac_x_libraries='$x_libraries'"
24447   { $as_echo "$as_me:${as_lineno-$LINENO}: result: libraries $x_libraries, headers $x_includes" >&5
24448 $as_echo "libraries $x_libraries, headers $x_includes" >&6; }
24449 fi
24450
24451 if test "$no_x" = yes; then
24452   # Not all programs may use this symbol, but it does not hurt to define it.
24453
24454 $as_echo "#define X_DISPLAY_MISSING 1" >>confdefs.h
24455
24456   X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
24457 else
24458   if test -n "$x_includes"; then
24459     X_CFLAGS="$X_CFLAGS -I$x_includes"
24460   fi
24461
24462   # It would also be nice to do this for all -L options, not just this one.
24463   if test -n "$x_libraries"; then
24464     X_LIBS="$X_LIBS -L$x_libraries"
24465     # For Solaris; some versions of Sun CC require a space after -R and
24466     # others require no space.  Words are not sufficient . . . .
24467     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -R must be followed by a space" >&5
24468 $as_echo_n "checking whether -R must be followed by a space... " >&6; }
24469     ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
24470     ac_xsave_c_werror_flag=$ac_c_werror_flag
24471     ac_c_werror_flag=yes
24472     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24473 /* end confdefs.h.  */
24474
24475 int
24476 main ()
24477 {
24478
24479   ;
24480   return 0;
24481 }
24482 _ACEOF
24483 if ac_fn_c_try_link "$LINENO"; then :
24484   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24485 $as_echo "no" >&6; }
24486        X_LIBS="$X_LIBS -R$x_libraries"
24487 else
24488   LIBS="$ac_xsave_LIBS -R $x_libraries"
24489        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24490 /* end confdefs.h.  */
24491
24492 int
24493 main ()
24494 {
24495
24496   ;
24497   return 0;
24498 }
24499 _ACEOF
24500 if ac_fn_c_try_link "$LINENO"; then :
24501   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
24502 $as_echo "yes" >&6; }
24503           X_LIBS="$X_LIBS -R $x_libraries"
24504 else
24505   { $as_echo "$as_me:${as_lineno-$LINENO}: result: neither works" >&5
24506 $as_echo "neither works" >&6; }
24507 fi
24508 rm -f core conftest.err conftest.$ac_objext \
24509     conftest$ac_exeext conftest.$ac_ext
24510 fi
24511 rm -f core conftest.err conftest.$ac_objext \
24512     conftest$ac_exeext conftest.$ac_ext
24513     ac_c_werror_flag=$ac_xsave_c_werror_flag
24514     LIBS=$ac_xsave_LIBS
24515   fi
24516
24517   # Check for system-dependent libraries X programs must link with.
24518   # Do this before checking for the system-independent R6 libraries
24519   # (-lICE), since we may need -lsocket or whatever for X linking.
24520
24521   if test "$ISC" = yes; then
24522     X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
24523   else
24524     # Martyn Johnson says this is needed for Ultrix, if the X
24525     # libraries were built with DECnet support.  And Karl Berry says
24526     # the Alpha needs dnet_stub (dnet does not exist).
24527     ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
24528     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24529 /* end confdefs.h.  */
24530
24531 /* Override any GCC internal prototype to avoid an error.
24532    Use char because int might match the return type of a GCC
24533    builtin and then its argument prototype would still apply.  */
24534 #ifdef __cplusplus
24535 extern "C"
24536 #endif
24537 char XOpenDisplay ();
24538 int
24539 main ()
24540 {
24541 return XOpenDisplay ();
24542   ;
24543   return 0;
24544 }
24545 _ACEOF
24546 if ac_fn_c_try_link "$LINENO"; then :
24547
24548 else
24549   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet" >&5
24550 $as_echo_n "checking for dnet_ntoa in -ldnet... " >&6; }
24551 if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then :
24552   $as_echo_n "(cached) " >&6
24553 else
24554   ac_check_lib_save_LIBS=$LIBS
24555 LIBS="-ldnet  $LIBS"
24556 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24557 /* end confdefs.h.  */
24558
24559 /* Override any GCC internal prototype to avoid an error.
24560    Use char because int might match the return type of a GCC
24561    builtin and then its argument prototype would still apply.  */
24562 #ifdef __cplusplus
24563 extern "C"
24564 #endif
24565 char dnet_ntoa ();
24566 int
24567 main ()
24568 {
24569 return dnet_ntoa ();
24570   ;
24571   return 0;
24572 }
24573 _ACEOF
24574 if ac_fn_c_try_link "$LINENO"; then :
24575   ac_cv_lib_dnet_dnet_ntoa=yes
24576 else
24577   ac_cv_lib_dnet_dnet_ntoa=no
24578 fi
24579 rm -f core conftest.err conftest.$ac_objext \
24580     conftest$ac_exeext conftest.$ac_ext
24581 LIBS=$ac_check_lib_save_LIBS
24582 fi
24583 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
24584 $as_echo "$ac_cv_lib_dnet_dnet_ntoa" >&6; }
24585 if test "x$ac_cv_lib_dnet_dnet_ntoa" = x""yes; then :
24586   X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
24587 fi
24588
24589     if test $ac_cv_lib_dnet_dnet_ntoa = no; then
24590       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet_stub" >&5
24591 $as_echo_n "checking for dnet_ntoa in -ldnet_stub... " >&6; }
24592 if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then :
24593   $as_echo_n "(cached) " >&6
24594 else
24595   ac_check_lib_save_LIBS=$LIBS
24596 LIBS="-ldnet_stub  $LIBS"
24597 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24598 /* end confdefs.h.  */
24599
24600 /* Override any GCC internal prototype to avoid an error.
24601    Use char because int might match the return type of a GCC
24602    builtin and then its argument prototype would still apply.  */
24603 #ifdef __cplusplus
24604 extern "C"
24605 #endif
24606 char dnet_ntoa ();
24607 int
24608 main ()
24609 {
24610 return dnet_ntoa ();
24611   ;
24612   return 0;
24613 }
24614 _ACEOF
24615 if ac_fn_c_try_link "$LINENO"; then :
24616   ac_cv_lib_dnet_stub_dnet_ntoa=yes
24617 else
24618   ac_cv_lib_dnet_stub_dnet_ntoa=no
24619 fi
24620 rm -f core conftest.err conftest.$ac_objext \
24621     conftest$ac_exeext conftest.$ac_ext
24622 LIBS=$ac_check_lib_save_LIBS
24623 fi
24624 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
24625 $as_echo "$ac_cv_lib_dnet_stub_dnet_ntoa" >&6; }
24626 if test "x$ac_cv_lib_dnet_stub_dnet_ntoa" = x""yes; then :
24627   X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
24628 fi
24629
24630     fi
24631 fi
24632 rm -f core conftest.err conftest.$ac_objext \
24633     conftest$ac_exeext conftest.$ac_ext
24634     LIBS="$ac_xsave_LIBS"
24635
24636     # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
24637     # to get the SysV transport functions.
24638     # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
24639     # needs -lnsl.
24640     # The nsl library prevents programs from opening the X display
24641     # on Irix 5.2, according to T.E. Dickey.
24642     # The functions gethostbyname, getservbyname, and inet_addr are
24643     # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
24644     ac_fn_c_check_func "$LINENO" "gethostbyname" "ac_cv_func_gethostbyname"
24645 if test "x$ac_cv_func_gethostbyname" = x""yes; then :
24646
24647 fi
24648
24649     if test $ac_cv_func_gethostbyname = no; then
24650       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lnsl" >&5
24651 $as_echo_n "checking for gethostbyname in -lnsl... " >&6; }
24652 if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then :
24653   $as_echo_n "(cached) " >&6
24654 else
24655   ac_check_lib_save_LIBS=$LIBS
24656 LIBS="-lnsl  $LIBS"
24657 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24658 /* end confdefs.h.  */
24659
24660 /* Override any GCC internal prototype to avoid an error.
24661    Use char because int might match the return type of a GCC
24662    builtin and then its argument prototype would still apply.  */
24663 #ifdef __cplusplus
24664 extern "C"
24665 #endif
24666 char gethostbyname ();
24667 int
24668 main ()
24669 {
24670 return gethostbyname ();
24671   ;
24672   return 0;
24673 }
24674 _ACEOF
24675 if ac_fn_c_try_link "$LINENO"; then :
24676   ac_cv_lib_nsl_gethostbyname=yes
24677 else
24678   ac_cv_lib_nsl_gethostbyname=no
24679 fi
24680 rm -f core conftest.err conftest.$ac_objext \
24681     conftest$ac_exeext conftest.$ac_ext
24682 LIBS=$ac_check_lib_save_LIBS
24683 fi
24684 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_gethostbyname" >&5
24685 $as_echo "$ac_cv_lib_nsl_gethostbyname" >&6; }
24686 if test "x$ac_cv_lib_nsl_gethostbyname" = x""yes; then :
24687   X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
24688 fi
24689
24690       if test $ac_cv_lib_nsl_gethostbyname = no; then
24691         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lbsd" >&5
24692 $as_echo_n "checking for gethostbyname in -lbsd... " >&6; }
24693 if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then :
24694   $as_echo_n "(cached) " >&6
24695 else
24696   ac_check_lib_save_LIBS=$LIBS
24697 LIBS="-lbsd  $LIBS"
24698 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24699 /* end confdefs.h.  */
24700
24701 /* Override any GCC internal prototype to avoid an error.
24702    Use char because int might match the return type of a GCC
24703    builtin and then its argument prototype would still apply.  */
24704 #ifdef __cplusplus
24705 extern "C"
24706 #endif
24707 char gethostbyname ();
24708 int
24709 main ()
24710 {
24711 return gethostbyname ();
24712   ;
24713   return 0;
24714 }
24715 _ACEOF
24716 if ac_fn_c_try_link "$LINENO"; then :
24717   ac_cv_lib_bsd_gethostbyname=yes
24718 else
24719   ac_cv_lib_bsd_gethostbyname=no
24720 fi
24721 rm -f core conftest.err conftest.$ac_objext \
24722     conftest$ac_exeext conftest.$ac_ext
24723 LIBS=$ac_check_lib_save_LIBS
24724 fi
24725 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bsd_gethostbyname" >&5
24726 $as_echo "$ac_cv_lib_bsd_gethostbyname" >&6; }
24727 if test "x$ac_cv_lib_bsd_gethostbyname" = x""yes; then :
24728   X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
24729 fi
24730
24731       fi
24732     fi
24733
24734     # lieder@skyler.mavd.honeywell.com says without -lsocket,
24735     # socket/setsockopt and other routines are undefined under SCO ODT
24736     # 2.0.  But -lsocket is broken on IRIX 5.2 (and is not necessary
24737     # on later versions), says Simon Leinen: it contains gethostby*
24738     # variants that don't use the name server (or something).  -lsocket
24739     # must be given before -lnsl if both are needed.  We assume that
24740     # if connect needs -lnsl, so does gethostbyname.
24741     ac_fn_c_check_func "$LINENO" "connect" "ac_cv_func_connect"
24742 if test "x$ac_cv_func_connect" = x""yes; then :
24743
24744 fi
24745
24746     if test $ac_cv_func_connect = no; then
24747       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for connect in -lsocket" >&5
24748 $as_echo_n "checking for connect in -lsocket... " >&6; }
24749 if test "${ac_cv_lib_socket_connect+set}" = set; then :
24750   $as_echo_n "(cached) " >&6
24751 else
24752   ac_check_lib_save_LIBS=$LIBS
24753 LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
24754 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24755 /* end confdefs.h.  */
24756
24757 /* Override any GCC internal prototype to avoid an error.
24758    Use char because int might match the return type of a GCC
24759    builtin and then its argument prototype would still apply.  */
24760 #ifdef __cplusplus
24761 extern "C"
24762 #endif
24763 char connect ();
24764 int
24765 main ()
24766 {
24767 return connect ();
24768   ;
24769   return 0;
24770 }
24771 _ACEOF
24772 if ac_fn_c_try_link "$LINENO"; then :
24773   ac_cv_lib_socket_connect=yes
24774 else
24775   ac_cv_lib_socket_connect=no
24776 fi
24777 rm -f core conftest.err conftest.$ac_objext \
24778     conftest$ac_exeext conftest.$ac_ext
24779 LIBS=$ac_check_lib_save_LIBS
24780 fi
24781 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_connect" >&5
24782 $as_echo "$ac_cv_lib_socket_connect" >&6; }
24783 if test "x$ac_cv_lib_socket_connect" = x""yes; then :
24784   X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
24785 fi
24786
24787     fi
24788
24789     # Guillermo Gomez says -lposix is necessary on A/UX.
24790     ac_fn_c_check_func "$LINENO" "remove" "ac_cv_func_remove"
24791 if test "x$ac_cv_func_remove" = x""yes; then :
24792
24793 fi
24794
24795     if test $ac_cv_func_remove = no; then
24796       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for remove in -lposix" >&5
24797 $as_echo_n "checking for remove in -lposix... " >&6; }
24798 if test "${ac_cv_lib_posix_remove+set}" = set; then :
24799   $as_echo_n "(cached) " >&6
24800 else
24801   ac_check_lib_save_LIBS=$LIBS
24802 LIBS="-lposix  $LIBS"
24803 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24804 /* end confdefs.h.  */
24805
24806 /* Override any GCC internal prototype to avoid an error.
24807    Use char because int might match the return type of a GCC
24808    builtin and then its argument prototype would still apply.  */
24809 #ifdef __cplusplus
24810 extern "C"
24811 #endif
24812 char remove ();
24813 int
24814 main ()
24815 {
24816 return remove ();
24817   ;
24818   return 0;
24819 }
24820 _ACEOF
24821 if ac_fn_c_try_link "$LINENO"; then :
24822   ac_cv_lib_posix_remove=yes
24823 else
24824   ac_cv_lib_posix_remove=no
24825 fi
24826 rm -f core conftest.err conftest.$ac_objext \
24827     conftest$ac_exeext conftest.$ac_ext
24828 LIBS=$ac_check_lib_save_LIBS
24829 fi
24830 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_posix_remove" >&5
24831 $as_echo "$ac_cv_lib_posix_remove" >&6; }
24832 if test "x$ac_cv_lib_posix_remove" = x""yes; then :
24833   X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
24834 fi
24835
24836     fi
24837
24838     # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
24839     ac_fn_c_check_func "$LINENO" "shmat" "ac_cv_func_shmat"
24840 if test "x$ac_cv_func_shmat" = x""yes; then :
24841
24842 fi
24843
24844     if test $ac_cv_func_shmat = no; then
24845       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shmat in -lipc" >&5
24846 $as_echo_n "checking for shmat in -lipc... " >&6; }
24847 if test "${ac_cv_lib_ipc_shmat+set}" = set; then :
24848   $as_echo_n "(cached) " >&6
24849 else
24850   ac_check_lib_save_LIBS=$LIBS
24851 LIBS="-lipc  $LIBS"
24852 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24853 /* end confdefs.h.  */
24854
24855 /* Override any GCC internal prototype to avoid an error.
24856    Use char because int might match the return type of a GCC
24857    builtin and then its argument prototype would still apply.  */
24858 #ifdef __cplusplus
24859 extern "C"
24860 #endif
24861 char shmat ();
24862 int
24863 main ()
24864 {
24865 return shmat ();
24866   ;
24867   return 0;
24868 }
24869 _ACEOF
24870 if ac_fn_c_try_link "$LINENO"; then :
24871   ac_cv_lib_ipc_shmat=yes
24872 else
24873   ac_cv_lib_ipc_shmat=no
24874 fi
24875 rm -f core conftest.err conftest.$ac_objext \
24876     conftest$ac_exeext conftest.$ac_ext
24877 LIBS=$ac_check_lib_save_LIBS
24878 fi
24879 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ipc_shmat" >&5
24880 $as_echo "$ac_cv_lib_ipc_shmat" >&6; }
24881 if test "x$ac_cv_lib_ipc_shmat" = x""yes; then :
24882   X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
24883 fi
24884
24885     fi
24886   fi
24887
24888   # Check for libraries that X11R6 Xt/Xaw programs need.
24889   ac_save_LDFLAGS=$LDFLAGS
24890   test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
24891   # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
24892   # check for ICE first), but we must link in the order -lSM -lICE or
24893   # we get undefined symbols.  So assume we have SM if we have ICE.
24894   # These have to be linked with before -lX11, unlike the other
24895   # libraries we check for below, so use a different variable.
24896   # John Interrante, Karl Berry
24897   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for IceConnectionNumber in -lICE" >&5
24898 $as_echo_n "checking for IceConnectionNumber in -lICE... " >&6; }
24899 if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then :
24900   $as_echo_n "(cached) " >&6
24901 else
24902   ac_check_lib_save_LIBS=$LIBS
24903 LIBS="-lICE $X_EXTRA_LIBS $LIBS"
24904 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24905 /* end confdefs.h.  */
24906
24907 /* Override any GCC internal prototype to avoid an error.
24908    Use char because int might match the return type of a GCC
24909    builtin and then its argument prototype would still apply.  */
24910 #ifdef __cplusplus
24911 extern "C"
24912 #endif
24913 char IceConnectionNumber ();
24914 int
24915 main ()
24916 {
24917 return IceConnectionNumber ();
24918   ;
24919   return 0;
24920 }
24921 _ACEOF
24922 if ac_fn_c_try_link "$LINENO"; then :
24923   ac_cv_lib_ICE_IceConnectionNumber=yes
24924 else
24925   ac_cv_lib_ICE_IceConnectionNumber=no
24926 fi
24927 rm -f core conftest.err conftest.$ac_objext \
24928     conftest$ac_exeext conftest.$ac_ext
24929 LIBS=$ac_check_lib_save_LIBS
24930 fi
24931 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
24932 $as_echo "$ac_cv_lib_ICE_IceConnectionNumber" >&6; }
24933 if test "x$ac_cv_lib_ICE_IceConnectionNumber" = x""yes; then :
24934   X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
24935 fi
24936
24937   LDFLAGS=$ac_save_LDFLAGS
24938
24939 fi
24940
24941
24942 for ac_header in \
24943    assert.h \
24944    fcntl.h \
24945    grp.h \
24946    pwd.h \
24947    libc.h \
24948    limits.h \
24949    stdarg.h \
24950    stdlib.h \
24951    stdint.h \
24952    string.h \
24953    strings.h \
24954    termios.h \
24955    termcap.h \
24956    term.h \
24957    unistd.h \
24958    sys/bitypes.h \
24959    sys/byteorder.h \
24960    sys/ioctl.h \
24961    sys/select.h \
24962    sys/socket.h \
24963    sys/sockio.h \
24964    sys/stat.h \
24965    sys/time.h \
24966    sys/types.h \
24967    arpa/nameser.h \
24968    mtio.h \
24969    sys/mtio.h \
24970    sys/tape.h \
24971    regex.h \
24972
24973 do :
24974   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
24975 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
24976 eval as_val=\$$as_ac_Header
24977    if test "x$as_val" = x""yes; then :
24978   cat >>confdefs.h <<_ACEOF
24979 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
24980 _ACEOF
24981
24982 fi
24983
24984 done
24985
24986 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
24987 $as_echo_n "checking for ANSI C header files... " >&6; }
24988 if test "${ac_cv_header_stdc+set}" = set; then :
24989   $as_echo_n "(cached) " >&6
24990 else
24991   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24992 /* end confdefs.h.  */
24993 #include <stdlib.h>
24994 #include <stdarg.h>
24995 #include <string.h>
24996 #include <float.h>
24997
24998 int
24999 main ()
25000 {
25001
25002   ;
25003   return 0;
25004 }
25005 _ACEOF
25006 if ac_fn_c_try_compile "$LINENO"; then :
25007   ac_cv_header_stdc=yes
25008 else
25009   ac_cv_header_stdc=no
25010 fi
25011 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25012
25013 if test $ac_cv_header_stdc = yes; then
25014   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
25015   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25016 /* end confdefs.h.  */
25017 #include <string.h>
25018
25019 _ACEOF
25020 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
25021   $EGREP "memchr" >/dev/null 2>&1; then :
25022
25023 else
25024   ac_cv_header_stdc=no
25025 fi
25026 rm -f conftest*
25027
25028 fi
25029
25030 if test $ac_cv_header_stdc = yes; then
25031   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
25032   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25033 /* end confdefs.h.  */
25034 #include <stdlib.h>
25035
25036 _ACEOF
25037 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
25038   $EGREP "free" >/dev/null 2>&1; then :
25039
25040 else
25041   ac_cv_header_stdc=no
25042 fi
25043 rm -f conftest*
25044
25045 fi
25046
25047 if test $ac_cv_header_stdc = yes; then
25048   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
25049   if test "$cross_compiling" = yes; then :
25050   :
25051 else
25052   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25053 /* end confdefs.h.  */
25054 #include <ctype.h>
25055 #include <stdlib.h>
25056 #if ((' ' & 0x0FF) == 0x020)
25057 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
25058 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
25059 #else
25060 # define ISLOWER(c) \
25061                    (('a' <= (c) && (c) <= 'i') \
25062                      || ('j' <= (c) && (c) <= 'r') \
25063                      || ('s' <= (c) && (c) <= 'z'))
25064 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
25065 #endif
25066
25067 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
25068 int
25069 main ()
25070 {
25071   int i;
25072   for (i = 0; i < 256; i++)
25073     if (XOR (islower (i), ISLOWER (i))
25074         || toupper (i) != TOUPPER (i))
25075       return 2;
25076   return 0;
25077 }
25078 _ACEOF
25079 if ac_fn_c_try_run "$LINENO"; then :
25080
25081 else
25082   ac_cv_header_stdc=no
25083 fi
25084 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
25085   conftest.$ac_objext conftest.beam conftest.$ac_ext
25086 fi
25087
25088 fi
25089 fi
25090 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
25091 $as_echo "$ac_cv_header_stdc" >&6; }
25092 if test $ac_cv_header_stdc = yes; then
25093
25094 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
25095
25096 fi
25097
25098 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether sys/types.h defines makedev" >&5
25099 $as_echo_n "checking whether sys/types.h defines makedev... " >&6; }
25100 if test "${ac_cv_header_sys_types_h_makedev+set}" = set; then :
25101   $as_echo_n "(cached) " >&6
25102 else
25103   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25104 /* end confdefs.h.  */
25105 #include <sys/types.h>
25106 int
25107 main ()
25108 {
25109 return makedev(0, 0);
25110   ;
25111   return 0;
25112 }
25113 _ACEOF
25114 if ac_fn_c_try_link "$LINENO"; then :
25115   ac_cv_header_sys_types_h_makedev=yes
25116 else
25117   ac_cv_header_sys_types_h_makedev=no
25118 fi
25119 rm -f core conftest.err conftest.$ac_objext \
25120     conftest$ac_exeext conftest.$ac_ext
25121
25122 fi
25123 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_types_h_makedev" >&5
25124 $as_echo "$ac_cv_header_sys_types_h_makedev" >&6; }
25125
25126 if test $ac_cv_header_sys_types_h_makedev = no; then
25127 ac_fn_c_check_header_mongrel "$LINENO" "sys/mkdev.h" "ac_cv_header_sys_mkdev_h" "$ac_includes_default"
25128 if test "x$ac_cv_header_sys_mkdev_h" = x""yes; then :
25129
25130 $as_echo "#define MAJOR_IN_MKDEV 1" >>confdefs.h
25131
25132 fi
25133
25134
25135
25136   if test $ac_cv_header_sys_mkdev_h = no; then
25137     ac_fn_c_check_header_mongrel "$LINENO" "sys/sysmacros.h" "ac_cv_header_sys_sysmacros_h" "$ac_includes_default"
25138 if test "x$ac_cv_header_sys_sysmacros_h" = x""yes; then :
25139
25140 $as_echo "#define MAJOR_IN_SYSMACROS 1" >>confdefs.h
25141
25142 fi
25143
25144
25145   fi
25146 fi
25147
25148 ac_header_dirent=no
25149 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
25150   as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
25151 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_hdr that defines DIR" >&5
25152 $as_echo_n "checking for $ac_hdr that defines DIR... " >&6; }
25153 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then :
25154   $as_echo_n "(cached) " >&6
25155 else
25156   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25157 /* end confdefs.h.  */
25158 #include <sys/types.h>
25159 #include <$ac_hdr>
25160
25161 int
25162 main ()
25163 {
25164 if ((DIR *) 0)
25165 return 0;
25166   ;
25167   return 0;
25168 }
25169 _ACEOF
25170 if ac_fn_c_try_compile "$LINENO"; then :
25171   eval "$as_ac_Header=yes"
25172 else
25173   eval "$as_ac_Header=no"
25174 fi
25175 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25176 fi
25177 eval ac_res=\$$as_ac_Header
25178                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
25179 $as_echo "$ac_res" >&6; }
25180 eval as_val=\$$as_ac_Header
25181    if test "x$as_val" = x""yes; then :
25182   cat >>confdefs.h <<_ACEOF
25183 #define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
25184 _ACEOF
25185
25186 ac_header_dirent=$ac_hdr; break
25187 fi
25188
25189 done
25190 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
25191 if test $ac_header_dirent = dirent.h; then
25192   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
25193 $as_echo_n "checking for library containing opendir... " >&6; }
25194 if test "${ac_cv_search_opendir+set}" = set; then :
25195   $as_echo_n "(cached) " >&6
25196 else
25197   ac_func_search_save_LIBS=$LIBS
25198 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25199 /* end confdefs.h.  */
25200
25201 /* Override any GCC internal prototype to avoid an error.
25202    Use char because int might match the return type of a GCC
25203    builtin and then its argument prototype would still apply.  */
25204 #ifdef __cplusplus
25205 extern "C"
25206 #endif
25207 char opendir ();
25208 int
25209 main ()
25210 {
25211 return opendir ();
25212   ;
25213   return 0;
25214 }
25215 _ACEOF
25216 for ac_lib in '' dir; do
25217   if test -z "$ac_lib"; then
25218     ac_res="none required"
25219   else
25220     ac_res=-l$ac_lib
25221     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
25222   fi
25223   if ac_fn_c_try_link "$LINENO"; then :
25224   ac_cv_search_opendir=$ac_res
25225 fi
25226 rm -f core conftest.err conftest.$ac_objext \
25227     conftest$ac_exeext
25228   if test "${ac_cv_search_opendir+set}" = set; then :
25229   break
25230 fi
25231 done
25232 if test "${ac_cv_search_opendir+set}" = set; then :
25233
25234 else
25235   ac_cv_search_opendir=no
25236 fi
25237 rm conftest.$ac_ext
25238 LIBS=$ac_func_search_save_LIBS
25239 fi
25240 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
25241 $as_echo "$ac_cv_search_opendir" >&6; }
25242 ac_res=$ac_cv_search_opendir
25243 if test "$ac_res" != no; then :
25244   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
25245
25246 fi
25247
25248 else
25249   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
25250 $as_echo_n "checking for library containing opendir... " >&6; }
25251 if test "${ac_cv_search_opendir+set}" = set; then :
25252   $as_echo_n "(cached) " >&6
25253 else
25254   ac_func_search_save_LIBS=$LIBS
25255 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25256 /* end confdefs.h.  */
25257
25258 /* Override any GCC internal prototype to avoid an error.
25259    Use char because int might match the return type of a GCC
25260    builtin and then its argument prototype would still apply.  */
25261 #ifdef __cplusplus
25262 extern "C"
25263 #endif
25264 char opendir ();
25265 int
25266 main ()
25267 {
25268 return opendir ();
25269   ;
25270   return 0;
25271 }
25272 _ACEOF
25273 for ac_lib in '' x; do
25274   if test -z "$ac_lib"; then
25275     ac_res="none required"
25276   else
25277     ac_res=-l$ac_lib
25278     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
25279   fi
25280   if ac_fn_c_try_link "$LINENO"; then :
25281   ac_cv_search_opendir=$ac_res
25282 fi
25283 rm -f core conftest.err conftest.$ac_objext \
25284     conftest$ac_exeext
25285   if test "${ac_cv_search_opendir+set}" = set; then :
25286   break
25287 fi
25288 done
25289 if test "${ac_cv_search_opendir+set}" = set; then :
25290
25291 else
25292   ac_cv_search_opendir=no
25293 fi
25294 rm conftest.$ac_ext
25295 LIBS=$ac_func_search_save_LIBS
25296 fi
25297 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
25298 $as_echo "$ac_cv_search_opendir" >&6; }
25299 ac_res=$ac_cv_search_opendir
25300 if test "$ac_res" != no; then :
25301   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
25302
25303 fi
25304
25305 fi
25306
25307 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat file-mode macros are broken" >&5
25308 $as_echo_n "checking whether stat file-mode macros are broken... " >&6; }
25309 if test "${ac_cv_header_stat_broken+set}" = set; then :
25310   $as_echo_n "(cached) " >&6
25311 else
25312   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25313 /* end confdefs.h.  */
25314 #include <sys/types.h>
25315 #include <sys/stat.h>
25316
25317 #if defined S_ISBLK && defined S_IFDIR
25318 extern char c1[S_ISBLK (S_IFDIR) ? -1 : 1];
25319 #endif
25320
25321 #if defined S_ISBLK && defined S_IFCHR
25322 extern char c2[S_ISBLK (S_IFCHR) ? -1 : 1];
25323 #endif
25324
25325 #if defined S_ISLNK && defined S_IFREG
25326 extern char c3[S_ISLNK (S_IFREG) ? -1 : 1];
25327 #endif
25328
25329 #if defined S_ISSOCK && defined S_IFREG
25330 extern char c4[S_ISSOCK (S_IFREG) ? -1 : 1];
25331 #endif
25332
25333 _ACEOF
25334 if ac_fn_c_try_compile "$LINENO"; then :
25335   ac_cv_header_stat_broken=no
25336 else
25337   ac_cv_header_stat_broken=yes
25338 fi
25339 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25340 fi
25341 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stat_broken" >&5
25342 $as_echo "$ac_cv_header_stat_broken" >&6; }
25343 if test $ac_cv_header_stat_broken = yes; then
25344
25345 $as_echo "#define STAT_MACROS_BROKEN 1" >>confdefs.h
25346
25347 fi
25348
25349 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sys/wait.h that is POSIX.1 compatible" >&5
25350 $as_echo_n "checking for sys/wait.h that is POSIX.1 compatible... " >&6; }
25351 if test "${ac_cv_header_sys_wait_h+set}" = set; then :
25352   $as_echo_n "(cached) " >&6
25353 else
25354   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25355 /* end confdefs.h.  */
25356 #include <sys/types.h>
25357 #include <sys/wait.h>
25358 #ifndef WEXITSTATUS
25359 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
25360 #endif
25361 #ifndef WIFEXITED
25362 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
25363 #endif
25364
25365 int
25366 main ()
25367 {
25368   int s;
25369   wait (&s);
25370   s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
25371   ;
25372   return 0;
25373 }
25374 _ACEOF
25375 if ac_fn_c_try_compile "$LINENO"; then :
25376   ac_cv_header_sys_wait_h=yes
25377 else
25378   ac_cv_header_sys_wait_h=no
25379 fi
25380 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25381 fi
25382 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_wait_h" >&5
25383 $as_echo "$ac_cv_header_sys_wait_h" >&6; }
25384 if test $ac_cv_header_sys_wait_h = yes; then
25385
25386 $as_echo "#define HAVE_SYS_WAIT_H 1" >>confdefs.h
25387
25388 fi
25389
25390 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
25391 $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
25392 if test "${ac_cv_header_time+set}" = set; then :
25393   $as_echo_n "(cached) " >&6
25394 else
25395   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25396 /* end confdefs.h.  */
25397 #include <sys/types.h>
25398 #include <sys/time.h>
25399 #include <time.h>
25400
25401 int
25402 main ()
25403 {
25404 if ((struct tm *) 0)
25405 return 0;
25406   ;
25407   return 0;
25408 }
25409 _ACEOF
25410 if ac_fn_c_try_compile "$LINENO"; then :
25411   ac_cv_header_time=yes
25412 else
25413   ac_cv_header_time=no
25414 fi
25415 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25416 fi
25417 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
25418 $as_echo "$ac_cv_header_time" >&6; }
25419 if test $ac_cv_header_time = yes; then
25420
25421 $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
25422
25423 fi
25424
25425 ac_fn_c_check_member "$LINENO" "struct stat" "st_blksize" "ac_cv_member_struct_stat_st_blksize" "$ac_includes_default"
25426 if test "x$ac_cv_member_struct_stat_st_blksize" = x""yes; then :
25427
25428 cat >>confdefs.h <<_ACEOF
25429 #define HAVE_STRUCT_STAT_ST_BLKSIZE 1
25430 _ACEOF
25431
25432
25433 $as_echo "#define HAVE_ST_BLKSIZE 1" >>confdefs.h
25434
25435 fi
25436
25437
25438 ac_fn_c_check_member "$LINENO" "struct stat" "st_blocks" "ac_cv_member_struct_stat_st_blocks" "$ac_includes_default"
25439 if test "x$ac_cv_member_struct_stat_st_blocks" = x""yes; then :
25440
25441 cat >>confdefs.h <<_ACEOF
25442 #define HAVE_STRUCT_STAT_ST_BLOCKS 1
25443 _ACEOF
25444
25445
25446 $as_echo "#define HAVE_ST_BLOCKS 1" >>confdefs.h
25447
25448 else
25449   case " $LIBOBJS " in
25450   *" fileblocks.$ac_objext "* ) ;;
25451   *) LIBOBJS="$LIBOBJS fileblocks.$ac_objext"
25452  ;;
25453 esac
25454
25455 fi
25456
25457
25458 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct tm is in sys/time.h or time.h" >&5
25459 $as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
25460 if test "${ac_cv_struct_tm+set}" = set; then :
25461   $as_echo_n "(cached) " >&6
25462 else
25463   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25464 /* end confdefs.h.  */
25465 #include <sys/types.h>
25466 #include <time.h>
25467
25468 int
25469 main ()
25470 {
25471 struct tm tm;
25472                                      int *p = &tm.tm_sec;
25473                                      return !p;
25474   ;
25475   return 0;
25476 }
25477 _ACEOF
25478 if ac_fn_c_try_compile "$LINENO"; then :
25479   ac_cv_struct_tm=time.h
25480 else
25481   ac_cv_struct_tm=sys/time.h
25482 fi
25483 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25484 fi
25485 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm" >&5
25486 $as_echo "$ac_cv_struct_tm" >&6; }
25487 if test $ac_cv_struct_tm = sys/time.h; then
25488
25489 $as_echo "#define TM_IN_SYS_TIME 1" >>confdefs.h
25490
25491 fi
25492
25493 ac_fn_c_check_member "$LINENO" "struct tm" "tm_zone" "ac_cv_member_struct_tm_tm_zone" "#include <sys/types.h>
25494 #include <$ac_cv_struct_tm>
25495
25496 "
25497 if test "x$ac_cv_member_struct_tm_tm_zone" = x""yes; then :
25498
25499 cat >>confdefs.h <<_ACEOF
25500 #define HAVE_STRUCT_TM_TM_ZONE 1
25501 _ACEOF
25502
25503
25504 fi
25505
25506 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
25507
25508 $as_echo "#define HAVE_TM_ZONE 1" >>confdefs.h
25509
25510 else
25511   ac_fn_c_check_decl "$LINENO" "tzname" "ac_cv_have_decl_tzname" "#include <time.h>
25512 "
25513 if test "x$ac_cv_have_decl_tzname" = x""yes; then :
25514   ac_have_decl=1
25515 else
25516   ac_have_decl=0
25517 fi
25518
25519 cat >>confdefs.h <<_ACEOF
25520 #define HAVE_DECL_TZNAME $ac_have_decl
25521 _ACEOF
25522
25523   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tzname" >&5
25524 $as_echo_n "checking for tzname... " >&6; }
25525 if test "${ac_cv_var_tzname+set}" = set; then :
25526   $as_echo_n "(cached) " >&6
25527 else
25528   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25529 /* end confdefs.h.  */
25530 #include <time.h>
25531 #if !HAVE_DECL_TZNAME
25532 extern char *tzname[];
25533 #endif
25534
25535 int
25536 main ()
25537 {
25538 return tzname[0][0];
25539   ;
25540   return 0;
25541 }
25542 _ACEOF
25543 if ac_fn_c_try_link "$LINENO"; then :
25544   ac_cv_var_tzname=yes
25545 else
25546   ac_cv_var_tzname=no
25547 fi
25548 rm -f core conftest.err conftest.$ac_objext \
25549     conftest$ac_exeext conftest.$ac_ext
25550 fi
25551 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_var_tzname" >&5
25552 $as_echo "$ac_cv_var_tzname" >&6; }
25553   if test $ac_cv_var_tzname = yes; then
25554
25555 $as_echo "#define HAVE_TZNAME 1" >>confdefs.h
25556
25557   fi
25558 fi
25559
25560
25561 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for utime.h" >&5
25562 $as_echo_n "checking for utime.h... " >&6; }
25563 if test "${ba_cv_header_utime_h+set}" = set; then :
25564   $as_echo_n "(cached) " >&6
25565 else
25566
25567        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25568 /* end confdefs.h.  */
25569
25570               #include <sys/types.h>
25571               #include <utime.h>
25572
25573 int
25574 main ()
25575 {
25576
25577               struct utimbuf foo
25578
25579   ;
25580   return 0;
25581 }
25582 _ACEOF
25583 if ac_fn_c_try_compile "$LINENO"; then :
25584
25585               ba_cv_header_utime_h=yes
25586
25587 else
25588
25589               ba_cv_header_utime_h=no
25590
25591
25592 fi
25593 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25594
25595
25596 fi
25597 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ba_cv_header_utime_h" >&5
25598 $as_echo "$ba_cv_header_utime_h" >&6; }
25599 test $ba_cv_header_utime_h = yes &&
25600 $as_echo "#define HAVE_UTIME_H 1" >>confdefs.h
25601
25602
25603 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socklen_t" >&5
25604 $as_echo_n "checking for socklen_t... " >&6; }
25605 if test "${ba_cv_header_socklen_t+set}" = set; then :
25606   $as_echo_n "(cached) " >&6
25607 else
25608
25609        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25610 /* end confdefs.h.  */
25611
25612               #include <sys/types.h>
25613               #include <sys/socket.h>
25614
25615 int
25616 main ()
25617 {
25618
25619               socklen_t x
25620
25621   ;
25622   return 0;
25623 }
25624 _ACEOF
25625 if ac_fn_c_try_compile "$LINENO"; then :
25626
25627              ba_cv_header_socklen_t=yes
25628
25629 else
25630
25631              ba_cv_header_socklen_t=no
25632
25633
25634 fi
25635 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25636
25637
25638 fi
25639 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ba_cv_header_socklen_t" >&5
25640 $as_echo "$ba_cv_header_socklen_t" >&6; }
25641 test $ba_cv_header_socklen_t = yes &&
25642 $as_echo "#define HAVE_SOCKLEN_T 1" >>confdefs.h
25643
25644
25645 ac_ext=cpp
25646 ac_cpp='$CXXCPP $CPPFLAGS'
25647 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25648 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25649 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
25650
25651 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ioctl_req_t" >&5
25652 $as_echo_n "checking for ioctl_req_t... " >&6; }
25653 if test "${ba_cv_header_ioctl_req_t+set}" = set; then :
25654   $as_echo_n "(cached) " >&6
25655 else
25656
25657        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25658 /* end confdefs.h.  */
25659
25660               #include <unistd.h>
25661               #include <sys/types.h>
25662               #include <sys/ioctl.h>
25663
25664 int
25665 main ()
25666 {
25667
25668               int (*d_ioctl)(int fd, unsigned long int request, ...);
25669               d_ioctl = ::ioctl;
25670
25671   ;
25672   return 0;
25673 }
25674 _ACEOF
25675 if ac_fn_cxx_try_compile "$LINENO"; then :
25676
25677              ba_cv_header_ioctl_req_t=yes
25678
25679 else
25680
25681              ba_cv_header_ioctl_req_t=no
25682
25683
25684 fi
25685 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25686
25687
25688 fi
25689 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ba_cv_header_ioctl_req_t" >&5
25690 $as_echo "$ba_cv_header_ioctl_req_t" >&6; }
25691 test $ba_cv_header_ioctl_req_t = yes &&
25692 $as_echo "#define HAVE_IOCTL_ULINT_REQUEST 1" >>confdefs.h
25693
25694
25695 ac_ext=c
25696 ac_cpp='$CPP $CPPFLAGS'
25697 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25698 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25699 ac_compiler_gnu=$ac_cv_c_compiler_gnu
25700
25701
25702 ac_ext=cpp
25703 ac_cpp='$CXXCPP $CPPFLAGS'
25704 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25705 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25706 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
25707
25708 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for typeof" >&5
25709 $as_echo_n "checking for typeof... " >&6; }
25710 if test "${ba_cv_have_typeof+set}" = set; then :
25711   $as_echo_n "(cached) " >&6
25712 else
25713
25714        if test "$cross_compiling" = yes; then :
25715
25716               ba_cv_have_typeof=no
25717
25718
25719 else
25720   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25721 /* end confdefs.h.  */
25722
25723               main(){char *a = 0; a = (typeof a)a;}
25724
25725 _ACEOF
25726 if ac_fn_cxx_try_run "$LINENO"; then :
25727
25728               ba_cv_have_typeof=yes
25729
25730 else
25731
25732               ba_cv_have_typeof=no
25733
25734 fi
25735 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
25736   conftest.$ac_objext conftest.beam conftest.$ac_ext
25737 fi
25738
25739
25740
25741 fi
25742 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ba_cv_have_typeof" >&5
25743 $as_echo "$ba_cv_have_typeof" >&6; }
25744 test $ba_cv_have_typeof = yes &&
25745 $as_echo "#define HAVE_TYPEOF 1" >>confdefs.h
25746
25747 ac_ext=c
25748 ac_cpp='$CPP $CPPFLAGS'
25749 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25750 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25751 ac_compiler_gnu=$ac_cv_c_compiler_gnu
25752
25753
25754 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
25755 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
25756 if test "${ac_cv_c_const+set}" = set; then :
25757   $as_echo_n "(cached) " >&6
25758 else
25759   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25760 /* end confdefs.h.  */
25761
25762 int
25763 main ()
25764 {
25765 /* FIXME: Include the comments suggested by Paul. */
25766 #ifndef __cplusplus
25767   /* Ultrix mips cc rejects this.  */
25768   typedef int charset[2];
25769   const charset cs;
25770   /* SunOS 4.1.1 cc rejects this.  */
25771   char const *const *pcpcc;
25772   char **ppc;
25773   /* NEC SVR4.0.2 mips cc rejects this.  */
25774   struct point {int x, y;};
25775   static struct point const zero = {0,0};
25776   /* AIX XL C 1.02.0.0 rejects this.
25777      It does not let you subtract one const X* pointer from another in
25778      an arm of an if-expression whose if-part is not a constant
25779      expression */
25780   const char *g = "string";
25781   pcpcc = &g + (g ? g-g : 0);
25782   /* HPUX 7.0 cc rejects these. */
25783   ++pcpcc;
25784   ppc = (char**) pcpcc;
25785   pcpcc = (char const *const *) ppc;
25786   { /* SCO 3.2v4 cc rejects this.  */
25787     char *t;
25788     char const *s = 0 ? (char *) 0 : (char const *) 0;
25789
25790     *t++ = 0;
25791     if (s) return 0;
25792   }
25793   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
25794     int x[] = {25, 17};
25795     const int *foo = &x[0];
25796     ++foo;
25797   }
25798   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
25799     typedef const int *iptr;
25800     iptr p = 0;
25801     ++p;
25802   }
25803   { /* AIX XL C 1.02.0.0 rejects this saying
25804        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
25805     struct s { int j; const int *ap[3]; };
25806     struct s *b; b->j = 5;
25807   }
25808   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
25809     const int foo = 10;
25810     if (!foo) return 0;
25811   }
25812   return !cs[0] && !zero.x;
25813 #endif
25814
25815   ;
25816   return 0;
25817 }
25818 _ACEOF
25819 if ac_fn_c_try_compile "$LINENO"; then :
25820   ac_cv_c_const=yes
25821 else
25822   ac_cv_c_const=no
25823 fi
25824 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25825 fi
25826 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
25827 $as_echo "$ac_cv_c_const" >&6; }
25828 if test $ac_cv_c_const = no; then
25829
25830 $as_echo "#define const /**/" >>confdefs.h
25831
25832 fi
25833
25834
25835 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to get filesystem type" >&5
25836 $as_echo_n "checking how to get filesystem type... " >&6; }
25837 fstype=no
25838 # The order of these tests is important.
25839 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25840 /* end confdefs.h.  */
25841
25842        #include <sys/statvfs.h>
25843        #include <sys/fstyp.h>
25844
25845 _ACEOF
25846 if ac_fn_c_try_cpp "$LINENO"; then :
25847   $as_echo "#define FSTYPE_STATVFS 1" >>confdefs.h
25848  fstype=SVR4
25849
25850 fi
25851 rm -f conftest.err conftest.$ac_ext
25852 if test $fstype = no; then
25853    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25854 /* end confdefs.h.  */
25855
25856           #include <sys/statfs.h>
25857           #include <sys/fstyp.h>
25858
25859 _ACEOF
25860 if ac_fn_c_try_cpp "$LINENO"; then :
25861   $as_echo "#define FSTYPE_USG_STATFS 1" >>confdefs.h
25862  fstype=SVR3
25863
25864 fi
25865 rm -f conftest.err conftest.$ac_ext
25866 fi
25867 if test $fstype = no; then
25868    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25869 /* end confdefs.h.  */
25870
25871           #include <sys/statfs.h>
25872           #include <sys/vmount.h>
25873
25874 _ACEOF
25875 if ac_fn_c_try_cpp "$LINENO"; then :
25876   $as_echo "#define FSTYPE_AIX_STATFS 1" >>confdefs.h
25877  fstype=AIX
25878
25879 fi
25880 rm -f conftest.err conftest.$ac_ext
25881 fi
25882 if test $fstype = no; then
25883    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25884 /* end confdefs.h.  */
25885
25886           #include <mntent.h>
25887
25888 _ACEOF
25889 if ac_fn_c_try_cpp "$LINENO"; then :
25890   $as_echo "#define FSTYPE_MNTENT 1" >>confdefs.h
25891  fstype=4.3BSD
25892
25893 fi
25894 rm -f conftest.err conftest.$ac_ext
25895 fi
25896 if test $fstype = no; then
25897    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25898 /* end confdefs.h.  */
25899 #include <sys/mount.h>
25900
25901 _ACEOF
25902 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
25903   $EGREP "f_type;" >/dev/null 2>&1; then :
25904   $as_echo "#define FSTYPE_STATFS 1" >>confdefs.h
25905  fstype=4.4BSD/OSF1
25906 fi
25907 rm -f conftest*
25908
25909 fi
25910 if test $fstype = no; then
25911    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25912 /* end confdefs.h.  */
25913
25914           #include <sys/mount.h>
25915           #include <sys/fs_types.h>
25916
25917 _ACEOF
25918 if ac_fn_c_try_cpp "$LINENO"; then :
25919   $as_echo "#define FSTYPE_GETMNT 1" >>confdefs.h
25920  fstype=Ultrix
25921
25922 fi
25923 rm -f conftest.err conftest.$ac_ext
25924 fi
25925 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $fstype" >&5
25926 $as_echo "$fstype" >&6; }
25927
25928 ac_fn_c_check_header_mongrel "$LINENO" "sys/statvfs.h" "ac_cv_header_sys_statvfs_h" "$ac_includes_default"
25929 if test "x$ac_cv_header_sys_statvfs_h" = x""yes; then :
25930
25931 $as_echo "#define HAVE_SYS_STATVFS_H 1" >>confdefs.h
25932
25933 fi
25934
25935
25936
25937 { $as_echo "$as_me:${as_lineno-$LINENO}: checking return type of signal handlers" >&5
25938 $as_echo_n "checking return type of signal handlers... " >&6; }
25939 if test "${ac_cv_type_signal+set}" = set; then :
25940   $as_echo_n "(cached) " >&6
25941 else
25942   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25943 /* end confdefs.h.  */
25944 #include <sys/types.h>
25945 #include <signal.h>
25946
25947 int
25948 main ()
25949 {
25950 return *(signal (0, 0)) (0) == 1;
25951   ;
25952   return 0;
25953 }
25954 _ACEOF
25955 if ac_fn_c_try_compile "$LINENO"; then :
25956   ac_cv_type_signal=int
25957 else
25958   ac_cv_type_signal=void
25959 fi
25960 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25961 fi
25962 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_signal" >&5
25963 $as_echo "$ac_cv_type_signal" >&6; }
25964
25965 cat >>confdefs.h <<_ACEOF
25966 #define RETSIGTYPE $ac_cv_type_signal
25967 _ACEOF
25968
25969
25970
25971   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for type of signal functions" >&5
25972 $as_echo_n "checking for type of signal functions... " >&6; }
25973   if test "${bash_cv_signal_vintage+set}" = set; then :
25974   $as_echo_n "(cached) " >&6
25975 else
25976
25977     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25978 /* end confdefs.h.  */
25979 #include <signal.h>
25980 int
25981 main ()
25982 {
25983
25984       sigset_t ss;
25985       struct sigaction sa;
25986       sigemptyset(&ss); sigsuspend(&ss);
25987       sigaction(SIGINT, &sa, (struct sigaction *) 0);
25988       sigprocmask(SIG_BLOCK, &ss, (sigset_t *) 0);
25989
25990   ;
25991   return 0;
25992 }
25993 _ACEOF
25994 if ac_fn_c_try_link "$LINENO"; then :
25995   bash_cv_signal_vintage="posix"
25996 else
25997
25998       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25999 /* end confdefs.h.  */
26000 #include <signal.h>
26001 int
26002 main ()
26003 {
26004
26005           int mask = sigmask(SIGINT);
26006           sigsetmask(mask); sigblock(mask); sigpause(mask);
26007
26008   ;
26009   return 0;
26010 }
26011 _ACEOF
26012 if ac_fn_c_try_link "$LINENO"; then :
26013   bash_cv_signal_vintage="4.2bsd"
26014 else
26015
26016         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26017 /* end confdefs.h.  */
26018
26019           #include <signal.h>
26020           RETSIGTYPE foo() { }
26021 int
26022 main ()
26023 {
26024
26025                   int mask = sigmask(SIGINT);
26026                   sigset(SIGINT, foo); sigrelse(SIGINT);
26027                   sighold(SIGINT); sigpause(SIGINT);
26028
26029   ;
26030   return 0;
26031 }
26032 _ACEOF
26033 if ac_fn_c_try_link "$LINENO"; then :
26034   bash_cv_signal_vintage="svr3"
26035 else
26036   bash_cv_signal_vintage="v7"
26037
26038 fi
26039 rm -f core conftest.err conftest.$ac_objext \
26040     conftest$ac_exeext conftest.$ac_ext
26041
26042 fi
26043 rm -f core conftest.err conftest.$ac_objext \
26044     conftest$ac_exeext conftest.$ac_ext
26045
26046 fi
26047 rm -f core conftest.err conftest.$ac_objext \
26048     conftest$ac_exeext conftest.$ac_ext
26049
26050 fi
26051
26052   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bash_cv_signal_vintage" >&5
26053 $as_echo "$bash_cv_signal_vintage" >&6; }
26054   if test "$bash_cv_signal_vintage" = "posix"; then
26055     $as_echo "#define HAVE_POSIX_SIGNALS 1" >>confdefs.h
26056
26057   elif test "$bash_cv_signal_vintage" = "4.2bsd"; then
26058     $as_echo "#define HAVE_BSD_SIGNALS 1" >>confdefs.h
26059
26060   elif test "$bash_cv_signal_vintage" = "svr3"; then
26061     $as_echo "#define HAVE_USG_SIGHOLD 1" >>confdefs.h
26062
26063   fi
26064
26065 ac_fn_c_check_type "$LINENO" "mode_t" "ac_cv_type_mode_t" "$ac_includes_default"
26066 if test "x$ac_cv_type_mode_t" = x""yes; then :
26067
26068 else
26069
26070 cat >>confdefs.h <<_ACEOF
26071 #define mode_t int
26072 _ACEOF
26073
26074 fi
26075
26076 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uid_t in sys/types.h" >&5
26077 $as_echo_n "checking for uid_t in sys/types.h... " >&6; }
26078 if test "${ac_cv_type_uid_t+set}" = set; then :
26079   $as_echo_n "(cached) " >&6
26080 else
26081   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26082 /* end confdefs.h.  */
26083 #include <sys/types.h>
26084
26085 _ACEOF
26086 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
26087   $EGREP "uid_t" >/dev/null 2>&1; then :
26088   ac_cv_type_uid_t=yes
26089 else
26090   ac_cv_type_uid_t=no
26091 fi
26092 rm -f conftest*
26093
26094 fi
26095 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_uid_t" >&5
26096 $as_echo "$ac_cv_type_uid_t" >&6; }
26097 if test $ac_cv_type_uid_t = no; then
26098
26099 $as_echo "#define uid_t int" >>confdefs.h
26100
26101
26102 $as_echo "#define gid_t int" >>confdefs.h
26103
26104 fi
26105
26106 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
26107 if test "x$ac_cv_type_size_t" = x""yes; then :
26108
26109 else
26110
26111 cat >>confdefs.h <<_ACEOF
26112 #define size_t unsigned int
26113 _ACEOF
26114
26115 fi
26116
26117 ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
26118 if test "x$ac_cv_type_pid_t" = x""yes; then :
26119
26120 else
26121
26122 cat >>confdefs.h <<_ACEOF
26123 #define pid_t int
26124 _ACEOF
26125
26126 fi
26127
26128 ac_fn_c_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default"
26129 if test "x$ac_cv_type_off_t" = x""yes; then :
26130
26131 else
26132
26133 cat >>confdefs.h <<_ACEOF
26134 #define off_t long int
26135 _ACEOF
26136
26137 fi
26138
26139
26140   ac_fn_c_check_type "$LINENO" "intptr_t" "ac_cv_type_intptr_t" "$ac_includes_default"
26141 if test "x$ac_cv_type_intptr_t" = x""yes; then :
26142
26143 $as_echo "#define HAVE_INTPTR_T 1" >>confdefs.h
26144
26145 else
26146   for ac_type in 'int' 'long int' 'long long int'; do
26147        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26148 /* end confdefs.h.  */
26149 $ac_includes_default
26150 int
26151 main ()
26152 {
26153 static int test_array [1 - 2 * !(sizeof (void *) <= sizeof ($ac_type))];
26154 test_array [0] = 0
26155
26156   ;
26157   return 0;
26158 }
26159 _ACEOF
26160 if ac_fn_c_try_compile "$LINENO"; then :
26161
26162 cat >>confdefs.h <<_ACEOF
26163 #define intptr_t $ac_type
26164 _ACEOF
26165
26166           ac_type=
26167 fi
26168 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26169        test -z "$ac_type" && break
26170      done
26171 fi
26172
26173
26174
26175   ac_fn_c_check_type "$LINENO" "uintptr_t" "ac_cv_type_uintptr_t" "$ac_includes_default"
26176 if test "x$ac_cv_type_uintptr_t" = x""yes; then :
26177
26178 $as_echo "#define HAVE_UINTPTR_T 1" >>confdefs.h
26179
26180 else
26181   for ac_type in 'unsigned int' 'unsigned long int' \
26182         'unsigned long long int'; do
26183        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26184 /* end confdefs.h.  */
26185 $ac_includes_default
26186 int
26187 main ()
26188 {
26189 static int test_array [1 - 2 * !(sizeof (void *) <= sizeof ($ac_type))];
26190 test_array [0] = 0
26191
26192   ;
26193   return 0;
26194 }
26195 _ACEOF
26196 if ac_fn_c_try_compile "$LINENO"; then :
26197
26198 cat >>confdefs.h <<_ACEOF
26199 #define uintptr_t $ac_type
26200 _ACEOF
26201
26202           ac_type=
26203 fi
26204 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26205        test -z "$ac_type" && break
26206      done
26207 fi
26208
26209
26210 ac_fn_c_check_type "$LINENO" "ino_t" "ac_cv_type_ino_t" "$ac_includes_default"
26211 if test "x$ac_cv_type_ino_t" = x""yes; then :
26212
26213 else
26214
26215 cat >>confdefs.h <<_ACEOF
26216 #define ino_t unsigned long
26217 _ACEOF
26218
26219 fi
26220
26221 ac_fn_c_check_type "$LINENO" "dev_t" "ac_cv_type_dev_t" "$ac_includes_default"
26222 if test "x$ac_cv_type_dev_t" = x""yes; then :
26223
26224 else
26225
26226 cat >>confdefs.h <<_ACEOF
26227 #define dev_t unsigned long
26228 _ACEOF
26229
26230 fi
26231
26232 ac_fn_c_check_type "$LINENO" "daddr_t" "ac_cv_type_daddr_t" "$ac_includes_default"
26233 if test "x$ac_cv_type_daddr_t" = x""yes; then :
26234
26235 else
26236
26237 cat >>confdefs.h <<_ACEOF
26238 #define daddr_t long
26239 _ACEOF
26240
26241 fi
26242
26243 ac_fn_c_check_type "$LINENO" "major_t" "ac_cv_type_major_t" "$ac_includes_default"
26244 if test "x$ac_cv_type_major_t" = x""yes; then :
26245
26246 else
26247
26248 cat >>confdefs.h <<_ACEOF
26249 #define major_t int
26250 _ACEOF
26251
26252 fi
26253
26254 ac_fn_c_check_type "$LINENO" "minor_t" "ac_cv_type_minor_t" "$ac_includes_default"
26255 if test "x$ac_cv_type_minor_t" = x""yes; then :
26256
26257 else
26258
26259 cat >>confdefs.h <<_ACEOF
26260 #define minor_t int
26261 _ACEOF
26262
26263 fi
26264
26265 ac_fn_c_check_type "$LINENO" "ssize_t" "ac_cv_type_ssize_t" "$ac_includes_default"
26266 if test "x$ac_cv_type_ssize_t" = x""yes; then :
26267
26268 else
26269
26270 cat >>confdefs.h <<_ACEOF
26271 #define ssize_t int
26272 _ACEOF
26273
26274 fi
26275
26276 ac_fn_c_check_member "$LINENO" "struct stat" "st_blocks" "ac_cv_member_struct_stat_st_blocks" "$ac_includes_default"
26277 if test "x$ac_cv_member_struct_stat_st_blocks" = x""yes; then :
26278
26279 cat >>confdefs.h <<_ACEOF
26280 #define HAVE_STRUCT_STAT_ST_BLOCKS 1
26281 _ACEOF
26282
26283
26284 $as_echo "#define HAVE_ST_BLOCKS 1" >>confdefs.h
26285
26286 else
26287   case " $LIBOBJS " in
26288   *" fileblocks.$ac_objext "* ) ;;
26289   *) LIBOBJS="$LIBOBJS fileblocks.$ac_objext"
26290  ;;
26291 esac
26292
26293 fi
26294
26295
26296 ac_fn_c_check_member "$LINENO" "struct stat" "st_rdev" "ac_cv_member_struct_stat_st_rdev" "$ac_includes_default"
26297 if test "x$ac_cv_member_struct_stat_st_rdev" = x""yes; then :
26298
26299 cat >>confdefs.h <<_ACEOF
26300 #define HAVE_STRUCT_STAT_ST_RDEV 1
26301 _ACEOF
26302
26303
26304 $as_echo "#define HAVE_ST_RDEV 1" >>confdefs.h
26305
26306 fi
26307
26308
26309 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct tm is in sys/time.h or time.h" >&5
26310 $as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
26311 if test "${ac_cv_struct_tm+set}" = set; then :
26312   $as_echo_n "(cached) " >&6
26313 else
26314   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26315 /* end confdefs.h.  */
26316 #include <sys/types.h>
26317 #include <time.h>
26318
26319 int
26320 main ()
26321 {
26322 struct tm tm;
26323                                      int *p = &tm.tm_sec;
26324                                      return !p;
26325   ;
26326   return 0;
26327 }
26328 _ACEOF
26329 if ac_fn_c_try_compile "$LINENO"; then :
26330   ac_cv_struct_tm=time.h
26331 else
26332   ac_cv_struct_tm=sys/time.h
26333 fi
26334 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26335 fi
26336 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm" >&5
26337 $as_echo "$ac_cv_struct_tm" >&6; }
26338 if test $ac_cv_struct_tm = sys/time.h; then
26339
26340 $as_echo "#define TM_IN_SYS_TIME 1" >>confdefs.h
26341
26342 fi
26343
26344 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
26345 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
26346 if test "${ac_cv_c_const+set}" = set; then :
26347   $as_echo_n "(cached) " >&6
26348 else
26349   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26350 /* end confdefs.h.  */
26351
26352 int
26353 main ()
26354 {
26355 /* FIXME: Include the comments suggested by Paul. */
26356 #ifndef __cplusplus
26357   /* Ultrix mips cc rejects this.  */
26358   typedef int charset[2];
26359   const charset cs;
26360   /* SunOS 4.1.1 cc rejects this.  */
26361   char const *const *pcpcc;
26362   char **ppc;
26363   /* NEC SVR4.0.2 mips cc rejects this.  */
26364   struct point {int x, y;};
26365   static struct point const zero = {0,0};
26366   /* AIX XL C 1.02.0.0 rejects this.
26367      It does not let you subtract one const X* pointer from another in
26368      an arm of an if-expression whose if-part is not a constant
26369      expression */
26370   const char *g = "string";
26371   pcpcc = &g + (g ? g-g : 0);
26372   /* HPUX 7.0 cc rejects these. */
26373   ++pcpcc;
26374   ppc = (char**) pcpcc;
26375   pcpcc = (char const *const *) ppc;
26376   { /* SCO 3.2v4 cc rejects this.  */
26377     char *t;
26378     char const *s = 0 ? (char *) 0 : (char const *) 0;
26379
26380     *t++ = 0;
26381     if (s) return 0;
26382   }
26383   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
26384     int x[] = {25, 17};
26385     const int *foo = &x[0];
26386     ++foo;
26387   }
26388   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
26389     typedef const int *iptr;
26390     iptr p = 0;
26391     ++p;
26392   }
26393   { /* AIX XL C 1.02.0.0 rejects this saying
26394        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
26395     struct s { int j; const int *ap[3]; };
26396     struct s *b; b->j = 5;
26397   }
26398   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
26399     const int foo = 10;
26400     if (!foo) return 0;
26401   }
26402   return !cs[0] && !zero.x;
26403 #endif
26404
26405   ;
26406   return 0;
26407 }
26408 _ACEOF
26409 if ac_fn_c_try_compile "$LINENO"; then :
26410   ac_cv_c_const=yes
26411 else
26412   ac_cv_c_const=no
26413 fi
26414 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26415 fi
26416 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
26417 $as_echo "$ac_cv_c_const" >&6; }
26418 if test $ac_cv_c_const = no; then
26419
26420 $as_echo "#define const /**/" >>confdefs.h
26421
26422 fi
26423
26424
26425 # The cast to long int works around a bug in the HP C Compiler
26426 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
26427 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
26428 # This bug is HP SR number 8606223364.
26429 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of char" >&5
26430 $as_echo_n "checking size of char... " >&6; }
26431 if test "${ac_cv_sizeof_char+set}" = set; then :
26432   $as_echo_n "(cached) " >&6
26433 else
26434   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (char))" "ac_cv_sizeof_char"        "$ac_includes_default"; then :
26435
26436 else
26437   if test "$ac_cv_type_char" = yes; then
26438      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
26439 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
26440 { as_fn_set_status 77
26441 as_fn_error "cannot compute sizeof (char)
26442 See \`config.log' for more details." "$LINENO" 5; }; }
26443    else
26444      ac_cv_sizeof_char=0
26445    fi
26446 fi
26447
26448 fi
26449 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_char" >&5
26450 $as_echo "$ac_cv_sizeof_char" >&6; }
26451
26452
26453
26454 cat >>confdefs.h <<_ACEOF
26455 #define SIZEOF_CHAR $ac_cv_sizeof_char
26456 _ACEOF
26457
26458
26459 # The cast to long int works around a bug in the HP C Compiler
26460 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
26461 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
26462 # This bug is HP SR number 8606223364.
26463 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of short int" >&5
26464 $as_echo_n "checking size of short int... " >&6; }
26465 if test "${ac_cv_sizeof_short_int+set}" = set; then :
26466   $as_echo_n "(cached) " >&6
26467 else
26468   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (short int))" "ac_cv_sizeof_short_int"        "$ac_includes_default"; then :
26469
26470 else
26471   if test "$ac_cv_type_short_int" = yes; then
26472      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
26473 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
26474 { as_fn_set_status 77
26475 as_fn_error "cannot compute sizeof (short int)
26476 See \`config.log' for more details." "$LINENO" 5; }; }
26477    else
26478      ac_cv_sizeof_short_int=0
26479    fi
26480 fi
26481
26482 fi
26483 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_short_int" >&5
26484 $as_echo "$ac_cv_sizeof_short_int" >&6; }
26485
26486
26487
26488 cat >>confdefs.h <<_ACEOF
26489 #define SIZEOF_SHORT_INT $ac_cv_sizeof_short_int
26490 _ACEOF
26491
26492
26493 # The cast to long int works around a bug in the HP C Compiler
26494 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
26495 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
26496 # This bug is HP SR number 8606223364.
26497 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5
26498 $as_echo_n "checking size of int... " >&6; }
26499 if test "${ac_cv_sizeof_int+set}" = set; then :
26500   $as_echo_n "(cached) " >&6
26501 else
26502   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int"        "$ac_includes_default"; then :
26503
26504 else
26505   if test "$ac_cv_type_int" = yes; then
26506      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
26507 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
26508 { as_fn_set_status 77
26509 as_fn_error "cannot compute sizeof (int)
26510 See \`config.log' for more details." "$LINENO" 5; }; }
26511    else
26512      ac_cv_sizeof_int=0
26513    fi
26514 fi
26515
26516 fi
26517 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5
26518 $as_echo "$ac_cv_sizeof_int" >&6; }
26519
26520
26521
26522 cat >>confdefs.h <<_ACEOF
26523 #define SIZEOF_INT $ac_cv_sizeof_int
26524 _ACEOF
26525
26526
26527 # The cast to long int works around a bug in the HP C Compiler
26528 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
26529 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
26530 # This bug is HP SR number 8606223364.
26531 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long int" >&5
26532 $as_echo_n "checking size of long int... " >&6; }
26533 if test "${ac_cv_sizeof_long_int+set}" = set; then :
26534   $as_echo_n "(cached) " >&6
26535 else
26536   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long int))" "ac_cv_sizeof_long_int"        "$ac_includes_default"; then :
26537
26538 else
26539   if test "$ac_cv_type_long_int" = yes; then
26540      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
26541 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
26542 { as_fn_set_status 77
26543 as_fn_error "cannot compute sizeof (long int)
26544 See \`config.log' for more details." "$LINENO" 5; }; }
26545    else
26546      ac_cv_sizeof_long_int=0
26547    fi
26548 fi
26549
26550 fi
26551 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_int" >&5
26552 $as_echo "$ac_cv_sizeof_long_int" >&6; }
26553
26554
26555
26556 cat >>confdefs.h <<_ACEOF
26557 #define SIZEOF_LONG_INT $ac_cv_sizeof_long_int
26558 _ACEOF
26559
26560
26561 # The cast to long int works around a bug in the HP C Compiler
26562 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
26563 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
26564 # This bug is HP SR number 8606223364.
26565 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long long int" >&5
26566 $as_echo_n "checking size of long long int... " >&6; }
26567 if test "${ac_cv_sizeof_long_long_int+set}" = set; then :
26568   $as_echo_n "(cached) " >&6
26569 else
26570   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long long int))" "ac_cv_sizeof_long_long_int"        "$ac_includes_default"; then :
26571
26572 else
26573   if test "$ac_cv_type_long_long_int" = yes; then
26574      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
26575 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
26576 { as_fn_set_status 77
26577 as_fn_error "cannot compute sizeof (long long int)
26578 See \`config.log' for more details." "$LINENO" 5; }; }
26579    else
26580      ac_cv_sizeof_long_long_int=0
26581    fi
26582 fi
26583
26584 fi
26585 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_long_int" >&5
26586 $as_echo "$ac_cv_sizeof_long_long_int" >&6; }
26587
26588
26589
26590 cat >>confdefs.h <<_ACEOF
26591 #define SIZEOF_LONG_LONG_INT $ac_cv_sizeof_long_long_int
26592 _ACEOF
26593
26594
26595 # The cast to long int works around a bug in the HP C Compiler
26596 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
26597 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
26598 # This bug is HP SR number 8606223364.
26599 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int *" >&5
26600 $as_echo_n "checking size of int *... " >&6; }
26601 if test "${ac_cv_sizeof_int_p+set}" = set; then :
26602   $as_echo_n "(cached) " >&6
26603 else
26604   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int *))" "ac_cv_sizeof_int_p"        "$ac_includes_default"; then :
26605
26606 else
26607   if test "$ac_cv_type_int_p" = yes; then
26608      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
26609 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
26610 { as_fn_set_status 77
26611 as_fn_error "cannot compute sizeof (int *)
26612 See \`config.log' for more details." "$LINENO" 5; }; }
26613    else
26614      ac_cv_sizeof_int_p=0
26615    fi
26616 fi
26617
26618 fi
26619 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int_p" >&5
26620 $as_echo "$ac_cv_sizeof_int_p" >&6; }
26621
26622
26623
26624 cat >>confdefs.h <<_ACEOF
26625 #define SIZEOF_INT_P $ac_cv_sizeof_int_p
26626 _ACEOF
26627
26628
26629
26630 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for u_int type" >&5
26631 $as_echo_n "checking for u_int type... " >&6; }
26632 if test "${ac_cv_have_u_int+set}" = set; then :
26633   $as_echo_n "(cached) " >&6
26634 else
26635
26636        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26637 /* end confdefs.h.  */
26638
26639               #include <sys/types.h>
26640
26641 int
26642 main ()
26643 {
26644
26645               u_int a; a = 1;
26646
26647   ;
26648   return 0;
26649 }
26650 _ACEOF
26651 if ac_fn_c_try_compile "$LINENO"; then :
26652
26653               ac_cv_have_u_int="yes"
26654
26655 else
26656
26657               ac_cv_have_u_int="no"
26658
26659
26660 fi
26661 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26662
26663
26664 fi
26665 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_u_int" >&5
26666 $as_echo "$ac_cv_have_u_int" >&6; }
26667 if test "x$ac_cv_have_u_int" = "xyes" ; then
26668    $as_echo "#define HAVE_U_INT 1" >>confdefs.h
26669
26670    have_u_int=1
26671 fi
26672
26673 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for intmax_t type" >&5
26674 $as_echo_n "checking for intmax_t type... " >&6; }
26675 if test "${ac_cv_have_intmax_t+set}" = set; then :
26676   $as_echo_n "(cached) " >&6
26677 else
26678
26679        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26680 /* end confdefs.h.  */
26681
26682               #include <sys/types.h>
26683
26684 int
26685 main ()
26686 {
26687
26688               intmax_t a; a = 1;
26689
26690   ;
26691   return 0;
26692 }
26693 _ACEOF
26694 if ac_fn_c_try_compile "$LINENO"; then :
26695
26696               ac_cv_have_intmax_t="yes"
26697
26698 else
26699
26700               cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26701 /* end confdefs.h.  */
26702
26703                      #include <stdint.h>
26704
26705 int
26706 main ()
26707 {
26708
26709                      intmax_t a; a = 1;
26710
26711   ;
26712   return 0;
26713 }
26714 _ACEOF
26715 if ac_fn_c_try_compile "$LINENO"; then :
26716
26717                      ac_cv_have_intmax_t="yes"
26718
26719 else
26720
26721                      ac_cv_have_intmax_t="no"
26722
26723
26724 fi
26725 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26726
26727
26728 fi
26729 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26730
26731
26732 fi
26733 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_intmax_t" >&5
26734 $as_echo "$ac_cv_have_intmax_t" >&6; }
26735 if test "x$ac_cv_have_intmax_t" = "xyes" ; then
26736    $as_echo "#define HAVE_INTMAX_T 1" >>confdefs.h
26737
26738    have_intmax_t=1
26739 fi
26740
26741 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for u_intmax_t type" >&5
26742 $as_echo_n "checking for u_intmax_t type... " >&6; }
26743 if test "${ac_cv_have_u_intmax_t+set}" = set; then :
26744   $as_echo_n "(cached) " >&6
26745 else
26746
26747        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26748 /* end confdefs.h.  */
26749
26750               #include <sys/types.h>
26751
26752 int
26753 main ()
26754 {
26755
26756               u_intmax_t a; a = 1;
26757
26758   ;
26759   return 0;
26760 }
26761 _ACEOF
26762 if ac_fn_c_try_compile "$LINENO"; then :
26763
26764               ac_cv_have_u_intmax_t="yes"
26765
26766 else
26767
26768               cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26769 /* end confdefs.h.  */
26770
26771                      #include <stdint.h>
26772
26773 int
26774 main ()
26775 {
26776
26777                     u_intmax_t a; a = 1;
26778
26779   ;
26780   return 0;
26781 }
26782 _ACEOF
26783 if ac_fn_c_try_compile "$LINENO"; then :
26784
26785                     ac_cv_have_u_intmax_t="yes"
26786
26787 else
26788
26789                     ac_cv_have_u_intmax_t="no"
26790
26791
26792 fi
26793 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26794
26795
26796 fi
26797 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26798
26799
26800 fi
26801 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_u_intmax_t" >&5
26802 $as_echo "$ac_cv_have_u_intmax_t" >&6; }
26803 if test "x$ac_cv_have_u_intmax_t" = "xyes" ; then
26804    $as_echo "#define HAVE_U_INTMAX_T 1" >>confdefs.h
26805
26806    have_u_intmax_t=1
26807 fi
26808
26809 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for intXX_t types" >&5
26810 $as_echo_n "checking for intXX_t types... " >&6; }
26811 if test "${ac_cv_have_intxx_t+set}" = set; then :
26812   $as_echo_n "(cached) " >&6
26813 else
26814
26815        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26816 /* end confdefs.h.  */
26817
26818               #include <sys/types.h>
26819
26820 int
26821 main ()
26822 {
26823
26824               int8_t a; int16_t b; int32_t c; a = b = c = 1;
26825
26826   ;
26827   return 0;
26828 }
26829 _ACEOF
26830 if ac_fn_c_try_compile "$LINENO"; then :
26831
26832               ac_cv_have_intxx_t="yes"
26833
26834 else
26835
26836               ac_cv_have_intxx_t="no"
26837
26838
26839 fi
26840 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26841
26842
26843 fi
26844 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_intxx_t" >&5
26845 $as_echo "$ac_cv_have_intxx_t" >&6; }
26846 if test "x$ac_cv_have_intxx_t" = "xyes" ; then
26847    $as_echo "#define HAVE_INTXX_T 1" >>confdefs.h
26848
26849    have_intxx_t=1
26850 fi
26851
26852 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for int64_t type" >&5
26853 $as_echo_n "checking for int64_t type... " >&6; }
26854 if test "${ac_cv_have_int64_t+set}" = set; then :
26855   $as_echo_n "(cached) " >&6
26856 else
26857
26858        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26859 /* end confdefs.h.  */
26860
26861               #include <sys/types.h>
26862
26863 int
26864 main ()
26865 {
26866
26867               int64_t a; a = 1;
26868
26869   ;
26870   return 0;
26871 }
26872 _ACEOF
26873 if ac_fn_c_try_compile "$LINENO"; then :
26874
26875               ac_cv_have_int64_t="yes"
26876
26877 else
26878
26879               ac_cv_have_int64_t="no"
26880
26881
26882 fi
26883 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26884
26885
26886 fi
26887 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_int64_t" >&5
26888 $as_echo "$ac_cv_have_int64_t" >&6; }
26889 if test "x$ac_cv_have_int64_t" = "xyes" ; then
26890    $as_echo "#define HAVE_INT64_T 1" >>confdefs.h
26891
26892    have_int64_t=1
26893 fi
26894
26895 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for u_intXX_t types" >&5
26896 $as_echo_n "checking for u_intXX_t types... " >&6; }
26897 if test "${ac_cv_have_u_intxx_t+set}" = set; then :
26898   $as_echo_n "(cached) " >&6
26899 else
26900
26901        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26902 /* end confdefs.h.  */
26903
26904               #include <sys/types.h>
26905
26906 int
26907 main ()
26908 {
26909
26910               u_int8_t a; u_int16_t b; u_int32_t c; a = b = c = 1;
26911
26912   ;
26913   return 0;
26914 }
26915 _ACEOF
26916 if ac_fn_c_try_compile "$LINENO"; then :
26917
26918              ac_cv_have_u_intxx_t="yes"
26919
26920 else
26921
26922              ac_cv_have_u_intxx_t="no"
26923
26924
26925 fi
26926 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26927
26928
26929 fi
26930 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_u_intxx_t" >&5
26931 $as_echo "$ac_cv_have_u_intxx_t" >&6; }
26932 if test "x$ac_cv_have_u_intxx_t" = "xyes" ; then
26933    $as_echo "#define HAVE_U_INTXX_T 1" >>confdefs.h
26934
26935    have_u_intxx_t=1
26936 fi
26937
26938 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for u_int64_t types" >&5
26939 $as_echo_n "checking for u_int64_t types... " >&6; }
26940 if test "${ac_cv_have_u_int64_t+set}" = set; then :
26941   $as_echo_n "(cached) " >&6
26942 else
26943
26944        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26945 /* end confdefs.h.  */
26946
26947               #include <sys/types.h>
26948
26949 int
26950 main ()
26951 {
26952
26953               u_int64_t a; a = 1;
26954
26955   ;
26956   return 0;
26957 }
26958 _ACEOF
26959 if ac_fn_c_try_compile "$LINENO"; then :
26960
26961              ac_cv_have_u_int64_t="yes"
26962
26963 else
26964
26965              ac_cv_have_u_int64_t="no"
26966
26967
26968 fi
26969 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26970
26971
26972 fi
26973 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_u_int64_t" >&5
26974 $as_echo "$ac_cv_have_u_int64_t" >&6; }
26975 if test "x$ac_cv_have_u_int64_t" = "xyes" ; then
26976    $as_echo "#define HAVE_U_INT64_T 1" >>confdefs.h
26977
26978    have_u_int64_t=1
26979 fi
26980
26981 if (test -z "$have_u_intxx_t" || test -z "$have_intxx_t" && \
26982     test "x$ac_cv_header_sys_bitypes_h" = "xyes")
26983 then
26984    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for intXX_t and u_intXX_t types in sys/bitypes.h" >&5
26985 $as_echo_n "checking for intXX_t and u_intXX_t types in sys/bitypes.h... " >&6; }
26986    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26987 /* end confdefs.h.  */
26988
26989           #include <sys/bitypes.h>
26990
26991 int
26992 main ()
26993 {
26994
26995           int8_t a; int16_t b; int32_t c;
26996           u_int8_t e; u_int16_t f; u_int32_t g;
26997           a = b = c = e = f = g = 1;
26998
26999   ;
27000   return 0;
27001 }
27002 _ACEOF
27003 if ac_fn_c_try_compile "$LINENO"; then :
27004
27005           $as_echo "#define HAVE_U_INTXX_T 1" >>confdefs.h
27006
27007           $as_echo "#define HAVE_INTXX_T 1" >>confdefs.h
27008
27009           $as_echo "#define HAVE_SYS_BITYPES_H 1" >>confdefs.h
27010
27011           { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
27012 $as_echo "yes" >&6; }
27013
27014 else
27015
27016           { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27017 $as_echo "no" >&6; }
27018
27019
27020 fi
27021 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27022 fi
27023
27024 if test -z "$have_u_intxx_t" ; then
27025    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uintXX_t types" >&5
27026 $as_echo_n "checking for uintXX_t types... " >&6; }
27027 if test "${ac_cv_have_uintxx_t+set}" = set; then :
27028   $as_echo_n "(cached) " >&6
27029 else
27030
27031           cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27032 /* end confdefs.h.  */
27033
27034                  #include <sys/types.h>
27035
27036 int
27037 main ()
27038 {
27039
27040                  uint8_t a; uint16_t b;
27041                  uint32_t c; a = b = c = 1;
27042
27043   ;
27044   return 0;
27045 }
27046 _ACEOF
27047 if ac_fn_c_try_compile "$LINENO"; then :
27048
27049                 ac_cv_have_uintxx_t="yes"
27050
27051 else
27052
27053                 ac_cv_have_uintxx_t="no"
27054
27055
27056 fi
27057 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27058
27059
27060 fi
27061 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_uintxx_t" >&5
27062 $as_echo "$ac_cv_have_uintxx_t" >&6; }
27063    if test "x$ac_cv_have_uintxx_t" = "xyes" ; then
27064       $as_echo "#define HAVE_UINTXX_T 1" >>confdefs.h
27065
27066    fi
27067 fi
27068
27069 if (test -z "$have_u_int64_t" || test -z "$have_int64_t" && \
27070     test "x$ac_cv_header_sys_bitypes_h" = "xyes")
27071 then
27072    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for int64_t and u_int64_t types in sys/bitypes.h" >&5
27073 $as_echo_n "checking for int64_t and u_int64_t types in sys/bitypes.h... " >&6; }
27074    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27075 /* end confdefs.h.  */
27076
27077           #include <sys/bitypes.h>
27078
27079 int
27080 main ()
27081 {
27082
27083           int64_t a; u_int64_t b;
27084           a = b = 1;
27085
27086   ;
27087   return 0;
27088 }
27089 _ACEOF
27090 if ac_fn_c_try_compile "$LINENO"; then :
27091
27092           $as_echo "#define HAVE_U_INT64_T 1" >>confdefs.h
27093
27094           $as_echo "#define HAVE_INT64_T 1" >>confdefs.h
27095
27096           { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
27097 $as_echo "yes" >&6; }
27098
27099 else
27100
27101           { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27102 $as_echo "no" >&6; }
27103
27104
27105 fi
27106 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27107 fi
27108
27109 if (test -z "$have_uintxx_t" && \
27110     test "x$ac_cv_header_sys_bitypes_h" = "xyes")
27111 then
27112    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uintXX_t types in sys/bitypes.h" >&5
27113 $as_echo_n "checking for uintXX_t types in sys/bitypes.h... " >&6; }
27114    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27115 /* end confdefs.h.  */
27116
27117           #include <sys/bitypes.h>
27118
27119 int
27120 main ()
27121 {
27122
27123           uint8_t a; uint16_t b;
27124           uint32_t c; a = b = c = 1;
27125
27126   ;
27127   return 0;
27128 }
27129 _ACEOF
27130 if ac_fn_c_try_compile "$LINENO"; then :
27131
27132           $as_echo "#define HAVE_UINTXX_T 1" >>confdefs.h
27133
27134           { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
27135 $as_echo "yes" >&6; }
27136
27137 else
27138
27139           { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27140 $as_echo "no" >&6; }
27141
27142
27143 fi
27144 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27145 fi
27146
27147 for ac_func in \
27148    fork \
27149    getcwd \
27150    gethostname \
27151    getpid \
27152    gettimeofday \
27153    setpgid \
27154    setpgrp \
27155    setsid \
27156    signal \
27157    strerror \
27158    strncmp \
27159    strncpy \
27160    vfprintf \
27161
27162 do :
27163   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
27164 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
27165 eval as_val=\$$as_ac_var
27166    if test "x$as_val" = x""yes; then :
27167   cat >>confdefs.h <<_ACEOF
27168 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
27169 _ACEOF
27170
27171 else
27172   echo 'configure: cannot find needed function.'; exit 1
27173
27174 fi
27175 done
27176
27177
27178 for ac_func in fchdir
27179 do :
27180   ac_fn_c_check_func "$LINENO" "fchdir" "ac_cv_func_fchdir"
27181 if test "x$ac_cv_func_fchdir" = x""yes; then :
27182   cat >>confdefs.h <<_ACEOF
27183 #define HAVE_FCHDIR 1
27184 _ACEOF
27185  $as_echo "#define HAVE_FCHDIR 1" >>confdefs.h
27186
27187 fi
27188 done
27189
27190 for ac_func in strtoll
27191 do :
27192   ac_fn_c_check_func "$LINENO" "strtoll" "ac_cv_func_strtoll"
27193 if test "x$ac_cv_func_strtoll" = x""yes; then :
27194   cat >>confdefs.h <<_ACEOF
27195 #define HAVE_STRTOLL 1
27196 _ACEOF
27197  $as_echo "#define HAVE_STRTOLL 1" >>confdefs.h
27198
27199 fi
27200 done
27201
27202 for ac_func in posix_fadvise
27203 do :
27204   ac_fn_c_check_func "$LINENO" "posix_fadvise" "ac_cv_func_posix_fadvise"
27205 if test "x$ac_cv_func_posix_fadvise" = x""yes; then :
27206   cat >>confdefs.h <<_ACEOF
27207 #define HAVE_POSIX_FADVISE 1
27208 _ACEOF
27209
27210 fi
27211 done
27212
27213 for ac_func in fdatasync
27214 do :
27215   ac_fn_c_check_func "$LINENO" "fdatasync" "ac_cv_func_fdatasync"
27216 if test "x$ac_cv_func_fdatasync" = x""yes; then :
27217   cat >>confdefs.h <<_ACEOF
27218 #define HAVE_FDATASYNC 1
27219 _ACEOF
27220
27221 fi
27222 done
27223
27224
27225 for ac_func in chflags
27226 do :
27227   ac_fn_c_check_func "$LINENO" "chflags" "ac_cv_func_chflags"
27228 if test "x$ac_cv_func_chflags" = x""yes; then :
27229   cat >>confdefs.h <<_ACEOF
27230 #define HAVE_CHFLAGS 1
27231 _ACEOF
27232
27233 fi
27234 done
27235
27236
27237 for ac_func in snprintf vsnprintf gethostid fseeko
27238 do :
27239   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
27240 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
27241 eval as_val=\$$as_ac_var
27242    if test "x$as_val" = x""yes; then :
27243   cat >>confdefs.h <<_ACEOF
27244 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
27245 _ACEOF
27246
27247 fi
27248 done
27249
27250
27251 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for va_copy" >&5
27252 $as_echo_n "checking for va_copy... " >&6; }
27253 if test "${ba_cv_va_copy+set}" = set; then :
27254   $as_echo_n "(cached) " >&6
27255 else
27256
27257        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27258 /* end confdefs.h.  */
27259
27260               #include <stdarg.h>
27261               void use_va_copy(va_list args){va_list args2; va_copy(args2,args); va_end(args2);}
27262               void call_use_va_copy(int junk,...){va_list args; va_start(args,junk); use_va_copy(args); va_end(args);}
27263
27264 int
27265 main ()
27266 {
27267
27268               call_use_va_copy(1,2,3)
27269
27270   ;
27271   return 0;
27272 }
27273 _ACEOF
27274 if ac_fn_c_try_link "$LINENO"; then :
27275
27276               ba_cv_va_copy=yes,
27277
27278 else
27279
27280               ba_cv_va_copy=no
27281
27282
27283 fi
27284 rm -f core conftest.err conftest.$ac_objext \
27285     conftest$ac_exeext conftest.$ac_ext
27286
27287
27288 fi
27289 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ba_cv_va_copy" >&5
27290 $as_echo "$ba_cv_va_copy" >&6; }
27291 test $ba_cv_va_copy = yes &&
27292 $as_echo "#define HAVE_VA_COPY 1" >>confdefs.h
27293
27294
27295 for ac_func in localtime_r readdir_r strerror_r gethostbyname_r
27296 do :
27297   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
27298 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
27299 eval as_val=\$$as_ac_var
27300    if test "x$as_val" = x""yes; then :
27301   cat >>confdefs.h <<_ACEOF
27302 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
27303 _ACEOF
27304
27305 fi
27306 done
27307
27308
27309 # If resolver functions are not in libc check for -lnsl or -lresolv.
27310 ac_fn_c_check_func "$LINENO" "gethostbyname_r" "ac_cv_func_gethostbyname_r"
27311 if test "x$ac_cv_func_gethostbyname_r" = x""yes; then :
27312   { $as_echo "$as_me:${as_lineno-$LINENO}: result: using libc's resolver" >&5
27313 $as_echo "using libc's resolver" >&6; }
27314 else
27315   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname_r in -lnsl" >&5
27316 $as_echo_n "checking for gethostbyname_r in -lnsl... " >&6; }
27317 if test "${ac_cv_lib_nsl_gethostbyname_r+set}" = set; then :
27318   $as_echo_n "(cached) " >&6
27319 else
27320   ac_check_lib_save_LIBS=$LIBS
27321 LIBS="-lnsl  $LIBS"
27322 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27323 /* end confdefs.h.  */
27324
27325 /* Override any GCC internal prototype to avoid an error.
27326    Use char because int might match the return type of a GCC
27327    builtin and then its argument prototype would still apply.  */
27328 #ifdef __cplusplus
27329 extern "C"
27330 #endif
27331 char gethostbyname_r ();
27332 int
27333 main ()
27334 {
27335 return gethostbyname_r ();
27336   ;
27337   return 0;
27338 }
27339 _ACEOF
27340 if ac_fn_c_try_link "$LINENO"; then :
27341   ac_cv_lib_nsl_gethostbyname_r=yes
27342 else
27343   ac_cv_lib_nsl_gethostbyname_r=no
27344 fi
27345 rm -f core conftest.err conftest.$ac_objext \
27346     conftest$ac_exeext conftest.$ac_ext
27347 LIBS=$ac_check_lib_save_LIBS
27348 fi
27349 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_gethostbyname_r" >&5
27350 $as_echo "$ac_cv_lib_nsl_gethostbyname_r" >&6; }
27351 if test "x$ac_cv_lib_nsl_gethostbyname_r" = x""yes; then :
27352   cat >>confdefs.h <<_ACEOF
27353 #define HAVE_LIBNSL 1
27354 _ACEOF
27355
27356   LIBS="-lnsl $LIBS"
27357
27358 fi
27359
27360     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname_r in -lresolv" >&5
27361 $as_echo_n "checking for gethostbyname_r in -lresolv... " >&6; }
27362 if test "${ac_cv_lib_resolv_gethostbyname_r+set}" = set; then :
27363   $as_echo_n "(cached) " >&6
27364 else
27365   ac_check_lib_save_LIBS=$LIBS
27366 LIBS="-lresolv  $LIBS"
27367 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27368 /* end confdefs.h.  */
27369
27370 /* Override any GCC internal prototype to avoid an error.
27371    Use char because int might match the return type of a GCC
27372    builtin and then its argument prototype would still apply.  */
27373 #ifdef __cplusplus
27374 extern "C"
27375 #endif
27376 char gethostbyname_r ();
27377 int
27378 main ()
27379 {
27380 return gethostbyname_r ();
27381   ;
27382   return 0;
27383 }
27384 _ACEOF
27385 if ac_fn_c_try_link "$LINENO"; then :
27386   ac_cv_lib_resolv_gethostbyname_r=yes
27387 else
27388   ac_cv_lib_resolv_gethostbyname_r=no
27389 fi
27390 rm -f core conftest.err conftest.$ac_objext \
27391     conftest$ac_exeext conftest.$ac_ext
27392 LIBS=$ac_check_lib_save_LIBS
27393 fi
27394 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_resolv_gethostbyname_r" >&5
27395 $as_echo "$ac_cv_lib_resolv_gethostbyname_r" >&6; }
27396 if test "x$ac_cv_lib_resolv_gethostbyname_r" = x""yes; then :
27397   cat >>confdefs.h <<_ACEOF
27398 #define HAVE_LIBRESOLV 1
27399 _ACEOF
27400
27401   LIBS="-lresolv $LIBS"
27402
27403 fi
27404
27405 fi
27406
27407
27408 for ac_func in inet_pton
27409 do :
27410   ac_fn_c_check_func "$LINENO" "inet_pton" "ac_cv_func_inet_pton"
27411 if test "x$ac_cv_func_inet_pton" = x""yes; then :
27412   cat >>confdefs.h <<_ACEOF
27413 #define HAVE_INET_PTON 1
27414 _ACEOF
27415  $as_echo "#define HAVE_INET_PTON 1" >>confdefs.h
27416
27417 fi
27418 done
27419
27420 for ac_func in inet_ntop
27421 do :
27422   ac_fn_c_check_func "$LINENO" "inet_ntop" "ac_cv_func_inet_ntop"
27423 if test "x$ac_cv_func_inet_ntop" = x""yes; then :
27424   cat >>confdefs.h <<_ACEOF
27425 #define HAVE_INET_NTOP 1
27426 _ACEOF
27427  $as_echo "#define HAVE_INET_NTOP 1" >>confdefs.h
27428
27429 fi
27430 done
27431
27432 for ac_func in gethostbyname2
27433 do :
27434   ac_fn_c_check_func "$LINENO" "gethostbyname2" "ac_cv_func_gethostbyname2"
27435 if test "x$ac_cv_func_gethostbyname2" = x""yes; then :
27436   cat >>confdefs.h <<_ACEOF
27437 #define HAVE_GETHOSTBYNAME2 1
27438 _ACEOF
27439  $as_echo "#define HAVE_GETHOSTBYNAME2 1" >>confdefs.h
27440
27441 fi
27442 done
27443
27444
27445 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct sockaddr has a sa_len field" >&5
27446 $as_echo_n "checking for struct sockaddr has a sa_len field... " >&6; }
27447 if test "${ac_cv_struct_sockaddr_sa_len+set}" = set; then :
27448   $as_echo_n "(cached) " >&6
27449 else
27450
27451        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27452 /* end confdefs.h.  */
27453
27454               #include <sys/socket.h>
27455
27456 int
27457 main ()
27458 {
27459
27460               struct sockaddr s; s.sa_len;
27461
27462   ;
27463   return 0;
27464 }
27465 _ACEOF
27466 if ac_fn_c_try_compile "$LINENO"; then :
27467
27468              ac_cv_struct_sockaddr_sa_len=yes
27469
27470 else
27471   ac_cv_struct_sockaddr_sa_len=no
27472
27473
27474 fi
27475 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27476
27477
27478 fi
27479 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_sockaddr_sa_len" >&5
27480 $as_echo "$ac_cv_struct_sockaddr_sa_len" >&6; }
27481
27482 if test $ac_cv_struct_sockaddr_sa_len = yes; then
27483
27484 $as_echo "#define HAVE_SA_LEN 1" >>confdefs.h
27485
27486 fi
27487
27488 for ac_func in strftime
27489 do :
27490   ac_fn_c_check_func "$LINENO" "strftime" "ac_cv_func_strftime"
27491 if test "x$ac_cv_func_strftime" = x""yes; then :
27492   cat >>confdefs.h <<_ACEOF
27493 #define HAVE_STRFTIME 1
27494 _ACEOF
27495
27496 else
27497   # strftime is in -lintl on SCO UNIX.
27498 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for strftime in -lintl" >&5
27499 $as_echo_n "checking for strftime in -lintl... " >&6; }
27500 if test "${ac_cv_lib_intl_strftime+set}" = set; then :
27501   $as_echo_n "(cached) " >&6
27502 else
27503   ac_check_lib_save_LIBS=$LIBS
27504 LIBS="-lintl  $LIBS"
27505 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27506 /* end confdefs.h.  */
27507
27508 /* Override any GCC internal prototype to avoid an error.
27509    Use char because int might match the return type of a GCC
27510    builtin and then its argument prototype would still apply.  */
27511 #ifdef __cplusplus
27512 extern "C"
27513 #endif
27514 char strftime ();
27515 int
27516 main ()
27517 {
27518 return strftime ();
27519   ;
27520   return 0;
27521 }
27522 _ACEOF
27523 if ac_fn_c_try_link "$LINENO"; then :
27524   ac_cv_lib_intl_strftime=yes
27525 else
27526   ac_cv_lib_intl_strftime=no
27527 fi
27528 rm -f core conftest.err conftest.$ac_objext \
27529     conftest$ac_exeext conftest.$ac_ext
27530 LIBS=$ac_check_lib_save_LIBS
27531 fi
27532 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_intl_strftime" >&5
27533 $as_echo "$ac_cv_lib_intl_strftime" >&6; }
27534 if test "x$ac_cv_lib_intl_strftime" = x""yes; then :
27535   $as_echo "#define HAVE_STRFTIME 1" >>confdefs.h
27536
27537 LIBS="-lintl $LIBS"
27538 fi
27539
27540 fi
27541 done
27542
27543 for ac_func in vprintf
27544 do :
27545   ac_fn_c_check_func "$LINENO" "vprintf" "ac_cv_func_vprintf"
27546 if test "x$ac_cv_func_vprintf" = x""yes; then :
27547   cat >>confdefs.h <<_ACEOF
27548 #define HAVE_VPRINTF 1
27549 _ACEOF
27550
27551 ac_fn_c_check_func "$LINENO" "_doprnt" "ac_cv_func__doprnt"
27552 if test "x$ac_cv_func__doprnt" = x""yes; then :
27553
27554 $as_echo "#define HAVE_DOPRNT 1" >>confdefs.h
27555
27556 fi
27557
27558 fi
27559 done
27560
27561
27562 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
27563 # for constant arguments.  Useless!
27564 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5
27565 $as_echo_n "checking for working alloca.h... " >&6; }
27566 if test "${ac_cv_working_alloca_h+set}" = set; then :
27567   $as_echo_n "(cached) " >&6
27568 else
27569   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27570 /* end confdefs.h.  */
27571 #include <alloca.h>
27572 int
27573 main ()
27574 {
27575 char *p = (char *) alloca (2 * sizeof (int));
27576                           if (p) return 0;
27577   ;
27578   return 0;
27579 }
27580 _ACEOF
27581 if ac_fn_c_try_link "$LINENO"; then :
27582   ac_cv_working_alloca_h=yes
27583 else
27584   ac_cv_working_alloca_h=no
27585 fi
27586 rm -f core conftest.err conftest.$ac_objext \
27587     conftest$ac_exeext conftest.$ac_ext
27588 fi
27589 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5
27590 $as_echo "$ac_cv_working_alloca_h" >&6; }
27591 if test $ac_cv_working_alloca_h = yes; then
27592
27593 $as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h
27594
27595 fi
27596
27597 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5
27598 $as_echo_n "checking for alloca... " >&6; }
27599 if test "${ac_cv_func_alloca_works+set}" = set; then :
27600   $as_echo_n "(cached) " >&6
27601 else
27602   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27603 /* end confdefs.h.  */
27604 #ifdef __GNUC__
27605 # define alloca __builtin_alloca
27606 #else
27607 # ifdef _MSC_VER
27608 #  include <malloc.h>
27609 #  define alloca _alloca
27610 # else
27611 #  ifdef HAVE_ALLOCA_H
27612 #   include <alloca.h>
27613 #  else
27614 #   ifdef _AIX
27615  #pragma alloca
27616 #   else
27617 #    ifndef alloca /* predefined by HP cc +Olibcalls */
27618 char *alloca ();
27619 #    endif
27620 #   endif
27621 #  endif
27622 # endif
27623 #endif
27624
27625 int
27626 main ()
27627 {
27628 char *p = (char *) alloca (1);
27629                                     if (p) return 0;
27630   ;
27631   return 0;
27632 }
27633 _ACEOF
27634 if ac_fn_c_try_link "$LINENO"; then :
27635   ac_cv_func_alloca_works=yes
27636 else
27637   ac_cv_func_alloca_works=no
27638 fi
27639 rm -f core conftest.err conftest.$ac_objext \
27640     conftest$ac_exeext conftest.$ac_ext
27641 fi
27642 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5
27643 $as_echo "$ac_cv_func_alloca_works" >&6; }
27644
27645 if test $ac_cv_func_alloca_works = yes; then
27646
27647 $as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
27648
27649 else
27650   # The SVR3 libPW and SVR4 libucb both contain incompatible functions
27651 # that cause trouble.  Some versions do not even contain alloca or
27652 # contain a buggy version.  If you still want to use their alloca,
27653 # use ar to extract alloca.o from them instead of compiling alloca.c.
27654
27655 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
27656
27657 $as_echo "#define C_ALLOCA 1" >>confdefs.h
27658
27659
27660 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether \`alloca.c' needs Cray hooks" >&5
27661 $as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; }
27662 if test "${ac_cv_os_cray+set}" = set; then :
27663   $as_echo_n "(cached) " >&6
27664 else
27665   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27666 /* end confdefs.h.  */
27667 #if defined CRAY && ! defined CRAY2
27668 webecray
27669 #else
27670 wenotbecray
27671 #endif
27672
27673 _ACEOF
27674 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
27675   $EGREP "webecray" >/dev/null 2>&1; then :
27676   ac_cv_os_cray=yes
27677 else
27678   ac_cv_os_cray=no
27679 fi
27680 rm -f conftest*
27681
27682 fi
27683 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5
27684 $as_echo "$ac_cv_os_cray" >&6; }
27685 if test $ac_cv_os_cray = yes; then
27686   for ac_func in _getb67 GETB67 getb67; do
27687     as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
27688 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
27689 eval as_val=\$$as_ac_var
27690    if test "x$as_val" = x""yes; then :
27691
27692 cat >>confdefs.h <<_ACEOF
27693 #define CRAY_STACKSEG_END $ac_func
27694 _ACEOF
27695
27696     break
27697 fi
27698
27699   done
27700 fi
27701
27702 { $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5
27703 $as_echo_n "checking stack direction for C alloca... " >&6; }
27704 if test "${ac_cv_c_stack_direction+set}" = set; then :
27705   $as_echo_n "(cached) " >&6
27706 else
27707   if test "$cross_compiling" = yes; then :
27708   ac_cv_c_stack_direction=0
27709 else
27710   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27711 /* end confdefs.h.  */
27712 $ac_includes_default
27713 int
27714 find_stack_direction ()
27715 {
27716   static char *addr = 0;
27717   auto char dummy;
27718   if (addr == 0)
27719     {
27720       addr = &dummy;
27721       return find_stack_direction ();
27722     }
27723   else
27724     return (&dummy > addr) ? 1 : -1;
27725 }
27726
27727 int
27728 main ()
27729 {
27730   return find_stack_direction () < 0;
27731 }
27732 _ACEOF
27733 if ac_fn_c_try_run "$LINENO"; then :
27734   ac_cv_c_stack_direction=1
27735 else
27736   ac_cv_c_stack_direction=-1
27737 fi
27738 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
27739   conftest.$ac_objext conftest.beam conftest.$ac_ext
27740 fi
27741
27742 fi
27743 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5
27744 $as_echo "$ac_cv_c_stack_direction" >&6; }
27745 cat >>confdefs.h <<_ACEOF
27746 #define STACK_DIRECTION $ac_cv_c_stack_direction
27747 _ACEOF
27748
27749
27750 fi
27751
27752 # getmntent is in the standard C library on UNICOS, in -lsun on Irix 4,
27753 # -lseq on Dynix/PTX, -lgen on Unixware.
27754 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing getmntent" >&5
27755 $as_echo_n "checking for library containing getmntent... " >&6; }
27756 if test "${ac_cv_search_getmntent+set}" = set; then :
27757   $as_echo_n "(cached) " >&6
27758 else
27759   ac_func_search_save_LIBS=$LIBS
27760 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27761 /* end confdefs.h.  */
27762
27763 /* Override any GCC internal prototype to avoid an error.
27764    Use char because int might match the return type of a GCC
27765    builtin and then its argument prototype would still apply.  */
27766 #ifdef __cplusplus
27767 extern "C"
27768 #endif
27769 char getmntent ();
27770 int
27771 main ()
27772 {
27773 return getmntent ();
27774   ;
27775   return 0;
27776 }
27777 _ACEOF
27778 for ac_lib in '' sun seq gen; do
27779   if test -z "$ac_lib"; then
27780     ac_res="none required"
27781   else
27782     ac_res=-l$ac_lib
27783     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
27784   fi
27785   if ac_fn_c_try_link "$LINENO"; then :
27786   ac_cv_search_getmntent=$ac_res
27787 fi
27788 rm -f core conftest.err conftest.$ac_objext \
27789     conftest$ac_exeext
27790   if test "${ac_cv_search_getmntent+set}" = set; then :
27791   break
27792 fi
27793 done
27794 if test "${ac_cv_search_getmntent+set}" = set; then :
27795
27796 else
27797   ac_cv_search_getmntent=no
27798 fi
27799 rm conftest.$ac_ext
27800 LIBS=$ac_func_search_save_LIBS
27801 fi
27802 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_getmntent" >&5
27803 $as_echo "$ac_cv_search_getmntent" >&6; }
27804 ac_res=$ac_cv_search_getmntent
27805 if test "$ac_res" != no; then :
27806   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
27807   ac_cv_func_getmntent=yes
27808
27809 $as_echo "#define HAVE_GETMNTENT 1" >>confdefs.h
27810
27811 else
27812   ac_cv_func_getmntent=no
27813 fi
27814
27815
27816 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether closedir returns void" >&5
27817 $as_echo_n "checking whether closedir returns void... " >&6; }
27818 if test "${ac_cv_func_closedir_void+set}" = set; then :
27819   $as_echo_n "(cached) " >&6
27820 else
27821   if test "$cross_compiling" = yes; then :
27822   ac_cv_func_closedir_void=yes
27823 else
27824   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27825 /* end confdefs.h.  */
27826 $ac_includes_default
27827 #include <$ac_header_dirent>
27828 #ifndef __cplusplus
27829 int closedir ();
27830 #endif
27831
27832 int
27833 main ()
27834 {
27835 return closedir (opendir (".")) != 0;
27836   ;
27837   return 0;
27838 }
27839 _ACEOF
27840 if ac_fn_c_try_run "$LINENO"; then :
27841   ac_cv_func_closedir_void=no
27842 else
27843   ac_cv_func_closedir_void=yes
27844 fi
27845 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
27846   conftest.$ac_objext conftest.beam conftest.$ac_ext
27847 fi
27848
27849 fi
27850 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_closedir_void" >&5
27851 $as_echo "$ac_cv_func_closedir_void" >&6; }
27852 if test $ac_cv_func_closedir_void = yes; then
27853
27854 $as_echo "#define CLOSEDIR_VOID 1" >>confdefs.h
27855
27856 fi
27857
27858 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether setpgrp takes no argument" >&5
27859 $as_echo_n "checking whether setpgrp takes no argument... " >&6; }
27860 if test "${ac_cv_func_setpgrp_void+set}" = set; then :
27861   $as_echo_n "(cached) " >&6
27862 else
27863   if test "$cross_compiling" = yes; then :
27864   as_fn_error "cannot check setpgrp when cross compiling" "$LINENO" 5
27865 else
27866   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27867 /* end confdefs.h.  */
27868 $ac_includes_default
27869 int
27870 main ()
27871 {
27872 /* If this system has a BSD-style setpgrp which takes arguments,
27873   setpgrp(1, 1) will fail with ESRCH and return -1, in that case
27874   exit successfully. */
27875   return setpgrp (1,1) != -1;
27876   ;
27877   return 0;
27878 }
27879 _ACEOF
27880 if ac_fn_c_try_run "$LINENO"; then :
27881   ac_cv_func_setpgrp_void=no
27882 else
27883   ac_cv_func_setpgrp_void=yes
27884 fi
27885 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
27886   conftest.$ac_objext conftest.beam conftest.$ac_ext
27887 fi
27888
27889 fi
27890 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_setpgrp_void" >&5
27891 $as_echo "$ac_cv_func_setpgrp_void" >&6; }
27892 if test $ac_cv_func_setpgrp_void = yes; then
27893
27894 $as_echo "#define SETPGRP_VOID 1" >>confdefs.h
27895
27896 fi
27897             # AC_FUNC_FNMATCH    dnl use local version
27898
27899 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gettext in -lintl" >&5
27900 $as_echo_n "checking for gettext in -lintl... " >&6; }
27901 if test "${ac_cv_lib_intl_gettext+set}" = set; then :
27902   $as_echo_n "(cached) " >&6
27903 else
27904   ac_check_lib_save_LIBS=$LIBS
27905 LIBS="-lintl  $LIBS"
27906 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27907 /* end confdefs.h.  */
27908
27909 /* Override any GCC internal prototype to avoid an error.
27910    Use char because int might match the return type of a GCC
27911    builtin and then its argument prototype would still apply.  */
27912 #ifdef __cplusplus
27913 extern "C"
27914 #endif
27915 char gettext ();
27916 int
27917 main ()
27918 {
27919 return gettext ();
27920   ;
27921   return 0;
27922 }
27923 _ACEOF
27924 if ac_fn_c_try_link "$LINENO"; then :
27925   ac_cv_lib_intl_gettext=yes
27926 else
27927   ac_cv_lib_intl_gettext=no
27928 fi
27929 rm -f core conftest.err conftest.$ac_objext \
27930     conftest$ac_exeext conftest.$ac_ext
27931 LIBS=$ac_check_lib_save_LIBS
27932 fi
27933 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_intl_gettext" >&5
27934 $as_echo "$ac_cv_lib_intl_gettext" >&6; }
27935 if test "x$ac_cv_lib_intl_gettext" = x""yes; then :
27936   LIBS="$LIBS -lintl"
27937 fi
27938
27939
27940 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getpwnam in -lsun" >&5
27941 $as_echo_n "checking for getpwnam in -lsun... " >&6; }
27942 if test "${ac_cv_lib_sun_getpwnam+set}" = set; then :
27943   $as_echo_n "(cached) " >&6
27944 else
27945   ac_check_lib_save_LIBS=$LIBS
27946 LIBS="-lsun  $LIBS"
27947 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27948 /* end confdefs.h.  */
27949
27950 /* Override any GCC internal prototype to avoid an error.
27951    Use char because int might match the return type of a GCC
27952    builtin and then its argument prototype would still apply.  */
27953 #ifdef __cplusplus
27954 extern "C"
27955 #endif
27956 char getpwnam ();
27957 int
27958 main ()
27959 {
27960 return getpwnam ();
27961   ;
27962   return 0;
27963 }
27964 _ACEOF
27965 if ac_fn_c_try_link "$LINENO"; then :
27966   ac_cv_lib_sun_getpwnam=yes
27967 else
27968   ac_cv_lib_sun_getpwnam=no
27969 fi
27970 rm -f core conftest.err conftest.$ac_objext \
27971     conftest$ac_exeext conftest.$ac_ext
27972 LIBS=$ac_check_lib_save_LIBS
27973 fi
27974 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_sun_getpwnam" >&5
27975 $as_echo "$ac_cv_lib_sun_getpwnam" >&6; }
27976 if test "x$ac_cv_lib_sun_getpwnam" = x""yes; then :
27977   cat >>confdefs.h <<_ACEOF
27978 #define HAVE_LIBSUN 1
27979 _ACEOF
27980
27981   LIBS="-lsun $LIBS"
27982
27983 fi
27984
27985
27986 for ac_header in zlib.h
27987 do :
27988   ac_fn_c_check_header_mongrel "$LINENO" "zlib.h" "ac_cv_header_zlib_h" "$ac_includes_default"
27989 if test "x$ac_cv_header_zlib_h" = x""yes; then :
27990   cat >>confdefs.h <<_ACEOF
27991 #define HAVE_ZLIB_H 1
27992 _ACEOF
27993
27994 fi
27995
27996 done
27997
27998 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for deflate in -lz" >&5
27999 $as_echo_n "checking for deflate in -lz... " >&6; }
28000 if test "${ac_cv_lib_z_deflate+set}" = set; then :
28001   $as_echo_n "(cached) " >&6
28002 else
28003   ac_check_lib_save_LIBS=$LIBS
28004 LIBS="-lz  $LIBS"
28005 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28006 /* end confdefs.h.  */
28007
28008 /* Override any GCC internal prototype to avoid an error.
28009    Use char because int might match the return type of a GCC
28010    builtin and then its argument prototype would still apply.  */
28011 #ifdef __cplusplus
28012 extern "C"
28013 #endif
28014 char deflate ();
28015 int
28016 main ()
28017 {
28018 return deflate ();
28019   ;
28020   return 0;
28021 }
28022 _ACEOF
28023 if ac_fn_c_try_link "$LINENO"; then :
28024   ac_cv_lib_z_deflate=yes
28025 else
28026   ac_cv_lib_z_deflate=no
28027 fi
28028 rm -f core conftest.err conftest.$ac_objext \
28029     conftest$ac_exeext conftest.$ac_ext
28030 LIBS=$ac_check_lib_save_LIBS
28031 fi
28032 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_deflate" >&5
28033 $as_echo "$ac_cv_lib_z_deflate" >&6; }
28034 if test "x$ac_cv_lib_z_deflate" = x""yes; then :
28035   FDLIBS="-lz"
28036 fi
28037
28038 have_zlib=no
28039 if test x$FDLIBS = x-lz; then
28040    $as_echo "#define HAVE_LIBZ 1" >>confdefs.h
28041
28042    have_zlib=yes
28043 fi
28044
28045 support_acl=auto
28046 # Check whether --enable-acl was given.
28047 if test "${enable_acl+set}" = set; then :
28048   enableval=$enable_acl;
28049        if test x$enableval = xyes; then
28050           support_acl=yes
28051        elif test x$enableval = xno; then
28052           support_acl=no
28053        fi
28054
28055
28056 fi
28057
28058
28059 have_acl=no
28060 have_extended_acl=no
28061 if test x$support_acl = xyes -o x$support_acl = xauto; then
28062    ac_fn_c_check_header_mongrel "$LINENO" "sys/acl.h" "ac_cv_header_sys_acl_h" "$ac_includes_default"
28063 if test "x$ac_cv_header_sys_acl_h" = x""yes; then :
28064
28065 $as_echo "#define HAVE_SYS_ACL_H 1" >>confdefs.h
28066
28067 fi
28068
28069
28070    ac_fn_c_check_func "$LINENO" "acl_get_file" "ac_cv_func_acl_get_file"
28071 if test "x$ac_cv_func_acl_get_file" = x""yes; then :
28072
28073           have_acl=yes
28074
28075 else
28076
28077           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for acl_get_file in -lacl" >&5
28078 $as_echo_n "checking for acl_get_file in -lacl... " >&6; }
28079 if test "${ac_cv_lib_acl_acl_get_file+set}" = set; then :
28080   $as_echo_n "(cached) " >&6
28081 else
28082   ac_check_lib_save_LIBS=$LIBS
28083 LIBS="-lacl  $LIBS"
28084 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28085 /* end confdefs.h.  */
28086
28087 /* Override any GCC internal prototype to avoid an error.
28088    Use char because int might match the return type of a GCC
28089    builtin and then its argument prototype would still apply.  */
28090 #ifdef __cplusplus
28091 extern "C"
28092 #endif
28093 char acl_get_file ();
28094 int
28095 main ()
28096 {
28097 return acl_get_file ();
28098   ;
28099   return 0;
28100 }
28101 _ACEOF
28102 if ac_fn_c_try_link "$LINENO"; then :
28103   ac_cv_lib_acl_acl_get_file=yes
28104 else
28105   ac_cv_lib_acl_acl_get_file=no
28106 fi
28107 rm -f core conftest.err conftest.$ac_objext \
28108     conftest$ac_exeext conftest.$ac_ext
28109 LIBS=$ac_check_lib_save_LIBS
28110 fi
28111 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_acl_acl_get_file" >&5
28112 $as_echo "$ac_cv_lib_acl_acl_get_file" >&6; }
28113 if test "x$ac_cv_lib_acl_acl_get_file" = x""yes; then :
28114
28115                  have_acl=yes;
28116                  FDLIBS="-lacl $FDLIBS"
28117
28118 else
28119
28120                  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for acl_get_file in -lpacl" >&5
28121 $as_echo_n "checking for acl_get_file in -lpacl... " >&6; }
28122 if test "${ac_cv_lib_pacl_acl_get_file+set}" = set; then :
28123   $as_echo_n "(cached) " >&6
28124 else
28125   ac_check_lib_save_LIBS=$LIBS
28126 LIBS="-lpacl  $LIBS"
28127 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28128 /* end confdefs.h.  */
28129
28130 /* Override any GCC internal prototype to avoid an error.
28131    Use char because int might match the return type of a GCC
28132    builtin and then its argument prototype would still apply.  */
28133 #ifdef __cplusplus
28134 extern "C"
28135 #endif
28136 char acl_get_file ();
28137 int
28138 main ()
28139 {
28140 return acl_get_file ();
28141   ;
28142   return 0;
28143 }
28144 _ACEOF
28145 if ac_fn_c_try_link "$LINENO"; then :
28146   ac_cv_lib_pacl_acl_get_file=yes
28147 else
28148   ac_cv_lib_pacl_acl_get_file=no
28149 fi
28150 rm -f core conftest.err conftest.$ac_objext \
28151     conftest$ac_exeext conftest.$ac_ext
28152 LIBS=$ac_check_lib_save_LIBS
28153 fi
28154 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pacl_acl_get_file" >&5
28155 $as_echo "$ac_cv_lib_pacl_acl_get_file" >&6; }
28156 if test "x$ac_cv_lib_pacl_acl_get_file" = x""yes; then :
28157
28158                         have_acl=yes;
28159                         FDLIBS="-lpacl $FDLIBS"
28160
28161 else
28162
28163                         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for acltotext in -lsec" >&5
28164 $as_echo_n "checking for acltotext in -lsec... " >&6; }
28165 if test "${ac_cv_lib_sec_acltotext+set}" = set; then :
28166   $as_echo_n "(cached) " >&6
28167 else
28168   ac_check_lib_save_LIBS=$LIBS
28169 LIBS="-lsec  $LIBS"
28170 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28171 /* end confdefs.h.  */
28172
28173 /* Override any GCC internal prototype to avoid an error.
28174    Use char because int might match the return type of a GCC
28175    builtin and then its argument prototype would still apply.  */
28176 #ifdef __cplusplus
28177 extern "C"
28178 #endif
28179 char acltotext ();
28180 int
28181 main ()
28182 {
28183 return acltotext ();
28184   ;
28185   return 0;
28186 }
28187 _ACEOF
28188 if ac_fn_c_try_link "$LINENO"; then :
28189   ac_cv_lib_sec_acltotext=yes
28190 else
28191   ac_cv_lib_sec_acltotext=no
28192 fi
28193 rm -f core conftest.err conftest.$ac_objext \
28194     conftest$ac_exeext conftest.$ac_ext
28195 LIBS=$ac_check_lib_save_LIBS
28196 fi
28197 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_sec_acltotext" >&5
28198 $as_echo "$ac_cv_lib_sec_acltotext" >&6; }
28199 if test "x$ac_cv_lib_sec_acltotext" = x""yes; then :
28200
28201                                have_acl=yes;
28202                                FDLIBS="-lsec $FDLIBS"
28203
28204                                { $as_echo "$as_me:${as_lineno-$LINENO}: checking for acl_totext in -lsec" >&5
28205 $as_echo_n "checking for acl_totext in -lsec... " >&6; }
28206 if test "${ac_cv_lib_sec_acl_totext+set}" = set; then :
28207   $as_echo_n "(cached) " >&6
28208 else
28209   ac_check_lib_save_LIBS=$LIBS
28210 LIBS="-lsec  $LIBS"
28211 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28212 /* end confdefs.h.  */
28213
28214 /* Override any GCC internal prototype to avoid an error.
28215    Use char because int might match the return type of a GCC
28216    builtin and then its argument prototype would still apply.  */
28217 #ifdef __cplusplus
28218 extern "C"
28219 #endif
28220 char acl_totext ();
28221 int
28222 main ()
28223 {
28224 return acl_totext ();
28225   ;
28226   return 0;
28227 }
28228 _ACEOF
28229 if ac_fn_c_try_link "$LINENO"; then :
28230   ac_cv_lib_sec_acl_totext=yes
28231 else
28232   ac_cv_lib_sec_acl_totext=no
28233 fi
28234 rm -f core conftest.err conftest.$ac_objext \
28235     conftest$ac_exeext conftest.$ac_ext
28236 LIBS=$ac_check_lib_save_LIBS
28237 fi
28238 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_sec_acl_totext" >&5
28239 $as_echo "$ac_cv_lib_sec_acl_totext" >&6; }
28240 if test "x$ac_cv_lib_sec_acl_totext" = x""yes; then :
28241
28242                                       have_extended_acl=yes
28243
28244
28245 fi
28246
28247
28248
28249 fi
28250
28251
28252
28253 fi
28254
28255
28256
28257 fi
28258
28259
28260
28261 fi
28262
28263
28264    if test x$support_acl = xyes -a $have_acl != yes; then
28265       as_fn_error "acl support explicitly enabled but no supported acl implementation found,
28266   please either load the acl libraries or rerun configure without --enable-acl" "$LINENO" 5
28267    else
28268       if test $have_acl = yes; then
28269
28270 $as_echo "#define HAVE_ACL 1" >>confdefs.h
28271
28272       fi
28273
28274       if test $have_extended_acl = yes; then
28275
28276 $as_echo "#define HAVE_EXTENDED_ACL 1" >>confdefs.h
28277
28278       fi
28279    fi
28280 fi
28281
28282 support_xattr=auto
28283 # Check whether --enable-xattr was given.
28284 if test "${enable_xattr+set}" = set; then :
28285   enableval=$enable_xattr;
28286        if test x$enableval = xyes; then
28287           support_xattr=yes
28288        elif test x$enableval = xno; then
28289           support_xattr=no
28290        fi
28291
28292
28293 fi
28294
28295
28296 have_xattr=no
28297 if test x$support_xattr = xyes -o x$support_xattr = xauto; then
28298             ac_fn_c_check_header_mongrel "$LINENO" "sys/extattr.h" "ac_cv_header_sys_extattr_h" "$ac_includes_default"
28299 if test "x$ac_cv_header_sys_extattr_h" = x""yes; then :
28300
28301 $as_echo "#define HAVE_SYS_EXTATTR_H 1" >>confdefs.h
28302
28303 fi
28304
28305
28306    ac_fn_c_check_header_mongrel "$LINENO" "libutil.h" "ac_cv_header_libutil_h" "$ac_includes_default"
28307 if test "x$ac_cv_header_libutil_h" = x""yes; then :
28308
28309 $as_echo "#define HAVE_LIBUTIL_H 1" >>confdefs.h
28310
28311 fi
28312
28313
28314    for ac_func in extattr_get_link extattr_set_link extattr_list_link
28315 do :
28316   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
28317 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
28318 eval as_val=\$$as_ac_var
28319    if test "x$as_val" = x""yes; then :
28320   cat >>confdefs.h <<_ACEOF
28321 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
28322 _ACEOF
28323
28324           have_xattr=yes
28325
28326 $as_echo "#define HAVE_EXTATTR_GET_LINK 1" >>confdefs.h
28327
28328
28329 $as_echo "#define HAVE_EXTATTR_SET_LINK 1" >>confdefs.h
28330
28331
28332 $as_echo "#define HAVE_EXTATTR_LIST_LINK 1" >>confdefs.h
28333
28334
28335
28336 fi
28337 done
28338
28339
28340    if test $have_xattr = no; then
28341       for ac_func in extattr_get_file extattr_set_file extattr_list_file
28342 do :
28343   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
28344 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
28345 eval as_val=\$$as_ac_var
28346    if test "x$as_val" = x""yes; then :
28347   cat >>confdefs.h <<_ACEOF
28348 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
28349 _ACEOF
28350
28351              have_xattr=yes
28352
28353 $as_echo "#define HAVE_EXTATTR_GET_FILE 1" >>confdefs.h
28354
28355
28356 $as_echo "#define HAVE_EXTATTR_SET_FILE 1" >>confdefs.h
28357
28358
28359 $as_echo "#define HAVE_EXTATTR_LIST_FILE 1" >>confdefs.h
28360
28361
28362
28363 fi
28364 done
28365
28366    fi
28367
28368    if test $have_xattr = yes; then
28369       have_extattr_string_in_libc=no
28370       for ac_func in extattr_namespace_to_string extattr_string_to_namespace
28371 do :
28372   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
28373 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
28374 eval as_val=\$$as_ac_var
28375    if test "x$as_val" = x""yes; then :
28376   cat >>confdefs.h <<_ACEOF
28377 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
28378 _ACEOF
28379
28380              have_extattr_string_in_libc=yes
28381
28382 $as_echo "#define HAVE_EXTATTR_NAMESPACE_TO_STRING 1" >>confdefs.h
28383
28384
28385 $as_echo "#define HAVE_EXTATTR_STRING_TO_NAMESPACE 1" >>confdefs.h
28386
28387
28388
28389 fi
28390 done
28391
28392
28393                         if test $have_extattr_string_in_libc = no; then
28394          { $as_echo "$as_me:${as_lineno-$LINENO}: checking for extattr_namespace_to_string extattr_string_to_namespace in -lutil" >&5
28395 $as_echo_n "checking for extattr_namespace_to_string extattr_string_to_namespace in -lutil... " >&6; }
28396 if test "${ac_cv_lib_util_extattr_namespace_to_string_extattr_string_to_namespace+set}" = set; then :
28397   $as_echo_n "(cached) " >&6
28398 else
28399   ac_check_lib_save_LIBS=$LIBS
28400 LIBS="-lutil  $LIBS"
28401 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28402 /* end confdefs.h.  */
28403
28404 /* Override any GCC internal prototype to avoid an error.
28405    Use char because int might match the return type of a GCC
28406    builtin and then its argument prototype would still apply.  */
28407 #ifdef __cplusplus
28408 extern "C"
28409 #endif
28410 char extattr_namespace_to_string extattr_string_to_namespace ();
28411 int
28412 main ()
28413 {
28414 return extattr_namespace_to_string extattr_string_to_namespace ();
28415   ;
28416   return 0;
28417 }
28418 _ACEOF
28419 if ac_fn_c_try_link "$LINENO"; then :
28420   ac_cv_lib_util_extattr_namespace_to_string_extattr_string_to_namespace=yes
28421 else
28422   ac_cv_lib_util_extattr_namespace_to_string_extattr_string_to_namespace=no
28423 fi
28424 rm -f core conftest.err conftest.$ac_objext \
28425     conftest$ac_exeext conftest.$ac_ext
28426 LIBS=$ac_check_lib_save_LIBS
28427 fi
28428 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_util_extattr_namespace_to_string_extattr_string_to_namespace" >&5
28429 $as_echo "$ac_cv_lib_util_extattr_namespace_to_string_extattr_string_to_namespace" >&6; }
28430 if test "x$ac_cv_lib_util_extattr_namespace_to_string_extattr_string_to_namespace" = x""yes; then :
28431
28432
28433 $as_echo "#define HAVE_EXTATTR_NAMESPACE_TO_STRING 1" >>confdefs.h
28434
28435
28436 $as_echo "#define HAVE_EXTATTR_STRING_TO_NAMESPACE 1" >>confdefs.h
28437
28438                 FDLIBS="-lutil $FDLIBS"
28439
28440
28441 fi
28442
28443       fi
28444    fi
28445
28446             if test $have_xattr = no; then
28447       ac_fn_c_check_header_mongrel "$LINENO" "sys/xattr.h" "ac_cv_header_sys_xattr_h" "$ac_includes_default"
28448 if test "x$ac_cv_header_sys_xattr_h" = x""yes; then :
28449
28450 $as_echo "#define HAVE_SYS_XATTR_H 1" >>confdefs.h
28451
28452 fi
28453
28454
28455       for ac_func in llistxattr lgetxattr lsetxattr
28456 do :
28457   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
28458 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
28459 eval as_val=\$$as_ac_var
28460    if test "x$as_val" = x""yes; then :
28461   cat >>confdefs.h <<_ACEOF
28462 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
28463 _ACEOF
28464
28465              have_xattr=yes
28466
28467 $as_echo "#define HAVE_LLISTXATTR 1" >>confdefs.h
28468
28469
28470 $as_echo "#define HAVE_LGETXATTR 1" >>confdefs.h
28471
28472
28473 $as_echo "#define HAVE_LSETXATTR 1" >>confdefs.h
28474
28475
28476
28477 fi
28478 done
28479
28480
28481       if test $have_xattr = no; then
28482          for ac_func in listxattr getxattr setxattr
28483 do :
28484   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
28485 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
28486 eval as_val=\$$as_ac_var
28487    if test "x$as_val" = x""yes; then :
28488   cat >>confdefs.h <<_ACEOF
28489 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
28490 _ACEOF
28491
28492                 have_xattr=yes
28493
28494 $as_echo "#define HAVE_LISTXATTR 1" >>confdefs.h
28495
28496
28497 $as_echo "#define HAVE_GETXATTR 1" >>confdefs.h
28498
28499
28500 $as_echo "#define HAVE_SETXATTR 1" >>confdefs.h
28501
28502
28503
28504 fi
28505 done
28506
28507       fi
28508    fi
28509
28510             if test $have_xattr = no; then
28511       ac_fn_c_check_header_mongrel "$LINENO" "sys/attr.h" "ac_cv_header_sys_attr_h" "$ac_includes_default"
28512 if test "x$ac_cv_header_sys_attr_h" = x""yes; then :
28513
28514 $as_echo "#define HAVE_SYS_ATTR_H 1" >>confdefs.h
28515
28516 fi
28517
28518
28519       ac_fn_c_check_header_mongrel "$LINENO" "sys/nvpair.h" "ac_cv_header_sys_nvpair_h" "$ac_includes_default"
28520 if test "x$ac_cv_header_sys_nvpair_h" = x""yes; then :
28521
28522 $as_echo "#define HAVE_SYS_NVPAIR_H 1" >>confdefs.h
28523
28524 fi
28525
28526
28527       ac_fn_c_check_header_mongrel "$LINENO" "attr.h" "ac_cv_header_attr_h" "$ac_includes_default"
28528 if test "x$ac_cv_header_attr_h" = x""yes; then :
28529
28530 $as_echo "#define HAVE_ATTR_H 1" >>confdefs.h
28531
28532 fi
28533
28534
28535
28536       for ac_func in openat fstatat unlinkat fchownat futimesat
28537 do :
28538   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
28539 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
28540 eval as_val=\$$as_ac_var
28541    if test "x$as_val" = x""yes; then :
28542   cat >>confdefs.h <<_ACEOF
28543 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
28544 _ACEOF
28545
28546              have_xattr=yes
28547
28548 $as_echo "#define HAVE_OPENAT 1" >>confdefs.h
28549
28550
28551 $as_echo "#define HAVE_FSTATAT 1" >>confdefs.h
28552
28553
28554 $as_echo "#define HAVE_UNLINKAT 1" >>confdefs.h
28555
28556
28557 $as_echo "#define HAVE_FCHOWNAT 1" >>confdefs.h
28558
28559
28560 $as_echo "#define HAVE_FUTIMESAT 1" >>confdefs.h
28561
28562
28563
28564 fi
28565 done
28566
28567
28568       if test $have_xattr = yes; then
28569          { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nvlist_next_nvpair in -lnvpair" >&5
28570 $as_echo_n "checking for nvlist_next_nvpair in -lnvpair... " >&6; }
28571 if test "${ac_cv_lib_nvpair_nvlist_next_nvpair+set}" = set; then :
28572   $as_echo_n "(cached) " >&6
28573 else
28574   ac_check_lib_save_LIBS=$LIBS
28575 LIBS="-lnvpair  $LIBS"
28576 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28577 /* end confdefs.h.  */
28578
28579 /* Override any GCC internal prototype to avoid an error.
28580    Use char because int might match the return type of a GCC
28581    builtin and then its argument prototype would still apply.  */
28582 #ifdef __cplusplus
28583 extern "C"
28584 #endif
28585 char nvlist_next_nvpair ();
28586 int
28587 main ()
28588 {
28589 return nvlist_next_nvpair ();
28590   ;
28591   return 0;
28592 }
28593 _ACEOF
28594 if ac_fn_c_try_link "$LINENO"; then :
28595   ac_cv_lib_nvpair_nvlist_next_nvpair=yes
28596 else
28597   ac_cv_lib_nvpair_nvlist_next_nvpair=no
28598 fi
28599 rm -f core conftest.err conftest.$ac_objext \
28600     conftest$ac_exeext conftest.$ac_ext
28601 LIBS=$ac_check_lib_save_LIBS
28602 fi
28603 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nvpair_nvlist_next_nvpair" >&5
28604 $as_echo "$ac_cv_lib_nvpair_nvlist_next_nvpair" >&6; }
28605 if test "x$ac_cv_lib_nvpair_nvlist_next_nvpair" = x""yes; then :
28606
28607
28608 $as_echo "#define HAVE_NVLIST_NEXT_NVPAIR 1" >>confdefs.h
28609
28610                 FDLIBS="-lnvpair $FDLIBS"
28611
28612
28613 fi
28614
28615       fi
28616    fi
28617
28618    if test x$support_xattr = xyes -a $have_xattr != yes; then
28619       as_fn_error "xattr support explicitly enabled but no supported xattr implementation found,
28620   please either load the xattr libraries or rerun configure without --enable-xattr" "$LINENO" 5
28621    else
28622       if test $have_xattr = yes; then
28623
28624 $as_echo "#define HAVE_XATTR 1" >>confdefs.h
28625
28626       fi
28627    fi
28628 fi
28629
28630 PTHREAD_LIB=""
28631 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_create in -lpthread" >&5
28632 $as_echo_n "checking for pthread_create in -lpthread... " >&6; }
28633 if test "${ac_cv_lib_pthread_pthread_create+set}" = set; then :
28634   $as_echo_n "(cached) " >&6
28635 else
28636   ac_check_lib_save_LIBS=$LIBS
28637 LIBS="-lpthread  $LIBS"
28638 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28639 /* end confdefs.h.  */
28640
28641 /* Override any GCC internal prototype to avoid an error.
28642    Use char because int might match the return type of a GCC
28643    builtin and then its argument prototype would still apply.  */
28644 #ifdef __cplusplus
28645 extern "C"
28646 #endif
28647 char pthread_create ();
28648 int
28649 main ()
28650 {
28651 return pthread_create ();
28652   ;
28653   return 0;
28654 }
28655 _ACEOF
28656 if ac_fn_c_try_link "$LINENO"; then :
28657   ac_cv_lib_pthread_pthread_create=yes
28658 else
28659   ac_cv_lib_pthread_pthread_create=no
28660 fi
28661 rm -f core conftest.err conftest.$ac_objext \
28662     conftest$ac_exeext conftest.$ac_ext
28663 LIBS=$ac_check_lib_save_LIBS
28664 fi
28665 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_pthread_create" >&5
28666 $as_echo "$ac_cv_lib_pthread_pthread_create" >&6; }
28667 if test "x$ac_cv_lib_pthread_pthread_create" = x""yes; then :
28668   PTHREAD_LIB="-lpthread"
28669 else
28670
28671        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_create in -lpthreads" >&5
28672 $as_echo_n "checking for pthread_create in -lpthreads... " >&6; }
28673 if test "${ac_cv_lib_pthreads_pthread_create+set}" = set; then :
28674   $as_echo_n "(cached) " >&6
28675 else
28676   ac_check_lib_save_LIBS=$LIBS
28677 LIBS="-lpthreads  $LIBS"
28678 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28679 /* end confdefs.h.  */
28680
28681 /* Override any GCC internal prototype to avoid an error.
28682    Use char because int might match the return type of a GCC
28683    builtin and then its argument prototype would still apply.  */
28684 #ifdef __cplusplus
28685 extern "C"
28686 #endif
28687 char pthread_create ();
28688 int
28689 main ()
28690 {
28691 return pthread_create ();
28692   ;
28693   return 0;
28694 }
28695 _ACEOF
28696 if ac_fn_c_try_link "$LINENO"; then :
28697   ac_cv_lib_pthreads_pthread_create=yes
28698 else
28699   ac_cv_lib_pthreads_pthread_create=no
28700 fi
28701 rm -f core conftest.err conftest.$ac_objext \
28702     conftest$ac_exeext conftest.$ac_ext
28703 LIBS=$ac_check_lib_save_LIBS
28704 fi
28705 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthreads_pthread_create" >&5
28706 $as_echo "$ac_cv_lib_pthreads_pthread_create" >&6; }
28707 if test "x$ac_cv_lib_pthreads_pthread_create" = x""yes; then :
28708   PTHREAD_LIB="-lpthreads"
28709 else
28710
28711               { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_create in -lc_r" >&5
28712 $as_echo_n "checking for pthread_create in -lc_r... " >&6; }
28713 if test "${ac_cv_lib_c_r_pthread_create+set}" = set; then :
28714   $as_echo_n "(cached) " >&6
28715 else
28716   ac_check_lib_save_LIBS=$LIBS
28717 LIBS="-lc_r  $LIBS"
28718 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28719 /* end confdefs.h.  */
28720
28721 /* Override any GCC internal prototype to avoid an error.
28722    Use char because int might match the return type of a GCC
28723    builtin and then its argument prototype would still apply.  */
28724 #ifdef __cplusplus
28725 extern "C"
28726 #endif
28727 char pthread_create ();
28728 int
28729 main ()
28730 {
28731 return pthread_create ();
28732   ;
28733   return 0;
28734 }
28735 _ACEOF
28736 if ac_fn_c_try_link "$LINENO"; then :
28737   ac_cv_lib_c_r_pthread_create=yes
28738 else
28739   ac_cv_lib_c_r_pthread_create=no
28740 fi
28741 rm -f core conftest.err conftest.$ac_objext \
28742     conftest$ac_exeext conftest.$ac_ext
28743 LIBS=$ac_check_lib_save_LIBS
28744 fi
28745 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_r_pthread_create" >&5
28746 $as_echo "$ac_cv_lib_c_r_pthread_create" >&6; }
28747 if test "x$ac_cv_lib_c_r_pthread_create" = x""yes; then :
28748   PTHREAD_LIB="-lc_r"
28749 else
28750
28751                      ac_fn_c_check_func "$LINENO" "pthread_create" "ac_cv_func_pthread_create"
28752 if test "x$ac_cv_func_pthread_create" = x""yes; then :
28753
28754 fi
28755
28756
28757
28758 fi
28759
28760
28761
28762 fi
28763
28764
28765
28766 fi
28767
28768
28769 for ac_header in sys/prctl.h sys/capability.h
28770 do :
28771   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
28772 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
28773 eval as_val=\$$as_ac_Header
28774    if test "x$as_val" = x""yes; then :
28775   cat >>confdefs.h <<_ACEOF
28776 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
28777 _ACEOF
28778
28779 fi
28780
28781 done
28782
28783 for ac_func in prctl setreuid
28784 do :
28785   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
28786 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
28787 eval as_val=\$$as_ac_var
28788    if test "x$as_val" = x""yes; then :
28789   cat >>confdefs.h <<_ACEOF
28790 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
28791 _ACEOF
28792
28793 fi
28794 done
28795
28796 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cap_set_proc in -lcap" >&5
28797 $as_echo_n "checking for cap_set_proc in -lcap... " >&6; }
28798 if test "${ac_cv_lib_cap_cap_set_proc+set}" = set; then :
28799   $as_echo_n "(cached) " >&6
28800 else
28801   ac_check_lib_save_LIBS=$LIBS
28802 LIBS="-lcap  $LIBS"
28803 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28804 /* end confdefs.h.  */
28805
28806 /* Override any GCC internal prototype to avoid an error.
28807    Use char because int might match the return type of a GCC
28808    builtin and then its argument prototype would still apply.  */
28809 #ifdef __cplusplus
28810 extern "C"
28811 #endif
28812 char cap_set_proc ();
28813 int
28814 main ()
28815 {
28816 return cap_set_proc ();
28817   ;
28818   return 0;
28819 }
28820 _ACEOF
28821 if ac_fn_c_try_link "$LINENO"; then :
28822   ac_cv_lib_cap_cap_set_proc=yes
28823 else
28824   ac_cv_lib_cap_cap_set_proc=no
28825 fi
28826 rm -f core conftest.err conftest.$ac_objext \
28827     conftest$ac_exeext conftest.$ac_ext
28828 LIBS=$ac_check_lib_save_LIBS
28829 fi
28830 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_cap_cap_set_proc" >&5
28831 $as_echo "$ac_cv_lib_cap_cap_set_proc" >&6; }
28832 if test "x$ac_cv_lib_cap_cap_set_proc" = x""yes; then :
28833   CAP_LIBS="-lcap"
28834 else
28835   CAP_LIBS=
28836 fi
28837
28838 if test x$CAP_LIBS = x-lcap; then
28839
28840 $as_echo "#define HAVE_LIBCAP 1" >>confdefs.h
28841
28842 fi
28843
28844
28845
28846 $as_echo "#define FDLIBS 1" >>confdefs.h
28847
28848
28849 CFLAGS=${CFLAGS--O}
28850
28851 if test x$have_gcc = xyes ; then
28852    CPPFLAGS="$CPPFLAGS -fno-strict-aliasing -fno-exceptions -fno-rtti"
28853    CFLAGS="$CFLAGS -fno-strict-aliasing -fno-exceptions -fno-rtti"
28854 fi
28855 LDFLAGS=${LDFLAGS--O}
28856 DB_LIBS="${SQL_LFLAGS}"
28857 CPPFLAGS="$CPPFLAGS"
28858 CFLAGS="$CFLAGS"
28859
28860
28861
28862
28863
28864
28865
28866
28867
28868
28869
28870
28871
28872
28873
28874
28875 OBJLIST=
28876
28877
28878 lld="lld"
28879 llu="llu"
28880
28881 WCFLAGS=
28882 WLDFLAGS=
28883
28884 PFILES="platforms/Makefile"
28885 PSCMD="ps -e"
28886 WIN32=
28887 MACOSX=
28888
28889 hostname=`uname -n | cut -d '.' -f 1`
28890 if test x${hostname} = x ; then
28891    hostname="localhost"
28892 fi
28893 ping -c 1 $hostname 2>/dev/null 1>/dev/null
28894 if test ! $? = 0; then
28895   hostname="localhost"
28896 fi
28897
28898 case "$DISTNAME" in
28899 aix)
28900    DISTVER=`uname -r`
28901    PSCMD="ps -e -o pid,comm"
28902    PFILES="${PFILES} \
28903       platforms/aix/Makefile"
28904    TAPEDRIVE="/dev/rmt0.1"
28905   ;;
28906 alpha)
28907    DISTVER=`uname -r`
28908    PTHREAD_LIB="-lpthread -lexc"
28909    if test "${CC}" = "gcc" ; then
28910       lld="lld"
28911       llu="llu"
28912    else
28913       lld="ld"
28914       llu="lu"
28915    fi
28916    TAPEDRIVE="/dev/nrmt0"
28917   ;;
28918 bsdi)
28919    DISTVER=`uname -a |awk '{print $3}'`
28920    TAPEDRIVE="/dev/nrmt0"
28921    PTHREAD_LIB="-pthread"
28922    CFLAGS="${CFLAGS} -pthread"
28923    PSCMD="ps -ax -o pid,command"
28924    lld="qd"
28925    llu="qu"
28926    PFILES="${PFILES} \
28927        platforms/bsdi/Makefile \
28928        platforms/bsdi/bacula-fd \
28929        platforms/bsdi/bacula-sd \
28930        platforms/bsdi/bacula-dir"
28931    largefile_support="yes"
28932   ;;
28933 cygwin)
28934    DISTVER=`uname -a |awk '{print $3}'`
28935    TAPEDRIVE="/dev/nrst0"
28936    WIN32=win32
28937    WCFLAGS="-mwindows"
28938    WLDFLAGS="-mwindows"
28939   ;;
28940 darwin)
28941    DISTVER=`uname -r`
28942    TAPEDRIVE="/dev/nst0"
28943    PSCMD="ps -e -o pid,command"
28944    MACOSX=macosx
28945    PFILES="${PFILES} \
28946       platforms/darwin/Makefile"
28947   ;;
28948 osx)
28949    DISTVER=`uname -r`
28950    TAPEDRIVE="/dev/nst0"
28951    PSCMD="ps -e -o pid,command"
28952    MACOSX=macosx
28953    PFILES="${PFILES} \
28954       platforms/osx/Makefile"
28955   ;;
28956 debian)
28957    if `test -f /etc/apt/sources.list && grep -q ubuntu /etc/apt/sources.list`; then
28958       DISTNAME="ubuntu"
28959    fi
28960    DISTVER=`cat /etc/debian_version`
28961    if test -f /etc/lsb-release ; then
28962       . /etc/lsb-release
28963       if test "x$DISTRIB_ID" != "x" ; then
28964          DISTNAME=$DISTRIB_ID
28965       fi
28966       if test "x$DISTRIB_RELEASE" != "x" ; then
28967          DISTVER=$DISTRIB_RELEASE
28968       fi
28969    fi
28970    if test "$DISTNAME" = "Ubuntu" ; then
28971       DISTNAME="ubuntu"
28972    fi
28973    TAPEDRIVE="/dev/nst0"
28974    PSCMD="ps -e -o pid,command"
28975    if test "$DISTNAME" = "ubuntu" ; then
28976       PFILES="${PFILES} \
28977          platforms/ubuntu/Makefile \
28978          platforms/ubuntu/bacula-fd \
28979          platforms/ubuntu/bacula-sd \
28980          platforms/ubuntu/bacula-dir"
28981    else
28982       PFILES="${PFILES} \
28983          platforms/debian/Makefile \
28984          platforms/debian/bacula-fd \
28985          platforms/debian/bacula-sd \
28986          platforms/debian/bacula-dir"
28987    fi
28988   ;;
28989 freebsd)
28990    DISTVER=`uname -a |awk '{print $3}'`
28991    VER=`echo $DISTVER | cut -c 1`
28992    if test x$VER = x4 ; then
28993       PTHREAD_LIB="${PTHREAD_LIBS:--pthread}"
28994       CFLAGS="${CFLAGS} ${PTHREAD_CFLAGS:--pthread}"
28995    fi
28996    lld="qd"
28997    llu="qu"
28998    TAPEDRIVE="/dev/nrsa0"
28999    PSCMD="ps -ax -o pid,command"
29000    PFILES="${PFILES} \
29001        platforms/freebsd/Makefile \
29002        platforms/freebsd/bacula-fd \
29003        platforms/freebsd/bacula-sd \
29004        platforms/freebsd/bacula-dir"
29005    largefile_support="yes"
29006   ;;
29007 hpux)
29008    PSCMD="UNIX95=1; ps -e -o pid,comm"
29009    CFLAGS="${CFLAGS} -D_XOPEN_SOURCE_EXTENDED=1"
29010    DISTVER=`uname -r`
29011    TAPEDRIVE="/dev/rmt/0hnb"
29012    PTHREAD_LIB="-lpthread"
29013    $as_echo "#define _INCLUDE_LONGLONG 1" >>confdefs.h
29014
29015   ;;
29016 irix)
29017    DISTVER=`uname -r`
29018    TAPEDRIVE="/dev/rmt/0cbn"
29019    PSCMD="ps -e -o pid,comm"
29020    PFILES="${PFILES} \
29021        platforms/irix/Makefile \
29022        platforms/irix/bacula-fd \
29023        platforms/irix/bacula-sd \
29024        platforms/irix/bacula-dir"
29025   ;;
29026 netbsd)
29027    DISTVER=`uname -a |awk '{print $3}'`
29028    lld="qd"
29029    llu="qu"
29030    TAPEDRIVE="/dev/nrst0"
29031    PSCMD="ps -ax -o pid,command"
29032    PTHREAD_LIB="-pthread"
29033    CFLAGS="${CFLAGS} -pthread"
29034   ;;
29035 openbsd)
29036    DISTVER=`uname -a |awk '{print $3}'`
29037    lld="qd"
29038    llu="qu"
29039    TAPEDRIVE="/dev/nrst0"
29040    PSCMD="ps -ax -o pid,command"
29041    PTHREAD_LIB="-pthread"
29042    CFLAGS="${CFLAGS} -pthread"
29043    PFILES="${PFILES} \
29044        platforms/openbsd/Makefile \
29045        platforms/openbsd/bacula-fd \
29046        platforms/openbsd/bacula-sd \
29047        platforms/openbsd/bacula-dir"
29048   ;;
29049 redhat)
29050    if test -f /etc/whitebox-release ; then
29051       f=/etc/whitebox-release
29052    else
29053       f=/etc/redhat-release
29054    fi
29055    if test `cat $f | grep release |\
29056          cut -f 3 -d ' '`x = "Enterprise"x ; then
29057       DISTVER="Enterprise "`cat $f | grep release |\
29058           cut -f 6 -d ' '`
29059    else
29060        DISTVER=`cat /etc/redhat-release | grep release |\
29061            cut -f 5 -d ' '`
29062    fi
29063    TAPEDRIVE="/dev/nst0"
29064    PSCMD="ps -e -o pid,command"
29065    PFILES="${PFILES} \
29066        platforms/redhat/Makefile \
29067        platforms/redhat/bacula-fd \
29068        platforms/redhat/bacula-sd \
29069        platforms/redhat/bacula-dir
29070        "
29071   ;;
29072 mandrake)
29073    DISTVER=`cat /etc/mandrake-release | grep release |\
29074       cut -f 5 -d ' '`
29075    TAPEDRIVE="/dev/nst0"
29076    PSCMD="ps -e -o pid,command"
29077    PFILES="${PFILES} \
29078        platforms/mandrake/Makefile \
29079        platforms/mandrake/bacula-fd \
29080        platforms/mandrake/bacula-sd \
29081        platforms/mandrake/bacula-dir \
29082        "
29083   ;;
29084 gentoo)
29085    DISTVER=`awk '/version / {print $5}' < /etc/gentoo-release`
29086    TAPEDRIVE="/dev/nst0"
29087    PSCMD="ps -e -o pid,command"
29088    PFILES="${PFILES} \
29089        platforms/gentoo/Makefile \
29090     platforms/gentoo/bacula-init \
29091        platforms/gentoo/bacula-fd \
29092        platforms/gentoo/bacula-sd \
29093        platforms/gentoo/bacula-dir"
29094   ;;
29095 slackware)
29096    DISTVER=`cat /etc/slackware-version`
29097    TAPEDRIVE="/dev/nst0"
29098    PSCMD="ps -e -o pid,command"
29099    PFILES="${PFILES} \
29100        platforms/slackware/Makefile \
29101        platforms/slackware/rc.bacula-fd \
29102        platforms/slackware/rc.bacula-sd \
29103        platforms/slackware/rc.bacula-dir\
29104        platforms/slackware/functions.bacula"
29105   ;;
29106 solaris)
29107    DISTVER=`uname -r`
29108    TAPEDRIVE="/dev/rmt/0cbn"
29109    PSCMD="ps -e -o pid,comm"
29110    PFILES="${PFILES} \
29111        platforms/solaris/Makefile \
29112        platforms/solaris/bacula-fd \
29113        platforms/solaris/bacula-sd \
29114        platforms/solaris/bacula-dir"
29115    if test x$DISTVER = x5.6 ; then
29116        $as_echo "#define HAVE_OLD_SOCKOPT 1" >>confdefs.h
29117
29118    fi
29119    LIBS="$LIBS -lresolv -lrt"
29120   ;;
29121 suse)
29122    DISTVER=`cat /etc/SuSE-release |grep VERSION|\
29123        cut -f 3 -d ' '`
29124    TAPEDRIVE="/dev/nst0"
29125    PSCMD="ps -e -o pid,command"
29126    PFILES="${PFILES} \
29127        platforms/suse/Makefile \
29128        platforms/suse/bacula-fd \
29129        platforms/suse/bacula-sd \
29130        platforms/suse/bacula-dir"
29131   ;;
29132 suse5)
29133    DISTNAME=suse
29134    DISTVER=5.x
29135    TAPEDRIVE="/dev/nst0"
29136    PSCMD="ps -e -o pid,command"
29137    PFILES="${PFILES} \
29138        platforms/suse/Makefile \
29139        platforms/suse/bacula-fd \
29140        platforms/suse/bacula-sd \
29141        platforms/suse/bacula-dir"
29142   ;;
29143 unknown)
29144    DISTVER=unknown
29145    TAPEDRIVE="/dev/nst0"
29146   ;;
29147 *)
29148   echo " === Something went wrong. Unknown DISTNAME $DISTNAME ==="
29149   ;;
29150 esac
29151
29152
29153
29154 LIBS="$PTHREAD_LIB $LIBS"
29155
29156 cat >>confdefs.h <<_ACEOF
29157 #define lld "$lld"
29158 _ACEOF
29159
29160 cat >>confdefs.h <<_ACEOF
29161 #define llu "$llu"
29162 _ACEOF
29163
29164
29165
29166
29167
29168
29169
29170
29171 MCOMMON=./autoconf/Make.common
29172
29173
29174 if test "x${subsysdir}" = "x${sbindir}" ; then
29175    echo " "
29176    echo " "
29177    echo "You have set both --sbindir and --with-subsys-dir"
29178    echo "  equal to: ${subsysdir} "
29179    echo "This is not permitted. Please reconfigure."
29180    echo " "
29181    echo "Aborting configuration ..."
29182    echo " "
29183    echo " "
29184    exit 1
29185 fi
29186
29187 ac_config_files="$ac_config_files autoconf/Make.common Makefile manpages/Makefile scripts/startmysql scripts/stopmysql scripts/btraceback scripts/startit scripts/stopit scripts/bconsole scripts/gconsole 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/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_bdb_database src/cats/update_bdb_tables src/cats/make_bdb_tables src/cats/grant_bdb_privileges src/cats/drop_bdb_tables src/cats/drop_bdb_database 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 examples/nagios/check_bacula/Makefile $PFILES"
29188
29189 ac_config_commands="$ac_config_commands default"
29190
29191 cat >confcache <<\_ACEOF
29192 # This file is a shell script that caches the results of configure
29193 # tests run on this system so they can be shared between configure
29194 # scripts and configure runs, see configure's option --config-cache.
29195 # It is not useful on other systems.  If it contains results you don't
29196 # want to keep, you may remove or edit it.
29197 #
29198 # config.status only pays attention to the cache file if you give it
29199 # the --recheck option to rerun configure.
29200 #
29201 # `ac_cv_env_foo' variables (set or unset) will be overridden when
29202 # loading this file, other *unset* `ac_cv_foo' will be assigned the
29203 # following values.
29204
29205 _ACEOF
29206
29207 # The following way of writing the cache mishandles newlines in values,
29208 # but we know of no workaround that is simple, portable, and efficient.
29209 # So, we kill variables containing newlines.
29210 # Ultrix sh set writes to stderr and can't be redirected directly,
29211 # and sets the high bit in the cache file unless we assign to the vars.
29212 (
29213   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
29214     eval ac_val=\$$ac_var
29215     case $ac_val in #(
29216     *${as_nl}*)
29217       case $ac_var in #(
29218       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
29219 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
29220       esac
29221       case $ac_var in #(
29222       _ | IFS | as_nl) ;; #(
29223       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
29224       *) { eval $ac_var=; unset $ac_var;} ;;
29225       esac ;;
29226     esac
29227   done
29228
29229   (set) 2>&1 |
29230     case $as_nl`(ac_space=' '; set) 2>&1` in #(
29231     *${as_nl}ac_space=\ *)
29232       # `set' does not quote correctly, so add quotes: double-quote
29233       # substitution turns \\\\ into \\, and sed turns \\ into \.
29234       sed -n \
29235         "s/'/'\\\\''/g;
29236           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
29237       ;; #(
29238     *)
29239       # `set' quotes correctly as required by POSIX, so do not add quotes.
29240       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
29241       ;;
29242     esac |
29243     sort
29244 ) |
29245   sed '
29246      /^ac_cv_env_/b end
29247      t clear
29248      :clear
29249      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
29250      t end
29251      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
29252      :end' >>confcache
29253 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
29254   if test -w "$cache_file"; then
29255     test "x$cache_file" != "x/dev/null" &&
29256       { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
29257 $as_echo "$as_me: updating cache $cache_file" >&6;}
29258     cat confcache >$cache_file
29259   else
29260     { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
29261 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
29262   fi
29263 fi
29264 rm -f confcache
29265
29266 test "x$prefix" = xNONE && prefix=$ac_default_prefix
29267 # Let make expand exec_prefix.
29268 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
29269
29270 DEFS=-DHAVE_CONFIG_H
29271
29272 ac_libobjs=
29273 ac_ltlibobjs=
29274 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
29275   # 1. Remove the extension, and $U if already installed.
29276   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
29277   ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
29278   # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
29279   #    will be set to the directory where LIBOBJS objects are built.
29280   as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
29281   as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
29282 done
29283 LIBOBJS=$ac_libobjs
29284
29285 LTLIBOBJS=$ac_ltlibobjs
29286
29287
29288
29289 : ${CONFIG_STATUS=./config.status}
29290 ac_write_fail=0
29291 ac_clean_files_save=$ac_clean_files
29292 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
29293 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
29294 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
29295 as_write_fail=0
29296 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
29297 #! $SHELL
29298 # Generated by $as_me.
29299 # Run this file to recreate the current configuration.
29300 # Compiler output produced by configure, useful for debugging
29301 # configure, is in config.log if it exists.
29302
29303 debug=false
29304 ac_cs_recheck=false
29305 ac_cs_silent=false
29306
29307 SHELL=\${CONFIG_SHELL-$SHELL}
29308 export SHELL
29309 _ASEOF
29310 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
29311 ## -------------------- ##
29312 ## M4sh Initialization. ##
29313 ## -------------------- ##
29314
29315 # Be more Bourne compatible
29316 DUALCASE=1; export DUALCASE # for MKS sh
29317 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
29318   emulate sh
29319   NULLCMD=:
29320   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
29321   # is contrary to our usage.  Disable this feature.
29322   alias -g '${1+"$@"}'='"$@"'
29323   setopt NO_GLOB_SUBST
29324 else
29325   case `(set -o) 2>/dev/null` in #(
29326   *posix*) :
29327     set -o posix ;; #(
29328   *) :
29329      ;;
29330 esac
29331 fi
29332
29333
29334 as_nl='
29335 '
29336 export as_nl
29337 # Printing a long string crashes Solaris 7 /usr/bin/printf.
29338 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
29339 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
29340 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
29341 # Prefer a ksh shell builtin over an external printf program on Solaris,
29342 # but without wasting forks for bash or zsh.
29343 if test -z "$BASH_VERSION$ZSH_VERSION" \
29344     && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
29345   as_echo='print -r --'
29346   as_echo_n='print -rn --'
29347 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
29348   as_echo='printf %s\n'
29349   as_echo_n='printf %s'
29350 else
29351   if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
29352     as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
29353     as_echo_n='/usr/ucb/echo -n'
29354   else
29355     as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
29356     as_echo_n_body='eval
29357       arg=$1;
29358       case $arg in #(
29359       *"$as_nl"*)
29360         expr "X$arg" : "X\\(.*\\)$as_nl";
29361         arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
29362       esac;
29363       expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
29364     '
29365     export as_echo_n_body
29366     as_echo_n='sh -c $as_echo_n_body as_echo'
29367   fi
29368   export as_echo_body
29369   as_echo='sh -c $as_echo_body as_echo'
29370 fi
29371
29372 # The user is always right.
29373 if test "${PATH_SEPARATOR+set}" != set; then
29374   PATH_SEPARATOR=:
29375   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
29376     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
29377       PATH_SEPARATOR=';'
29378   }
29379 fi
29380
29381
29382 # IFS
29383 # We need space, tab and new line, in precisely that order.  Quoting is
29384 # there to prevent editors from complaining about space-tab.
29385 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
29386 # splitting by setting IFS to empty value.)
29387 IFS=" ""        $as_nl"
29388
29389 # Find who we are.  Look in the path if we contain no directory separator.
29390 case $0 in #((
29391   *[\\/]* ) as_myself=$0 ;;
29392   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29393 for as_dir in $PATH
29394 do
29395   IFS=$as_save_IFS
29396   test -z "$as_dir" && as_dir=.
29397     test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
29398   done
29399 IFS=$as_save_IFS
29400
29401      ;;
29402 esac
29403 # We did not find ourselves, most probably we were run as `sh COMMAND'
29404 # in which case we are not to be found in the path.
29405 if test "x$as_myself" = x; then
29406   as_myself=$0
29407 fi
29408 if test ! -f "$as_myself"; then
29409   $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
29410   exit 1
29411 fi
29412
29413 # Unset variables that we do not need and which cause bugs (e.g. in
29414 # pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
29415 # suppresses any "Segmentation fault" message there.  '((' could
29416 # trigger a bug in pdksh 5.2.14.
29417 for as_var in BASH_ENV ENV MAIL MAILPATH
29418 do eval test x\${$as_var+set} = xset \
29419   && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
29420 done
29421 PS1='$ '
29422 PS2='> '
29423 PS4='+ '
29424
29425 # NLS nuisances.
29426 LC_ALL=C
29427 export LC_ALL
29428 LANGUAGE=C
29429 export LANGUAGE
29430
29431 # CDPATH.
29432 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
29433
29434
29435 # as_fn_error ERROR [LINENO LOG_FD]
29436 # ---------------------------------
29437 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
29438 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
29439 # script with status $?, using 1 if that was 0.
29440 as_fn_error ()
29441 {
29442   as_status=$?; test $as_status -eq 0 && as_status=1
29443   if test "$3"; then
29444     as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
29445     $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
29446   fi
29447   $as_echo "$as_me: error: $1" >&2
29448   as_fn_exit $as_status
29449 } # as_fn_error
29450
29451
29452 # as_fn_set_status STATUS
29453 # -----------------------
29454 # Set $? to STATUS, without forking.
29455 as_fn_set_status ()
29456 {
29457   return $1
29458 } # as_fn_set_status
29459
29460 # as_fn_exit STATUS
29461 # -----------------
29462 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
29463 as_fn_exit ()
29464 {
29465   set +e
29466   as_fn_set_status $1
29467   exit $1
29468 } # as_fn_exit
29469
29470 # as_fn_unset VAR
29471 # ---------------
29472 # Portably unset VAR.
29473 as_fn_unset ()
29474 {
29475   { eval $1=; unset $1;}
29476 }
29477 as_unset=as_fn_unset
29478 # as_fn_append VAR VALUE
29479 # ----------------------
29480 # Append the text in VALUE to the end of the definition contained in VAR. Take
29481 # advantage of any shell optimizations that allow amortized linear growth over
29482 # repeated appends, instead of the typical quadratic growth present in naive
29483 # implementations.
29484 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
29485   eval 'as_fn_append ()
29486   {
29487     eval $1+=\$2
29488   }'
29489 else
29490   as_fn_append ()
29491   {
29492     eval $1=\$$1\$2
29493   }
29494 fi # as_fn_append
29495
29496 # as_fn_arith ARG...
29497 # ------------------
29498 # Perform arithmetic evaluation on the ARGs, and store the result in the
29499 # global $as_val. Take advantage of shells that can avoid forks. The arguments
29500 # must be portable across $(()) and expr.
29501 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
29502   eval 'as_fn_arith ()
29503   {
29504     as_val=$(( $* ))
29505   }'
29506 else
29507   as_fn_arith ()
29508   {
29509     as_val=`expr "$@" || test $? -eq 1`
29510   }
29511 fi # as_fn_arith
29512
29513
29514 if expr a : '\(a\)' >/dev/null 2>&1 &&
29515    test "X`expr 00001 : '.*\(...\)'`" = X001; then
29516   as_expr=expr
29517 else
29518   as_expr=false
29519 fi
29520
29521 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
29522   as_basename=basename
29523 else
29524   as_basename=false
29525 fi
29526
29527 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
29528   as_dirname=dirname
29529 else
29530   as_dirname=false
29531 fi
29532
29533 as_me=`$as_basename -- "$0" ||
29534 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
29535          X"$0" : 'X\(//\)$' \| \
29536          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
29537 $as_echo X/"$0" |
29538     sed '/^.*\/\([^/][^/]*\)\/*$/{
29539             s//\1/
29540             q
29541           }
29542           /^X\/\(\/\/\)$/{
29543             s//\1/
29544             q
29545           }
29546           /^X\/\(\/\).*/{
29547             s//\1/
29548             q
29549           }
29550           s/.*/./; q'`
29551
29552 # Avoid depending upon Character Ranges.
29553 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
29554 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
29555 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
29556 as_cr_digits='0123456789'
29557 as_cr_alnum=$as_cr_Letters$as_cr_digits
29558
29559 ECHO_C= ECHO_N= ECHO_T=
29560 case `echo -n x` in #(((((
29561 -n*)
29562   case `echo 'xy\c'` in
29563   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
29564   xy)  ECHO_C='\c';;
29565   *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
29566        ECHO_T=' ';;
29567   esac;;
29568 *)
29569   ECHO_N='-n';;
29570 esac
29571
29572 rm -f conf$$ conf$$.exe conf$$.file
29573 if test -d conf$$.dir; then
29574   rm -f conf$$.dir/conf$$.file
29575 else
29576   rm -f conf$$.dir
29577   mkdir conf$$.dir 2>/dev/null
29578 fi
29579 if (echo >conf$$.file) 2>/dev/null; then
29580   if ln -s conf$$.file conf$$ 2>/dev/null; then
29581     as_ln_s='ln -s'
29582     # ... but there are two gotchas:
29583     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
29584     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
29585     # In both cases, we have to default to `cp -p'.
29586     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
29587       as_ln_s='cp -p'
29588   elif ln conf$$.file conf$$ 2>/dev/null; then
29589     as_ln_s=ln
29590   else
29591     as_ln_s='cp -p'
29592   fi
29593 else
29594   as_ln_s='cp -p'
29595 fi
29596 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
29597 rmdir conf$$.dir 2>/dev/null
29598
29599
29600 # as_fn_mkdir_p
29601 # -------------
29602 # Create "$as_dir" as a directory, including parents if necessary.
29603 as_fn_mkdir_p ()
29604 {
29605
29606   case $as_dir in #(
29607   -*) as_dir=./$as_dir;;
29608   esac
29609   test -d "$as_dir" || eval $as_mkdir_p || {
29610     as_dirs=
29611     while :; do
29612       case $as_dir in #(
29613       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
29614       *) as_qdir=$as_dir;;
29615       esac
29616       as_dirs="'$as_qdir' $as_dirs"
29617       as_dir=`$as_dirname -- "$as_dir" ||
29618 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
29619          X"$as_dir" : 'X\(//\)[^/]' \| \
29620          X"$as_dir" : 'X\(//\)$' \| \
29621          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
29622 $as_echo X"$as_dir" |
29623     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
29624             s//\1/
29625             q
29626           }
29627           /^X\(\/\/\)[^/].*/{
29628             s//\1/
29629             q
29630           }
29631           /^X\(\/\/\)$/{
29632             s//\1/
29633             q
29634           }
29635           /^X\(\/\).*/{
29636             s//\1/
29637             q
29638           }
29639           s/.*/./; q'`
29640       test -d "$as_dir" && break
29641     done
29642     test -z "$as_dirs" || eval "mkdir $as_dirs"
29643   } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
29644
29645
29646 } # as_fn_mkdir_p
29647 if mkdir -p . 2>/dev/null; then
29648   as_mkdir_p='mkdir -p "$as_dir"'
29649 else
29650   test -d ./-p && rmdir ./-p
29651   as_mkdir_p=false
29652 fi
29653
29654 if test -x / >/dev/null 2>&1; then
29655   as_test_x='test -x'
29656 else
29657   if ls -dL / >/dev/null 2>&1; then
29658     as_ls_L_option=L
29659   else
29660     as_ls_L_option=
29661   fi
29662   as_test_x='
29663     eval sh -c '\''
29664       if test -d "$1"; then
29665         test -d "$1/.";
29666       else
29667         case $1 in #(
29668         -*)set "./$1";;
29669         esac;
29670         case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
29671         ???[sx]*):;;*)false;;esac;fi
29672     '\'' sh
29673   '
29674 fi
29675 as_executable_p=$as_test_x
29676
29677 # Sed expression to map a string onto a valid CPP name.
29678 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
29679
29680 # Sed expression to map a string onto a valid variable name.
29681 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
29682
29683
29684 exec 6>&1
29685 ## ----------------------------------- ##
29686 ## Main body of $CONFIG_STATUS script. ##
29687 ## ----------------------------------- ##
29688 _ASEOF
29689 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
29690
29691 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
29692 # Save the log message, to keep $0 and so on meaningful, and to
29693 # report actual input values of CONFIG_FILES etc. instead of their
29694 # values after options handling.
29695 ac_log="
29696 This file was extended by $as_me, which was
29697 generated by GNU Autoconf 2.65.  Invocation command line was
29698
29699   CONFIG_FILES    = $CONFIG_FILES
29700   CONFIG_HEADERS  = $CONFIG_HEADERS
29701   CONFIG_LINKS    = $CONFIG_LINKS
29702   CONFIG_COMMANDS = $CONFIG_COMMANDS
29703   $ $0 $@
29704
29705 on `(hostname || uname -n) 2>/dev/null | sed 1q`
29706 "
29707
29708 _ACEOF
29709
29710 case $ac_config_files in *"
29711 "*) set x $ac_config_files; shift; ac_config_files=$*;;
29712 esac
29713
29714 case $ac_config_headers in *"
29715 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
29716 esac
29717
29718
29719 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
29720 # Files that config.status was made for.
29721 config_files="$ac_config_files"
29722 config_headers="$ac_config_headers"
29723 config_commands="$ac_config_commands"
29724
29725 _ACEOF
29726
29727 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
29728 ac_cs_usage="\
29729 \`$as_me' instantiates files and other configuration actions
29730 from templates according to the current configuration.  Unless the files
29731 and actions are specified as TAGs, all are instantiated by default.
29732
29733 Usage: $0 [OPTION]... [TAG]...
29734
29735   -h, --help       print this help, then exit
29736   -V, --version    print version number and configuration settings, then exit
29737       --config     print configuration, then exit
29738   -q, --quiet, --silent
29739                    do not print progress messages
29740   -d, --debug      don't remove temporary files
29741       --recheck    update $as_me by reconfiguring in the same conditions
29742       --file=FILE[:TEMPLATE]
29743                    instantiate the configuration file FILE
29744       --header=FILE[:TEMPLATE]
29745                    instantiate the configuration header FILE
29746
29747 Configuration files:
29748 $config_files
29749
29750 Configuration headers:
29751 $config_headers
29752
29753 Configuration commands:
29754 $config_commands
29755
29756 Report bugs to the package provider."
29757
29758 _ACEOF
29759 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
29760 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
29761 ac_cs_version="\\
29762 config.status
29763 configured by $0, generated by GNU Autoconf 2.65,
29764   with options \\"\$ac_cs_config\\"
29765
29766 Copyright (C) 2009 Free Software Foundation, Inc.
29767 This config.status script is free software; the Free Software Foundation
29768 gives unlimited permission to copy, distribute and modify it."
29769
29770 ac_pwd='$ac_pwd'
29771 srcdir='$srcdir'
29772 INSTALL='$INSTALL'
29773 AWK='$AWK'
29774 test -n "\$AWK" || AWK=awk
29775 _ACEOF
29776
29777 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
29778 # The default lists apply if the user does not specify any file.
29779 ac_need_defaults=:
29780 while test $# != 0
29781 do
29782   case $1 in
29783   --*=*)
29784     ac_option=`expr "X$1" : 'X\([^=]*\)='`
29785     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
29786     ac_shift=:
29787     ;;
29788   *)
29789     ac_option=$1
29790     ac_optarg=$2
29791     ac_shift=shift
29792     ;;
29793   esac
29794
29795   case $ac_option in
29796   # Handling of the options.
29797   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
29798     ac_cs_recheck=: ;;
29799   --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
29800     $as_echo "$ac_cs_version"; exit ;;
29801   --config | --confi | --conf | --con | --co | --c )
29802     $as_echo "$ac_cs_config"; exit ;;
29803   --debug | --debu | --deb | --de | --d | -d )
29804     debug=: ;;
29805   --file | --fil | --fi | --f )
29806     $ac_shift
29807     case $ac_optarg in
29808     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
29809     esac
29810     as_fn_append CONFIG_FILES " '$ac_optarg'"
29811     ac_need_defaults=false;;
29812   --header | --heade | --head | --hea )
29813     $ac_shift
29814     case $ac_optarg in
29815     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
29816     esac
29817     as_fn_append CONFIG_HEADERS " '$ac_optarg'"
29818     ac_need_defaults=false;;
29819   --he | --h)
29820     # Conflict between --help and --header
29821     as_fn_error "ambiguous option: \`$1'
29822 Try \`$0 --help' for more information.";;
29823   --help | --hel | -h )
29824     $as_echo "$ac_cs_usage"; exit ;;
29825   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
29826   | -silent | --silent | --silen | --sile | --sil | --si | --s)
29827     ac_cs_silent=: ;;
29828
29829   # This is an error.
29830   -*) as_fn_error "unrecognized option: \`$1'
29831 Try \`$0 --help' for more information." ;;
29832
29833   *) as_fn_append ac_config_targets " $1"
29834      ac_need_defaults=false ;;
29835
29836   esac
29837   shift
29838 done
29839
29840 ac_configure_extra_args=
29841
29842 if $ac_cs_silent; then
29843   exec 6>/dev/null
29844   ac_configure_extra_args="$ac_configure_extra_args --silent"
29845 fi
29846
29847 _ACEOF
29848 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
29849 if \$ac_cs_recheck; then
29850   set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
29851   shift
29852   \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
29853   CONFIG_SHELL='$SHELL'
29854   export CONFIG_SHELL
29855   exec "\$@"
29856 fi
29857
29858 _ACEOF
29859 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
29860 exec 5>>config.log
29861 {
29862   echo
29863   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
29864 ## Running $as_me. ##
29865 _ASBOX
29866   $as_echo "$ac_log"
29867 } >&5
29868
29869 _ACEOF
29870 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
29871 #
29872 # INIT-COMMANDS
29873 #
29874
29875
29876 # The HP-UX ksh and POSIX shell print the target directory to stdout
29877 # if CDPATH is set.
29878 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
29879
29880 sed_quote_subst='$sed_quote_subst'
29881 double_quote_subst='$double_quote_subst'
29882 delay_variable_subst='$delay_variable_subst'
29883 macro_version='`$ECHO "X$macro_version" | $Xsed -e "$delay_single_quote_subst"`'
29884 macro_revision='`$ECHO "X$macro_revision" | $Xsed -e "$delay_single_quote_subst"`'
29885 enable_shared='`$ECHO "X$enable_shared" | $Xsed -e "$delay_single_quote_subst"`'
29886 enable_static='`$ECHO "X$enable_static" | $Xsed -e "$delay_single_quote_subst"`'
29887 pic_mode='`$ECHO "X$pic_mode" | $Xsed -e "$delay_single_quote_subst"`'
29888 enable_fast_install='`$ECHO "X$enable_fast_install" | $Xsed -e "$delay_single_quote_subst"`'
29889 host_alias='`$ECHO "X$host_alias" | $Xsed -e "$delay_single_quote_subst"`'
29890 host='`$ECHO "X$host" | $Xsed -e "$delay_single_quote_subst"`'
29891 host_os='`$ECHO "X$host_os" | $Xsed -e "$delay_single_quote_subst"`'
29892 build_alias='`$ECHO "X$build_alias" | $Xsed -e "$delay_single_quote_subst"`'
29893 build='`$ECHO "X$build" | $Xsed -e "$delay_single_quote_subst"`'
29894 build_os='`$ECHO "X$build_os" | $Xsed -e "$delay_single_quote_subst"`'
29895 SED='`$ECHO "X$SED" | $Xsed -e "$delay_single_quote_subst"`'
29896 Xsed='`$ECHO "X$Xsed" | $Xsed -e "$delay_single_quote_subst"`'
29897 GREP='`$ECHO "X$GREP" | $Xsed -e "$delay_single_quote_subst"`'
29898 EGREP='`$ECHO "X$EGREP" | $Xsed -e "$delay_single_quote_subst"`'
29899 FGREP='`$ECHO "X$FGREP" | $Xsed -e "$delay_single_quote_subst"`'
29900 LD='`$ECHO "X$LD" | $Xsed -e "$delay_single_quote_subst"`'
29901 NM='`$ECHO "X$NM" | $Xsed -e "$delay_single_quote_subst"`'
29902 LN_S='`$ECHO "X$LN_S" | $Xsed -e "$delay_single_quote_subst"`'
29903 max_cmd_len='`$ECHO "X$max_cmd_len" | $Xsed -e "$delay_single_quote_subst"`'
29904 ac_objext='`$ECHO "X$ac_objext" | $Xsed -e "$delay_single_quote_subst"`'
29905 exeext='`$ECHO "X$exeext" | $Xsed -e "$delay_single_quote_subst"`'
29906 lt_unset='`$ECHO "X$lt_unset" | $Xsed -e "$delay_single_quote_subst"`'
29907 lt_SP2NL='`$ECHO "X$lt_SP2NL" | $Xsed -e "$delay_single_quote_subst"`'
29908 lt_NL2SP='`$ECHO "X$lt_NL2SP" | $Xsed -e "$delay_single_quote_subst"`'
29909 reload_flag='`$ECHO "X$reload_flag" | $Xsed -e "$delay_single_quote_subst"`'
29910 reload_cmds='`$ECHO "X$reload_cmds" | $Xsed -e "$delay_single_quote_subst"`'
29911 OBJDUMP='`$ECHO "X$OBJDUMP" | $Xsed -e "$delay_single_quote_subst"`'
29912 deplibs_check_method='`$ECHO "X$deplibs_check_method" | $Xsed -e "$delay_single_quote_subst"`'
29913 file_magic_cmd='`$ECHO "X$file_magic_cmd" | $Xsed -e "$delay_single_quote_subst"`'
29914 AR='`$ECHO "X$AR" | $Xsed -e "$delay_single_quote_subst"`'
29915 AR_FLAGS='`$ECHO "X$AR_FLAGS" | $Xsed -e "$delay_single_quote_subst"`'
29916 STRIP='`$ECHO "X$STRIP" | $Xsed -e "$delay_single_quote_subst"`'
29917 RANLIB='`$ECHO "X$RANLIB" | $Xsed -e "$delay_single_quote_subst"`'
29918 old_postinstall_cmds='`$ECHO "X$old_postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
29919 old_postuninstall_cmds='`$ECHO "X$old_postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
29920 old_archive_cmds='`$ECHO "X$old_archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
29921 CC='`$ECHO "X$CC" | $Xsed -e "$delay_single_quote_subst"`'
29922 CFLAGS='`$ECHO "X$CFLAGS" | $Xsed -e "$delay_single_quote_subst"`'
29923 compiler='`$ECHO "X$compiler" | $Xsed -e "$delay_single_quote_subst"`'
29924 GCC='`$ECHO "X$GCC" | $Xsed -e "$delay_single_quote_subst"`'
29925 lt_cv_sys_global_symbol_pipe='`$ECHO "X$lt_cv_sys_global_symbol_pipe" | $Xsed -e "$delay_single_quote_subst"`'
29926 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "X$lt_cv_sys_global_symbol_to_cdecl" | $Xsed -e "$delay_single_quote_subst"`'
29927 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"`'
29928 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"`'
29929 objdir='`$ECHO "X$objdir" | $Xsed -e "$delay_single_quote_subst"`'
29930 SHELL='`$ECHO "X$SHELL" | $Xsed -e "$delay_single_quote_subst"`'
29931 ECHO='`$ECHO "X$ECHO" | $Xsed -e "$delay_single_quote_subst"`'
29932 MAGIC_CMD='`$ECHO "X$MAGIC_CMD" | $Xsed -e "$delay_single_quote_subst"`'
29933 lt_prog_compiler_no_builtin_flag='`$ECHO "X$lt_prog_compiler_no_builtin_flag" | $Xsed -e "$delay_single_quote_subst"`'
29934 lt_prog_compiler_wl='`$ECHO "X$lt_prog_compiler_wl" | $Xsed -e "$delay_single_quote_subst"`'
29935 lt_prog_compiler_pic='`$ECHO "X$lt_prog_compiler_pic" | $Xsed -e "$delay_single_quote_subst"`'
29936 lt_prog_compiler_static='`$ECHO "X$lt_prog_compiler_static" | $Xsed -e "$delay_single_quote_subst"`'
29937 lt_cv_prog_compiler_c_o='`$ECHO "X$lt_cv_prog_compiler_c_o" | $Xsed -e "$delay_single_quote_subst"`'
29938 need_locks='`$ECHO "X$need_locks" | $Xsed -e "$delay_single_quote_subst"`'
29939 DSYMUTIL='`$ECHO "X$DSYMUTIL" | $Xsed -e "$delay_single_quote_subst"`'
29940 NMEDIT='`$ECHO "X$NMEDIT" | $Xsed -e "$delay_single_quote_subst"`'
29941 LIPO='`$ECHO "X$LIPO" | $Xsed -e "$delay_single_quote_subst"`'
29942 OTOOL='`$ECHO "X$OTOOL" | $Xsed -e "$delay_single_quote_subst"`'
29943 OTOOL64='`$ECHO "X$OTOOL64" | $Xsed -e "$delay_single_quote_subst"`'
29944 libext='`$ECHO "X$libext" | $Xsed -e "$delay_single_quote_subst"`'
29945 shrext_cmds='`$ECHO "X$shrext_cmds" | $Xsed -e "$delay_single_quote_subst"`'
29946 extract_expsyms_cmds='`$ECHO "X$extract_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
29947 archive_cmds_need_lc='`$ECHO "X$archive_cmds_need_lc" | $Xsed -e "$delay_single_quote_subst"`'
29948 enable_shared_with_static_runtimes='`$ECHO "X$enable_shared_with_static_runtimes" | $Xsed -e "$delay_single_quote_subst"`'
29949 export_dynamic_flag_spec='`$ECHO "X$export_dynamic_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
29950 whole_archive_flag_spec='`$ECHO "X$whole_archive_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
29951 compiler_needs_object='`$ECHO "X$compiler_needs_object" | $Xsed -e "$delay_single_quote_subst"`'
29952 old_archive_from_new_cmds='`$ECHO "X$old_archive_from_new_cmds" | $Xsed -e "$delay_single_quote_subst"`'
29953 old_archive_from_expsyms_cmds='`$ECHO "X$old_archive_from_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
29954 archive_cmds='`$ECHO "X$archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
29955 archive_expsym_cmds='`$ECHO "X$archive_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
29956 module_cmds='`$ECHO "X$module_cmds" | $Xsed -e "$delay_single_quote_subst"`'
29957 module_expsym_cmds='`$ECHO "X$module_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
29958 with_gnu_ld='`$ECHO "X$with_gnu_ld" | $Xsed -e "$delay_single_quote_subst"`'
29959 allow_undefined_flag='`$ECHO "X$allow_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
29960 no_undefined_flag='`$ECHO "X$no_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
29961 hardcode_libdir_flag_spec='`$ECHO "X$hardcode_libdir_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
29962 hardcode_libdir_flag_spec_ld='`$ECHO "X$hardcode_libdir_flag_spec_ld" | $Xsed -e "$delay_single_quote_subst"`'
29963 hardcode_libdir_separator='`$ECHO "X$hardcode_libdir_separator" | $Xsed -e "$delay_single_quote_subst"`'
29964 hardcode_direct='`$ECHO "X$hardcode_direct" | $Xsed -e "$delay_single_quote_subst"`'
29965 hardcode_direct_absolute='`$ECHO "X$hardcode_direct_absolute" | $Xsed -e "$delay_single_quote_subst"`'
29966 hardcode_minus_L='`$ECHO "X$hardcode_minus_L" | $Xsed -e "$delay_single_quote_subst"`'
29967 hardcode_shlibpath_var='`$ECHO "X$hardcode_shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
29968 hardcode_automatic='`$ECHO "X$hardcode_automatic" | $Xsed -e "$delay_single_quote_subst"`'
29969 inherit_rpath='`$ECHO "X$inherit_rpath" | $Xsed -e "$delay_single_quote_subst"`'
29970 link_all_deplibs='`$ECHO "X$link_all_deplibs" | $Xsed -e "$delay_single_quote_subst"`'
29971 fix_srcfile_path='`$ECHO "X$fix_srcfile_path" | $Xsed -e "$delay_single_quote_subst"`'
29972 always_export_symbols='`$ECHO "X$always_export_symbols" | $Xsed -e "$delay_single_quote_subst"`'
29973 export_symbols_cmds='`$ECHO "X$export_symbols_cmds" | $Xsed -e "$delay_single_quote_subst"`'
29974 exclude_expsyms='`$ECHO "X$exclude_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
29975 include_expsyms='`$ECHO "X$include_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
29976 prelink_cmds='`$ECHO "X$prelink_cmds" | $Xsed -e "$delay_single_quote_subst"`'
29977 file_list_spec='`$ECHO "X$file_list_spec" | $Xsed -e "$delay_single_quote_subst"`'
29978 variables_saved_for_relink='`$ECHO "X$variables_saved_for_relink" | $Xsed -e "$delay_single_quote_subst"`'
29979 need_lib_prefix='`$ECHO "X$need_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`'
29980 need_version='`$ECHO "X$need_version" | $Xsed -e "$delay_single_quote_subst"`'
29981 version_type='`$ECHO "X$version_type" | $Xsed -e "$delay_single_quote_subst"`'
29982 runpath_var='`$ECHO "X$runpath_var" | $Xsed -e "$delay_single_quote_subst"`'
29983 shlibpath_var='`$ECHO "X$shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
29984 shlibpath_overrides_runpath='`$ECHO "X$shlibpath_overrides_runpath" | $Xsed -e "$delay_single_quote_subst"`'
29985 libname_spec='`$ECHO "X$libname_spec" | $Xsed -e "$delay_single_quote_subst"`'
29986 library_names_spec='`$ECHO "X$library_names_spec" | $Xsed -e "$delay_single_quote_subst"`'
29987 soname_spec='`$ECHO "X$soname_spec" | $Xsed -e "$delay_single_quote_subst"`'
29988 postinstall_cmds='`$ECHO "X$postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
29989 postuninstall_cmds='`$ECHO "X$postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
29990 finish_cmds='`$ECHO "X$finish_cmds" | $Xsed -e "$delay_single_quote_subst"`'
29991 finish_eval='`$ECHO "X$finish_eval" | $Xsed -e "$delay_single_quote_subst"`'
29992 hardcode_into_libs='`$ECHO "X$hardcode_into_libs" | $Xsed -e "$delay_single_quote_subst"`'
29993 sys_lib_search_path_spec='`$ECHO "X$sys_lib_search_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
29994 sys_lib_dlsearch_path_spec='`$ECHO "X$sys_lib_dlsearch_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
29995 hardcode_action='`$ECHO "X$hardcode_action" | $Xsed -e "$delay_single_quote_subst"`'
29996 enable_dlopen='`$ECHO "X$enable_dlopen" | $Xsed -e "$delay_single_quote_subst"`'
29997 enable_dlopen_self='`$ECHO "X$enable_dlopen_self" | $Xsed -e "$delay_single_quote_subst"`'
29998 enable_dlopen_self_static='`$ECHO "X$enable_dlopen_self_static" | $Xsed -e "$delay_single_quote_subst"`'
29999 old_striplib='`$ECHO "X$old_striplib" | $Xsed -e "$delay_single_quote_subst"`'
30000 striplib='`$ECHO "X$striplib" | $Xsed -e "$delay_single_quote_subst"`'
30001 compiler_lib_search_dirs='`$ECHO "X$compiler_lib_search_dirs" | $Xsed -e "$delay_single_quote_subst"`'
30002 predep_objects='`$ECHO "X$predep_objects" | $Xsed -e "$delay_single_quote_subst"`'
30003 postdep_objects='`$ECHO "X$postdep_objects" | $Xsed -e "$delay_single_quote_subst"`'
30004 predeps='`$ECHO "X$predeps" | $Xsed -e "$delay_single_quote_subst"`'
30005 postdeps='`$ECHO "X$postdeps" | $Xsed -e "$delay_single_quote_subst"`'
30006 compiler_lib_search_path='`$ECHO "X$compiler_lib_search_path" | $Xsed -e "$delay_single_quote_subst"`'
30007 LD_CXX='`$ECHO "X$LD_CXX" | $Xsed -e "$delay_single_quote_subst"`'
30008 old_archive_cmds_CXX='`$ECHO "X$old_archive_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
30009 compiler_CXX='`$ECHO "X$compiler_CXX" | $Xsed -e "$delay_single_quote_subst"`'
30010 GCC_CXX='`$ECHO "X$GCC_CXX" | $Xsed -e "$delay_single_quote_subst"`'
30011 lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "X$lt_prog_compiler_no_builtin_flag_CXX" | $Xsed -e "$delay_single_quote_subst"`'
30012 lt_prog_compiler_wl_CXX='`$ECHO "X$lt_prog_compiler_wl_CXX" | $Xsed -e "$delay_single_quote_subst"`'
30013 lt_prog_compiler_pic_CXX='`$ECHO "X$lt_prog_compiler_pic_CXX" | $Xsed -e "$delay_single_quote_subst"`'
30014 lt_prog_compiler_static_CXX='`$ECHO "X$lt_prog_compiler_static_CXX" | $Xsed -e "$delay_single_quote_subst"`'
30015 lt_cv_prog_compiler_c_o_CXX='`$ECHO "X$lt_cv_prog_compiler_c_o_CXX" | $Xsed -e "$delay_single_quote_subst"`'
30016 archive_cmds_need_lc_CXX='`$ECHO "X$archive_cmds_need_lc_CXX" | $Xsed -e "$delay_single_quote_subst"`'
30017 enable_shared_with_static_runtimes_CXX='`$ECHO "X$enable_shared_with_static_runtimes_CXX" | $Xsed -e "$delay_single_quote_subst"`'
30018 export_dynamic_flag_spec_CXX='`$ECHO "X$export_dynamic_flag_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
30019 whole_archive_flag_spec_CXX='`$ECHO "X$whole_archive_flag_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
30020 compiler_needs_object_CXX='`$ECHO "X$compiler_needs_object_CXX" | $Xsed -e "$delay_single_quote_subst"`'
30021 old_archive_from_new_cmds_CXX='`$ECHO "X$old_archive_from_new_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
30022 old_archive_from_expsyms_cmds_CXX='`$ECHO "X$old_archive_from_expsyms_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
30023 archive_cmds_CXX='`$ECHO "X$archive_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
30024 archive_expsym_cmds_CXX='`$ECHO "X$archive_expsym_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
30025 module_cmds_CXX='`$ECHO "X$module_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
30026 module_expsym_cmds_CXX='`$ECHO "X$module_expsym_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
30027 with_gnu_ld_CXX='`$ECHO "X$with_gnu_ld_CXX" | $Xsed -e "$delay_single_quote_subst"`'
30028 allow_undefined_flag_CXX='`$ECHO "X$allow_undefined_flag_CXX" | $Xsed -e "$delay_single_quote_subst"`'
30029 no_undefined_flag_CXX='`$ECHO "X$no_undefined_flag_CXX" | $Xsed -e "$delay_single_quote_subst"`'
30030 hardcode_libdir_flag_spec_CXX='`$ECHO "X$hardcode_libdir_flag_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
30031 hardcode_libdir_flag_spec_ld_CXX='`$ECHO "X$hardcode_libdir_flag_spec_ld_CXX" | $Xsed -e "$delay_single_quote_subst"`'
30032 hardcode_libdir_separator_CXX='`$ECHO "X$hardcode_libdir_separator_CXX" | $Xsed -e "$delay_single_quote_subst"`'
30033 hardcode_direct_CXX='`$ECHO "X$hardcode_direct_CXX" | $Xsed -e "$delay_single_quote_subst"`'
30034 hardcode_direct_absolute_CXX='`$ECHO "X$hardcode_direct_absolute_CXX" | $Xsed -e "$delay_single_quote_subst"`'
30035 hardcode_minus_L_CXX='`$ECHO "X$hardcode_minus_L_CXX" | $Xsed -e "$delay_single_quote_subst"`'
30036 hardcode_shlibpath_var_CXX='`$ECHO "X$hardcode_shlibpath_var_CXX" | $Xsed -e "$delay_single_quote_subst"`'
30037 hardcode_automatic_CXX='`$ECHO "X$hardcode_automatic_CXX" | $Xsed -e "$delay_single_quote_subst"`'
30038 inherit_rpath_CXX='`$ECHO "X$inherit_rpath_CXX" | $Xsed -e "$delay_single_quote_subst"`'
30039 link_all_deplibs_CXX='`$ECHO "X$link_all_deplibs_CXX" | $Xsed -e "$delay_single_quote_subst"`'
30040 fix_srcfile_path_CXX='`$ECHO "X$fix_srcfile_path_CXX" | $Xsed -e "$delay_single_quote_subst"`'
30041 always_export_symbols_CXX='`$ECHO "X$always_export_symbols_CXX" | $Xsed -e "$delay_single_quote_subst"`'
30042 export_symbols_cmds_CXX='`$ECHO "X$export_symbols_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
30043 exclude_expsyms_CXX='`$ECHO "X$exclude_expsyms_CXX" | $Xsed -e "$delay_single_quote_subst"`'
30044 include_expsyms_CXX='`$ECHO "X$include_expsyms_CXX" | $Xsed -e "$delay_single_quote_subst"`'
30045 prelink_cmds_CXX='`$ECHO "X$prelink_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
30046 file_list_spec_CXX='`$ECHO "X$file_list_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
30047 hardcode_action_CXX='`$ECHO "X$hardcode_action_CXX" | $Xsed -e "$delay_single_quote_subst"`'
30048 compiler_lib_search_dirs_CXX='`$ECHO "X$compiler_lib_search_dirs_CXX" | $Xsed -e "$delay_single_quote_subst"`'
30049 predep_objects_CXX='`$ECHO "X$predep_objects_CXX" | $Xsed -e "$delay_single_quote_subst"`'
30050 postdep_objects_CXX='`$ECHO "X$postdep_objects_CXX" | $Xsed -e "$delay_single_quote_subst"`'
30051 predeps_CXX='`$ECHO "X$predeps_CXX" | $Xsed -e "$delay_single_quote_subst"`'
30052 postdeps_CXX='`$ECHO "X$postdeps_CXX" | $Xsed -e "$delay_single_quote_subst"`'
30053 compiler_lib_search_path_CXX='`$ECHO "X$compiler_lib_search_path_CXX" | $Xsed -e "$delay_single_quote_subst"`'
30054
30055 LTCC='$LTCC'
30056 LTCFLAGS='$LTCFLAGS'
30057 compiler='$compiler_DEFAULT'
30058
30059 # Quote evaled strings.
30060 for var in SED \
30061 GREP \
30062 EGREP \
30063 FGREP \
30064 LD \
30065 NM \
30066 LN_S \
30067 lt_SP2NL \
30068 lt_NL2SP \
30069 reload_flag \
30070 OBJDUMP \
30071 deplibs_check_method \
30072 file_magic_cmd \
30073 AR \
30074 AR_FLAGS \
30075 STRIP \
30076 RANLIB \
30077 CC \
30078 CFLAGS \
30079 compiler \
30080 lt_cv_sys_global_symbol_pipe \
30081 lt_cv_sys_global_symbol_to_cdecl \
30082 lt_cv_sys_global_symbol_to_c_name_address \
30083 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
30084 SHELL \
30085 ECHO \
30086 lt_prog_compiler_no_builtin_flag \
30087 lt_prog_compiler_wl \
30088 lt_prog_compiler_pic \
30089 lt_prog_compiler_static \
30090 lt_cv_prog_compiler_c_o \
30091 need_locks \
30092 DSYMUTIL \
30093 NMEDIT \
30094 LIPO \
30095 OTOOL \
30096 OTOOL64 \
30097 shrext_cmds \
30098 export_dynamic_flag_spec \
30099 whole_archive_flag_spec \
30100 compiler_needs_object \
30101 with_gnu_ld \
30102 allow_undefined_flag \
30103 no_undefined_flag \
30104 hardcode_libdir_flag_spec \
30105 hardcode_libdir_flag_spec_ld \
30106 hardcode_libdir_separator \
30107 fix_srcfile_path \
30108 exclude_expsyms \
30109 include_expsyms \
30110 file_list_spec \
30111 variables_saved_for_relink \
30112 libname_spec \
30113 library_names_spec \
30114 soname_spec \
30115 finish_eval \
30116 old_striplib \
30117 striplib \
30118 compiler_lib_search_dirs \
30119 predep_objects \
30120 postdep_objects \
30121 predeps \
30122 postdeps \
30123 compiler_lib_search_path \
30124 LD_CXX \
30125 compiler_CXX \
30126 lt_prog_compiler_no_builtin_flag_CXX \
30127 lt_prog_compiler_wl_CXX \
30128 lt_prog_compiler_pic_CXX \
30129 lt_prog_compiler_static_CXX \
30130 lt_cv_prog_compiler_c_o_CXX \
30131 export_dynamic_flag_spec_CXX \
30132 whole_archive_flag_spec_CXX \
30133 compiler_needs_object_CXX \
30134 with_gnu_ld_CXX \
30135 allow_undefined_flag_CXX \
30136 no_undefined_flag_CXX \
30137 hardcode_libdir_flag_spec_CXX \
30138 hardcode_libdir_flag_spec_ld_CXX \
30139 hardcode_libdir_separator_CXX \
30140 fix_srcfile_path_CXX \
30141 exclude_expsyms_CXX \
30142 include_expsyms_CXX \
30143 file_list_spec_CXX \
30144 compiler_lib_search_dirs_CXX \
30145 predep_objects_CXX \
30146 postdep_objects_CXX \
30147 predeps_CXX \
30148 postdeps_CXX \
30149 compiler_lib_search_path_CXX; do
30150     case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
30151     *[\\\\\\\`\\"\\\$]*)
30152       eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
30153       ;;
30154     *)
30155       eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
30156       ;;
30157     esac
30158 done
30159
30160 # Double-quote double-evaled strings.
30161 for var in reload_cmds \
30162 old_postinstall_cmds \
30163 old_postuninstall_cmds \
30164 old_archive_cmds \
30165 extract_expsyms_cmds \
30166 old_archive_from_new_cmds \
30167 old_archive_from_expsyms_cmds \
30168 archive_cmds \
30169 archive_expsym_cmds \
30170 module_cmds \
30171 module_expsym_cmds \
30172 export_symbols_cmds \
30173 prelink_cmds \
30174 postinstall_cmds \
30175 postuninstall_cmds \
30176 finish_cmds \
30177 sys_lib_search_path_spec \
30178 sys_lib_dlsearch_path_spec \
30179 old_archive_cmds_CXX \
30180 old_archive_from_new_cmds_CXX \
30181 old_archive_from_expsyms_cmds_CXX \
30182 archive_cmds_CXX \
30183 archive_expsym_cmds_CXX \
30184 module_cmds_CXX \
30185 module_expsym_cmds_CXX \
30186 export_symbols_cmds_CXX \
30187 prelink_cmds_CXX; do
30188     case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
30189     *[\\\\\\\`\\"\\\$]*)
30190       eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
30191       ;;
30192     *)
30193       eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
30194       ;;
30195     esac
30196 done
30197
30198 # Fix-up fallback echo if it was mangled by the above quoting rules.
30199 case \$lt_ECHO in
30200 *'\\\$0 --fallback-echo"')  lt_ECHO=\`\$ECHO "X\$lt_ECHO" | \$Xsed -e 's/\\\\\\\\\\\\\\\$0 --fallback-echo"\$/\$0 --fallback-echo"/'\`
30201   ;;
30202 esac
30203
30204 ac_aux_dir='$ac_aux_dir'
30205 xsi_shell='$xsi_shell'
30206 lt_shell_append='$lt_shell_append'
30207
30208 # See if we are running on zsh, and set the options which allow our
30209 # commands through without removal of \ escapes INIT.
30210 if test -n "\${ZSH_VERSION+set}" ; then
30211    setopt NO_GLOB_SUBST
30212 fi
30213
30214
30215     PACKAGE='$PACKAGE'
30216     VERSION='$VERSION'
30217     TIMESTAMP='$TIMESTAMP'
30218     RM='$RM'
30219     ofile='$ofile'
30220
30221
30222
30223
30224
30225 # Capture the value of obsolete ALL_LINGUAS because we need it to compute
30226     # POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES, CATALOGS. But hide it
30227     # from automake.
30228     eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"'
30229     # Capture the value of LINGUAS because we need it to compute CATALOGS.
30230     LINGUAS="${LINGUAS-%UNSET%}"
30231
30232
30233 _ACEOF
30234
30235 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
30236
30237 # Handling of arguments.
30238 for ac_config_target in $ac_config_targets
30239 do
30240   case $ac_config_target in
30241     "src/config.h") CONFIG_HEADERS="$CONFIG_HEADERS src/config.h:autoconf/config.h.in" ;;
30242     "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
30243     "default-1") CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
30244     "autoconf/Make.common") CONFIG_FILES="$CONFIG_FILES autoconf/Make.common" ;;
30245     "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
30246     "manpages/Makefile") CONFIG_FILES="$CONFIG_FILES manpages/Makefile" ;;
30247     "scripts/startmysql") CONFIG_FILES="$CONFIG_FILES scripts/startmysql" ;;
30248     "scripts/stopmysql") CONFIG_FILES="$CONFIG_FILES scripts/stopmysql" ;;
30249     "scripts/btraceback") CONFIG_FILES="$CONFIG_FILES scripts/btraceback" ;;
30250     "scripts/startit") CONFIG_FILES="$CONFIG_FILES scripts/startit" ;;
30251     "scripts/stopit") CONFIG_FILES="$CONFIG_FILES scripts/stopit" ;;
30252     "scripts/bconsole") CONFIG_FILES="$CONFIG_FILES scripts/bconsole" ;;
30253     "scripts/gconsole") CONFIG_FILES="$CONFIG_FILES scripts/gconsole" ;;
30254     "scripts/bacula") CONFIG_FILES="$CONFIG_FILES scripts/bacula" ;;
30255     "scripts/bacula-ctl-dir") CONFIG_FILES="$CONFIG_FILES scripts/bacula-ctl-dir" ;;
30256     "scripts/bacula-ctl-fd") CONFIG_FILES="$CONFIG_FILES scripts/bacula-ctl-fd" ;;
30257     "scripts/bacula-ctl-sd") CONFIG_FILES="$CONFIG_FILES scripts/bacula-ctl-sd" ;;
30258     "scripts/devel_bacula") CONFIG_FILES="$CONFIG_FILES scripts/devel_bacula" ;;
30259     "scripts/Makefile") CONFIG_FILES="$CONFIG_FILES scripts/Makefile" ;;
30260     "scripts/logrotate") CONFIG_FILES="$CONFIG_FILES scripts/logrotate" ;;
30261     "scripts/bacula.desktop.gnome1") CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome1" ;;
30262     "scripts/bacula.desktop.gnome2") CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome2" ;;
30263     "scripts/bacula.desktop.gnome1.consolehelper") CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome1.consolehelper" ;;
30264     "scripts/bacula.desktop.gnome2.consolehelper") CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome2.consolehelper" ;;
30265     "scripts/bacula.desktop.gnome1.xsu") CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome1.xsu" ;;
30266     "scripts/bacula.desktop.gnome2.xsu") CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome2.xsu" ;;
30267     "scripts/bgnome-console.console_apps") CONFIG_FILES="$CONFIG_FILES scripts/bgnome-console.console_apps" ;;
30268     "scripts/mtx-changer") CONFIG_FILES="$CONFIG_FILES scripts/mtx-changer" ;;
30269     "scripts/disk-changer") CONFIG_FILES="$CONFIG_FILES scripts/disk-changer" ;;
30270     "scripts/dvd-handler") CONFIG_FILES="$CONFIG_FILES scripts/dvd-handler" ;;
30271     "scripts/dvd-simulator") CONFIG_FILES="$CONFIG_FILES scripts/dvd-simulator" ;;
30272     "scripts/bacula-tray-monitor.desktop") CONFIG_FILES="$CONFIG_FILES scripts/bacula-tray-monitor.desktop" ;;
30273     "scripts/logwatch/Makefile") CONFIG_FILES="$CONFIG_FILES scripts/logwatch/Makefile" ;;
30274     "scripts/logwatch/logfile.bacula.conf") CONFIG_FILES="$CONFIG_FILES scripts/logwatch/logfile.bacula.conf" ;;
30275     "scripts/wxconsole.console_apps") CONFIG_FILES="$CONFIG_FILES scripts/wxconsole.console_apps" ;;
30276     "scripts/wxconsole.desktop.consolehelper") CONFIG_FILES="$CONFIG_FILES scripts/wxconsole.desktop.consolehelper" ;;
30277     "scripts/wxconsole.desktop.xsu") CONFIG_FILES="$CONFIG_FILES scripts/wxconsole.desktop.xsu" ;;
30278     "scripts/bat.desktop") CONFIG_FILES="$CONFIG_FILES scripts/bat.desktop" ;;
30279     "scripts/bat.desktop.xsu") CONFIG_FILES="$CONFIG_FILES scripts/bat.desktop.xsu" ;;
30280     "scripts/bat.desktop.consolehelper") CONFIG_FILES="$CONFIG_FILES scripts/bat.desktop.consolehelper" ;;
30281     "scripts/bat.console_apps") CONFIG_FILES="$CONFIG_FILES scripts/bat.console_apps" ;;
30282     "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
30283     "src/host.h") CONFIG_FILES="$CONFIG_FILES src/host.h" ;;
30284     "src/console/Makefile") CONFIG_FILES="$CONFIG_FILES src/console/Makefile" ;;
30285     "src/console/bconsole.conf") CONFIG_FILES="$CONFIG_FILES src/console/bconsole.conf" ;;
30286     "src/qt-console/bat.conf") CONFIG_FILES="$CONFIG_FILES src/qt-console/bat.conf" ;;
30287     "src/qt-console/bat.pro") CONFIG_FILES="$CONFIG_FILES src/qt-console/bat.pro" ;;
30288     "src/qt-console/bat.pro.mingw32") CONFIG_FILES="$CONFIG_FILES src/qt-console/bat.pro.mingw32" ;;
30289     "src/qt-console/install_conf_file") CONFIG_FILES="$CONFIG_FILES src/qt-console/install_conf_file" ;;
30290     "src/wx-console/Makefile") CONFIG_FILES="$CONFIG_FILES src/wx-console/Makefile" ;;
30291     "src/wx-console/bwx-console.conf") CONFIG_FILES="$CONFIG_FILES src/wx-console/bwx-console.conf" ;;
30292     "src/tray-monitor/Makefile") CONFIG_FILES="$CONFIG_FILES src/tray-monitor/Makefile" ;;
30293     "src/tray-monitor/tray-monitor.conf") CONFIG_FILES="$CONFIG_FILES src/tray-monitor/tray-monitor.conf" ;;
30294     "src/dird/Makefile") CONFIG_FILES="$CONFIG_FILES src/dird/Makefile" ;;
30295     "src/dird/bacula-dir.conf") CONFIG_FILES="$CONFIG_FILES src/dird/bacula-dir.conf" ;;
30296     "src/lib/Makefile") CONFIG_FILES="$CONFIG_FILES src/lib/Makefile" ;;
30297     "src/stored/Makefile") CONFIG_FILES="$CONFIG_FILES src/stored/Makefile" ;;
30298     "src/stored/bacula-sd.conf") CONFIG_FILES="$CONFIG_FILES src/stored/bacula-sd.conf" ;;
30299     "src/filed/Makefile") CONFIG_FILES="$CONFIG_FILES src/filed/Makefile" ;;
30300     "src/filed/bacula-fd.conf") CONFIG_FILES="$CONFIG_FILES src/filed/bacula-fd.conf" ;;
30301     "src/cats/Makefile") CONFIG_FILES="$CONFIG_FILES src/cats/Makefile" ;;
30302     "src/cats/make_catalog_backup.pl") CONFIG_FILES="$CONFIG_FILES src/cats/make_catalog_backup.pl" ;;
30303     "src/cats/make_catalog_backup") CONFIG_FILES="$CONFIG_FILES src/cats/make_catalog_backup" ;;
30304     "src/cats/delete_catalog_backup") CONFIG_FILES="$CONFIG_FILES src/cats/delete_catalog_backup" ;;
30305     "src/cats/create_postgresql_database") CONFIG_FILES="$CONFIG_FILES src/cats/create_postgresql_database" ;;
30306     "src/cats/update_postgresql_tables") CONFIG_FILES="$CONFIG_FILES src/cats/update_postgresql_tables" ;;
30307     "src/cats/make_postgresql_tables") CONFIG_FILES="$CONFIG_FILES src/cats/make_postgresql_tables" ;;
30308     "src/cats/grant_postgresql_privileges") CONFIG_FILES="$CONFIG_FILES src/cats/grant_postgresql_privileges" ;;
30309     "src/cats/drop_postgresql_tables") CONFIG_FILES="$CONFIG_FILES src/cats/drop_postgresql_tables" ;;
30310     "src/cats/drop_postgresql_database") CONFIG_FILES="$CONFIG_FILES src/cats/drop_postgresql_database" ;;
30311     "src/cats/create_mysql_database") CONFIG_FILES="$CONFIG_FILES src/cats/create_mysql_database" ;;
30312     "src/cats/update_mysql_tables") CONFIG_FILES="$CONFIG_FILES src/cats/update_mysql_tables" ;;
30313     "src/cats/make_mysql_tables") CONFIG_FILES="$CONFIG_FILES src/cats/make_mysql_tables" ;;
30314     "src/cats/grant_mysql_privileges") CONFIG_FILES="$CONFIG_FILES src/cats/grant_mysql_privileges" ;;
30315     "src/cats/drop_mysql_tables") CONFIG_FILES="$CONFIG_FILES src/cats/drop_mysql_tables" ;;
30316     "src/cats/drop_mysql_database") CONFIG_FILES="$CONFIG_FILES src/cats/drop_mysql_database" ;;
30317     "src/cats/create_sqlite3_database") CONFIG_FILES="$CONFIG_FILES src/cats/create_sqlite3_database" ;;
30318     "src/cats/update_sqlite3_tables") CONFIG_FILES="$CONFIG_FILES src/cats/update_sqlite3_tables" ;;
30319     "src/cats/make_sqlite3_tables") CONFIG_FILES="$CONFIG_FILES src/cats/make_sqlite3_tables" ;;
30320     "src/cats/grant_sqlite3_privileges") CONFIG_FILES="$CONFIG_FILES src/cats/grant_sqlite3_privileges" ;;
30321     "src/cats/drop_sqlite3_tables") CONFIG_FILES="$CONFIG_FILES src/cats/drop_sqlite3_tables" ;;
30322     "src/cats/drop_sqlite3_database") CONFIG_FILES="$CONFIG_FILES src/cats/drop_sqlite3_database" ;;
30323     "src/cats/create_ingres_database") CONFIG_FILES="$CONFIG_FILES src/cats/create_ingres_database" ;;
30324     "src/cats/update_ingres_tables") CONFIG_FILES="$CONFIG_FILES src/cats/update_ingres_tables" ;;
30325     "src/cats/make_ingres_tables") CONFIG_FILES="$CONFIG_FILES src/cats/make_ingres_tables" ;;
30326     "src/cats/grant_ingres_privileges") CONFIG_FILES="$CONFIG_FILES src/cats/grant_ingres_privileges" ;;
30327     "src/cats/drop_ingres_tables") CONFIG_FILES="$CONFIG_FILES src/cats/drop_ingres_tables" ;;
30328     "src/cats/drop_ingres_database") CONFIG_FILES="$CONFIG_FILES src/cats/drop_ingres_database" ;;
30329     "src/cats/sqlite") CONFIG_FILES="$CONFIG_FILES src/cats/sqlite" ;;
30330     "src/cats/mysql") CONFIG_FILES="$CONFIG_FILES src/cats/mysql" ;;
30331     "src/cats/create_bdb_database") CONFIG_FILES="$CONFIG_FILES src/cats/create_bdb_database" ;;
30332     "src/cats/update_bdb_tables") CONFIG_FILES="$CONFIG_FILES src/cats/update_bdb_tables" ;;
30333     "src/cats/make_bdb_tables") CONFIG_FILES="$CONFIG_FILES src/cats/make_bdb_tables" ;;
30334     "src/cats/grant_bdb_privileges") CONFIG_FILES="$CONFIG_FILES src/cats/grant_bdb_privileges" ;;
30335     "src/cats/drop_bdb_tables") CONFIG_FILES="$CONFIG_FILES src/cats/drop_bdb_tables" ;;
30336     "src/cats/drop_bdb_database") CONFIG_FILES="$CONFIG_FILES src/cats/drop_bdb_database" ;;
30337     "src/cats/create_bacula_database") CONFIG_FILES="$CONFIG_FILES src/cats/create_bacula_database" ;;
30338     "src/cats/update_bacula_tables") CONFIG_FILES="$CONFIG_FILES src/cats/update_bacula_tables" ;;
30339     "src/cats/grant_bacula_privileges") CONFIG_FILES="$CONFIG_FILES src/cats/grant_bacula_privileges" ;;
30340     "src/cats/make_bacula_tables") CONFIG_FILES="$CONFIG_FILES src/cats/make_bacula_tables" ;;
30341     "src/cats/drop_bacula_tables") CONFIG_FILES="$CONFIG_FILES src/cats/drop_bacula_tables" ;;
30342     "src/cats/drop_bacula_database") CONFIG_FILES="$CONFIG_FILES src/cats/drop_bacula_database" ;;
30343     "src/findlib/Makefile") CONFIG_FILES="$CONFIG_FILES src/findlib/Makefile" ;;
30344     "src/tools/Makefile") CONFIG_FILES="$CONFIG_FILES src/tools/Makefile" ;;
30345     "src/plugins/fd/Makefile") CONFIG_FILES="$CONFIG_FILES src/plugins/fd/Makefile" ;;
30346     "src/plugins/sd/Makefile") CONFIG_FILES="$CONFIG_FILES src/plugins/sd/Makefile" ;;
30347     "src/plugins/dir/Makefile") CONFIG_FILES="$CONFIG_FILES src/plugins/dir/Makefile" ;;
30348     "src/win32/Makefile.inc") CONFIG_FILES="$CONFIG_FILES src/win32/Makefile.inc" ;;
30349     "po/Makefile.in") CONFIG_FILES="$CONFIG_FILES po/Makefile.in" ;;
30350     "updatedb/update_mysql_tables_9_to_10") CONFIG_FILES="$CONFIG_FILES updatedb/update_mysql_tables_9_to_10" ;;
30351     "updatedb/update_sqlite3_tables_9_to_10") CONFIG_FILES="$CONFIG_FILES updatedb/update_sqlite3_tables_9_to_10" ;;
30352     "updatedb/update_postgresql_tables_9_to_10") CONFIG_FILES="$CONFIG_FILES updatedb/update_postgresql_tables_9_to_10" ;;
30353     "updatedb/update_mysql_tables_10_to_11") CONFIG_FILES="$CONFIG_FILES updatedb/update_mysql_tables_10_to_11" ;;
30354     "updatedb/update_sqlite3_tables_10_to_11") CONFIG_FILES="$CONFIG_FILES updatedb/update_sqlite3_tables_10_to_11" ;;
30355     "updatedb/update_postgresql_tables_10_to_11") CONFIG_FILES="$CONFIG_FILES updatedb/update_postgresql_tables_10_to_11" ;;
30356     "examples/nagios/check_bacula/Makefile") CONFIG_FILES="$CONFIG_FILES examples/nagios/check_bacula/Makefile" ;;
30357     "$PFILES") CONFIG_FILES="$CONFIG_FILES $PFILES" ;;
30358     "default") CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
30359
30360   *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
30361   esac
30362 done
30363
30364
30365 # If the user did not use the arguments to specify the items to instantiate,
30366 # then the envvar interface is used.  Set only those that are not.
30367 # We use the long form for the default assignment because of an extremely
30368 # bizarre bug on SunOS 4.1.3.
30369 if $ac_need_defaults; then
30370   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
30371   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
30372   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
30373 fi
30374
30375 # Have a temporary directory for convenience.  Make it in the build tree
30376 # simply because there is no reason against having it here, and in addition,
30377 # creating and moving files from /tmp can sometimes cause problems.
30378 # Hook for its removal unless debugging.
30379 # Note that there is a small window in which the directory will not be cleaned:
30380 # after its creation but before its name has been assigned to `$tmp'.
30381 $debug ||
30382 {
30383   tmp=
30384   trap 'exit_status=$?
30385   { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
30386 ' 0
30387   trap 'as_fn_exit 1' 1 2 13 15
30388 }
30389 # Create a (secure) tmp directory for tmp files.
30390
30391 {
30392   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
30393   test -n "$tmp" && test -d "$tmp"
30394 }  ||
30395 {
30396   tmp=./conf$$-$RANDOM
30397   (umask 077 && mkdir "$tmp")
30398 } || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
30399
30400 # Set up the scripts for CONFIG_FILES section.
30401 # No need to generate them if there are no CONFIG_FILES.
30402 # This happens for instance with `./config.status config.h'.
30403 if test -n "$CONFIG_FILES"; then
30404
30405 if $AWK 'BEGIN { getline <"/dev/null" }' </dev/null 2>/dev/null; then
30406   ac_cs_awk_getline=:
30407   ac_cs_awk_pipe_init=
30408   ac_cs_awk_read_file='
30409       while ((getline aline < (F[key])) > 0)
30410         print(aline)
30411       close(F[key])'
30412   ac_cs_awk_pipe_fini=
30413 else
30414   ac_cs_awk_getline=false
30415   ac_cs_awk_pipe_init="print \"cat <<'|#_!!_#|' &&\""
30416   ac_cs_awk_read_file='
30417       print "|#_!!_#|"
30418       print "cat " F[key] " &&"
30419       '$ac_cs_awk_pipe_init
30420   # The final `:' finishes the AND list.
30421   ac_cs_awk_pipe_fini='END { print "|#_!!_#|"; print ":" }'
30422 fi
30423 ac_cr=`echo X | tr X '\015'`
30424 # On cygwin, bash can eat \r inside `` if the user requested igncr.
30425 # But we know of no other shell where ac_cr would be empty at this
30426 # point, so we can use a bashism as a fallback.
30427 if test "x$ac_cr" = x; then
30428   eval ac_cr=\$\'\\r\'
30429 fi
30430 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
30431 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
30432   ac_cs_awk_cr='\r'
30433 else
30434   ac_cs_awk_cr=$ac_cr
30435 fi
30436
30437 echo 'BEGIN {' >"$tmp/subs1.awk" &&
30438 _ACEOF
30439
30440 # Create commands to substitute file output variables.
30441 {
30442   echo "cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1" &&
30443   echo 'cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&' &&
30444   echo "$ac_subst_files" | sed 's/.*/F["&"]="$&"/' &&
30445   echo "_ACAWK" &&
30446   echo "_ACEOF"
30447 } >conf$$files.sh &&
30448 . ./conf$$files.sh ||
30449   as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
30450 rm -f conf$$files.sh
30451
30452 {
30453   echo "cat >conf$$subs.awk <<_ACEOF" &&
30454   echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
30455   echo "_ACEOF"
30456 } >conf$$subs.sh ||
30457   as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
30458 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
30459 ac_delim='%!_!# '
30460 for ac_last_try in false false false false false :; do
30461   . ./conf$$subs.sh ||
30462     as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
30463
30464   ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
30465   if test $ac_delim_n = $ac_delim_num; then
30466     break
30467   elif $ac_last_try; then
30468     as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
30469   else
30470     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
30471   fi
30472 done
30473 rm -f conf$$subs.sh
30474
30475 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
30476 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
30477 _ACEOF
30478 sed -n '
30479 h
30480 s/^/S["/; s/!.*/"]=/
30481 p
30482 g
30483 s/^[^!]*!//
30484 :repl
30485 t repl
30486 s/'"$ac_delim"'$//
30487 t delim
30488 :nl
30489 h
30490 s/\(.\{148\}\)..*/\1/
30491 t more1
30492 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
30493 p
30494 n
30495 b repl
30496 :more1
30497 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
30498 p
30499 g
30500 s/.\{148\}//
30501 t nl
30502 :delim
30503 h
30504 s/\(.\{148\}\)..*/\1/
30505 t more2
30506 s/["\\]/\\&/g; s/^/"/; s/$/"/
30507 p
30508 b
30509 :more2
30510 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
30511 p
30512 g
30513 s/.\{148\}//
30514 t delim
30515 ' <conf$$subs.awk | sed '
30516 /^[^""]/{
30517   N
30518   s/\n//
30519 }
30520 ' >>$CONFIG_STATUS || ac_write_fail=1
30521 rm -f conf$$subs.awk
30522 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
30523 _ACAWK
30524 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
30525   for (key in S) S_is_set[key] = 1
30526   FS = "\a"
30527   \$ac_cs_awk_pipe_init
30528 }
30529 {
30530   line = $ 0
30531   nfields = split(line, field, "@")
30532   substed = 0
30533   len = length(field[1])
30534   for (i = 2; i < nfields; i++) {
30535     key = field[i]
30536     keylen = length(key)
30537     if (S_is_set[key]) {
30538       value = S[key]
30539       line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
30540       len += length(value) + length(field[++i])
30541       substed = 1
30542     } else
30543       len += 1 + keylen
30544   }
30545   if (nfields == 3 && !substed) {
30546     key = field[2]
30547     if (F[key] != "" && line ~ /^[       ]*@.*@[         ]*$/) {
30548       \$ac_cs_awk_read_file
30549       next
30550     }
30551   }
30552   print line
30553 }
30554 \$ac_cs_awk_pipe_fini
30555 _ACAWK
30556 _ACEOF
30557 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
30558 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
30559   sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
30560 else
30561   cat
30562 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
30563   || as_fn_error "could not setup config files machinery" "$LINENO" 5
30564 _ACEOF
30565
30566 # VPATH may cause trouble with some makes, so we remove $(srcdir),
30567 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
30568 # trailing colons and then remove the whole line if VPATH becomes empty
30569 # (actually we leave an empty line to preserve line numbers).
30570 if test "x$srcdir" = x.; then
30571   ac_vpsub='/^[  ]*VPATH[        ]*=/{
30572 s/:*\$(srcdir):*/:/
30573 s/:*\${srcdir}:*/:/
30574 s/:*@srcdir@:*/:/
30575 s/^\([^=]*=[     ]*\):*/\1/
30576 s/:*$//
30577 s/^[^=]*=[       ]*$//
30578 }'
30579 fi
30580
30581 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
30582 fi # test -n "$CONFIG_FILES"
30583
30584 # Set up the scripts for CONFIG_HEADERS section.
30585 # No need to generate them if there are no CONFIG_HEADERS.
30586 # This happens for instance with `./config.status Makefile'.
30587 if test -n "$CONFIG_HEADERS"; then
30588 cat >"$tmp/defines.awk" <<\_ACAWK ||
30589 BEGIN {
30590 _ACEOF
30591
30592 # Transform confdefs.h into an awk script `defines.awk', embedded as
30593 # here-document in config.status, that substitutes the proper values into
30594 # config.h.in to produce config.h.
30595
30596 # Create a delimiter string that does not exist in confdefs.h, to ease
30597 # handling of long lines.
30598 ac_delim='%!_!# '
30599 for ac_last_try in false false :; do
30600   ac_t=`sed -n "/$ac_delim/p" confdefs.h`
30601   if test -z "$ac_t"; then
30602     break
30603   elif $ac_last_try; then
30604     as_fn_error "could not make $CONFIG_HEADERS" "$LINENO" 5
30605   else
30606     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
30607   fi
30608 done
30609
30610 # For the awk script, D is an array of macro values keyed by name,
30611 # likewise P contains macro parameters if any.  Preserve backslash
30612 # newline sequences.
30613
30614 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
30615 sed -n '
30616 s/.\{148\}/&'"$ac_delim"'/g
30617 t rset
30618 :rset
30619 s/^[     ]*#[    ]*define[       ][      ]*/ /
30620 t def
30621 d
30622 :def
30623 s/\\$//
30624 t bsnl
30625 s/["\\]/\\&/g
30626 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
30627 D["\1"]=" \3"/p
30628 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2"/p
30629 d
30630 :bsnl
30631 s/["\\]/\\&/g
30632 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
30633 D["\1"]=" \3\\\\\\n"\\/p
30634 t cont
30635 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
30636 t cont
30637 d
30638 :cont
30639 n
30640 s/.\{148\}/&'"$ac_delim"'/g
30641 t clear
30642 :clear
30643 s/\\$//
30644 t bsnlc
30645 s/["\\]/\\&/g; s/^/"/; s/$/"/p
30646 d
30647 :bsnlc
30648 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
30649 b cont
30650 ' <confdefs.h | sed '
30651 s/'"$ac_delim"'/"\\\
30652 "/g' >>$CONFIG_STATUS || ac_write_fail=1
30653
30654 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
30655   for (key in D) D_is_set[key] = 1
30656   FS = "\a"
30657 }
30658 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
30659   line = \$ 0
30660   split(line, arg, " ")
30661   if (arg[1] == "#") {
30662     defundef = arg[2]
30663     mac1 = arg[3]
30664   } else {
30665     defundef = substr(arg[1], 2)
30666     mac1 = arg[2]
30667   }
30668   split(mac1, mac2, "(") #)
30669   macro = mac2[1]
30670   prefix = substr(line, 1, index(line, defundef) - 1)
30671   if (D_is_set[macro]) {
30672     # Preserve the white space surrounding the "#".
30673     print prefix "define", macro P[macro] D[macro]
30674     next
30675   } else {
30676     # Replace #undef with comments.  This is necessary, for example,
30677     # in the case of _POSIX_SOURCE, which is predefined and required
30678     # on some systems where configure will not decide to define it.
30679     if (defundef == "undef") {
30680       print "/*", prefix defundef, macro, "*/"
30681       next
30682     }
30683   }
30684 }
30685 { print }
30686 _ACAWK
30687 _ACEOF
30688 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
30689   as_fn_error "could not setup config headers machinery" "$LINENO" 5
30690 fi # test -n "$CONFIG_HEADERS"
30691
30692
30693 eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
30694 shift
30695 for ac_tag
30696 do
30697   case $ac_tag in
30698   :[FHLC]) ac_mode=$ac_tag; continue;;
30699   esac
30700   case $ac_mode$ac_tag in
30701   :[FHL]*:*);;
30702   :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
30703   :[FH]-) ac_tag=-:-;;
30704   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
30705   esac
30706   ac_save_IFS=$IFS
30707   IFS=:
30708   set x $ac_tag
30709   IFS=$ac_save_IFS
30710   shift
30711   ac_file=$1
30712   shift
30713
30714   case $ac_mode in
30715   :L) ac_source=$1;;
30716   :[FH])
30717     ac_file_inputs=
30718     for ac_f
30719     do
30720       case $ac_f in
30721       -) ac_f="$tmp/stdin";;
30722       *) # Look for the file first in the build tree, then in the source tree
30723          # (if the path is not absolute).  The absolute path cannot be DOS-style,
30724          # because $ac_f cannot contain `:'.
30725          test -f "$ac_f" ||
30726            case $ac_f in
30727            [\\/$]*) false;;
30728            *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
30729            esac ||
30730            as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
30731       esac
30732       case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
30733       as_fn_append ac_file_inputs " '$ac_f'"
30734     done
30735
30736     # Let's still pretend it is `configure' which instantiates (i.e., don't
30737     # use $as_me), people would be surprised to read:
30738     #    /* config.h.  Generated by config.status.  */
30739     configure_input='Generated from '`
30740           $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
30741         `' by configure.'
30742     if test x"$ac_file" != x-; then
30743       configure_input="$ac_file.  $configure_input"
30744       { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
30745 $as_echo "$as_me: creating $ac_file" >&6;}
30746     fi
30747     # Neutralize special characters interpreted by sed in replacement strings.
30748     case $configure_input in #(
30749     *\&* | *\|* | *\\* )
30750        ac_sed_conf_input=`$as_echo "$configure_input" |
30751        sed 's/[\\\\&|]/\\\\&/g'`;; #(
30752     *) ac_sed_conf_input=$configure_input;;
30753     esac
30754
30755     case $ac_tag in
30756     *:-:* | *:-) cat >"$tmp/stdin" \
30757       || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
30758     esac
30759     ;;
30760   esac
30761
30762   ac_dir=`$as_dirname -- "$ac_file" ||
30763 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
30764          X"$ac_file" : 'X\(//\)[^/]' \| \
30765          X"$ac_file" : 'X\(//\)$' \| \
30766          X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
30767 $as_echo X"$ac_file" |
30768     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
30769             s//\1/
30770             q
30771           }
30772           /^X\(\/\/\)[^/].*/{
30773             s//\1/
30774             q
30775           }
30776           /^X\(\/\/\)$/{
30777             s//\1/
30778             q
30779           }
30780           /^X\(\/\).*/{
30781             s//\1/
30782             q
30783           }
30784           s/.*/./; q'`
30785   as_dir="$ac_dir"; as_fn_mkdir_p
30786   ac_builddir=.
30787
30788 case "$ac_dir" in
30789 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
30790 *)
30791   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
30792   # A ".." for each directory in $ac_dir_suffix.
30793   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
30794   case $ac_top_builddir_sub in
30795   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
30796   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
30797   esac ;;
30798 esac
30799 ac_abs_top_builddir=$ac_pwd
30800 ac_abs_builddir=$ac_pwd$ac_dir_suffix
30801 # for backward compatibility:
30802 ac_top_builddir=$ac_top_build_prefix
30803
30804 case $srcdir in
30805   .)  # We are building in place.
30806     ac_srcdir=.
30807     ac_top_srcdir=$ac_top_builddir_sub
30808     ac_abs_top_srcdir=$ac_pwd ;;
30809   [\\/]* | ?:[\\/]* )  # Absolute name.
30810     ac_srcdir=$srcdir$ac_dir_suffix;
30811     ac_top_srcdir=$srcdir
30812     ac_abs_top_srcdir=$srcdir ;;
30813   *) # Relative name.
30814     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
30815     ac_top_srcdir=$ac_top_build_prefix$srcdir
30816     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
30817 esac
30818 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
30819
30820
30821   case $ac_mode in
30822   :F)
30823   #
30824   # CONFIG_FILE
30825   #
30826
30827   case $INSTALL in
30828   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
30829   *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
30830   esac
30831 _ACEOF
30832
30833 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
30834 # If the template does not know about datarootdir, expand it.
30835 # FIXME: This hack should be removed a few years after 2.60.
30836 ac_datarootdir_hack=; ac_datarootdir_seen=
30837 ac_sed_dataroot='
30838 /datarootdir/ {
30839   p
30840   q
30841 }
30842 /@datadir@/p
30843 /@docdir@/p
30844 /@infodir@/p
30845 /@localedir@/p
30846 /@mandir@/p'
30847 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
30848 *datarootdir*) ac_datarootdir_seen=yes;;
30849 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
30850   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
30851 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
30852 _ACEOF
30853 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
30854   ac_datarootdir_hack='
30855   s&@datadir@&$datadir&g
30856   s&@docdir@&$docdir&g
30857   s&@infodir@&$infodir&g
30858   s&@localedir@&$localedir&g
30859   s&@mandir@&$mandir&g
30860   s&\\\${datarootdir}&$datarootdir&g' ;;
30861 esac
30862 _ACEOF
30863
30864 # Neutralize VPATH when `$srcdir' = `.'.
30865 # Shell code in configure.ac might set extrasub.
30866 # FIXME: do we really want to maintain this feature?
30867 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
30868 ac_sed_extra="$ac_vpsub
30869 $extrasub
30870 _ACEOF
30871 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
30872 :t
30873 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
30874 s|@configure_input@|$ac_sed_conf_input|;t t
30875 s&@top_builddir@&$ac_top_builddir_sub&;t t
30876 s&@top_build_prefix@&$ac_top_build_prefix&;t t
30877 s&@srcdir@&$ac_srcdir&;t t
30878 s&@abs_srcdir@&$ac_abs_srcdir&;t t
30879 s&@top_srcdir@&$ac_top_srcdir&;t t
30880 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
30881 s&@builddir@&$ac_builddir&;t t
30882 s&@abs_builddir@&$ac_abs_builddir&;t t
30883 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
30884 s&@INSTALL@&$ac_INSTALL&;t t
30885 $ac_datarootdir_hack
30886 "
30887 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" |
30888 if $ac_cs_awk_getline; then
30889   $AWK -f "$tmp/subs.awk"
30890 else
30891   $AWK -f "$tmp/subs.awk" | $SHELL
30892 fi >$tmp/out \
30893   || as_fn_error "could not create $ac_file" "$LINENO" 5
30894
30895 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
30896   { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
30897   { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
30898   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
30899 which seems to be undefined.  Please make sure it is defined." >&5
30900 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
30901 which seems to be undefined.  Please make sure it is defined." >&2;}
30902
30903   rm -f "$tmp/stdin"
30904   case $ac_file in
30905   -) cat "$tmp/out" && rm -f "$tmp/out";;
30906   *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
30907   esac \
30908   || as_fn_error "could not create $ac_file" "$LINENO" 5
30909  ;;
30910   :H)
30911   #
30912   # CONFIG_HEADER
30913   #
30914   if test x"$ac_file" != x-; then
30915     {
30916       $as_echo "/* $configure_input  */" \
30917       && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
30918     } >"$tmp/config.h" \
30919       || as_fn_error "could not create $ac_file" "$LINENO" 5
30920     if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
30921       { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
30922 $as_echo "$as_me: $ac_file is unchanged" >&6;}
30923     else
30924       rm -f "$ac_file"
30925       mv "$tmp/config.h" "$ac_file" \
30926         || as_fn_error "could not create $ac_file" "$LINENO" 5
30927     fi
30928   else
30929     $as_echo "/* $configure_input  */" \
30930       && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
30931       || as_fn_error "could not create -" "$LINENO" 5
30932   fi
30933  ;;
30934
30935   :C)  { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
30936 $as_echo "$as_me: executing $ac_file commands" >&6;}
30937  ;;
30938   esac
30939
30940
30941   case $ac_file$ac_mode in
30942     "libtool":C)
30943
30944     # See if we are running on zsh, and set the options which allow our
30945     # commands through without removal of \ escapes.
30946     if test -n "${ZSH_VERSION+set}" ; then
30947       setopt NO_GLOB_SUBST
30948     fi
30949
30950     cfgfile="${ofile}T"
30951     trap "$RM \"$cfgfile\"; exit 1" 1 2 15
30952     $RM "$cfgfile"
30953
30954     cat <<_LT_EOF >> "$cfgfile"
30955 #! $SHELL
30956
30957 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
30958 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
30959 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
30960 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
30961 #
30962 #   Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
30963 #                 2006, 2007, 2008 Free Software Foundation, Inc.
30964 #   Written by Gordon Matzigkeit, 1996
30965 #
30966 #   This file is part of GNU Libtool.
30967 #
30968 # GNU Libtool is free software; you can redistribute it and/or
30969 # modify it under the terms of the GNU General Public License as
30970 # published by the Free Software Foundation; either version 2 of
30971 # the License, or (at your option) any later version.
30972 #
30973 # As a special exception to the GNU General Public License,
30974 # if you distribute this file as part of a program or library that
30975 # is built using GNU Libtool, you may include this file under the
30976 # same distribution terms that you use for the rest of that program.
30977 #
30978 # GNU Libtool is distributed in the hope that it will be useful,
30979 # but WITHOUT ANY WARRANTY; without even the implied warranty of
30980 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
30981 # GNU General Public License for more details.
30982 #
30983 # You should have received a copy of the GNU General Public License
30984 # along with GNU Libtool; see the file COPYING.  If not, a copy
30985 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
30986 # obtained by writing to the Free Software Foundation, Inc.,
30987 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
30988
30989
30990 # The names of the tagged configurations supported by this script.
30991 available_tags="CXX "
30992
30993 # ### BEGIN LIBTOOL CONFIG
30994
30995 # Which release of libtool.m4 was used?
30996 macro_version=$macro_version
30997 macro_revision=$macro_revision
30998
30999 # Whether or not to build shared libraries.
31000 build_libtool_libs=$enable_shared
31001
31002 # Whether or not to build static libraries.
31003 build_old_libs=$enable_static
31004
31005 # What type of objects to build.
31006 pic_mode=$pic_mode
31007
31008 # Whether or not to optimize for fast installation.
31009 fast_install=$enable_fast_install
31010
31011 # The host system.
31012 host_alias=$host_alias
31013 host=$host
31014 host_os=$host_os
31015
31016 # The build system.
31017 build_alias=$build_alias
31018 build=$build
31019 build_os=$build_os
31020
31021 # A sed program that does not truncate output.
31022 SED=$lt_SED
31023
31024 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
31025 Xsed="\$SED -e 1s/^X//"
31026
31027 # A grep program that handles long lines.
31028 GREP=$lt_GREP
31029
31030 # An ERE matcher.
31031 EGREP=$lt_EGREP
31032
31033 # A literal string matcher.
31034 FGREP=$lt_FGREP
31035
31036 # A BSD- or MS-compatible name lister.
31037 NM=$lt_NM
31038
31039 # Whether we need soft or hard links.
31040 LN_S=$lt_LN_S
31041
31042 # What is the maximum length of a command?
31043 max_cmd_len=$max_cmd_len
31044
31045 # Object file suffix (normally "o").
31046 objext=$ac_objext
31047
31048 # Executable file suffix (normally "").
31049 exeext=$exeext
31050
31051 # whether the shell understands "unset".
31052 lt_unset=$lt_unset
31053
31054 # turn spaces into newlines.
31055 SP2NL=$lt_lt_SP2NL
31056
31057 # turn newlines into spaces.
31058 NL2SP=$lt_lt_NL2SP
31059
31060 # How to create reloadable object files.
31061 reload_flag=$lt_reload_flag
31062 reload_cmds=$lt_reload_cmds
31063
31064 # An object symbol dumper.
31065 OBJDUMP=$lt_OBJDUMP
31066
31067 # Method to check whether dependent libraries are shared objects.
31068 deplibs_check_method=$lt_deplibs_check_method
31069
31070 # Command to use when deplibs_check_method == "file_magic".
31071 file_magic_cmd=$lt_file_magic_cmd
31072
31073 # The archiver.
31074 AR=$lt_AR
31075 AR_FLAGS=$lt_AR_FLAGS
31076
31077 # A symbol stripping program.
31078 STRIP=$lt_STRIP
31079
31080 # Commands used to install an old-style archive.
31081 RANLIB=$lt_RANLIB
31082 old_postinstall_cmds=$lt_old_postinstall_cmds
31083 old_postuninstall_cmds=$lt_old_postuninstall_cmds
31084
31085 # A C compiler.
31086 LTCC=$lt_CC
31087
31088 # LTCC compiler flags.
31089 LTCFLAGS=$lt_CFLAGS
31090
31091 # Take the output of nm and produce a listing of raw symbols and C names.
31092 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
31093
31094 # Transform the output of nm in a proper C declaration.
31095 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
31096
31097 # Transform the output of nm in a C name address pair.
31098 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
31099
31100 # Transform the output of nm in a C name address pair when lib prefix is needed.
31101 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
31102
31103 # The name of the directory that contains temporary libtool files.
31104 objdir=$objdir
31105
31106 # Shell to use when invoking shell scripts.
31107 SHELL=$lt_SHELL
31108
31109 # An echo program that does not interpret backslashes.
31110 ECHO=$lt_ECHO
31111
31112 # Used to examine libraries when file_magic_cmd begins with "file".
31113 MAGIC_CMD=$MAGIC_CMD
31114
31115 # Must we lock files when doing compilation?
31116 need_locks=$lt_need_locks
31117
31118 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
31119 DSYMUTIL=$lt_DSYMUTIL
31120
31121 # Tool to change global to local symbols on Mac OS X.
31122 NMEDIT=$lt_NMEDIT
31123
31124 # Tool to manipulate fat objects and archives on Mac OS X.
31125 LIPO=$lt_LIPO
31126
31127 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
31128 OTOOL=$lt_OTOOL
31129
31130 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
31131 OTOOL64=$lt_OTOOL64
31132
31133 # Old archive suffix (normally "a").
31134 libext=$libext
31135
31136 # Shared library suffix (normally ".so").
31137 shrext_cmds=$lt_shrext_cmds
31138
31139 # The commands to extract the exported symbol list from a shared archive.
31140 extract_expsyms_cmds=$lt_extract_expsyms_cmds
31141
31142 # Variables whose values should be saved in libtool wrapper scripts and
31143 # restored at link time.
31144 variables_saved_for_relink=$lt_variables_saved_for_relink
31145
31146 # Do we need the "lib" prefix for modules?
31147 need_lib_prefix=$need_lib_prefix
31148
31149 # Do we need a version for libraries?
31150 need_version=$need_version
31151
31152 # Library versioning type.
31153 version_type=$version_type
31154
31155 # Shared library runtime path variable.
31156 runpath_var=$runpath_var
31157
31158 # Shared library path variable.
31159 shlibpath_var=$shlibpath_var
31160
31161 # Is shlibpath searched before the hard-coded library search path?
31162 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
31163
31164 # Format of library name prefix.
31165 libname_spec=$lt_libname_spec
31166
31167 # List of archive names.  First name is the real one, the rest are links.
31168 # The last name is the one that the linker finds with -lNAME
31169 library_names_spec=$lt_library_names_spec
31170
31171 # The coded name of the library, if different from the real name.
31172 soname_spec=$lt_soname_spec
31173
31174 # Command to use after installation of a shared archive.
31175 postinstall_cmds=$lt_postinstall_cmds
31176
31177 # Command to use after uninstallation of a shared archive.
31178 postuninstall_cmds=$lt_postuninstall_cmds
31179
31180 # Commands used to finish a libtool library installation in a directory.
31181 finish_cmds=$lt_finish_cmds
31182
31183 # As "finish_cmds", except a single script fragment to be evaled but
31184 # not shown.
31185 finish_eval=$lt_finish_eval
31186
31187 # Whether we should hardcode library paths into libraries.
31188 hardcode_into_libs=$hardcode_into_libs
31189
31190 # Compile-time system search path for libraries.
31191 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
31192
31193 # Run-time system search path for libraries.
31194 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
31195
31196 # Whether dlopen is supported.
31197 dlopen_support=$enable_dlopen
31198
31199 # Whether dlopen of programs is supported.
31200 dlopen_self=$enable_dlopen_self
31201
31202 # Whether dlopen of statically linked programs is supported.
31203 dlopen_self_static=$enable_dlopen_self_static
31204
31205 # Commands to strip libraries.
31206 old_striplib=$lt_old_striplib
31207 striplib=$lt_striplib
31208
31209
31210 # The linker used to build libraries.
31211 LD=$lt_LD
31212
31213 # Commands used to build an old-style archive.
31214 old_archive_cmds=$lt_old_archive_cmds
31215
31216 # A language specific compiler.
31217 CC=$lt_compiler
31218
31219 # Is the compiler the GNU compiler?
31220 with_gcc=$GCC
31221
31222 # Compiler flag to turn off builtin functions.
31223 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
31224
31225 # How to pass a linker flag through the compiler.
31226 wl=$lt_lt_prog_compiler_wl
31227
31228 # Additional compiler flags for building library objects.
31229 pic_flag=$lt_lt_prog_compiler_pic
31230
31231 # Compiler flag to prevent dynamic linking.
31232 link_static_flag=$lt_lt_prog_compiler_static
31233
31234 # Does compiler simultaneously support -c and -o options?
31235 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
31236
31237 # Whether or not to add -lc for building shared libraries.
31238 build_libtool_need_lc=$archive_cmds_need_lc
31239
31240 # Whether or not to disallow shared libs when runtime libs are static.
31241 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
31242
31243 # Compiler flag to allow reflexive dlopens.
31244 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
31245
31246 # Compiler flag to generate shared objects directly from archives.
31247 whole_archive_flag_spec=$lt_whole_archive_flag_spec
31248
31249 # Whether the compiler copes with passing no objects directly.
31250 compiler_needs_object=$lt_compiler_needs_object
31251
31252 # Create an old-style archive from a shared archive.
31253 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
31254
31255 # Create a temporary old-style archive to link instead of a shared archive.
31256 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
31257
31258 # Commands used to build a shared archive.
31259 archive_cmds=$lt_archive_cmds
31260 archive_expsym_cmds=$lt_archive_expsym_cmds
31261
31262 # Commands used to build a loadable module if different from building
31263 # a shared archive.
31264 module_cmds=$lt_module_cmds
31265 module_expsym_cmds=$lt_module_expsym_cmds
31266
31267 # Whether we are building with GNU ld or not.
31268 with_gnu_ld=$lt_with_gnu_ld
31269
31270 # Flag that allows shared libraries with undefined symbols to be built.
31271 allow_undefined_flag=$lt_allow_undefined_flag
31272
31273 # Flag that enforces no undefined symbols.
31274 no_undefined_flag=$lt_no_undefined_flag
31275
31276 # Flag to hardcode \$libdir into a binary during linking.
31277 # This must work even if \$libdir does not exist
31278 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
31279
31280 # If ld is used when linking, flag to hardcode \$libdir into a binary
31281 # during linking.  This must work even if \$libdir does not exist.
31282 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
31283
31284 # Whether we need a single "-rpath" flag with a separated argument.
31285 hardcode_libdir_separator=$lt_hardcode_libdir_separator
31286
31287 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
31288 # DIR into the resulting binary.
31289 hardcode_direct=$hardcode_direct
31290
31291 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
31292 # DIR into the resulting binary and the resulting library dependency is
31293 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
31294 # library is relocated.
31295 hardcode_direct_absolute=$hardcode_direct_absolute
31296
31297 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
31298 # into the resulting binary.
31299 hardcode_minus_L=$hardcode_minus_L
31300
31301 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
31302 # into the resulting binary.
31303 hardcode_shlibpath_var=$hardcode_shlibpath_var
31304
31305 # Set to "yes" if building a shared library automatically hardcodes DIR
31306 # into the library and all subsequent libraries and executables linked
31307 # against it.
31308 hardcode_automatic=$hardcode_automatic
31309
31310 # Set to yes if linker adds runtime paths of dependent libraries
31311 # to runtime path list.
31312 inherit_rpath=$inherit_rpath
31313
31314 # Whether libtool must link a program against all its dependency libraries.
31315 link_all_deplibs=$link_all_deplibs
31316
31317 # Fix the shell variable \$srcfile for the compiler.
31318 fix_srcfile_path=$lt_fix_srcfile_path
31319
31320 # Set to "yes" if exported symbols are required.
31321 always_export_symbols=$always_export_symbols
31322
31323 # The commands to list exported symbols.
31324 export_symbols_cmds=$lt_export_symbols_cmds
31325
31326 # Symbols that should not be listed in the preloaded symbols.
31327 exclude_expsyms=$lt_exclude_expsyms
31328
31329 # Symbols that must always be exported.
31330 include_expsyms=$lt_include_expsyms
31331
31332 # Commands necessary for linking programs (against libraries) with templates.
31333 prelink_cmds=$lt_prelink_cmds
31334
31335 # Specify filename containing input files.
31336 file_list_spec=$lt_file_list_spec
31337
31338 # How to hardcode a shared library path into an executable.
31339 hardcode_action=$hardcode_action
31340
31341 # The directories searched by this compiler when creating a shared library.
31342 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
31343
31344 # Dependencies to place before and after the objects being linked to
31345 # create a shared library.
31346 predep_objects=$lt_predep_objects
31347 postdep_objects=$lt_postdep_objects
31348 predeps=$lt_predeps
31349 postdeps=$lt_postdeps
31350
31351 # The library search path used internally by the compiler when linking
31352 # a shared library.
31353 compiler_lib_search_path=$lt_compiler_lib_search_path
31354
31355 # ### END LIBTOOL CONFIG
31356
31357 _LT_EOF
31358
31359   case $host_os in
31360   aix3*)
31361     cat <<\_LT_EOF >> "$cfgfile"
31362 # AIX sometimes has problems with the GCC collect2 program.  For some
31363 # reason, if we set the COLLECT_NAMES environment variable, the problems
31364 # vanish in a puff of smoke.
31365 if test "X${COLLECT_NAMES+set}" != Xset; then
31366   COLLECT_NAMES=
31367   export COLLECT_NAMES
31368 fi
31369 _LT_EOF
31370     ;;
31371   esac
31372
31373
31374 ltmain="$ac_aux_dir/ltmain.sh"
31375
31376
31377   # We use sed instead of cat because bash on DJGPP gets confused if
31378   # if finds mixed CR/LF and LF-only lines.  Since sed operates in
31379   # text mode, it properly converts lines to CR/LF.  This bash problem
31380   # is reportedly fixed, but why not run on old versions too?
31381   sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
31382     || (rm -f "$cfgfile"; exit 1)
31383
31384   case $xsi_shell in
31385   yes)
31386     cat << \_LT_EOF >> "$cfgfile"
31387
31388 # func_dirname file append nondir_replacement
31389 # Compute the dirname of FILE.  If nonempty, add APPEND to the result,
31390 # otherwise set result to NONDIR_REPLACEMENT.
31391 func_dirname ()
31392 {
31393   case ${1} in
31394     */*) func_dirname_result="${1%/*}${2}" ;;
31395     *  ) func_dirname_result="${3}" ;;
31396   esac
31397 }
31398
31399 # func_basename file
31400 func_basename ()
31401 {
31402   func_basename_result="${1##*/}"
31403 }
31404
31405 # func_dirname_and_basename file append nondir_replacement
31406 # perform func_basename and func_dirname in a single function
31407 # call:
31408 #   dirname:  Compute the dirname of FILE.  If nonempty,
31409 #             add APPEND to the result, otherwise set result
31410 #             to NONDIR_REPLACEMENT.
31411 #             value returned in "$func_dirname_result"
31412 #   basename: Compute filename of FILE.
31413 #             value retuned in "$func_basename_result"
31414 # Implementation must be kept synchronized with func_dirname
31415 # and func_basename. For efficiency, we do not delegate to
31416 # those functions but instead duplicate the functionality here.
31417 func_dirname_and_basename ()
31418 {
31419   case ${1} in
31420     */*) func_dirname_result="${1%/*}${2}" ;;
31421     *  ) func_dirname_result="${3}" ;;
31422   esac
31423   func_basename_result="${1##*/}"
31424 }
31425
31426 # func_stripname prefix suffix name
31427 # strip PREFIX and SUFFIX off of NAME.
31428 # PREFIX and SUFFIX must not contain globbing or regex special
31429 # characters, hashes, percent signs, but SUFFIX may contain a leading
31430 # dot (in which case that matches only a dot).
31431 func_stripname ()
31432 {
31433   # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
31434   # positional parameters, so assign one to ordinary parameter first.
31435   func_stripname_result=${3}
31436   func_stripname_result=${func_stripname_result#"${1}"}
31437   func_stripname_result=${func_stripname_result%"${2}"}
31438 }
31439
31440 # func_opt_split
31441 func_opt_split ()
31442 {
31443   func_opt_split_opt=${1%%=*}
31444   func_opt_split_arg=${1#*=}
31445 }
31446
31447 # func_lo2o object
31448 func_lo2o ()
31449 {
31450   case ${1} in
31451     *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
31452     *)    func_lo2o_result=${1} ;;
31453   esac
31454 }
31455
31456 # func_xform libobj-or-source
31457 func_xform ()
31458 {
31459   func_xform_result=${1%.*}.lo
31460 }
31461
31462 # func_arith arithmetic-term...
31463 func_arith ()
31464 {
31465   func_arith_result=$(( $* ))
31466 }
31467
31468 # func_len string
31469 # STRING may not start with a hyphen.
31470 func_len ()
31471 {
31472   func_len_result=${#1}
31473 }
31474
31475 _LT_EOF
31476     ;;
31477   *) # Bourne compatible functions.
31478     cat << \_LT_EOF >> "$cfgfile"
31479
31480 # func_dirname file append nondir_replacement
31481 # Compute the dirname of FILE.  If nonempty, add APPEND to the result,
31482 # otherwise set result to NONDIR_REPLACEMENT.
31483 func_dirname ()
31484 {
31485   # Extract subdirectory from the argument.
31486   func_dirname_result=`$ECHO "X${1}" | $Xsed -e "$dirname"`
31487   if test "X$func_dirname_result" = "X${1}"; then
31488     func_dirname_result="${3}"
31489   else
31490     func_dirname_result="$func_dirname_result${2}"
31491   fi
31492 }
31493
31494 # func_basename file
31495 func_basename ()
31496 {
31497   func_basename_result=`$ECHO "X${1}" | $Xsed -e "$basename"`
31498 }
31499
31500
31501 # func_stripname prefix suffix name
31502 # strip PREFIX and SUFFIX off of NAME.
31503 # PREFIX and SUFFIX must not contain globbing or regex special
31504 # characters, hashes, percent signs, but SUFFIX may contain a leading
31505 # dot (in which case that matches only a dot).
31506 # func_strip_suffix prefix name
31507 func_stripname ()
31508 {
31509   case ${2} in
31510     .*) func_stripname_result=`$ECHO "X${3}" \
31511            | $Xsed -e "s%^${1}%%" -e "s%\\\\${2}\$%%"`;;
31512     *)  func_stripname_result=`$ECHO "X${3}" \
31513            | $Xsed -e "s%^${1}%%" -e "s%${2}\$%%"`;;
31514   esac
31515 }
31516
31517 # sed scripts:
31518 my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
31519 my_sed_long_arg='1s/^-[^=]*=//'
31520
31521 # func_opt_split
31522 func_opt_split ()
31523 {
31524   func_opt_split_opt=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_opt"`
31525   func_opt_split_arg=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_arg"`
31526 }
31527
31528 # func_lo2o object
31529 func_lo2o ()
31530 {
31531   func_lo2o_result=`$ECHO "X${1}" | $Xsed -e "$lo2o"`
31532 }
31533
31534 # func_xform libobj-or-source
31535 func_xform ()
31536 {
31537   func_xform_result=`$ECHO "X${1}" | $Xsed -e 's/\.[^.]*$/.lo/'`
31538 }
31539
31540 # func_arith arithmetic-term...
31541 func_arith ()
31542 {
31543   func_arith_result=`expr "$@"`
31544 }
31545
31546 # func_len string
31547 # STRING may not start with a hyphen.
31548 func_len ()
31549 {
31550   func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
31551 }
31552
31553 _LT_EOF
31554 esac
31555
31556 case $lt_shell_append in
31557   yes)
31558     cat << \_LT_EOF >> "$cfgfile"
31559
31560 # func_append var value
31561 # Append VALUE to the end of shell variable VAR.
31562 func_append ()
31563 {
31564   eval "$1+=\$2"
31565 }
31566 _LT_EOF
31567     ;;
31568   *)
31569     cat << \_LT_EOF >> "$cfgfile"
31570
31571 # func_append var value
31572 # Append VALUE to the end of shell variable VAR.
31573 func_append ()
31574 {
31575   eval "$1=\$$1\$2"
31576 }
31577
31578 _LT_EOF
31579     ;;
31580   esac
31581
31582
31583   sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
31584     || (rm -f "$cfgfile"; exit 1)
31585
31586   mv -f "$cfgfile" "$ofile" ||
31587     (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
31588   chmod +x "$ofile"
31589
31590
31591     cat <<_LT_EOF >> "$ofile"
31592
31593 # ### BEGIN LIBTOOL TAG CONFIG: CXX
31594
31595 # The linker used to build libraries.
31596 LD=$lt_LD_CXX
31597
31598 # Commands used to build an old-style archive.
31599 old_archive_cmds=$lt_old_archive_cmds_CXX
31600
31601 # A language specific compiler.
31602 CC=$lt_compiler_CXX
31603
31604 # Is the compiler the GNU compiler?
31605 with_gcc=$GCC_CXX
31606
31607 # Compiler flag to turn off builtin functions.
31608 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
31609
31610 # How to pass a linker flag through the compiler.
31611 wl=$lt_lt_prog_compiler_wl_CXX
31612
31613 # Additional compiler flags for building library objects.
31614 pic_flag=$lt_lt_prog_compiler_pic_CXX
31615
31616 # Compiler flag to prevent dynamic linking.
31617 link_static_flag=$lt_lt_prog_compiler_static_CXX
31618
31619 # Does compiler simultaneously support -c and -o options?
31620 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
31621
31622 # Whether or not to add -lc for building shared libraries.
31623 build_libtool_need_lc=$archive_cmds_need_lc_CXX
31624
31625 # Whether or not to disallow shared libs when runtime libs are static.
31626 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
31627
31628 # Compiler flag to allow reflexive dlopens.
31629 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
31630
31631 # Compiler flag to generate shared objects directly from archives.
31632 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
31633
31634 # Whether the compiler copes with passing no objects directly.
31635 compiler_needs_object=$lt_compiler_needs_object_CXX
31636
31637 # Create an old-style archive from a shared archive.
31638 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
31639
31640 # Create a temporary old-style archive to link instead of a shared archive.
31641 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
31642
31643 # Commands used to build a shared archive.
31644 archive_cmds=$lt_archive_cmds_CXX
31645 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
31646
31647 # Commands used to build a loadable module if different from building
31648 # a shared archive.
31649 module_cmds=$lt_module_cmds_CXX
31650 module_expsym_cmds=$lt_module_expsym_cmds_CXX
31651
31652 # Whether we are building with GNU ld or not.
31653 with_gnu_ld=$lt_with_gnu_ld_CXX
31654
31655 # Flag that allows shared libraries with undefined symbols to be built.
31656 allow_undefined_flag=$lt_allow_undefined_flag_CXX
31657
31658 # Flag that enforces no undefined symbols.
31659 no_undefined_flag=$lt_no_undefined_flag_CXX
31660
31661 # Flag to hardcode \$libdir into a binary during linking.
31662 # This must work even if \$libdir does not exist
31663 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
31664
31665 # If ld is used when linking, flag to hardcode \$libdir into a binary
31666 # during linking.  This must work even if \$libdir does not exist.
31667 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
31668
31669 # Whether we need a single "-rpath" flag with a separated argument.
31670 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
31671
31672 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
31673 # DIR into the resulting binary.
31674 hardcode_direct=$hardcode_direct_CXX
31675
31676 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
31677 # DIR into the resulting binary and the resulting library dependency is
31678 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
31679 # library is relocated.
31680 hardcode_direct_absolute=$hardcode_direct_absolute_CXX
31681
31682 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
31683 # into the resulting binary.
31684 hardcode_minus_L=$hardcode_minus_L_CXX
31685
31686 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
31687 # into the resulting binary.
31688 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
31689
31690 # Set to "yes" if building a shared library automatically hardcodes DIR
31691 # into the library and all subsequent libraries and executables linked
31692 # against it.
31693 hardcode_automatic=$hardcode_automatic_CXX
31694
31695 # Set to yes if linker adds runtime paths of dependent libraries
31696 # to runtime path list.
31697 inherit_rpath=$inherit_rpath_CXX
31698
31699 # Whether libtool must link a program against all its dependency libraries.
31700 link_all_deplibs=$link_all_deplibs_CXX
31701
31702 # Fix the shell variable \$srcfile for the compiler.
31703 fix_srcfile_path=$lt_fix_srcfile_path_CXX
31704
31705 # Set to "yes" if exported symbols are required.
31706 always_export_symbols=$always_export_symbols_CXX
31707
31708 # The commands to list exported symbols.
31709 export_symbols_cmds=$lt_export_symbols_cmds_CXX
31710
31711 # Symbols that should not be listed in the preloaded symbols.
31712 exclude_expsyms=$lt_exclude_expsyms_CXX
31713
31714 # Symbols that must always be exported.
31715 include_expsyms=$lt_include_expsyms_CXX
31716
31717 # Commands necessary for linking programs (against libraries) with templates.
31718 prelink_cmds=$lt_prelink_cmds_CXX
31719
31720 # Specify filename containing input files.
31721 file_list_spec=$lt_file_list_spec_CXX
31722
31723 # How to hardcode a shared library path into an executable.
31724 hardcode_action=$hardcode_action_CXX
31725
31726 # The directories searched by this compiler when creating a shared library.
31727 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
31728
31729 # Dependencies to place before and after the objects being linked to
31730 # create a shared library.
31731 predep_objects=$lt_predep_objects_CXX
31732 postdep_objects=$lt_postdep_objects_CXX
31733 predeps=$lt_predeps_CXX
31734 postdeps=$lt_postdeps_CXX
31735
31736 # The library search path used internally by the compiler when linking
31737 # a shared library.
31738 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
31739
31740 # ### END LIBTOOL TAG CONFIG: CXX
31741 _LT_EOF
31742
31743  ;;
31744     "default-1":C)
31745     for ac_file in $CONFIG_FILES; do
31746       # Support "outfile[:infile[:infile...]]"
31747       case "$ac_file" in
31748         *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
31749       esac
31750       # PO directories have a Makefile.in generated from Makefile.in.in.
31751       case "$ac_file" in */Makefile.in)
31752         # Adjust a relative srcdir.
31753         ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
31754         ac_dir_suffix="/`echo "$ac_dir"|sed 's%^\./%%'`"
31755         ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
31756         # In autoconf-2.13 it is called $ac_given_srcdir.
31757         # In autoconf-2.50 it is called $srcdir.
31758         test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
31759         case "$ac_given_srcdir" in
31760           .)  top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
31761           /*) top_srcdir="$ac_given_srcdir" ;;
31762           *)  top_srcdir="$ac_dots$ac_given_srcdir" ;;
31763         esac
31764         # Treat a directory as a PO directory if and only if it has a
31765         # POTFILES.in file. This allows packages to have multiple PO
31766         # directories under different names or in different locations.
31767         if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
31768           rm -f "$ac_dir/POTFILES"
31769           test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
31770           cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[   ]*\$/d" -e "s,.*,     $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES"
31771           POMAKEFILEDEPS="POTFILES.in"
31772           # ALL_LINGUAS, POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES depend
31773           # on $ac_dir but don't depend on user-specified configuration
31774           # parameters.
31775           if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
31776             # The LINGUAS file contains the set of available languages.
31777             if test -n "$OBSOLETE_ALL_LINGUAS"; then
31778               test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete"
31779             fi
31780             ALL_LINGUAS_=`sed -e "/^#/d" -e "s/#.*//" "$ac_given_srcdir/$ac_dir/LINGUAS"`
31781             # Hide the ALL_LINGUAS assigment from automake.
31782             eval 'ALL_LINGUAS''=$ALL_LINGUAS_'
31783             POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS"
31784           else
31785             # The set of available languages was given in configure.in.
31786             eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS'
31787           fi
31788           # Compute POFILES
31789           # as      $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).po)
31790           # Compute UPDATEPOFILES
31791           # as      $(foreach lang, $(ALL_LINGUAS), $(lang).po-update)
31792           # Compute DUMMYPOFILES
31793           # as      $(foreach lang, $(ALL_LINGUAS), $(lang).nop)
31794           # Compute GMOFILES
31795           # as      $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).gmo)
31796           case "$ac_given_srcdir" in
31797             .) srcdirpre= ;;
31798             *) srcdirpre='$(srcdir)/' ;;
31799           esac
31800           POFILES=
31801           UPDATEPOFILES=
31802           DUMMYPOFILES=
31803           GMOFILES=
31804           for lang in $ALL_LINGUAS; do
31805             POFILES="$POFILES $srcdirpre$lang.po"
31806             UPDATEPOFILES="$UPDATEPOFILES $lang.po-update"
31807             DUMMYPOFILES="$DUMMYPOFILES $lang.nop"
31808             GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
31809           done
31810           # CATALOGS depends on both $ac_dir and the user's LINGUAS
31811           # environment variable.
31812           INST_LINGUAS=
31813           if test -n "$ALL_LINGUAS"; then
31814             for presentlang in $ALL_LINGUAS; do
31815               useit=no
31816               if test "%UNSET%" != "$LINGUAS"; then
31817                 desiredlanguages="$LINGUAS"
31818               else
31819                 desiredlanguages="$ALL_LINGUAS"
31820               fi
31821               for desiredlang in $desiredlanguages; do
31822                 # Use the presentlang catalog if desiredlang is
31823                 #   a. equal to presentlang, or
31824                 #   b. a variant of presentlang (because in this case,
31825                 #      presentlang can be used as a fallback for messages
31826                 #      which are not translated in the desiredlang catalog).
31827                 case "$desiredlang" in
31828                   "$presentlang"*) useit=yes;;
31829                 esac
31830               done
31831               if test $useit = yes; then
31832                 INST_LINGUAS="$INST_LINGUAS $presentlang"
31833               fi
31834             done
31835           fi
31836           CATALOGS=
31837           if test -n "$INST_LINGUAS"; then
31838             for lang in $INST_LINGUAS; do
31839               CATALOGS="$CATALOGS $lang.gmo"
31840             done
31841           fi
31842           test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
31843           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"
31844           for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do
31845             if test -f "$f"; then
31846               case "$f" in
31847                 *.orig | *.bak | *~) ;;
31848                 *) cat "$f" >> "$ac_dir/Makefile" ;;
31849               esac
31850             fi
31851           done
31852         fi
31853         ;;
31854       esac
31855     done ;;
31856     "default":C)
31857  ;;
31858
31859   esac
31860 done # for ac_tag
31861
31862
31863 as_fn_exit 0
31864 _ACEOF
31865 ac_clean_files=$ac_clean_files_save
31866
31867 test $ac_write_fail = 0 ||
31868   as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
31869
31870
31871 # configure is writing to config.log, and then calls config.status.
31872 # config.status does its own redirection, appending to config.log.
31873 # Unfortunately, on DOS this fails, as config.log is still kept open
31874 # by configure, so config.status won't be able to write to it; its
31875 # output is simply discarded.  So we exec the FD to /dev/null,
31876 # effectively closing config.log, so it can be properly (re)opened and
31877 # appended to by config.status.  When coming back to configure, we
31878 # need to make the FD available again.
31879 if test "$no_create" != yes; then
31880   ac_cs_success=:
31881   ac_config_status_args=
31882   test "$silent" = yes &&
31883     ac_config_status_args="$ac_config_status_args --quiet"
31884   exec 5>/dev/null
31885   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
31886   exec 5>>config.log
31887   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
31888   # would make configure fail if this is the last instruction.
31889   $ac_cs_success || as_fn_exit $?
31890 fi
31891 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
31892   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
31893 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
31894 fi
31895
31896
31897 if test "${support_bat}" = "yes" ; then
31898    if test "x$QMAKE" = "xnone"; then
31899       as_fn_error "Could not find qmake $PATH. Check your Qt installation" "$LINENO" 5
31900    fi
31901
31902    QMAKEBIN="qmake"
31903    cd src/qt-console
31904    echo "Creating bat Makefile"
31905    touch bat
31906    chmod 755 bat
31907    rm -f Makefile
31908    $QMAKEBIN
31909    ${MAKE:-make} clean
31910    cd ${BUILD_DIR}
31911 fi
31912
31913 if test X"$GCC" = "Xyes" ; then
31914   echo "Doing make of dependencies"
31915   ${MAKE:-make} depend
31916 fi
31917
31918 cd src/qt-console
31919 chmod 755 install_conf_file build-depkgs-qt-console
31920 cd ${BUILD_DIR}
31921
31922 cd scripts
31923 chmod 755 startmysql stopmysql bacula startit stopit btraceback mtx-changer
31924 chmod 755 dvd-handler dvd-simulator
31925 chmod 755 bconsole gconsole mtx-changer devel_bacula logrotate
31926 cd ..
31927
31928 c=updatedb
31929 chmod 755 $c/update_mysql_tables_10_to_11   $c/update_sqlite3_tables_10_to_11
31930 chmod 755 $c/update_postgresql_tables_10_to_11
31931
31932 c=src/cats
31933
31934 chmod 755 $c/create_bacula_database   $c/update_bacula_tables  $c/make_bacula_tables
31935 chmod 755 $c/grant_bacula_privileges  $c/drop_bacula_tables    $c/drop_bacula_database
31936
31937 chmod 755 $c/create_mysql_database    $c/update_mysql_tables   $c/make_mysql_tables
31938 chmod 755 $c/grant_mysql_privileges   $c/drop_mysql_tables     $c/drop_mysql_database
31939
31940 chmod 755 $c/create_sqlite3_database   $c/update_sqlite3_tables  $c/make_sqlite3_tables
31941 chmod 755 $c/grant_sqlite3_privileges  $c/drop_sqlite3_tables    $c/drop_sqlite3_database
31942
31943 chmod 755 $c/create_postgresql_database  $c/update_postgresql_tables $c/make_postgresql_tables
31944 chmod 755 $c/grant_postgresql_privileges $c/drop_postgresql_tables   $c/drop_postgresql_database
31945
31946 chmod 755 $c/create_ingres_database  $c/update_ingres_tables $c/make_ingres_tables
31947 chmod 755 $c/grant_ingres_privileges $c/drop_ingres_tables   $c/drop_ingres_database
31948
31949
31950 chmod 755 $c/make_catalog_backup $c/delete_catalog_backup  $c/make_catalog_backup.pl
31951 chmod 755 $c/sqlite
31952 chmod 755 $c/mysql
31953
31954 chmod 755 src/win32/build-depkgs-mingw32
31955
31956 if test "x$ac_cv_sys_largefile_CFLAGS" != "xno" ; then
31957    largefile_support="yes"
31958 fi
31959
31960 if test X"$GCC" = "Xyes" ; then
31961                CCVERSION=`${CC} --version | tr '\n' ' ' | cut -f 3 -d ' '`
31962    if test "x${CCVERSION}" = "x" ; then
31963       CCVERSION=`${CC} --version | tr '\n' ' ' | cut -f 1 -d ' '`
31964    fi
31965    CXXVERSION=`${CXX} --version | tr '\n' ' ' | cut -f 3 -d ' '`
31966    if test x"${CXXVERSION}" = x ; then
31967       CXXVERSION=`${CXX} --version | tr '\n' ' ' | cut -f 1 -d ' '`
31968    fi
31969 fi
31970
31971 # clean up any old junk
31972 echo " "
31973 echo "Cleaning up"
31974 echo " "
31975 ${MAKE:-make} clean
31976
31977 if test "x${db_type}" = "xInternal" ; then
31978    echo " "
31979    echo " "
31980    echo "You have not specified either --enable-client-only or one of the"
31981    echo "  supported databases: MySQL, PostgreSQL, Ingres, SQLite3 or DBI."
31982    echo "  This is not permitted. Please reconfigure."
31983    echo " "
31984    echo "Aborting the configuration ..."
31985    echo " "
31986    echo " "
31987    exit 1
31988 fi
31989
31990 echo "
31991 Configuration on `date`:
31992
31993    Host:                    ${host}${post_host} -- ${DISTNAME} ${DISTVER}
31994    Bacula version:          ${BACULA} ${VERSION} (${DATE})
31995    Source code location:    ${srcdir}
31996    Install binaries:        ${sbindir}
31997    Install libraries:       ${libdir}
31998    Install config files:    ${sysconfdir}
31999    Scripts directory:       ${scriptdir}
32000    Archive directory:       ${archivedir}
32001    Working directory:       ${working_dir}
32002    PID directory:           ${piddir}
32003    Subsys directory:        ${subsysdir}
32004    Man directory:           ${mandir}
32005    Data directory:          ${datarootdir}
32006    Plugin directory:        ${plugindir}
32007    C Compiler:              ${CC} ${CCVERSION}
32008    C++ Compiler:            ${CXX} ${CXXVERSION}
32009    Compiler flags:          ${WCFLAGS} ${CFLAGS}
32010    Linker flags:            ${WLDFLAGS} ${LDFLAGS}
32011    Libraries:               ${LIBS}
32012    Statically Linked Tools: ${support_static_tools}
32013    Statically Linked FD:    ${support_static_fd}
32014    Statically Linked SD:    ${support_static_sd}
32015    Statically Linked DIR:   ${support_static_dir}
32016    Statically Linked CONS:  ${support_static_cons}
32017    Database type:           ${db_type}
32018    Database port:           ${db_port}
32019    Database lib:            ${DB_LIBS}
32020    Database name:           ${db_name}
32021    Database user:           ${db_user}
32022
32023    Job Output Email:        ${job_email}
32024    Traceback Email:         ${dump_email}
32025    SMTP Host Address:       ${smtp_host}
32026
32027    Director Port:           ${dir_port}
32028    File daemon Port:        ${fd_port}
32029    Storage daemon Port:     ${sd_port}
32030
32031    Director User:           ${dir_user}
32032    Director Group:          ${dir_group}
32033    Storage Daemon User:     ${sd_user}
32034    Storage DaemonGroup:     ${sd_group}
32035    File Daemon User:        ${fd_user}
32036    File Daemon Group:       ${fd_group}
32037
32038    SQL binaries Directory   ${SQL_BINDIR}
32039
32040    Large file support:      $largefile_support
32041    Bacula conio support:    ${got_conio} ${CONS_LIBS}
32042    readline support:        ${got_readline} ${PRTREADLINE_SRC}
32043    TCP Wrappers support:    ${TCPW_MSG} ${WRAPLIBS}
32044    TLS support:             ${support_tls}
32045    Encryption support:      ${support_crypto}
32046    ZLIB support:            ${have_zlib}
32047    enable-smartalloc:       ${support_smartalloc}
32048    enable-lockmgr:          ${support_lockmgr}
32049    bat support:             ${support_bat}
32050    enable-gnome:            ${support_gnome} ${gnome_version}
32051    enable-bwx-console:      ${support_wx_console} ${wx_version}
32052    enable-tray-monitor:     ${support_tray_monitor}
32053    client-only:             ${build_client_only}
32054    build-dird:              ${build_dird}
32055    build-stored:            ${build_stored}
32056    Plugin support:          ${have_plugins}
32057    ACL support:             ${have_acl}
32058    XATTR support:           ${have_xattr}
32059    Python support:          ${support_python} ${PYTHON_LIBS}
32060    Batch insert enabled:    ${support_batch_insert}
32061
32062   " > config.out
32063
32064 # create a small shell script useful for support with
32065 # configure options and config.out info
32066 cat > scripts/bacula_config << EOF
32067 #!/bin/sh
32068 cat << __EOC__
32069 $ $0 $ac_configure_args
32070 EOF
32071 cat config.out >> scripts/bacula_config
32072 echo __EOC__ >> scripts/bacula_config
32073 chmod 755 scripts/bacula_config
32074
32075 cat config.out
32076
32077 # Display a warning message if postgresql client lib is <= 8.1
32078 if test x$DB_TYPE = xpostgresql -a x$ac_cv_lib_pq_PQisthreadsafe != xyes \
32079         -a x$support_batch_insert = xyes
32080 then
32081         echo "WARNING: Your PostgreSQL client library is too old to detect "
32082         echo " if it was compiled with --enable-thread-safety, consider to"
32083         echo " upgrade it in order to avoid problems with Batch insert mode"
32084         echo
32085 fi