]> git.sur5r.net Git - bacula/bacula/blob - bacula/configure
Attempt to fix duplicate job kill seg fault
[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 AFS_LIBS
762 AFS_CFLAGS
763 ZLIBS
764 LIBOBJS
765 X_EXTRA_LIBS
766 X_LIBS
767 X_PRE_LIBS
768 X_CFLAGS
769 XMKMF
770 GETCONF
771 DB_TYPE
772 cats
773 DB_PROG_LIB
774 DB_PROG
775 uncomment_dbi
776 DBI_DBD_DRIVERDIR
777 SQL_BINDIR
778 SQL_INCLUDE
779 SQL_LFLAGS
780 SBINPERM
781 fd_group
782 fd_user
783 sd_group
784 sd_user
785 dir_group
786 dir_user
787 db_port
788 db_password
789 db_user
790 db_name
791 mon_sd_password
792 mon_fd_password
793 mon_dir_password
794 sd_password
795 fd_password
796 dir_password
797 sd_port
798 fd_port
799 dir_port
800 baseport
801 subsysdir
802 piddir
803 smtp_host
804 job_email
805 dump_email
806 plugindir
807 logdir
808 bsrdir
809 scriptdir
810 hostname
811 basename
812 archivedir
813 working_dir
814 OPENSSL_INC
815 OPENSSL_LIBS
816 PYTHON_INCDIR
817 PYTHON_LIBS
818 READLINE_SRC
819 CONS_LDFLAGS
820 CONS_LIBS
821 CONS_SRC
822 CONS_OBJ
823 CONS_INC
824 STORED_DIR
825 DIR_TOOLS
826 DIRD_DIR
827 ALL_DIRS
828 STATIC_WX_CONS
829 STATIC_GNOME_CONS
830 STATIC_CONS
831 STATIC_DIR
832 STATIC_SD
833 STATIC_FD
834 TTOOL_LDFLAGS
835 TRAY_MONITOR_DIR
836 TRAY_MONITOR_LDFLAGS
837 TRAY_MONITOR_CPPFLAGS
838 WX_DIR
839 WXCONS_LDFLAGS
840 WXCONS_CPPFLAGS
841 QWT
842 QWT_LIB
843 QWT_LDFLAGS
844 QWT_INC
845 BAT_DIR
846 INTL_LIBTOOL_SUFFIX_PREFIX
847 INTLOBJS
848 GENCAT
849 INSTOBJEXT
850 DATADIRNAME
851 CATOBJEXT
852 USE_INCLUDED_LIBINTL
853 BUILD_INCLUDED_LIBINTL
854 INTLBISON
855 HAVE_WPRINTF
856 HAVE_SNPRINTF
857 HAVE_ASPRINTF
858 HAVE_POSIX_PRINTF
859 GLIBC21
860 ALLOCA
861 GLIBC2
862 POSUB
863 LTLIBINTL
864 LIBINTL
865 INTLLIBS
866 LTLIBICONV
867 LIBICONV
868 INTL_MACOSX_LIBS
869 MSGMERGE
870 XGETTEXT
871 GMSGFMT
872 MSGFMT
873 USE_NLS
874 MKINSTALLDIRS
875 SET_MAKE
876 HAVE_DARWIN_OS_FALSE
877 HAVE_DARWIN_OS_TRUE
878 HAVE_IRIX_OS_FALSE
879 HAVE_IRIX_OS_TRUE
880 HAVE_SGI_OS_FALSE
881 HAVE_SGI_OS_TRUE
882 HAVE_BSDI_OS_FALSE
883 HAVE_BSDI_OS_TRUE
884 HAVE_OPENBSD_OS_FALSE
885 HAVE_OPENBSD_OS_TRUE
886 HAVE_NETBSD_OS_FALSE
887 HAVE_NETBSD_OS_TRUE
888 HAVE_FREEBSD_OS_FALSE
889 HAVE_FREEBSD_OS_TRUE
890 HAVE_LINUX_OS_FALSE
891 HAVE_LINUX_OS_TRUE
892 HAVE_HPUX_OS_FALSE
893 HAVE_HPUX_OS_TRUE
894 HAVE_AIX_OS_FALSE
895 HAVE_AIX_OS_TRUE
896 HAVE_OSF1_OS_FALSE
897 HAVE_OSF1_OS_TRUE
898 HAVE_SUN_OS_FALSE
899 HAVE_SUN_OS_TRUE
900 INCLUDE_UNINSTALL_TARGET
901 INCLUDE_INSTALL_TARGET
902 FD_PLUGIN_DIR
903 QMAKE_LIBTOOL
904 LIBTOOL_CLEAN_TARGET
905 LIBTOOL_UNINSTALL_TARGET
906 LIBTOOL_INSTALL_TARGET
907 DEFAULT_SHARED_OBJECT_TYPE
908 DEFAULT_ARCHIVE_TYPE
909 DEFAULT_OBJECT_TYPE
910 CXXCPP
911 OTOOL64
912 OTOOL
913 LIPO
914 NMEDIT
915 DSYMUTIL
916 lt_ECHO
917 RANLIB
918 STRIP
919 OBJDUMP
920 LN_S
921 NM
922 ac_ct_DUMPBIN
923 DUMPBIN
924 LD
925 FGREP
926 host_os
927 host_vendor
928 host_cpu
929 host
930 build_os
931 build_vendor
932 build_cpu
933 build
934 LIBTOOL
935 LOCAL_DEFS
936 LOCAL_LDFLAGS
937 LOCAL_CFLAGS
938 LOCAL_LIBS
939 MAKE_SHELL
940 ARFLAGS
941 AWK
942 PIDOF
943 CDRECORD
944 WXFLAGS
945 WXCONFIG
946 GMAKE
947 QMAKE
948 PKGCONFIG
949 DVDRWFORMAT
950 DVDRWMEDIAINFO
951 GROWISOFS
952 PYTHON
953 MKISOFS
954 DD
955 MTX
956 OPENSSL
957 AR
958 TBL
959 CMP
960 ECHO
961 SED
962 CP
963 REMOVE
964 MV
965 INSTALL_DATA
966 INSTALL_SCRIPT
967 INSTALL_PROGRAM
968 EGREP
969 GREP
970 CPP
971 ac_ct_CXX
972 CXXFLAGS
973 CXX
974 OBJEXT
975 EXEEXT
976 ac_ct_CC
977 CPPFLAGS
978 LDFLAGS
979 CFLAGS
980 CC
981 LIBBACFIND_LT_RELEASE
982 LIBBACSQL_LT_RELEASE
983 LIBBACPY_LT_RELEASE
984 LIBBACCFG_LT_RELEASE
985 LIBBAC_LT_RELEASE
986 BDB_VERSION
987 post_host
988 BACULA
989 LSMDATE
990 DATE
991 VERSION
992 FALSEPRG
993 TRUEPRG
994 WIN32TOPDIR
995 WIN32MAINDIR
996 WIN32BUILDDIR
997 TOP_DIR
998 BUILD_DIR
999 target_alias
1000 host_alias
1001 build_alias
1002 LIBS
1003 ECHO_T
1004 ECHO_N
1005 ECHO_C
1006 DEFS
1007 mandir
1008 localedir
1009 libdir
1010 psdir
1011 pdfdir
1012 dvidir
1013 htmldir
1014 infodir
1015 docdir
1016 oldincludedir
1017 includedir
1018 localstatedir
1019 sharedstatedir
1020 sysconfdir
1021 datadir
1022 datarootdir
1023 libexecdir
1024 sbindir
1025 bindir
1026 program_transform_name
1027 prefix
1028 exec_prefix
1029 PACKAGE_URL
1030 PACKAGE_BUGREPORT
1031 PACKAGE_STRING
1032 PACKAGE_VERSION
1033 PACKAGE_TARNAME
1034 PACKAGE_NAME
1035 PATH_SEPARATOR
1036 SHELL'
1037 ac_subst_files='MCOMMON'
1038 ac_user_opts='
1039 enable_option_checking
1040 enable_libtool
1041 enable_shared
1042 enable_static
1043 with_pic
1044 enable_fast_install
1045 with_gnu_ld
1046 enable_libtool_lock
1047 enable_includes
1048 enable_nls
1049 enable_rpath
1050 with_libiconv_prefix
1051 with_libintl_prefix
1052 with_included_gettext
1053 enable_gnome
1054 enable_bat
1055 enable_bwx_console
1056 enable_tray_monitor
1057 enable_smartalloc
1058 enable_lockmgr
1059 enable_static_tools
1060 enable_static_fd
1061 enable_static_sd
1062 enable_static_dir
1063 enable_static_cons
1064 enable_client_only
1065 enable_build_dird
1066 enable_build_stored
1067 enable_conio
1068 enable_ipv6
1069 enable_readline
1070 with_readline
1071 with_python
1072 with_tcp_wrappers
1073 with_openssl
1074 with_working_dir
1075 with_archivedir
1076 with_basename
1077 with_hostname
1078 with_scriptdir
1079 with_bsrdir
1080 with_logdir
1081 with_plugindir
1082 with_dump_email
1083 with_job_email
1084 with_smtp_host
1085 with_pid_dir
1086 with_subsys_dir
1087 with_baseport
1088 with_dir_password
1089 with_fd_password
1090 with_sd_password
1091 with_mon_dir_password
1092 with_mon_fd_password
1093 with_mon_sd_password
1094 with_db_name
1095 with_db_user
1096 with_db_password
1097 with_db_port
1098 with_dir_user
1099 with_dir_group
1100 with_sd_user
1101 with_sd_group
1102 with_fd_user
1103 with_fd_group
1104 with_sbin_perm
1105 with_postgresql
1106 with_mysql
1107 with_embedded_mysql
1108 with_ingres
1109 with_sqlite3
1110 with_dbi
1111 with_dbi_driver
1112 enable_batch_insert
1113 enable_largefile
1114 with_x
1115 enable_afs
1116 with_afsdir
1117 enable_acl
1118 enable_xattr
1119 '
1120       ac_precious_vars='build_alias
1121 host_alias
1122 target_alias
1123 CC
1124 CFLAGS
1125 LDFLAGS
1126 LIBS
1127 CPPFLAGS
1128 CXX
1129 CXXFLAGS
1130 CCC
1131 CPP
1132 WXCONFIG
1133 WXFLAGS
1134 CXXCPP
1135 XMKMF'
1136
1137
1138 # Initialize some variables set by options.
1139 ac_init_help=
1140 ac_init_version=false
1141 ac_unrecognized_opts=
1142 ac_unrecognized_sep=
1143 # The variables have the same names as the options, with
1144 # dashes changed to underlines.
1145 cache_file=/dev/null
1146 exec_prefix=NONE
1147 no_create=
1148 no_recursion=
1149 prefix=NONE
1150 program_prefix=NONE
1151 program_suffix=NONE
1152 program_transform_name=s,x,x,
1153 silent=
1154 site=
1155 srcdir=
1156 verbose=
1157 x_includes=NONE
1158 x_libraries=NONE
1159
1160 # Installation directory options.
1161 # These are left unexpanded so users can "make install exec_prefix=/foo"
1162 # and all the variables that are supposed to be based on exec_prefix
1163 # by default will actually change.
1164 # Use braces instead of parens because sh, perl, etc. also accept them.
1165 # (The list follows the same order as the GNU Coding Standards.)
1166 bindir='${exec_prefix}/bin'
1167 sbindir='${exec_prefix}/sbin'
1168 libexecdir='${exec_prefix}/libexec'
1169 datarootdir='${prefix}/share'
1170 datadir='${datarootdir}'
1171 sysconfdir='${prefix}/etc'
1172 sharedstatedir='${prefix}/com'
1173 localstatedir='${prefix}/var'
1174 includedir='${prefix}/include'
1175 oldincludedir='/usr/include'
1176 docdir='${datarootdir}/doc/${PACKAGE}'
1177 infodir='${datarootdir}/info'
1178 htmldir='${docdir}'
1179 dvidir='${docdir}'
1180 pdfdir='${docdir}'
1181 psdir='${docdir}'
1182 libdir='${exec_prefix}/lib'
1183 localedir='${datarootdir}/locale'
1184 mandir='${datarootdir}/man'
1185
1186 ac_prev=
1187 ac_dashdash=
1188 for ac_option
1189 do
1190   # If the previous option needs an argument, assign it.
1191   if test -n "$ac_prev"; then
1192     eval $ac_prev=\$ac_option
1193     ac_prev=
1194     continue
1195   fi
1196
1197   case $ac_option in
1198   *=*)  ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1199   *)    ac_optarg=yes ;;
1200   esac
1201
1202   # Accept the important Cygnus configure options, so we can diagnose typos.
1203
1204   case $ac_dashdash$ac_option in
1205   --)
1206     ac_dashdash=yes ;;
1207
1208   -bindir | --bindir | --bindi | --bind | --bin | --bi)
1209     ac_prev=bindir ;;
1210   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1211     bindir=$ac_optarg ;;
1212
1213   -build | --build | --buil | --bui | --bu)
1214     ac_prev=build_alias ;;
1215   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1216     build_alias=$ac_optarg ;;
1217
1218   -cache-file | --cache-file | --cache-fil | --cache-fi \
1219   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1220     ac_prev=cache_file ;;
1221   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1222   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1223     cache_file=$ac_optarg ;;
1224
1225   --config-cache | -C)
1226     cache_file=config.cache ;;
1227
1228   -datadir | --datadir | --datadi | --datad)
1229     ac_prev=datadir ;;
1230   -datadir=* | --datadir=* | --datadi=* | --datad=*)
1231     datadir=$ac_optarg ;;
1232
1233   -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1234   | --dataroo | --dataro | --datar)
1235     ac_prev=datarootdir ;;
1236   -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1237   | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1238     datarootdir=$ac_optarg ;;
1239
1240   -disable-* | --disable-*)
1241     ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1242     # Reject names that are not valid shell variable names.
1243     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1244       as_fn_error "invalid feature name: $ac_useropt"
1245     ac_useropt_orig=$ac_useropt
1246     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1247     case $ac_user_opts in
1248       *"
1249 "enable_$ac_useropt"
1250 "*) ;;
1251       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1252          ac_unrecognized_sep=', ';;
1253     esac
1254     eval enable_$ac_useropt=no ;;
1255
1256   -docdir | --docdir | --docdi | --doc | --do)
1257     ac_prev=docdir ;;
1258   -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1259     docdir=$ac_optarg ;;
1260
1261   -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1262     ac_prev=dvidir ;;
1263   -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1264     dvidir=$ac_optarg ;;
1265
1266   -enable-* | --enable-*)
1267     ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1268     # Reject names that are not valid shell variable names.
1269     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1270       as_fn_error "invalid feature name: $ac_useropt"
1271     ac_useropt_orig=$ac_useropt
1272     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1273     case $ac_user_opts in
1274       *"
1275 "enable_$ac_useropt"
1276 "*) ;;
1277       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1278          ac_unrecognized_sep=', ';;
1279     esac
1280     eval enable_$ac_useropt=\$ac_optarg ;;
1281
1282   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1283   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1284   | --exec | --exe | --ex)
1285     ac_prev=exec_prefix ;;
1286   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1287   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1288   | --exec=* | --exe=* | --ex=*)
1289     exec_prefix=$ac_optarg ;;
1290
1291   -gas | --gas | --ga | --g)
1292     # Obsolete; use --with-gas.
1293     with_gas=yes ;;
1294
1295   -help | --help | --hel | --he | -h)
1296     ac_init_help=long ;;
1297   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1298     ac_init_help=recursive ;;
1299   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1300     ac_init_help=short ;;
1301
1302   -host | --host | --hos | --ho)
1303     ac_prev=host_alias ;;
1304   -host=* | --host=* | --hos=* | --ho=*)
1305     host_alias=$ac_optarg ;;
1306
1307   -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1308     ac_prev=htmldir ;;
1309   -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1310   | --ht=*)
1311     htmldir=$ac_optarg ;;
1312
1313   -includedir | --includedir | --includedi | --included | --include \
1314   | --includ | --inclu | --incl | --inc)
1315     ac_prev=includedir ;;
1316   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1317   | --includ=* | --inclu=* | --incl=* | --inc=*)
1318     includedir=$ac_optarg ;;
1319
1320   -infodir | --infodir | --infodi | --infod | --info | --inf)
1321     ac_prev=infodir ;;
1322   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1323     infodir=$ac_optarg ;;
1324
1325   -libdir | --libdir | --libdi | --libd)
1326     ac_prev=libdir ;;
1327   -libdir=* | --libdir=* | --libdi=* | --libd=*)
1328     libdir=$ac_optarg ;;
1329
1330   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1331   | --libexe | --libex | --libe)
1332     ac_prev=libexecdir ;;
1333   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1334   | --libexe=* | --libex=* | --libe=*)
1335     libexecdir=$ac_optarg ;;
1336
1337   -localedir | --localedir | --localedi | --localed | --locale)
1338     ac_prev=localedir ;;
1339   -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1340     localedir=$ac_optarg ;;
1341
1342   -localstatedir | --localstatedir | --localstatedi | --localstated \
1343   | --localstate | --localstat | --localsta | --localst | --locals)
1344     ac_prev=localstatedir ;;
1345   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1346   | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1347     localstatedir=$ac_optarg ;;
1348
1349   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1350     ac_prev=mandir ;;
1351   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1352     mandir=$ac_optarg ;;
1353
1354   -nfp | --nfp | --nf)
1355     # Obsolete; use --without-fp.
1356     with_fp=no ;;
1357
1358   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1359   | --no-cr | --no-c | -n)
1360     no_create=yes ;;
1361
1362   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1363   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1364     no_recursion=yes ;;
1365
1366   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1367   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1368   | --oldin | --oldi | --old | --ol | --o)
1369     ac_prev=oldincludedir ;;
1370   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1371   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1372   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1373     oldincludedir=$ac_optarg ;;
1374
1375   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1376     ac_prev=prefix ;;
1377   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1378     prefix=$ac_optarg ;;
1379
1380   -program-prefix | --program-prefix | --program-prefi | --program-pref \
1381   | --program-pre | --program-pr | --program-p)
1382     ac_prev=program_prefix ;;
1383   -program-prefix=* | --program-prefix=* | --program-prefi=* \
1384   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1385     program_prefix=$ac_optarg ;;
1386
1387   -program-suffix | --program-suffix | --program-suffi | --program-suff \
1388   | --program-suf | --program-su | --program-s)
1389     ac_prev=program_suffix ;;
1390   -program-suffix=* | --program-suffix=* | --program-suffi=* \
1391   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1392     program_suffix=$ac_optarg ;;
1393
1394   -program-transform-name | --program-transform-name \
1395   | --program-transform-nam | --program-transform-na \
1396   | --program-transform-n | --program-transform- \
1397   | --program-transform | --program-transfor \
1398   | --program-transfo | --program-transf \
1399   | --program-trans | --program-tran \
1400   | --progr-tra | --program-tr | --program-t)
1401     ac_prev=program_transform_name ;;
1402   -program-transform-name=* | --program-transform-name=* \
1403   | --program-transform-nam=* | --program-transform-na=* \
1404   | --program-transform-n=* | --program-transform-=* \
1405   | --program-transform=* | --program-transfor=* \
1406   | --program-transfo=* | --program-transf=* \
1407   | --program-trans=* | --program-tran=* \
1408   | --progr-tra=* | --program-tr=* | --program-t=*)
1409     program_transform_name=$ac_optarg ;;
1410
1411   -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1412     ac_prev=pdfdir ;;
1413   -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1414     pdfdir=$ac_optarg ;;
1415
1416   -psdir | --psdir | --psdi | --psd | --ps)
1417     ac_prev=psdir ;;
1418   -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1419     psdir=$ac_optarg ;;
1420
1421   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1422   | -silent | --silent | --silen | --sile | --sil)
1423     silent=yes ;;
1424
1425   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1426     ac_prev=sbindir ;;
1427   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1428   | --sbi=* | --sb=*)
1429     sbindir=$ac_optarg ;;
1430
1431   -sharedstatedir | --sharedstatedir | --sharedstatedi \
1432   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1433   | --sharedst | --shareds | --shared | --share | --shar \
1434   | --sha | --sh)
1435     ac_prev=sharedstatedir ;;
1436   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1437   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1438   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1439   | --sha=* | --sh=*)
1440     sharedstatedir=$ac_optarg ;;
1441
1442   -site | --site | --sit)
1443     ac_prev=site ;;
1444   -site=* | --site=* | --sit=*)
1445     site=$ac_optarg ;;
1446
1447   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1448     ac_prev=srcdir ;;
1449   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1450     srcdir=$ac_optarg ;;
1451
1452   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1453   | --syscon | --sysco | --sysc | --sys | --sy)
1454     ac_prev=sysconfdir ;;
1455   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1456   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1457     sysconfdir=$ac_optarg ;;
1458
1459   -target | --target | --targe | --targ | --tar | --ta | --t)
1460     ac_prev=target_alias ;;
1461   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1462     target_alias=$ac_optarg ;;
1463
1464   -v | -verbose | --verbose | --verbos | --verbo | --verb)
1465     verbose=yes ;;
1466
1467   -version | --version | --versio | --versi | --vers | -V)
1468     ac_init_version=: ;;
1469
1470   -with-* | --with-*)
1471     ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1472     # Reject names that are not valid shell variable names.
1473     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1474       as_fn_error "invalid package name: $ac_useropt"
1475     ac_useropt_orig=$ac_useropt
1476     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1477     case $ac_user_opts in
1478       *"
1479 "with_$ac_useropt"
1480 "*) ;;
1481       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1482          ac_unrecognized_sep=', ';;
1483     esac
1484     eval with_$ac_useropt=\$ac_optarg ;;
1485
1486   -without-* | --without-*)
1487     ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1488     # Reject names that are not valid shell variable names.
1489     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1490       as_fn_error "invalid package name: $ac_useropt"
1491     ac_useropt_orig=$ac_useropt
1492     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1493     case $ac_user_opts in
1494       *"
1495 "with_$ac_useropt"
1496 "*) ;;
1497       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1498          ac_unrecognized_sep=', ';;
1499     esac
1500     eval with_$ac_useropt=no ;;
1501
1502   --x)
1503     # Obsolete; use --with-x.
1504     with_x=yes ;;
1505
1506   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1507   | --x-incl | --x-inc | --x-in | --x-i)
1508     ac_prev=x_includes ;;
1509   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1510   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1511     x_includes=$ac_optarg ;;
1512
1513   -x-libraries | --x-libraries | --x-librarie | --x-librari \
1514   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1515     ac_prev=x_libraries ;;
1516   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1517   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1518     x_libraries=$ac_optarg ;;
1519
1520   -*) as_fn_error "unrecognized option: \`$ac_option'
1521 Try \`$0 --help' for more information."
1522     ;;
1523
1524   *=*)
1525     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1526     # Reject names that are not valid shell variable names.
1527     case $ac_envvar in #(
1528       '' | [0-9]* | *[!_$as_cr_alnum]* )
1529       as_fn_error "invalid variable name: \`$ac_envvar'" ;;
1530     esac
1531     eval $ac_envvar=\$ac_optarg
1532     export $ac_envvar ;;
1533
1534   *)
1535     # FIXME: should be removed in autoconf 3.0.
1536     $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1537     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1538       $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1539     : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1540     ;;
1541
1542   esac
1543 done
1544
1545 if test -n "$ac_prev"; then
1546   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1547   as_fn_error "missing argument to $ac_option"
1548 fi
1549
1550 if test -n "$ac_unrecognized_opts"; then
1551   case $enable_option_checking in
1552     no) ;;
1553     fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;;
1554     *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1555   esac
1556 fi
1557
1558 # Check all directory arguments for consistency.
1559 for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
1560                 datadir sysconfdir sharedstatedir localstatedir includedir \
1561                 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1562                 libdir localedir mandir
1563 do
1564   eval ac_val=\$$ac_var
1565   # Remove trailing slashes.
1566   case $ac_val in
1567     */ )
1568       ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1569       eval $ac_var=\$ac_val;;
1570   esac
1571   # Be sure to have absolute directory names.
1572   case $ac_val in
1573     [\\/$]* | ?:[\\/]* )  continue;;
1574     NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1575   esac
1576   as_fn_error "expected an absolute directory name for --$ac_var: $ac_val"
1577 done
1578
1579 # There might be people who depend on the old broken behavior: `$host'
1580 # used to hold the argument of --host etc.
1581 # FIXME: To remove some day.
1582 build=$build_alias
1583 host=$host_alias
1584 target=$target_alias
1585
1586 # FIXME: To remove some day.
1587 if test "x$host_alias" != x; then
1588   if test "x$build_alias" = x; then
1589     cross_compiling=maybe
1590     $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1591     If a cross compiler is detected then cross compile mode will be used." >&2
1592   elif test "x$build_alias" != "x$host_alias"; then
1593     cross_compiling=yes
1594   fi
1595 fi
1596
1597 ac_tool_prefix=
1598 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1599
1600 test "$silent" = yes && exec 6>/dev/null
1601
1602
1603 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1604 ac_ls_di=`ls -di .` &&
1605 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1606   as_fn_error "working directory cannot be determined"
1607 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1608   as_fn_error "pwd does not report name of working directory"
1609
1610
1611 # Find the source files, if location was not specified.
1612 if test -z "$srcdir"; then
1613   ac_srcdir_defaulted=yes
1614   # Try the directory containing this script, then the parent directory.
1615   ac_confdir=`$as_dirname -- "$as_myself" ||
1616 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1617          X"$as_myself" : 'X\(//\)[^/]' \| \
1618          X"$as_myself" : 'X\(//\)$' \| \
1619          X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1620 $as_echo X"$as_myself" |
1621     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1622             s//\1/
1623             q
1624           }
1625           /^X\(\/\/\)[^/].*/{
1626             s//\1/
1627             q
1628           }
1629           /^X\(\/\/\)$/{
1630             s//\1/
1631             q
1632           }
1633           /^X\(\/\).*/{
1634             s//\1/
1635             q
1636           }
1637           s/.*/./; q'`
1638   srcdir=$ac_confdir
1639   if test ! -r "$srcdir/$ac_unique_file"; then
1640     srcdir=..
1641   fi
1642 else
1643   ac_srcdir_defaulted=no
1644 fi
1645 if test ! -r "$srcdir/$ac_unique_file"; then
1646   test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1647   as_fn_error "cannot find sources ($ac_unique_file) in $srcdir"
1648 fi
1649 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1650 ac_abs_confdir=`(
1651         cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
1652         pwd)`
1653 # When building in place, set srcdir=.
1654 if test "$ac_abs_confdir" = "$ac_pwd"; then
1655   srcdir=.
1656 fi
1657 # Remove unnecessary trailing slashes from srcdir.
1658 # Double slashes in file names in object file debugging info
1659 # mess up M-x gdb in Emacs.
1660 case $srcdir in
1661 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1662 esac
1663 for ac_var in $ac_precious_vars; do
1664   eval ac_env_${ac_var}_set=\${${ac_var}+set}
1665   eval ac_env_${ac_var}_value=\$${ac_var}
1666   eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1667   eval ac_cv_env_${ac_var}_value=\$${ac_var}
1668 done
1669
1670 #
1671 # Report the --help message.
1672 #
1673 if test "$ac_init_help" = "long"; then
1674   # Omit some internal or obsolete options to make the list less imposing.
1675   # This message is too long to be a string in the A/UX 3.1 sh.
1676   cat <<_ACEOF
1677 \`configure' configures this package to adapt to many kinds of systems.
1678
1679 Usage: $0 [OPTION]... [VAR=VALUE]...
1680
1681 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1682 VAR=VALUE.  See below for descriptions of some of the useful variables.
1683
1684 Defaults for the options are specified in brackets.
1685
1686 Configuration:
1687   -h, --help              display this help and exit
1688       --help=short        display options specific to this package
1689       --help=recursive    display the short help of all the included packages
1690   -V, --version           display version information and exit
1691   -q, --quiet, --silent   do not print \`checking...' messages
1692       --cache-file=FILE   cache test results in FILE [disabled]
1693   -C, --config-cache      alias for \`--cache-file=config.cache'
1694   -n, --no-create         do not create output files
1695       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1696
1697 Installation directories:
1698   --prefix=PREFIX         install architecture-independent files in PREFIX
1699                           [$ac_default_prefix]
1700   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1701                           [PREFIX]
1702
1703 By default, \`make install' will install all the files in
1704 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1705 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1706 for instance \`--prefix=\$HOME'.
1707
1708 For better control, use the options below.
1709
1710 Fine tuning of the installation directories:
1711   --bindir=DIR            user executables [EPREFIX/bin]
1712   --sbindir=DIR           system admin executables [EPREFIX/sbin]
1713   --libexecdir=DIR        program executables [EPREFIX/libexec]
1714   --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1715   --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1716   --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1717   --libdir=DIR            object code libraries [EPREFIX/lib]
1718   --includedir=DIR        C header files [PREFIX/include]
1719   --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1720   --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1721   --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1722   --infodir=DIR           info documentation [DATAROOTDIR/info]
1723   --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1724   --mandir=DIR            man documentation [DATAROOTDIR/man]
1725   --docdir=DIR            documentation root [DATAROOTDIR/doc/PACKAGE]
1726   --htmldir=DIR           html documentation [DOCDIR]
1727   --dvidir=DIR            dvi documentation [DOCDIR]
1728   --pdfdir=DIR            pdf documentation [DOCDIR]
1729   --psdir=DIR             ps documentation [DOCDIR]
1730 _ACEOF
1731
1732   cat <<\_ACEOF
1733
1734 X features:
1735   --x-includes=DIR    X include files are in DIR
1736   --x-libraries=DIR   X library files are in DIR
1737
1738 System types:
1739   --build=BUILD     configure for building on BUILD [guessed]
1740   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1741 _ACEOF
1742 fi
1743
1744 if test -n "$ac_init_help"; then
1745
1746   cat <<\_ACEOF
1747
1748 Optional Features:
1749   --disable-option-checking  ignore unrecognized --enable/--with options
1750   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1751   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1752   --enable-libtool        enable building using GNU libtool [default=yes]
1753   --enable-shared[=PKGS]  build shared libraries [default=yes]
1754   --enable-static[=PKGS]  build static libraries [default=no]
1755   --enable-fast-install[=PKGS]
1756                           optimize for fast installation [default=yes]
1757   --disable-libtool-lock  avoid locking (might break parallel builds)
1758   --enable-includes       enable installing of include files [default=no]
1759   --disable-nls           do not use Native Language Support
1760   --disable-rpath         do not hardcode runtime library paths
1761   --enable-gnome          enable build of bgnome-console GUI [default=no]
1762   --enable-bat            enable build of bat Qt4 GUI [default=no]
1763   --enable-bwx-console    enable build of wxWidgets console [default=no]
1764   --enable-tray-monitor   enable build of Gnome tray monitor (compatible with
1765                           KDE [default=no]
1766   --enable-smartalloc     enable smartalloc debugging support [default=no]
1767   --enable-lockmgr        enable lock manager support [default=no]
1768   --enable-static-tools   enable static tape tools [default=no]
1769   --enable-static-fd      enable static File daemon [default=no]
1770   --enable-static-sd      enable static Storage daemon [default=no]
1771   --enable-static-dir     enable static Director [default=no]
1772   --enable-static-cons    enable static Console [default=no]
1773   --enable-client-only    build client (File daemon) only [default=no]
1774   --enable-build-dird     enable building of dird (Director) [default=yes]
1775   --enable-build-stored   enable building of stored (Storage daemon)
1776                           [default=yes]
1777   --disable-conio         disable conio support [default=no]
1778   --enable-ipv6           enable ipv6 support [default=yes]
1779   --disable-readline      disable readline support [default=yes]
1780   --enable-batch-insert   enable the DB batch insert code [default=no]
1781   --disable-largefile     omit support for large files
1782   --disable-afs           disable afs support [default=auto]
1783   --disable-acl           disable acl support [default=auto]
1784   --disable-xattr         disable xattr support [default=auto]
1785
1786 Optional Packages:
1787   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1788   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1789   --with-pic              try to use only PIC/non-PIC objects [default=use
1790                           both]
1791   --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1792   --with-gnu-ld           assume the C compiler uses GNU ld default=no
1793   --with-libiconv-prefix[=DIR]  search for libiconv in DIR/include and DIR/lib
1794   --without-libiconv-prefix     don't search for libiconv in includedir and libdir
1795   --with-libintl-prefix[=DIR]  search for libintl in DIR/include and DIR/lib
1796   --without-libintl-prefix     don't search for libintl in includedir and libdir
1797   --with-included-gettext use the GNU gettext library included here
1798   --with-readline[=DIR]   specify readline library directory
1799   --with-python[=DIR]     Include Python support. DIR is the Python base
1800                           install directory, default is to search through a
1801                           number of common places for the Python files.
1802   --with-tcp-wrappers[=DIR]
1803                           enable tcpwrappers support
1804   --with-openssl[=DIR]    Include OpenSSL support. DIR is the OpenSSL base
1805   --with-working-dir=PATH specify path of Bacula working directory
1806   --with-archivedir=PATH  specify path of SD archive directory
1807   --with-basename=RESNAME specify base resource name for daemons
1808   --with-hostname=RESNAME specify host name for daemons
1809   --with-scriptdir=PATH   specify path of Bacula scripts directory
1810   --with-bsrdir=PATH      specify path of Bacula bsrs directory
1811   --with-logdir=PATH      specify path of Bacula logs directory
1812   --with-plugindir=PATH   specify path of Bacula plugins directory
1813   --with-dump-email=EMAIL dump email address
1814   --with-job-email=EMAIL  job output email address
1815   --with-smtp-host=HOST   SMTP mail host address
1816   --with-pid-dir=PATH     specify location of Bacula pid files
1817   --with-subsys-dir=PATH  specify location of Bacula subsys file
1818   --with-baseport=PORT    specify base port address for daemons
1819   --with-dir-password=PASSWORD
1820                           specify Director's password
1821   --with-fd-password=PASSWORD
1822                           specify Client's password
1823   --with-sd-password=PASSWORD
1824                           specify Storage daemon's password
1825   --with-mon-dir-password=PASSWORD
1826                           specify Director's password used by the monitor
1827   --with-mon-fd-password=PASSWORD
1828                           specify Client's password used by the monitor
1829   --with-mon-sd-password=PASSWORD
1830                           specify Storage daemon's password used by the
1831                           monitor
1832   --with-db-name=DBNAME   specify database name [default=bacula]
1833   --with-db-user=UNAME    specify database user [default=bacula]
1834   --with-db-password=PWD  specify database password [default=*none*]
1835   --with-db-port=DBPORT   specify a database port [default=null]
1836   --with-dir-user=USER    specify user for Director daemon
1837   --with-dir-group=GROUP  specify group for Director daemon
1838   --with-sd-user=USER     specify user for Storage daemon
1839   --with-sd-group=GROUP   specify group for Storage daemon
1840   --with-fd-user=USER     specify user for File daemon
1841   --with-fd-group=GROUP   specify group for File daemon
1842   --with-sbin-perm=MODE   specify permissions for sbin binaries [default=0750]
1843   --with-postgresql[=DIR] Include PostgreSQL support. DIR is the PostgreSQL
1844                           base install directory, [default=/usr/local/pgsql]
1845   --with-mysql[=DIR]      Include MySQL support. DIR is the MySQL base install
1846                           directory, default is to search through a number of
1847                           common places for the MySQL files.
1848   --with-embedded-mysql[=DIR]
1849                           Include MySQL support. DIR is the MySQL base install
1850                           directory, default is to search through a number of
1851                           common places for the MySQL files.
1852   --with-ingres[=DIR]     Include Ingres support. DIR is the Ingres base
1853                           install directory, default is to search through a
1854                           number of common places for the Ingres files.
1855   --with-sqlite3[=DIR]    Include SQLite3 support. DIR is the SQLite3 base
1856                           install directory, default is to search through a
1857                           number of common places for the SQLite3 files.
1858   --with-dbi[=DIR]        Include DBI support. DIR is the DBD base install
1859                           directory, default is to search through a number of
1860                           common places for the DBI files.
1861   --with-dbi-driver[=DRIVER]
1862                           Suport for DBI driver. DRIVER is the one DBI driver
1863                           like Mysql, Postgresql, others. Default is to not
1864                           configure any driver.
1865   --with-x                use the X Window System
1866   --with-afsdir[=DIR]     Directory holding AFS includes/libs
1867
1868 Some influential environment variables:
1869   CC          C compiler command
1870   CFLAGS      C compiler flags
1871   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1872               nonstandard directory <lib dir>
1873   LIBS        libraries to pass to the linker, e.g. -l<library>
1874   CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1875               you have headers in a nonstandard directory <include dir>
1876   CXX         C++ compiler command
1877   CXXFLAGS    C++ compiler flags
1878   CPP         C preprocessor
1879   WXCONFIG    wx-config command. On some systems, you must set it to
1880               wx-config-2.6 to use wxWidgets 2.6.
1881   WXFLAGS     Parameters to pass to wx-config (e.g. --unicode=no).
1882   CXXCPP      C++ preprocessor
1883   XMKMF       Path to xmkmf, Makefile generator for X Window System
1884
1885 Use these variables to override the choices made by `configure' or to help
1886 it to find libraries and programs with nonstandard names/locations.
1887
1888 Report bugs to the package provider.
1889 _ACEOF
1890 ac_status=$?
1891 fi
1892
1893 if test "$ac_init_help" = "recursive"; then
1894   # If there are subdirs, report their specific --help.
1895   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1896     test -d "$ac_dir" ||
1897       { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1898       continue
1899     ac_builddir=.
1900
1901 case "$ac_dir" in
1902 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1903 *)
1904   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1905   # A ".." for each directory in $ac_dir_suffix.
1906   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1907   case $ac_top_builddir_sub in
1908   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1909   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1910   esac ;;
1911 esac
1912 ac_abs_top_builddir=$ac_pwd
1913 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1914 # for backward compatibility:
1915 ac_top_builddir=$ac_top_build_prefix
1916
1917 case $srcdir in
1918   .)  # We are building in place.
1919     ac_srcdir=.
1920     ac_top_srcdir=$ac_top_builddir_sub
1921     ac_abs_top_srcdir=$ac_pwd ;;
1922   [\\/]* | ?:[\\/]* )  # Absolute name.
1923     ac_srcdir=$srcdir$ac_dir_suffix;
1924     ac_top_srcdir=$srcdir
1925     ac_abs_top_srcdir=$srcdir ;;
1926   *) # Relative name.
1927     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1928     ac_top_srcdir=$ac_top_build_prefix$srcdir
1929     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1930 esac
1931 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1932
1933     cd "$ac_dir" || { ac_status=$?; continue; }
1934     # Check for guested configure.
1935     if test -f "$ac_srcdir/configure.gnu"; then
1936       echo &&
1937       $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1938     elif test -f "$ac_srcdir/configure"; then
1939       echo &&
1940       $SHELL "$ac_srcdir/configure" --help=recursive
1941     else
1942       $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1943     fi || ac_status=$?
1944     cd "$ac_pwd" || { ac_status=$?; break; }
1945   done
1946 fi
1947
1948 test -n "$ac_init_help" && exit $ac_status
1949 if $ac_init_version; then
1950   cat <<\_ACEOF
1951 configure
1952 generated by GNU Autoconf 2.65
1953
1954 Copyright (C) 2009 Free Software Foundation, Inc.
1955 This configure script is free software; the Free Software Foundation
1956 gives unlimited permission to copy, distribute and modify it.
1957 _ACEOF
1958   exit
1959 fi
1960
1961 ## ------------------------ ##
1962 ## Autoconf initialization. ##
1963 ## ------------------------ ##
1964
1965 # ac_fn_c_try_compile LINENO
1966 # --------------------------
1967 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1968 ac_fn_c_try_compile ()
1969 {
1970   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1971   rm -f conftest.$ac_objext
1972   if { { ac_try="$ac_compile"
1973 case "(($ac_try" in
1974   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1975   *) ac_try_echo=$ac_try;;
1976 esac
1977 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1978 $as_echo "$ac_try_echo"; } >&5
1979   (eval "$ac_compile") 2>conftest.err
1980   ac_status=$?
1981   if test -s conftest.err; then
1982     grep -v '^ *+' conftest.err >conftest.er1
1983     cat conftest.er1 >&5
1984     mv -f conftest.er1 conftest.err
1985   fi
1986   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1987   test $ac_status = 0; } && {
1988          test -z "$ac_c_werror_flag" ||
1989          test ! -s conftest.err
1990        } && test -s conftest.$ac_objext; then :
1991   ac_retval=0
1992 else
1993   $as_echo "$as_me: failed program was:" >&5
1994 sed 's/^/| /' conftest.$ac_ext >&5
1995
1996         ac_retval=1
1997 fi
1998   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1999   as_fn_set_status $ac_retval
2000
2001 } # ac_fn_c_try_compile
2002
2003 # ac_fn_cxx_try_compile LINENO
2004 # ----------------------------
2005 # Try to compile conftest.$ac_ext, and return whether this succeeded.
2006 ac_fn_cxx_try_compile ()
2007 {
2008   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2009   rm -f conftest.$ac_objext
2010   if { { ac_try="$ac_compile"
2011 case "(($ac_try" in
2012   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2013   *) ac_try_echo=$ac_try;;
2014 esac
2015 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2016 $as_echo "$ac_try_echo"; } >&5
2017   (eval "$ac_compile") 2>conftest.err
2018   ac_status=$?
2019   if test -s conftest.err; then
2020     grep -v '^ *+' conftest.err >conftest.er1
2021     cat conftest.er1 >&5
2022     mv -f conftest.er1 conftest.err
2023   fi
2024   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2025   test $ac_status = 0; } && {
2026          test -z "$ac_cxx_werror_flag" ||
2027          test ! -s conftest.err
2028        } && test -s conftest.$ac_objext; then :
2029   ac_retval=0
2030 else
2031   $as_echo "$as_me: failed program was:" >&5
2032 sed 's/^/| /' conftest.$ac_ext >&5
2033
2034         ac_retval=1
2035 fi
2036   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2037   as_fn_set_status $ac_retval
2038
2039 } # ac_fn_cxx_try_compile
2040
2041 # ac_fn_c_try_cpp LINENO
2042 # ----------------------
2043 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2044 ac_fn_c_try_cpp ()
2045 {
2046   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2047   if { { ac_try="$ac_cpp conftest.$ac_ext"
2048 case "(($ac_try" in
2049   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2050   *) ac_try_echo=$ac_try;;
2051 esac
2052 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2053 $as_echo "$ac_try_echo"; } >&5
2054   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2055   ac_status=$?
2056   if test -s conftest.err; then
2057     grep -v '^ *+' conftest.err >conftest.er1
2058     cat conftest.er1 >&5
2059     mv -f conftest.er1 conftest.err
2060   fi
2061   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2062   test $ac_status = 0; } >/dev/null && {
2063          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
2064          test ! -s conftest.err
2065        }; then :
2066   ac_retval=0
2067 else
2068   $as_echo "$as_me: failed program was:" >&5
2069 sed 's/^/| /' conftest.$ac_ext >&5
2070
2071     ac_retval=1
2072 fi
2073   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2074   as_fn_set_status $ac_retval
2075
2076 } # ac_fn_c_try_cpp
2077
2078 # ac_fn_c_try_link LINENO
2079 # -----------------------
2080 # Try to link conftest.$ac_ext, and return whether this succeeded.
2081 ac_fn_c_try_link ()
2082 {
2083   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2084   rm -f conftest.$ac_objext conftest$ac_exeext
2085   if { { ac_try="$ac_link"
2086 case "(($ac_try" in
2087   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2088   *) ac_try_echo=$ac_try;;
2089 esac
2090 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2091 $as_echo "$ac_try_echo"; } >&5
2092   (eval "$ac_link") 2>conftest.err
2093   ac_status=$?
2094   if test -s conftest.err; then
2095     grep -v '^ *+' conftest.err >conftest.er1
2096     cat conftest.er1 >&5
2097     mv -f conftest.er1 conftest.err
2098   fi
2099   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2100   test $ac_status = 0; } && {
2101          test -z "$ac_c_werror_flag" ||
2102          test ! -s conftest.err
2103        } && test -s conftest$ac_exeext && {
2104          test "$cross_compiling" = yes ||
2105          $as_test_x conftest$ac_exeext
2106        }; then :
2107   ac_retval=0
2108 else
2109   $as_echo "$as_me: failed program was:" >&5
2110 sed 's/^/| /' conftest.$ac_ext >&5
2111
2112         ac_retval=1
2113 fi
2114   # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2115   # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2116   # interfere with the next link command; also delete a directory that is
2117   # left behind by Apple's compiler.  We do this before executing the actions.
2118   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2119   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2120   as_fn_set_status $ac_retval
2121
2122 } # ac_fn_c_try_link
2123
2124 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
2125 # -------------------------------------------------------
2126 # Tests whether HEADER exists and can be compiled using the include files in
2127 # INCLUDES, setting the cache variable VAR accordingly.
2128 ac_fn_c_check_header_compile ()
2129 {
2130   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2131   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2132 $as_echo_n "checking for $2... " >&6; }
2133 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2134   $as_echo_n "(cached) " >&6
2135 else
2136   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2137 /* end confdefs.h.  */
2138 $4
2139 #include <$2>
2140 _ACEOF
2141 if ac_fn_c_try_compile "$LINENO"; then :
2142   eval "$3=yes"
2143 else
2144   eval "$3=no"
2145 fi
2146 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2147 fi
2148 eval ac_res=\$$3
2149                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2150 $as_echo "$ac_res" >&6; }
2151   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2152
2153 } # ac_fn_c_check_header_compile
2154
2155 # ac_fn_c_try_run LINENO
2156 # ----------------------
2157 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
2158 # that executables *can* be run.
2159 ac_fn_c_try_run ()
2160 {
2161   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2162   if { { ac_try="$ac_link"
2163 case "(($ac_try" in
2164   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2165   *) ac_try_echo=$ac_try;;
2166 esac
2167 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2168 $as_echo "$ac_try_echo"; } >&5
2169   (eval "$ac_link") 2>&5
2170   ac_status=$?
2171   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2172   test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
2173   { { case "(($ac_try" in
2174   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2175   *) ac_try_echo=$ac_try;;
2176 esac
2177 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2178 $as_echo "$ac_try_echo"; } >&5
2179   (eval "$ac_try") 2>&5
2180   ac_status=$?
2181   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2182   test $ac_status = 0; }; }; then :
2183   ac_retval=0
2184 else
2185   $as_echo "$as_me: program exited with status $ac_status" >&5
2186        $as_echo "$as_me: failed program was:" >&5
2187 sed 's/^/| /' conftest.$ac_ext >&5
2188
2189        ac_retval=$ac_status
2190 fi
2191   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2192   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2193   as_fn_set_status $ac_retval
2194
2195 } # ac_fn_c_try_run
2196
2197 # ac_fn_c_check_func LINENO FUNC VAR
2198 # ----------------------------------
2199 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2200 ac_fn_c_check_func ()
2201 {
2202   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2203   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2204 $as_echo_n "checking for $2... " >&6; }
2205 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2206   $as_echo_n "(cached) " >&6
2207 else
2208   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2209 /* end confdefs.h.  */
2210 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2211    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
2212 #define $2 innocuous_$2
2213
2214 /* System header to define __stub macros and hopefully few prototypes,
2215     which can conflict with char $2 (); below.
2216     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2217     <limits.h> exists even on freestanding compilers.  */
2218
2219 #ifdef __STDC__
2220 # include <limits.h>
2221 #else
2222 # include <assert.h>
2223 #endif
2224
2225 #undef $2
2226
2227 /* Override any GCC internal prototype to avoid an error.
2228    Use char because int might match the return type of a GCC
2229    builtin and then its argument prototype would still apply.  */
2230 #ifdef __cplusplus
2231 extern "C"
2232 #endif
2233 char $2 ();
2234 /* The GNU C library defines this for functions which it implements
2235     to always fail with ENOSYS.  Some functions are actually named
2236     something starting with __ and the normal name is an alias.  */
2237 #if defined __stub_$2 || defined __stub___$2
2238 choke me
2239 #endif
2240
2241 int
2242 main ()
2243 {
2244 return $2 ();
2245   ;
2246   return 0;
2247 }
2248 _ACEOF
2249 if ac_fn_c_try_link "$LINENO"; then :
2250   eval "$3=yes"
2251 else
2252   eval "$3=no"
2253 fi
2254 rm -f core conftest.err conftest.$ac_objext \
2255     conftest$ac_exeext conftest.$ac_ext
2256 fi
2257 eval ac_res=\$$3
2258                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2259 $as_echo "$ac_res" >&6; }
2260   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2261
2262 } # ac_fn_c_check_func
2263
2264 # ac_fn_cxx_try_cpp LINENO
2265 # ------------------------
2266 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2267 ac_fn_cxx_try_cpp ()
2268 {
2269   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2270   if { { ac_try="$ac_cpp conftest.$ac_ext"
2271 case "(($ac_try" in
2272   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2273   *) ac_try_echo=$ac_try;;
2274 esac
2275 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2276 $as_echo "$ac_try_echo"; } >&5
2277   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2278   ac_status=$?
2279   if test -s conftest.err; then
2280     grep -v '^ *+' conftest.err >conftest.er1
2281     cat conftest.er1 >&5
2282     mv -f conftest.er1 conftest.err
2283   fi
2284   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2285   test $ac_status = 0; } >/dev/null && {
2286          test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
2287          test ! -s conftest.err
2288        }; then :
2289   ac_retval=0
2290 else
2291   $as_echo "$as_me: failed program was:" >&5
2292 sed 's/^/| /' conftest.$ac_ext >&5
2293
2294     ac_retval=1
2295 fi
2296   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2297   as_fn_set_status $ac_retval
2298
2299 } # ac_fn_cxx_try_cpp
2300
2301 # ac_fn_cxx_try_link LINENO
2302 # -------------------------
2303 # Try to link conftest.$ac_ext, and return whether this succeeded.
2304 ac_fn_cxx_try_link ()
2305 {
2306   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2307   rm -f conftest.$ac_objext conftest$ac_exeext
2308   if { { ac_try="$ac_link"
2309 case "(($ac_try" in
2310   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2311   *) ac_try_echo=$ac_try;;
2312 esac
2313 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2314 $as_echo "$ac_try_echo"; } >&5
2315   (eval "$ac_link") 2>conftest.err
2316   ac_status=$?
2317   if test -s conftest.err; then
2318     grep -v '^ *+' conftest.err >conftest.er1
2319     cat conftest.er1 >&5
2320     mv -f conftest.er1 conftest.err
2321   fi
2322   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2323   test $ac_status = 0; } && {
2324          test -z "$ac_cxx_werror_flag" ||
2325          test ! -s conftest.err
2326        } && test -s conftest$ac_exeext && {
2327          test "$cross_compiling" = yes ||
2328          $as_test_x conftest$ac_exeext
2329        }; then :
2330   ac_retval=0
2331 else
2332   $as_echo "$as_me: failed program was:" >&5
2333 sed 's/^/| /' conftest.$ac_ext >&5
2334
2335         ac_retval=1
2336 fi
2337   # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2338   # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2339   # interfere with the next link command; also delete a directory that is
2340   # left behind by Apple's compiler.  We do this before executing the actions.
2341   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2342   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2343   as_fn_set_status $ac_retval
2344
2345 } # ac_fn_cxx_try_link
2346
2347 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2348 # -------------------------------------------
2349 # Tests whether TYPE exists after having included INCLUDES, setting cache
2350 # variable VAR accordingly.
2351 ac_fn_c_check_type ()
2352 {
2353   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2354   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2355 $as_echo_n "checking for $2... " >&6; }
2356 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2357   $as_echo_n "(cached) " >&6
2358 else
2359   eval "$3=no"
2360   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2361 /* end confdefs.h.  */
2362 $4
2363 int
2364 main ()
2365 {
2366 if (sizeof ($2))
2367          return 0;
2368   ;
2369   return 0;
2370 }
2371 _ACEOF
2372 if ac_fn_c_try_compile "$LINENO"; then :
2373   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2374 /* end confdefs.h.  */
2375 $4
2376 int
2377 main ()
2378 {
2379 if (sizeof (($2)))
2380             return 0;
2381   ;
2382   return 0;
2383 }
2384 _ACEOF
2385 if ac_fn_c_try_compile "$LINENO"; then :
2386
2387 else
2388   eval "$3=yes"
2389 fi
2390 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2391 fi
2392 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2393 fi
2394 eval ac_res=\$$3
2395                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2396 $as_echo "$ac_res" >&6; }
2397   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2398
2399 } # ac_fn_c_check_type
2400
2401 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
2402 # -------------------------------------------------------
2403 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
2404 # the include files in INCLUDES and setting the cache variable VAR
2405 # accordingly.
2406 ac_fn_c_check_header_mongrel ()
2407 {
2408   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2409   if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2410   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2411 $as_echo_n "checking for $2... " >&6; }
2412 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2413   $as_echo_n "(cached) " >&6
2414 fi
2415 eval ac_res=\$$3
2416                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2417 $as_echo "$ac_res" >&6; }
2418 else
2419   # Is the header compilable?
2420 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
2421 $as_echo_n "checking $2 usability... " >&6; }
2422 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2423 /* end confdefs.h.  */
2424 $4
2425 #include <$2>
2426 _ACEOF
2427 if ac_fn_c_try_compile "$LINENO"; then :
2428   ac_header_compiler=yes
2429 else
2430   ac_header_compiler=no
2431 fi
2432 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2433 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2434 $as_echo "$ac_header_compiler" >&6; }
2435
2436 # Is the header present?
2437 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2438 $as_echo_n "checking $2 presence... " >&6; }
2439 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2440 /* end confdefs.h.  */
2441 #include <$2>
2442 _ACEOF
2443 if ac_fn_c_try_cpp "$LINENO"; then :
2444   ac_header_preproc=yes
2445 else
2446   ac_header_preproc=no
2447 fi
2448 rm -f conftest.err conftest.$ac_ext
2449 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2450 $as_echo "$ac_header_preproc" >&6; }
2451
2452 # So?  What about this header?
2453 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
2454   yes:no: )
2455     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2456 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2457     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2458 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2459     ;;
2460   no:yes:* )
2461     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2462 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2463     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     check for missing prerequisite headers?" >&5
2464 $as_echo "$as_me: WARNING: $2:     check for missing prerequisite headers?" >&2;}
2465     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2466 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2467     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&5
2468 $as_echo "$as_me: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&2;}
2469     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2470 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2471     ;;
2472 esac
2473   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2474 $as_echo_n "checking for $2... " >&6; }
2475 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2476   $as_echo_n "(cached) " >&6
2477 else
2478   eval "$3=\$ac_header_compiler"
2479 fi
2480 eval ac_res=\$$3
2481                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2482 $as_echo "$ac_res" >&6; }
2483 fi
2484   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2485
2486 } # ac_fn_c_check_header_mongrel
2487
2488 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2489 # --------------------------------------------
2490 # Tries to find the compile-time value of EXPR in a program that includes
2491 # INCLUDES, setting VAR accordingly. Returns whether the value could be
2492 # computed
2493 ac_fn_c_compute_int ()
2494 {
2495   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2496   if test "$cross_compiling" = yes; then
2497     # Depending upon the size, compute the lo and hi bounds.
2498 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2499 /* end confdefs.h.  */
2500 $4
2501 int
2502 main ()
2503 {
2504 static int test_array [1 - 2 * !(($2) >= 0)];
2505 test_array [0] = 0
2506
2507   ;
2508   return 0;
2509 }
2510 _ACEOF
2511 if ac_fn_c_try_compile "$LINENO"; then :
2512   ac_lo=0 ac_mid=0
2513   while :; do
2514     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2515 /* end confdefs.h.  */
2516 $4
2517 int
2518 main ()
2519 {
2520 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2521 test_array [0] = 0
2522
2523   ;
2524   return 0;
2525 }
2526 _ACEOF
2527 if ac_fn_c_try_compile "$LINENO"; then :
2528   ac_hi=$ac_mid; break
2529 else
2530   as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2531                         if test $ac_lo -le $ac_mid; then
2532                           ac_lo= ac_hi=
2533                           break
2534                         fi
2535                         as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2536 fi
2537 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2538   done
2539 else
2540   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2541 /* end confdefs.h.  */
2542 $4
2543 int
2544 main ()
2545 {
2546 static int test_array [1 - 2 * !(($2) < 0)];
2547 test_array [0] = 0
2548
2549   ;
2550   return 0;
2551 }
2552 _ACEOF
2553 if ac_fn_c_try_compile "$LINENO"; then :
2554   ac_hi=-1 ac_mid=-1
2555   while :; do
2556     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2557 /* end confdefs.h.  */
2558 $4
2559 int
2560 main ()
2561 {
2562 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2563 test_array [0] = 0
2564
2565   ;
2566   return 0;
2567 }
2568 _ACEOF
2569 if ac_fn_c_try_compile "$LINENO"; then :
2570   ac_lo=$ac_mid; break
2571 else
2572   as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2573                         if test $ac_mid -le $ac_hi; then
2574                           ac_lo= ac_hi=
2575                           break
2576                         fi
2577                         as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2578 fi
2579 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2580   done
2581 else
2582   ac_lo= ac_hi=
2583 fi
2584 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2585 fi
2586 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2587 # Binary search between lo and hi bounds.
2588 while test "x$ac_lo" != "x$ac_hi"; do
2589   as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2590   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2591 /* end confdefs.h.  */
2592 $4
2593 int
2594 main ()
2595 {
2596 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2597 test_array [0] = 0
2598
2599   ;
2600   return 0;
2601 }
2602 _ACEOF
2603 if ac_fn_c_try_compile "$LINENO"; then :
2604   ac_hi=$ac_mid
2605 else
2606   as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2607 fi
2608 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2609 done
2610 case $ac_lo in #((
2611 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2612 '') ac_retval=1 ;;
2613 esac
2614   else
2615     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2616 /* end confdefs.h.  */
2617 $4
2618 static long int longval () { return $2; }
2619 static unsigned long int ulongval () { return $2; }
2620 #include <stdio.h>
2621 #include <stdlib.h>
2622 int
2623 main ()
2624 {
2625
2626   FILE *f = fopen ("conftest.val", "w");
2627   if (! f)
2628     return 1;
2629   if (($2) < 0)
2630     {
2631       long int i = longval ();
2632       if (i != ($2))
2633         return 1;
2634       fprintf (f, "%ld", i);
2635     }
2636   else
2637     {
2638       unsigned long int i = ulongval ();
2639       if (i != ($2))
2640         return 1;
2641       fprintf (f, "%lu", i);
2642     }
2643   /* Do not output a trailing newline, as this causes \r\n confusion
2644      on some platforms.  */
2645   return ferror (f) || fclose (f) != 0;
2646
2647   ;
2648   return 0;
2649 }
2650 _ACEOF
2651 if ac_fn_c_try_run "$LINENO"; then :
2652   echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2653 else
2654   ac_retval=1
2655 fi
2656 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2657   conftest.$ac_objext conftest.beam conftest.$ac_ext
2658 rm -f conftest.val
2659
2660   fi
2661   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2662   as_fn_set_status $ac_retval
2663
2664 } # ac_fn_c_compute_int
2665
2666 # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
2667 # ----------------------------------------------------
2668 # Tries to find if the field MEMBER exists in type AGGR, after including
2669 # INCLUDES, setting cache variable VAR accordingly.
2670 ac_fn_c_check_member ()
2671 {
2672   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2673   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2674 $as_echo_n "checking for $2.$3... " >&6; }
2675 if { as_var=$4; eval "test \"\${$as_var+set}\" = set"; }; then :
2676   $as_echo_n "(cached) " >&6
2677 else
2678   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2679 /* end confdefs.h.  */
2680 $5
2681 int
2682 main ()
2683 {
2684 static $2 ac_aggr;
2685 if (ac_aggr.$3)
2686 return 0;
2687   ;
2688   return 0;
2689 }
2690 _ACEOF
2691 if ac_fn_c_try_compile "$LINENO"; then :
2692   eval "$4=yes"
2693 else
2694   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2695 /* end confdefs.h.  */
2696 $5
2697 int
2698 main ()
2699 {
2700 static $2 ac_aggr;
2701 if (sizeof ac_aggr.$3)
2702 return 0;
2703   ;
2704   return 0;
2705 }
2706 _ACEOF
2707 if ac_fn_c_try_compile "$LINENO"; then :
2708   eval "$4=yes"
2709 else
2710   eval "$4=no"
2711 fi
2712 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2713 fi
2714 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2715 fi
2716 eval ac_res=\$$4
2717                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2718 $as_echo "$ac_res" >&6; }
2719   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2720
2721 } # ac_fn_c_check_member
2722
2723 # ac_fn_c_check_decl LINENO SYMBOL VAR
2724 # ------------------------------------
2725 # Tests whether SYMBOL is declared, setting cache variable VAR accordingly.
2726 ac_fn_c_check_decl ()
2727 {
2728   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2729   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $2 is declared" >&5
2730 $as_echo_n "checking whether $2 is declared... " >&6; }
2731 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2732   $as_echo_n "(cached) " >&6
2733 else
2734   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2735 /* end confdefs.h.  */
2736 $4
2737 int
2738 main ()
2739 {
2740 #ifndef $2
2741   (void) $2;
2742 #endif
2743
2744   ;
2745   return 0;
2746 }
2747 _ACEOF
2748 if ac_fn_c_try_compile "$LINENO"; then :
2749   eval "$3=yes"
2750 else
2751   eval "$3=no"
2752 fi
2753 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2754 fi
2755 eval ac_res=\$$3
2756                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2757 $as_echo "$ac_res" >&6; }
2758   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2759
2760 } # ac_fn_c_check_decl
2761
2762 # ac_fn_cxx_try_run LINENO
2763 # ------------------------
2764 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
2765 # that executables *can* be run.
2766 ac_fn_cxx_try_run ()
2767 {
2768   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2769   if { { ac_try="$ac_link"
2770 case "(($ac_try" in
2771   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2772   *) ac_try_echo=$ac_try;;
2773 esac
2774 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2775 $as_echo "$ac_try_echo"; } >&5
2776   (eval "$ac_link") 2>&5
2777   ac_status=$?
2778   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2779   test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
2780   { { case "(($ac_try" in
2781   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2782   *) ac_try_echo=$ac_try;;
2783 esac
2784 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2785 $as_echo "$ac_try_echo"; } >&5
2786   (eval "$ac_try") 2>&5
2787   ac_status=$?
2788   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2789   test $ac_status = 0; }; }; then :
2790   ac_retval=0
2791 else
2792   $as_echo "$as_me: program exited with status $ac_status" >&5
2793        $as_echo "$as_me: failed program was:" >&5
2794 sed 's/^/| /' conftest.$ac_ext >&5
2795
2796        ac_retval=$ac_status
2797 fi
2798   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2799   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2800   as_fn_set_status $ac_retval
2801
2802 } # ac_fn_cxx_try_run
2803 cat >config.log <<_ACEOF
2804 This file contains any messages produced by compilers while
2805 running configure, to aid debugging if configure makes a mistake.
2806
2807 It was created by $as_me, which was
2808 generated by GNU Autoconf 2.65.  Invocation command line was
2809
2810   $ $0 $@
2811
2812 _ACEOF
2813 exec 5>>config.log
2814 {
2815 cat <<_ASUNAME
2816 ## --------- ##
2817 ## Platform. ##
2818 ## --------- ##
2819
2820 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2821 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2822 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2823 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2824 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2825
2826 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2827 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
2828
2829 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
2830 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
2831 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2832 /usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
2833 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
2834 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
2835 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
2836
2837 _ASUNAME
2838
2839 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2840 for as_dir in $PATH
2841 do
2842   IFS=$as_save_IFS
2843   test -z "$as_dir" && as_dir=.
2844     $as_echo "PATH: $as_dir"
2845   done
2846 IFS=$as_save_IFS
2847
2848 } >&5
2849
2850 cat >&5 <<_ACEOF
2851
2852
2853 ## ----------- ##
2854 ## Core tests. ##
2855 ## ----------- ##
2856
2857 _ACEOF
2858
2859
2860 # Keep a trace of the command line.
2861 # Strip out --no-create and --no-recursion so they do not pile up.
2862 # Strip out --silent because we don't want to record it for future runs.
2863 # Also quote any args containing shell meta-characters.
2864 # Make two passes to allow for proper duplicate-argument suppression.
2865 ac_configure_args=
2866 ac_configure_args0=
2867 ac_configure_args1=
2868 ac_must_keep_next=false
2869 for ac_pass in 1 2
2870 do
2871   for ac_arg
2872   do
2873     case $ac_arg in
2874     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2875     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2876     | -silent | --silent | --silen | --sile | --sil)
2877       continue ;;
2878     *\'*)
2879       ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2880     esac
2881     case $ac_pass in
2882     1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2883     2)
2884       as_fn_append ac_configure_args1 " '$ac_arg'"
2885       if test $ac_must_keep_next = true; then
2886         ac_must_keep_next=false # Got value, back to normal.
2887       else
2888         case $ac_arg in
2889           *=* | --config-cache | -C | -disable-* | --disable-* \
2890           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2891           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2892           | -with-* | --with-* | -without-* | --without-* | --x)
2893             case "$ac_configure_args0 " in
2894               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2895             esac
2896             ;;
2897           -* ) ac_must_keep_next=true ;;
2898         esac
2899       fi
2900       as_fn_append ac_configure_args " '$ac_arg'"
2901       ;;
2902     esac
2903   done
2904 done
2905 { ac_configure_args0=; unset ac_configure_args0;}
2906 { ac_configure_args1=; unset ac_configure_args1;}
2907
2908 # When interrupted or exit'd, cleanup temporary files, and complete
2909 # config.log.  We remove comments because anyway the quotes in there
2910 # would cause problems or look ugly.
2911 # WARNING: Use '\'' to represent an apostrophe within the trap.
2912 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2913 trap 'exit_status=$?
2914   # Save into config.log some information that might help in debugging.
2915   {
2916     echo
2917
2918     cat <<\_ASBOX
2919 ## ---------------- ##
2920 ## Cache variables. ##
2921 ## ---------------- ##
2922 _ASBOX
2923     echo
2924     # The following way of writing the cache mishandles newlines in values,
2925 (
2926   for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2927     eval ac_val=\$$ac_var
2928     case $ac_val in #(
2929     *${as_nl}*)
2930       case $ac_var in #(
2931       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2932 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2933       esac
2934       case $ac_var in #(
2935       _ | IFS | as_nl) ;; #(
2936       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2937       *) { eval $ac_var=; unset $ac_var;} ;;
2938       esac ;;
2939     esac
2940   done
2941   (set) 2>&1 |
2942     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2943     *${as_nl}ac_space=\ *)
2944       sed -n \
2945         "s/'\''/'\''\\\\'\'''\''/g;
2946           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2947       ;; #(
2948     *)
2949       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2950       ;;
2951     esac |
2952     sort
2953 )
2954     echo
2955
2956     cat <<\_ASBOX
2957 ## ----------------- ##
2958 ## Output variables. ##
2959 ## ----------------- ##
2960 _ASBOX
2961     echo
2962     for ac_var in $ac_subst_vars
2963     do
2964       eval ac_val=\$$ac_var
2965       case $ac_val in
2966       *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2967       esac
2968       $as_echo "$ac_var='\''$ac_val'\''"
2969     done | sort
2970     echo
2971
2972     if test -n "$ac_subst_files"; then
2973       cat <<\_ASBOX
2974 ## ------------------- ##
2975 ## File substitutions. ##
2976 ## ------------------- ##
2977 _ASBOX
2978       echo
2979       for ac_var in $ac_subst_files
2980       do
2981         eval ac_val=\$$ac_var
2982         case $ac_val in
2983         *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2984         esac
2985         $as_echo "$ac_var='\''$ac_val'\''"
2986       done | sort
2987       echo
2988     fi
2989
2990     if test -s confdefs.h; then
2991       cat <<\_ASBOX
2992 ## ----------- ##
2993 ## confdefs.h. ##
2994 ## ----------- ##
2995 _ASBOX
2996       echo
2997       cat confdefs.h
2998       echo
2999     fi
3000     test "$ac_signal" != 0 &&
3001       $as_echo "$as_me: caught signal $ac_signal"
3002     $as_echo "$as_me: exit $exit_status"
3003   } >&5
3004   rm -f core *.core core.conftest.* &&
3005     rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
3006     exit $exit_status
3007 ' 0
3008 for ac_signal in 1 2 13 15; do
3009   trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
3010 done
3011 ac_signal=0
3012
3013 # confdefs.h avoids OS command line length limits that DEFS can exceed.
3014 rm -f -r conftest* confdefs.h
3015
3016 $as_echo "/* confdefs.h */" > confdefs.h
3017
3018 # Predefined preprocessor variables.
3019
3020 cat >>confdefs.h <<_ACEOF
3021 #define PACKAGE_NAME "$PACKAGE_NAME"
3022 _ACEOF
3023
3024 cat >>confdefs.h <<_ACEOF
3025 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
3026 _ACEOF
3027
3028 cat >>confdefs.h <<_ACEOF
3029 #define PACKAGE_VERSION "$PACKAGE_VERSION"
3030 _ACEOF
3031
3032 cat >>confdefs.h <<_ACEOF
3033 #define PACKAGE_STRING "$PACKAGE_STRING"
3034 _ACEOF
3035
3036 cat >>confdefs.h <<_ACEOF
3037 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
3038 _ACEOF
3039
3040 cat >>confdefs.h <<_ACEOF
3041 #define PACKAGE_URL "$PACKAGE_URL"
3042 _ACEOF
3043
3044
3045 # Let the site file select an alternate cache file if it wants to.
3046 # Prefer an explicitly selected file to automatically selected ones.
3047 ac_site_file1=NONE
3048 ac_site_file2=NONE
3049 if test -n "$CONFIG_SITE"; then
3050   ac_site_file1=$CONFIG_SITE
3051 elif test "x$prefix" != xNONE; then
3052   ac_site_file1=$prefix/share/config.site
3053   ac_site_file2=$prefix/etc/config.site
3054 else
3055   ac_site_file1=$ac_default_prefix/share/config.site
3056   ac_site_file2=$ac_default_prefix/etc/config.site
3057 fi
3058 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
3059 do
3060   test "x$ac_site_file" = xNONE && continue
3061   if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
3062     { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
3063 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
3064     sed 's/^/| /' "$ac_site_file" >&5
3065     . "$ac_site_file"
3066   fi
3067 done
3068
3069 if test -r "$cache_file"; then
3070   # Some versions of bash will fail to source /dev/null (special files
3071   # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
3072   if test /dev/null != "$cache_file" && test -f "$cache_file"; then
3073     { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
3074 $as_echo "$as_me: loading cache $cache_file" >&6;}
3075     case $cache_file in
3076       [\\/]* | ?:[\\/]* ) . "$cache_file";;
3077       *)                      . "./$cache_file";;
3078     esac
3079   fi
3080 else
3081   { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
3082 $as_echo "$as_me: creating cache $cache_file" >&6;}
3083   >$cache_file
3084 fi
3085
3086 as_fn_append ac_header_list " stdlib.h"
3087 as_fn_append ac_header_list " unistd.h"
3088 as_fn_append ac_header_list " sys/param.h"
3089 # Check that the precious variables saved in the cache have kept the same
3090 # value.
3091 ac_cache_corrupted=false
3092 for ac_var in $ac_precious_vars; do
3093   eval ac_old_set=\$ac_cv_env_${ac_var}_set
3094   eval ac_new_set=\$ac_env_${ac_var}_set
3095   eval ac_old_val=\$ac_cv_env_${ac_var}_value
3096   eval ac_new_val=\$ac_env_${ac_var}_value
3097   case $ac_old_set,$ac_new_set in
3098     set,)
3099       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
3100 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
3101       ac_cache_corrupted=: ;;
3102     ,set)
3103       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
3104 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
3105       ac_cache_corrupted=: ;;
3106     ,);;
3107     *)
3108       if test "x$ac_old_val" != "x$ac_new_val"; then
3109         # differences in whitespace do not lead to failure.
3110         ac_old_val_w=`echo x $ac_old_val`
3111         ac_new_val_w=`echo x $ac_new_val`
3112         if test "$ac_old_val_w" != "$ac_new_val_w"; then
3113           { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
3114 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
3115           ac_cache_corrupted=:
3116         else
3117           { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
3118 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
3119           eval $ac_var=\$ac_old_val
3120         fi
3121         { $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
3122 $as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
3123         { $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
3124 $as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
3125       fi;;
3126   esac
3127   # Pass precious variables to config.status.
3128   if test "$ac_new_set" = set; then
3129     case $ac_new_val in
3130     *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
3131     *) ac_arg=$ac_var=$ac_new_val ;;
3132     esac
3133     case " $ac_configure_args " in
3134       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
3135       *) as_fn_append ac_configure_args " '$ac_arg'" ;;
3136     esac
3137   fi
3138 done
3139 if $ac_cache_corrupted; then
3140   { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3141 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3142   { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
3143 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
3144   as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
3145 fi
3146 ## -------------------- ##
3147 ## Main body of script. ##
3148 ## -------------------- ##
3149
3150 ac_ext=c
3151 ac_cpp='$CPP $CPPFLAGS'
3152 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3153 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3154 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3155
3156
3157 BUILD_DIR=`pwd`
3158 cd ..
3159 TOP_DIR=`pwd`
3160 cd ${BUILD_DIR}
3161
3162
3163 ac_aux_dir=
3164 for ac_dir in ${BUILD_DIR}/autoconf "$srcdir"/${BUILD_DIR}/autoconf; do
3165   for ac_t in install-sh install.sh shtool; do
3166     if test -f "$ac_dir/$ac_t"; then
3167       ac_aux_dir=$ac_dir
3168       ac_install_sh="$ac_aux_dir/$ac_t -c"
3169       break 2
3170     fi
3171   done
3172 done
3173 if test -z "$ac_aux_dir"; then
3174   as_fn_error "cannot find install-sh, install.sh, or shtool in ${BUILD_DIR}/autoconf \"$srcdir\"/${BUILD_DIR}/autoconf" "$LINENO" 5
3175 fi
3176
3177 # These three variables are undocumented and unsupported,
3178 # and are intended to be withdrawn in a future Autoconf release.
3179 # They can cause serious problems if a builder's source tree is in a directory
3180 # whose full name contains unusual characters.
3181 ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
3182 ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
3183 ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
3184
3185
3186 ac_config_headers="$ac_config_headers src/config.h:autoconf/config.h.in"
3187
3188
3189 WIN32BUILDDIR=${BUILD_DIR}/src/win32
3190 WIN32MAINDIR=${BUILD_DIR}
3191 WIN32TOPDIR=${TOP_DIR}
3192
3193
3194
3195
3196 for ac_prog in true
3197 do
3198   # Extract the first word of "$ac_prog", so it can be a program name with args.
3199 set dummy $ac_prog; ac_word=$2
3200 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3201 $as_echo_n "checking for $ac_word... " >&6; }
3202 if test "${ac_cv_path_TRUEPRG+set}" = set; then :
3203   $as_echo_n "(cached) " >&6
3204 else
3205   case $TRUEPRG in
3206   [\\/]* | ?:[\\/]*)
3207   ac_cv_path_TRUEPRG="$TRUEPRG" # Let the user override the test with a path.
3208   ;;
3209   *)
3210   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3211 for as_dir in $PATH
3212 do
3213   IFS=$as_save_IFS
3214   test -z "$as_dir" && as_dir=.
3215     for ac_exec_ext in '' $ac_executable_extensions; do
3216   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3217     ac_cv_path_TRUEPRG="$as_dir/$ac_word$ac_exec_ext"
3218     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3219     break 2
3220   fi
3221 done
3222   done
3223 IFS=$as_save_IFS
3224
3225   ;;
3226 esac
3227 fi
3228 TRUEPRG=$ac_cv_path_TRUEPRG
3229 if test -n "$TRUEPRG"; then
3230   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TRUEPRG" >&5
3231 $as_echo "$TRUEPRG" >&6; }
3232 else
3233   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3234 $as_echo "no" >&6; }
3235 fi
3236
3237
3238   test -n "$TRUEPRG" && break
3239 done
3240 test -n "$TRUEPRG" || TRUEPRG=":"
3241
3242 for ac_prog in false
3243 do
3244   # Extract the first word of "$ac_prog", so it can be a program name with args.
3245 set dummy $ac_prog; ac_word=$2
3246 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3247 $as_echo_n "checking for $ac_word... " >&6; }
3248 if test "${ac_cv_path_FALSEPRG+set}" = set; then :
3249   $as_echo_n "(cached) " >&6
3250 else
3251   case $FALSEPRG in
3252   [\\/]* | ?:[\\/]*)
3253   ac_cv_path_FALSEPRG="$FALSEPRG" # Let the user override the test with a path.
3254   ;;
3255   *)
3256   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3257 for as_dir in $PATH
3258 do
3259   IFS=$as_save_IFS
3260   test -z "$as_dir" && as_dir=.
3261     for ac_exec_ext in '' $ac_executable_extensions; do
3262   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3263     ac_cv_path_FALSEPRG="$as_dir/$ac_word$ac_exec_ext"
3264     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3265     break 2
3266   fi
3267 done
3268   done
3269 IFS=$as_save_IFS
3270
3271   ;;
3272 esac
3273 fi
3274 FALSEPRG=$ac_cv_path_FALSEPRG
3275 if test -n "$FALSEPRG"; then
3276   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FALSEPRG" >&5
3277 $as_echo "$FALSEPRG" >&6; }
3278 else
3279   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3280 $as_echo "no" >&6; }
3281 fi
3282
3283
3284   test -n "$FALSEPRG" && break
3285 done
3286 test -n "$FALSEPRG" || FALSEPRG=":"
3287
3288
3289
3290 post_host=
3291 if test "x$BACULA" != x; then
3292    post_host=`echo -${BACULA} | tr 'A-Z ' 'a-z-'`
3293 fi
3294 BACULA=${BACULA:-Bacula}
3295 VERSION=`sed -n -e 's/^.*VERSION.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
3296 DATE=`sed -n -e 's/^.* \t*BDATE.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
3297 LSMDATE=`sed -n -e 's/^.*LSMDATE.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
3298 BDB_VERSION=`sed -n -e 's/^.*BDB_VERSION \(.*\)$/\1/p' ${srcdir}/src/cats/cats.h`
3299
3300 LIBBAC_LT_RELEASE=`sed -n -e 's/^#.*LIBBAC_LT_RELEASE.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
3301 LIBBACCFG_LT_RELEASE=`sed -n -e 's/^#.*LIBBACCFG_LT_RELEASE.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
3302 LIBBACPY_LT_RELEASE=`sed -n -e 's/^#.*LIBBACPY_LT_RELEASE.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
3303
3304 LIBBAC_LT_RELEASE=${LIBBAC_LT_RELEASE:-$VERSION}
3305 LIBBACCFG_LT_RELEASE=${LIBBACCFG_LT_RELEASE:-$VERSION}
3306 LIBBACPY_LT_RELEASE=${LIBBACPY_LT_RELEASE:-$VERSION}
3307
3308
3309 LIBBACSQL_LT_RELEASE=`sed -n -e 's/^#.*LIBBACSQL_LT_RELEASE.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
3310
3311 LIBBACSQL_LT_RELEASE=${LIBBACSQL_LT_RELEASE:-$VERSION}
3312
3313
3314 LIBBACFIND_LT_RELEASE=`sed -n -e 's/^#.*LIBBACFIND_LT_RELEASE.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
3315
3316 LIBBACFIND_LT_RELEASE=${LIBBACFIND_LT_RELEASE:-$VERSION}
3317
3318
3319 echo "configuring for ${BACULA} $VERSION ($DATE)"
3320
3321
3322
3323 ac_ext=c
3324 ac_cpp='$CPP $CPPFLAGS'
3325 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3326 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3327 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3328 if test -n "$ac_tool_prefix"; then
3329   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3330 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3331 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3332 $as_echo_n "checking for $ac_word... " >&6; }
3333 if test "${ac_cv_prog_CC+set}" = set; then :
3334   $as_echo_n "(cached) " >&6
3335 else
3336   if test -n "$CC"; then
3337   ac_cv_prog_CC="$CC" # Let the user override the test.
3338 else
3339 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3340 for as_dir in $PATH
3341 do
3342   IFS=$as_save_IFS
3343   test -z "$as_dir" && as_dir=.
3344     for ac_exec_ext in '' $ac_executable_extensions; do
3345   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3346     ac_cv_prog_CC="${ac_tool_prefix}gcc"
3347     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3348     break 2
3349   fi
3350 done
3351   done
3352 IFS=$as_save_IFS
3353
3354 fi
3355 fi
3356 CC=$ac_cv_prog_CC
3357 if test -n "$CC"; then
3358   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3359 $as_echo "$CC" >&6; }
3360 else
3361   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3362 $as_echo "no" >&6; }
3363 fi
3364
3365
3366 fi
3367 if test -z "$ac_cv_prog_CC"; then
3368   ac_ct_CC=$CC
3369   # Extract the first word of "gcc", so it can be a program name with args.
3370 set dummy gcc; ac_word=$2
3371 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3372 $as_echo_n "checking for $ac_word... " >&6; }
3373 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3374   $as_echo_n "(cached) " >&6
3375 else
3376   if test -n "$ac_ct_CC"; then
3377   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3378 else
3379 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3380 for as_dir in $PATH
3381 do
3382   IFS=$as_save_IFS
3383   test -z "$as_dir" && as_dir=.
3384     for ac_exec_ext in '' $ac_executable_extensions; do
3385   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3386     ac_cv_prog_ac_ct_CC="gcc"
3387     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3388     break 2
3389   fi
3390 done
3391   done
3392 IFS=$as_save_IFS
3393
3394 fi
3395 fi
3396 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3397 if test -n "$ac_ct_CC"; then
3398   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3399 $as_echo "$ac_ct_CC" >&6; }
3400 else
3401   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3402 $as_echo "no" >&6; }
3403 fi
3404
3405   if test "x$ac_ct_CC" = x; then
3406     CC=""
3407   else
3408     case $cross_compiling:$ac_tool_warned in
3409 yes:)
3410 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3411 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3412 ac_tool_warned=yes ;;
3413 esac
3414     CC=$ac_ct_CC
3415   fi
3416 else
3417   CC="$ac_cv_prog_CC"
3418 fi
3419
3420 if test -z "$CC"; then
3421           if test -n "$ac_tool_prefix"; then
3422     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3423 set dummy ${ac_tool_prefix}cc; ac_word=$2
3424 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3425 $as_echo_n "checking for $ac_word... " >&6; }
3426 if test "${ac_cv_prog_CC+set}" = set; then :
3427   $as_echo_n "(cached) " >&6
3428 else
3429   if test -n "$CC"; then
3430   ac_cv_prog_CC="$CC" # Let the user override the test.
3431 else
3432 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3433 for as_dir in $PATH
3434 do
3435   IFS=$as_save_IFS
3436   test -z "$as_dir" && as_dir=.
3437     for ac_exec_ext in '' $ac_executable_extensions; do
3438   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3439     ac_cv_prog_CC="${ac_tool_prefix}cc"
3440     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3441     break 2
3442   fi
3443 done
3444   done
3445 IFS=$as_save_IFS
3446
3447 fi
3448 fi
3449 CC=$ac_cv_prog_CC
3450 if test -n "$CC"; then
3451   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3452 $as_echo "$CC" >&6; }
3453 else
3454   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3455 $as_echo "no" >&6; }
3456 fi
3457
3458
3459   fi
3460 fi
3461 if test -z "$CC"; then
3462   # Extract the first word of "cc", so it can be a program name with args.
3463 set dummy cc; ac_word=$2
3464 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3465 $as_echo_n "checking for $ac_word... " >&6; }
3466 if test "${ac_cv_prog_CC+set}" = set; then :
3467   $as_echo_n "(cached) " >&6
3468 else
3469   if test -n "$CC"; then
3470   ac_cv_prog_CC="$CC" # Let the user override the test.
3471 else
3472   ac_prog_rejected=no
3473 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3474 for as_dir in $PATH
3475 do
3476   IFS=$as_save_IFS
3477   test -z "$as_dir" && as_dir=.
3478     for ac_exec_ext in '' $ac_executable_extensions; do
3479   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3480     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3481        ac_prog_rejected=yes
3482        continue
3483      fi
3484     ac_cv_prog_CC="cc"
3485     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3486     break 2
3487   fi
3488 done
3489   done
3490 IFS=$as_save_IFS
3491
3492 if test $ac_prog_rejected = yes; then
3493   # We found a bogon in the path, so make sure we never use it.
3494   set dummy $ac_cv_prog_CC
3495   shift
3496   if test $# != 0; then
3497     # We chose a different compiler from the bogus one.
3498     # However, it has the same basename, so the bogon will be chosen
3499     # first if we set CC to just the basename; use the full file name.
3500     shift
3501     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3502   fi
3503 fi
3504 fi
3505 fi
3506 CC=$ac_cv_prog_CC
3507 if test -n "$CC"; then
3508   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3509 $as_echo "$CC" >&6; }
3510 else
3511   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3512 $as_echo "no" >&6; }
3513 fi
3514
3515
3516 fi
3517 if test -z "$CC"; then
3518   if test -n "$ac_tool_prefix"; then
3519   for ac_prog in cl.exe
3520   do
3521     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3522 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3523 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3524 $as_echo_n "checking for $ac_word... " >&6; }
3525 if test "${ac_cv_prog_CC+set}" = set; then :
3526   $as_echo_n "(cached) " >&6
3527 else
3528   if test -n "$CC"; then
3529   ac_cv_prog_CC="$CC" # Let the user override the test.
3530 else
3531 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3532 for as_dir in $PATH
3533 do
3534   IFS=$as_save_IFS
3535   test -z "$as_dir" && as_dir=.
3536     for ac_exec_ext in '' $ac_executable_extensions; do
3537   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3538     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3539     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3540     break 2
3541   fi
3542 done
3543   done
3544 IFS=$as_save_IFS
3545
3546 fi
3547 fi
3548 CC=$ac_cv_prog_CC
3549 if test -n "$CC"; then
3550   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3551 $as_echo "$CC" >&6; }
3552 else
3553   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3554 $as_echo "no" >&6; }
3555 fi
3556
3557
3558     test -n "$CC" && break
3559   done
3560 fi
3561 if test -z "$CC"; then
3562   ac_ct_CC=$CC
3563   for ac_prog in cl.exe
3564 do
3565   # Extract the first word of "$ac_prog", so it can be a program name with args.
3566 set dummy $ac_prog; ac_word=$2
3567 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3568 $as_echo_n "checking for $ac_word... " >&6; }
3569 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3570   $as_echo_n "(cached) " >&6
3571 else
3572   if test -n "$ac_ct_CC"; then
3573   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3574 else
3575 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3576 for as_dir in $PATH
3577 do
3578   IFS=$as_save_IFS
3579   test -z "$as_dir" && as_dir=.
3580     for ac_exec_ext in '' $ac_executable_extensions; do
3581   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3582     ac_cv_prog_ac_ct_CC="$ac_prog"
3583     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3584     break 2
3585   fi
3586 done
3587   done
3588 IFS=$as_save_IFS
3589
3590 fi
3591 fi
3592 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3593 if test -n "$ac_ct_CC"; then
3594   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3595 $as_echo "$ac_ct_CC" >&6; }
3596 else
3597   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3598 $as_echo "no" >&6; }
3599 fi
3600
3601
3602   test -n "$ac_ct_CC" && break
3603 done
3604
3605   if test "x$ac_ct_CC" = x; then
3606     CC=""
3607   else
3608     case $cross_compiling:$ac_tool_warned in
3609 yes:)
3610 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3611 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3612 ac_tool_warned=yes ;;
3613 esac
3614     CC=$ac_ct_CC
3615   fi
3616 fi
3617
3618 fi
3619
3620
3621 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3622 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3623 as_fn_error "no acceptable C compiler found in \$PATH
3624 See \`config.log' for more details." "$LINENO" 5; }
3625
3626 # Provide some information about the compiler.
3627 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3628 set X $ac_compile
3629 ac_compiler=$2
3630 for ac_option in --version -v -V -qversion; do
3631   { { ac_try="$ac_compiler $ac_option >&5"
3632 case "(($ac_try" in
3633   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3634   *) ac_try_echo=$ac_try;;
3635 esac
3636 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3637 $as_echo "$ac_try_echo"; } >&5
3638   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3639   ac_status=$?
3640   if test -s conftest.err; then
3641     sed '10a\
3642 ... rest of stderr output deleted ...
3643          10q' conftest.err >conftest.er1
3644     cat conftest.er1 >&5
3645   fi
3646   rm -f conftest.er1 conftest.err
3647   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3648   test $ac_status = 0; }
3649 done
3650
3651 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3652 /* end confdefs.h.  */
3653
3654 int
3655 main ()
3656 {
3657
3658   ;
3659   return 0;
3660 }
3661 _ACEOF
3662 ac_clean_files_save=$ac_clean_files
3663 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3664 # Try to create an executable without -o first, disregard a.out.
3665 # It will help us diagnose broken compilers, and finding out an intuition
3666 # of exeext.
3667 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3668 $as_echo_n "checking whether the C compiler works... " >&6; }
3669 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3670
3671 # The possible output files:
3672 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3673
3674 ac_rmfiles=
3675 for ac_file in $ac_files
3676 do
3677   case $ac_file in
3678     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3679     * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3680   esac
3681 done
3682 rm -f $ac_rmfiles
3683
3684 if { { ac_try="$ac_link_default"
3685 case "(($ac_try" in
3686   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3687   *) ac_try_echo=$ac_try;;
3688 esac
3689 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3690 $as_echo "$ac_try_echo"; } >&5
3691   (eval "$ac_link_default") 2>&5
3692   ac_status=$?
3693   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3694   test $ac_status = 0; }; then :
3695   # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3696 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3697 # in a Makefile.  We should not override ac_cv_exeext if it was cached,
3698 # so that the user can short-circuit this test for compilers unknown to
3699 # Autoconf.
3700 for ac_file in $ac_files ''
3701 do
3702   test -f "$ac_file" || continue
3703   case $ac_file in
3704     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3705         ;;
3706     [ab].out )
3707         # We found the default executable, but exeext='' is most
3708         # certainly right.
3709         break;;
3710     *.* )
3711         if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3712         then :; else
3713            ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3714         fi
3715         # We set ac_cv_exeext here because the later test for it is not
3716         # safe: cross compilers may not add the suffix if given an `-o'
3717         # argument, so we may need to know it at that point already.
3718         # Even if this section looks crufty: it has the advantage of
3719         # actually working.
3720         break;;
3721     * )
3722         break;;
3723   esac
3724 done
3725 test "$ac_cv_exeext" = no && ac_cv_exeext=
3726
3727 else
3728   ac_file=''
3729 fi
3730 if test -z "$ac_file"; then :
3731   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3732 $as_echo "no" >&6; }
3733 $as_echo "$as_me: failed program was:" >&5
3734 sed 's/^/| /' conftest.$ac_ext >&5
3735
3736 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3737 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3738 { as_fn_set_status 77
3739 as_fn_error "C compiler cannot create executables
3740 See \`config.log' for more details." "$LINENO" 5; }; }
3741 else
3742   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3743 $as_echo "yes" >&6; }
3744 fi
3745 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3746 $as_echo_n "checking for C compiler default output file name... " >&6; }
3747 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3748 $as_echo "$ac_file" >&6; }
3749 ac_exeext=$ac_cv_exeext
3750
3751 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3752 ac_clean_files=$ac_clean_files_save
3753 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3754 $as_echo_n "checking for suffix of executables... " >&6; }
3755 if { { ac_try="$ac_link"
3756 case "(($ac_try" in
3757   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3758   *) ac_try_echo=$ac_try;;
3759 esac
3760 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3761 $as_echo "$ac_try_echo"; } >&5
3762   (eval "$ac_link") 2>&5
3763   ac_status=$?
3764   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3765   test $ac_status = 0; }; then :
3766   # If both `conftest.exe' and `conftest' are `present' (well, observable)
3767 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
3768 # work properly (i.e., refer to `conftest.exe'), while it won't with
3769 # `rm'.
3770 for ac_file in conftest.exe conftest conftest.*; do
3771   test -f "$ac_file" || continue
3772   case $ac_file in
3773     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3774     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3775           break;;
3776     * ) break;;
3777   esac
3778 done
3779 else
3780   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3781 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3782 as_fn_error "cannot compute suffix of executables: cannot compile and link
3783 See \`config.log' for more details." "$LINENO" 5; }
3784 fi
3785 rm -f conftest conftest$ac_cv_exeext
3786 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3787 $as_echo "$ac_cv_exeext" >&6; }
3788
3789 rm -f conftest.$ac_ext
3790 EXEEXT=$ac_cv_exeext
3791 ac_exeext=$EXEEXT
3792 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3793 /* end confdefs.h.  */
3794 #include <stdio.h>
3795 int
3796 main ()
3797 {
3798 FILE *f = fopen ("conftest.out", "w");
3799  return ferror (f) || fclose (f) != 0;
3800
3801   ;
3802   return 0;
3803 }
3804 _ACEOF
3805 ac_clean_files="$ac_clean_files conftest.out"
3806 # Check that the compiler produces executables we can run.  If not, either
3807 # the compiler is broken, or we cross compile.
3808 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3809 $as_echo_n "checking whether we are cross compiling... " >&6; }
3810 if test "$cross_compiling" != yes; then
3811   { { ac_try="$ac_link"
3812 case "(($ac_try" in
3813   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3814   *) ac_try_echo=$ac_try;;
3815 esac
3816 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3817 $as_echo "$ac_try_echo"; } >&5
3818   (eval "$ac_link") 2>&5
3819   ac_status=$?
3820   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3821   test $ac_status = 0; }
3822   if { ac_try='./conftest$ac_cv_exeext'
3823   { { case "(($ac_try" in
3824   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3825   *) ac_try_echo=$ac_try;;
3826 esac
3827 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3828 $as_echo "$ac_try_echo"; } >&5
3829   (eval "$ac_try") 2>&5
3830   ac_status=$?
3831   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3832   test $ac_status = 0; }; }; then
3833     cross_compiling=no
3834   else
3835     if test "$cross_compiling" = maybe; then
3836         cross_compiling=yes
3837     else
3838         { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3839 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3840 as_fn_error "cannot run C compiled programs.
3841 If you meant to cross compile, use \`--host'.
3842 See \`config.log' for more details." "$LINENO" 5; }
3843     fi
3844   fi
3845 fi
3846 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3847 $as_echo "$cross_compiling" >&6; }
3848
3849 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3850 ac_clean_files=$ac_clean_files_save
3851 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3852 $as_echo_n "checking for suffix of object files... " >&6; }
3853 if test "${ac_cv_objext+set}" = set; then :
3854   $as_echo_n "(cached) " >&6
3855 else
3856   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3857 /* end confdefs.h.  */
3858
3859 int
3860 main ()
3861 {
3862
3863   ;
3864   return 0;
3865 }
3866 _ACEOF
3867 rm -f conftest.o conftest.obj
3868 if { { ac_try="$ac_compile"
3869 case "(($ac_try" in
3870   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3871   *) ac_try_echo=$ac_try;;
3872 esac
3873 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3874 $as_echo "$ac_try_echo"; } >&5
3875   (eval "$ac_compile") 2>&5
3876   ac_status=$?
3877   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3878   test $ac_status = 0; }; then :
3879   for ac_file in conftest.o conftest.obj conftest.*; do
3880   test -f "$ac_file" || continue;
3881   case $ac_file in
3882     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3883     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3884        break;;
3885   esac
3886 done
3887 else
3888   $as_echo "$as_me: failed program was:" >&5
3889 sed 's/^/| /' conftest.$ac_ext >&5
3890
3891 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3892 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3893 as_fn_error "cannot compute suffix of object files: cannot compile
3894 See \`config.log' for more details." "$LINENO" 5; }
3895 fi
3896 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3897 fi
3898 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3899 $as_echo "$ac_cv_objext" >&6; }
3900 OBJEXT=$ac_cv_objext
3901 ac_objext=$OBJEXT
3902 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3903 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3904 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
3905   $as_echo_n "(cached) " >&6
3906 else
3907   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3908 /* end confdefs.h.  */
3909
3910 int
3911 main ()
3912 {
3913 #ifndef __GNUC__
3914        choke me
3915 #endif
3916
3917   ;
3918   return 0;
3919 }
3920 _ACEOF
3921 if ac_fn_c_try_compile "$LINENO"; then :
3922   ac_compiler_gnu=yes
3923 else
3924   ac_compiler_gnu=no
3925 fi
3926 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3927 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3928
3929 fi
3930 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3931 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3932 if test $ac_compiler_gnu = yes; then
3933   GCC=yes
3934 else
3935   GCC=
3936 fi
3937 ac_test_CFLAGS=${CFLAGS+set}
3938 ac_save_CFLAGS=$CFLAGS
3939 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3940 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3941 if test "${ac_cv_prog_cc_g+set}" = set; then :
3942   $as_echo_n "(cached) " >&6
3943 else
3944   ac_save_c_werror_flag=$ac_c_werror_flag
3945    ac_c_werror_flag=yes
3946    ac_cv_prog_cc_g=no
3947    CFLAGS="-g"
3948    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3949 /* end confdefs.h.  */
3950
3951 int
3952 main ()
3953 {
3954
3955   ;
3956   return 0;
3957 }
3958 _ACEOF
3959 if ac_fn_c_try_compile "$LINENO"; then :
3960   ac_cv_prog_cc_g=yes
3961 else
3962   CFLAGS=""
3963       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3964 /* end confdefs.h.  */
3965
3966 int
3967 main ()
3968 {
3969
3970   ;
3971   return 0;
3972 }
3973 _ACEOF
3974 if ac_fn_c_try_compile "$LINENO"; then :
3975
3976 else
3977   ac_c_werror_flag=$ac_save_c_werror_flag
3978          CFLAGS="-g"
3979          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3980 /* end confdefs.h.  */
3981
3982 int
3983 main ()
3984 {
3985
3986   ;
3987   return 0;
3988 }
3989 _ACEOF
3990 if ac_fn_c_try_compile "$LINENO"; then :
3991   ac_cv_prog_cc_g=yes
3992 fi
3993 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3994 fi
3995 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3996 fi
3997 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3998    ac_c_werror_flag=$ac_save_c_werror_flag
3999 fi
4000 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4001 $as_echo "$ac_cv_prog_cc_g" >&6; }
4002 if test "$ac_test_CFLAGS" = set; then
4003   CFLAGS=$ac_save_CFLAGS
4004 elif test $ac_cv_prog_cc_g = yes; then
4005   if test "$GCC" = yes; then
4006     CFLAGS="-g -O2"
4007   else
4008     CFLAGS="-g"
4009   fi
4010 else
4011   if test "$GCC" = yes; then
4012     CFLAGS="-O2"
4013   else
4014     CFLAGS=
4015   fi
4016 fi
4017 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4018 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4019 if test "${ac_cv_prog_cc_c89+set}" = set; then :
4020   $as_echo_n "(cached) " >&6
4021 else
4022   ac_cv_prog_cc_c89=no
4023 ac_save_CC=$CC
4024 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4025 /* end confdefs.h.  */
4026 #include <stdarg.h>
4027 #include <stdio.h>
4028 #include <sys/types.h>
4029 #include <sys/stat.h>
4030 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
4031 struct buf { int x; };
4032 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4033 static char *e (p, i)
4034      char **p;
4035      int i;
4036 {
4037   return p[i];
4038 }
4039 static char *f (char * (*g) (char **, int), char **p, ...)
4040 {
4041   char *s;
4042   va_list v;
4043   va_start (v,p);
4044   s = g (p, va_arg (v,int));
4045   va_end (v);
4046   return s;
4047 }
4048
4049 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
4050    function prototypes and stuff, but not '\xHH' hex character constants.
4051    These don't provoke an error unfortunately, instead are silently treated
4052    as 'x'.  The following induces an error, until -std is added to get
4053    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
4054    array size at least.  It's necessary to write '\x00'==0 to get something
4055    that's true only with -std.  */
4056 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4057
4058 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4059    inside strings and character constants.  */
4060 #define FOO(x) 'x'
4061 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4062
4063 int test (int i, double x);
4064 struct s1 {int (*f) (int a);};
4065 struct s2 {int (*f) (double a);};
4066 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4067 int argc;
4068 char **argv;
4069 int
4070 main ()
4071 {
4072 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
4073   ;
4074   return 0;
4075 }
4076 _ACEOF
4077 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4078         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4079 do
4080   CC="$ac_save_CC $ac_arg"
4081   if ac_fn_c_try_compile "$LINENO"; then :
4082   ac_cv_prog_cc_c89=$ac_arg
4083 fi
4084 rm -f core conftest.err conftest.$ac_objext
4085   test "x$ac_cv_prog_cc_c89" != "xno" && break
4086 done
4087 rm -f conftest.$ac_ext
4088 CC=$ac_save_CC
4089
4090 fi
4091 # AC_CACHE_VAL
4092 case "x$ac_cv_prog_cc_c89" in
4093   x)
4094     { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4095 $as_echo "none needed" >&6; } ;;
4096   xno)
4097     { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4098 $as_echo "unsupported" >&6; } ;;
4099   *)
4100     CC="$CC $ac_cv_prog_cc_c89"
4101     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4102 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4103 esac
4104 if test "x$ac_cv_prog_cc_c89" != xno; then :
4105
4106 fi
4107
4108 ac_ext=c
4109 ac_cpp='$CPP $CPPFLAGS'
4110 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4111 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4112 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4113
4114 ac_ext=cpp
4115 ac_cpp='$CXXCPP $CPPFLAGS'
4116 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4117 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4118 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4119 if test -z "$CXX"; then
4120   if test -n "$CCC"; then
4121     CXX=$CCC
4122   else
4123     if test -n "$ac_tool_prefix"; then
4124   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4125   do
4126     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4127 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4128 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4129 $as_echo_n "checking for $ac_word... " >&6; }
4130 if test "${ac_cv_prog_CXX+set}" = set; then :
4131   $as_echo_n "(cached) " >&6
4132 else
4133   if test -n "$CXX"; then
4134   ac_cv_prog_CXX="$CXX" # Let the user override the test.
4135 else
4136 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4137 for as_dir in $PATH
4138 do
4139   IFS=$as_save_IFS
4140   test -z "$as_dir" && as_dir=.
4141     for ac_exec_ext in '' $ac_executable_extensions; do
4142   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4143     ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
4144     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4145     break 2
4146   fi
4147 done
4148   done
4149 IFS=$as_save_IFS
4150
4151 fi
4152 fi
4153 CXX=$ac_cv_prog_CXX
4154 if test -n "$CXX"; then
4155   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
4156 $as_echo "$CXX" >&6; }
4157 else
4158   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4159 $as_echo "no" >&6; }
4160 fi
4161
4162
4163     test -n "$CXX" && break
4164   done
4165 fi
4166 if test -z "$CXX"; then
4167   ac_ct_CXX=$CXX
4168   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4169 do
4170   # Extract the first word of "$ac_prog", so it can be a program name with args.
4171 set dummy $ac_prog; ac_word=$2
4172 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4173 $as_echo_n "checking for $ac_word... " >&6; }
4174 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then :
4175   $as_echo_n "(cached) " >&6
4176 else
4177   if test -n "$ac_ct_CXX"; then
4178   ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
4179 else
4180 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4181 for as_dir in $PATH
4182 do
4183   IFS=$as_save_IFS
4184   test -z "$as_dir" && as_dir=.
4185     for ac_exec_ext in '' $ac_executable_extensions; do
4186   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4187     ac_cv_prog_ac_ct_CXX="$ac_prog"
4188     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4189     break 2
4190   fi
4191 done
4192   done
4193 IFS=$as_save_IFS
4194
4195 fi
4196 fi
4197 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
4198 if test -n "$ac_ct_CXX"; then
4199   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
4200 $as_echo "$ac_ct_CXX" >&6; }
4201 else
4202   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4203 $as_echo "no" >&6; }
4204 fi
4205
4206
4207   test -n "$ac_ct_CXX" && break
4208 done
4209
4210   if test "x$ac_ct_CXX" = x; then
4211     CXX="g++"
4212   else
4213     case $cross_compiling:$ac_tool_warned in
4214 yes:)
4215 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4216 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4217 ac_tool_warned=yes ;;
4218 esac
4219     CXX=$ac_ct_CXX
4220   fi
4221 fi
4222
4223   fi
4224 fi
4225 # Provide some information about the compiler.
4226 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
4227 set X $ac_compile
4228 ac_compiler=$2
4229 for ac_option in --version -v -V -qversion; do
4230   { { ac_try="$ac_compiler $ac_option >&5"
4231 case "(($ac_try" in
4232   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4233   *) ac_try_echo=$ac_try;;
4234 esac
4235 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4236 $as_echo "$ac_try_echo"; } >&5
4237   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4238   ac_status=$?
4239   if test -s conftest.err; then
4240     sed '10a\
4241 ... rest of stderr output deleted ...
4242          10q' conftest.err >conftest.er1
4243     cat conftest.er1 >&5
4244   fi
4245   rm -f conftest.er1 conftest.err
4246   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4247   test $ac_status = 0; }
4248 done
4249
4250 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
4251 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
4252 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then :
4253   $as_echo_n "(cached) " >&6
4254 else
4255   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4256 /* end confdefs.h.  */
4257
4258 int
4259 main ()
4260 {
4261 #ifndef __GNUC__
4262        choke me
4263 #endif
4264
4265   ;
4266   return 0;
4267 }
4268 _ACEOF
4269 if ac_fn_cxx_try_compile "$LINENO"; then :
4270   ac_compiler_gnu=yes
4271 else
4272   ac_compiler_gnu=no
4273 fi
4274 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4275 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
4276
4277 fi
4278 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
4279 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
4280 if test $ac_compiler_gnu = yes; then
4281   GXX=yes
4282 else
4283   GXX=
4284 fi
4285 ac_test_CXXFLAGS=${CXXFLAGS+set}
4286 ac_save_CXXFLAGS=$CXXFLAGS
4287 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
4288 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
4289 if test "${ac_cv_prog_cxx_g+set}" = set; then :
4290   $as_echo_n "(cached) " >&6
4291 else
4292   ac_save_cxx_werror_flag=$ac_cxx_werror_flag
4293    ac_cxx_werror_flag=yes
4294    ac_cv_prog_cxx_g=no
4295    CXXFLAGS="-g"
4296    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4297 /* end confdefs.h.  */
4298
4299 int
4300 main ()
4301 {
4302
4303   ;
4304   return 0;
4305 }
4306 _ACEOF
4307 if ac_fn_cxx_try_compile "$LINENO"; then :
4308   ac_cv_prog_cxx_g=yes
4309 else
4310   CXXFLAGS=""
4311       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4312 /* end confdefs.h.  */
4313
4314 int
4315 main ()
4316 {
4317
4318   ;
4319   return 0;
4320 }
4321 _ACEOF
4322 if ac_fn_cxx_try_compile "$LINENO"; then :
4323
4324 else
4325   ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4326          CXXFLAGS="-g"
4327          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4328 /* end confdefs.h.  */
4329
4330 int
4331 main ()
4332 {
4333
4334   ;
4335   return 0;
4336 }
4337 _ACEOF
4338 if ac_fn_cxx_try_compile "$LINENO"; then :
4339   ac_cv_prog_cxx_g=yes
4340 fi
4341 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4342 fi
4343 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4344 fi
4345 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4346    ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4347 fi
4348 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
4349 $as_echo "$ac_cv_prog_cxx_g" >&6; }
4350 if test "$ac_test_CXXFLAGS" = set; then
4351   CXXFLAGS=$ac_save_CXXFLAGS
4352 elif test $ac_cv_prog_cxx_g = yes; then
4353   if test "$GXX" = yes; then
4354     CXXFLAGS="-g -O2"
4355   else
4356     CXXFLAGS="-g"
4357   fi
4358 else
4359   if test "$GXX" = yes; then
4360     CXXFLAGS="-O2"
4361   else
4362     CXXFLAGS=
4363   fi
4364 fi
4365 ac_ext=c
4366 ac_cpp='$CPP $CPPFLAGS'
4367 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4368 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4369 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4370
4371 if test "x$CC" != xcc; then
4372   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC and cc understand -c and -o together" >&5
4373 $as_echo_n "checking whether $CC and cc understand -c and -o together... " >&6; }
4374 else
4375   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether cc understands -c and -o together" >&5
4376 $as_echo_n "checking whether cc understands -c and -o together... " >&6; }
4377 fi
4378 set dummy $CC; ac_cc=`$as_echo "$2" |
4379                       sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
4380 if { as_var=ac_cv_prog_cc_${ac_cc}_c_o; eval "test \"\${$as_var+set}\" = set"; }; then :
4381   $as_echo_n "(cached) " >&6
4382 else
4383   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4384 /* end confdefs.h.  */
4385
4386 int
4387 main ()
4388 {
4389
4390   ;
4391   return 0;
4392 }
4393 _ACEOF
4394 # Make sure it works both with $CC and with simple cc.
4395 # We do the test twice because some compilers refuse to overwrite an
4396 # existing .o file with -o, though they will create one.
4397 ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
4398 rm -f conftest2.*
4399 if { { case "(($ac_try" in
4400   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4401   *) ac_try_echo=$ac_try;;
4402 esac
4403 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4404 $as_echo "$ac_try_echo"; } >&5
4405   (eval "$ac_try") 2>&5
4406   ac_status=$?
4407   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4408   test $ac_status = 0; } &&
4409    test -f conftest2.$ac_objext && { { case "(($ac_try" in
4410   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4411   *) ac_try_echo=$ac_try;;
4412 esac
4413 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4414 $as_echo "$ac_try_echo"; } >&5
4415   (eval "$ac_try") 2>&5
4416   ac_status=$?
4417   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4418   test $ac_status = 0; };
4419 then
4420   eval ac_cv_prog_cc_${ac_cc}_c_o=yes
4421   if test "x$CC" != xcc; then
4422     # Test first that cc exists at all.
4423     if { ac_try='cc -c conftest.$ac_ext >&5'
4424   { { case "(($ac_try" in
4425   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4426   *) ac_try_echo=$ac_try;;
4427 esac
4428 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4429 $as_echo "$ac_try_echo"; } >&5
4430   (eval "$ac_try") 2>&5
4431   ac_status=$?
4432   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4433   test $ac_status = 0; }; }; then
4434       ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
4435       rm -f conftest2.*
4436       if { { case "(($ac_try" in
4437   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4438   *) ac_try_echo=$ac_try;;
4439 esac
4440 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4441 $as_echo "$ac_try_echo"; } >&5
4442   (eval "$ac_try") 2>&5
4443   ac_status=$?
4444   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4445   test $ac_status = 0; } &&
4446          test -f conftest2.$ac_objext && { { case "(($ac_try" in
4447   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4448   *) ac_try_echo=$ac_try;;
4449 esac
4450 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4451 $as_echo "$ac_try_echo"; } >&5
4452   (eval "$ac_try") 2>&5
4453   ac_status=$?
4454   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4455   test $ac_status = 0; };
4456       then
4457         # cc works too.
4458         :
4459       else
4460         # cc exists but doesn't like -o.
4461         eval ac_cv_prog_cc_${ac_cc}_c_o=no
4462       fi
4463     fi
4464   fi
4465 else
4466   eval ac_cv_prog_cc_${ac_cc}_c_o=no
4467 fi
4468 rm -f core conftest*
4469
4470 fi
4471 if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then
4472   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4473 $as_echo "yes" >&6; }
4474 else
4475   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4476 $as_echo "no" >&6; }
4477
4478 $as_echo "#define NO_MINUS_C_MINUS_O 1" >>confdefs.h
4479
4480 fi
4481
4482 ac_ext=c
4483 ac_cpp='$CPP $CPPFLAGS'
4484 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4485 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4486 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4487 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4488 $as_echo_n "checking how to run the C preprocessor... " >&6; }
4489 # On Suns, sometimes $CPP names a directory.
4490 if test -n "$CPP" && test -d "$CPP"; then
4491   CPP=
4492 fi
4493 if test -z "$CPP"; then
4494   if test "${ac_cv_prog_CPP+set}" = set; then :
4495   $as_echo_n "(cached) " >&6
4496 else
4497       # Double quotes because CPP needs to be expanded
4498     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4499     do
4500       ac_preproc_ok=false
4501 for ac_c_preproc_warn_flag in '' yes
4502 do
4503   # Use a header file that comes with gcc, so configuring glibc
4504   # with a fresh cross-compiler works.
4505   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4506   # <limits.h> exists even on freestanding compilers.
4507   # On the NeXT, cc -E runs the code through the compiler's parser,
4508   # not just through cpp. "Syntax error" is here to catch this case.
4509   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4510 /* end confdefs.h.  */
4511 #ifdef __STDC__
4512 # include <limits.h>
4513 #else
4514 # include <assert.h>
4515 #endif
4516                      Syntax error
4517 _ACEOF
4518 if ac_fn_c_try_cpp "$LINENO"; then :
4519
4520 else
4521   # Broken: fails on valid input.
4522 continue
4523 fi
4524 rm -f conftest.err conftest.$ac_ext
4525
4526   # OK, works on sane cases.  Now check whether nonexistent headers
4527   # can be detected and how.
4528   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4529 /* end confdefs.h.  */
4530 #include <ac_nonexistent.h>
4531 _ACEOF
4532 if ac_fn_c_try_cpp "$LINENO"; then :
4533   # Broken: success on invalid input.
4534 continue
4535 else
4536   # Passes both tests.
4537 ac_preproc_ok=:
4538 break
4539 fi
4540 rm -f conftest.err conftest.$ac_ext
4541
4542 done
4543 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4544 rm -f conftest.err conftest.$ac_ext
4545 if $ac_preproc_ok; then :
4546   break
4547 fi
4548
4549     done
4550     ac_cv_prog_CPP=$CPP
4551
4552 fi
4553   CPP=$ac_cv_prog_CPP
4554 else
4555   ac_cv_prog_CPP=$CPP
4556 fi
4557 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4558 $as_echo "$CPP" >&6; }
4559 ac_preproc_ok=false
4560 for ac_c_preproc_warn_flag in '' yes
4561 do
4562   # Use a header file that comes with gcc, so configuring glibc
4563   # with a fresh cross-compiler works.
4564   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4565   # <limits.h> exists even on freestanding compilers.
4566   # On the NeXT, cc -E runs the code through the compiler's parser,
4567   # not just through cpp. "Syntax error" is here to catch this case.
4568   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4569 /* end confdefs.h.  */
4570 #ifdef __STDC__
4571 # include <limits.h>
4572 #else
4573 # include <assert.h>
4574 #endif
4575                      Syntax error
4576 _ACEOF
4577 if ac_fn_c_try_cpp "$LINENO"; then :
4578
4579 else
4580   # Broken: fails on valid input.
4581 continue
4582 fi
4583 rm -f conftest.err conftest.$ac_ext
4584
4585   # OK, works on sane cases.  Now check whether nonexistent headers
4586   # can be detected and how.
4587   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4588 /* end confdefs.h.  */
4589 #include <ac_nonexistent.h>
4590 _ACEOF
4591 if ac_fn_c_try_cpp "$LINENO"; then :
4592   # Broken: success on invalid input.
4593 continue
4594 else
4595   # Passes both tests.
4596 ac_preproc_ok=:
4597 break
4598 fi
4599 rm -f conftest.err conftest.$ac_ext
4600
4601 done
4602 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4603 rm -f conftest.err conftest.$ac_ext
4604 if $ac_preproc_ok; then :
4605
4606 else
4607   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4608 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4609 as_fn_error "C preprocessor \"$CPP\" fails sanity check
4610 See \`config.log' for more details." "$LINENO" 5; }
4611 fi
4612
4613 ac_ext=c
4614 ac_cpp='$CPP $CPPFLAGS'
4615 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4616 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4617 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4618
4619
4620 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4621 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4622 if test "${ac_cv_path_GREP+set}" = set; then :
4623   $as_echo_n "(cached) " >&6
4624 else
4625   if test -z "$GREP"; then
4626   ac_path_GREP_found=false
4627   # Loop through the user's path and test for each of PROGNAME-LIST
4628   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4629 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4630 do
4631   IFS=$as_save_IFS
4632   test -z "$as_dir" && as_dir=.
4633     for ac_prog in grep ggrep; do
4634     for ac_exec_ext in '' $ac_executable_extensions; do
4635       ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4636       { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4637 # Check for GNU ac_path_GREP and select it if it is found.
4638   # Check for GNU $ac_path_GREP
4639 case `"$ac_path_GREP" --version 2>&1` in
4640 *GNU*)
4641   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4642 *)
4643   ac_count=0
4644   $as_echo_n 0123456789 >"conftest.in"
4645   while :
4646   do
4647     cat "conftest.in" "conftest.in" >"conftest.tmp"
4648     mv "conftest.tmp" "conftest.in"
4649     cp "conftest.in" "conftest.nl"
4650     $as_echo 'GREP' >> "conftest.nl"
4651     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4652     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4653     as_fn_arith $ac_count + 1 && ac_count=$as_val
4654     if test $ac_count -gt ${ac_path_GREP_max-0}; then
4655       # Best one so far, save it but keep looking for a better one
4656       ac_cv_path_GREP="$ac_path_GREP"
4657       ac_path_GREP_max=$ac_count
4658     fi
4659     # 10*(2^10) chars as input seems more than enough
4660     test $ac_count -gt 10 && break
4661   done
4662   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4663 esac
4664
4665       $ac_path_GREP_found && break 3
4666     done
4667   done
4668   done
4669 IFS=$as_save_IFS
4670   if test -z "$ac_cv_path_GREP"; then
4671     as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4672   fi
4673 else
4674   ac_cv_path_GREP=$GREP
4675 fi
4676
4677 fi
4678 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4679 $as_echo "$ac_cv_path_GREP" >&6; }
4680  GREP="$ac_cv_path_GREP"
4681
4682
4683 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4684 $as_echo_n "checking for egrep... " >&6; }
4685 if test "${ac_cv_path_EGREP+set}" = set; then :
4686   $as_echo_n "(cached) " >&6
4687 else
4688   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4689    then ac_cv_path_EGREP="$GREP -E"
4690    else
4691      if test -z "$EGREP"; then
4692   ac_path_EGREP_found=false
4693   # Loop through the user's path and test for each of PROGNAME-LIST
4694   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4695 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4696 do
4697   IFS=$as_save_IFS
4698   test -z "$as_dir" && as_dir=.
4699     for ac_prog in egrep; do
4700     for ac_exec_ext in '' $ac_executable_extensions; do
4701       ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4702       { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4703 # Check for GNU ac_path_EGREP and select it if it is found.
4704   # Check for GNU $ac_path_EGREP
4705 case `"$ac_path_EGREP" --version 2>&1` in
4706 *GNU*)
4707   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4708 *)
4709   ac_count=0
4710   $as_echo_n 0123456789 >"conftest.in"
4711   while :
4712   do
4713     cat "conftest.in" "conftest.in" >"conftest.tmp"
4714     mv "conftest.tmp" "conftest.in"
4715     cp "conftest.in" "conftest.nl"
4716     $as_echo 'EGREP' >> "conftest.nl"
4717     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4718     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4719     as_fn_arith $ac_count + 1 && ac_count=$as_val
4720     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4721       # Best one so far, save it but keep looking for a better one
4722       ac_cv_path_EGREP="$ac_path_EGREP"
4723       ac_path_EGREP_max=$ac_count
4724     fi
4725     # 10*(2^10) chars as input seems more than enough
4726     test $ac_count -gt 10 && break
4727   done
4728   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4729 esac
4730
4731       $ac_path_EGREP_found && break 3
4732     done
4733   done
4734   done
4735 IFS=$as_save_IFS
4736   if test -z "$ac_cv_path_EGREP"; then
4737     as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4738   fi
4739 else
4740   ac_cv_path_EGREP=$EGREP
4741 fi
4742
4743    fi
4744 fi
4745 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4746 $as_echo "$ac_cv_path_EGREP" >&6; }
4747  EGREP="$ac_cv_path_EGREP"
4748
4749
4750 if test $ac_cv_c_compiler_gnu = yes; then
4751     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC needs -traditional" >&5
4752 $as_echo_n "checking whether $CC needs -traditional... " >&6; }
4753 if test "${ac_cv_prog_gcc_traditional+set}" = set; then :
4754   $as_echo_n "(cached) " >&6
4755 else
4756     ac_pattern="Autoconf.*'x'"
4757   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4758 /* end confdefs.h.  */
4759 #include <sgtty.h>
4760 Autoconf TIOCGETP
4761 _ACEOF
4762 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4763   $EGREP "$ac_pattern" >/dev/null 2>&1; then :
4764   ac_cv_prog_gcc_traditional=yes
4765 else
4766   ac_cv_prog_gcc_traditional=no
4767 fi
4768 rm -f conftest*
4769
4770
4771   if test $ac_cv_prog_gcc_traditional = no; then
4772     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4773 /* end confdefs.h.  */
4774 #include <termio.h>
4775 Autoconf TCGETA
4776 _ACEOF
4777 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4778   $EGREP "$ac_pattern" >/dev/null 2>&1; then :
4779   ac_cv_prog_gcc_traditional=yes
4780 fi
4781 rm -f conftest*
4782
4783   fi
4784 fi
4785 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_gcc_traditional" >&5
4786 $as_echo "$ac_cv_prog_gcc_traditional" >&6; }
4787   if test $ac_cv_prog_gcc_traditional = yes; then
4788     CC="$CC -traditional"
4789   fi
4790 fi
4791
4792 BASECC=`basename $CC`
4793 have_gcc=no
4794 if test "x$BASECC" = xgcc; then
4795    $as_echo "#define HAVE_GCC 1" >>confdefs.h
4796
4797    have_gcc=yes
4798 fi
4799 # Extract the first word of "$CXX", so it can be a program name with args.
4800 set dummy $CXX; ac_word=$2
4801 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4802 $as_echo_n "checking for $ac_word... " >&6; }
4803 if test "${ac_cv_path_CXX+set}" = set; then :
4804   $as_echo_n "(cached) " >&6
4805 else
4806   case $CXX in
4807   [\\/]* | ?:[\\/]*)
4808   ac_cv_path_CXX="$CXX" # Let the user override the test with a path.
4809   ;;
4810   *)
4811   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4812 for as_dir in $PATH
4813 do
4814   IFS=$as_save_IFS
4815   test -z "$as_dir" && as_dir=.
4816     for ac_exec_ext in '' $ac_executable_extensions; do
4817   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4818     ac_cv_path_CXX="$as_dir/$ac_word$ac_exec_ext"
4819     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4820     break 2
4821   fi
4822 done
4823   done
4824 IFS=$as_save_IFS
4825
4826   test -z "$ac_cv_path_CXX" && ac_cv_path_CXX="$CXX"
4827   ;;
4828 esac
4829 fi
4830 CXX=$ac_cv_path_CXX
4831 if test -n "$CXX"; then
4832   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
4833 $as_echo "$CXX" >&6; }
4834 else
4835   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4836 $as_echo "no" >&6; }
4837 fi
4838
4839
4840 if test ! -e $CXX; then
4841    as_fn_error "Unable to find C++ compiler" "$LINENO" 5
4842 fi
4843
4844 # Find a good install program.  We prefer a C program (faster),
4845 # so one script is as good as another.  But avoid the broken or
4846 # incompatible versions:
4847 # SysV /etc/install, /usr/sbin/install
4848 # SunOS /usr/etc/install
4849 # IRIX /sbin/install
4850 # AIX /bin/install
4851 # AmigaOS /C/install, which installs bootblocks on floppy discs
4852 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
4853 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
4854 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
4855 # OS/2's system install, which has a completely different semantic
4856 # ./install, which can be erroneously created by make from ./install.sh.
4857 # Reject install programs that cannot install multiple files.
4858 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
4859 $as_echo_n "checking for a BSD-compatible install... " >&6; }
4860 if test -z "$INSTALL"; then
4861 if test "${ac_cv_path_install+set}" = set; then :
4862   $as_echo_n "(cached) " >&6
4863 else
4864   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4865 for as_dir in $PATH
4866 do
4867   IFS=$as_save_IFS
4868   test -z "$as_dir" && as_dir=.
4869     # Account for people who put trailing slashes in PATH elements.
4870 case $as_dir/ in #((
4871   ./ | .// | /[cC]/* | \
4872   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
4873   ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
4874   /usr/ucb/* ) ;;
4875   *)
4876     # OSF1 and SCO ODT 3.0 have their own names for install.
4877     # Don't use installbsd from OSF since it installs stuff as root
4878     # by default.
4879     for ac_prog in ginstall scoinst install; do
4880       for ac_exec_ext in '' $ac_executable_extensions; do
4881         if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
4882           if test $ac_prog = install &&
4883             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4884             # AIX install.  It has an incompatible calling convention.
4885             :
4886           elif test $ac_prog = install &&
4887             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4888             # program-specific install script used by HP pwplus--don't use.
4889             :
4890           else
4891             rm -rf conftest.one conftest.two conftest.dir
4892             echo one > conftest.one
4893             echo two > conftest.two
4894             mkdir conftest.dir
4895             if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
4896               test -s conftest.one && test -s conftest.two &&
4897               test -s conftest.dir/conftest.one &&
4898               test -s conftest.dir/conftest.two
4899             then
4900               ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
4901               break 3
4902             fi
4903           fi
4904         fi
4905       done
4906     done
4907     ;;
4908 esac
4909
4910   done
4911 IFS=$as_save_IFS
4912
4913 rm -rf conftest.one conftest.two conftest.dir
4914
4915 fi
4916   if test "${ac_cv_path_install+set}" = set; then
4917     INSTALL=$ac_cv_path_install
4918   else
4919     # As a last resort, use the slow shell script.  Don't cache a
4920     # value for INSTALL within a source directory, because that will
4921     # break other packages using the cache if that directory is
4922     # removed, or if the value is a relative name.
4923     INSTALL=$ac_install_sh
4924   fi
4925 fi
4926 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
4927 $as_echo "$INSTALL" >&6; }
4928
4929 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
4930 # It thinks the first close brace ends the variable substitution.
4931 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
4932
4933 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
4934
4935 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
4936
4937 # Extract the first word of "mv", so it can be a program name with args.
4938 set dummy mv; ac_word=$2
4939 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4940 $as_echo_n "checking for $ac_word... " >&6; }
4941 if test "${ac_cv_path_MV+set}" = set; then :
4942   $as_echo_n "(cached) " >&6
4943 else
4944   case $MV in
4945   [\\/]* | ?:[\\/]*)
4946   ac_cv_path_MV="$MV" # Let the user override the test with a path.
4947   ;;
4948   *)
4949   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4950 for as_dir in $PATH
4951 do
4952   IFS=$as_save_IFS
4953   test -z "$as_dir" && as_dir=.
4954     for ac_exec_ext in '' $ac_executable_extensions; do
4955   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4956     ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
4957     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4958     break 2
4959   fi
4960 done
4961   done
4962 IFS=$as_save_IFS
4963
4964   test -z "$ac_cv_path_MV" && ac_cv_path_MV="mv"
4965   ;;
4966 esac
4967 fi
4968 MV=$ac_cv_path_MV
4969 if test -n "$MV"; then
4970   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MV" >&5
4971 $as_echo "$MV" >&6; }
4972 else
4973   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4974 $as_echo "no" >&6; }
4975 fi
4976
4977
4978 # Extract the first word of "rm", so it can be a program name with args.
4979 set dummy rm; ac_word=$2
4980 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4981 $as_echo_n "checking for $ac_word... " >&6; }
4982 if test "${ac_cv_path_REMOVE+set}" = set; then :
4983   $as_echo_n "(cached) " >&6
4984 else
4985   case $REMOVE in
4986   [\\/]* | ?:[\\/]*)
4987   ac_cv_path_REMOVE="$REMOVE" # Let the user override the test with a path.
4988   ;;
4989   *)
4990   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4991 for as_dir in $PATH
4992 do
4993   IFS=$as_save_IFS
4994   test -z "$as_dir" && as_dir=.
4995     for ac_exec_ext in '' $ac_executable_extensions; do
4996   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4997     ac_cv_path_REMOVE="$as_dir/$ac_word$ac_exec_ext"
4998     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4999     break 2
5000   fi
5001 done
5002   done
5003 IFS=$as_save_IFS
5004
5005   test -z "$ac_cv_path_REMOVE" && ac_cv_path_REMOVE="rm"
5006   ;;
5007 esac
5008 fi
5009 REMOVE=$ac_cv_path_REMOVE
5010 if test -n "$REMOVE"; then
5011   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $REMOVE" >&5
5012 $as_echo "$REMOVE" >&6; }
5013 else
5014   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5015 $as_echo "no" >&6; }
5016 fi
5017
5018
5019 # Extract the first word of "cp", so it can be a program name with args.
5020 set dummy cp; ac_word=$2
5021 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5022 $as_echo_n "checking for $ac_word... " >&6; }
5023 if test "${ac_cv_path_CP+set}" = set; then :
5024   $as_echo_n "(cached) " >&6
5025 else
5026   case $CP in
5027   [\\/]* | ?:[\\/]*)
5028   ac_cv_path_CP="$CP" # Let the user override the test with a path.
5029   ;;
5030   *)
5031   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5032 for as_dir in $PATH
5033 do
5034   IFS=$as_save_IFS
5035   test -z "$as_dir" && as_dir=.
5036     for ac_exec_ext in '' $ac_executable_extensions; do
5037   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5038     ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext"
5039     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5040     break 2
5041   fi
5042 done
5043   done
5044 IFS=$as_save_IFS
5045
5046   test -z "$ac_cv_path_CP" && ac_cv_path_CP="cp"
5047   ;;
5048 esac
5049 fi
5050 CP=$ac_cv_path_CP
5051 if test -n "$CP"; then
5052   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CP" >&5
5053 $as_echo "$CP" >&6; }
5054 else
5055   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5056 $as_echo "no" >&6; }
5057 fi
5058
5059
5060 # Extract the first word of "sed", so it can be a program name with args.
5061 set dummy sed; ac_word=$2
5062 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5063 $as_echo_n "checking for $ac_word... " >&6; }
5064 if test "${ac_cv_path_SED+set}" = set; then :
5065   $as_echo_n "(cached) " >&6
5066 else
5067   case $SED in
5068   [\\/]* | ?:[\\/]*)
5069   ac_cv_path_SED="$SED" # Let the user override the test with a path.
5070   ;;
5071   *)
5072   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5073 for as_dir in $PATH
5074 do
5075   IFS=$as_save_IFS
5076   test -z "$as_dir" && as_dir=.
5077     for ac_exec_ext in '' $ac_executable_extensions; do
5078   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5079     ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
5080     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5081     break 2
5082   fi
5083 done
5084   done
5085 IFS=$as_save_IFS
5086
5087   test -z "$ac_cv_path_SED" && ac_cv_path_SED="sed"
5088   ;;
5089 esac
5090 fi
5091 SED=$ac_cv_path_SED
5092 if test -n "$SED"; then
5093   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SED" >&5
5094 $as_echo "$SED" >&6; }
5095 else
5096   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5097 $as_echo "no" >&6; }
5098 fi
5099
5100
5101 # Extract the first word of "echo", so it can be a program name with args.
5102 set dummy echo; ac_word=$2
5103 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5104 $as_echo_n "checking for $ac_word... " >&6; }
5105 if test "${ac_cv_path_ECHO+set}" = set; then :
5106   $as_echo_n "(cached) " >&6
5107 else
5108   case $ECHO in
5109   [\\/]* | ?:[\\/]*)
5110   ac_cv_path_ECHO="$ECHO" # Let the user override the test with a path.
5111   ;;
5112   *)
5113   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5114 for as_dir in $PATH
5115 do
5116   IFS=$as_save_IFS
5117   test -z "$as_dir" && as_dir=.
5118     for ac_exec_ext in '' $ac_executable_extensions; do
5119   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5120     ac_cv_path_ECHO="$as_dir/$ac_word$ac_exec_ext"
5121     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5122     break 2
5123   fi
5124 done
5125   done
5126 IFS=$as_save_IFS
5127
5128   test -z "$ac_cv_path_ECHO" && ac_cv_path_ECHO="echo"
5129   ;;
5130 esac
5131 fi
5132 ECHO=$ac_cv_path_ECHO
5133 if test -n "$ECHO"; then
5134   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ECHO" >&5
5135 $as_echo "$ECHO" >&6; }
5136 else
5137   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5138 $as_echo "no" >&6; }
5139 fi
5140
5141
5142 # Extract the first word of "cmp", so it can be a program name with args.
5143 set dummy cmp; ac_word=$2
5144 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5145 $as_echo_n "checking for $ac_word... " >&6; }
5146 if test "${ac_cv_path_CMP+set}" = set; then :
5147   $as_echo_n "(cached) " >&6
5148 else
5149   case $CMP in
5150   [\\/]* | ?:[\\/]*)
5151   ac_cv_path_CMP="$CMP" # Let the user override the test with a path.
5152   ;;
5153   *)
5154   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5155 for as_dir in $PATH
5156 do
5157   IFS=$as_save_IFS
5158   test -z "$as_dir" && as_dir=.
5159     for ac_exec_ext in '' $ac_executable_extensions; do
5160   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5161     ac_cv_path_CMP="$as_dir/$ac_word$ac_exec_ext"
5162     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5163     break 2
5164   fi
5165 done
5166   done
5167 IFS=$as_save_IFS
5168
5169   test -z "$ac_cv_path_CMP" && ac_cv_path_CMP="cmp"
5170   ;;
5171 esac
5172 fi
5173 CMP=$ac_cv_path_CMP
5174 if test -n "$CMP"; then
5175   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CMP" >&5
5176 $as_echo "$CMP" >&6; }
5177 else
5178   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5179 $as_echo "no" >&6; }
5180 fi
5181
5182
5183 # Extract the first word of "tbl", so it can be a program name with args.
5184 set dummy tbl; ac_word=$2
5185 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5186 $as_echo_n "checking for $ac_word... " >&6; }
5187 if test "${ac_cv_path_TBL+set}" = set; then :
5188   $as_echo_n "(cached) " >&6
5189 else
5190   case $TBL in
5191   [\\/]* | ?:[\\/]*)
5192   ac_cv_path_TBL="$TBL" # Let the user override the test with a path.
5193   ;;
5194   *)
5195   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5196 for as_dir in $PATH
5197 do
5198   IFS=$as_save_IFS
5199   test -z "$as_dir" && as_dir=.
5200     for ac_exec_ext in '' $ac_executable_extensions; do
5201   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5202     ac_cv_path_TBL="$as_dir/$ac_word$ac_exec_ext"
5203     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5204     break 2
5205   fi
5206 done
5207   done
5208 IFS=$as_save_IFS
5209
5210   test -z "$ac_cv_path_TBL" && ac_cv_path_TBL="tbl"
5211   ;;
5212 esac
5213 fi
5214 TBL=$ac_cv_path_TBL
5215 if test -n "$TBL"; then
5216   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TBL" >&5
5217 $as_echo "$TBL" >&6; }
5218 else
5219   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5220 $as_echo "no" >&6; }
5221 fi
5222
5223
5224 # Extract the first word of "ar", so it can be a program name with args.
5225 set dummy ar; ac_word=$2
5226 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5227 $as_echo_n "checking for $ac_word... " >&6; }
5228 if test "${ac_cv_path_AR+set}" = set; then :
5229   $as_echo_n "(cached) " >&6
5230 else
5231   case $AR in
5232   [\\/]* | ?:[\\/]*)
5233   ac_cv_path_AR="$AR" # Let the user override the test with a path.
5234   ;;
5235   *)
5236   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5237 for as_dir in $PATH
5238 do
5239   IFS=$as_save_IFS
5240   test -z "$as_dir" && as_dir=.
5241     for ac_exec_ext in '' $ac_executable_extensions; do
5242   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5243     ac_cv_path_AR="$as_dir/$ac_word$ac_exec_ext"
5244     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5245     break 2
5246   fi
5247 done
5248   done
5249 IFS=$as_save_IFS
5250
5251   test -z "$ac_cv_path_AR" && ac_cv_path_AR="ar"
5252   ;;
5253 esac
5254 fi
5255 AR=$ac_cv_path_AR
5256 if test -n "$AR"; then
5257   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
5258 $as_echo "$AR" >&6; }
5259 else
5260   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5261 $as_echo "no" >&6; }
5262 fi
5263
5264
5265 # Extract the first word of "openssl", so it can be a program name with args.
5266 set dummy openssl; ac_word=$2
5267 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5268 $as_echo_n "checking for $ac_word... " >&6; }
5269 if test "${ac_cv_path_OPENSSL+set}" = set; then :
5270   $as_echo_n "(cached) " >&6
5271 else
5272   case $OPENSSL in
5273   [\\/]* | ?:[\\/]*)
5274   ac_cv_path_OPENSSL="$OPENSSL" # Let the user override the test with a path.
5275   ;;
5276   *)
5277   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5278 for as_dir in $PATH
5279 do
5280   IFS=$as_save_IFS
5281   test -z "$as_dir" && as_dir=.
5282     for ac_exec_ext in '' $ac_executable_extensions; do
5283   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5284     ac_cv_path_OPENSSL="$as_dir/$ac_word$ac_exec_ext"
5285     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5286     break 2
5287   fi
5288 done
5289   done
5290 IFS=$as_save_IFS
5291
5292   test -z "$ac_cv_path_OPENSSL" && ac_cv_path_OPENSSL="none"
5293   ;;
5294 esac
5295 fi
5296 OPENSSL=$ac_cv_path_OPENSSL
5297 if test -n "$OPENSSL"; then
5298   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OPENSSL" >&5
5299 $as_echo "$OPENSSL" >&6; }
5300 else
5301   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5302 $as_echo "no" >&6; }
5303 fi
5304
5305
5306 # Extract the first word of "mtx", so it can be a program name with args.
5307 set dummy mtx; ac_word=$2
5308 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5309 $as_echo_n "checking for $ac_word... " >&6; }
5310 if test "${ac_cv_path_MTX+set}" = set; then :
5311   $as_echo_n "(cached) " >&6
5312 else
5313   case $MTX in
5314   [\\/]* | ?:[\\/]*)
5315   ac_cv_path_MTX="$MTX" # Let the user override the test with a path.
5316   ;;
5317   *)
5318   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5319 for as_dir in $PATH
5320 do
5321   IFS=$as_save_IFS
5322   test -z "$as_dir" && as_dir=.
5323     for ac_exec_ext in '' $ac_executable_extensions; do
5324   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5325     ac_cv_path_MTX="$as_dir/$ac_word$ac_exec_ext"
5326     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5327     break 2
5328   fi
5329 done
5330   done
5331 IFS=$as_save_IFS
5332
5333   test -z "$ac_cv_path_MTX" && ac_cv_path_MTX="mtx"
5334   ;;
5335 esac
5336 fi
5337 MTX=$ac_cv_path_MTX
5338 if test -n "$MTX"; then
5339   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MTX" >&5
5340 $as_echo "$MTX" >&6; }
5341 else
5342   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5343 $as_echo "no" >&6; }
5344 fi
5345
5346
5347 # Extract the first word of "dd", so it can be a program name with args.
5348 set dummy dd; ac_word=$2
5349 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5350 $as_echo_n "checking for $ac_word... " >&6; }
5351 if test "${ac_cv_path_DD+set}" = set; then :
5352   $as_echo_n "(cached) " >&6
5353 else
5354   case $DD in
5355   [\\/]* | ?:[\\/]*)
5356   ac_cv_path_DD="$DD" # Let the user override the test with a path.
5357   ;;
5358   *)
5359   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5360 for as_dir in $PATH
5361 do
5362   IFS=$as_save_IFS
5363   test -z "$as_dir" && as_dir=.
5364     for ac_exec_ext in '' $ac_executable_extensions; do
5365   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5366     ac_cv_path_DD="$as_dir/$ac_word$ac_exec_ext"
5367     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5368     break 2
5369   fi
5370 done
5371   done
5372 IFS=$as_save_IFS
5373
5374   test -z "$ac_cv_path_DD" && ac_cv_path_DD="dd"
5375   ;;
5376 esac
5377 fi
5378 DD=$ac_cv_path_DD
5379 if test -n "$DD"; then
5380   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DD" >&5
5381 $as_echo "$DD" >&6; }
5382 else
5383   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5384 $as_echo "no" >&6; }
5385 fi
5386
5387
5388 # Extract the first word of "mkisofs", so it can be a program name with args.
5389 set dummy mkisofs; ac_word=$2
5390 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5391 $as_echo_n "checking for $ac_word... " >&6; }
5392 if test "${ac_cv_path_MKISOFS+set}" = set; then :
5393   $as_echo_n "(cached) " >&6
5394 else
5395   case $MKISOFS in
5396   [\\/]* | ?:[\\/]*)
5397   ac_cv_path_MKISOFS="$MKISOFS" # Let the user override the test with a path.
5398   ;;
5399   *)
5400   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5401 for as_dir in $PATH
5402 do
5403   IFS=$as_save_IFS
5404   test -z "$as_dir" && as_dir=.
5405     for ac_exec_ext in '' $ac_executable_extensions; do
5406   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5407     ac_cv_path_MKISOFS="$as_dir/$ac_word$ac_exec_ext"
5408     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5409     break 2
5410   fi
5411 done
5412   done
5413 IFS=$as_save_IFS
5414
5415   test -z "$ac_cv_path_MKISOFS" && ac_cv_path_MKISOFS="mkisofs"
5416   ;;
5417 esac
5418 fi
5419 MKISOFS=$ac_cv_path_MKISOFS
5420 if test -n "$MKISOFS"; then
5421   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKISOFS" >&5
5422 $as_echo "$MKISOFS" >&6; }
5423 else
5424   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5425 $as_echo "no" >&6; }
5426 fi
5427
5428
5429 # Extract the first word of "python", so it can be a program name with args.
5430 set dummy python; ac_word=$2
5431 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5432 $as_echo_n "checking for $ac_word... " >&6; }
5433 if test "${ac_cv_path_PYTHON+set}" = set; then :
5434   $as_echo_n "(cached) " >&6
5435 else
5436   case $PYTHON in
5437   [\\/]* | ?:[\\/]*)
5438   ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path.
5439   ;;
5440   *)
5441   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5442 for as_dir in $PATH
5443 do
5444   IFS=$as_save_IFS
5445   test -z "$as_dir" && as_dir=.
5446     for ac_exec_ext in '' $ac_executable_extensions; do
5447   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5448     ac_cv_path_PYTHON="$as_dir/$ac_word$ac_exec_ext"
5449     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5450     break 2
5451   fi
5452 done
5453   done
5454 IFS=$as_save_IFS
5455
5456   test -z "$ac_cv_path_PYTHON" && ac_cv_path_PYTHON="python"
5457   ;;
5458 esac
5459 fi
5460 PYTHON=$ac_cv_path_PYTHON
5461 if test -n "$PYTHON"; then
5462   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON" >&5
5463 $as_echo "$PYTHON" >&6; }
5464 else
5465   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5466 $as_echo "no" >&6; }
5467 fi
5468
5469
5470 # Extract the first word of "growisofs", so it can be a program name with args.
5471 set dummy growisofs; ac_word=$2
5472 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5473 $as_echo_n "checking for $ac_word... " >&6; }
5474 if test "${ac_cv_path_GROWISOFS+set}" = set; then :
5475   $as_echo_n "(cached) " >&6
5476 else
5477   case $GROWISOFS in
5478   [\\/]* | ?:[\\/]*)
5479   ac_cv_path_GROWISOFS="$GROWISOFS" # Let the user override the test with a path.
5480   ;;
5481   *)
5482   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5483 for as_dir in $PATH
5484 do
5485   IFS=$as_save_IFS
5486   test -z "$as_dir" && as_dir=.
5487     for ac_exec_ext in '' $ac_executable_extensions; do
5488   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5489     ac_cv_path_GROWISOFS="$as_dir/$ac_word$ac_exec_ext"
5490     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5491     break 2
5492   fi
5493 done
5494   done
5495 IFS=$as_save_IFS
5496
5497   test -z "$ac_cv_path_GROWISOFS" && ac_cv_path_GROWISOFS="growisofs"
5498   ;;
5499 esac
5500 fi
5501 GROWISOFS=$ac_cv_path_GROWISOFS
5502 if test -n "$GROWISOFS"; then
5503   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GROWISOFS" >&5
5504 $as_echo "$GROWISOFS" >&6; }
5505 else
5506   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5507 $as_echo "no" >&6; }
5508 fi
5509
5510
5511 # Extract the first word of "dvd+rw-mediainfo", so it can be a program name with args.
5512 set dummy dvd+rw-mediainfo; ac_word=$2
5513 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5514 $as_echo_n "checking for $ac_word... " >&6; }
5515 if test "${ac_cv_path_DVDRWMEDIAINFO+set}" = set; then :
5516   $as_echo_n "(cached) " >&6
5517 else
5518   case $DVDRWMEDIAINFO in
5519   [\\/]* | ?:[\\/]*)
5520   ac_cv_path_DVDRWMEDIAINFO="$DVDRWMEDIAINFO" # Let the user override the test with a path.
5521   ;;
5522   *)
5523   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5524 for as_dir in $PATH
5525 do
5526   IFS=$as_save_IFS
5527   test -z "$as_dir" && as_dir=.
5528     for ac_exec_ext in '' $ac_executable_extensions; do
5529   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5530     ac_cv_path_DVDRWMEDIAINFO="$as_dir/$ac_word$ac_exec_ext"
5531     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5532     break 2
5533   fi
5534 done
5535   done
5536 IFS=$as_save_IFS
5537
5538   test -z "$ac_cv_path_DVDRWMEDIAINFO" && ac_cv_path_DVDRWMEDIAINFO="dvd+rw-mediainfo"
5539   ;;
5540 esac
5541 fi
5542 DVDRWMEDIAINFO=$ac_cv_path_DVDRWMEDIAINFO
5543 if test -n "$DVDRWMEDIAINFO"; then
5544   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DVDRWMEDIAINFO" >&5
5545 $as_echo "$DVDRWMEDIAINFO" >&6; }
5546 else
5547   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5548 $as_echo "no" >&6; }
5549 fi
5550
5551
5552 # Extract the first word of "dvd+rw-format", so it can be a program name with args.
5553 set dummy dvd+rw-format; ac_word=$2
5554 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5555 $as_echo_n "checking for $ac_word... " >&6; }
5556 if test "${ac_cv_path_DVDRWFORMAT+set}" = set; then :
5557   $as_echo_n "(cached) " >&6
5558 else
5559   case $DVDRWFORMAT in
5560   [\\/]* | ?:[\\/]*)
5561   ac_cv_path_DVDRWFORMAT="$DVDRWFORMAT" # Let the user override the test with a path.
5562   ;;
5563   *)
5564   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5565 for as_dir in $PATH
5566 do
5567   IFS=$as_save_IFS
5568   test -z "$as_dir" && as_dir=.
5569     for ac_exec_ext in '' $ac_executable_extensions; do
5570   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5571     ac_cv_path_DVDRWFORMAT="$as_dir/$ac_word$ac_exec_ext"
5572     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5573     break 2
5574   fi
5575 done
5576   done
5577 IFS=$as_save_IFS
5578
5579   test -z "$ac_cv_path_DVDRWFORMAT" && ac_cv_path_DVDRWFORMAT="dvd+rw-format"
5580   ;;
5581 esac
5582 fi
5583 DVDRWFORMAT=$ac_cv_path_DVDRWFORMAT
5584 if test -n "$DVDRWFORMAT"; then
5585   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DVDRWFORMAT" >&5
5586 $as_echo "$DVDRWFORMAT" >&6; }
5587 else
5588   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5589 $as_echo "no" >&6; }
5590 fi
5591
5592
5593 # Extract the first word of "pkg-config", so it can be a program name with args.
5594 set dummy pkg-config; ac_word=$2
5595 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5596 $as_echo_n "checking for $ac_word... " >&6; }
5597 if test "${ac_cv_path_PKGCONFIG+set}" = set; then :
5598   $as_echo_n "(cached) " >&6
5599 else
5600   case $PKGCONFIG in
5601   [\\/]* | ?:[\\/]*)
5602   ac_cv_path_PKGCONFIG="$PKGCONFIG" # Let the user override the test with a path.
5603   ;;
5604   *)
5605   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5606 for as_dir in $PATH
5607 do
5608   IFS=$as_save_IFS
5609   test -z "$as_dir" && as_dir=.
5610     for ac_exec_ext in '' $ac_executable_extensions; do
5611   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5612     ac_cv_path_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext"
5613     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5614     break 2
5615   fi
5616 done
5617   done
5618 IFS=$as_save_IFS
5619
5620   test -z "$ac_cv_path_PKGCONFIG" && ac_cv_path_PKGCONFIG="pkg-config"
5621   ;;
5622 esac
5623 fi
5624 PKGCONFIG=$ac_cv_path_PKGCONFIG
5625 if test -n "$PKGCONFIG"; then
5626   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKGCONFIG" >&5
5627 $as_echo "$PKGCONFIG" >&6; }
5628 else
5629   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5630 $as_echo "no" >&6; }
5631 fi
5632
5633
5634 # Extract the first word of "qmake", so it can be a program name with args.
5635 set dummy qmake; ac_word=$2
5636 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5637 $as_echo_n "checking for $ac_word... " >&6; }
5638 if test "${ac_cv_path_QMAKE+set}" = set; then :
5639   $as_echo_n "(cached) " >&6
5640 else
5641   case $QMAKE in
5642   [\\/]* | ?:[\\/]*)
5643   ac_cv_path_QMAKE="$QMAKE" # Let the user override the test with a path.
5644   ;;
5645   *)
5646   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5647 for as_dir in $PATH
5648 do
5649   IFS=$as_save_IFS
5650   test -z "$as_dir" && as_dir=.
5651     for ac_exec_ext in '' $ac_executable_extensions; do
5652   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5653     ac_cv_path_QMAKE="$as_dir/$ac_word$ac_exec_ext"
5654     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5655     break 2
5656   fi
5657 done
5658   done
5659 IFS=$as_save_IFS
5660
5661   test -z "$ac_cv_path_QMAKE" && ac_cv_path_QMAKE="none"
5662   ;;
5663 esac
5664 fi
5665 QMAKE=$ac_cv_path_QMAKE
5666 if test -n "$QMAKE"; then
5667   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $QMAKE" >&5
5668 $as_echo "$QMAKE" >&6; }
5669 else
5670   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5671 $as_echo "no" >&6; }
5672 fi
5673
5674
5675 # Extract the first word of "gmake", so it can be a program name with args.
5676 set dummy gmake; ac_word=$2
5677 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5678 $as_echo_n "checking for $ac_word... " >&6; }
5679 if test "${ac_cv_path_GMAKE+set}" = set; then :
5680   $as_echo_n "(cached) " >&6
5681 else
5682   case $GMAKE in
5683   [\\/]* | ?:[\\/]*)
5684   ac_cv_path_GMAKE="$GMAKE" # Let the user override the test with a path.
5685   ;;
5686   *)
5687   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5688 for as_dir in $PATH
5689 do
5690   IFS=$as_save_IFS
5691   test -z "$as_dir" && as_dir=.
5692     for ac_exec_ext in '' $ac_executable_extensions; do
5693   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5694     ac_cv_path_GMAKE="$as_dir/$ac_word$ac_exec_ext"
5695     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5696     break 2
5697   fi
5698 done
5699   done
5700 IFS=$as_save_IFS
5701
5702   test -z "$ac_cv_path_GMAKE" && ac_cv_path_GMAKE="none"
5703   ;;
5704 esac
5705 fi
5706 GMAKE=$ac_cv_path_GMAKE
5707 if test -n "$GMAKE"; then
5708   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GMAKE" >&5
5709 $as_echo "$GMAKE" >&6; }
5710 else
5711   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5712 $as_echo "no" >&6; }
5713 fi
5714
5715
5716
5717 if test "x$WXCONFIG" = x; then
5718    WXCONFIG=wx-config
5719 fi
5720 # Extract the first word of "${WXCONFIG}", so it can be a program name with args.
5721 set dummy ${WXCONFIG}; ac_word=$2
5722 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5723 $as_echo_n "checking for $ac_word... " >&6; }
5724 if test "${ac_cv_path_WXCONFIG+set}" = set; then :
5725   $as_echo_n "(cached) " >&6
5726 else
5727   case $WXCONFIG in
5728   [\\/]* | ?:[\\/]*)
5729   ac_cv_path_WXCONFIG="$WXCONFIG" # Let the user override the test with a path.
5730   ;;
5731   *)
5732   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5733 for as_dir in $PATH
5734 do
5735   IFS=$as_save_IFS
5736   test -z "$as_dir" && as_dir=.
5737     for ac_exec_ext in '' $ac_executable_extensions; do
5738   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5739     ac_cv_path_WXCONFIG="$as_dir/$ac_word$ac_exec_ext"
5740     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5741     break 2
5742   fi
5743 done
5744   done
5745 IFS=$as_save_IFS
5746
5747   test -z "$ac_cv_path_WXCONFIG" && ac_cv_path_WXCONFIG="${WXCONFIG}"
5748   ;;
5749 esac
5750 fi
5751 WXCONFIG=$ac_cv_path_WXCONFIG
5752 if test -n "$WXCONFIG"; then
5753   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WXCONFIG" >&5
5754 $as_echo "$WXCONFIG" >&6; }
5755 else
5756   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5757 $as_echo "no" >&6; }
5758 fi
5759
5760
5761
5762 # Extract the first word of "cdrecord", so it can be a program name with args.
5763 set dummy cdrecord; ac_word=$2
5764 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5765 $as_echo_n "checking for $ac_word... " >&6; }
5766 if test "${ac_cv_path_CDRECORD+set}" = set; then :
5767   $as_echo_n "(cached) " >&6
5768 else
5769   case $CDRECORD in
5770   [\\/]* | ?:[\\/]*)
5771   ac_cv_path_CDRECORD="$CDRECORD" # Let the user override the test with a path.
5772   ;;
5773   *)
5774   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5775 for as_dir in $PATH
5776 do
5777   IFS=$as_save_IFS
5778   test -z "$as_dir" && as_dir=.
5779     for ac_exec_ext in '' $ac_executable_extensions; do
5780   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5781     ac_cv_path_CDRECORD="$as_dir/$ac_word$ac_exec_ext"
5782     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5783     break 2
5784   fi
5785 done
5786   done
5787 IFS=$as_save_IFS
5788
5789   test -z "$ac_cv_path_CDRECORD" && ac_cv_path_CDRECORD="cdrecord"
5790   ;;
5791 esac
5792 fi
5793 CDRECORD=$ac_cv_path_CDRECORD
5794 if test -n "$CDRECORD"; then
5795   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CDRECORD" >&5
5796 $as_echo "$CDRECORD" >&6; }
5797 else
5798   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5799 $as_echo "no" >&6; }
5800 fi
5801
5802
5803 # Extract the first word of "pidof", so it can be a program name with args.
5804 set dummy pidof; ac_word=$2
5805 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5806 $as_echo_n "checking for $ac_word... " >&6; }
5807 if test "${ac_cv_path_PIDOF+set}" = set; then :
5808   $as_echo_n "(cached) " >&6
5809 else
5810   case $PIDOF in
5811   [\\/]* | ?:[\\/]*)
5812   ac_cv_path_PIDOF="$PIDOF" # Let the user override the test with a path.
5813   ;;
5814   *)
5815   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5816 for as_dir in $PATH
5817 do
5818   IFS=$as_save_IFS
5819   test -z "$as_dir" && as_dir=.
5820     for ac_exec_ext in '' $ac_executable_extensions; do
5821   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5822     ac_cv_path_PIDOF="$as_dir/$ac_word$ac_exec_ext"
5823     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5824     break 2
5825   fi
5826 done
5827   done
5828 IFS=$as_save_IFS
5829
5830   test -z "$ac_cv_path_PIDOF" && ac_cv_path_PIDOF="pidof"
5831   ;;
5832 esac
5833 fi
5834 PIDOF=$ac_cv_path_PIDOF
5835 if test -n "$PIDOF"; then
5836   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PIDOF" >&5
5837 $as_echo "$PIDOF" >&6; }
5838 else
5839   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5840 $as_echo "no" >&6; }
5841 fi
5842
5843
5844 for ac_prog in gawk mawk nawk awk
5845 do
5846   # Extract the first word of "$ac_prog", so it can be a program name with args.
5847 set dummy $ac_prog; ac_word=$2
5848 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5849 $as_echo_n "checking for $ac_word... " >&6; }
5850 if test "${ac_cv_prog_AWK+set}" = set; then :
5851   $as_echo_n "(cached) " >&6
5852 else
5853   if test -n "$AWK"; then
5854   ac_cv_prog_AWK="$AWK" # Let the user override the test.
5855 else
5856 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5857 for as_dir in $PATH
5858 do
5859   IFS=$as_save_IFS
5860   test -z "$as_dir" && as_dir=.
5861     for ac_exec_ext in '' $ac_executable_extensions; do
5862   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5863     ac_cv_prog_AWK="$ac_prog"
5864     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5865     break 2
5866   fi
5867 done
5868   done
5869 IFS=$as_save_IFS
5870
5871 fi
5872 fi
5873 AWK=$ac_cv_prog_AWK
5874 if test -n "$AWK"; then
5875   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
5876 $as_echo "$AWK" >&6; }
5877 else
5878   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5879 $as_echo "no" >&6; }
5880 fi
5881
5882
5883   test -n "$AWK" && break
5884 done
5885
5886 # Some AWK programs fail, so test it and warn the user
5887 if echo xfoo | $AWK 'BEGIN { prog=ARGV1; ARGC=1 }
5888       { if ((prog == $2) || (("(" prog ")") == $2) ||
5889       (("" prog "") == $2) ||
5890       ((prog ":") == $2)) { print $1 ; exit 0 } }' xfoo>/dev/null; then :;
5891 else
5892   as_fn_error "!!!!!!!!! WARNING !!!!!!!!!!!!!!
5893    The regex engine of $AWK is too broken to be used you
5894    might want to install GNU AWK.
5895    !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!" "$LINENO" 5
5896 fi
5897 THE_AWK=$AWK
5898 # Extract the first word of "$THE_AWK", so it can be a program name with args.
5899 set dummy $THE_AWK; ac_word=$2
5900 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5901 $as_echo_n "checking for $ac_word... " >&6; }
5902 if test "${ac_cv_path_AWK+set}" = set; then :
5903   $as_echo_n "(cached) " >&6
5904 else
5905   case $AWK in
5906   [\\/]* | ?:[\\/]*)
5907   ac_cv_path_AWK="$AWK" # Let the user override the test with a path.
5908   ;;
5909   *)
5910   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5911 for as_dir in $PATH
5912 do
5913   IFS=$as_save_IFS
5914   test -z "$as_dir" && as_dir=.
5915     for ac_exec_ext in '' $ac_executable_extensions; do
5916   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5917     ac_cv_path_AWK="$as_dir/$ac_word$ac_exec_ext"
5918     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5919     break 2
5920   fi
5921 done
5922   done
5923 IFS=$as_save_IFS
5924
5925   test -z "$ac_cv_path_AWK" && ac_cv_path_AWK="$THE_AWK"
5926   ;;
5927 esac
5928 fi
5929 AWK=$ac_cv_path_AWK
5930 if test -n "$AWK"; then
5931   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
5932 $as_echo "$AWK" >&6; }
5933 else
5934   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5935 $as_echo "no" >&6; }
5936 fi
5937
5938
5939
5940
5941 test -n "$ARFLAG" || ARFLAGS="cr"
5942
5943
5944 MAKE_SHELL=/bin/sh
5945
5946
5947
5948
5949
5950
5951
5952 use_libtool=yes
5953 # Check whether --enable-libtool was given.
5954 if test "${enable_libtool+set}" = set; then :
5955   enableval=$enable_libtool;
5956        if test x$enableval = xno; then
5957           use_libtool=no
5958        fi
5959
5960
5961 fi
5962
5963 case `pwd` in
5964   *\ * | *\     *)
5965     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
5966 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
5967 esac
5968
5969
5970
5971 macro_version='2.2.6'
5972 macro_revision='1.3012'
5973
5974
5975
5976
5977
5978
5979
5980
5981
5982
5983
5984
5985
5986 ltmain="$ac_aux_dir/ltmain.sh"
5987
5988 # Make sure we can run config.sub.
5989 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
5990   as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
5991
5992 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
5993 $as_echo_n "checking build system type... " >&6; }
5994 if test "${ac_cv_build+set}" = set; then :
5995   $as_echo_n "(cached) " >&6
5996 else
5997   ac_build_alias=$build_alias
5998 test "x$ac_build_alias" = x &&
5999   ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
6000 test "x$ac_build_alias" = x &&
6001   as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
6002 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
6003   as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
6004
6005 fi
6006 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
6007 $as_echo "$ac_cv_build" >&6; }
6008 case $ac_cv_build in
6009 *-*-*) ;;
6010 *) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
6011 esac
6012 build=$ac_cv_build
6013 ac_save_IFS=$IFS; IFS='-'
6014 set x $ac_cv_build
6015 shift
6016 build_cpu=$1
6017 build_vendor=$2
6018 shift; shift
6019 # Remember, the first character of IFS is used to create $*,
6020 # except with old shells:
6021 build_os=$*
6022 IFS=$ac_save_IFS
6023 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
6024
6025
6026 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
6027 $as_echo_n "checking host system type... " >&6; }
6028 if test "${ac_cv_host+set}" = set; then :
6029   $as_echo_n "(cached) " >&6
6030 else
6031   if test "x$host_alias" = x; then
6032   ac_cv_host=$ac_cv_build
6033 else
6034   ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
6035     as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
6036 fi
6037
6038 fi
6039 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
6040 $as_echo "$ac_cv_host" >&6; }
6041 case $ac_cv_host in
6042 *-*-*) ;;
6043 *) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
6044 esac
6045 host=$ac_cv_host
6046 ac_save_IFS=$IFS; IFS='-'
6047 set x $ac_cv_host
6048 shift
6049 host_cpu=$1
6050 host_vendor=$2
6051 shift; shift
6052 # Remember, the first character of IFS is used to create $*,
6053 # except with old shells:
6054 host_os=$*
6055 IFS=$ac_save_IFS
6056 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
6057
6058
6059 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
6060 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
6061 if test "${ac_cv_path_SED+set}" = set; then :
6062   $as_echo_n "(cached) " >&6
6063 else
6064             ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
6065      for ac_i in 1 2 3 4 5 6 7; do
6066        ac_script="$ac_script$as_nl$ac_script"
6067      done
6068      echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
6069      { ac_script=; unset ac_script;}
6070      if test -z "$SED"; then
6071   ac_path_SED_found=false
6072   # Loop through the user's path and test for each of PROGNAME-LIST
6073   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6074 for as_dir in $PATH
6075 do
6076   IFS=$as_save_IFS
6077   test -z "$as_dir" && as_dir=.
6078     for ac_prog in sed gsed; do
6079     for ac_exec_ext in '' $ac_executable_extensions; do
6080       ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
6081       { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
6082 # Check for GNU ac_path_SED and select it if it is found.
6083   # Check for GNU $ac_path_SED
6084 case `"$ac_path_SED" --version 2>&1` in
6085 *GNU*)
6086   ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
6087 *)
6088   ac_count=0
6089   $as_echo_n 0123456789 >"conftest.in"
6090   while :
6091   do
6092     cat "conftest.in" "conftest.in" >"conftest.tmp"
6093     mv "conftest.tmp" "conftest.in"
6094     cp "conftest.in" "conftest.nl"
6095     $as_echo '' >> "conftest.nl"
6096     "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
6097     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6098     as_fn_arith $ac_count + 1 && ac_count=$as_val
6099     if test $ac_count -gt ${ac_path_SED_max-0}; then
6100       # Best one so far, save it but keep looking for a better one
6101       ac_cv_path_SED="$ac_path_SED"
6102       ac_path_SED_max=$ac_count
6103     fi
6104     # 10*(2^10) chars as input seems more than enough
6105     test $ac_count -gt 10 && break
6106   done
6107   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6108 esac
6109
6110       $ac_path_SED_found && break 3
6111     done
6112   done
6113   done
6114 IFS=$as_save_IFS
6115   if test -z "$ac_cv_path_SED"; then
6116     as_fn_error "no acceptable sed could be found in \$PATH" "$LINENO" 5
6117   fi
6118 else
6119   ac_cv_path_SED=$SED
6120 fi
6121
6122 fi
6123 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
6124 $as_echo "$ac_cv_path_SED" >&6; }
6125  SED="$ac_cv_path_SED"
6126   rm -f conftest.sed
6127
6128 test -z "$SED" && SED=sed
6129 Xsed="$SED -e 1s/^X//"
6130
6131
6132
6133
6134
6135
6136
6137
6138
6139
6140
6141 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
6142 $as_echo_n "checking for fgrep... " >&6; }
6143 if test "${ac_cv_path_FGREP+set}" = set; then :
6144   $as_echo_n "(cached) " >&6
6145 else
6146   if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
6147    then ac_cv_path_FGREP="$GREP -F"
6148    else
6149      if test -z "$FGREP"; then
6150   ac_path_FGREP_found=false
6151   # Loop through the user's path and test for each of PROGNAME-LIST
6152   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6153 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
6154 do
6155   IFS=$as_save_IFS
6156   test -z "$as_dir" && as_dir=.
6157     for ac_prog in fgrep; do
6158     for ac_exec_ext in '' $ac_executable_extensions; do
6159       ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
6160       { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
6161 # Check for GNU ac_path_FGREP and select it if it is found.
6162   # Check for GNU $ac_path_FGREP
6163 case `"$ac_path_FGREP" --version 2>&1` in
6164 *GNU*)
6165   ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
6166 *)
6167   ac_count=0
6168   $as_echo_n 0123456789 >"conftest.in"
6169   while :
6170   do
6171     cat "conftest.in" "conftest.in" >"conftest.tmp"
6172     mv "conftest.tmp" "conftest.in"
6173     cp "conftest.in" "conftest.nl"
6174     $as_echo 'FGREP' >> "conftest.nl"
6175     "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
6176     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6177     as_fn_arith $ac_count + 1 && ac_count=$as_val
6178     if test $ac_count -gt ${ac_path_FGREP_max-0}; then
6179       # Best one so far, save it but keep looking for a better one
6180       ac_cv_path_FGREP="$ac_path_FGREP"
6181       ac_path_FGREP_max=$ac_count
6182     fi
6183     # 10*(2^10) chars as input seems more than enough
6184     test $ac_count -gt 10 && break
6185   done
6186   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6187 esac
6188
6189       $ac_path_FGREP_found && break 3
6190     done
6191   done
6192   done
6193 IFS=$as_save_IFS
6194   if test -z "$ac_cv_path_FGREP"; then
6195     as_fn_error "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
6196   fi
6197 else
6198   ac_cv_path_FGREP=$FGREP
6199 fi
6200
6201    fi
6202 fi
6203 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
6204 $as_echo "$ac_cv_path_FGREP" >&6; }
6205  FGREP="$ac_cv_path_FGREP"
6206
6207
6208 test -z "$GREP" && GREP=grep
6209
6210
6211
6212
6213
6214
6215
6216
6217
6218
6219
6220
6221
6222
6223
6224
6225
6226
6227
6228 # Check whether --with-gnu-ld was given.
6229 if test "${with_gnu_ld+set}" = set; then :
6230   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
6231 else
6232   with_gnu_ld=no
6233 fi
6234
6235 ac_prog=ld
6236 if test "$GCC" = yes; then
6237   # Check if gcc -print-prog-name=ld gives a path.
6238   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
6239 $as_echo_n "checking for ld used by $CC... " >&6; }
6240   case $host in
6241   *-*-mingw*)
6242     # gcc leaves a trailing carriage return which upsets mingw
6243     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
6244   *)
6245     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
6246   esac
6247   case $ac_prog in
6248     # Accept absolute paths.
6249     [\\/]* | ?:[\\/]*)
6250       re_direlt='/[^/][^/]*/\.\./'
6251       # Canonicalize the pathname of ld
6252       ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
6253       while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
6254         ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
6255       done
6256       test -z "$LD" && LD="$ac_prog"
6257       ;;
6258   "")
6259     # If it fails, then pretend we aren't using GCC.
6260     ac_prog=ld
6261     ;;
6262   *)
6263     # If it is relative, then search for the first ld in PATH.
6264     with_gnu_ld=unknown
6265     ;;
6266   esac
6267 elif test "$with_gnu_ld" = yes; then
6268   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
6269 $as_echo_n "checking for GNU ld... " >&6; }
6270 else
6271   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
6272 $as_echo_n "checking for non-GNU ld... " >&6; }
6273 fi
6274 if test "${lt_cv_path_LD+set}" = set; then :
6275   $as_echo_n "(cached) " >&6
6276 else
6277   if test -z "$LD"; then
6278   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6279   for ac_dir in $PATH; do
6280     IFS="$lt_save_ifs"
6281     test -z "$ac_dir" && ac_dir=.
6282     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
6283       lt_cv_path_LD="$ac_dir/$ac_prog"
6284       # Check to see if the program is GNU ld.  I'd rather use --version,
6285       # but apparently some variants of GNU ld only accept -v.
6286       # Break only if it was the GNU/non-GNU ld that we prefer.
6287       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
6288       *GNU* | *'with BFD'*)
6289         test "$with_gnu_ld" != no && break
6290         ;;
6291       *)
6292         test "$with_gnu_ld" != yes && break
6293         ;;
6294       esac
6295     fi
6296   done
6297   IFS="$lt_save_ifs"
6298 else
6299   lt_cv_path_LD="$LD" # Let the user override the test with a path.
6300 fi
6301 fi
6302
6303 LD="$lt_cv_path_LD"
6304 if test -n "$LD"; then
6305   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
6306 $as_echo "$LD" >&6; }
6307 else
6308   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6309 $as_echo "no" >&6; }
6310 fi
6311 test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
6312 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
6313 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
6314 if test "${lt_cv_prog_gnu_ld+set}" = set; then :
6315   $as_echo_n "(cached) " >&6
6316 else
6317   # I'd rather use --version here, but apparently some GNU lds only accept -v.
6318 case `$LD -v 2>&1 </dev/null` in
6319 *GNU* | *'with BFD'*)
6320   lt_cv_prog_gnu_ld=yes
6321   ;;
6322 *)
6323   lt_cv_prog_gnu_ld=no
6324   ;;
6325 esac
6326 fi
6327 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
6328 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
6329 with_gnu_ld=$lt_cv_prog_gnu_ld
6330
6331
6332
6333
6334
6335
6336
6337
6338
6339 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
6340 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
6341 if test "${lt_cv_path_NM+set}" = set; then :
6342   $as_echo_n "(cached) " >&6
6343 else
6344   if test -n "$NM"; then
6345   # Let the user override the test.
6346   lt_cv_path_NM="$NM"
6347 else
6348   lt_nm_to_check="${ac_tool_prefix}nm"
6349   if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
6350     lt_nm_to_check="$lt_nm_to_check nm"
6351   fi
6352   for lt_tmp_nm in $lt_nm_to_check; do
6353     lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6354     for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
6355       IFS="$lt_save_ifs"
6356       test -z "$ac_dir" && ac_dir=.
6357       tmp_nm="$ac_dir/$lt_tmp_nm"
6358       if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
6359         # Check to see if the nm accepts a BSD-compat flag.
6360         # Adding the `sed 1q' prevents false positives on HP-UX, which says:
6361         #   nm: unknown option "B" ignored
6362         # Tru64's nm complains that /dev/null is an invalid object file
6363         case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
6364         */dev/null* | *'Invalid file or object type'*)
6365           lt_cv_path_NM="$tmp_nm -B"
6366           break
6367           ;;
6368         *)
6369           case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
6370           */dev/null*)
6371             lt_cv_path_NM="$tmp_nm -p"
6372             break
6373             ;;
6374           *)
6375             lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
6376             continue # so that we can try to find one that supports BSD flags
6377             ;;
6378           esac
6379           ;;
6380         esac
6381       fi
6382     done
6383     IFS="$lt_save_ifs"
6384   done
6385   : ${lt_cv_path_NM=no}
6386 fi
6387 fi
6388 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
6389 $as_echo "$lt_cv_path_NM" >&6; }
6390 if test "$lt_cv_path_NM" != "no"; then
6391   NM="$lt_cv_path_NM"
6392 else
6393   # Didn't find any BSD compatible name lister, look for dumpbin.
6394   if test -n "$ac_tool_prefix"; then
6395   for ac_prog in "dumpbin -symbols" "link -dump -symbols"
6396   do
6397     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6398 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6399 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6400 $as_echo_n "checking for $ac_word... " >&6; }
6401 if test "${ac_cv_prog_DUMPBIN+set}" = set; then :
6402   $as_echo_n "(cached) " >&6
6403 else
6404   if test -n "$DUMPBIN"; then
6405   ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
6406 else
6407 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6408 for as_dir in $PATH
6409 do
6410   IFS=$as_save_IFS
6411   test -z "$as_dir" && as_dir=.
6412     for ac_exec_ext in '' $ac_executable_extensions; do
6413   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6414     ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
6415     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6416     break 2
6417   fi
6418 done
6419   done
6420 IFS=$as_save_IFS
6421
6422 fi
6423 fi
6424 DUMPBIN=$ac_cv_prog_DUMPBIN
6425 if test -n "$DUMPBIN"; then
6426   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
6427 $as_echo "$DUMPBIN" >&6; }
6428 else
6429   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6430 $as_echo "no" >&6; }
6431 fi
6432
6433
6434     test -n "$DUMPBIN" && break
6435   done
6436 fi
6437 if test -z "$DUMPBIN"; then
6438   ac_ct_DUMPBIN=$DUMPBIN
6439   for ac_prog in "dumpbin -symbols" "link -dump -symbols"
6440 do
6441   # Extract the first word of "$ac_prog", so it can be a program name with args.
6442 set dummy $ac_prog; ac_word=$2
6443 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6444 $as_echo_n "checking for $ac_word... " >&6; }
6445 if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then :
6446   $as_echo_n "(cached) " >&6
6447 else
6448   if test -n "$ac_ct_DUMPBIN"; then
6449   ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
6450 else
6451 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6452 for as_dir in $PATH
6453 do
6454   IFS=$as_save_IFS
6455   test -z "$as_dir" && as_dir=.
6456     for ac_exec_ext in '' $ac_executable_extensions; do
6457   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6458     ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
6459     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6460     break 2
6461   fi
6462 done
6463   done
6464 IFS=$as_save_IFS
6465
6466 fi
6467 fi
6468 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
6469 if test -n "$ac_ct_DUMPBIN"; then
6470   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
6471 $as_echo "$ac_ct_DUMPBIN" >&6; }
6472 else
6473   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6474 $as_echo "no" >&6; }
6475 fi
6476
6477
6478   test -n "$ac_ct_DUMPBIN" && break
6479 done
6480
6481   if test "x$ac_ct_DUMPBIN" = x; then
6482     DUMPBIN=":"
6483   else
6484     case $cross_compiling:$ac_tool_warned in
6485 yes:)
6486 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6487 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6488 ac_tool_warned=yes ;;
6489 esac
6490     DUMPBIN=$ac_ct_DUMPBIN
6491   fi
6492 fi
6493
6494
6495   if test "$DUMPBIN" != ":"; then
6496     NM="$DUMPBIN"
6497   fi
6498 fi
6499 test -z "$NM" && NM=nm
6500
6501
6502
6503
6504
6505
6506 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
6507 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
6508 if test "${lt_cv_nm_interface+set}" = set; then :
6509   $as_echo_n "(cached) " >&6
6510 else
6511   lt_cv_nm_interface="BSD nm"
6512   echo "int some_variable = 0;" > conftest.$ac_ext
6513   (eval echo "\"\$as_me:6513: $ac_compile\"" >&5)
6514   (eval "$ac_compile" 2>conftest.err)
6515   cat conftest.err >&5
6516   (eval echo "\"\$as_me:6516: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
6517   (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
6518   cat conftest.err >&5
6519   (eval echo "\"\$as_me:6519: output\"" >&5)
6520   cat conftest.out >&5
6521   if $GREP 'External.*some_variable' conftest.out > /dev/null; then
6522     lt_cv_nm_interface="MS dumpbin"
6523   fi
6524   rm -f conftest*
6525 fi
6526 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
6527 $as_echo "$lt_cv_nm_interface" >&6; }
6528
6529 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
6530 $as_echo_n "checking whether ln -s works... " >&6; }
6531 LN_S=$as_ln_s
6532 if test "$LN_S" = "ln -s"; then
6533   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6534 $as_echo "yes" >&6; }
6535 else
6536   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
6537 $as_echo "no, using $LN_S" >&6; }
6538 fi
6539
6540 # find the maximum length of command line arguments
6541 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
6542 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
6543 if test "${lt_cv_sys_max_cmd_len+set}" = set; then :
6544   $as_echo_n "(cached) " >&6
6545 else
6546     i=0
6547   teststring="ABCD"
6548
6549   case $build_os in
6550   msdosdjgpp*)
6551     # On DJGPP, this test can blow up pretty badly due to problems in libc
6552     # (any single argument exceeding 2000 bytes causes a buffer overrun
6553     # during glob expansion).  Even if it were fixed, the result of this
6554     # check would be larger than it should be.
6555     lt_cv_sys_max_cmd_len=12288;    # 12K is about right
6556     ;;
6557
6558   gnu*)
6559     # Under GNU Hurd, this test is not required because there is
6560     # no limit to the length of command line arguments.
6561     # Libtool will interpret -1 as no limit whatsoever
6562     lt_cv_sys_max_cmd_len=-1;
6563     ;;
6564
6565   cygwin* | mingw* | cegcc*)
6566     # On Win9x/ME, this test blows up -- it succeeds, but takes
6567     # about 5 minutes as the teststring grows exponentially.
6568     # Worse, since 9x/ME are not pre-emptively multitasking,
6569     # you end up with a "frozen" computer, even though with patience
6570     # the test eventually succeeds (with a max line length of 256k).
6571     # Instead, let's just punt: use the minimum linelength reported by
6572     # all of the supported platforms: 8192 (on NT/2K/XP).
6573     lt_cv_sys_max_cmd_len=8192;
6574     ;;
6575
6576   amigaos*)
6577     # On AmigaOS with pdksh, this test takes hours, literally.
6578     # So we just punt and use a minimum line length of 8192.
6579     lt_cv_sys_max_cmd_len=8192;
6580     ;;
6581
6582   netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
6583     # This has been around since 386BSD, at least.  Likely further.
6584     if test -x /sbin/sysctl; then
6585       lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
6586     elif test -x /usr/sbin/sysctl; then
6587       lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
6588     else
6589       lt_cv_sys_max_cmd_len=65536       # usable default for all BSDs
6590     fi
6591     # And add a safety zone
6592     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6593     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6594     ;;
6595
6596   interix*)
6597     # We know the value 262144 and hardcode it with a safety zone (like BSD)
6598     lt_cv_sys_max_cmd_len=196608
6599     ;;
6600
6601   osf*)
6602     # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
6603     # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
6604     # nice to cause kernel panics so lets avoid the loop below.
6605     # First set a reasonable default.
6606     lt_cv_sys_max_cmd_len=16384
6607     #
6608     if test -x /sbin/sysconfig; then
6609       case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
6610         *1*) lt_cv_sys_max_cmd_len=-1 ;;
6611       esac
6612     fi
6613     ;;
6614   sco3.2v5*)
6615     lt_cv_sys_max_cmd_len=102400
6616     ;;
6617   sysv5* | sco5v6* | sysv4.2uw2*)
6618     kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
6619     if test -n "$kargmax"; then
6620       lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[  ]//'`
6621     else
6622       lt_cv_sys_max_cmd_len=32768
6623     fi
6624     ;;
6625   *)
6626     lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
6627     if test -n "$lt_cv_sys_max_cmd_len"; then
6628       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6629       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6630     else
6631       # Make teststring a little bigger before we do anything with it.
6632       # a 1K string should be a reasonable start.
6633       for i in 1 2 3 4 5 6 7 8 ; do
6634         teststring=$teststring$teststring
6635       done
6636       SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
6637       # If test is not a shell built-in, we'll probably end up computing a
6638       # maximum length that is only half of the actual maximum length, but
6639       # we can't tell.
6640       while { test "X"`$SHELL $0 --fallback-echo "X$teststring$teststring" 2>/dev/null` \
6641                  = "XX$teststring$teststring"; } >/dev/null 2>&1 &&
6642               test $i != 17 # 1/2 MB should be enough
6643       do
6644         i=`expr $i + 1`
6645         teststring=$teststring$teststring
6646       done
6647       # Only check the string length outside the loop.
6648       lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
6649       teststring=
6650       # Add a significant safety factor because C++ compilers can tack on
6651       # massive amounts of additional arguments before passing them to the
6652       # linker.  It appears as though 1/2 is a usable value.
6653       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
6654     fi
6655     ;;
6656   esac
6657
6658 fi
6659
6660 if test -n $lt_cv_sys_max_cmd_len ; then
6661   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
6662 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
6663 else
6664   { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
6665 $as_echo "none" >&6; }
6666 fi
6667 max_cmd_len=$lt_cv_sys_max_cmd_len
6668
6669
6670
6671
6672
6673
6674 : ${CP="cp -f"}
6675 : ${MV="mv -f"}
6676 : ${RM="rm -f"}
6677
6678 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
6679 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
6680 # Try some XSI features
6681 xsi_shell=no
6682 ( _lt_dummy="a/b/c"
6683   test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
6684       = c,a/b,, \
6685     && eval 'test $(( 1 + 1 )) -eq 2 \
6686     && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
6687   && xsi_shell=yes
6688 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
6689 $as_echo "$xsi_shell" >&6; }
6690
6691
6692 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
6693 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
6694 lt_shell_append=no
6695 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
6696     >/dev/null 2>&1 \
6697   && lt_shell_append=yes
6698 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
6699 $as_echo "$lt_shell_append" >&6; }
6700
6701
6702 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
6703   lt_unset=unset
6704 else
6705   lt_unset=false
6706 fi
6707
6708
6709
6710
6711
6712 # test EBCDIC or ASCII
6713 case `echo X|tr X '\101'` in
6714  A) # ASCII based system
6715     # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
6716   lt_SP2NL='tr \040 \012'
6717   lt_NL2SP='tr \015\012 \040\040'
6718   ;;
6719  *) # EBCDIC based system
6720   lt_SP2NL='tr \100 \n'
6721   lt_NL2SP='tr \r\n \100\100'
6722   ;;
6723 esac
6724
6725
6726
6727
6728
6729
6730
6731
6732
6733 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
6734 $as_echo_n "checking for $LD option to reload object files... " >&6; }
6735 if test "${lt_cv_ld_reload_flag+set}" = set; then :
6736   $as_echo_n "(cached) " >&6
6737 else
6738   lt_cv_ld_reload_flag='-r'
6739 fi
6740 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
6741 $as_echo "$lt_cv_ld_reload_flag" >&6; }
6742 reload_flag=$lt_cv_ld_reload_flag
6743 case $reload_flag in
6744 "" | " "*) ;;
6745 *) reload_flag=" $reload_flag" ;;
6746 esac
6747 reload_cmds='$LD$reload_flag -o $output$reload_objs'
6748 case $host_os in
6749   darwin*)
6750     if test "$GCC" = yes; then
6751       reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
6752     else
6753       reload_cmds='$LD$reload_flag -o $output$reload_objs'
6754     fi
6755     ;;
6756 esac
6757
6758
6759
6760
6761
6762
6763
6764
6765
6766 if test -n "$ac_tool_prefix"; then
6767   # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
6768 set dummy ${ac_tool_prefix}objdump; ac_word=$2
6769 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6770 $as_echo_n "checking for $ac_word... " >&6; }
6771 if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
6772   $as_echo_n "(cached) " >&6
6773 else
6774   if test -n "$OBJDUMP"; then
6775   ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
6776 else
6777 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6778 for as_dir in $PATH
6779 do
6780   IFS=$as_save_IFS
6781   test -z "$as_dir" && as_dir=.
6782     for ac_exec_ext in '' $ac_executable_extensions; do
6783   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6784     ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
6785     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6786     break 2
6787   fi
6788 done
6789   done
6790 IFS=$as_save_IFS
6791
6792 fi
6793 fi
6794 OBJDUMP=$ac_cv_prog_OBJDUMP
6795 if test -n "$OBJDUMP"; then
6796   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
6797 $as_echo "$OBJDUMP" >&6; }
6798 else
6799   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6800 $as_echo "no" >&6; }
6801 fi
6802
6803
6804 fi
6805 if test -z "$ac_cv_prog_OBJDUMP"; then
6806   ac_ct_OBJDUMP=$OBJDUMP
6807   # Extract the first word of "objdump", so it can be a program name with args.
6808 set dummy objdump; ac_word=$2
6809 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6810 $as_echo_n "checking for $ac_word... " >&6; }
6811 if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then :
6812   $as_echo_n "(cached) " >&6
6813 else
6814   if test -n "$ac_ct_OBJDUMP"; then
6815   ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
6816 else
6817 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6818 for as_dir in $PATH
6819 do
6820   IFS=$as_save_IFS
6821   test -z "$as_dir" && as_dir=.
6822     for ac_exec_ext in '' $ac_executable_extensions; do
6823   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6824     ac_cv_prog_ac_ct_OBJDUMP="objdump"
6825     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6826     break 2
6827   fi
6828 done
6829   done
6830 IFS=$as_save_IFS
6831
6832 fi
6833 fi
6834 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
6835 if test -n "$ac_ct_OBJDUMP"; then
6836   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
6837 $as_echo "$ac_ct_OBJDUMP" >&6; }
6838 else
6839   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6840 $as_echo "no" >&6; }
6841 fi
6842
6843   if test "x$ac_ct_OBJDUMP" = x; then
6844     OBJDUMP="false"
6845   else
6846     case $cross_compiling:$ac_tool_warned in
6847 yes:)
6848 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6849 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6850 ac_tool_warned=yes ;;
6851 esac
6852     OBJDUMP=$ac_ct_OBJDUMP
6853   fi
6854 else
6855   OBJDUMP="$ac_cv_prog_OBJDUMP"
6856 fi
6857
6858 test -z "$OBJDUMP" && OBJDUMP=objdump
6859
6860
6861
6862
6863
6864
6865
6866
6867
6868 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
6869 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
6870 if test "${lt_cv_deplibs_check_method+set}" = set; then :
6871   $as_echo_n "(cached) " >&6
6872 else
6873   lt_cv_file_magic_cmd='$MAGIC_CMD'
6874 lt_cv_file_magic_test_file=
6875 lt_cv_deplibs_check_method='unknown'
6876 # Need to set the preceding variable on all platforms that support
6877 # interlibrary dependencies.
6878 # 'none' -- dependencies not supported.
6879 # `unknown' -- same as none, but documents that we really don't know.
6880 # 'pass_all' -- all dependencies passed with no checks.
6881 # 'test_compile' -- check by making test program.
6882 # 'file_magic [[regex]]' -- check by looking for files in library path
6883 # which responds to the $file_magic_cmd with a given extended regex.
6884 # If you have `file' or equivalent on your system and you're not sure
6885 # whether `pass_all' will *always* work, you probably want this one.
6886
6887 case $host_os in
6888 aix[4-9]*)
6889   lt_cv_deplibs_check_method=pass_all
6890   ;;
6891
6892 beos*)
6893   lt_cv_deplibs_check_method=pass_all
6894   ;;
6895
6896 bsdi[45]*)
6897   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
6898   lt_cv_file_magic_cmd='/usr/bin/file -L'
6899   lt_cv_file_magic_test_file=/shlib/libc.so
6900   ;;
6901
6902 cygwin*)
6903   # func_win32_libid is a shell function defined in ltmain.sh
6904   lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6905   lt_cv_file_magic_cmd='func_win32_libid'
6906   ;;
6907
6908 mingw* | pw32*)
6909   # Base MSYS/MinGW do not provide the 'file' command needed by
6910   # func_win32_libid shell function, so use a weaker test based on 'objdump',
6911   # unless we find 'file', for example because we are cross-compiling.
6912   if ( file / ) >/dev/null 2>&1; then
6913     lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6914     lt_cv_file_magic_cmd='func_win32_libid'
6915   else
6916     lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
6917     lt_cv_file_magic_cmd='$OBJDUMP -f'
6918   fi
6919   ;;
6920
6921 cegcc)
6922   # use the weaker test based on 'objdump'. See mingw*.
6923   lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
6924   lt_cv_file_magic_cmd='$OBJDUMP -f'
6925   ;;
6926
6927 darwin* | rhapsody*)
6928   lt_cv_deplibs_check_method=pass_all
6929   ;;
6930
6931 freebsd* | dragonfly*)
6932   if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6933     case $host_cpu in
6934     i*86 )
6935       # Not sure whether the presence of OpenBSD here was a mistake.
6936       # Let's accept both of them until this is cleared up.
6937       lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
6938       lt_cv_file_magic_cmd=/usr/bin/file
6939       lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
6940       ;;
6941     esac
6942   else
6943     lt_cv_deplibs_check_method=pass_all
6944   fi
6945   ;;
6946
6947 gnu*)
6948   lt_cv_deplibs_check_method=pass_all
6949   ;;
6950
6951 hpux10.20* | hpux11*)
6952   lt_cv_file_magic_cmd=/usr/bin/file
6953   case $host_cpu in
6954   ia64*)
6955     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
6956     lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
6957     ;;
6958   hppa*64*)
6959     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]'
6960     lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
6961     ;;
6962   *)
6963     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
6964     lt_cv_file_magic_test_file=/usr/lib/libc.sl
6965     ;;
6966   esac
6967   ;;
6968
6969 interix[3-9]*)
6970   # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
6971   lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
6972   ;;
6973
6974 irix5* | irix6* | nonstopux*)
6975   case $LD in
6976   *-32|*"-32 ") libmagic=32-bit;;
6977   *-n32|*"-n32 ") libmagic=N32;;
6978   *-64|*"-64 ") libmagic=64-bit;;
6979   *) libmagic=never-match;;
6980   esac
6981   lt_cv_deplibs_check_method=pass_all
6982   ;;
6983
6984 # This must be Linux ELF.
6985 linux* | k*bsd*-gnu)
6986   lt_cv_deplibs_check_method=pass_all
6987   ;;
6988
6989 netbsd*)
6990   if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6991     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6992   else
6993     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
6994   fi
6995   ;;
6996
6997 newos6*)
6998   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
6999   lt_cv_file_magic_cmd=/usr/bin/file
7000   lt_cv_file_magic_test_file=/usr/lib/libnls.so
7001   ;;
7002
7003 *nto* | *qnx*)
7004   lt_cv_deplibs_check_method=pass_all
7005   ;;
7006
7007 openbsd*)
7008   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
7009     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
7010   else
7011     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
7012   fi
7013   ;;
7014
7015 osf3* | osf4* | osf5*)
7016   lt_cv_deplibs_check_method=pass_all
7017   ;;
7018
7019 rdos*)
7020   lt_cv_deplibs_check_method=pass_all
7021   ;;
7022
7023 solaris*)
7024   lt_cv_deplibs_check_method=pass_all
7025   ;;
7026
7027 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
7028   lt_cv_deplibs_check_method=pass_all
7029   ;;
7030
7031 sysv4 | sysv4.3*)
7032   case $host_vendor in
7033   motorola)
7034     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]'
7035     lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
7036     ;;
7037   ncr)
7038     lt_cv_deplibs_check_method=pass_all
7039     ;;
7040   sequent)
7041     lt_cv_file_magic_cmd='/bin/file'
7042     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
7043     ;;
7044   sni)
7045     lt_cv_file_magic_cmd='/bin/file'
7046     lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
7047     lt_cv_file_magic_test_file=/lib/libc.so
7048     ;;
7049   siemens)
7050     lt_cv_deplibs_check_method=pass_all
7051     ;;
7052   pc)
7053     lt_cv_deplibs_check_method=pass_all
7054     ;;
7055   esac
7056   ;;
7057
7058 tpf*)
7059   lt_cv_deplibs_check_method=pass_all
7060   ;;
7061 esac
7062
7063 fi
7064 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
7065 $as_echo "$lt_cv_deplibs_check_method" >&6; }
7066 file_magic_cmd=$lt_cv_file_magic_cmd
7067 deplibs_check_method=$lt_cv_deplibs_check_method
7068 test -z "$deplibs_check_method" && deplibs_check_method=unknown
7069
7070
7071
7072
7073
7074
7075
7076
7077
7078
7079
7080
7081 if test -n "$ac_tool_prefix"; then
7082   # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
7083 set dummy ${ac_tool_prefix}ar; ac_word=$2
7084 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7085 $as_echo_n "checking for $ac_word... " >&6; }
7086 if test "${ac_cv_prog_AR+set}" = set; then :
7087   $as_echo_n "(cached) " >&6
7088 else
7089   if test -n "$AR"; then
7090   ac_cv_prog_AR="$AR" # Let the user override the test.
7091 else
7092 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7093 for as_dir in $PATH
7094 do
7095   IFS=$as_save_IFS
7096   test -z "$as_dir" && as_dir=.
7097     for ac_exec_ext in '' $ac_executable_extensions; do
7098   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7099     ac_cv_prog_AR="${ac_tool_prefix}ar"
7100     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7101     break 2
7102   fi
7103 done
7104   done
7105 IFS=$as_save_IFS
7106
7107 fi
7108 fi
7109 AR=$ac_cv_prog_AR
7110 if test -n "$AR"; then
7111   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
7112 $as_echo "$AR" >&6; }
7113 else
7114   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7115 $as_echo "no" >&6; }
7116 fi
7117
7118
7119 fi
7120 if test -z "$ac_cv_prog_AR"; then
7121   ac_ct_AR=$AR
7122   # Extract the first word of "ar", so it can be a program name with args.
7123 set dummy ar; ac_word=$2
7124 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7125 $as_echo_n "checking for $ac_word... " >&6; }
7126 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
7127   $as_echo_n "(cached) " >&6
7128 else
7129   if test -n "$ac_ct_AR"; then
7130   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
7131 else
7132 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7133 for as_dir in $PATH
7134 do
7135   IFS=$as_save_IFS
7136   test -z "$as_dir" && as_dir=.
7137     for ac_exec_ext in '' $ac_executable_extensions; do
7138   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7139     ac_cv_prog_ac_ct_AR="ar"
7140     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7141     break 2
7142   fi
7143 done
7144   done
7145 IFS=$as_save_IFS
7146
7147 fi
7148 fi
7149 ac_ct_AR=$ac_cv_prog_ac_ct_AR
7150 if test -n "$ac_ct_AR"; then
7151   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
7152 $as_echo "$ac_ct_AR" >&6; }
7153 else
7154   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7155 $as_echo "no" >&6; }
7156 fi
7157
7158   if test "x$ac_ct_AR" = x; then
7159     AR="false"
7160   else
7161     case $cross_compiling:$ac_tool_warned in
7162 yes:)
7163 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7164 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7165 ac_tool_warned=yes ;;
7166 esac
7167     AR=$ac_ct_AR
7168   fi
7169 else
7170   AR="$ac_cv_prog_AR"
7171 fi
7172
7173 test -z "$AR" && AR=ar
7174 test -z "$AR_FLAGS" && AR_FLAGS=cru
7175
7176
7177
7178
7179
7180
7181
7182
7183
7184
7185
7186 if test -n "$ac_tool_prefix"; then
7187   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
7188 set dummy ${ac_tool_prefix}strip; ac_word=$2
7189 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7190 $as_echo_n "checking for $ac_word... " >&6; }
7191 if test "${ac_cv_prog_STRIP+set}" = set; then :
7192   $as_echo_n "(cached) " >&6
7193 else
7194   if test -n "$STRIP"; then
7195   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
7196 else
7197 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7198 for as_dir in $PATH
7199 do
7200   IFS=$as_save_IFS
7201   test -z "$as_dir" && as_dir=.
7202     for ac_exec_ext in '' $ac_executable_extensions; do
7203   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7204     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
7205     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7206     break 2
7207   fi
7208 done
7209   done
7210 IFS=$as_save_IFS
7211
7212 fi
7213 fi
7214 STRIP=$ac_cv_prog_STRIP
7215 if test -n "$STRIP"; then
7216   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
7217 $as_echo "$STRIP" >&6; }
7218 else
7219   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7220 $as_echo "no" >&6; }
7221 fi
7222
7223
7224 fi
7225 if test -z "$ac_cv_prog_STRIP"; then
7226   ac_ct_STRIP=$STRIP
7227   # Extract the first word of "strip", so it can be a program name with args.
7228 set dummy strip; ac_word=$2
7229 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7230 $as_echo_n "checking for $ac_word... " >&6; }
7231 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
7232   $as_echo_n "(cached) " >&6
7233 else
7234   if test -n "$ac_ct_STRIP"; then
7235   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
7236 else
7237 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7238 for as_dir in $PATH
7239 do
7240   IFS=$as_save_IFS
7241   test -z "$as_dir" && as_dir=.
7242     for ac_exec_ext in '' $ac_executable_extensions; do
7243   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7244     ac_cv_prog_ac_ct_STRIP="strip"
7245     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7246     break 2
7247   fi
7248 done
7249   done
7250 IFS=$as_save_IFS
7251
7252 fi
7253 fi
7254 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
7255 if test -n "$ac_ct_STRIP"; then
7256   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
7257 $as_echo "$ac_ct_STRIP" >&6; }
7258 else
7259   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7260 $as_echo "no" >&6; }
7261 fi
7262
7263   if test "x$ac_ct_STRIP" = x; then
7264     STRIP=":"
7265   else
7266     case $cross_compiling:$ac_tool_warned in
7267 yes:)
7268 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7269 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7270 ac_tool_warned=yes ;;
7271 esac
7272     STRIP=$ac_ct_STRIP
7273   fi
7274 else
7275   STRIP="$ac_cv_prog_STRIP"
7276 fi
7277
7278 test -z "$STRIP" && STRIP=:
7279
7280
7281
7282
7283
7284
7285 if test -n "$ac_tool_prefix"; then
7286   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
7287 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
7288 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7289 $as_echo_n "checking for $ac_word... " >&6; }
7290 if test "${ac_cv_prog_RANLIB+set}" = set; then :
7291   $as_echo_n "(cached) " >&6
7292 else
7293   if test -n "$RANLIB"; then
7294   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
7295 else
7296 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7297 for as_dir in $PATH
7298 do
7299   IFS=$as_save_IFS
7300   test -z "$as_dir" && as_dir=.
7301     for ac_exec_ext in '' $ac_executable_extensions; do
7302   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7303     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
7304     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7305     break 2
7306   fi
7307 done
7308   done
7309 IFS=$as_save_IFS
7310
7311 fi
7312 fi
7313 RANLIB=$ac_cv_prog_RANLIB
7314 if test -n "$RANLIB"; then
7315   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
7316 $as_echo "$RANLIB" >&6; }
7317 else
7318   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7319 $as_echo "no" >&6; }
7320 fi
7321
7322
7323 fi
7324 if test -z "$ac_cv_prog_RANLIB"; then
7325   ac_ct_RANLIB=$RANLIB
7326   # Extract the first word of "ranlib", so it can be a program name with args.
7327 set dummy ranlib; ac_word=$2
7328 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7329 $as_echo_n "checking for $ac_word... " >&6; }
7330 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
7331   $as_echo_n "(cached) " >&6
7332 else
7333   if test -n "$ac_ct_RANLIB"; then
7334   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
7335 else
7336 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7337 for as_dir in $PATH
7338 do
7339   IFS=$as_save_IFS
7340   test -z "$as_dir" && as_dir=.
7341     for ac_exec_ext in '' $ac_executable_extensions; do
7342   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7343     ac_cv_prog_ac_ct_RANLIB="ranlib"
7344     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7345     break 2
7346   fi
7347 done
7348   done
7349 IFS=$as_save_IFS
7350
7351 fi
7352 fi
7353 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
7354 if test -n "$ac_ct_RANLIB"; then
7355   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
7356 $as_echo "$ac_ct_RANLIB" >&6; }
7357 else
7358   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7359 $as_echo "no" >&6; }
7360 fi
7361
7362   if test "x$ac_ct_RANLIB" = x; then
7363     RANLIB=":"
7364   else
7365     case $cross_compiling:$ac_tool_warned in
7366 yes:)
7367 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7368 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7369 ac_tool_warned=yes ;;
7370 esac
7371     RANLIB=$ac_ct_RANLIB
7372   fi
7373 else
7374   RANLIB="$ac_cv_prog_RANLIB"
7375 fi
7376
7377 test -z "$RANLIB" && RANLIB=:
7378
7379
7380
7381
7382
7383
7384 # Determine commands to create old-style static archives.
7385 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
7386 old_postinstall_cmds='chmod 644 $oldlib'
7387 old_postuninstall_cmds=
7388
7389 if test -n "$RANLIB"; then
7390   case $host_os in
7391   openbsd*)
7392     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
7393     ;;
7394   *)
7395     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
7396     ;;
7397   esac
7398   old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
7399 fi
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
7426
7427
7428
7429
7430
7431
7432
7433
7434 # If no C compiler was specified, use CC.
7435 LTCC=${LTCC-"$CC"}
7436
7437 # If no C compiler flags were specified, use CFLAGS.
7438 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7439
7440 # Allow CC to be a program name with arguments.
7441 compiler=$CC
7442
7443
7444 # Check for command to grab the raw symbol name followed by C symbol from nm.
7445 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
7446 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
7447 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then :
7448   $as_echo_n "(cached) " >&6
7449 else
7450
7451 # These are sane defaults that work on at least a few old systems.
7452 # [They come from Ultrix.  What could be older than Ultrix?!! ;)]
7453
7454 # Character class describing NM global symbol codes.
7455 symcode='[BCDEGRST]'
7456
7457 # Regexp to match symbols that can be accessed directly from C.
7458 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
7459
7460 # Define system-specific variables.
7461 case $host_os in
7462 aix*)
7463   symcode='[BCDT]'
7464   ;;
7465 cygwin* | mingw* | pw32* | cegcc*)
7466   symcode='[ABCDGISTW]'
7467   ;;
7468 hpux*)
7469   if test "$host_cpu" = ia64; then
7470     symcode='[ABCDEGRST]'
7471   fi
7472   ;;
7473 irix* | nonstopux*)
7474   symcode='[BCDEGRST]'
7475   ;;
7476 osf*)
7477   symcode='[BCDEGQRST]'
7478   ;;
7479 solaris*)
7480   symcode='[BDRT]'
7481   ;;
7482 sco3.2v5*)
7483   symcode='[DT]'
7484   ;;
7485 sysv4.2uw2*)
7486   symcode='[DT]'
7487   ;;
7488 sysv5* | sco5v6* | unixware* | OpenUNIX*)
7489   symcode='[ABDT]'
7490   ;;
7491 sysv4)
7492   symcode='[DFNSTU]'
7493   ;;
7494 esac
7495
7496 # If we're using GNU nm, then use its standard symbol codes.
7497 case `$NM -V 2>&1` in
7498 *GNU* | *'with BFD'*)
7499   symcode='[ABCDGIRSTW]' ;;
7500 esac
7501
7502 # Transform an extracted symbol line into a proper C declaration.
7503 # Some systems (esp. on ia64) link data and code symbols differently,
7504 # so use this general approach.
7505 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
7506
7507 # Transform an extracted symbol line into symbol name and symbol address
7508 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/  {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"\2\", (void *) \&\2},/p'"
7509 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'"
7510
7511 # Handle CRLF in mingw tool chain
7512 opt_cr=
7513 case $build_os in
7514 mingw*)
7515   opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
7516   ;;
7517 esac
7518
7519 # Try without a prefix underscore, then with it.
7520 for ac_symprfx in "" "_"; do
7521
7522   # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
7523   symxfrm="\\1 $ac_symprfx\\2 \\2"
7524
7525   # Write the raw and C identifiers.
7526   if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7527     # Fake it for dumpbin and say T for any non-static function
7528     # and D for any global variable.
7529     # Also find C++ and __fastcall symbols from MSVC++,
7530     # which start with @ or ?.
7531     lt_cv_sys_global_symbol_pipe="$AWK '"\
7532 "     {last_section=section; section=\$ 3};"\
7533 "     /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
7534 "     \$ 0!~/External *\|/{next};"\
7535 "     / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
7536 "     {if(hide[section]) next};"\
7537 "     {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
7538 "     {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
7539 "     s[1]~/^[@?]/{print s[1], s[1]; next};"\
7540 "     s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
7541 "     ' prfx=^$ac_symprfx"
7542   else
7543     lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[      ]\($symcode$symcode*\)[         ][      ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
7544   fi
7545
7546   # Check to see that the pipe works correctly.
7547   pipe_works=no
7548
7549   rm -f conftest*
7550   cat > conftest.$ac_ext <<_LT_EOF
7551 #ifdef __cplusplus
7552 extern "C" {
7553 #endif
7554 char nm_test_var;
7555 void nm_test_func(void);
7556 void nm_test_func(void){}
7557 #ifdef __cplusplus
7558 }
7559 #endif
7560 int main(){nm_test_var='a';nm_test_func();return(0);}
7561 _LT_EOF
7562
7563   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7564   (eval $ac_compile) 2>&5
7565   ac_status=$?
7566   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7567   test $ac_status = 0; }; then
7568     # Now try to grab the symbols.
7569     nlist=conftest.nm
7570     if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\""; } >&5
7571   (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
7572   ac_status=$?
7573   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7574   test $ac_status = 0; } && test -s "$nlist"; then
7575       # Try sorting and uniquifying the output.
7576       if sort "$nlist" | uniq > "$nlist"T; then
7577         mv -f "$nlist"T "$nlist"
7578       else
7579         rm -f "$nlist"T
7580       fi
7581
7582       # Make sure that we snagged all the symbols we need.
7583       if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
7584         if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
7585           cat <<_LT_EOF > conftest.$ac_ext
7586 #ifdef __cplusplus
7587 extern "C" {
7588 #endif
7589
7590 _LT_EOF
7591           # Now generate the symbol file.
7592           eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
7593
7594           cat <<_LT_EOF >> conftest.$ac_ext
7595
7596 /* The mapping between symbol names and symbols.  */
7597 const struct {
7598   const char *name;
7599   void       *address;
7600 }
7601 lt__PROGRAM__LTX_preloaded_symbols[] =
7602 {
7603   { "@PROGRAM@", (void *) 0 },
7604 _LT_EOF
7605           $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
7606           cat <<\_LT_EOF >> conftest.$ac_ext
7607   {0, (void *) 0}
7608 };
7609
7610 /* This works around a problem in FreeBSD linker */
7611 #ifdef FREEBSD_WORKAROUND
7612 static const void *lt_preloaded_setup() {
7613   return lt__PROGRAM__LTX_preloaded_symbols;
7614 }
7615 #endif
7616
7617 #ifdef __cplusplus
7618 }
7619 #endif
7620 _LT_EOF
7621           # Now try linking the two files.
7622           mv conftest.$ac_objext conftstm.$ac_objext
7623           lt_save_LIBS="$LIBS"
7624           lt_save_CFLAGS="$CFLAGS"
7625           LIBS="conftstm.$ac_objext"
7626           CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
7627           if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
7628   (eval $ac_link) 2>&5
7629   ac_status=$?
7630   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7631   test $ac_status = 0; } && test -s conftest${ac_exeext}; then
7632             pipe_works=yes
7633           fi
7634           LIBS="$lt_save_LIBS"
7635           CFLAGS="$lt_save_CFLAGS"
7636         else
7637           echo "cannot find nm_test_func in $nlist" >&5
7638         fi
7639       else
7640         echo "cannot find nm_test_var in $nlist" >&5
7641       fi
7642     else
7643       echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
7644     fi
7645   else
7646     echo "$progname: failed program was:" >&5
7647     cat conftest.$ac_ext >&5
7648   fi
7649   rm -rf conftest* conftst*
7650
7651   # Do not use the global_symbol_pipe unless it works.
7652   if test "$pipe_works" = yes; then
7653     break
7654   else
7655     lt_cv_sys_global_symbol_pipe=
7656   fi
7657 done
7658
7659 fi
7660
7661 if test -z "$lt_cv_sys_global_symbol_pipe"; then
7662   lt_cv_sys_global_symbol_to_cdecl=
7663 fi
7664 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
7665   { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
7666 $as_echo "failed" >&6; }
7667 else
7668   { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
7669 $as_echo "ok" >&6; }
7670 fi
7671
7672
7673
7674
7675
7676
7677
7678
7679
7680
7681
7682
7683
7684
7685
7686
7687
7688
7689
7690
7691
7692
7693 # Check whether --enable-libtool-lock was given.
7694 if test "${enable_libtool_lock+set}" = set; then :
7695   enableval=$enable_libtool_lock;
7696 fi
7697
7698 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
7699
7700 # Some flags need to be propagated to the compiler or linker for good
7701 # libtool support.
7702 case $host in
7703 ia64-*-hpux*)
7704   # Find out which ABI we are using.
7705   echo 'int i;' > conftest.$ac_ext
7706   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7707   (eval $ac_compile) 2>&5
7708   ac_status=$?
7709   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7710   test $ac_status = 0; }; then
7711     case `/usr/bin/file conftest.$ac_objext` in
7712       *ELF-32*)
7713         HPUX_IA64_MODE="32"
7714         ;;
7715       *ELF-64*)
7716         HPUX_IA64_MODE="64"
7717         ;;
7718     esac
7719   fi
7720   rm -rf conftest*
7721   ;;
7722 *-*-irix6*)
7723   # Find out which ABI we are using.
7724   echo '#line 7724 "configure"' > conftest.$ac_ext
7725   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7726   (eval $ac_compile) 2>&5
7727   ac_status=$?
7728   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7729   test $ac_status = 0; }; then
7730     if test "$lt_cv_prog_gnu_ld" = yes; then
7731       case `/usr/bin/file conftest.$ac_objext` in
7732         *32-bit*)
7733           LD="${LD-ld} -melf32bsmip"
7734           ;;
7735         *N32*)
7736           LD="${LD-ld} -melf32bmipn32"
7737           ;;
7738         *64-bit*)
7739           LD="${LD-ld} -melf64bmip"
7740         ;;
7741       esac
7742     else
7743       case `/usr/bin/file conftest.$ac_objext` in
7744         *32-bit*)
7745           LD="${LD-ld} -32"
7746           ;;
7747         *N32*)
7748           LD="${LD-ld} -n32"
7749           ;;
7750         *64-bit*)
7751           LD="${LD-ld} -64"
7752           ;;
7753       esac
7754     fi
7755   fi
7756   rm -rf conftest*
7757   ;;
7758
7759 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
7760 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
7761   # Find out which ABI we are using.
7762   echo 'int i;' > conftest.$ac_ext
7763   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7764   (eval $ac_compile) 2>&5
7765   ac_status=$?
7766   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7767   test $ac_status = 0; }; then
7768     case `/usr/bin/file conftest.o` in
7769       *32-bit*)
7770         case $host in
7771           x86_64-*kfreebsd*-gnu)
7772             LD="${LD-ld} -m elf_i386_fbsd"
7773             ;;
7774           x86_64-*linux*)
7775             LD="${LD-ld} -m elf_i386"
7776             ;;
7777           ppc64-*linux*|powerpc64-*linux*)
7778             LD="${LD-ld} -m elf32ppclinux"
7779             ;;
7780           s390x-*linux*)
7781             LD="${LD-ld} -m elf_s390"
7782             ;;
7783           sparc64-*linux*)
7784             LD="${LD-ld} -m elf32_sparc"
7785             ;;
7786         esac
7787         ;;
7788       *64-bit*)
7789         case $host in
7790           x86_64-*kfreebsd*-gnu)
7791             LD="${LD-ld} -m elf_x86_64_fbsd"
7792             ;;
7793           x86_64-*linux*)
7794             LD="${LD-ld} -m elf_x86_64"
7795             ;;
7796           ppc*-*linux*|powerpc*-*linux*)
7797             LD="${LD-ld} -m elf64ppc"
7798             ;;
7799           s390*-*linux*|s390*-*tpf*)
7800             LD="${LD-ld} -m elf64_s390"
7801             ;;
7802           sparc*-*linux*)
7803             LD="${LD-ld} -m elf64_sparc"
7804             ;;
7805         esac
7806         ;;
7807     esac
7808   fi
7809   rm -rf conftest*
7810   ;;
7811
7812 *-*-sco3.2v5*)
7813   # On SCO OpenServer 5, we need -belf to get full-featured binaries.
7814   SAVE_CFLAGS="$CFLAGS"
7815   CFLAGS="$CFLAGS -belf"
7816   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
7817 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
7818 if test "${lt_cv_cc_needs_belf+set}" = set; then :
7819   $as_echo_n "(cached) " >&6
7820 else
7821   ac_ext=c
7822 ac_cpp='$CPP $CPPFLAGS'
7823 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7824 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7825 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7826
7827      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7828 /* end confdefs.h.  */
7829
7830 int
7831 main ()
7832 {
7833
7834   ;
7835   return 0;
7836 }
7837 _ACEOF
7838 if ac_fn_c_try_link "$LINENO"; then :
7839   lt_cv_cc_needs_belf=yes
7840 else
7841   lt_cv_cc_needs_belf=no
7842 fi
7843 rm -f core conftest.err conftest.$ac_objext \
7844     conftest$ac_exeext conftest.$ac_ext
7845      ac_ext=c
7846 ac_cpp='$CPP $CPPFLAGS'
7847 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7848 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7849 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7850
7851 fi
7852 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
7853 $as_echo "$lt_cv_cc_needs_belf" >&6; }
7854   if test x"$lt_cv_cc_needs_belf" != x"yes"; then
7855     # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
7856     CFLAGS="$SAVE_CFLAGS"
7857   fi
7858   ;;
7859 sparc*-*solaris*)
7860   # Find out which ABI we are using.
7861   echo 'int i;' > conftest.$ac_ext
7862   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7863   (eval $ac_compile) 2>&5
7864   ac_status=$?
7865   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7866   test $ac_status = 0; }; then
7867     case `/usr/bin/file conftest.o` in
7868     *64-bit*)
7869       case $lt_cv_prog_gnu_ld in
7870       yes*) LD="${LD-ld} -m elf64_sparc" ;;
7871       *)
7872         if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
7873           LD="${LD-ld} -64"
7874         fi
7875         ;;
7876       esac
7877       ;;
7878     esac
7879   fi
7880   rm -rf conftest*
7881   ;;
7882 esac
7883
7884 need_locks="$enable_libtool_lock"
7885
7886
7887   case $host_os in
7888     rhapsody* | darwin*)
7889     if test -n "$ac_tool_prefix"; then
7890   # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
7891 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
7892 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7893 $as_echo_n "checking for $ac_word... " >&6; }
7894 if test "${ac_cv_prog_DSYMUTIL+set}" = set; then :
7895   $as_echo_n "(cached) " >&6
7896 else
7897   if test -n "$DSYMUTIL"; then
7898   ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
7899 else
7900 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7901 for as_dir in $PATH
7902 do
7903   IFS=$as_save_IFS
7904   test -z "$as_dir" && as_dir=.
7905     for ac_exec_ext in '' $ac_executable_extensions; do
7906   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7907     ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
7908     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7909     break 2
7910   fi
7911 done
7912   done
7913 IFS=$as_save_IFS
7914
7915 fi
7916 fi
7917 DSYMUTIL=$ac_cv_prog_DSYMUTIL
7918 if test -n "$DSYMUTIL"; then
7919   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
7920 $as_echo "$DSYMUTIL" >&6; }
7921 else
7922   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7923 $as_echo "no" >&6; }
7924 fi
7925
7926
7927 fi
7928 if test -z "$ac_cv_prog_DSYMUTIL"; then
7929   ac_ct_DSYMUTIL=$DSYMUTIL
7930   # Extract the first word of "dsymutil", so it can be a program name with args.
7931 set dummy dsymutil; ac_word=$2
7932 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7933 $as_echo_n "checking for $ac_word... " >&6; }
7934 if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then :
7935   $as_echo_n "(cached) " >&6
7936 else
7937   if test -n "$ac_ct_DSYMUTIL"; then
7938   ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
7939 else
7940 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7941 for as_dir in $PATH
7942 do
7943   IFS=$as_save_IFS
7944   test -z "$as_dir" && as_dir=.
7945     for ac_exec_ext in '' $ac_executable_extensions; do
7946   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7947     ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
7948     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7949     break 2
7950   fi
7951 done
7952   done
7953 IFS=$as_save_IFS
7954
7955 fi
7956 fi
7957 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
7958 if test -n "$ac_ct_DSYMUTIL"; then
7959   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
7960 $as_echo "$ac_ct_DSYMUTIL" >&6; }
7961 else
7962   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7963 $as_echo "no" >&6; }
7964 fi
7965
7966   if test "x$ac_ct_DSYMUTIL" = x; then
7967     DSYMUTIL=":"
7968   else
7969     case $cross_compiling:$ac_tool_warned in
7970 yes:)
7971 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7972 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7973 ac_tool_warned=yes ;;
7974 esac
7975     DSYMUTIL=$ac_ct_DSYMUTIL
7976   fi
7977 else
7978   DSYMUTIL="$ac_cv_prog_DSYMUTIL"
7979 fi
7980
7981     if test -n "$ac_tool_prefix"; then
7982   # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
7983 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
7984 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7985 $as_echo_n "checking for $ac_word... " >&6; }
7986 if test "${ac_cv_prog_NMEDIT+set}" = set; then :
7987   $as_echo_n "(cached) " >&6
7988 else
7989   if test -n "$NMEDIT"; then
7990   ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
7991 else
7992 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7993 for as_dir in $PATH
7994 do
7995   IFS=$as_save_IFS
7996   test -z "$as_dir" && as_dir=.
7997     for ac_exec_ext in '' $ac_executable_extensions; do
7998   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7999     ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
8000     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8001     break 2
8002   fi
8003 done
8004   done
8005 IFS=$as_save_IFS
8006
8007 fi
8008 fi
8009 NMEDIT=$ac_cv_prog_NMEDIT
8010 if test -n "$NMEDIT"; then
8011   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
8012 $as_echo "$NMEDIT" >&6; }
8013 else
8014   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8015 $as_echo "no" >&6; }
8016 fi
8017
8018
8019 fi
8020 if test -z "$ac_cv_prog_NMEDIT"; then
8021   ac_ct_NMEDIT=$NMEDIT
8022   # Extract the first word of "nmedit", so it can be a program name with args.
8023 set dummy nmedit; ac_word=$2
8024 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8025 $as_echo_n "checking for $ac_word... " >&6; }
8026 if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then :
8027   $as_echo_n "(cached) " >&6
8028 else
8029   if test -n "$ac_ct_NMEDIT"; then
8030   ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
8031 else
8032 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8033 for as_dir in $PATH
8034 do
8035   IFS=$as_save_IFS
8036   test -z "$as_dir" && as_dir=.
8037     for ac_exec_ext in '' $ac_executable_extensions; do
8038   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8039     ac_cv_prog_ac_ct_NMEDIT="nmedit"
8040     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8041     break 2
8042   fi
8043 done
8044   done
8045 IFS=$as_save_IFS
8046
8047 fi
8048 fi
8049 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
8050 if test -n "$ac_ct_NMEDIT"; then
8051   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
8052 $as_echo "$ac_ct_NMEDIT" >&6; }
8053 else
8054   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8055 $as_echo "no" >&6; }
8056 fi
8057
8058   if test "x$ac_ct_NMEDIT" = x; then
8059     NMEDIT=":"
8060   else
8061     case $cross_compiling:$ac_tool_warned in
8062 yes:)
8063 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8064 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8065 ac_tool_warned=yes ;;
8066 esac
8067     NMEDIT=$ac_ct_NMEDIT
8068   fi
8069 else
8070   NMEDIT="$ac_cv_prog_NMEDIT"
8071 fi
8072
8073     if test -n "$ac_tool_prefix"; then
8074   # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
8075 set dummy ${ac_tool_prefix}lipo; ac_word=$2
8076 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8077 $as_echo_n "checking for $ac_word... " >&6; }
8078 if test "${ac_cv_prog_LIPO+set}" = set; then :
8079   $as_echo_n "(cached) " >&6
8080 else
8081   if test -n "$LIPO"; then
8082   ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
8083 else
8084 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8085 for as_dir in $PATH
8086 do
8087   IFS=$as_save_IFS
8088   test -z "$as_dir" && as_dir=.
8089     for ac_exec_ext in '' $ac_executable_extensions; do
8090   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8091     ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
8092     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8093     break 2
8094   fi
8095 done
8096   done
8097 IFS=$as_save_IFS
8098
8099 fi
8100 fi
8101 LIPO=$ac_cv_prog_LIPO
8102 if test -n "$LIPO"; then
8103   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
8104 $as_echo "$LIPO" >&6; }
8105 else
8106   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8107 $as_echo "no" >&6; }
8108 fi
8109
8110
8111 fi
8112 if test -z "$ac_cv_prog_LIPO"; then
8113   ac_ct_LIPO=$LIPO
8114   # Extract the first word of "lipo", so it can be a program name with args.
8115 set dummy lipo; ac_word=$2
8116 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8117 $as_echo_n "checking for $ac_word... " >&6; }
8118 if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then :
8119   $as_echo_n "(cached) " >&6
8120 else
8121   if test -n "$ac_ct_LIPO"; then
8122   ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
8123 else
8124 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8125 for as_dir in $PATH
8126 do
8127   IFS=$as_save_IFS
8128   test -z "$as_dir" && as_dir=.
8129     for ac_exec_ext in '' $ac_executable_extensions; do
8130   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8131     ac_cv_prog_ac_ct_LIPO="lipo"
8132     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8133     break 2
8134   fi
8135 done
8136   done
8137 IFS=$as_save_IFS
8138
8139 fi
8140 fi
8141 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
8142 if test -n "$ac_ct_LIPO"; then
8143   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
8144 $as_echo "$ac_ct_LIPO" >&6; }
8145 else
8146   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8147 $as_echo "no" >&6; }
8148 fi
8149
8150   if test "x$ac_ct_LIPO" = x; then
8151     LIPO=":"
8152   else
8153     case $cross_compiling:$ac_tool_warned in
8154 yes:)
8155 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8156 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8157 ac_tool_warned=yes ;;
8158 esac
8159     LIPO=$ac_ct_LIPO
8160   fi
8161 else
8162   LIPO="$ac_cv_prog_LIPO"
8163 fi
8164
8165     if test -n "$ac_tool_prefix"; then
8166   # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
8167 set dummy ${ac_tool_prefix}otool; ac_word=$2
8168 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8169 $as_echo_n "checking for $ac_word... " >&6; }
8170 if test "${ac_cv_prog_OTOOL+set}" = set; then :
8171   $as_echo_n "(cached) " >&6
8172 else
8173   if test -n "$OTOOL"; then
8174   ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
8175 else
8176 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8177 for as_dir in $PATH
8178 do
8179   IFS=$as_save_IFS
8180   test -z "$as_dir" && as_dir=.
8181     for ac_exec_ext in '' $ac_executable_extensions; do
8182   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8183     ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
8184     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8185     break 2
8186   fi
8187 done
8188   done
8189 IFS=$as_save_IFS
8190
8191 fi
8192 fi
8193 OTOOL=$ac_cv_prog_OTOOL
8194 if test -n "$OTOOL"; then
8195   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
8196 $as_echo "$OTOOL" >&6; }
8197 else
8198   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8199 $as_echo "no" >&6; }
8200 fi
8201
8202
8203 fi
8204 if test -z "$ac_cv_prog_OTOOL"; then
8205   ac_ct_OTOOL=$OTOOL
8206   # Extract the first word of "otool", so it can be a program name with args.
8207 set dummy otool; ac_word=$2
8208 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8209 $as_echo_n "checking for $ac_word... " >&6; }
8210 if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then :
8211   $as_echo_n "(cached) " >&6
8212 else
8213   if test -n "$ac_ct_OTOOL"; then
8214   ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
8215 else
8216 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8217 for as_dir in $PATH
8218 do
8219   IFS=$as_save_IFS
8220   test -z "$as_dir" && as_dir=.
8221     for ac_exec_ext in '' $ac_executable_extensions; do
8222   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8223     ac_cv_prog_ac_ct_OTOOL="otool"
8224     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8225     break 2
8226   fi
8227 done
8228   done
8229 IFS=$as_save_IFS
8230
8231 fi
8232 fi
8233 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
8234 if test -n "$ac_ct_OTOOL"; then
8235   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
8236 $as_echo "$ac_ct_OTOOL" >&6; }
8237 else
8238   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8239 $as_echo "no" >&6; }
8240 fi
8241
8242   if test "x$ac_ct_OTOOL" = x; then
8243     OTOOL=":"
8244   else
8245     case $cross_compiling:$ac_tool_warned in
8246 yes:)
8247 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8248 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8249 ac_tool_warned=yes ;;
8250 esac
8251     OTOOL=$ac_ct_OTOOL
8252   fi
8253 else
8254   OTOOL="$ac_cv_prog_OTOOL"
8255 fi
8256
8257     if test -n "$ac_tool_prefix"; then
8258   # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
8259 set dummy ${ac_tool_prefix}otool64; ac_word=$2
8260 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8261 $as_echo_n "checking for $ac_word... " >&6; }
8262 if test "${ac_cv_prog_OTOOL64+set}" = set; then :
8263   $as_echo_n "(cached) " >&6
8264 else
8265   if test -n "$OTOOL64"; then
8266   ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
8267 else
8268 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8269 for as_dir in $PATH
8270 do
8271   IFS=$as_save_IFS
8272   test -z "$as_dir" && as_dir=.
8273     for ac_exec_ext in '' $ac_executable_extensions; do
8274   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8275     ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
8276     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8277     break 2
8278   fi
8279 done
8280   done
8281 IFS=$as_save_IFS
8282
8283 fi
8284 fi
8285 OTOOL64=$ac_cv_prog_OTOOL64
8286 if test -n "$OTOOL64"; then
8287   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
8288 $as_echo "$OTOOL64" >&6; }
8289 else
8290   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8291 $as_echo "no" >&6; }
8292 fi
8293
8294
8295 fi
8296 if test -z "$ac_cv_prog_OTOOL64"; then
8297   ac_ct_OTOOL64=$OTOOL64
8298   # Extract the first word of "otool64", so it can be a program name with args.
8299 set dummy otool64; ac_word=$2
8300 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8301 $as_echo_n "checking for $ac_word... " >&6; }
8302 if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then :
8303   $as_echo_n "(cached) " >&6
8304 else
8305   if test -n "$ac_ct_OTOOL64"; then
8306   ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
8307 else
8308 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8309 for as_dir in $PATH
8310 do
8311   IFS=$as_save_IFS
8312   test -z "$as_dir" && as_dir=.
8313     for ac_exec_ext in '' $ac_executable_extensions; do
8314   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8315     ac_cv_prog_ac_ct_OTOOL64="otool64"
8316     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8317     break 2
8318   fi
8319 done
8320   done
8321 IFS=$as_save_IFS
8322
8323 fi
8324 fi
8325 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
8326 if test -n "$ac_ct_OTOOL64"; then
8327   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
8328 $as_echo "$ac_ct_OTOOL64" >&6; }
8329 else
8330   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8331 $as_echo "no" >&6; }
8332 fi
8333
8334   if test "x$ac_ct_OTOOL64" = x; then
8335     OTOOL64=":"
8336   else
8337     case $cross_compiling:$ac_tool_warned in
8338 yes:)
8339 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8340 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8341 ac_tool_warned=yes ;;
8342 esac
8343     OTOOL64=$ac_ct_OTOOL64
8344   fi
8345 else
8346   OTOOL64="$ac_cv_prog_OTOOL64"
8347 fi
8348
8349
8350
8351
8352
8353
8354
8355
8356
8357
8358
8359
8360
8361
8362
8363
8364
8365
8366
8367
8368
8369
8370
8371
8372
8373
8374
8375     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
8376 $as_echo_n "checking for -single_module linker flag... " >&6; }
8377 if test "${lt_cv_apple_cc_single_mod+set}" = set; then :
8378   $as_echo_n "(cached) " >&6
8379 else
8380   lt_cv_apple_cc_single_mod=no
8381       if test -z "${LT_MULTI_MODULE}"; then
8382         # By default we will add the -single_module flag. You can override
8383         # by either setting the environment variable LT_MULTI_MODULE
8384         # non-empty at configure time, or by adding -multi_module to the
8385         # link flags.
8386         rm -rf libconftest.dylib*
8387         echo "int foo(void){return 1;}" > conftest.c
8388         echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8389 -dynamiclib -Wl,-single_module conftest.c" >&5
8390         $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8391           -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
8392         _lt_result=$?
8393         if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
8394           lt_cv_apple_cc_single_mod=yes
8395         else
8396           cat conftest.err >&5
8397         fi
8398         rm -rf libconftest.dylib*
8399         rm -f conftest.*
8400       fi
8401 fi
8402 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
8403 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
8404     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
8405 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
8406 if test "${lt_cv_ld_exported_symbols_list+set}" = set; then :
8407   $as_echo_n "(cached) " >&6
8408 else
8409   lt_cv_ld_exported_symbols_list=no
8410       save_LDFLAGS=$LDFLAGS
8411       echo "_main" > conftest.sym
8412       LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
8413       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8414 /* end confdefs.h.  */
8415
8416 int
8417 main ()
8418 {
8419
8420   ;
8421   return 0;
8422 }
8423 _ACEOF
8424 if ac_fn_c_try_link "$LINENO"; then :
8425   lt_cv_ld_exported_symbols_list=yes
8426 else
8427   lt_cv_ld_exported_symbols_list=no
8428 fi
8429 rm -f core conftest.err conftest.$ac_objext \
8430     conftest$ac_exeext conftest.$ac_ext
8431         LDFLAGS="$save_LDFLAGS"
8432
8433 fi
8434 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
8435 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
8436     case $host_os in
8437     rhapsody* | darwin1.[012])
8438       _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
8439     darwin1.*)
8440       _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
8441     darwin*) # darwin 5.x on
8442       # if running on 10.5 or later, the deployment target defaults
8443       # to the OS version, if on x86, and 10.4, the deployment
8444       # target defaults to 10.4. Don't you love it?
8445       case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
8446         10.0,*86*-darwin8*|10.0,*-darwin[91]*)
8447           _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
8448         10.[012]*)
8449           _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
8450         10.*)
8451           _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
8452       esac
8453     ;;
8454   esac
8455     if test "$lt_cv_apple_cc_single_mod" = "yes"; then
8456       _lt_dar_single_mod='$single_module'
8457     fi
8458     if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
8459       _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
8460     else
8461       _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
8462     fi
8463     if test "$DSYMUTIL" != ":"; then
8464       _lt_dsymutil='~$DSYMUTIL $lib || :'
8465     else
8466       _lt_dsymutil=
8467     fi
8468     ;;
8469   esac
8470
8471 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
8472 $as_echo_n "checking for ANSI C header files... " >&6; }
8473 if test "${ac_cv_header_stdc+set}" = set; then :
8474   $as_echo_n "(cached) " >&6
8475 else
8476   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8477 /* end confdefs.h.  */
8478 #include <stdlib.h>
8479 #include <stdarg.h>
8480 #include <string.h>
8481 #include <float.h>
8482
8483 int
8484 main ()
8485 {
8486
8487   ;
8488   return 0;
8489 }
8490 _ACEOF
8491 if ac_fn_c_try_compile "$LINENO"; then :
8492   ac_cv_header_stdc=yes
8493 else
8494   ac_cv_header_stdc=no
8495 fi
8496 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8497
8498 if test $ac_cv_header_stdc = yes; then
8499   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
8500   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8501 /* end confdefs.h.  */
8502 #include <string.h>
8503
8504 _ACEOF
8505 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8506   $EGREP "memchr" >/dev/null 2>&1; then :
8507
8508 else
8509   ac_cv_header_stdc=no
8510 fi
8511 rm -f conftest*
8512
8513 fi
8514
8515 if test $ac_cv_header_stdc = yes; then
8516   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
8517   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8518 /* end confdefs.h.  */
8519 #include <stdlib.h>
8520
8521 _ACEOF
8522 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8523   $EGREP "free" >/dev/null 2>&1; then :
8524
8525 else
8526   ac_cv_header_stdc=no
8527 fi
8528 rm -f conftest*
8529
8530 fi
8531
8532 if test $ac_cv_header_stdc = yes; then
8533   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
8534   if test "$cross_compiling" = yes; then :
8535   :
8536 else
8537   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8538 /* end confdefs.h.  */
8539 #include <ctype.h>
8540 #include <stdlib.h>
8541 #if ((' ' & 0x0FF) == 0x020)
8542 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
8543 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
8544 #else
8545 # define ISLOWER(c) \
8546                    (('a' <= (c) && (c) <= 'i') \
8547                      || ('j' <= (c) && (c) <= 'r') \
8548                      || ('s' <= (c) && (c) <= 'z'))
8549 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
8550 #endif
8551
8552 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
8553 int
8554 main ()
8555 {
8556   int i;
8557   for (i = 0; i < 256; i++)
8558     if (XOR (islower (i), ISLOWER (i))
8559         || toupper (i) != TOUPPER (i))
8560       return 2;
8561   return 0;
8562 }
8563 _ACEOF
8564 if ac_fn_c_try_run "$LINENO"; then :
8565
8566 else
8567   ac_cv_header_stdc=no
8568 fi
8569 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8570   conftest.$ac_objext conftest.beam conftest.$ac_ext
8571 fi
8572
8573 fi
8574 fi
8575 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
8576 $as_echo "$ac_cv_header_stdc" >&6; }
8577 if test $ac_cv_header_stdc = yes; then
8578
8579 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
8580
8581 fi
8582
8583 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
8584 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
8585                   inttypes.h stdint.h unistd.h
8586 do :
8587   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
8588 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
8589 "
8590 eval as_val=\$$as_ac_Header
8591    if test "x$as_val" = x""yes; then :
8592   cat >>confdefs.h <<_ACEOF
8593 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
8594 _ACEOF
8595
8596 fi
8597
8598 done
8599
8600
8601 for ac_header in dlfcn.h
8602 do :
8603   ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
8604 "
8605 if test "x$ac_cv_header_dlfcn_h" = x""yes; then :
8606   cat >>confdefs.h <<_ACEOF
8607 #define HAVE_DLFCN_H 1
8608 _ACEOF
8609
8610 fi
8611
8612 done
8613
8614
8615
8616 ac_ext=cpp
8617 ac_cpp='$CXXCPP $CPPFLAGS'
8618 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8619 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8620 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
8621 if test -z "$CXX"; then
8622   if test -n "$CCC"; then
8623     CXX=$CCC
8624   else
8625     if test -n "$ac_tool_prefix"; then
8626   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
8627   do
8628     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
8629 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
8630 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8631 $as_echo_n "checking for $ac_word... " >&6; }
8632 if test "${ac_cv_prog_CXX+set}" = set; then :
8633   $as_echo_n "(cached) " >&6
8634 else
8635   if test -n "$CXX"; then
8636   ac_cv_prog_CXX="$CXX" # Let the user override the test.
8637 else
8638 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8639 for as_dir in $PATH
8640 do
8641   IFS=$as_save_IFS
8642   test -z "$as_dir" && as_dir=.
8643     for ac_exec_ext in '' $ac_executable_extensions; do
8644   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8645     ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
8646     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8647     break 2
8648   fi
8649 done
8650   done
8651 IFS=$as_save_IFS
8652
8653 fi
8654 fi
8655 CXX=$ac_cv_prog_CXX
8656 if test -n "$CXX"; then
8657   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
8658 $as_echo "$CXX" >&6; }
8659 else
8660   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8661 $as_echo "no" >&6; }
8662 fi
8663
8664
8665     test -n "$CXX" && break
8666   done
8667 fi
8668 if test -z "$CXX"; then
8669   ac_ct_CXX=$CXX
8670   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
8671 do
8672   # Extract the first word of "$ac_prog", so it can be a program name with args.
8673 set dummy $ac_prog; ac_word=$2
8674 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8675 $as_echo_n "checking for $ac_word... " >&6; }
8676 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then :
8677   $as_echo_n "(cached) " >&6
8678 else
8679   if test -n "$ac_ct_CXX"; then
8680   ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
8681 else
8682 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8683 for as_dir in $PATH
8684 do
8685   IFS=$as_save_IFS
8686   test -z "$as_dir" && as_dir=.
8687     for ac_exec_ext in '' $ac_executable_extensions; do
8688   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8689     ac_cv_prog_ac_ct_CXX="$ac_prog"
8690     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8691     break 2
8692   fi
8693 done
8694   done
8695 IFS=$as_save_IFS
8696
8697 fi
8698 fi
8699 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
8700 if test -n "$ac_ct_CXX"; then
8701   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
8702 $as_echo "$ac_ct_CXX" >&6; }
8703 else
8704   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8705 $as_echo "no" >&6; }
8706 fi
8707
8708
8709   test -n "$ac_ct_CXX" && break
8710 done
8711
8712   if test "x$ac_ct_CXX" = x; then
8713     CXX="g++"
8714   else
8715     case $cross_compiling:$ac_tool_warned in
8716 yes:)
8717 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8718 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8719 ac_tool_warned=yes ;;
8720 esac
8721     CXX=$ac_ct_CXX
8722   fi
8723 fi
8724
8725   fi
8726 fi
8727 # Provide some information about the compiler.
8728 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
8729 set X $ac_compile
8730 ac_compiler=$2
8731 for ac_option in --version -v -V -qversion; do
8732   { { ac_try="$ac_compiler $ac_option >&5"
8733 case "(($ac_try" in
8734   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8735   *) ac_try_echo=$ac_try;;
8736 esac
8737 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
8738 $as_echo "$ac_try_echo"; } >&5
8739   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
8740   ac_status=$?
8741   if test -s conftest.err; then
8742     sed '10a\
8743 ... rest of stderr output deleted ...
8744          10q' conftest.err >conftest.er1
8745     cat conftest.er1 >&5
8746   fi
8747   rm -f conftest.er1 conftest.err
8748   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8749   test $ac_status = 0; }
8750 done
8751
8752 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
8753 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
8754 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then :
8755   $as_echo_n "(cached) " >&6
8756 else
8757   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8758 /* end confdefs.h.  */
8759
8760 int
8761 main ()
8762 {
8763 #ifndef __GNUC__
8764        choke me
8765 #endif
8766
8767   ;
8768   return 0;
8769 }
8770 _ACEOF
8771 if ac_fn_cxx_try_compile "$LINENO"; then :
8772   ac_compiler_gnu=yes
8773 else
8774   ac_compiler_gnu=no
8775 fi
8776 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8777 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
8778
8779 fi
8780 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
8781 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
8782 if test $ac_compiler_gnu = yes; then
8783   GXX=yes
8784 else
8785   GXX=
8786 fi
8787 ac_test_CXXFLAGS=${CXXFLAGS+set}
8788 ac_save_CXXFLAGS=$CXXFLAGS
8789 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
8790 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
8791 if test "${ac_cv_prog_cxx_g+set}" = set; then :
8792   $as_echo_n "(cached) " >&6
8793 else
8794   ac_save_cxx_werror_flag=$ac_cxx_werror_flag
8795    ac_cxx_werror_flag=yes
8796    ac_cv_prog_cxx_g=no
8797    CXXFLAGS="-g"
8798    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8799 /* end confdefs.h.  */
8800
8801 int
8802 main ()
8803 {
8804
8805   ;
8806   return 0;
8807 }
8808 _ACEOF
8809 if ac_fn_cxx_try_compile "$LINENO"; then :
8810   ac_cv_prog_cxx_g=yes
8811 else
8812   CXXFLAGS=""
8813       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8814 /* end confdefs.h.  */
8815
8816 int
8817 main ()
8818 {
8819
8820   ;
8821   return 0;
8822 }
8823 _ACEOF
8824 if ac_fn_cxx_try_compile "$LINENO"; then :
8825
8826 else
8827   ac_cxx_werror_flag=$ac_save_cxx_werror_flag
8828          CXXFLAGS="-g"
8829          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8830 /* end confdefs.h.  */
8831
8832 int
8833 main ()
8834 {
8835
8836   ;
8837   return 0;
8838 }
8839 _ACEOF
8840 if ac_fn_cxx_try_compile "$LINENO"; then :
8841   ac_cv_prog_cxx_g=yes
8842 fi
8843 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8844 fi
8845 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8846 fi
8847 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8848    ac_cxx_werror_flag=$ac_save_cxx_werror_flag
8849 fi
8850 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
8851 $as_echo "$ac_cv_prog_cxx_g" >&6; }
8852 if test "$ac_test_CXXFLAGS" = set; then
8853   CXXFLAGS=$ac_save_CXXFLAGS
8854 elif test $ac_cv_prog_cxx_g = yes; then
8855   if test "$GXX" = yes; then
8856     CXXFLAGS="-g -O2"
8857   else
8858     CXXFLAGS="-g"
8859   fi
8860 else
8861   if test "$GXX" = yes; then
8862     CXXFLAGS="-O2"
8863   else
8864     CXXFLAGS=
8865   fi
8866 fi
8867 ac_ext=c
8868 ac_cpp='$CPP $CPPFLAGS'
8869 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8870 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8871 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8872
8873 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
8874     ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
8875     (test "X$CXX" != "Xg++"))) ; then
8876   ac_ext=cpp
8877 ac_cpp='$CXXCPP $CPPFLAGS'
8878 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8879 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8880 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
8881 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
8882 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
8883 if test -z "$CXXCPP"; then
8884   if test "${ac_cv_prog_CXXCPP+set}" = set; then :
8885   $as_echo_n "(cached) " >&6
8886 else
8887       # Double quotes because CXXCPP needs to be expanded
8888     for CXXCPP in "$CXX -E" "/lib/cpp"
8889     do
8890       ac_preproc_ok=false
8891 for ac_cxx_preproc_warn_flag in '' yes
8892 do
8893   # Use a header file that comes with gcc, so configuring glibc
8894   # with a fresh cross-compiler works.
8895   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8896   # <limits.h> exists even on freestanding compilers.
8897   # On the NeXT, cc -E runs the code through the compiler's parser,
8898   # not just through cpp. "Syntax error" is here to catch this case.
8899   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8900 /* end confdefs.h.  */
8901 #ifdef __STDC__
8902 # include <limits.h>
8903 #else
8904 # include <assert.h>
8905 #endif
8906                      Syntax error
8907 _ACEOF
8908 if ac_fn_cxx_try_cpp "$LINENO"; then :
8909
8910 else
8911   # Broken: fails on valid input.
8912 continue
8913 fi
8914 rm -f conftest.err conftest.$ac_ext
8915
8916   # OK, works on sane cases.  Now check whether nonexistent headers
8917   # can be detected and how.
8918   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8919 /* end confdefs.h.  */
8920 #include <ac_nonexistent.h>
8921 _ACEOF
8922 if ac_fn_cxx_try_cpp "$LINENO"; then :
8923   # Broken: success on invalid input.
8924 continue
8925 else
8926   # Passes both tests.
8927 ac_preproc_ok=:
8928 break
8929 fi
8930 rm -f conftest.err conftest.$ac_ext
8931
8932 done
8933 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
8934 rm -f conftest.err conftest.$ac_ext
8935 if $ac_preproc_ok; then :
8936   break
8937 fi
8938
8939     done
8940     ac_cv_prog_CXXCPP=$CXXCPP
8941
8942 fi
8943   CXXCPP=$ac_cv_prog_CXXCPP
8944 else
8945   ac_cv_prog_CXXCPP=$CXXCPP
8946 fi
8947 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
8948 $as_echo "$CXXCPP" >&6; }
8949 ac_preproc_ok=false
8950 for ac_cxx_preproc_warn_flag in '' yes
8951 do
8952   # Use a header file that comes with gcc, so configuring glibc
8953   # with a fresh cross-compiler works.
8954   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8955   # <limits.h> exists even on freestanding compilers.
8956   # On the NeXT, cc -E runs the code through the compiler's parser,
8957   # not just through cpp. "Syntax error" is here to catch this case.
8958   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8959 /* end confdefs.h.  */
8960 #ifdef __STDC__
8961 # include <limits.h>
8962 #else
8963 # include <assert.h>
8964 #endif
8965                      Syntax error
8966 _ACEOF
8967 if ac_fn_cxx_try_cpp "$LINENO"; then :
8968
8969 else
8970   # Broken: fails on valid input.
8971 continue
8972 fi
8973 rm -f conftest.err conftest.$ac_ext
8974
8975   # OK, works on sane cases.  Now check whether nonexistent headers
8976   # can be detected and how.
8977   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8978 /* end confdefs.h.  */
8979 #include <ac_nonexistent.h>
8980 _ACEOF
8981 if ac_fn_cxx_try_cpp "$LINENO"; then :
8982   # Broken: success on invalid input.
8983 continue
8984 else
8985   # Passes both tests.
8986 ac_preproc_ok=:
8987 break
8988 fi
8989 rm -f conftest.err conftest.$ac_ext
8990
8991 done
8992 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
8993 rm -f conftest.err conftest.$ac_ext
8994 if $ac_preproc_ok; then :
8995
8996 else
8997   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
8998 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
8999 _lt_caught_CXX_error=yes; }
9000 fi
9001
9002 ac_ext=c
9003 ac_cpp='$CPP $CPPFLAGS'
9004 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9005 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9006 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9007
9008 else
9009   _lt_caught_CXX_error=yes
9010 fi
9011
9012
9013
9014
9015
9016 # Set options
9017 # Check whether --enable-shared was given.
9018 if test "${enable_shared+set}" = set; then :
9019   enableval=$enable_shared; p=${PACKAGE-default}
9020     case $enableval in
9021     yes) enable_shared=yes ;;
9022     no) enable_shared=no ;;
9023     *)
9024       enable_shared=no
9025       # Look at the argument we got.  We use all the common list separators.
9026       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9027       for pkg in $enableval; do
9028         IFS="$lt_save_ifs"
9029         if test "X$pkg" = "X$p"; then
9030           enable_shared=yes
9031         fi
9032       done
9033       IFS="$lt_save_ifs"
9034       ;;
9035     esac
9036 else
9037   enable_shared=yes
9038 fi
9039
9040
9041
9042
9043
9044
9045
9046 # Check whether --enable-static was given.
9047 if test "${enable_static+set}" = set; then :
9048   enableval=$enable_static; p=${PACKAGE-default}
9049     case $enableval in
9050     yes) enable_static=yes ;;
9051     no) enable_static=no ;;
9052     *)
9053      enable_static=no
9054       # Look at the argument we got.  We use all the common list separators.
9055       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9056       for pkg in $enableval; do
9057         IFS="$lt_save_ifs"
9058         if test "X$pkg" = "X$p"; then
9059           enable_static=yes
9060         fi
9061       done
9062       IFS="$lt_save_ifs"
9063       ;;
9064     esac
9065 else
9066   enable_static=no
9067 fi
9068
9069
9070
9071
9072
9073
9074
9075
9076
9077
9078         enable_dlopen=no
9079
9080
9081   enable_win32_dll=no
9082
9083
9084
9085
9086
9087 # Check whether --with-pic was given.
9088 if test "${with_pic+set}" = set; then :
9089   withval=$with_pic; pic_mode="$withval"
9090 else
9091   pic_mode=default
9092 fi
9093
9094
9095 test -z "$pic_mode" && pic_mode=default
9096
9097
9098
9099
9100
9101
9102
9103   # Check whether --enable-fast-install was given.
9104 if test "${enable_fast_install+set}" = set; then :
9105   enableval=$enable_fast_install; p=${PACKAGE-default}
9106     case $enableval in
9107     yes) enable_fast_install=yes ;;
9108     no) enable_fast_install=no ;;
9109     *)
9110       enable_fast_install=no
9111       # Look at the argument we got.  We use all the common list separators.
9112       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9113       for pkg in $enableval; do
9114         IFS="$lt_save_ifs"
9115         if test "X$pkg" = "X$p"; then
9116           enable_fast_install=yes
9117         fi
9118       done
9119       IFS="$lt_save_ifs"
9120       ;;
9121     esac
9122 else
9123   enable_fast_install=yes
9124 fi
9125
9126
9127
9128
9129
9130
9131
9132
9133
9134
9135
9136 # This can be used to rebuild libtool when needed
9137 LIBTOOL_DEPS="$ltmain"
9138
9139 # Always use our own libtool.
9140 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
9141
9142
9143
9144
9145
9146
9147
9148
9149
9150
9151
9152
9153
9154
9155
9156
9157
9158
9159
9160
9161
9162
9163
9164
9165
9166 test -z "$LN_S" && LN_S="ln -s"
9167
9168
9169
9170
9171
9172
9173
9174
9175
9176
9177
9178
9179
9180
9181 if test -n "${ZSH_VERSION+set}" ; then
9182    setopt NO_GLOB_SUBST
9183 fi
9184
9185 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
9186 $as_echo_n "checking for objdir... " >&6; }
9187 if test "${lt_cv_objdir+set}" = set; then :
9188   $as_echo_n "(cached) " >&6
9189 else
9190   rm -f .libs 2>/dev/null
9191 mkdir .libs 2>/dev/null
9192 if test -d .libs; then
9193   lt_cv_objdir=.libs
9194 else
9195   # MS-DOS does not allow filenames that begin with a dot.
9196   lt_cv_objdir=_libs
9197 fi
9198 rmdir .libs 2>/dev/null
9199 fi
9200 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
9201 $as_echo "$lt_cv_objdir" >&6; }
9202 objdir=$lt_cv_objdir
9203
9204
9205
9206
9207
9208 cat >>confdefs.h <<_ACEOF
9209 #define LT_OBJDIR "$lt_cv_objdir/"
9210 _ACEOF
9211
9212
9213
9214
9215
9216
9217
9218
9219
9220
9221
9222
9223
9224
9225
9226
9227
9228 case $host_os in
9229 aix3*)
9230   # AIX sometimes has problems with the GCC collect2 program.  For some
9231   # reason, if we set the COLLECT_NAMES environment variable, the problems
9232   # vanish in a puff of smoke.
9233   if test "X${COLLECT_NAMES+set}" != Xset; then
9234     COLLECT_NAMES=
9235     export COLLECT_NAMES
9236   fi
9237   ;;
9238 esac
9239
9240 # Sed substitution that helps us do robust quoting.  It backslashifies
9241 # metacharacters that are still active within double-quoted strings.
9242 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
9243
9244 # Same as above, but do not quote variable references.
9245 double_quote_subst='s/\(["`\\]\)/\\\1/g'
9246
9247 # Sed substitution to delay expansion of an escaped shell variable in a
9248 # double_quote_subst'ed string.
9249 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
9250
9251 # Sed substitution to delay expansion of an escaped single quote.
9252 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
9253
9254 # Sed substitution to avoid accidental globbing in evaled expressions
9255 no_glob_subst='s/\*/\\\*/g'
9256
9257 # Global variables:
9258 ofile=libtool
9259 can_build_shared=yes
9260
9261 # All known linkers require a `.a' archive for static linking (except MSVC,
9262 # which needs '.lib').
9263 libext=a
9264
9265 with_gnu_ld="$lt_cv_prog_gnu_ld"
9266
9267 old_CC="$CC"
9268 old_CFLAGS="$CFLAGS"
9269
9270 # Set sane defaults for various variables
9271 test -z "$CC" && CC=cc
9272 test -z "$LTCC" && LTCC=$CC
9273 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
9274 test -z "$LD" && LD=ld
9275 test -z "$ac_objext" && ac_objext=o
9276
9277 for cc_temp in $compiler""; do
9278   case $cc_temp in
9279     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
9280     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
9281     \-*) ;;
9282     *) break;;
9283   esac
9284 done
9285 cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
9286
9287
9288 # Only perform the check for file, if the check method requires it
9289 test -z "$MAGIC_CMD" && MAGIC_CMD=file
9290 case $deplibs_check_method in
9291 file_magic*)
9292   if test "$file_magic_cmd" = '$MAGIC_CMD'; then
9293     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
9294 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
9295 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
9296   $as_echo_n "(cached) " >&6
9297 else
9298   case $MAGIC_CMD in
9299 [\\/*] |  ?:[\\/]*)
9300   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
9301   ;;
9302 *)
9303   lt_save_MAGIC_CMD="$MAGIC_CMD"
9304   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
9305   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
9306   for ac_dir in $ac_dummy; do
9307     IFS="$lt_save_ifs"
9308     test -z "$ac_dir" && ac_dir=.
9309     if test -f $ac_dir/${ac_tool_prefix}file; then
9310       lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
9311       if test -n "$file_magic_test_file"; then
9312         case $deplibs_check_method in
9313         "file_magic "*)
9314           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
9315           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9316           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
9317             $EGREP "$file_magic_regex" > /dev/null; then
9318             :
9319           else
9320             cat <<_LT_EOF 1>&2
9321
9322 *** Warning: the command libtool uses to detect shared libraries,
9323 *** $file_magic_cmd, produces output that libtool cannot recognize.
9324 *** The result is that libtool may fail to recognize shared libraries
9325 *** as such.  This will affect the creation of libtool libraries that
9326 *** depend on shared libraries, but programs linked with such libtool
9327 *** libraries will work regardless of this problem.  Nevertheless, you
9328 *** may want to report the problem to your system manager and/or to
9329 *** bug-libtool@gnu.org
9330
9331 _LT_EOF
9332           fi ;;
9333         esac
9334       fi
9335       break
9336     fi
9337   done
9338   IFS="$lt_save_ifs"
9339   MAGIC_CMD="$lt_save_MAGIC_CMD"
9340   ;;
9341 esac
9342 fi
9343
9344 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9345 if test -n "$MAGIC_CMD"; then
9346   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
9347 $as_echo "$MAGIC_CMD" >&6; }
9348 else
9349   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9350 $as_echo "no" >&6; }
9351 fi
9352
9353
9354
9355
9356
9357 if test -z "$lt_cv_path_MAGIC_CMD"; then
9358   if test -n "$ac_tool_prefix"; then
9359     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
9360 $as_echo_n "checking for file... " >&6; }
9361 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
9362   $as_echo_n "(cached) " >&6
9363 else
9364   case $MAGIC_CMD in
9365 [\\/*] |  ?:[\\/]*)
9366   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
9367   ;;
9368 *)
9369   lt_save_MAGIC_CMD="$MAGIC_CMD"
9370   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
9371   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
9372   for ac_dir in $ac_dummy; do
9373     IFS="$lt_save_ifs"
9374     test -z "$ac_dir" && ac_dir=.
9375     if test -f $ac_dir/file; then
9376       lt_cv_path_MAGIC_CMD="$ac_dir/file"
9377       if test -n "$file_magic_test_file"; then
9378         case $deplibs_check_method in
9379         "file_magic "*)
9380           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
9381           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9382           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
9383             $EGREP "$file_magic_regex" > /dev/null; then
9384             :
9385           else
9386             cat <<_LT_EOF 1>&2
9387
9388 *** Warning: the command libtool uses to detect shared libraries,
9389 *** $file_magic_cmd, produces output that libtool cannot recognize.
9390 *** The result is that libtool may fail to recognize shared libraries
9391 *** as such.  This will affect the creation of libtool libraries that
9392 *** depend on shared libraries, but programs linked with such libtool
9393 *** libraries will work regardless of this problem.  Nevertheless, you
9394 *** may want to report the problem to your system manager and/or to
9395 *** bug-libtool@gnu.org
9396
9397 _LT_EOF
9398           fi ;;
9399         esac
9400       fi
9401       break
9402     fi
9403   done
9404   IFS="$lt_save_ifs"
9405   MAGIC_CMD="$lt_save_MAGIC_CMD"
9406   ;;
9407 esac
9408 fi
9409
9410 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9411 if test -n "$MAGIC_CMD"; then
9412   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
9413 $as_echo "$MAGIC_CMD" >&6; }
9414 else
9415   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9416 $as_echo "no" >&6; }
9417 fi
9418
9419
9420   else
9421     MAGIC_CMD=:
9422   fi
9423 fi
9424
9425   fi
9426   ;;
9427 esac
9428
9429 # Use C for the default configuration in the libtool script
9430
9431 lt_save_CC="$CC"
9432 ac_ext=c
9433 ac_cpp='$CPP $CPPFLAGS'
9434 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9435 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9436 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9437
9438
9439 # Source file extension for C test sources.
9440 ac_ext=c
9441
9442 # Object file extension for compiled C test sources.
9443 objext=o
9444 objext=$objext
9445
9446 # Code to be used in simple compile tests
9447 lt_simple_compile_test_code="int some_variable = 0;"
9448
9449 # Code to be used in simple link tests
9450 lt_simple_link_test_code='int main(){return(0);}'
9451
9452
9453
9454
9455
9456
9457
9458 # If no C compiler was specified, use CC.
9459 LTCC=${LTCC-"$CC"}
9460
9461 # If no C compiler flags were specified, use CFLAGS.
9462 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
9463
9464 # Allow CC to be a program name with arguments.
9465 compiler=$CC
9466
9467 # Save the default compiler, since it gets overwritten when the other
9468 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
9469 compiler_DEFAULT=$CC
9470
9471 # save warnings/boilerplate of simple test code
9472 ac_outfile=conftest.$ac_objext
9473 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
9474 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9475 _lt_compiler_boilerplate=`cat conftest.err`
9476 $RM conftest*
9477
9478 ac_outfile=conftest.$ac_objext
9479 echo "$lt_simple_link_test_code" >conftest.$ac_ext
9480 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9481 _lt_linker_boilerplate=`cat conftest.err`
9482 $RM -r conftest*
9483
9484
9485 ## CAVEAT EMPTOR:
9486 ## There is no encapsulation within the following macros, do not change
9487 ## the running order or otherwise move them around unless you know exactly
9488 ## what you are doing...
9489 if test -n "$compiler"; then
9490
9491 lt_prog_compiler_no_builtin_flag=
9492
9493 if test "$GCC" = yes; then
9494   lt_prog_compiler_no_builtin_flag=' -fno-builtin'
9495
9496   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
9497 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
9498 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then :
9499   $as_echo_n "(cached) " >&6
9500 else
9501   lt_cv_prog_compiler_rtti_exceptions=no
9502    ac_outfile=conftest.$ac_objext
9503    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9504    lt_compiler_flag="-fno-rtti -fno-exceptions"
9505    # Insert the option either (1) after the last *FLAGS variable, or
9506    # (2) before a word containing "conftest.", or (3) at the end.
9507    # Note that $ac_compile itself does not contain backslashes and begins
9508    # with a dollar sign (not a hyphen), so the echo should work correctly.
9509    # The option is referenced via a variable to avoid confusing sed.
9510    lt_compile=`echo "$ac_compile" | $SED \
9511    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9512    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9513    -e 's:$: $lt_compiler_flag:'`
9514    (eval echo "\"\$as_me:9514: $lt_compile\"" >&5)
9515    (eval "$lt_compile" 2>conftest.err)
9516    ac_status=$?
9517    cat conftest.err >&5
9518    echo "$as_me:9518: \$? = $ac_status" >&5
9519    if (exit $ac_status) && test -s "$ac_outfile"; then
9520      # The compiler can only warn and ignore the option if not recognized
9521      # So say no if there are warnings other than the usual output.
9522      $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
9523      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9524      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9525        lt_cv_prog_compiler_rtti_exceptions=yes
9526      fi
9527    fi
9528    $RM conftest*
9529
9530 fi
9531 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
9532 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
9533
9534 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
9535     lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
9536 else
9537     :
9538 fi
9539
9540 fi
9541
9542
9543
9544
9545
9546
9547   lt_prog_compiler_wl=
9548 lt_prog_compiler_pic=
9549 lt_prog_compiler_static=
9550
9551 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
9552 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
9553
9554   if test "$GCC" = yes; then
9555     lt_prog_compiler_wl='-Wl,'
9556     lt_prog_compiler_static='-static'
9557
9558     case $host_os in
9559       aix*)
9560       # All AIX code is PIC.
9561       if test "$host_cpu" = ia64; then
9562         # AIX 5 now supports IA64 processor
9563         lt_prog_compiler_static='-Bstatic'
9564       fi
9565       ;;
9566
9567     amigaos*)
9568       case $host_cpu in
9569       powerpc)
9570             # see comment about AmigaOS4 .so support
9571             lt_prog_compiler_pic='-fPIC'
9572         ;;
9573       m68k)
9574             # FIXME: we need at least 68020 code to build shared libraries, but
9575             # adding the `-m68020' flag to GCC prevents building anything better,
9576             # like `-m68040'.
9577             lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
9578         ;;
9579       esac
9580       ;;
9581
9582     beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
9583       # PIC is the default for these OSes.
9584       ;;
9585
9586     mingw* | cygwin* | pw32* | os2* | cegcc*)
9587       # This hack is so that the source file can tell whether it is being
9588       # built for inclusion in a dll (and should export symbols for example).
9589       # Although the cygwin gcc ignores -fPIC, still need this for old-style
9590       # (--disable-auto-import) libraries
9591       lt_prog_compiler_pic='-DDLL_EXPORT'
9592       ;;
9593
9594     darwin* | rhapsody*)
9595       # PIC is the default on this platform
9596       # Common symbols not allowed in MH_DYLIB files
9597       lt_prog_compiler_pic='-fno-common'
9598       ;;
9599
9600     hpux*)
9601       # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
9602       # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
9603       # sets the default TLS model and affects inlining.
9604       case $host_cpu in
9605       hppa*64*)
9606         # +Z the default
9607         ;;
9608       *)
9609         lt_prog_compiler_pic='-fPIC'
9610         ;;
9611       esac
9612       ;;
9613
9614     interix[3-9]*)
9615       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
9616       # Instead, we relocate shared libraries at runtime.
9617       ;;
9618
9619     msdosdjgpp*)
9620       # Just because we use GCC doesn't mean we suddenly get shared libraries
9621       # on systems that don't support them.
9622       lt_prog_compiler_can_build_shared=no
9623       enable_shared=no
9624       ;;
9625
9626     *nto* | *qnx*)
9627       # QNX uses GNU C++, but need to define -shared option too, otherwise
9628       # it will coredump.
9629       lt_prog_compiler_pic='-fPIC -shared'
9630       ;;
9631
9632     sysv4*MP*)
9633       if test -d /usr/nec; then
9634         lt_prog_compiler_pic=-Kconform_pic
9635       fi
9636       ;;
9637
9638     *)
9639       lt_prog_compiler_pic='-fPIC'
9640       ;;
9641     esac
9642   else
9643     # PORTME Check for flag to pass linker flags through the system compiler.
9644     case $host_os in
9645     aix*)
9646       lt_prog_compiler_wl='-Wl,'
9647       if test "$host_cpu" = ia64; then
9648         # AIX 5 now supports IA64 processor
9649         lt_prog_compiler_static='-Bstatic'
9650       else
9651         lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
9652       fi
9653       ;;
9654
9655     mingw* | cygwin* | pw32* | os2* | cegcc*)
9656       # This hack is so that the source file can tell whether it is being
9657       # built for inclusion in a dll (and should export symbols for example).
9658       lt_prog_compiler_pic='-DDLL_EXPORT'
9659       ;;
9660
9661     hpux9* | hpux10* | hpux11*)
9662       lt_prog_compiler_wl='-Wl,'
9663       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
9664       # not for PA HP-UX.
9665       case $host_cpu in
9666       hppa*64*|ia64*)
9667         # +Z the default
9668         ;;
9669       *)
9670         lt_prog_compiler_pic='+Z'
9671         ;;
9672       esac
9673       # Is there a better lt_prog_compiler_static that works with the bundled CC?
9674       lt_prog_compiler_static='${wl}-a ${wl}archive'
9675       ;;
9676
9677     irix5* | irix6* | nonstopux*)
9678       lt_prog_compiler_wl='-Wl,'
9679       # PIC (with -KPIC) is the default.
9680       lt_prog_compiler_static='-non_shared'
9681       ;;
9682
9683     linux* | k*bsd*-gnu)
9684       case $cc_basename in
9685       # old Intel for x86_64 which still supported -KPIC.
9686       ecc*)
9687         lt_prog_compiler_wl='-Wl,'
9688         lt_prog_compiler_pic='-KPIC'
9689         lt_prog_compiler_static='-static'
9690         ;;
9691       # icc used to be incompatible with GCC.
9692       # ICC 10 doesn't accept -KPIC any more.
9693       icc* | ifort*)
9694         lt_prog_compiler_wl='-Wl,'
9695         lt_prog_compiler_pic='-fPIC'
9696         lt_prog_compiler_static='-static'
9697         ;;
9698       # Lahey Fortran 8.1.
9699       lf95*)
9700         lt_prog_compiler_wl='-Wl,'
9701         lt_prog_compiler_pic='--shared'
9702         lt_prog_compiler_static='--static'
9703         ;;
9704       pgcc* | pgf77* | pgf90* | pgf95*)
9705         # Portland Group compilers (*not* the Pentium gcc compiler,
9706         # which looks to be a dead project)
9707         lt_prog_compiler_wl='-Wl,'
9708         lt_prog_compiler_pic='-fpic'
9709         lt_prog_compiler_static='-Bstatic'
9710         ;;
9711       ccc*)
9712         lt_prog_compiler_wl='-Wl,'
9713         # All Alpha code is PIC.
9714         lt_prog_compiler_static='-non_shared'
9715         ;;
9716       xl*)
9717         # IBM XL C 8.0/Fortran 10.1 on PPC
9718         lt_prog_compiler_wl='-Wl,'
9719         lt_prog_compiler_pic='-qpic'
9720         lt_prog_compiler_static='-qstaticlink'
9721         ;;
9722       *)
9723         case `$CC -V 2>&1 | sed 5q` in
9724         *Sun\ C*)
9725           # Sun C 5.9
9726           lt_prog_compiler_pic='-KPIC'
9727           lt_prog_compiler_static='-Bstatic'
9728           lt_prog_compiler_wl='-Wl,'
9729           ;;
9730         *Sun\ F*)
9731           # Sun Fortran 8.3 passes all unrecognized flags to the linker
9732           lt_prog_compiler_pic='-KPIC'
9733           lt_prog_compiler_static='-Bstatic'
9734           lt_prog_compiler_wl=''
9735           ;;
9736         esac
9737         ;;
9738       esac
9739       ;;
9740
9741     newsos6)
9742       lt_prog_compiler_pic='-KPIC'
9743       lt_prog_compiler_static='-Bstatic'
9744       ;;
9745
9746     *nto* | *qnx*)
9747       # QNX uses GNU C++, but need to define -shared option too, otherwise
9748       # it will coredump.
9749       lt_prog_compiler_pic='-fPIC -shared'
9750       ;;
9751
9752     osf3* | osf4* | osf5*)
9753       lt_prog_compiler_wl='-Wl,'
9754       # All OSF/1 code is PIC.
9755       lt_prog_compiler_static='-non_shared'
9756       ;;
9757
9758     rdos*)
9759       lt_prog_compiler_static='-non_shared'
9760       ;;
9761
9762     solaris*)
9763       lt_prog_compiler_pic='-KPIC'
9764       lt_prog_compiler_static='-Bstatic'
9765       case $cc_basename in
9766       f77* | f90* | f95*)
9767         lt_prog_compiler_wl='-Qoption ld ';;
9768       *)
9769         lt_prog_compiler_wl='-Wl,';;
9770       esac
9771       ;;
9772
9773     sunos4*)
9774       lt_prog_compiler_wl='-Qoption ld '
9775       lt_prog_compiler_pic='-PIC'
9776       lt_prog_compiler_static='-Bstatic'
9777       ;;
9778
9779     sysv4 | sysv4.2uw2* | sysv4.3*)
9780       lt_prog_compiler_wl='-Wl,'
9781       lt_prog_compiler_pic='-KPIC'
9782       lt_prog_compiler_static='-Bstatic'
9783       ;;
9784
9785     sysv4*MP*)
9786       if test -d /usr/nec ;then
9787         lt_prog_compiler_pic='-Kconform_pic'
9788         lt_prog_compiler_static='-Bstatic'
9789       fi
9790       ;;
9791
9792     sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
9793       lt_prog_compiler_wl='-Wl,'
9794       lt_prog_compiler_pic='-KPIC'
9795       lt_prog_compiler_static='-Bstatic'
9796       ;;
9797
9798     unicos*)
9799       lt_prog_compiler_wl='-Wl,'
9800       lt_prog_compiler_can_build_shared=no
9801       ;;
9802
9803     uts4*)
9804       lt_prog_compiler_pic='-pic'
9805       lt_prog_compiler_static='-Bstatic'
9806       ;;
9807
9808     *)
9809       lt_prog_compiler_can_build_shared=no
9810       ;;
9811     esac
9812   fi
9813
9814 case $host_os in
9815   # For platforms which do not support PIC, -DPIC is meaningless:
9816   *djgpp*)
9817     lt_prog_compiler_pic=
9818     ;;
9819   *)
9820     lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
9821     ;;
9822 esac
9823 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
9824 $as_echo "$lt_prog_compiler_pic" >&6; }
9825
9826
9827
9828
9829
9830
9831 #
9832 # Check to make sure the PIC flag actually works.
9833 #
9834 if test -n "$lt_prog_compiler_pic"; then
9835   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
9836 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
9837 if test "${lt_cv_prog_compiler_pic_works+set}" = set; then :
9838   $as_echo_n "(cached) " >&6
9839 else
9840   lt_cv_prog_compiler_pic_works=no
9841    ac_outfile=conftest.$ac_objext
9842    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9843    lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
9844    # Insert the option either (1) after the last *FLAGS variable, or
9845    # (2) before a word containing "conftest.", or (3) at the end.
9846    # Note that $ac_compile itself does not contain backslashes and begins
9847    # with a dollar sign (not a hyphen), so the echo should work correctly.
9848    # The option is referenced via a variable to avoid confusing sed.
9849    lt_compile=`echo "$ac_compile" | $SED \
9850    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9851    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9852    -e 's:$: $lt_compiler_flag:'`
9853    (eval echo "\"\$as_me:9853: $lt_compile\"" >&5)
9854    (eval "$lt_compile" 2>conftest.err)
9855    ac_status=$?
9856    cat conftest.err >&5
9857    echo "$as_me:9857: \$? = $ac_status" >&5
9858    if (exit $ac_status) && test -s "$ac_outfile"; then
9859      # The compiler can only warn and ignore the option if not recognized
9860      # So say no if there are warnings other than the usual output.
9861      $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
9862      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9863      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9864        lt_cv_prog_compiler_pic_works=yes
9865      fi
9866    fi
9867    $RM conftest*
9868
9869 fi
9870 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
9871 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
9872
9873 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
9874     case $lt_prog_compiler_pic in
9875      "" | " "*) ;;
9876      *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
9877      esac
9878 else
9879     lt_prog_compiler_pic=
9880      lt_prog_compiler_can_build_shared=no
9881 fi
9882
9883 fi
9884
9885
9886
9887
9888
9889
9890 #
9891 # Check to make sure the static flag actually works.
9892 #
9893 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
9894 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
9895 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
9896 if test "${lt_cv_prog_compiler_static_works+set}" = set; then :
9897   $as_echo_n "(cached) " >&6
9898 else
9899   lt_cv_prog_compiler_static_works=no
9900    save_LDFLAGS="$LDFLAGS"
9901    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
9902    echo "$lt_simple_link_test_code" > conftest.$ac_ext
9903    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9904      # The linker can only warn and ignore the option if not recognized
9905      # So say no if there are warnings
9906      if test -s conftest.err; then
9907        # Append any errors to the config.log.
9908        cat conftest.err 1>&5
9909        $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
9910        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9911        if diff conftest.exp conftest.er2 >/dev/null; then
9912          lt_cv_prog_compiler_static_works=yes
9913        fi
9914      else
9915        lt_cv_prog_compiler_static_works=yes
9916      fi
9917    fi
9918    $RM -r conftest*
9919    LDFLAGS="$save_LDFLAGS"
9920
9921 fi
9922 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
9923 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
9924
9925 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
9926     :
9927 else
9928     lt_prog_compiler_static=
9929 fi
9930
9931
9932
9933
9934
9935
9936
9937   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9938 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9939 if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
9940   $as_echo_n "(cached) " >&6
9941 else
9942   lt_cv_prog_compiler_c_o=no
9943    $RM -r conftest 2>/dev/null
9944    mkdir conftest
9945    cd conftest
9946    mkdir out
9947    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9948
9949    lt_compiler_flag="-o out/conftest2.$ac_objext"
9950    # Insert the option either (1) after the last *FLAGS variable, or
9951    # (2) before a word containing "conftest.", or (3) at the end.
9952    # Note that $ac_compile itself does not contain backslashes and begins
9953    # with a dollar sign (not a hyphen), so the echo should work correctly.
9954    lt_compile=`echo "$ac_compile" | $SED \
9955    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9956    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9957    -e 's:$: $lt_compiler_flag:'`
9958    (eval echo "\"\$as_me:9958: $lt_compile\"" >&5)
9959    (eval "$lt_compile" 2>out/conftest.err)
9960    ac_status=$?
9961    cat out/conftest.err >&5
9962    echo "$as_me:9962: \$? = $ac_status" >&5
9963    if (exit $ac_status) && test -s out/conftest2.$ac_objext
9964    then
9965      # The compiler can only warn and ignore the option if not recognized
9966      # So say no if there are warnings
9967      $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
9968      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9969      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9970        lt_cv_prog_compiler_c_o=yes
9971      fi
9972    fi
9973    chmod u+w . 2>&5
9974    $RM conftest*
9975    # SGI C++ compiler will create directory out/ii_files/ for
9976    # template instantiation
9977    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9978    $RM out/* && rmdir out
9979    cd ..
9980    $RM -r conftest
9981    $RM conftest*
9982
9983 fi
9984 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9985 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9986
9987
9988
9989
9990
9991
9992   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9993 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9994 if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
9995   $as_echo_n "(cached) " >&6
9996 else
9997   lt_cv_prog_compiler_c_o=no
9998    $RM -r conftest 2>/dev/null
9999    mkdir conftest
10000    cd conftest
10001    mkdir out
10002    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10003
10004    lt_compiler_flag="-o out/conftest2.$ac_objext"
10005    # Insert the option either (1) after the last *FLAGS variable, or
10006    # (2) before a word containing "conftest.", or (3) at the end.
10007    # Note that $ac_compile itself does not contain backslashes and begins
10008    # with a dollar sign (not a hyphen), so the echo should work correctly.
10009    lt_compile=`echo "$ac_compile" | $SED \
10010    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10011    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10012    -e 's:$: $lt_compiler_flag:'`
10013    (eval echo "\"\$as_me:10013: $lt_compile\"" >&5)
10014    (eval "$lt_compile" 2>out/conftest.err)
10015    ac_status=$?
10016    cat out/conftest.err >&5
10017    echo "$as_me:10017: \$? = $ac_status" >&5
10018    if (exit $ac_status) && test -s out/conftest2.$ac_objext
10019    then
10020      # The compiler can only warn and ignore the option if not recognized
10021      # So say no if there are warnings
10022      $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
10023      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
10024      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
10025        lt_cv_prog_compiler_c_o=yes
10026      fi
10027    fi
10028    chmod u+w . 2>&5
10029    $RM conftest*
10030    # SGI C++ compiler will create directory out/ii_files/ for
10031    # template instantiation
10032    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
10033    $RM out/* && rmdir out
10034    cd ..
10035    $RM -r conftest
10036    $RM conftest*
10037
10038 fi
10039 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
10040 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
10041
10042
10043
10044
10045 hard_links="nottested"
10046 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
10047   # do not overwrite the value of need_locks provided by the user
10048   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
10049 $as_echo_n "checking if we can lock with hard links... " >&6; }
10050   hard_links=yes
10051   $RM conftest*
10052   ln conftest.a conftest.b 2>/dev/null && hard_links=no
10053   touch conftest.a
10054   ln conftest.a conftest.b 2>&5 || hard_links=no
10055   ln conftest.a conftest.b 2>/dev/null && hard_links=no
10056   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
10057 $as_echo "$hard_links" >&6; }
10058   if test "$hard_links" = no; then
10059     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
10060 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
10061     need_locks=warn
10062   fi
10063 else
10064   need_locks=no
10065 fi
10066
10067
10068
10069
10070
10071
10072   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
10073 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
10074
10075   runpath_var=
10076   allow_undefined_flag=
10077   always_export_symbols=no
10078   archive_cmds=
10079   archive_expsym_cmds=
10080   compiler_needs_object=no
10081   enable_shared_with_static_runtimes=no
10082   export_dynamic_flag_spec=
10083   export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
10084   hardcode_automatic=no
10085   hardcode_direct=no
10086   hardcode_direct_absolute=no
10087   hardcode_libdir_flag_spec=
10088   hardcode_libdir_flag_spec_ld=
10089   hardcode_libdir_separator=
10090   hardcode_minus_L=no
10091   hardcode_shlibpath_var=unsupported
10092   inherit_rpath=no
10093   link_all_deplibs=unknown
10094   module_cmds=
10095   module_expsym_cmds=
10096   old_archive_from_new_cmds=
10097   old_archive_from_expsyms_cmds=
10098   thread_safe_flag_spec=
10099   whole_archive_flag_spec=
10100   # include_expsyms should be a list of space-separated symbols to be *always*
10101   # included in the symbol list
10102   include_expsyms=
10103   # exclude_expsyms can be an extended regexp of symbols to exclude
10104   # it will be wrapped by ` (' and `)$', so one must not match beginning or
10105   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
10106   # as well as any symbol that contains `d'.
10107   exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
10108   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
10109   # platforms (ab)use it in PIC code, but their linkers get confused if
10110   # the symbol is explicitly referenced.  Since portable code cannot
10111   # rely on this symbol name, it's probably fine to never include it in
10112   # preloaded symbol tables.
10113   # Exclude shared library initialization/finalization symbols.
10114   extract_expsyms_cmds=
10115
10116   case $host_os in
10117   cygwin* | mingw* | pw32* | cegcc*)
10118     # FIXME: the MSVC++ port hasn't been tested in a loooong time
10119     # When not using gcc, we currently assume that we are using
10120     # Microsoft Visual C++.
10121     if test "$GCC" != yes; then
10122       with_gnu_ld=no
10123     fi
10124     ;;
10125   interix*)
10126     # we just hope/assume this is gcc and not c89 (= MSVC++)
10127     with_gnu_ld=yes
10128     ;;
10129   openbsd*)
10130     with_gnu_ld=no
10131     ;;
10132   esac
10133
10134   ld_shlibs=yes
10135   if test "$with_gnu_ld" = yes; then
10136     # If archive_cmds runs LD, not CC, wlarc should be empty
10137     wlarc='${wl}'
10138
10139     # Set some defaults for GNU ld with shared library support. These
10140     # are reset later if shared libraries are not supported. Putting them
10141     # here allows them to be overridden if necessary.
10142     runpath_var=LD_RUN_PATH
10143     hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10144     export_dynamic_flag_spec='${wl}--export-dynamic'
10145     # ancient GNU ld didn't support --whole-archive et. al.
10146     if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
10147       whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
10148     else
10149       whole_archive_flag_spec=
10150     fi
10151     supports_anon_versioning=no
10152     case `$LD -v 2>&1` in
10153       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
10154       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
10155       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
10156       *\ 2.11.*) ;; # other 2.11 versions
10157       *) supports_anon_versioning=yes ;;
10158     esac
10159
10160     # See if GNU ld supports shared libraries.
10161     case $host_os in
10162     aix[3-9]*)
10163       # On AIX/PPC, the GNU linker is very broken
10164       if test "$host_cpu" != ia64; then
10165         ld_shlibs=no
10166         cat <<_LT_EOF 1>&2
10167
10168 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
10169 *** to be unable to reliably create shared libraries on AIX.
10170 *** Therefore, libtool is disabling shared libraries support.  If you
10171 *** really care for shared libraries, you may want to modify your PATH
10172 *** so that a non-GNU linker is found, and then restart.
10173
10174 _LT_EOF
10175       fi
10176       ;;
10177
10178     amigaos*)
10179       case $host_cpu in
10180       powerpc)
10181             # see comment about AmigaOS4 .so support
10182             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10183             archive_expsym_cmds=''
10184         ;;
10185       m68k)
10186             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)'
10187             hardcode_libdir_flag_spec='-L$libdir'
10188             hardcode_minus_L=yes
10189         ;;
10190       esac
10191       ;;
10192
10193     beos*)
10194       if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10195         allow_undefined_flag=unsupported
10196         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
10197         # support --undefined.  This deserves some investigation.  FIXME
10198         archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10199       else
10200         ld_shlibs=no
10201       fi
10202       ;;
10203
10204     cygwin* | mingw* | pw32* | cegcc*)
10205       # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
10206       # as there is no search path for DLLs.
10207       hardcode_libdir_flag_spec='-L$libdir'
10208       allow_undefined_flag=unsupported
10209       always_export_symbols=no
10210       enable_shared_with_static_runtimes=yes
10211       export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
10212
10213       if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
10214         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
10215         # If the export-symbols file already is a .def file (1st line
10216         # is EXPORTS), use it as is; otherwise, prepend...
10217         archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
10218           cp $export_symbols $output_objdir/$soname.def;
10219         else
10220           echo EXPORTS > $output_objdir/$soname.def;
10221           cat $export_symbols >> $output_objdir/$soname.def;
10222         fi~
10223         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
10224       else
10225         ld_shlibs=no
10226       fi
10227       ;;
10228
10229     interix[3-9]*)
10230       hardcode_direct=no
10231       hardcode_shlibpath_var=no
10232       hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10233       export_dynamic_flag_spec='${wl}-E'
10234       # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
10235       # Instead, shared libraries are loaded at an image base (0x10000000 by
10236       # default) and relocated if they conflict, which is a slow very memory
10237       # consuming and fragmenting process.  To avoid this, we pick a random,
10238       # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
10239       # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
10240       archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
10241       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'
10242       ;;
10243
10244     gnu* | linux* | tpf* | k*bsd*-gnu)
10245       tmp_diet=no
10246       if test "$host_os" = linux-dietlibc; then
10247         case $cc_basename in
10248           diet\ *) tmp_diet=yes;;       # linux-dietlibc with static linking (!diet-dyn)
10249         esac
10250       fi
10251       if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
10252          && test "$tmp_diet" = no
10253       then
10254         tmp_addflag=
10255         tmp_sharedflag='-shared'
10256         case $cc_basename,$host_cpu in
10257         pgcc*)                          # Portland Group C compiler
10258           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'
10259           tmp_addflag=' $pic_flag'
10260           ;;
10261         pgf77* | pgf90* | pgf95*)       # Portland Group f77 and f90 compilers
10262           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'
10263           tmp_addflag=' $pic_flag -Mnomain' ;;
10264         ecc*,ia64* | icc*,ia64*)        # Intel C compiler on ia64
10265           tmp_addflag=' -i_dynamic' ;;
10266         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
10267           tmp_addflag=' -i_dynamic -nofor_main' ;;
10268         ifc* | ifort*)                  # Intel Fortran compiler
10269           tmp_addflag=' -nofor_main' ;;
10270         lf95*)                          # Lahey Fortran 8.1
10271           whole_archive_flag_spec=
10272           tmp_sharedflag='--shared' ;;
10273         xl[cC]*)                        # IBM XL C 8.0 on PPC (deal with xlf below)
10274           tmp_sharedflag='-qmkshrobj'
10275           tmp_addflag= ;;
10276         esac
10277         case `$CC -V 2>&1 | sed 5q` in
10278         *Sun\ C*)                       # Sun C 5.9
10279           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'
10280           compiler_needs_object=yes
10281           tmp_sharedflag='-G' ;;
10282         *Sun\ F*)                       # Sun Fortran 8.3
10283           tmp_sharedflag='-G' ;;
10284         esac
10285         archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10286
10287         if test "x$supports_anon_versioning" = xyes; then
10288           archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
10289             cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
10290             echo "local: *; };" >> $output_objdir/$libname.ver~
10291             $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
10292         fi
10293
10294         case $cc_basename in
10295         xlf*)
10296           # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
10297           whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
10298           hardcode_libdir_flag_spec=
10299           hardcode_libdir_flag_spec_ld='-rpath $libdir'
10300           archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
10301           if test "x$supports_anon_versioning" = xyes; then
10302             archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
10303               cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
10304               echo "local: *; };" >> $output_objdir/$libname.ver~
10305               $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
10306           fi
10307           ;;
10308         esac
10309       else
10310         ld_shlibs=no
10311       fi
10312       ;;
10313
10314     netbsd*)
10315       if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10316         archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
10317         wlarc=
10318       else
10319         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10320         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10321       fi
10322       ;;
10323
10324     solaris*)
10325       if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
10326         ld_shlibs=no
10327         cat <<_LT_EOF 1>&2
10328
10329 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
10330 *** create shared libraries on Solaris systems.  Therefore, libtool
10331 *** is disabling shared libraries support.  We urge you to upgrade GNU
10332 *** binutils to release 2.9.1 or newer.  Another option is to modify
10333 *** your PATH or compiler configuration so that the native linker is
10334 *** used, and then restart.
10335
10336 _LT_EOF
10337       elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10338         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10339         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10340       else
10341         ld_shlibs=no
10342       fi
10343       ;;
10344
10345     sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
10346       case `$LD -v 2>&1` in
10347         *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
10348         ld_shlibs=no
10349         cat <<_LT_EOF 1>&2
10350
10351 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
10352 *** reliably create shared libraries on SCO systems.  Therefore, libtool
10353 *** is disabling shared libraries support.  We urge you to upgrade GNU
10354 *** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
10355 *** your PATH or compiler configuration so that the native linker is
10356 *** used, and then restart.
10357
10358 _LT_EOF
10359         ;;
10360         *)
10361           # For security reasons, it is highly recommended that you always
10362           # use absolute paths for naming shared libraries, and exclude the
10363           # DT_RUNPATH tag from executables and libraries.  But doing so
10364           # requires that you compile everything twice, which is a pain.
10365           if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10366             hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10367             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10368             archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10369           else
10370             ld_shlibs=no
10371           fi
10372         ;;
10373       esac
10374       ;;
10375
10376     sunos4*)
10377       archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10378       wlarc=
10379       hardcode_direct=yes
10380       hardcode_shlibpath_var=no
10381       ;;
10382
10383     *)
10384       if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10385         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10386         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10387       else
10388         ld_shlibs=no
10389       fi
10390       ;;
10391     esac
10392
10393     if test "$ld_shlibs" = no; then
10394       runpath_var=
10395       hardcode_libdir_flag_spec=
10396       export_dynamic_flag_spec=
10397       whole_archive_flag_spec=
10398     fi
10399   else
10400     # PORTME fill in a description of your system's linker (not GNU ld)
10401     case $host_os in
10402     aix3*)
10403       allow_undefined_flag=unsupported
10404       always_export_symbols=yes
10405       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'
10406       # Note: this linker hardcodes the directories in LIBPATH if there
10407       # are no directories specified by -L.
10408       hardcode_minus_L=yes
10409       if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
10410         # Neither direct hardcoding nor static linking is supported with a
10411         # broken collect2.
10412         hardcode_direct=unsupported
10413       fi
10414       ;;
10415
10416     aix[4-9]*)
10417       if test "$host_cpu" = ia64; then
10418         # On IA64, the linker does run time linking by default, so we don't
10419         # have to do anything special.
10420         aix_use_runtimelinking=no
10421         exp_sym_flag='-Bexport'
10422         no_entry_flag=""
10423       else
10424         # If we're using GNU nm, then we don't want the "-C" option.
10425         # -C means demangle to AIX nm, but means don't demangle with GNU nm
10426         if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
10427           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'
10428         else
10429           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'
10430         fi
10431         aix_use_runtimelinking=no
10432
10433         # Test if we are trying to use run time linking or normal
10434         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
10435         # need to do runtime linking.
10436         case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
10437           for ld_flag in $LDFLAGS; do
10438           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
10439             aix_use_runtimelinking=yes
10440             break
10441           fi
10442           done
10443           ;;
10444         esac
10445
10446         exp_sym_flag='-bexport'
10447         no_entry_flag='-bnoentry'
10448       fi
10449
10450       # When large executables or shared objects are built, AIX ld can
10451       # have problems creating the table of contents.  If linking a library
10452       # or program results in "error TOC overflow" add -mminimal-toc to
10453       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
10454       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
10455
10456       archive_cmds=''
10457       hardcode_direct=yes
10458       hardcode_direct_absolute=yes
10459       hardcode_libdir_separator=':'
10460       link_all_deplibs=yes
10461       file_list_spec='${wl}-f,'
10462
10463       if test "$GCC" = yes; then
10464         case $host_os in aix4.[012]|aix4.[012].*)
10465         # We only want to do this on AIX 4.2 and lower, the check
10466         # below for broken collect2 doesn't work under 4.3+
10467           collect2name=`${CC} -print-prog-name=collect2`
10468           if test -f "$collect2name" &&
10469            strings "$collect2name" | $GREP resolve_lib_name >/dev/null
10470           then
10471           # We have reworked collect2
10472           :
10473           else
10474           # We have old collect2
10475           hardcode_direct=unsupported
10476           # It fails to find uninstalled libraries when the uninstalled
10477           # path is not listed in the libpath.  Setting hardcode_minus_L
10478           # to unsupported forces relinking
10479           hardcode_minus_L=yes
10480           hardcode_libdir_flag_spec='-L$libdir'
10481           hardcode_libdir_separator=
10482           fi
10483           ;;
10484         esac
10485         shared_flag='-shared'
10486         if test "$aix_use_runtimelinking" = yes; then
10487           shared_flag="$shared_flag "'${wl}-G'
10488         fi
10489       else
10490         # not using gcc
10491         if test "$host_cpu" = ia64; then
10492         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
10493         # chokes on -Wl,-G. The following line is correct:
10494           shared_flag='-G'
10495         else
10496           if test "$aix_use_runtimelinking" = yes; then
10497             shared_flag='${wl}-G'
10498           else
10499             shared_flag='${wl}-bM:SRE'
10500           fi
10501         fi
10502       fi
10503
10504       export_dynamic_flag_spec='${wl}-bexpall'
10505       # It seems that -bexpall does not export symbols beginning with
10506       # underscore (_), so it is better to generate a list of symbols to export.
10507       always_export_symbols=yes
10508       if test "$aix_use_runtimelinking" = yes; then
10509         # Warning - without using the other runtime loading flags (-brtl),
10510         # -berok will link without error, but may produce a broken library.
10511         allow_undefined_flag='-berok'
10512         # Determine the default libpath from the value encoded in an
10513         # empty executable.
10514         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10515 /* end confdefs.h.  */
10516
10517 int
10518 main ()
10519 {
10520
10521   ;
10522   return 0;
10523 }
10524 _ACEOF
10525 if ac_fn_c_try_link "$LINENO"; then :
10526
10527 lt_aix_libpath_sed='
10528     /Import File Strings/,/^$/ {
10529         /^0/ {
10530             s/^0  *\(.*\)$/\1/
10531             p
10532         }
10533     }'
10534 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10535 # Check for a 64-bit object if we didn't find anything.
10536 if test -z "$aix_libpath"; then
10537   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10538 fi
10539 fi
10540 rm -f core conftest.err conftest.$ac_objext \
10541     conftest$ac_exeext conftest.$ac_ext
10542 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
10543
10544         hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
10545         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"
10546       else
10547         if test "$host_cpu" = ia64; then
10548           hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
10549           allow_undefined_flag="-z nodefs"
10550           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"
10551         else
10552          # Determine the default libpath from the value encoded in an
10553          # empty executable.
10554          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10555 /* end confdefs.h.  */
10556
10557 int
10558 main ()
10559 {
10560
10561   ;
10562   return 0;
10563 }
10564 _ACEOF
10565 if ac_fn_c_try_link "$LINENO"; then :
10566
10567 lt_aix_libpath_sed='
10568     /Import File Strings/,/^$/ {
10569         /^0/ {
10570             s/^0  *\(.*\)$/\1/
10571             p
10572         }
10573     }'
10574 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10575 # Check for a 64-bit object if we didn't find anything.
10576 if test -z "$aix_libpath"; then
10577   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10578 fi
10579 fi
10580 rm -f core conftest.err conftest.$ac_objext \
10581     conftest$ac_exeext conftest.$ac_ext
10582 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
10583
10584          hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
10585           # Warning - without using the other run time loading flags,
10586           # -berok will link without error, but may produce a broken library.
10587           no_undefined_flag=' ${wl}-bernotok'
10588           allow_undefined_flag=' ${wl}-berok'
10589           # Exported symbols can be pulled into shared objects from archives
10590           whole_archive_flag_spec='$convenience'
10591           archive_cmds_need_lc=yes
10592           # This is similar to how AIX traditionally builds its shared libraries.
10593           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'
10594         fi
10595       fi
10596       ;;
10597
10598     amigaos*)
10599       case $host_cpu in
10600       powerpc)
10601             # see comment about AmigaOS4 .so support
10602             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10603             archive_expsym_cmds=''
10604         ;;
10605       m68k)
10606             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)'
10607             hardcode_libdir_flag_spec='-L$libdir'
10608             hardcode_minus_L=yes
10609         ;;
10610       esac
10611       ;;
10612
10613     bsdi[45]*)
10614       export_dynamic_flag_spec=-rdynamic
10615       ;;
10616
10617     cygwin* | mingw* | pw32* | cegcc*)
10618       # When not using gcc, we currently assume that we are using
10619       # Microsoft Visual C++.
10620       # hardcode_libdir_flag_spec is actually meaningless, as there is
10621       # no search path for DLLs.
10622       hardcode_libdir_flag_spec=' '
10623       allow_undefined_flag=unsupported
10624       # Tell ltmain to make .lib files, not .a files.
10625       libext=lib
10626       # Tell ltmain to make .dll files, not .so files.
10627       shrext_cmds=".dll"
10628       # FIXME: Setting linknames here is a bad hack.
10629       archive_cmds='$CC -o $lib $libobjs $compiler_flags `$ECHO "X$deplibs" | $Xsed -e '\''s/ -lc$//'\''` -link -dll~linknames='
10630       # The linker will automatically build a .lib file if we build a DLL.
10631       old_archive_from_new_cmds='true'
10632       # FIXME: Should let the user specify the lib program.
10633       old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
10634       fix_srcfile_path='`cygpath -w "$srcfile"`'
10635       enable_shared_with_static_runtimes=yes
10636       ;;
10637
10638     darwin* | rhapsody*)
10639
10640
10641   archive_cmds_need_lc=no
10642   hardcode_direct=no
10643   hardcode_automatic=yes
10644   hardcode_shlibpath_var=unsupported
10645   whole_archive_flag_spec=''
10646   link_all_deplibs=yes
10647   allow_undefined_flag="$_lt_dar_allow_undefined"
10648   case $cc_basename in
10649      ifort*) _lt_dar_can_shared=yes ;;
10650      *) _lt_dar_can_shared=$GCC ;;
10651   esac
10652   if test "$_lt_dar_can_shared" = "yes"; then
10653     output_verbose_link_cmd=echo
10654     archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
10655     module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
10656     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}"
10657     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}"
10658
10659   else
10660   ld_shlibs=no
10661   fi
10662
10663       ;;
10664
10665     dgux*)
10666       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10667       hardcode_libdir_flag_spec='-L$libdir'
10668       hardcode_shlibpath_var=no
10669       ;;
10670
10671     freebsd1*)
10672       ld_shlibs=no
10673       ;;
10674
10675     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
10676     # support.  Future versions do this automatically, but an explicit c++rt0.o
10677     # does not break anything, and helps significantly (at the cost of a little
10678     # extra space).
10679     freebsd2.2*)
10680       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
10681       hardcode_libdir_flag_spec='-R$libdir'
10682       hardcode_direct=yes
10683       hardcode_shlibpath_var=no
10684       ;;
10685
10686     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
10687     freebsd2*)
10688       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10689       hardcode_direct=yes
10690       hardcode_minus_L=yes
10691       hardcode_shlibpath_var=no
10692       ;;
10693
10694     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
10695     freebsd* | dragonfly*)
10696       archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
10697       hardcode_libdir_flag_spec='-R$libdir'
10698       hardcode_direct=yes
10699       hardcode_shlibpath_var=no
10700       ;;
10701
10702     hpux9*)
10703       if test "$GCC" = yes; then
10704         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'
10705       else
10706         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'
10707       fi
10708       hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10709       hardcode_libdir_separator=:
10710       hardcode_direct=yes
10711
10712       # hardcode_minus_L: Not really in the search PATH,
10713       # but as the default location of the library.
10714       hardcode_minus_L=yes
10715       export_dynamic_flag_spec='${wl}-E'
10716       ;;
10717
10718     hpux10*)
10719       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
10720         archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10721       else
10722         archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10723       fi
10724       if test "$with_gnu_ld" = no; then
10725         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10726         hardcode_libdir_flag_spec_ld='+b $libdir'
10727         hardcode_libdir_separator=:
10728         hardcode_direct=yes
10729         hardcode_direct_absolute=yes
10730         export_dynamic_flag_spec='${wl}-E'
10731         # hardcode_minus_L: Not really in the search PATH,
10732         # but as the default location of the library.
10733         hardcode_minus_L=yes
10734       fi
10735       ;;
10736
10737     hpux11*)
10738       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
10739         case $host_cpu in
10740         hppa*64*)
10741           archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10742           ;;
10743         ia64*)
10744           archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10745           ;;
10746         *)
10747           archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10748           ;;
10749         esac
10750       else
10751         case $host_cpu in
10752         hppa*64*)
10753           archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10754           ;;
10755         ia64*)
10756           archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10757           ;;
10758         *)
10759           archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10760           ;;
10761         esac
10762       fi
10763       if test "$with_gnu_ld" = no; then
10764         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10765         hardcode_libdir_separator=:
10766
10767         case $host_cpu in
10768         hppa*64*|ia64*)
10769           hardcode_direct=no
10770           hardcode_shlibpath_var=no
10771           ;;
10772         *)
10773           hardcode_direct=yes
10774           hardcode_direct_absolute=yes
10775           export_dynamic_flag_spec='${wl}-E'
10776
10777           # hardcode_minus_L: Not really in the search PATH,
10778           # but as the default location of the library.
10779           hardcode_minus_L=yes
10780           ;;
10781         esac
10782       fi
10783       ;;
10784
10785     irix5* | irix6* | nonstopux*)
10786       if test "$GCC" = yes; then
10787         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'
10788         # Try to use the -exported_symbol ld option, if it does not
10789         # work, assume that -exports_file does not work either and
10790         # implicitly export all symbols.
10791         save_LDFLAGS="$LDFLAGS"
10792         LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
10793         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10794 /* end confdefs.h.  */
10795 int foo(void) {}
10796 _ACEOF
10797 if ac_fn_c_try_link "$LINENO"; then :
10798   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'
10799
10800 fi
10801 rm -f core conftest.err conftest.$ac_objext \
10802     conftest$ac_exeext conftest.$ac_ext
10803         LDFLAGS="$save_LDFLAGS"
10804       else
10805         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'
10806         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'
10807       fi
10808       archive_cmds_need_lc='no'
10809       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10810       hardcode_libdir_separator=:
10811       inherit_rpath=yes
10812       link_all_deplibs=yes
10813       ;;
10814
10815     netbsd*)
10816       if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10817         archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
10818       else
10819         archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
10820       fi
10821       hardcode_libdir_flag_spec='-R$libdir'
10822       hardcode_direct=yes
10823       hardcode_shlibpath_var=no
10824       ;;
10825
10826     newsos6)
10827       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10828       hardcode_direct=yes
10829       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10830       hardcode_libdir_separator=:
10831       hardcode_shlibpath_var=no
10832       ;;
10833
10834     *nto* | *qnx*)
10835       ;;
10836
10837     openbsd*)
10838       if test -f /usr/libexec/ld.so; then
10839         hardcode_direct=yes
10840         hardcode_shlibpath_var=no
10841         hardcode_direct_absolute=yes
10842         if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10843           archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10844           archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
10845           hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10846           export_dynamic_flag_spec='${wl}-E'
10847         else
10848           case $host_os in
10849            openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
10850              archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10851              hardcode_libdir_flag_spec='-R$libdir'
10852              ;;
10853            *)
10854              archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10855              hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10856              ;;
10857           esac
10858         fi
10859       else
10860         ld_shlibs=no
10861       fi
10862       ;;
10863
10864     os2*)
10865       hardcode_libdir_flag_spec='-L$libdir'
10866       hardcode_minus_L=yes
10867       allow_undefined_flag=unsupported
10868       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'
10869       old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
10870       ;;
10871
10872     osf3*)
10873       if test "$GCC" = yes; then
10874         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10875         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'
10876       else
10877         allow_undefined_flag=' -expect_unresolved \*'
10878         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'
10879       fi
10880       archive_cmds_need_lc='no'
10881       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10882       hardcode_libdir_separator=:
10883       ;;
10884
10885     osf4* | osf5*)      # as osf3* with the addition of -msym flag
10886       if test "$GCC" = yes; then
10887         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10888         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'
10889         hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10890       else
10891         allow_undefined_flag=' -expect_unresolved \*'
10892         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'
10893         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~
10894         $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'
10895
10896         # Both c and cxx compiler support -rpath directly
10897         hardcode_libdir_flag_spec='-rpath $libdir'
10898       fi
10899       archive_cmds_need_lc='no'
10900       hardcode_libdir_separator=:
10901       ;;
10902
10903     solaris*)
10904       no_undefined_flag=' -z defs'
10905       if test "$GCC" = yes; then
10906         wlarc='${wl}'
10907         archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10908         archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10909           $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10910       else
10911         case `$CC -V 2>&1` in
10912         *"Compilers 5.0"*)
10913           wlarc=''
10914           archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
10915           archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10916           $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
10917           ;;
10918         *)
10919           wlarc='${wl}'
10920           archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
10921           archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10922           $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10923           ;;
10924         esac
10925       fi
10926       hardcode_libdir_flag_spec='-R$libdir'
10927       hardcode_shlibpath_var=no
10928       case $host_os in
10929       solaris2.[0-5] | solaris2.[0-5].*) ;;
10930       *)
10931         # The compiler driver will combine and reorder linker options,
10932         # but understands `-z linker_flag'.  GCC discards it without `$wl',
10933         # but is careful enough not to reorder.
10934         # Supported since Solaris 2.6 (maybe 2.5.1?)
10935         if test "$GCC" = yes; then
10936           whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
10937         else
10938           whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
10939         fi
10940         ;;
10941       esac
10942       link_all_deplibs=yes
10943       ;;
10944
10945     sunos4*)
10946       if test "x$host_vendor" = xsequent; then
10947         # Use $CC to link under sequent, because it throws in some extra .o
10948         # files that make .init and .fini sections work.
10949         archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
10950       else
10951         archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
10952       fi
10953       hardcode_libdir_flag_spec='-L$libdir'
10954       hardcode_direct=yes
10955       hardcode_minus_L=yes
10956       hardcode_shlibpath_var=no
10957       ;;
10958
10959     sysv4)
10960       case $host_vendor in
10961         sni)
10962           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10963           hardcode_direct=yes # is this really true???
10964         ;;
10965         siemens)
10966           ## LD is ld it makes a PLAMLIB
10967           ## CC just makes a GrossModule.
10968           archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
10969           reload_cmds='$CC -r -o $output$reload_objs'
10970           hardcode_direct=no
10971         ;;
10972         motorola)
10973           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10974           hardcode_direct=no #Motorola manual says yes, but my tests say they lie
10975         ;;
10976       esac
10977       runpath_var='LD_RUN_PATH'
10978       hardcode_shlibpath_var=no
10979       ;;
10980
10981     sysv4.3*)
10982       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10983       hardcode_shlibpath_var=no
10984       export_dynamic_flag_spec='-Bexport'
10985       ;;
10986
10987     sysv4*MP*)
10988       if test -d /usr/nec; then
10989         archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10990         hardcode_shlibpath_var=no
10991         runpath_var=LD_RUN_PATH
10992         hardcode_runpath_var=yes
10993         ld_shlibs=yes
10994       fi
10995       ;;
10996
10997     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
10998       no_undefined_flag='${wl}-z,text'
10999       archive_cmds_need_lc=no
11000       hardcode_shlibpath_var=no
11001       runpath_var='LD_RUN_PATH'
11002
11003       if test "$GCC" = yes; then
11004         archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11005         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11006       else
11007         archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11008         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11009       fi
11010       ;;
11011
11012     sysv5* | sco3.2v5* | sco5v6*)
11013       # Note: We can NOT use -z defs as we might desire, because we do not
11014       # link with -lc, and that would cause any symbols used from libc to
11015       # always be unresolved, which means just about no library would
11016       # ever link correctly.  If we're not using GNU ld we use -z text
11017       # though, which does catch some bad symbols but isn't as heavy-handed
11018       # as -z defs.
11019       no_undefined_flag='${wl}-z,text'
11020       allow_undefined_flag='${wl}-z,nodefs'
11021       archive_cmds_need_lc=no
11022       hardcode_shlibpath_var=no
11023       hardcode_libdir_flag_spec='${wl}-R,$libdir'
11024       hardcode_libdir_separator=':'
11025       link_all_deplibs=yes
11026       export_dynamic_flag_spec='${wl}-Bexport'
11027       runpath_var='LD_RUN_PATH'
11028
11029       if test "$GCC" = yes; then
11030         archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11031         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11032       else
11033         archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11034         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11035       fi
11036       ;;
11037
11038     uts4*)
11039       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11040       hardcode_libdir_flag_spec='-L$libdir'
11041       hardcode_shlibpath_var=no
11042       ;;
11043
11044     *)
11045       ld_shlibs=no
11046       ;;
11047     esac
11048
11049     if test x$host_vendor = xsni; then
11050       case $host in
11051       sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
11052         export_dynamic_flag_spec='${wl}-Blargedynsym'
11053         ;;
11054       esac
11055     fi
11056   fi
11057
11058 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
11059 $as_echo "$ld_shlibs" >&6; }
11060 test "$ld_shlibs" = no && can_build_shared=no
11061
11062 with_gnu_ld=$with_gnu_ld
11063
11064
11065
11066
11067
11068
11069
11070
11071
11072
11073
11074
11075
11076
11077
11078 #
11079 # Do we need to explicitly link libc?
11080 #
11081 case "x$archive_cmds_need_lc" in
11082 x|xyes)
11083   # Assume -lc should be added
11084   archive_cmds_need_lc=yes
11085
11086   if test "$enable_shared" = yes && test "$GCC" = yes; then
11087     case $archive_cmds in
11088     *'~'*)
11089       # FIXME: we may have to deal with multi-command sequences.
11090       ;;
11091     '$CC '*)
11092       # Test whether the compiler implicitly links with -lc since on some
11093       # systems, -lgcc has to come before -lc. If gcc already passes -lc
11094       # to ld, don't add -lc before -lgcc.
11095       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
11096 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
11097       $RM conftest*
11098       echo "$lt_simple_compile_test_code" > conftest.$ac_ext
11099
11100       if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
11101   (eval $ac_compile) 2>&5
11102   ac_status=$?
11103   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11104   test $ac_status = 0; } 2>conftest.err; then
11105         soname=conftest
11106         lib=conftest
11107         libobjs=conftest.$ac_objext
11108         deplibs=
11109         wl=$lt_prog_compiler_wl
11110         pic_flag=$lt_prog_compiler_pic
11111         compiler_flags=-v
11112         linker_flags=-v
11113         verstring=
11114         output_objdir=.
11115         libname=conftest
11116         lt_save_allow_undefined_flag=$allow_undefined_flag
11117         allow_undefined_flag=
11118         if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
11119   (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
11120   ac_status=$?
11121   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11122   test $ac_status = 0; }
11123         then
11124           archive_cmds_need_lc=no
11125         else
11126           archive_cmds_need_lc=yes
11127         fi
11128         allow_undefined_flag=$lt_save_allow_undefined_flag
11129       else
11130         cat conftest.err 1>&5
11131       fi
11132       $RM conftest*
11133       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $archive_cmds_need_lc" >&5
11134 $as_echo "$archive_cmds_need_lc" >&6; }
11135       ;;
11136     esac
11137   fi
11138   ;;
11139 esac
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
11289
11290
11291
11292
11293
11294
11295
11296
11297   { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
11298 $as_echo_n "checking dynamic linker characteristics... " >&6; }
11299
11300 if test "$GCC" = yes; then
11301   case $host_os in
11302     darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
11303     *) lt_awk_arg="/^libraries:/" ;;
11304   esac
11305   lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
11306   if $ECHO "$lt_search_path_spec" | $GREP ';' >/dev/null ; then
11307     # if the path contains ";" then we assume it to be the separator
11308     # otherwise default to the standard path separator (i.e. ":") - it is
11309     # assumed that no part of a normal pathname contains ";" but that should
11310     # okay in the real world where ";" in dirpaths is itself problematic.
11311     lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e 's/;/ /g'`
11312   else
11313     lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
11314   fi
11315   # Ok, now we have the path, separated by spaces, we can step through it
11316   # and add multilib dir if necessary.
11317   lt_tmp_lt_search_path_spec=
11318   lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
11319   for lt_sys_path in $lt_search_path_spec; do
11320     if test -d "$lt_sys_path/$lt_multi_os_dir"; then
11321       lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
11322     else
11323       test -d "$lt_sys_path" && \
11324         lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
11325     fi
11326   done
11327   lt_search_path_spec=`$ECHO $lt_tmp_lt_search_path_spec | awk '
11328 BEGIN {RS=" "; FS="/|\n";} {
11329   lt_foo="";
11330   lt_count=0;
11331   for (lt_i = NF; lt_i > 0; lt_i--) {
11332     if ($lt_i != "" && $lt_i != ".") {
11333       if ($lt_i == "..") {
11334         lt_count++;
11335       } else {
11336         if (lt_count == 0) {
11337           lt_foo="/" $lt_i lt_foo;
11338         } else {
11339           lt_count--;
11340         }
11341       }
11342     }
11343   }
11344   if (lt_foo != "") { lt_freq[lt_foo]++; }
11345   if (lt_freq[lt_foo] == 1) { print lt_foo; }
11346 }'`
11347   sys_lib_search_path_spec=`$ECHO $lt_search_path_spec`
11348 else
11349   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
11350 fi
11351 library_names_spec=
11352 libname_spec='lib$name'
11353 soname_spec=
11354 shrext_cmds=".so"
11355 postinstall_cmds=
11356 postuninstall_cmds=
11357 finish_cmds=
11358 finish_eval=
11359 shlibpath_var=
11360 shlibpath_overrides_runpath=unknown
11361 version_type=none
11362 dynamic_linker="$host_os ld.so"
11363 sys_lib_dlsearch_path_spec="/lib /usr/lib"
11364 need_lib_prefix=unknown
11365 hardcode_into_libs=no
11366
11367 # when you set need_version to no, make sure it does not cause -set_version
11368 # flags to be left without arguments
11369 need_version=unknown
11370
11371 case $host_os in
11372 aix3*)
11373   version_type=linux
11374   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
11375   shlibpath_var=LIBPATH
11376
11377   # AIX 3 has no versioning support, so we append a major version to the name.
11378   soname_spec='${libname}${release}${shared_ext}$major'
11379   ;;
11380
11381 aix[4-9]*)
11382   version_type=linux
11383   need_lib_prefix=no
11384   need_version=no
11385   hardcode_into_libs=yes
11386   if test "$host_cpu" = ia64; then
11387     # AIX 5 supports IA64
11388     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
11389     shlibpath_var=LD_LIBRARY_PATH
11390   else
11391     # With GCC up to 2.95.x, collect2 would create an import file
11392     # for dependence libraries.  The import file would start with
11393     # the line `#! .'.  This would cause the generated library to
11394     # depend on `.', always an invalid library.  This was fixed in
11395     # development snapshots of GCC prior to 3.0.
11396     case $host_os in
11397       aix4 | aix4.[01] | aix4.[01].*)
11398       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
11399            echo ' yes '
11400            echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
11401         :
11402       else
11403         can_build_shared=no
11404       fi
11405       ;;
11406     esac
11407     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
11408     # soname into executable. Probably we can add versioning support to
11409     # collect2, so additional links can be useful in future.
11410     if test "$aix_use_runtimelinking" = yes; then
11411       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
11412       # instead of lib<name>.a to let people know that these are not
11413       # typical AIX shared libraries.
11414       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11415     else
11416       # We preserve .a as extension for shared libraries through AIX4.2
11417       # and later when we are not doing run time linking.
11418       library_names_spec='${libname}${release}.a $libname.a'
11419       soname_spec='${libname}${release}${shared_ext}$major'
11420     fi
11421     shlibpath_var=LIBPATH
11422   fi
11423   ;;
11424
11425 amigaos*)
11426   case $host_cpu in
11427   powerpc)
11428     # Since July 2007 AmigaOS4 officially supports .so libraries.
11429     # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
11430     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11431     ;;
11432   m68k)
11433     library_names_spec='$libname.ixlibrary $libname.a'
11434     # Create ${libname}_ixlibrary.a entries in /sys/libs.
11435     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'
11436     ;;
11437   esac
11438   ;;
11439
11440 beos*)
11441   library_names_spec='${libname}${shared_ext}'
11442   dynamic_linker="$host_os ld.so"
11443   shlibpath_var=LIBRARY_PATH
11444   ;;
11445
11446 bsdi[45]*)
11447   version_type=linux
11448   need_version=no
11449   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11450   soname_spec='${libname}${release}${shared_ext}$major'
11451   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
11452   shlibpath_var=LD_LIBRARY_PATH
11453   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
11454   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
11455   # the default ld.so.conf also contains /usr/contrib/lib and
11456   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
11457   # libtool to hard-code these into programs
11458   ;;
11459
11460 cygwin* | mingw* | pw32* | cegcc*)
11461   version_type=windows
11462   shrext_cmds=".dll"
11463   need_version=no
11464   need_lib_prefix=no
11465
11466   case $GCC,$host_os in
11467   yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
11468     library_names_spec='$libname.dll.a'
11469     # DLL is installed to $(libdir)/../bin by postinstall_cmds
11470     postinstall_cmds='base_file=`basename \${file}`~
11471       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
11472       dldir=$destdir/`dirname \$dlpath`~
11473       test -d \$dldir || mkdir -p \$dldir~
11474       $install_prog $dir/$dlname \$dldir/$dlname~
11475       chmod a+x \$dldir/$dlname~
11476       if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
11477         eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
11478       fi'
11479     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11480       dlpath=$dir/\$dldll~
11481        $RM \$dlpath'
11482     shlibpath_overrides_runpath=yes
11483
11484     case $host_os in
11485     cygwin*)
11486       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
11487       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11488       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
11489       ;;
11490     mingw* | cegcc*)
11491       # MinGW DLLs use traditional 'lib' prefix
11492       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11493       sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
11494       if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
11495         # It is most probably a Windows format PATH printed by
11496         # mingw gcc, but we are running on Cygwin. Gcc prints its search
11497         # path with ; separators, and with drive letters. We can handle the
11498         # drive letters (cygwin fileutils understands them), so leave them,
11499         # especially as we might pass files found there to a mingw objdump,
11500         # which wouldn't understand a cygwinified path. Ahh.
11501         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
11502       else
11503         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
11504       fi
11505       ;;
11506     pw32*)
11507       # pw32 DLLs use 'pw' prefix rather than 'lib'
11508       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11509       ;;
11510     esac
11511     ;;
11512
11513   *)
11514     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
11515     ;;
11516   esac
11517   dynamic_linker='Win32 ld.exe'
11518   # FIXME: first we should search . and the directory the executable is in
11519   shlibpath_var=PATH
11520   ;;
11521
11522 darwin* | rhapsody*)
11523   dynamic_linker="$host_os dyld"
11524   version_type=darwin
11525   need_lib_prefix=no
11526   need_version=no
11527   library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
11528   soname_spec='${libname}${release}${major}$shared_ext'
11529   shlibpath_overrides_runpath=yes
11530   shlibpath_var=DYLD_LIBRARY_PATH
11531   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
11532
11533   sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
11534   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
11535   ;;
11536
11537 dgux*)
11538   version_type=linux
11539   need_lib_prefix=no
11540   need_version=no
11541   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
11542   soname_spec='${libname}${release}${shared_ext}$major'
11543   shlibpath_var=LD_LIBRARY_PATH
11544   ;;
11545
11546 freebsd1*)
11547   dynamic_linker=no
11548   ;;
11549
11550 freebsd* | dragonfly*)
11551   # DragonFly does not have aout.  When/if they implement a new
11552   # versioning mechanism, adjust this.
11553   if test -x /usr/bin/objformat; then
11554     objformat=`/usr/bin/objformat`
11555   else
11556     case $host_os in
11557     freebsd[123]*) objformat=aout ;;
11558     *) objformat=elf ;;
11559     esac
11560   fi
11561   version_type=freebsd-$objformat
11562   case $version_type in
11563     freebsd-elf*)
11564       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11565       need_version=no
11566       need_lib_prefix=no
11567       ;;
11568     freebsd-*)
11569       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
11570       need_version=yes
11571       ;;
11572   esac
11573   shlibpath_var=LD_LIBRARY_PATH
11574   case $host_os in
11575   freebsd2*)
11576     shlibpath_overrides_runpath=yes
11577     ;;
11578   freebsd3.[01]* | freebsdelf3.[01]*)
11579     shlibpath_overrides_runpath=yes
11580     hardcode_into_libs=yes
11581     ;;
11582   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
11583   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
11584     shlibpath_overrides_runpath=no
11585     hardcode_into_libs=yes
11586     ;;
11587   *) # from 4.6 on, and DragonFly
11588     shlibpath_overrides_runpath=yes
11589     hardcode_into_libs=yes
11590     ;;
11591   esac
11592   ;;
11593
11594 gnu*)
11595   version_type=linux
11596   need_lib_prefix=no
11597   need_version=no
11598   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
11599   soname_spec='${libname}${release}${shared_ext}$major'
11600   shlibpath_var=LD_LIBRARY_PATH
11601   hardcode_into_libs=yes
11602   ;;
11603
11604 hpux9* | hpux10* | hpux11*)
11605   # Give a soname corresponding to the major version so that dld.sl refuses to
11606   # link against other versions.
11607   version_type=sunos
11608   need_lib_prefix=no
11609   need_version=no
11610   case $host_cpu in
11611   ia64*)
11612     shrext_cmds='.so'
11613     hardcode_into_libs=yes
11614     dynamic_linker="$host_os dld.so"
11615     shlibpath_var=LD_LIBRARY_PATH
11616     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11617     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11618     soname_spec='${libname}${release}${shared_ext}$major'
11619     if test "X$HPUX_IA64_MODE" = X32; then
11620       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
11621     else
11622       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
11623     fi
11624     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11625     ;;
11626   hppa*64*)
11627     shrext_cmds='.sl'
11628     hardcode_into_libs=yes
11629     dynamic_linker="$host_os dld.sl"
11630     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
11631     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11632     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11633     soname_spec='${libname}${release}${shared_ext}$major'
11634     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
11635     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11636     ;;
11637   *)
11638     shrext_cmds='.sl'
11639     dynamic_linker="$host_os dld.sl"
11640     shlibpath_var=SHLIB_PATH
11641     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
11642     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11643     soname_spec='${libname}${release}${shared_ext}$major'
11644     ;;
11645   esac
11646   # HP-UX runs *really* slowly unless shared libraries are mode 555.
11647   postinstall_cmds='chmod 555 $lib'
11648   ;;
11649
11650 interix[3-9]*)
11651   version_type=linux
11652   need_lib_prefix=no
11653   need_version=no
11654   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11655   soname_spec='${libname}${release}${shared_ext}$major'
11656   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
11657   shlibpath_var=LD_LIBRARY_PATH
11658   shlibpath_overrides_runpath=no
11659   hardcode_into_libs=yes
11660   ;;
11661
11662 irix5* | irix6* | nonstopux*)
11663   case $host_os in
11664     nonstopux*) version_type=nonstopux ;;
11665     *)
11666         if test "$lt_cv_prog_gnu_ld" = yes; then
11667                 version_type=linux
11668         else
11669                 version_type=irix
11670         fi ;;
11671   esac
11672   need_lib_prefix=no
11673   need_version=no
11674   soname_spec='${libname}${release}${shared_ext}$major'
11675   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
11676   case $host_os in
11677   irix5* | nonstopux*)
11678     libsuff= shlibsuff=
11679     ;;
11680   *)
11681     case $LD in # libtool.m4 will add one of these switches to LD
11682     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
11683       libsuff= shlibsuff= libmagic=32-bit;;
11684     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
11685       libsuff=32 shlibsuff=N32 libmagic=N32;;
11686     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
11687       libsuff=64 shlibsuff=64 libmagic=64-bit;;
11688     *) libsuff= shlibsuff= libmagic=never-match;;
11689     esac
11690     ;;
11691   esac
11692   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
11693   shlibpath_overrides_runpath=no
11694   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
11695   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
11696   hardcode_into_libs=yes
11697   ;;
11698
11699 # No shared lib support for Linux oldld, aout, or coff.
11700 linux*oldld* | linux*aout* | linux*coff*)
11701   dynamic_linker=no
11702   ;;
11703
11704 # This must be Linux ELF.
11705 linux* | k*bsd*-gnu)
11706   version_type=linux
11707   need_lib_prefix=no
11708   need_version=no
11709   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11710   soname_spec='${libname}${release}${shared_ext}$major'
11711   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
11712   shlibpath_var=LD_LIBRARY_PATH
11713   shlibpath_overrides_runpath=no
11714   # Some binutils ld are patched to set DT_RUNPATH
11715   save_LDFLAGS=$LDFLAGS
11716   save_libdir=$libdir
11717   eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
11718        LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
11719   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11720 /* end confdefs.h.  */
11721
11722 int
11723 main ()
11724 {
11725
11726   ;
11727   return 0;
11728 }
11729 _ACEOF
11730 if ac_fn_c_try_link "$LINENO"; then :
11731   if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
11732   shlibpath_overrides_runpath=yes
11733 fi
11734 fi
11735 rm -f core conftest.err conftest.$ac_objext \
11736     conftest$ac_exeext conftest.$ac_ext
11737   LDFLAGS=$save_LDFLAGS
11738   libdir=$save_libdir
11739
11740   # This implies no fast_install, which is unacceptable.
11741   # Some rework will be needed to allow for fast_install
11742   # before this can be enabled.
11743   hardcode_into_libs=yes
11744
11745   # Append ld.so.conf contents to the search path
11746   if test -f /etc/ld.so.conf; then
11747     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' ' '`
11748     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
11749   fi
11750
11751   # We used to test for /lib/ld.so.1 and disable shared libraries on
11752   # powerpc, because MkLinux only supported shared libraries with the
11753   # GNU dynamic linker.  Since this was broken with cross compilers,
11754   # most powerpc-linux boxes support dynamic linking these days and
11755   # people can always --disable-shared, the test was removed, and we
11756   # assume the GNU/Linux dynamic linker is in use.
11757   dynamic_linker='GNU/Linux ld.so'
11758   ;;
11759
11760 netbsd*)
11761   version_type=sunos
11762   need_lib_prefix=no
11763   need_version=no
11764   if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11765     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11766     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11767     dynamic_linker='NetBSD (a.out) ld.so'
11768   else
11769     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11770     soname_spec='${libname}${release}${shared_ext}$major'
11771     dynamic_linker='NetBSD ld.elf_so'
11772   fi
11773   shlibpath_var=LD_LIBRARY_PATH
11774   shlibpath_overrides_runpath=yes
11775   hardcode_into_libs=yes
11776   ;;
11777
11778 newsos6)
11779   version_type=linux
11780   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11781   shlibpath_var=LD_LIBRARY_PATH
11782   shlibpath_overrides_runpath=yes
11783   ;;
11784
11785 *nto* | *qnx*)
11786   version_type=qnx
11787   need_lib_prefix=no
11788   need_version=no
11789   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11790   soname_spec='${libname}${release}${shared_ext}$major'
11791   shlibpath_var=LD_LIBRARY_PATH
11792   shlibpath_overrides_runpath=no
11793   hardcode_into_libs=yes
11794   dynamic_linker='ldqnx.so'
11795   ;;
11796
11797 openbsd*)
11798   version_type=sunos
11799   sys_lib_dlsearch_path_spec="/usr/lib"
11800   need_lib_prefix=no
11801   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
11802   case $host_os in
11803     openbsd3.3 | openbsd3.3.*)  need_version=yes ;;
11804     *)                          need_version=no  ;;
11805   esac
11806   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11807   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11808   shlibpath_var=LD_LIBRARY_PATH
11809   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11810     case $host_os in
11811       openbsd2.[89] | openbsd2.[89].*)
11812         shlibpath_overrides_runpath=no
11813         ;;
11814       *)
11815         shlibpath_overrides_runpath=yes
11816         ;;
11817       esac
11818   else
11819     shlibpath_overrides_runpath=yes
11820   fi
11821   ;;
11822
11823 os2*)
11824   libname_spec='$name'
11825   shrext_cmds=".dll"
11826   need_lib_prefix=no
11827   library_names_spec='$libname${shared_ext} $libname.a'
11828   dynamic_linker='OS/2 ld.exe'
11829   shlibpath_var=LIBPATH
11830   ;;
11831
11832 osf3* | osf4* | osf5*)
11833   version_type=osf
11834   need_lib_prefix=no
11835   need_version=no
11836   soname_spec='${libname}${release}${shared_ext}$major'
11837   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11838   shlibpath_var=LD_LIBRARY_PATH
11839   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
11840   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
11841   ;;
11842
11843 rdos*)
11844   dynamic_linker=no
11845   ;;
11846
11847 solaris*)
11848   version_type=linux
11849   need_lib_prefix=no
11850   need_version=no
11851   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11852   soname_spec='${libname}${release}${shared_ext}$major'
11853   shlibpath_var=LD_LIBRARY_PATH
11854   shlibpath_overrides_runpath=yes
11855   hardcode_into_libs=yes
11856   # ldd complains unless libraries are executable
11857   postinstall_cmds='chmod +x $lib'
11858   ;;
11859
11860 sunos4*)
11861   version_type=sunos
11862   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11863   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
11864   shlibpath_var=LD_LIBRARY_PATH
11865   shlibpath_overrides_runpath=yes
11866   if test "$with_gnu_ld" = yes; then
11867     need_lib_prefix=no
11868   fi
11869   need_version=yes
11870   ;;
11871
11872 sysv4 | sysv4.3*)
11873   version_type=linux
11874   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11875   soname_spec='${libname}${release}${shared_ext}$major'
11876   shlibpath_var=LD_LIBRARY_PATH
11877   case $host_vendor in
11878     sni)
11879       shlibpath_overrides_runpath=no
11880       need_lib_prefix=no
11881       runpath_var=LD_RUN_PATH
11882       ;;
11883     siemens)
11884       need_lib_prefix=no
11885       ;;
11886     motorola)
11887       need_lib_prefix=no
11888       need_version=no
11889       shlibpath_overrides_runpath=no
11890       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
11891       ;;
11892   esac
11893   ;;
11894
11895 sysv4*MP*)
11896   if test -d /usr/nec ;then
11897     version_type=linux
11898     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
11899     soname_spec='$libname${shared_ext}.$major'
11900     shlibpath_var=LD_LIBRARY_PATH
11901   fi
11902   ;;
11903
11904 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
11905   version_type=freebsd-elf
11906   need_lib_prefix=no
11907   need_version=no
11908   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11909   soname_spec='${libname}${release}${shared_ext}$major'
11910   shlibpath_var=LD_LIBRARY_PATH
11911   shlibpath_overrides_runpath=yes
11912   hardcode_into_libs=yes
11913   if test "$with_gnu_ld" = yes; then
11914     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
11915   else
11916     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
11917     case $host_os in
11918       sco3.2v5*)
11919         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
11920         ;;
11921     esac
11922   fi
11923   sys_lib_dlsearch_path_spec='/usr/lib'
11924   ;;
11925
11926 tpf*)
11927   # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
11928   version_type=linux
11929   need_lib_prefix=no
11930   need_version=no
11931   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11932   shlibpath_var=LD_LIBRARY_PATH
11933   shlibpath_overrides_runpath=no
11934   hardcode_into_libs=yes
11935   ;;
11936
11937 uts4*)
11938   version_type=linux
11939   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11940   soname_spec='${libname}${release}${shared_ext}$major'
11941   shlibpath_var=LD_LIBRARY_PATH
11942   ;;
11943
11944 *)
11945   dynamic_linker=no
11946   ;;
11947 esac
11948 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
11949 $as_echo "$dynamic_linker" >&6; }
11950 test "$dynamic_linker" = no && can_build_shared=no
11951
11952 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
11953 if test "$GCC" = yes; then
11954   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
11955 fi
11956
11957 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
11958   sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
11959 fi
11960 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
11961   sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
11962 fi
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
12042
12043
12044
12045
12046
12047
12048
12049
12050   { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
12051 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
12052 hardcode_action=
12053 if test -n "$hardcode_libdir_flag_spec" ||
12054    test -n "$runpath_var" ||
12055    test "X$hardcode_automatic" = "Xyes" ; then
12056
12057   # We can hardcode non-existent directories.
12058   if test "$hardcode_direct" != no &&
12059      # If the only mechanism to avoid hardcoding is shlibpath_var, we
12060      # have to relink, otherwise we might link with an installed library
12061      # when we should be linking with a yet-to-be-installed one
12062      ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
12063      test "$hardcode_minus_L" != no; then
12064     # Linking always hardcodes the temporary library directory.
12065     hardcode_action=relink
12066   else
12067     # We can link without hardcoding, and we can hardcode nonexisting dirs.
12068     hardcode_action=immediate
12069   fi
12070 else
12071   # We cannot hardcode anything, or else we can only hardcode existing
12072   # directories.
12073   hardcode_action=unsupported
12074 fi
12075 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
12076 $as_echo "$hardcode_action" >&6; }
12077
12078 if test "$hardcode_action" = relink ||
12079    test "$inherit_rpath" = yes; then
12080   # Fast installation is not supported
12081   enable_fast_install=no
12082 elif test "$shlibpath_overrides_runpath" = yes ||
12083      test "$enable_shared" = no; then
12084   # Fast installation is not necessary
12085   enable_fast_install=needless
12086 fi
12087
12088
12089
12090
12091
12092
12093   if test "x$enable_dlopen" != xyes; then
12094   enable_dlopen=unknown
12095   enable_dlopen_self=unknown
12096   enable_dlopen_self_static=unknown
12097 else
12098   lt_cv_dlopen=no
12099   lt_cv_dlopen_libs=
12100
12101   case $host_os in
12102   beos*)
12103     lt_cv_dlopen="load_add_on"
12104     lt_cv_dlopen_libs=
12105     lt_cv_dlopen_self=yes
12106     ;;
12107
12108   mingw* | pw32* | cegcc*)
12109     lt_cv_dlopen="LoadLibrary"
12110     lt_cv_dlopen_libs=
12111     ;;
12112
12113   cygwin*)
12114     lt_cv_dlopen="dlopen"
12115     lt_cv_dlopen_libs=
12116     ;;
12117
12118   darwin*)
12119   # if libdl is installed we need to link against it
12120     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
12121 $as_echo_n "checking for dlopen in -ldl... " >&6; }
12122 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
12123   $as_echo_n "(cached) " >&6
12124 else
12125   ac_check_lib_save_LIBS=$LIBS
12126 LIBS="-ldl  $LIBS"
12127 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12128 /* end confdefs.h.  */
12129
12130 /* Override any GCC internal prototype to avoid an error.
12131    Use char because int might match the return type of a GCC
12132    builtin and then its argument prototype would still apply.  */
12133 #ifdef __cplusplus
12134 extern "C"
12135 #endif
12136 char dlopen ();
12137 int
12138 main ()
12139 {
12140 return dlopen ();
12141   ;
12142   return 0;
12143 }
12144 _ACEOF
12145 if ac_fn_c_try_link "$LINENO"; then :
12146   ac_cv_lib_dl_dlopen=yes
12147 else
12148   ac_cv_lib_dl_dlopen=no
12149 fi
12150 rm -f core conftest.err conftest.$ac_objext \
12151     conftest$ac_exeext conftest.$ac_ext
12152 LIBS=$ac_check_lib_save_LIBS
12153 fi
12154 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
12155 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
12156 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
12157   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
12158 else
12159
12160     lt_cv_dlopen="dyld"
12161     lt_cv_dlopen_libs=
12162     lt_cv_dlopen_self=yes
12163
12164 fi
12165
12166     ;;
12167
12168   *)
12169     ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
12170 if test "x$ac_cv_func_shl_load" = x""yes; then :
12171   lt_cv_dlopen="shl_load"
12172 else
12173   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
12174 $as_echo_n "checking for shl_load in -ldld... " >&6; }
12175 if test "${ac_cv_lib_dld_shl_load+set}" = set; then :
12176   $as_echo_n "(cached) " >&6
12177 else
12178   ac_check_lib_save_LIBS=$LIBS
12179 LIBS="-ldld  $LIBS"
12180 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12181 /* end confdefs.h.  */
12182
12183 /* Override any GCC internal prototype to avoid an error.
12184    Use char because int might match the return type of a GCC
12185    builtin and then its argument prototype would still apply.  */
12186 #ifdef __cplusplus
12187 extern "C"
12188 #endif
12189 char shl_load ();
12190 int
12191 main ()
12192 {
12193 return shl_load ();
12194   ;
12195   return 0;
12196 }
12197 _ACEOF
12198 if ac_fn_c_try_link "$LINENO"; then :
12199   ac_cv_lib_dld_shl_load=yes
12200 else
12201   ac_cv_lib_dld_shl_load=no
12202 fi
12203 rm -f core conftest.err conftest.$ac_objext \
12204     conftest$ac_exeext conftest.$ac_ext
12205 LIBS=$ac_check_lib_save_LIBS
12206 fi
12207 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
12208 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
12209 if test "x$ac_cv_lib_dld_shl_load" = x""yes; then :
12210   lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
12211 else
12212   ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
12213 if test "x$ac_cv_func_dlopen" = x""yes; then :
12214   lt_cv_dlopen="dlopen"
12215 else
12216   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
12217 $as_echo_n "checking for dlopen in -ldl... " >&6; }
12218 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
12219   $as_echo_n "(cached) " >&6
12220 else
12221   ac_check_lib_save_LIBS=$LIBS
12222 LIBS="-ldl  $LIBS"
12223 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12224 /* end confdefs.h.  */
12225
12226 /* Override any GCC internal prototype to avoid an error.
12227    Use char because int might match the return type of a GCC
12228    builtin and then its argument prototype would still apply.  */
12229 #ifdef __cplusplus
12230 extern "C"
12231 #endif
12232 char dlopen ();
12233 int
12234 main ()
12235 {
12236 return dlopen ();
12237   ;
12238   return 0;
12239 }
12240 _ACEOF
12241 if ac_fn_c_try_link "$LINENO"; then :
12242   ac_cv_lib_dl_dlopen=yes
12243 else
12244   ac_cv_lib_dl_dlopen=no
12245 fi
12246 rm -f core conftest.err conftest.$ac_objext \
12247     conftest$ac_exeext conftest.$ac_ext
12248 LIBS=$ac_check_lib_save_LIBS
12249 fi
12250 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
12251 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
12252 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
12253   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
12254 else
12255   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
12256 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
12257 if test "${ac_cv_lib_svld_dlopen+set}" = set; then :
12258   $as_echo_n "(cached) " >&6
12259 else
12260   ac_check_lib_save_LIBS=$LIBS
12261 LIBS="-lsvld  $LIBS"
12262 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12263 /* end confdefs.h.  */
12264
12265 /* Override any GCC internal prototype to avoid an error.
12266    Use char because int might match the return type of a GCC
12267    builtin and then its argument prototype would still apply.  */
12268 #ifdef __cplusplus
12269 extern "C"
12270 #endif
12271 char dlopen ();
12272 int
12273 main ()
12274 {
12275 return dlopen ();
12276   ;
12277   return 0;
12278 }
12279 _ACEOF
12280 if ac_fn_c_try_link "$LINENO"; then :
12281   ac_cv_lib_svld_dlopen=yes
12282 else
12283   ac_cv_lib_svld_dlopen=no
12284 fi
12285 rm -f core conftest.err conftest.$ac_objext \
12286     conftest$ac_exeext conftest.$ac_ext
12287 LIBS=$ac_check_lib_save_LIBS
12288 fi
12289 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
12290 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
12291 if test "x$ac_cv_lib_svld_dlopen" = x""yes; then :
12292   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
12293 else
12294   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
12295 $as_echo_n "checking for dld_link in -ldld... " >&6; }
12296 if test "${ac_cv_lib_dld_dld_link+set}" = set; then :
12297   $as_echo_n "(cached) " >&6
12298 else
12299   ac_check_lib_save_LIBS=$LIBS
12300 LIBS="-ldld  $LIBS"
12301 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12302 /* end confdefs.h.  */
12303
12304 /* Override any GCC internal prototype to avoid an error.
12305    Use char because int might match the return type of a GCC
12306    builtin and then its argument prototype would still apply.  */
12307 #ifdef __cplusplus
12308 extern "C"
12309 #endif
12310 char dld_link ();
12311 int
12312 main ()
12313 {
12314 return dld_link ();
12315   ;
12316   return 0;
12317 }
12318 _ACEOF
12319 if ac_fn_c_try_link "$LINENO"; then :
12320   ac_cv_lib_dld_dld_link=yes
12321 else
12322   ac_cv_lib_dld_dld_link=no
12323 fi
12324 rm -f core conftest.err conftest.$ac_objext \
12325     conftest$ac_exeext conftest.$ac_ext
12326 LIBS=$ac_check_lib_save_LIBS
12327 fi
12328 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
12329 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
12330 if test "x$ac_cv_lib_dld_dld_link" = x""yes; then :
12331   lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
12332 fi
12333
12334
12335 fi
12336
12337
12338 fi
12339
12340
12341 fi
12342
12343
12344 fi
12345
12346
12347 fi
12348
12349     ;;
12350   esac
12351
12352   if test "x$lt_cv_dlopen" != xno; then
12353     enable_dlopen=yes
12354   else
12355     enable_dlopen=no
12356   fi
12357
12358   case $lt_cv_dlopen in
12359   dlopen)
12360     save_CPPFLAGS="$CPPFLAGS"
12361     test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
12362
12363     save_LDFLAGS="$LDFLAGS"
12364     wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
12365
12366     save_LIBS="$LIBS"
12367     LIBS="$lt_cv_dlopen_libs $LIBS"
12368
12369     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
12370 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
12371 if test "${lt_cv_dlopen_self+set}" = set; then :
12372   $as_echo_n "(cached) " >&6
12373 else
12374           if test "$cross_compiling" = yes; then :
12375   lt_cv_dlopen_self=cross
12376 else
12377   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12378   lt_status=$lt_dlunknown
12379   cat > conftest.$ac_ext <<_LT_EOF
12380 #line 12380 "configure"
12381 #include "confdefs.h"
12382
12383 #if HAVE_DLFCN_H
12384 #include <dlfcn.h>
12385 #endif
12386
12387 #include <stdio.h>
12388
12389 #ifdef RTLD_GLOBAL
12390 #  define LT_DLGLOBAL           RTLD_GLOBAL
12391 #else
12392 #  ifdef DL_GLOBAL
12393 #    define LT_DLGLOBAL         DL_GLOBAL
12394 #  else
12395 #    define LT_DLGLOBAL         0
12396 #  endif
12397 #endif
12398
12399 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12400    find out it does not work in some platform. */
12401 #ifndef LT_DLLAZY_OR_NOW
12402 #  ifdef RTLD_LAZY
12403 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
12404 #  else
12405 #    ifdef DL_LAZY
12406 #      define LT_DLLAZY_OR_NOW          DL_LAZY
12407 #    else
12408 #      ifdef RTLD_NOW
12409 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
12410 #      else
12411 #        ifdef DL_NOW
12412 #          define LT_DLLAZY_OR_NOW      DL_NOW
12413 #        else
12414 #          define LT_DLLAZY_OR_NOW      0
12415 #        endif
12416 #      endif
12417 #    endif
12418 #  endif
12419 #endif
12420
12421 void fnord() { int i=42;}
12422 int main ()
12423 {
12424   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12425   int status = $lt_dlunknown;
12426
12427   if (self)
12428     {
12429       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
12430       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12431       /* dlclose (self); */
12432     }
12433   else
12434     puts (dlerror ());
12435
12436   return status;
12437 }
12438 _LT_EOF
12439   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12440   (eval $ac_link) 2>&5
12441   ac_status=$?
12442   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12443   test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
12444     (./conftest; exit; ) >&5 2>/dev/null
12445     lt_status=$?
12446     case x$lt_status in
12447       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
12448       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
12449       x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
12450     esac
12451   else :
12452     # compilation failed
12453     lt_cv_dlopen_self=no
12454   fi
12455 fi
12456 rm -fr conftest*
12457
12458
12459 fi
12460 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
12461 $as_echo "$lt_cv_dlopen_self" >&6; }
12462
12463     if test "x$lt_cv_dlopen_self" = xyes; then
12464       wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
12465       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
12466 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
12467 if test "${lt_cv_dlopen_self_static+set}" = set; then :
12468   $as_echo_n "(cached) " >&6
12469 else
12470           if test "$cross_compiling" = yes; then :
12471   lt_cv_dlopen_self_static=cross
12472 else
12473   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12474   lt_status=$lt_dlunknown
12475   cat > conftest.$ac_ext <<_LT_EOF
12476 #line 12476 "configure"
12477 #include "confdefs.h"
12478
12479 #if HAVE_DLFCN_H
12480 #include <dlfcn.h>
12481 #endif
12482
12483 #include <stdio.h>
12484
12485 #ifdef RTLD_GLOBAL
12486 #  define LT_DLGLOBAL           RTLD_GLOBAL
12487 #else
12488 #  ifdef DL_GLOBAL
12489 #    define LT_DLGLOBAL         DL_GLOBAL
12490 #  else
12491 #    define LT_DLGLOBAL         0
12492 #  endif
12493 #endif
12494
12495 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12496    find out it does not work in some platform. */
12497 #ifndef LT_DLLAZY_OR_NOW
12498 #  ifdef RTLD_LAZY
12499 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
12500 #  else
12501 #    ifdef DL_LAZY
12502 #      define LT_DLLAZY_OR_NOW          DL_LAZY
12503 #    else
12504 #      ifdef RTLD_NOW
12505 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
12506 #      else
12507 #        ifdef DL_NOW
12508 #          define LT_DLLAZY_OR_NOW      DL_NOW
12509 #        else
12510 #          define LT_DLLAZY_OR_NOW      0
12511 #        endif
12512 #      endif
12513 #    endif
12514 #  endif
12515 #endif
12516
12517 void fnord() { int i=42;}
12518 int main ()
12519 {
12520   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12521   int status = $lt_dlunknown;
12522
12523   if (self)
12524     {
12525       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
12526       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12527       /* dlclose (self); */
12528     }
12529   else
12530     puts (dlerror ());
12531
12532   return status;
12533 }
12534 _LT_EOF
12535   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12536   (eval $ac_link) 2>&5
12537   ac_status=$?
12538   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12539   test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
12540     (./conftest; exit; ) >&5 2>/dev/null
12541     lt_status=$?
12542     case x$lt_status in
12543       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
12544       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
12545       x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
12546     esac
12547   else :
12548     # compilation failed
12549     lt_cv_dlopen_self_static=no
12550   fi
12551 fi
12552 rm -fr conftest*
12553
12554
12555 fi
12556 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
12557 $as_echo "$lt_cv_dlopen_self_static" >&6; }
12558     fi
12559
12560     CPPFLAGS="$save_CPPFLAGS"
12561     LDFLAGS="$save_LDFLAGS"
12562     LIBS="$save_LIBS"
12563     ;;
12564   esac
12565
12566   case $lt_cv_dlopen_self in
12567   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
12568   *) enable_dlopen_self=unknown ;;
12569   esac
12570
12571   case $lt_cv_dlopen_self_static in
12572   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
12573   *) enable_dlopen_self_static=unknown ;;
12574   esac
12575 fi
12576
12577
12578
12579
12580
12581
12582
12583
12584
12585
12586
12587
12588
12589
12590
12591
12592
12593 striplib=
12594 old_striplib=
12595 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
12596 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
12597 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
12598   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
12599   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
12600   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12601 $as_echo "yes" >&6; }
12602 else
12603 # FIXME - insert some real tests, host_os isn't really good enough
12604   case $host_os in
12605   darwin*)
12606     if test -n "$STRIP" ; then
12607       striplib="$STRIP -x"
12608       old_striplib="$STRIP -S"
12609       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12610 $as_echo "yes" >&6; }
12611     else
12612       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12613 $as_echo "no" >&6; }
12614     fi
12615     ;;
12616   *)
12617     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12618 $as_echo "no" >&6; }
12619     ;;
12620   esac
12621 fi
12622
12623
12624
12625
12626
12627
12628
12629
12630
12631
12632
12633
12634   # Report which library types will actually be built
12635   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
12636 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
12637   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
12638 $as_echo "$can_build_shared" >&6; }
12639
12640   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
12641 $as_echo_n "checking whether to build shared libraries... " >&6; }
12642   test "$can_build_shared" = "no" && enable_shared=no
12643
12644   # On AIX, shared libraries and static libraries use the same namespace, and
12645   # are all built from PIC.
12646   case $host_os in
12647   aix3*)
12648     test "$enable_shared" = yes && enable_static=no
12649     if test -n "$RANLIB"; then
12650       archive_cmds="$archive_cmds~\$RANLIB \$lib"
12651       postinstall_cmds='$RANLIB $lib'
12652     fi
12653     ;;
12654
12655   aix[4-9]*)
12656     if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
12657       test "$enable_shared" = yes && enable_static=no
12658     fi
12659     ;;
12660   esac
12661   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
12662 $as_echo "$enable_shared" >&6; }
12663
12664   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
12665 $as_echo_n "checking whether to build static libraries... " >&6; }
12666   # Make sure either enable_shared or enable_static is yes.
12667   test "$enable_shared" = yes || enable_static=yes
12668   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
12669 $as_echo "$enable_static" >&6; }
12670
12671
12672
12673
12674 fi
12675 ac_ext=c
12676 ac_cpp='$CPP $CPPFLAGS'
12677 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12678 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12679 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12680
12681 CC="$lt_save_CC"
12682
12683
12684 ac_ext=cpp
12685 ac_cpp='$CXXCPP $CPPFLAGS'
12686 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12687 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12688 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12689
12690 archive_cmds_need_lc_CXX=no
12691 allow_undefined_flag_CXX=
12692 always_export_symbols_CXX=no
12693 archive_expsym_cmds_CXX=
12694 compiler_needs_object_CXX=no
12695 export_dynamic_flag_spec_CXX=
12696 hardcode_direct_CXX=no
12697 hardcode_direct_absolute_CXX=no
12698 hardcode_libdir_flag_spec_CXX=
12699 hardcode_libdir_flag_spec_ld_CXX=
12700 hardcode_libdir_separator_CXX=
12701 hardcode_minus_L_CXX=no
12702 hardcode_shlibpath_var_CXX=unsupported
12703 hardcode_automatic_CXX=no
12704 inherit_rpath_CXX=no
12705 module_cmds_CXX=
12706 module_expsym_cmds_CXX=
12707 link_all_deplibs_CXX=unknown
12708 old_archive_cmds_CXX=$old_archive_cmds
12709 no_undefined_flag_CXX=
12710 whole_archive_flag_spec_CXX=
12711 enable_shared_with_static_runtimes_CXX=no
12712
12713 # Source file extension for C++ test sources.
12714 ac_ext=cpp
12715
12716 # Object file extension for compiled C++ test sources.
12717 objext=o
12718 objext_CXX=$objext
12719
12720 # No sense in running all these tests if we already determined that
12721 # the CXX compiler isn't working.  Some variables (like enable_shared)
12722 # are currently assumed to apply to all compilers on this platform,
12723 # and will be corrupted by setting them based on a non-working compiler.
12724 if test "$_lt_caught_CXX_error" != yes; then
12725   # Code to be used in simple compile tests
12726   lt_simple_compile_test_code="int some_variable = 0;"
12727
12728   # Code to be used in simple link tests
12729   lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
12730
12731   # ltmain only uses $CC for tagged configurations so make sure $CC is set.
12732
12733
12734
12735
12736
12737
12738 # If no C compiler was specified, use CC.
12739 LTCC=${LTCC-"$CC"}
12740
12741 # If no C compiler flags were specified, use CFLAGS.
12742 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
12743
12744 # Allow CC to be a program name with arguments.
12745 compiler=$CC
12746
12747
12748   # save warnings/boilerplate of simple test code
12749   ac_outfile=conftest.$ac_objext
12750 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
12751 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
12752 _lt_compiler_boilerplate=`cat conftest.err`
12753 $RM conftest*
12754
12755   ac_outfile=conftest.$ac_objext
12756 echo "$lt_simple_link_test_code" >conftest.$ac_ext
12757 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
12758 _lt_linker_boilerplate=`cat conftest.err`
12759 $RM -r conftest*
12760
12761
12762   # Allow CC to be a program name with arguments.
12763   lt_save_CC=$CC
12764   lt_save_LD=$LD
12765   lt_save_GCC=$GCC
12766   GCC=$GXX
12767   lt_save_with_gnu_ld=$with_gnu_ld
12768   lt_save_path_LD=$lt_cv_path_LD
12769   if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
12770     lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
12771   else
12772     $as_unset lt_cv_prog_gnu_ld
12773   fi
12774   if test -n "${lt_cv_path_LDCXX+set}"; then
12775     lt_cv_path_LD=$lt_cv_path_LDCXX
12776   else
12777     $as_unset lt_cv_path_LD
12778   fi
12779   test -z "${LDCXX+set}" || LD=$LDCXX
12780   CC=${CXX-"c++"}
12781   compiler=$CC
12782   compiler_CXX=$CC
12783   for cc_temp in $compiler""; do
12784   case $cc_temp in
12785     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
12786     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
12787     \-*) ;;
12788     *) break;;
12789   esac
12790 done
12791 cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
12792
12793
12794   if test -n "$compiler"; then
12795     # We don't want -fno-exception when compiling C++ code, so set the
12796     # no_builtin_flag separately
12797     if test "$GXX" = yes; then
12798       lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
12799     else
12800       lt_prog_compiler_no_builtin_flag_CXX=
12801     fi
12802
12803     if test "$GXX" = yes; then
12804       # Set up default GNU C++ configuration
12805
12806
12807
12808 # Check whether --with-gnu-ld was given.
12809 if test "${with_gnu_ld+set}" = set; then :
12810   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
12811 else
12812   with_gnu_ld=no
12813 fi
12814
12815 ac_prog=ld
12816 if test "$GCC" = yes; then
12817   # Check if gcc -print-prog-name=ld gives a path.
12818   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
12819 $as_echo_n "checking for ld used by $CC... " >&6; }
12820   case $host in
12821   *-*-mingw*)
12822     # gcc leaves a trailing carriage return which upsets mingw
12823     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
12824   *)
12825     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
12826   esac
12827   case $ac_prog in
12828     # Accept absolute paths.
12829     [\\/]* | ?:[\\/]*)
12830       re_direlt='/[^/][^/]*/\.\./'
12831       # Canonicalize the pathname of ld
12832       ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
12833       while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
12834         ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
12835       done
12836       test -z "$LD" && LD="$ac_prog"
12837       ;;
12838   "")
12839     # If it fails, then pretend we aren't using GCC.
12840     ac_prog=ld
12841     ;;
12842   *)
12843     # If it is relative, then search for the first ld in PATH.
12844     with_gnu_ld=unknown
12845     ;;
12846   esac
12847 elif test "$with_gnu_ld" = yes; then
12848   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
12849 $as_echo_n "checking for GNU ld... " >&6; }
12850 else
12851   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
12852 $as_echo_n "checking for non-GNU ld... " >&6; }
12853 fi
12854 if test "${lt_cv_path_LD+set}" = set; then :
12855   $as_echo_n "(cached) " >&6
12856 else
12857   if test -z "$LD"; then
12858   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
12859   for ac_dir in $PATH; do
12860     IFS="$lt_save_ifs"
12861     test -z "$ac_dir" && ac_dir=.
12862     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
12863       lt_cv_path_LD="$ac_dir/$ac_prog"
12864       # Check to see if the program is GNU ld.  I'd rather use --version,
12865       # but apparently some variants of GNU ld only accept -v.
12866       # Break only if it was the GNU/non-GNU ld that we prefer.
12867       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
12868       *GNU* | *'with BFD'*)
12869         test "$with_gnu_ld" != no && break
12870         ;;
12871       *)
12872         test "$with_gnu_ld" != yes && break
12873         ;;
12874       esac
12875     fi
12876   done
12877   IFS="$lt_save_ifs"
12878 else
12879   lt_cv_path_LD="$LD" # Let the user override the test with a path.
12880 fi
12881 fi
12882
12883 LD="$lt_cv_path_LD"
12884 if test -n "$LD"; then
12885   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
12886 $as_echo "$LD" >&6; }
12887 else
12888   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12889 $as_echo "no" >&6; }
12890 fi
12891 test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
12892 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
12893 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
12894 if test "${lt_cv_prog_gnu_ld+set}" = set; then :
12895   $as_echo_n "(cached) " >&6
12896 else
12897   # I'd rather use --version here, but apparently some GNU lds only accept -v.
12898 case `$LD -v 2>&1 </dev/null` in
12899 *GNU* | *'with BFD'*)
12900   lt_cv_prog_gnu_ld=yes
12901   ;;
12902 *)
12903   lt_cv_prog_gnu_ld=no
12904   ;;
12905 esac
12906 fi
12907 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
12908 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
12909 with_gnu_ld=$lt_cv_prog_gnu_ld
12910
12911
12912
12913
12914
12915
12916
12917       # Check if GNU C++ uses GNU ld as the underlying linker, since the
12918       # archiving commands below assume that GNU ld is being used.
12919       if test "$with_gnu_ld" = yes; then
12920         archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
12921         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'
12922
12923         hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12924         export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12925
12926         # If archive_cmds runs LD, not CC, wlarc should be empty
12927         # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
12928         #     investigate it a little bit more. (MM)
12929         wlarc='${wl}'
12930
12931         # ancient GNU ld didn't support --whole-archive et. al.
12932         if eval "`$CC -print-prog-name=ld` --help 2>&1" |
12933           $GREP 'no-whole-archive' > /dev/null; then
12934           whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
12935         else
12936           whole_archive_flag_spec_CXX=
12937         fi
12938       else
12939         with_gnu_ld=no
12940         wlarc=
12941
12942         # A generic and very simple default shared library creation
12943         # command for GNU C++ for the case where it uses the native
12944         # linker, instead of GNU ld.  If possible, this setting should
12945         # overridden to take advantage of the native linker features on
12946         # the platform it is being used on.
12947         archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
12948       fi
12949
12950       # Commands to make compiler produce verbose output that lists
12951       # what "hidden" libraries, object files and flags are used when
12952       # linking a shared library.
12953       output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
12954
12955     else
12956       GXX=no
12957       with_gnu_ld=no
12958       wlarc=
12959     fi
12960
12961     # PORTME: fill in a description of your system's C++ link characteristics
12962     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
12963 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
12964     ld_shlibs_CXX=yes
12965     case $host_os in
12966       aix3*)
12967         # FIXME: insert proper C++ library support
12968         ld_shlibs_CXX=no
12969         ;;
12970       aix[4-9]*)
12971         if test "$host_cpu" = ia64; then
12972           # On IA64, the linker does run time linking by default, so we don't
12973           # have to do anything special.
12974           aix_use_runtimelinking=no
12975           exp_sym_flag='-Bexport'
12976           no_entry_flag=""
12977         else
12978           aix_use_runtimelinking=no
12979
12980           # Test if we are trying to use run time linking or normal
12981           # AIX style linking. If -brtl is somewhere in LDFLAGS, we
12982           # need to do runtime linking.
12983           case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
12984             for ld_flag in $LDFLAGS; do
12985               case $ld_flag in
12986               *-brtl*)
12987                 aix_use_runtimelinking=yes
12988                 break
12989                 ;;
12990               esac
12991             done
12992             ;;
12993           esac
12994
12995           exp_sym_flag='-bexport'
12996           no_entry_flag='-bnoentry'
12997         fi
12998
12999         # When large executables or shared objects are built, AIX ld can
13000         # have problems creating the table of contents.  If linking a library
13001         # or program results in "error TOC overflow" add -mminimal-toc to
13002         # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
13003         # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
13004
13005         archive_cmds_CXX=''
13006         hardcode_direct_CXX=yes
13007         hardcode_direct_absolute_CXX=yes
13008         hardcode_libdir_separator_CXX=':'
13009         link_all_deplibs_CXX=yes
13010         file_list_spec_CXX='${wl}-f,'
13011
13012         if test "$GXX" = yes; then
13013           case $host_os in aix4.[012]|aix4.[012].*)
13014           # We only want to do this on AIX 4.2 and lower, the check
13015           # below for broken collect2 doesn't work under 4.3+
13016           collect2name=`${CC} -print-prog-name=collect2`
13017           if test -f "$collect2name" &&
13018              strings "$collect2name" | $GREP resolve_lib_name >/dev/null
13019           then
13020             # We have reworked collect2
13021             :
13022           else
13023             # We have old collect2
13024             hardcode_direct_CXX=unsupported
13025             # It fails to find uninstalled libraries when the uninstalled
13026             # path is not listed in the libpath.  Setting hardcode_minus_L
13027             # to unsupported forces relinking
13028             hardcode_minus_L_CXX=yes
13029             hardcode_libdir_flag_spec_CXX='-L$libdir'
13030             hardcode_libdir_separator_CXX=
13031           fi
13032           esac
13033           shared_flag='-shared'
13034           if test "$aix_use_runtimelinking" = yes; then
13035             shared_flag="$shared_flag "'${wl}-G'
13036           fi
13037         else
13038           # not using gcc
13039           if test "$host_cpu" = ia64; then
13040           # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
13041           # chokes on -Wl,-G. The following line is correct:
13042           shared_flag='-G'
13043           else
13044             if test "$aix_use_runtimelinking" = yes; then
13045               shared_flag='${wl}-G'
13046             else
13047               shared_flag='${wl}-bM:SRE'
13048             fi
13049           fi
13050         fi
13051
13052         export_dynamic_flag_spec_CXX='${wl}-bexpall'
13053         # It seems that -bexpall does not export symbols beginning with
13054         # underscore (_), so it is better to generate a list of symbols to
13055         # export.
13056         always_export_symbols_CXX=yes
13057         if test "$aix_use_runtimelinking" = yes; then
13058           # Warning - without using the other runtime loading flags (-brtl),
13059           # -berok will link without error, but may produce a broken library.
13060           allow_undefined_flag_CXX='-berok'
13061           # Determine the default libpath from the value encoded in an empty
13062           # executable.
13063           cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13064 /* end confdefs.h.  */
13065
13066 int
13067 main ()
13068 {
13069
13070   ;
13071   return 0;
13072 }
13073 _ACEOF
13074 if ac_fn_cxx_try_link "$LINENO"; then :
13075
13076 lt_aix_libpath_sed='
13077     /Import File Strings/,/^$/ {
13078         /^0/ {
13079             s/^0  *\(.*\)$/\1/
13080             p
13081         }
13082     }'
13083 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13084 # Check for a 64-bit object if we didn't find anything.
13085 if test -z "$aix_libpath"; then
13086   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13087 fi
13088 fi
13089 rm -f core conftest.err conftest.$ac_objext \
13090     conftest$ac_exeext conftest.$ac_ext
13091 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
13092
13093           hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
13094
13095           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"
13096         else
13097           if test "$host_cpu" = ia64; then
13098             hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
13099             allow_undefined_flag_CXX="-z nodefs"
13100             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"
13101           else
13102             # Determine the default libpath from the value encoded in an
13103             # empty executable.
13104             cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13105 /* end confdefs.h.  */
13106
13107 int
13108 main ()
13109 {
13110
13111   ;
13112   return 0;
13113 }
13114 _ACEOF
13115 if ac_fn_cxx_try_link "$LINENO"; then :
13116
13117 lt_aix_libpath_sed='
13118     /Import File Strings/,/^$/ {
13119         /^0/ {
13120             s/^0  *\(.*\)$/\1/
13121             p
13122         }
13123     }'
13124 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13125 # Check for a 64-bit object if we didn't find anything.
13126 if test -z "$aix_libpath"; then
13127   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13128 fi
13129 fi
13130 rm -f core conftest.err conftest.$ac_objext \
13131     conftest$ac_exeext conftest.$ac_ext
13132 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
13133
13134             hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
13135             # Warning - without using the other run time loading flags,
13136             # -berok will link without error, but may produce a broken library.
13137             no_undefined_flag_CXX=' ${wl}-bernotok'
13138             allow_undefined_flag_CXX=' ${wl}-berok'
13139             # Exported symbols can be pulled into shared objects from archives
13140             whole_archive_flag_spec_CXX='$convenience'
13141             archive_cmds_need_lc_CXX=yes
13142             # This is similar to how AIX traditionally builds its shared
13143             # libraries.
13144             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'
13145           fi
13146         fi
13147         ;;
13148
13149       beos*)
13150         if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
13151           allow_undefined_flag_CXX=unsupported
13152           # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
13153           # support --undefined.  This deserves some investigation.  FIXME
13154           archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13155         else
13156           ld_shlibs_CXX=no
13157         fi
13158         ;;
13159
13160       chorus*)
13161         case $cc_basename in
13162           *)
13163           # FIXME: insert proper C++ library support
13164           ld_shlibs_CXX=no
13165           ;;
13166         esac
13167         ;;
13168
13169       cygwin* | mingw* | pw32* | cegcc*)
13170         # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
13171         # as there is no search path for DLLs.
13172         hardcode_libdir_flag_spec_CXX='-L$libdir'
13173         allow_undefined_flag_CXX=unsupported
13174         always_export_symbols_CXX=no
13175         enable_shared_with_static_runtimes_CXX=yes
13176
13177         if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
13178           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'
13179           # If the export-symbols file already is a .def file (1st line
13180           # is EXPORTS), use it as is; otherwise, prepend...
13181           archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
13182             cp $export_symbols $output_objdir/$soname.def;
13183           else
13184             echo EXPORTS > $output_objdir/$soname.def;
13185             cat $export_symbols >> $output_objdir/$soname.def;
13186           fi~
13187           $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'
13188         else
13189           ld_shlibs_CXX=no
13190         fi
13191         ;;
13192       darwin* | rhapsody*)
13193
13194
13195   archive_cmds_need_lc_CXX=no
13196   hardcode_direct_CXX=no
13197   hardcode_automatic_CXX=yes
13198   hardcode_shlibpath_var_CXX=unsupported
13199   whole_archive_flag_spec_CXX=''
13200   link_all_deplibs_CXX=yes
13201   allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
13202   case $cc_basename in
13203      ifort*) _lt_dar_can_shared=yes ;;
13204      *) _lt_dar_can_shared=$GCC ;;
13205   esac
13206   if test "$_lt_dar_can_shared" = "yes"; then
13207     output_verbose_link_cmd=echo
13208     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}"
13209     module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
13210     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}"
13211     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}"
13212        if test "$lt_cv_apple_cc_single_mod" != "yes"; then
13213       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}"
13214       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}"
13215     fi
13216
13217   else
13218   ld_shlibs_CXX=no
13219   fi
13220
13221         ;;
13222
13223       dgux*)
13224         case $cc_basename in
13225           ec++*)
13226             # FIXME: insert proper C++ library support
13227             ld_shlibs_CXX=no
13228             ;;
13229           ghcx*)
13230             # Green Hills C++ Compiler
13231             # FIXME: insert proper C++ library support
13232             ld_shlibs_CXX=no
13233             ;;
13234           *)
13235             # FIXME: insert proper C++ library support
13236             ld_shlibs_CXX=no
13237             ;;
13238         esac
13239         ;;
13240
13241       freebsd[12]*)
13242         # C++ shared libraries reported to be fairly broken before
13243         # switch to ELF
13244         ld_shlibs_CXX=no
13245         ;;
13246
13247       freebsd-elf*)
13248         archive_cmds_need_lc_CXX=no
13249         ;;
13250
13251       freebsd* | dragonfly*)
13252         # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
13253         # conventions
13254         ld_shlibs_CXX=yes
13255         ;;
13256
13257       gnu*)
13258         ;;
13259
13260       hpux9*)
13261         hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
13262         hardcode_libdir_separator_CXX=:
13263         export_dynamic_flag_spec_CXX='${wl}-E'
13264         hardcode_direct_CXX=yes
13265         hardcode_minus_L_CXX=yes # Not in the search PATH,
13266                                              # but as the default
13267                                              # location of the library.
13268
13269         case $cc_basename in
13270           CC*)
13271             # FIXME: insert proper C++ library support
13272             ld_shlibs_CXX=no
13273             ;;
13274           aCC*)
13275             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'
13276             # Commands to make compiler produce verbose output that lists
13277             # what "hidden" libraries, object files and flags are used when
13278             # linking a shared library.
13279             #
13280             # There doesn't appear to be a way to prevent this compiler from
13281             # explicitly linking system object files so we need to strip them
13282             # from the output so that they don't get included in the library
13283             # dependencies.
13284             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'
13285             ;;
13286           *)
13287             if test "$GXX" = yes; then
13288               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'
13289             else
13290               # FIXME: insert proper C++ library support
13291               ld_shlibs_CXX=no
13292             fi
13293             ;;
13294         esac
13295         ;;
13296
13297       hpux10*|hpux11*)
13298         if test $with_gnu_ld = no; then
13299           hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
13300           hardcode_libdir_separator_CXX=:
13301
13302           case $host_cpu in
13303             hppa*64*|ia64*)
13304               ;;
13305             *)
13306               export_dynamic_flag_spec_CXX='${wl}-E'
13307               ;;
13308           esac
13309         fi
13310         case $host_cpu in
13311           hppa*64*|ia64*)
13312             hardcode_direct_CXX=no
13313             hardcode_shlibpath_var_CXX=no
13314             ;;
13315           *)
13316             hardcode_direct_CXX=yes
13317             hardcode_direct_absolute_CXX=yes
13318             hardcode_minus_L_CXX=yes # Not in the search PATH,
13319                                                  # but as the default
13320                                                  # location of the library.
13321             ;;
13322         esac
13323
13324         case $cc_basename in
13325           CC*)
13326             # FIXME: insert proper C++ library support
13327             ld_shlibs_CXX=no
13328             ;;
13329           aCC*)
13330             case $host_cpu in
13331               hppa*64*)
13332                 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13333                 ;;
13334               ia64*)
13335                 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13336                 ;;
13337               *)
13338                 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13339                 ;;
13340             esac
13341             # Commands to make compiler produce verbose output that lists
13342             # what "hidden" libraries, object files and flags are used when
13343             # linking a shared library.
13344             #
13345             # There doesn't appear to be a way to prevent this compiler from
13346             # explicitly linking system object files so we need to strip them
13347             # from the output so that they don't get included in the library
13348             # dependencies.
13349             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'
13350             ;;
13351           *)
13352             if test "$GXX" = yes; then
13353               if test $with_gnu_ld = no; then
13354                 case $host_cpu in
13355                   hppa*64*)
13356                     archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13357                     ;;
13358                   ia64*)
13359                     archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13360                     ;;
13361                   *)
13362                     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'
13363                     ;;
13364                 esac
13365               fi
13366             else
13367               # FIXME: insert proper C++ library support
13368               ld_shlibs_CXX=no
13369             fi
13370             ;;
13371         esac
13372         ;;
13373
13374       interix[3-9]*)
13375         hardcode_direct_CXX=no
13376         hardcode_shlibpath_var_CXX=no
13377         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13378         export_dynamic_flag_spec_CXX='${wl}-E'
13379         # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
13380         # Instead, shared libraries are loaded at an image base (0x10000000 by
13381         # default) and relocated if they conflict, which is a slow very memory
13382         # consuming and fragmenting process.  To avoid this, we pick a random,
13383         # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
13384         # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
13385         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'
13386         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'
13387         ;;
13388       irix5* | irix6*)
13389         case $cc_basename in
13390           CC*)
13391             # SGI C++
13392             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'
13393
13394             # Archives containing C++ object files must be created using
13395             # "CC -ar", where "CC" is the IRIX C++ compiler.  This is
13396             # necessary to make sure instantiated templates are included
13397             # in the archive.
13398             old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
13399             ;;
13400           *)
13401             if test "$GXX" = yes; then
13402               if test "$with_gnu_ld" = no; then
13403                 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'
13404               else
13405                 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'
13406               fi
13407             fi
13408             link_all_deplibs_CXX=yes
13409             ;;
13410         esac
13411         hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13412         hardcode_libdir_separator_CXX=:
13413         inherit_rpath_CXX=yes
13414         ;;
13415
13416       linux* | k*bsd*-gnu)
13417         case $cc_basename in
13418           KCC*)
13419             # Kuck and Associates, Inc. (KAI) C++ Compiler
13420
13421             # KCC will only create a shared library if the output file
13422             # ends with ".so" (or ".sl" for HP-UX), so rename the library
13423             # to its proper name (with version) after linking.
13424             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'
13425             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'
13426             # Commands to make compiler produce verbose output that lists
13427             # what "hidden" libraries, object files and flags are used when
13428             # linking a shared library.
13429             #
13430             # There doesn't appear to be a way to prevent this compiler from
13431             # explicitly linking system object files so we need to strip them
13432             # from the output so that they don't get included in the library
13433             # dependencies.
13434             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'
13435
13436             hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13437             export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13438
13439             # Archives containing C++ object files must be created using
13440             # "CC -Bstatic", where "CC" is the KAI C++ compiler.
13441             old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
13442             ;;
13443           icpc* | ecpc* )
13444             # Intel C++
13445             with_gnu_ld=yes
13446             # version 8.0 and above of icpc choke on multiply defined symbols
13447             # if we add $predep_objects and $postdep_objects, however 7.1 and
13448             # earlier do not add the objects themselves.
13449             case `$CC -V 2>&1` in
13450               *"Version 7."*)
13451                 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
13452                 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'
13453                 ;;
13454               *)  # Version 8.0 or newer
13455                 tmp_idyn=
13456                 case $host_cpu in
13457                   ia64*) tmp_idyn=' -i_dynamic';;
13458                 esac
13459                 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13460                 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'
13461                 ;;
13462             esac
13463             archive_cmds_need_lc_CXX=no
13464             hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13465             export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13466             whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
13467             ;;
13468           pgCC* | pgcpp*)
13469             # Portland Group C++ compiler
13470             case `$CC -V` in
13471             *pgCC\ [1-5]* | *pgcpp\ [1-5]*)
13472               prelink_cmds_CXX='tpldir=Template.dir~
13473                 rm -rf $tpldir~
13474                 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
13475                 compile_command="$compile_command `find $tpldir -name \*.o | $NL2SP`"'
13476               old_archive_cmds_CXX='tpldir=Template.dir~
13477                 rm -rf $tpldir~
13478                 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
13479                 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | $NL2SP`~
13480                 $RANLIB $oldlib'
13481               archive_cmds_CXX='tpldir=Template.dir~
13482                 rm -rf $tpldir~
13483                 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
13484                 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
13485               archive_expsym_cmds_CXX='tpldir=Template.dir~
13486                 rm -rf $tpldir~
13487                 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
13488                 $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'
13489               ;;
13490             *) # Version 6 will use weak symbols
13491               archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
13492               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'
13493               ;;
13494             esac
13495
13496             hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
13497             export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13498             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'
13499             ;;
13500           cxx*)
13501             # Compaq C++
13502             archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
13503             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'
13504
13505             runpath_var=LD_RUN_PATH
13506             hardcode_libdir_flag_spec_CXX='-rpath $libdir'
13507             hardcode_libdir_separator_CXX=:
13508
13509             # Commands to make compiler produce verbose output that lists
13510             # what "hidden" libraries, object files and flags are used when
13511             # linking a shared library.
13512             #
13513             # There doesn't appear to be a way to prevent this compiler from
13514             # explicitly linking system object files so we need to strip them
13515             # from the output so that they don't get included in the library
13516             # dependencies.
13517             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'
13518             ;;
13519           xl*)
13520             # IBM XL 8.0 on PPC, with GNU ld
13521             hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13522             export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13523             archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13524             if test "x$supports_anon_versioning" = xyes; then
13525               archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
13526                 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
13527                 echo "local: *; };" >> $output_objdir/$libname.ver~
13528                 $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
13529             fi
13530             ;;
13531           *)
13532             case `$CC -V 2>&1 | sed 5q` in
13533             *Sun\ C*)
13534               # Sun C++ 5.9
13535               no_undefined_flag_CXX=' -zdefs'
13536               archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13537               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'
13538               hardcode_libdir_flag_spec_CXX='-R$libdir'
13539               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'
13540               compiler_needs_object_CXX=yes
13541
13542               # Not sure whether something based on
13543               # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
13544               # would be better.
13545               output_verbose_link_cmd='echo'
13546
13547               # Archives containing C++ object files must be created using
13548               # "CC -xar", where "CC" is the Sun C++ compiler.  This is
13549               # necessary to make sure instantiated templates are included
13550               # in the archive.
13551               old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
13552               ;;
13553             esac
13554             ;;
13555         esac
13556         ;;
13557
13558       lynxos*)
13559         # FIXME: insert proper C++ library support
13560         ld_shlibs_CXX=no
13561         ;;
13562
13563       m88k*)
13564         # FIXME: insert proper C++ library support
13565         ld_shlibs_CXX=no
13566         ;;
13567
13568       mvs*)
13569         case $cc_basename in
13570           cxx*)
13571             # FIXME: insert proper C++ library support
13572             ld_shlibs_CXX=no
13573             ;;
13574           *)
13575             # FIXME: insert proper C++ library support
13576             ld_shlibs_CXX=no
13577             ;;
13578         esac
13579         ;;
13580
13581       netbsd*)
13582         if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
13583           archive_cmds_CXX='$LD -Bshareable  -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
13584           wlarc=
13585           hardcode_libdir_flag_spec_CXX='-R$libdir'
13586           hardcode_direct_CXX=yes
13587           hardcode_shlibpath_var_CXX=no
13588         fi
13589         # Workaround some broken pre-1.5 toolchains
13590         output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
13591         ;;
13592
13593       *nto* | *qnx*)
13594         ld_shlibs_CXX=yes
13595         ;;
13596
13597       openbsd2*)
13598         # C++ shared libraries are fairly broken
13599         ld_shlibs_CXX=no
13600         ;;
13601
13602       openbsd*)
13603         if test -f /usr/libexec/ld.so; then
13604           hardcode_direct_CXX=yes
13605           hardcode_shlibpath_var_CXX=no
13606           hardcode_direct_absolute_CXX=yes
13607           archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
13608           hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13609           if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13610             archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
13611             export_dynamic_flag_spec_CXX='${wl}-E'
13612             whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
13613           fi
13614           output_verbose_link_cmd=echo
13615         else
13616           ld_shlibs_CXX=no
13617         fi
13618         ;;
13619
13620       osf3* | osf4* | osf5*)
13621         case $cc_basename in
13622           KCC*)
13623             # Kuck and Associates, Inc. (KAI) C++ Compiler
13624
13625             # KCC will only create a shared library if the output file
13626             # ends with ".so" (or ".sl" for HP-UX), so rename the library
13627             # to its proper name (with version) after linking.
13628             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'
13629
13630             hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13631             hardcode_libdir_separator_CXX=:
13632
13633             # Archives containing C++ object files must be created using
13634             # the KAI C++ compiler.
13635             case $host in
13636               osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
13637               *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
13638             esac
13639             ;;
13640           RCC*)
13641             # Rational C++ 2.4.1
13642             # FIXME: insert proper C++ library support
13643             ld_shlibs_CXX=no
13644             ;;
13645           cxx*)
13646             case $host in
13647               osf3*)
13648                 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
13649                 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'
13650                 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13651                 ;;
13652               *)
13653                 allow_undefined_flag_CXX=' -expect_unresolved \*'
13654                 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'
13655                 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
13656                   echo "-hidden">> $lib.exp~
13657                   $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~
13658                   $RM $lib.exp'
13659                 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
13660                 ;;
13661             esac
13662
13663             hardcode_libdir_separator_CXX=:
13664
13665             # Commands to make compiler produce verbose output that lists
13666             # what "hidden" libraries, object files and flags are used when
13667             # linking a shared library.
13668             #
13669             # There doesn't appear to be a way to prevent this compiler from
13670             # explicitly linking system object files so we need to strip them
13671             # from the output so that they don't get included in the library
13672             # dependencies.
13673             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'
13674             ;;
13675           *)
13676             if test "$GXX" = yes && test "$with_gnu_ld" = no; then
13677               allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
13678               case $host in
13679                 osf3*)
13680                   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'
13681                   ;;
13682                 *)
13683                   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'
13684                   ;;
13685               esac
13686
13687               hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13688               hardcode_libdir_separator_CXX=:
13689
13690               # Commands to make compiler produce verbose output that lists
13691               # what "hidden" libraries, object files and flags are used when
13692               # linking a shared library.
13693               output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
13694
13695             else
13696               # FIXME: insert proper C++ library support
13697               ld_shlibs_CXX=no
13698             fi
13699             ;;
13700         esac
13701         ;;
13702
13703       psos*)
13704         # FIXME: insert proper C++ library support
13705         ld_shlibs_CXX=no
13706         ;;
13707
13708       sunos4*)
13709         case $cc_basename in
13710           CC*)
13711             # Sun C++ 4.x
13712             # FIXME: insert proper C++ library support
13713             ld_shlibs_CXX=no
13714             ;;
13715           lcc*)
13716             # Lucid
13717             # FIXME: insert proper C++ library support
13718             ld_shlibs_CXX=no
13719             ;;
13720           *)
13721             # FIXME: insert proper C++ library support
13722             ld_shlibs_CXX=no
13723             ;;
13724         esac
13725         ;;
13726
13727       solaris*)
13728         case $cc_basename in
13729           CC*)
13730             # Sun C++ 4.2, 5.x and Centerline C++
13731             archive_cmds_need_lc_CXX=yes
13732             no_undefined_flag_CXX=' -zdefs'
13733             archive_cmds_CXX='$CC -G${allow_undefined_flag}  -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13734             archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13735               $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'
13736
13737             hardcode_libdir_flag_spec_CXX='-R$libdir'
13738             hardcode_shlibpath_var_CXX=no
13739             case $host_os in
13740               solaris2.[0-5] | solaris2.[0-5].*) ;;
13741               *)
13742                 # The compiler driver will combine and reorder linker options,
13743                 # but understands `-z linker_flag'.
13744                 # Supported since Solaris 2.6 (maybe 2.5.1?)
13745                 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
13746                 ;;
13747             esac
13748             link_all_deplibs_CXX=yes
13749
13750             output_verbose_link_cmd='echo'
13751
13752             # Archives containing C++ object files must be created using
13753             # "CC -xar", where "CC" is the Sun C++ compiler.  This is
13754             # necessary to make sure instantiated templates are included
13755             # in the archive.
13756             old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
13757             ;;
13758           gcx*)
13759             # Green Hills C++ Compiler
13760             archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
13761
13762             # The C++ compiler must be used to create the archive.
13763             old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
13764             ;;
13765           *)
13766             # GNU C++ compiler with Solaris linker
13767             if test "$GXX" = yes && test "$with_gnu_ld" = no; then
13768               no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
13769               if $CC --version | $GREP -v '^2\.7' > /dev/null; then
13770                 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
13771                 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13772                   $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
13773
13774                 # Commands to make compiler produce verbose output that lists
13775                 # what "hidden" libraries, object files and flags are used when
13776                 # linking a shared library.
13777                 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
13778               else
13779                 # g++ 2.7 appears to require `-G' NOT `-shared' on this
13780                 # platform.
13781                 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
13782                 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13783                   $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
13784
13785                 # Commands to make compiler produce verbose output that lists
13786                 # what "hidden" libraries, object files and flags are used when
13787                 # linking a shared library.
13788                 output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
13789               fi
13790
13791               hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
13792               case $host_os in
13793                 solaris2.[0-5] | solaris2.[0-5].*) ;;
13794                 *)
13795                   whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
13796                   ;;
13797               esac
13798             fi
13799             ;;
13800         esac
13801         ;;
13802
13803     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
13804       no_undefined_flag_CXX='${wl}-z,text'
13805       archive_cmds_need_lc_CXX=no
13806       hardcode_shlibpath_var_CXX=no
13807       runpath_var='LD_RUN_PATH'
13808
13809       case $cc_basename in
13810         CC*)
13811           archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13812           archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13813           ;;
13814         *)
13815           archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13816           archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13817           ;;
13818       esac
13819       ;;
13820
13821       sysv5* | sco3.2v5* | sco5v6*)
13822         # Note: We can NOT use -z defs as we might desire, because we do not
13823         # link with -lc, and that would cause any symbols used from libc to
13824         # always be unresolved, which means just about no library would
13825         # ever link correctly.  If we're not using GNU ld we use -z text
13826         # though, which does catch some bad symbols but isn't as heavy-handed
13827         # as -z defs.
13828         no_undefined_flag_CXX='${wl}-z,text'
13829         allow_undefined_flag_CXX='${wl}-z,nodefs'
13830         archive_cmds_need_lc_CXX=no
13831         hardcode_shlibpath_var_CXX=no
13832         hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir'
13833         hardcode_libdir_separator_CXX=':'
13834         link_all_deplibs_CXX=yes
13835         export_dynamic_flag_spec_CXX='${wl}-Bexport'
13836         runpath_var='LD_RUN_PATH'
13837
13838         case $cc_basename in
13839           CC*)
13840             archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13841             archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13842             ;;
13843           *)
13844             archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13845             archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13846             ;;
13847         esac
13848       ;;
13849
13850       tandem*)
13851         case $cc_basename in
13852           NCC*)
13853             # NonStop-UX NCC 3.20
13854             # FIXME: insert proper C++ library support
13855             ld_shlibs_CXX=no
13856             ;;
13857           *)
13858             # FIXME: insert proper C++ library support
13859             ld_shlibs_CXX=no
13860             ;;
13861         esac
13862         ;;
13863
13864       vxworks*)
13865         # FIXME: insert proper C++ library support
13866         ld_shlibs_CXX=no
13867         ;;
13868
13869       *)
13870         # FIXME: insert proper C++ library support
13871         ld_shlibs_CXX=no
13872         ;;
13873     esac
13874
13875     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
13876 $as_echo "$ld_shlibs_CXX" >&6; }
13877     test "$ld_shlibs_CXX" = no && can_build_shared=no
13878
13879     GCC_CXX="$GXX"
13880     LD_CXX="$LD"
13881
13882     ## CAVEAT EMPTOR:
13883     ## There is no encapsulation within the following macros, do not change
13884     ## the running order or otherwise move them around unless you know exactly
13885     ## what you are doing...
13886     # Dependencies to place before and after the object being linked:
13887 predep_objects_CXX=
13888 postdep_objects_CXX=
13889 predeps_CXX=
13890 postdeps_CXX=
13891 compiler_lib_search_path_CXX=
13892
13893 cat > conftest.$ac_ext <<_LT_EOF
13894 class Foo
13895 {
13896 public:
13897   Foo (void) { a = 0; }
13898 private:
13899   int a;
13900 };
13901 _LT_EOF
13902
13903 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13904   (eval $ac_compile) 2>&5
13905   ac_status=$?
13906   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13907   test $ac_status = 0; }; then
13908   # Parse the compiler output and extract the necessary
13909   # objects, libraries and library flags.
13910
13911   # Sentinel used to keep track of whether or not we are before
13912   # the conftest object file.
13913   pre_test_object_deps_done=no
13914
13915   for p in `eval "$output_verbose_link_cmd"`; do
13916     case $p in
13917
13918     -L* | -R* | -l*)
13919        # Some compilers place space between "-{L,R}" and the path.
13920        # Remove the space.
13921        if test $p = "-L" ||
13922           test $p = "-R"; then
13923          prev=$p
13924          continue
13925        else
13926          prev=
13927        fi
13928
13929        if test "$pre_test_object_deps_done" = no; then
13930          case $p in
13931          -L* | -R*)
13932            # Internal compiler library paths should come after those
13933            # provided the user.  The postdeps already come after the
13934            # user supplied libs so there is no need to process them.
13935            if test -z "$compiler_lib_search_path_CXX"; then
13936              compiler_lib_search_path_CXX="${prev}${p}"
13937            else
13938              compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
13939            fi
13940            ;;
13941          # The "-l" case would never come before the object being
13942          # linked, so don't bother handling this case.
13943          esac
13944        else
13945          if test -z "$postdeps_CXX"; then
13946            postdeps_CXX="${prev}${p}"
13947          else
13948            postdeps_CXX="${postdeps_CXX} ${prev}${p}"
13949          fi
13950        fi
13951        ;;
13952
13953     *.$objext)
13954        # This assumes that the test object file only shows up
13955        # once in the compiler output.
13956        if test "$p" = "conftest.$objext"; then
13957          pre_test_object_deps_done=yes
13958          continue
13959        fi
13960
13961        if test "$pre_test_object_deps_done" = no; then
13962          if test -z "$predep_objects_CXX"; then
13963            predep_objects_CXX="$p"
13964          else
13965            predep_objects_CXX="$predep_objects_CXX $p"
13966          fi
13967        else
13968          if test -z "$postdep_objects_CXX"; then
13969            postdep_objects_CXX="$p"
13970          else
13971            postdep_objects_CXX="$postdep_objects_CXX $p"
13972          fi
13973        fi
13974        ;;
13975
13976     *) ;; # Ignore the rest.
13977
13978     esac
13979   done
13980
13981   # Clean up.
13982   rm -f a.out a.exe
13983 else
13984   echo "libtool.m4: error: problem compiling CXX test program"
13985 fi
13986
13987 $RM -f confest.$objext
13988
13989 # PORTME: override above test on systems where it is broken
13990 case $host_os in
13991 interix[3-9]*)
13992   # Interix 3.5 installs completely hosed .la files for C++, so rather than
13993   # hack all around it, let's just trust "g++" to DTRT.
13994   predep_objects_CXX=
13995   postdep_objects_CXX=
13996   postdeps_CXX=
13997   ;;
13998
13999 linux*)
14000   case `$CC -V 2>&1 | sed 5q` in
14001   *Sun\ C*)
14002     # Sun C++ 5.9
14003
14004     # The more standards-conforming stlport4 library is
14005     # incompatible with the Cstd library. Avoid specifying
14006     # it if it's in CXXFLAGS. Ignore libCrun as
14007     # -library=stlport4 depends on it.
14008     case " $CXX $CXXFLAGS " in
14009     *" -library=stlport4 "*)
14010       solaris_use_stlport4=yes
14011       ;;
14012     esac
14013
14014     if test "$solaris_use_stlport4" != yes; then
14015       postdeps_CXX='-library=Cstd -library=Crun'
14016     fi
14017     ;;
14018   esac
14019   ;;
14020
14021 solaris*)
14022   case $cc_basename in
14023   CC*)
14024     # The more standards-conforming stlport4 library is
14025     # incompatible with the Cstd library. Avoid specifying
14026     # it if it's in CXXFLAGS. Ignore libCrun as
14027     # -library=stlport4 depends on it.
14028     case " $CXX $CXXFLAGS " in
14029     *" -library=stlport4 "*)
14030       solaris_use_stlport4=yes
14031       ;;
14032     esac
14033
14034     # Adding this requires a known-good setup of shared libraries for
14035     # Sun compiler versions before 5.6, else PIC objects from an old
14036     # archive will be linked into the output, leading to subtle bugs.
14037     if test "$solaris_use_stlport4" != yes; then
14038       postdeps_CXX='-library=Cstd -library=Crun'
14039     fi
14040     ;;
14041   esac
14042   ;;
14043 esac
14044
14045
14046 case " $postdeps_CXX " in
14047 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
14048 esac
14049  compiler_lib_search_dirs_CXX=
14050 if test -n "${compiler_lib_search_path_CXX}"; then
14051  compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
14052 fi
14053
14054
14055
14056
14057
14058
14059
14060
14061
14062
14063
14064
14065
14066
14067
14068
14069
14070
14071
14072
14073
14074
14075
14076
14077
14078
14079
14080
14081
14082
14083
14084     lt_prog_compiler_wl_CXX=
14085 lt_prog_compiler_pic_CXX=
14086 lt_prog_compiler_static_CXX=
14087
14088 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
14089 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
14090
14091   # C++ specific cases for pic, static, wl, etc.
14092   if test "$GXX" = yes; then
14093     lt_prog_compiler_wl_CXX='-Wl,'
14094     lt_prog_compiler_static_CXX='-static'
14095
14096     case $host_os in
14097     aix*)
14098       # All AIX code is PIC.
14099       if test "$host_cpu" = ia64; then
14100         # AIX 5 now supports IA64 processor
14101         lt_prog_compiler_static_CXX='-Bstatic'
14102       fi
14103       ;;
14104
14105     amigaos*)
14106       case $host_cpu in
14107       powerpc)
14108             # see comment about AmigaOS4 .so support
14109             lt_prog_compiler_pic_CXX='-fPIC'
14110         ;;
14111       m68k)
14112             # FIXME: we need at least 68020 code to build shared libraries, but
14113             # adding the `-m68020' flag to GCC prevents building anything better,
14114             # like `-m68040'.
14115             lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
14116         ;;
14117       esac
14118       ;;
14119
14120     beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
14121       # PIC is the default for these OSes.
14122       ;;
14123     mingw* | cygwin* | os2* | pw32* | cegcc*)
14124       # This hack is so that the source file can tell whether it is being
14125       # built for inclusion in a dll (and should export symbols for example).
14126       # Although the cygwin gcc ignores -fPIC, still need this for old-style
14127       # (--disable-auto-import) libraries
14128       lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
14129       ;;
14130     darwin* | rhapsody*)
14131       # PIC is the default on this platform
14132       # Common symbols not allowed in MH_DYLIB files
14133       lt_prog_compiler_pic_CXX='-fno-common'
14134       ;;
14135     *djgpp*)
14136       # DJGPP does not support shared libraries at all
14137       lt_prog_compiler_pic_CXX=
14138       ;;
14139     interix[3-9]*)
14140       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
14141       # Instead, we relocate shared libraries at runtime.
14142       ;;
14143     sysv4*MP*)
14144       if test -d /usr/nec; then
14145         lt_prog_compiler_pic_CXX=-Kconform_pic
14146       fi
14147       ;;
14148     hpux*)
14149       # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
14150       # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
14151       # sets the default TLS model and affects inlining.
14152       case $host_cpu in
14153       hppa*64*)
14154         ;;
14155       *)
14156         lt_prog_compiler_pic_CXX='-fPIC'
14157         ;;
14158       esac
14159       ;;
14160     *qnx* | *nto*)
14161       # QNX uses GNU C++, but need to define -shared option too, otherwise
14162       # it will coredump.
14163       lt_prog_compiler_pic_CXX='-fPIC -shared'
14164       ;;
14165     *)
14166       lt_prog_compiler_pic_CXX='-fPIC'
14167       ;;
14168     esac
14169   else
14170     case $host_os in
14171       aix[4-9]*)
14172         # All AIX code is PIC.
14173         if test "$host_cpu" = ia64; then
14174           # AIX 5 now supports IA64 processor
14175           lt_prog_compiler_static_CXX='-Bstatic'
14176         else
14177           lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
14178         fi
14179         ;;
14180       chorus*)
14181         case $cc_basename in
14182         cxch68*)
14183           # Green Hills C++ Compiler
14184           # _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"
14185           ;;
14186         esac
14187         ;;
14188       dgux*)
14189         case $cc_basename in
14190           ec++*)
14191             lt_prog_compiler_pic_CXX='-KPIC'
14192             ;;
14193           ghcx*)
14194             # Green Hills C++ Compiler
14195             lt_prog_compiler_pic_CXX='-pic'
14196             ;;
14197           *)
14198             ;;
14199         esac
14200         ;;
14201       freebsd* | dragonfly*)
14202         # FreeBSD uses GNU C++
14203         ;;
14204       hpux9* | hpux10* | hpux11*)
14205         case $cc_basename in
14206           CC*)
14207             lt_prog_compiler_wl_CXX='-Wl,'
14208             lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
14209             if test "$host_cpu" != ia64; then
14210               lt_prog_compiler_pic_CXX='+Z'
14211             fi
14212             ;;
14213           aCC*)
14214             lt_prog_compiler_wl_CXX='-Wl,'
14215             lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
14216             case $host_cpu in
14217             hppa*64*|ia64*)
14218               # +Z the default
14219               ;;
14220             *)
14221               lt_prog_compiler_pic_CXX='+Z'
14222               ;;
14223             esac
14224             ;;
14225           *)
14226             ;;
14227         esac
14228         ;;
14229       interix*)
14230         # This is c89, which is MS Visual C++ (no shared libs)
14231         # Anyone wants to do a port?
14232         ;;
14233       irix5* | irix6* | nonstopux*)
14234         case $cc_basename in
14235           CC*)
14236             lt_prog_compiler_wl_CXX='-Wl,'
14237             lt_prog_compiler_static_CXX='-non_shared'
14238             # CC pic flag -KPIC is the default.
14239             ;;
14240           *)
14241             ;;
14242         esac
14243         ;;
14244       linux* | k*bsd*-gnu)
14245         case $cc_basename in
14246           KCC*)
14247             # KAI C++ Compiler
14248             lt_prog_compiler_wl_CXX='--backend -Wl,'
14249             lt_prog_compiler_pic_CXX='-fPIC'
14250             ;;
14251           ecpc* )
14252             # old Intel C++ for x86_64 which still supported -KPIC.
14253             lt_prog_compiler_wl_CXX='-Wl,'
14254             lt_prog_compiler_pic_CXX='-KPIC'
14255             lt_prog_compiler_static_CXX='-static'
14256             ;;
14257           icpc* )
14258             # Intel C++, used to be incompatible with GCC.
14259             # ICC 10 doesn't accept -KPIC any more.
14260             lt_prog_compiler_wl_CXX='-Wl,'
14261             lt_prog_compiler_pic_CXX='-fPIC'
14262             lt_prog_compiler_static_CXX='-static'
14263             ;;
14264           pgCC* | pgcpp*)
14265             # Portland Group C++ compiler
14266             lt_prog_compiler_wl_CXX='-Wl,'
14267             lt_prog_compiler_pic_CXX='-fpic'
14268             lt_prog_compiler_static_CXX='-Bstatic'
14269             ;;
14270           cxx*)
14271             # Compaq C++
14272             # Make sure the PIC flag is empty.  It appears that all Alpha
14273             # Linux and Compaq Tru64 Unix objects are PIC.
14274             lt_prog_compiler_pic_CXX=
14275             lt_prog_compiler_static_CXX='-non_shared'
14276             ;;
14277           xlc* | xlC*)
14278             # IBM XL 8.0 on PPC
14279             lt_prog_compiler_wl_CXX='-Wl,'
14280             lt_prog_compiler_pic_CXX='-qpic'
14281             lt_prog_compiler_static_CXX='-qstaticlink'
14282             ;;
14283           *)
14284             case `$CC -V 2>&1 | sed 5q` in
14285             *Sun\ C*)
14286               # Sun C++ 5.9
14287               lt_prog_compiler_pic_CXX='-KPIC'
14288               lt_prog_compiler_static_CXX='-Bstatic'
14289               lt_prog_compiler_wl_CXX='-Qoption ld '
14290               ;;
14291             esac
14292             ;;
14293         esac
14294         ;;
14295       lynxos*)
14296         ;;
14297       m88k*)
14298         ;;
14299       mvs*)
14300         case $cc_basename in
14301           cxx*)
14302             lt_prog_compiler_pic_CXX='-W c,exportall'
14303             ;;
14304           *)
14305             ;;
14306         esac
14307         ;;
14308       netbsd*)
14309         ;;
14310       *qnx* | *nto*)
14311         # QNX uses GNU C++, but need to define -shared option too, otherwise
14312         # it will coredump.
14313         lt_prog_compiler_pic_CXX='-fPIC -shared'
14314         ;;
14315       osf3* | osf4* | osf5*)
14316         case $cc_basename in
14317           KCC*)
14318             lt_prog_compiler_wl_CXX='--backend -Wl,'
14319             ;;
14320           RCC*)
14321             # Rational C++ 2.4.1
14322             lt_prog_compiler_pic_CXX='-pic'
14323             ;;
14324           cxx*)
14325             # Digital/Compaq C++
14326             lt_prog_compiler_wl_CXX='-Wl,'
14327             # Make sure the PIC flag is empty.  It appears that all Alpha
14328             # Linux and Compaq Tru64 Unix objects are PIC.
14329             lt_prog_compiler_pic_CXX=
14330             lt_prog_compiler_static_CXX='-non_shared'
14331             ;;
14332           *)
14333             ;;
14334         esac
14335         ;;
14336       psos*)
14337         ;;
14338       solaris*)
14339         case $cc_basename in
14340           CC*)
14341             # Sun C++ 4.2, 5.x and Centerline C++
14342             lt_prog_compiler_pic_CXX='-KPIC'
14343             lt_prog_compiler_static_CXX='-Bstatic'
14344             lt_prog_compiler_wl_CXX='-Qoption ld '
14345             ;;
14346           gcx*)
14347             # Green Hills C++ Compiler
14348             lt_prog_compiler_pic_CXX='-PIC'
14349             ;;
14350           *)
14351             ;;
14352         esac
14353         ;;
14354       sunos4*)
14355         case $cc_basename in
14356           CC*)
14357             # Sun C++ 4.x
14358             lt_prog_compiler_pic_CXX='-pic'
14359             lt_prog_compiler_static_CXX='-Bstatic'
14360             ;;
14361           lcc*)
14362             # Lucid
14363             lt_prog_compiler_pic_CXX='-pic'
14364             ;;
14365           *)
14366             ;;
14367         esac
14368         ;;
14369       sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
14370         case $cc_basename in
14371           CC*)
14372             lt_prog_compiler_wl_CXX='-Wl,'
14373             lt_prog_compiler_pic_CXX='-KPIC'
14374             lt_prog_compiler_static_CXX='-Bstatic'
14375             ;;
14376         esac
14377         ;;
14378       tandem*)
14379         case $cc_basename in
14380           NCC*)
14381             # NonStop-UX NCC 3.20
14382             lt_prog_compiler_pic_CXX='-KPIC'
14383             ;;
14384           *)
14385             ;;
14386         esac
14387         ;;
14388       vxworks*)
14389         ;;
14390       *)
14391         lt_prog_compiler_can_build_shared_CXX=no
14392         ;;
14393     esac
14394   fi
14395
14396 case $host_os in
14397   # For platforms which do not support PIC, -DPIC is meaningless:
14398   *djgpp*)
14399     lt_prog_compiler_pic_CXX=
14400     ;;
14401   *)
14402     lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
14403     ;;
14404 esac
14405 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic_CXX" >&5
14406 $as_echo "$lt_prog_compiler_pic_CXX" >&6; }
14407
14408
14409
14410 #
14411 # Check to make sure the PIC flag actually works.
14412 #
14413 if test -n "$lt_prog_compiler_pic_CXX"; then
14414   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
14415 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
14416 if test "${lt_cv_prog_compiler_pic_works_CXX+set}" = set; then :
14417   $as_echo_n "(cached) " >&6
14418 else
14419   lt_cv_prog_compiler_pic_works_CXX=no
14420    ac_outfile=conftest.$ac_objext
14421    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14422    lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
14423    # Insert the option either (1) after the last *FLAGS variable, or
14424    # (2) before a word containing "conftest.", or (3) at the end.
14425    # Note that $ac_compile itself does not contain backslashes and begins
14426    # with a dollar sign (not a hyphen), so the echo should work correctly.
14427    # The option is referenced via a variable to avoid confusing sed.
14428    lt_compile=`echo "$ac_compile" | $SED \
14429    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14430    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14431    -e 's:$: $lt_compiler_flag:'`
14432    (eval echo "\"\$as_me:14432: $lt_compile\"" >&5)
14433    (eval "$lt_compile" 2>conftest.err)
14434    ac_status=$?
14435    cat conftest.err >&5
14436    echo "$as_me:14436: \$? = $ac_status" >&5
14437    if (exit $ac_status) && test -s "$ac_outfile"; then
14438      # The compiler can only warn and ignore the option if not recognized
14439      # So say no if there are warnings other than the usual output.
14440      $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
14441      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14442      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
14443        lt_cv_prog_compiler_pic_works_CXX=yes
14444      fi
14445    fi
14446    $RM conftest*
14447
14448 fi
14449 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
14450 $as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
14451
14452 if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
14453     case $lt_prog_compiler_pic_CXX in
14454      "" | " "*) ;;
14455      *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
14456      esac
14457 else
14458     lt_prog_compiler_pic_CXX=
14459      lt_prog_compiler_can_build_shared_CXX=no
14460 fi
14461
14462 fi
14463
14464
14465
14466 #
14467 # Check to make sure the static flag actually works.
14468 #
14469 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
14470 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
14471 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
14472 if test "${lt_cv_prog_compiler_static_works_CXX+set}" = set; then :
14473   $as_echo_n "(cached) " >&6
14474 else
14475   lt_cv_prog_compiler_static_works_CXX=no
14476    save_LDFLAGS="$LDFLAGS"
14477    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
14478    echo "$lt_simple_link_test_code" > conftest.$ac_ext
14479    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
14480      # The linker can only warn and ignore the option if not recognized
14481      # So say no if there are warnings
14482      if test -s conftest.err; then
14483        # Append any errors to the config.log.
14484        cat conftest.err 1>&5
14485        $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
14486        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14487        if diff conftest.exp conftest.er2 >/dev/null; then
14488          lt_cv_prog_compiler_static_works_CXX=yes
14489        fi
14490      else
14491        lt_cv_prog_compiler_static_works_CXX=yes
14492      fi
14493    fi
14494    $RM -r conftest*
14495    LDFLAGS="$save_LDFLAGS"
14496
14497 fi
14498 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
14499 $as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
14500
14501 if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
14502     :
14503 else
14504     lt_prog_compiler_static_CXX=
14505 fi
14506
14507
14508
14509
14510     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
14511 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
14512 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then :
14513   $as_echo_n "(cached) " >&6
14514 else
14515   lt_cv_prog_compiler_c_o_CXX=no
14516    $RM -r conftest 2>/dev/null
14517    mkdir conftest
14518    cd conftest
14519    mkdir out
14520    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14521
14522    lt_compiler_flag="-o out/conftest2.$ac_objext"
14523    # Insert the option either (1) after the last *FLAGS variable, or
14524    # (2) before a word containing "conftest.", or (3) at the end.
14525    # Note that $ac_compile itself does not contain backslashes and begins
14526    # with a dollar sign (not a hyphen), so the echo should work correctly.
14527    lt_compile=`echo "$ac_compile" | $SED \
14528    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14529    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14530    -e 's:$: $lt_compiler_flag:'`
14531    (eval echo "\"\$as_me:14531: $lt_compile\"" >&5)
14532    (eval "$lt_compile" 2>out/conftest.err)
14533    ac_status=$?
14534    cat out/conftest.err >&5
14535    echo "$as_me:14535: \$? = $ac_status" >&5
14536    if (exit $ac_status) && test -s out/conftest2.$ac_objext
14537    then
14538      # The compiler can only warn and ignore the option if not recognized
14539      # So say no if there are warnings
14540      $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
14541      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14542      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14543        lt_cv_prog_compiler_c_o_CXX=yes
14544      fi
14545    fi
14546    chmod u+w . 2>&5
14547    $RM conftest*
14548    # SGI C++ compiler will create directory out/ii_files/ for
14549    # template instantiation
14550    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
14551    $RM out/* && rmdir out
14552    cd ..
14553    $RM -r conftest
14554    $RM conftest*
14555
14556 fi
14557 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
14558 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
14559
14560
14561
14562     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
14563 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
14564 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then :
14565   $as_echo_n "(cached) " >&6
14566 else
14567   lt_cv_prog_compiler_c_o_CXX=no
14568    $RM -r conftest 2>/dev/null
14569    mkdir conftest
14570    cd conftest
14571    mkdir out
14572    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14573
14574    lt_compiler_flag="-o out/conftest2.$ac_objext"
14575    # Insert the option either (1) after the last *FLAGS variable, or
14576    # (2) before a word containing "conftest.", or (3) at the end.
14577    # Note that $ac_compile itself does not contain backslashes and begins
14578    # with a dollar sign (not a hyphen), so the echo should work correctly.
14579    lt_compile=`echo "$ac_compile" | $SED \
14580    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14581    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14582    -e 's:$: $lt_compiler_flag:'`
14583    (eval echo "\"\$as_me:14583: $lt_compile\"" >&5)
14584    (eval "$lt_compile" 2>out/conftest.err)
14585    ac_status=$?
14586    cat out/conftest.err >&5
14587    echo "$as_me:14587: \$? = $ac_status" >&5
14588    if (exit $ac_status) && test -s out/conftest2.$ac_objext
14589    then
14590      # The compiler can only warn and ignore the option if not recognized
14591      # So say no if there are warnings
14592      $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
14593      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14594      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14595        lt_cv_prog_compiler_c_o_CXX=yes
14596      fi
14597    fi
14598    chmod u+w . 2>&5
14599    $RM conftest*
14600    # SGI C++ compiler will create directory out/ii_files/ for
14601    # template instantiation
14602    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
14603    $RM out/* && rmdir out
14604    cd ..
14605    $RM -r conftest
14606    $RM conftest*
14607
14608 fi
14609 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
14610 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
14611
14612
14613
14614
14615 hard_links="nottested"
14616 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
14617   # do not overwrite the value of need_locks provided by the user
14618   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
14619 $as_echo_n "checking if we can lock with hard links... " >&6; }
14620   hard_links=yes
14621   $RM conftest*
14622   ln conftest.a conftest.b 2>/dev/null && hard_links=no
14623   touch conftest.a
14624   ln conftest.a conftest.b 2>&5 || hard_links=no
14625   ln conftest.a conftest.b 2>/dev/null && hard_links=no
14626   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
14627 $as_echo "$hard_links" >&6; }
14628   if test "$hard_links" = no; then
14629     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
14630 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
14631     need_locks=warn
14632   fi
14633 else
14634   need_locks=no
14635 fi
14636
14637
14638
14639     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
14640 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
14641
14642   export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14643   case $host_os in
14644   aix[4-9]*)
14645     # If we're using GNU nm, then we don't want the "-C" option.
14646     # -C means demangle to AIX nm, but means don't demangle with GNU nm
14647     if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
14648       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'
14649     else
14650       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'
14651     fi
14652     ;;
14653   pw32*)
14654     export_symbols_cmds_CXX="$ltdll_cmds"
14655   ;;
14656   cygwin* | mingw* | cegcc*)
14657     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'
14658   ;;
14659   *)
14660     export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14661   ;;
14662   esac
14663   exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
14664
14665 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
14666 $as_echo "$ld_shlibs_CXX" >&6; }
14667 test "$ld_shlibs_CXX" = no && can_build_shared=no
14668
14669 with_gnu_ld_CXX=$with_gnu_ld
14670
14671
14672
14673
14674
14675
14676 #
14677 # Do we need to explicitly link libc?
14678 #
14679 case "x$archive_cmds_need_lc_CXX" in
14680 x|xyes)
14681   # Assume -lc should be added
14682   archive_cmds_need_lc_CXX=yes
14683
14684   if test "$enable_shared" = yes && test "$GCC" = yes; then
14685     case $archive_cmds_CXX in
14686     *'~'*)
14687       # FIXME: we may have to deal with multi-command sequences.
14688       ;;
14689     '$CC '*)
14690       # Test whether the compiler implicitly links with -lc since on some
14691       # systems, -lgcc has to come before -lc. If gcc already passes -lc
14692       # to ld, don't add -lc before -lgcc.
14693       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
14694 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
14695       $RM conftest*
14696       echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14697
14698       if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
14699   (eval $ac_compile) 2>&5
14700   ac_status=$?
14701   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14702   test $ac_status = 0; } 2>conftest.err; then
14703         soname=conftest
14704         lib=conftest
14705         libobjs=conftest.$ac_objext
14706         deplibs=
14707         wl=$lt_prog_compiler_wl_CXX
14708         pic_flag=$lt_prog_compiler_pic_CXX
14709         compiler_flags=-v
14710         linker_flags=-v
14711         verstring=
14712         output_objdir=.
14713         libname=conftest
14714         lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
14715         allow_undefined_flag_CXX=
14716         if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
14717   (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
14718   ac_status=$?
14719   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14720   test $ac_status = 0; }
14721         then
14722           archive_cmds_need_lc_CXX=no
14723         else
14724           archive_cmds_need_lc_CXX=yes
14725         fi
14726         allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
14727       else
14728         cat conftest.err 1>&5
14729       fi
14730       $RM conftest*
14731       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $archive_cmds_need_lc_CXX" >&5
14732 $as_echo "$archive_cmds_need_lc_CXX" >&6; }
14733       ;;
14734     esac
14735   fi
14736   ;;
14737 esac
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
14794
14795
14796
14797
14798
14799
14800
14801
14802     { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
14803 $as_echo_n "checking dynamic linker characteristics... " >&6; }
14804
14805 library_names_spec=
14806 libname_spec='lib$name'
14807 soname_spec=
14808 shrext_cmds=".so"
14809 postinstall_cmds=
14810 postuninstall_cmds=
14811 finish_cmds=
14812 finish_eval=
14813 shlibpath_var=
14814 shlibpath_overrides_runpath=unknown
14815 version_type=none
14816 dynamic_linker="$host_os ld.so"
14817 sys_lib_dlsearch_path_spec="/lib /usr/lib"
14818 need_lib_prefix=unknown
14819 hardcode_into_libs=no
14820
14821 # when you set need_version to no, make sure it does not cause -set_version
14822 # flags to be left without arguments
14823 need_version=unknown
14824
14825 case $host_os in
14826 aix3*)
14827   version_type=linux
14828   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
14829   shlibpath_var=LIBPATH
14830
14831   # AIX 3 has no versioning support, so we append a major version to the name.
14832   soname_spec='${libname}${release}${shared_ext}$major'
14833   ;;
14834
14835 aix[4-9]*)
14836   version_type=linux
14837   need_lib_prefix=no
14838   need_version=no
14839   hardcode_into_libs=yes
14840   if test "$host_cpu" = ia64; then
14841     # AIX 5 supports IA64
14842     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
14843     shlibpath_var=LD_LIBRARY_PATH
14844   else
14845     # With GCC up to 2.95.x, collect2 would create an import file
14846     # for dependence libraries.  The import file would start with
14847     # the line `#! .'.  This would cause the generated library to
14848     # depend on `.', always an invalid library.  This was fixed in
14849     # development snapshots of GCC prior to 3.0.
14850     case $host_os in
14851       aix4 | aix4.[01] | aix4.[01].*)
14852       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
14853            echo ' yes '
14854            echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
14855         :
14856       else
14857         can_build_shared=no
14858       fi
14859       ;;
14860     esac
14861     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
14862     # soname into executable. Probably we can add versioning support to
14863     # collect2, so additional links can be useful in future.
14864     if test "$aix_use_runtimelinking" = yes; then
14865       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
14866       # instead of lib<name>.a to let people know that these are not
14867       # typical AIX shared libraries.
14868       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14869     else
14870       # We preserve .a as extension for shared libraries through AIX4.2
14871       # and later when we are not doing run time linking.
14872       library_names_spec='${libname}${release}.a $libname.a'
14873       soname_spec='${libname}${release}${shared_ext}$major'
14874     fi
14875     shlibpath_var=LIBPATH
14876   fi
14877   ;;
14878
14879 amigaos*)
14880   case $host_cpu in
14881   powerpc)
14882     # Since July 2007 AmigaOS4 officially supports .so libraries.
14883     # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
14884     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14885     ;;
14886   m68k)
14887     library_names_spec='$libname.ixlibrary $libname.a'
14888     # Create ${libname}_ixlibrary.a entries in /sys/libs.
14889     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'
14890     ;;
14891   esac
14892   ;;
14893
14894 beos*)
14895   library_names_spec='${libname}${shared_ext}'
14896   dynamic_linker="$host_os ld.so"
14897   shlibpath_var=LIBRARY_PATH
14898   ;;
14899
14900 bsdi[45]*)
14901   version_type=linux
14902   need_version=no
14903   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14904   soname_spec='${libname}${release}${shared_ext}$major'
14905   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
14906   shlibpath_var=LD_LIBRARY_PATH
14907   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
14908   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
14909   # the default ld.so.conf also contains /usr/contrib/lib and
14910   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
14911   # libtool to hard-code these into programs
14912   ;;
14913
14914 cygwin* | mingw* | pw32* | cegcc*)
14915   version_type=windows
14916   shrext_cmds=".dll"
14917   need_version=no
14918   need_lib_prefix=no
14919
14920   case $GCC,$host_os in
14921   yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
14922     library_names_spec='$libname.dll.a'
14923     # DLL is installed to $(libdir)/../bin by postinstall_cmds
14924     postinstall_cmds='base_file=`basename \${file}`~
14925       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
14926       dldir=$destdir/`dirname \$dlpath`~
14927       test -d \$dldir || mkdir -p \$dldir~
14928       $install_prog $dir/$dlname \$dldir/$dlname~
14929       chmod a+x \$dldir/$dlname~
14930       if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
14931         eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
14932       fi'
14933     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
14934       dlpath=$dir/\$dldll~
14935        $RM \$dlpath'
14936     shlibpath_overrides_runpath=yes
14937
14938     case $host_os in
14939     cygwin*)
14940       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
14941       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14942       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
14943       ;;
14944     mingw* | cegcc*)
14945       # MinGW DLLs use traditional 'lib' prefix
14946       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14947       sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
14948       if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
14949         # It is most probably a Windows format PATH printed by
14950         # mingw gcc, but we are running on Cygwin. Gcc prints its search
14951         # path with ; separators, and with drive letters. We can handle the
14952         # drive letters (cygwin fileutils understands them), so leave them,
14953         # especially as we might pass files found there to a mingw objdump,
14954         # which wouldn't understand a cygwinified path. Ahh.
14955         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
14956       else
14957         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
14958       fi
14959       ;;
14960     pw32*)
14961       # pw32 DLLs use 'pw' prefix rather than 'lib'
14962       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14963       ;;
14964     esac
14965     ;;
14966
14967   *)
14968     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
14969     ;;
14970   esac
14971   dynamic_linker='Win32 ld.exe'
14972   # FIXME: first we should search . and the directory the executable is in
14973   shlibpath_var=PATH
14974   ;;
14975
14976 darwin* | rhapsody*)
14977   dynamic_linker="$host_os dyld"
14978   version_type=darwin
14979   need_lib_prefix=no
14980   need_version=no
14981   library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
14982   soname_spec='${libname}${release}${major}$shared_ext'
14983   shlibpath_overrides_runpath=yes
14984   shlibpath_var=DYLD_LIBRARY_PATH
14985   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
14986
14987   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
14988   ;;
14989
14990 dgux*)
14991   version_type=linux
14992   need_lib_prefix=no
14993   need_version=no
14994   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
14995   soname_spec='${libname}${release}${shared_ext}$major'
14996   shlibpath_var=LD_LIBRARY_PATH
14997   ;;
14998
14999 freebsd1*)
15000   dynamic_linker=no
15001   ;;
15002
15003 freebsd* | dragonfly*)
15004   # DragonFly does not have aout.  When/if they implement a new
15005   # versioning mechanism, adjust this.
15006   if test -x /usr/bin/objformat; then
15007     objformat=`/usr/bin/objformat`
15008   else
15009     case $host_os in
15010     freebsd[123]*) objformat=aout ;;
15011     *) objformat=elf ;;
15012     esac
15013   fi
15014   version_type=freebsd-$objformat
15015   case $version_type in
15016     freebsd-elf*)
15017       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15018       need_version=no
15019       need_lib_prefix=no
15020       ;;
15021     freebsd-*)
15022       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
15023       need_version=yes
15024       ;;
15025   esac
15026   shlibpath_var=LD_LIBRARY_PATH
15027   case $host_os in
15028   freebsd2*)
15029     shlibpath_overrides_runpath=yes
15030     ;;
15031   freebsd3.[01]* | freebsdelf3.[01]*)
15032     shlibpath_overrides_runpath=yes
15033     hardcode_into_libs=yes
15034     ;;
15035   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
15036   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
15037     shlibpath_overrides_runpath=no
15038     hardcode_into_libs=yes
15039     ;;
15040   *) # from 4.6 on, and DragonFly
15041     shlibpath_overrides_runpath=yes
15042     hardcode_into_libs=yes
15043     ;;
15044   esac
15045   ;;
15046
15047 gnu*)
15048   version_type=linux
15049   need_lib_prefix=no
15050   need_version=no
15051   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
15052   soname_spec='${libname}${release}${shared_ext}$major'
15053   shlibpath_var=LD_LIBRARY_PATH
15054   hardcode_into_libs=yes
15055   ;;
15056
15057 hpux9* | hpux10* | hpux11*)
15058   # Give a soname corresponding to the major version so that dld.sl refuses to
15059   # link against other versions.
15060   version_type=sunos
15061   need_lib_prefix=no
15062   need_version=no
15063   case $host_cpu in
15064   ia64*)
15065     shrext_cmds='.so'
15066     hardcode_into_libs=yes
15067     dynamic_linker="$host_os dld.so"
15068     shlibpath_var=LD_LIBRARY_PATH
15069     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15070     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15071     soname_spec='${libname}${release}${shared_ext}$major'
15072     if test "X$HPUX_IA64_MODE" = X32; then
15073       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
15074     else
15075       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
15076     fi
15077     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15078     ;;
15079   hppa*64*)
15080     shrext_cmds='.sl'
15081     hardcode_into_libs=yes
15082     dynamic_linker="$host_os dld.sl"
15083     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
15084     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15085     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15086     soname_spec='${libname}${release}${shared_ext}$major'
15087     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
15088     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15089     ;;
15090   *)
15091     shrext_cmds='.sl'
15092     dynamic_linker="$host_os dld.sl"
15093     shlibpath_var=SHLIB_PATH
15094     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
15095     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15096     soname_spec='${libname}${release}${shared_ext}$major'
15097     ;;
15098   esac
15099   # HP-UX runs *really* slowly unless shared libraries are mode 555.
15100   postinstall_cmds='chmod 555 $lib'
15101   ;;
15102
15103 interix[3-9]*)
15104   version_type=linux
15105   need_lib_prefix=no
15106   need_version=no
15107   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15108   soname_spec='${libname}${release}${shared_ext}$major'
15109   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
15110   shlibpath_var=LD_LIBRARY_PATH
15111   shlibpath_overrides_runpath=no
15112   hardcode_into_libs=yes
15113   ;;
15114
15115 irix5* | irix6* | nonstopux*)
15116   case $host_os in
15117     nonstopux*) version_type=nonstopux ;;
15118     *)
15119         if test "$lt_cv_prog_gnu_ld" = yes; then
15120                 version_type=linux
15121         else
15122                 version_type=irix
15123         fi ;;
15124   esac
15125   need_lib_prefix=no
15126   need_version=no
15127   soname_spec='${libname}${release}${shared_ext}$major'
15128   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
15129   case $host_os in
15130   irix5* | nonstopux*)
15131     libsuff= shlibsuff=
15132     ;;
15133   *)
15134     case $LD in # libtool.m4 will add one of these switches to LD
15135     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
15136       libsuff= shlibsuff= libmagic=32-bit;;
15137     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
15138       libsuff=32 shlibsuff=N32 libmagic=N32;;
15139     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
15140       libsuff=64 shlibsuff=64 libmagic=64-bit;;
15141     *) libsuff= shlibsuff= libmagic=never-match;;
15142     esac
15143     ;;
15144   esac
15145   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
15146   shlibpath_overrides_runpath=no
15147   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
15148   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
15149   hardcode_into_libs=yes
15150   ;;
15151
15152 # No shared lib support for Linux oldld, aout, or coff.
15153 linux*oldld* | linux*aout* | linux*coff*)
15154   dynamic_linker=no
15155   ;;
15156
15157 # This must be Linux ELF.
15158 linux* | k*bsd*-gnu)
15159   version_type=linux
15160   need_lib_prefix=no
15161   need_version=no
15162   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15163   soname_spec='${libname}${release}${shared_ext}$major'
15164   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
15165   shlibpath_var=LD_LIBRARY_PATH
15166   shlibpath_overrides_runpath=no
15167   # Some binutils ld are patched to set DT_RUNPATH
15168   save_LDFLAGS=$LDFLAGS
15169   save_libdir=$libdir
15170   eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
15171        LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
15172   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15173 /* end confdefs.h.  */
15174
15175 int
15176 main ()
15177 {
15178
15179   ;
15180   return 0;
15181 }
15182 _ACEOF
15183 if ac_fn_cxx_try_link "$LINENO"; then :
15184   if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
15185   shlibpath_overrides_runpath=yes
15186 fi
15187 fi
15188 rm -f core conftest.err conftest.$ac_objext \
15189     conftest$ac_exeext conftest.$ac_ext
15190   LDFLAGS=$save_LDFLAGS
15191   libdir=$save_libdir
15192
15193   # This implies no fast_install, which is unacceptable.
15194   # Some rework will be needed to allow for fast_install
15195   # before this can be enabled.
15196   hardcode_into_libs=yes
15197
15198   # Append ld.so.conf contents to the search path
15199   if test -f /etc/ld.so.conf; then
15200     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' ' '`
15201     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
15202   fi
15203
15204   # We used to test for /lib/ld.so.1 and disable shared libraries on
15205   # powerpc, because MkLinux only supported shared libraries with the
15206   # GNU dynamic linker.  Since this was broken with cross compilers,
15207   # most powerpc-linux boxes support dynamic linking these days and
15208   # people can always --disable-shared, the test was removed, and we
15209   # assume the GNU/Linux dynamic linker is in use.
15210   dynamic_linker='GNU/Linux ld.so'
15211   ;;
15212
15213 netbsd*)
15214   version_type=sunos
15215   need_lib_prefix=no
15216   need_version=no
15217   if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
15218     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15219     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15220     dynamic_linker='NetBSD (a.out) ld.so'
15221   else
15222     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15223     soname_spec='${libname}${release}${shared_ext}$major'
15224     dynamic_linker='NetBSD ld.elf_so'
15225   fi
15226   shlibpath_var=LD_LIBRARY_PATH
15227   shlibpath_overrides_runpath=yes
15228   hardcode_into_libs=yes
15229   ;;
15230
15231 newsos6)
15232   version_type=linux
15233   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15234   shlibpath_var=LD_LIBRARY_PATH
15235   shlibpath_overrides_runpath=yes
15236   ;;
15237
15238 *nto* | *qnx*)
15239   version_type=qnx
15240   need_lib_prefix=no
15241   need_version=no
15242   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15243   soname_spec='${libname}${release}${shared_ext}$major'
15244   shlibpath_var=LD_LIBRARY_PATH
15245   shlibpath_overrides_runpath=no
15246   hardcode_into_libs=yes
15247   dynamic_linker='ldqnx.so'
15248   ;;
15249
15250 openbsd*)
15251   version_type=sunos
15252   sys_lib_dlsearch_path_spec="/usr/lib"
15253   need_lib_prefix=no
15254   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
15255   case $host_os in
15256     openbsd3.3 | openbsd3.3.*)  need_version=yes ;;
15257     *)                          need_version=no  ;;
15258   esac
15259   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15260   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15261   shlibpath_var=LD_LIBRARY_PATH
15262   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15263     case $host_os in
15264       openbsd2.[89] | openbsd2.[89].*)
15265         shlibpath_overrides_runpath=no
15266         ;;
15267       *)
15268         shlibpath_overrides_runpath=yes
15269         ;;
15270       esac
15271   else
15272     shlibpath_overrides_runpath=yes
15273   fi
15274   ;;
15275
15276 os2*)
15277   libname_spec='$name'
15278   shrext_cmds=".dll"
15279   need_lib_prefix=no
15280   library_names_spec='$libname${shared_ext} $libname.a'
15281   dynamic_linker='OS/2 ld.exe'
15282   shlibpath_var=LIBPATH
15283   ;;
15284
15285 osf3* | osf4* | osf5*)
15286   version_type=osf
15287   need_lib_prefix=no
15288   need_version=no
15289   soname_spec='${libname}${release}${shared_ext}$major'
15290   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15291   shlibpath_var=LD_LIBRARY_PATH
15292   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
15293   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
15294   ;;
15295
15296 rdos*)
15297   dynamic_linker=no
15298   ;;
15299
15300 solaris*)
15301   version_type=linux
15302   need_lib_prefix=no
15303   need_version=no
15304   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15305   soname_spec='${libname}${release}${shared_ext}$major'
15306   shlibpath_var=LD_LIBRARY_PATH
15307   shlibpath_overrides_runpath=yes
15308   hardcode_into_libs=yes
15309   # ldd complains unless libraries are executable
15310   postinstall_cmds='chmod +x $lib'
15311   ;;
15312
15313 sunos4*)
15314   version_type=sunos
15315   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15316   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
15317   shlibpath_var=LD_LIBRARY_PATH
15318   shlibpath_overrides_runpath=yes
15319   if test "$with_gnu_ld" = yes; then
15320     need_lib_prefix=no
15321   fi
15322   need_version=yes
15323   ;;
15324
15325 sysv4 | sysv4.3*)
15326   version_type=linux
15327   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15328   soname_spec='${libname}${release}${shared_ext}$major'
15329   shlibpath_var=LD_LIBRARY_PATH
15330   case $host_vendor in
15331     sni)
15332       shlibpath_overrides_runpath=no
15333       need_lib_prefix=no
15334       runpath_var=LD_RUN_PATH
15335       ;;
15336     siemens)
15337       need_lib_prefix=no
15338       ;;
15339     motorola)
15340       need_lib_prefix=no
15341       need_version=no
15342       shlibpath_overrides_runpath=no
15343       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
15344       ;;
15345   esac
15346   ;;
15347
15348 sysv4*MP*)
15349   if test -d /usr/nec ;then
15350     version_type=linux
15351     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
15352     soname_spec='$libname${shared_ext}.$major'
15353     shlibpath_var=LD_LIBRARY_PATH
15354   fi
15355   ;;
15356
15357 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
15358   version_type=freebsd-elf
15359   need_lib_prefix=no
15360   need_version=no
15361   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15362   soname_spec='${libname}${release}${shared_ext}$major'
15363   shlibpath_var=LD_LIBRARY_PATH
15364   shlibpath_overrides_runpath=yes
15365   hardcode_into_libs=yes
15366   if test "$with_gnu_ld" = yes; then
15367     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
15368   else
15369     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
15370     case $host_os in
15371       sco3.2v5*)
15372         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
15373         ;;
15374     esac
15375   fi
15376   sys_lib_dlsearch_path_spec='/usr/lib'
15377   ;;
15378
15379 tpf*)
15380   # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
15381   version_type=linux
15382   need_lib_prefix=no
15383   need_version=no
15384   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15385   shlibpath_var=LD_LIBRARY_PATH
15386   shlibpath_overrides_runpath=no
15387   hardcode_into_libs=yes
15388   ;;
15389
15390 uts4*)
15391   version_type=linux
15392   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15393   soname_spec='${libname}${release}${shared_ext}$major'
15394   shlibpath_var=LD_LIBRARY_PATH
15395   ;;
15396
15397 *)
15398   dynamic_linker=no
15399   ;;
15400 esac
15401 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
15402 $as_echo "$dynamic_linker" >&6; }
15403 test "$dynamic_linker" = no && can_build_shared=no
15404
15405 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
15406 if test "$GCC" = yes; then
15407   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
15408 fi
15409
15410 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
15411   sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
15412 fi
15413 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
15414   sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
15415 fi
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
15444
15445
15446
15447
15448
15449
15450
15451
15452     { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
15453 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
15454 hardcode_action_CXX=
15455 if test -n "$hardcode_libdir_flag_spec_CXX" ||
15456    test -n "$runpath_var_CXX" ||
15457    test "X$hardcode_automatic_CXX" = "Xyes" ; then
15458
15459   # We can hardcode non-existent directories.
15460   if test "$hardcode_direct_CXX" != no &&
15461      # If the only mechanism to avoid hardcoding is shlibpath_var, we
15462      # have to relink, otherwise we might link with an installed library
15463      # when we should be linking with a yet-to-be-installed one
15464      ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
15465      test "$hardcode_minus_L_CXX" != no; then
15466     # Linking always hardcodes the temporary library directory.
15467     hardcode_action_CXX=relink
15468   else
15469     # We can link without hardcoding, and we can hardcode nonexisting dirs.
15470     hardcode_action_CXX=immediate
15471   fi
15472 else
15473   # We cannot hardcode anything, or else we can only hardcode existing
15474   # directories.
15475   hardcode_action_CXX=unsupported
15476 fi
15477 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
15478 $as_echo "$hardcode_action_CXX" >&6; }
15479
15480 if test "$hardcode_action_CXX" = relink ||
15481    test "$inherit_rpath_CXX" = yes; then
15482   # Fast installation is not supported
15483   enable_fast_install=no
15484 elif test "$shlibpath_overrides_runpath" = yes ||
15485      test "$enable_shared" = no; then
15486   # Fast installation is not necessary
15487   enable_fast_install=needless
15488 fi
15489
15490
15491
15492
15493
15494
15495
15496   fi # test -n "$compiler"
15497
15498   CC=$lt_save_CC
15499   LDCXX=$LD
15500   LD=$lt_save_LD
15501   GCC=$lt_save_GCC
15502   with_gnu_ld=$lt_save_with_gnu_ld
15503   lt_cv_path_LDCXX=$lt_cv_path_LD
15504   lt_cv_path_LD=$lt_save_path_LD
15505   lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
15506   lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
15507 fi # test "$_lt_caught_CXX_error" != yes
15508
15509 ac_ext=c
15510 ac_cpp='$CPP $CPPFLAGS'
15511 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15512 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15513 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15514
15515
15516
15517
15518
15519
15520
15521
15522
15523
15524
15525
15526
15527         ac_config_commands="$ac_config_commands libtool"
15528
15529
15530
15531
15532 # Only expand once:
15533
15534
15535
15536
15537 if test x$use_libtool != xno; then
15538    DEFAULT_OBJECT_TYPE=".lo"
15539    DEFAULT_ARCHIVE_TYPE=".la"
15540    DEFAULT_SHARED_OBJECT_TYPE=".la"
15541    LIBTOOL="\$(LIBTOOL)"
15542    LIBTOOL_INSTALL_TARGET="libtool-install"
15543    LIBTOOL_UNINSTALL_TARGET="libtool-uninstall"
15544    LIBTOOL_CLEAN_TARGET="libtool-clean"
15545    QMAKE_LIBTOOL="${BUILD_DIR}/libtool"
15546    FD_PLUGIN_DIR="src/plugins/fd"
15547    have_plugins=yes
15548 else
15549    DEFAULT_OBJECT_TYPE=".o"
15550    DEFAULT_ARCHIVE_TYPE=".a"
15551    DEFAULT_SHARED_OBJECT_TYPE=".so"
15552    LIBTOOL="# \$(LIBTOOL)"
15553    LIBTOOL_INSTALL_TARGET=""
15554    LIBTOOL_UNINSTALL_TARGET=""
15555    LIBTOOL_CLEAN_TARGET=""
15556    QMAKE_LIBTOOL="# ${BUILD_DIR}/libtool"
15557    FD_PLUGIN_DIR=""
15558    have_plugins=no
15559 fi
15560
15561
15562
15563
15564
15565
15566
15567
15568
15569
15570
15571 # Check whether --enable-includes was given.
15572 if test "${enable_includes+set}" = set; then :
15573   enableval=$enable_includes;
15574        if test x$enableval = xyes; then
15575           install_includes=yes
15576        fi
15577
15578
15579 fi
15580
15581
15582
15583 if test x$use_libtool != xno -a x$install_includes = xyes; then
15584    INCLUDE_INSTALL_TARGET="install-includes"
15585    INCLUDE_UNINSTALL_TARGET="uninstall-includes"
15586 else
15587    INCLUDE_INSTALL_TARGET=""
15588    INCLUDE_UNINSTALL_TARGET=""
15589 fi
15590
15591
15592
15593
15594
15595 case $host_os in
15596   *cygwin* ) CYGWIN=yes;;
15597          * ) CYGWIN=no;;
15598 esac
15599
15600 if test $HAVE_UNAME=yes -a x`uname -s` = xSunOS
15601 then
15602
15603
15604 if $TRUEPRG; then
15605   HAVE_SUN_OS_TRUE=
15606   HAVE_SUN_OS_FALSE='#'
15607 else
15608   HAVE_SUN_OS_TRUE='#'
15609   HAVE_SUN_OS_FALSE=
15610 fi
15611         $as_echo "#define HAVE_SUN_OS 1" >>confdefs.h
15612
15613 else
15614
15615
15616 if $FALSEPRG; then
15617   HAVE_SUN_OS_TRUE=
15618   HAVE_SUN_OS_FALSE='#'
15619 else
15620   HAVE_SUN_OS_TRUE='#'
15621   HAVE_SUN_OS_FALSE=
15622 fi
15623 fi
15624
15625 if test $HAVE_UNAME=yes -a x`uname -s` = xOSF1
15626 then
15627
15628
15629 if $TRUEPRG; then
15630   HAVE_OSF1_OS_TRUE=
15631   HAVE_OSF1_OS_FALSE='#'
15632 else
15633   HAVE_OSF1_OS_TRUE='#'
15634   HAVE_OSF1_OS_FALSE=
15635 fi
15636         $as_echo "#define HAVE_OSF1_OS 1" >>confdefs.h
15637
15638 else
15639
15640
15641 if $FALSEPRG; then
15642   HAVE_OSF1_OS_TRUE=
15643   HAVE_OSF1_OS_FALSE='#'
15644 else
15645   HAVE_OSF1_OS_TRUE='#'
15646   HAVE_OSF1_OS_FALSE=
15647 fi
15648 fi
15649
15650 if test $HAVE_UNAME=yes -a x`uname -s` = xAIX
15651 then
15652
15653
15654 if $TRUEPRG; then
15655   HAVE_AIX_OS_TRUE=
15656   HAVE_AIX_OS_FALSE='#'
15657 else
15658   HAVE_AIX_OS_TRUE='#'
15659   HAVE_AIX_OS_FALSE=
15660 fi
15661         $as_echo "#define HAVE_AIX_OS 1" >>confdefs.h
15662
15663 else
15664
15665
15666 if $FALSEPRG; then
15667   HAVE_AIX_OS_TRUE=
15668   HAVE_AIX_OS_FALSE='#'
15669 else
15670   HAVE_AIX_OS_TRUE='#'
15671   HAVE_AIX_OS_FALSE=
15672 fi
15673 fi
15674
15675 if test $HAVE_UNAME=yes -a x`uname -s` = xHP-UX
15676 then
15677
15678
15679 if $TRUEPRG; then
15680   HAVE_HPUX_OS_TRUE=
15681   HAVE_HPUX_OS_FALSE='#'
15682 else
15683   HAVE_HPUX_OS_TRUE='#'
15684   HAVE_HPUX_OS_FALSE=
15685 fi
15686         $as_echo "#define HAVE_HPUX_OS 1" >>confdefs.h
15687
15688 else
15689
15690
15691 if $FALSEPRG; then
15692   HAVE_HPUX_OS_TRUE=
15693   HAVE_HPUX_OS_FALSE='#'
15694 else
15695   HAVE_HPUX_OS_TRUE='#'
15696   HAVE_HPUX_OS_FALSE=
15697 fi
15698 fi
15699
15700 if test $HAVE_UNAME=yes -a x`uname -s` = xLinux
15701 then
15702
15703
15704 if $TRUEPRG; then
15705   HAVE_LINUX_OS_TRUE=
15706   HAVE_LINUX_OS_FALSE='#'
15707 else
15708   HAVE_LINUX_OS_TRUE='#'
15709   HAVE_LINUX_OS_FALSE=
15710 fi
15711         $as_echo "#define HAVE_LINUX_OS 1" >>confdefs.h
15712
15713 else
15714
15715
15716 if $FALSEPRG; then
15717   HAVE_LINUX_OS_TRUE=
15718   HAVE_LINUX_OS_FALSE='#'
15719 else
15720   HAVE_LINUX_OS_TRUE='#'
15721   HAVE_LINUX_OS_FALSE=
15722 fi
15723 fi
15724
15725 if test $HAVE_UNAME=yes -a x`uname -s` = xFreeBSD
15726 then
15727
15728
15729 if $TRUEPRG; then
15730   HAVE_FREEBSD_OS_TRUE=
15731   HAVE_FREEBSD_OS_FALSE='#'
15732 else
15733   HAVE_FREEBSD_OS_TRUE='#'
15734   HAVE_FREEBSD_OS_FALSE=
15735 fi
15736         $as_echo "#define HAVE_FREEBSD_OS 1" >>confdefs.h
15737
15738 else
15739
15740
15741 if $FALSEPRG; then
15742   HAVE_FREEBSD_OS_TRUE=
15743   HAVE_FREEBSD_OS_FALSE='#'
15744 else
15745   HAVE_FREEBSD_OS_TRUE='#'
15746   HAVE_FREEBSD_OS_FALSE=
15747 fi
15748 fi
15749
15750 if test $HAVE_UNAME=yes -a x`uname -s` = xNetBSD
15751 then
15752
15753
15754 if $TRUEPRG; then
15755   HAVE_NETBSD_OS_TRUE=
15756   HAVE_NETBSD_OS_FALSE='#'
15757 else
15758   HAVE_NETBSD_OS_TRUE='#'
15759   HAVE_NETBSD_OS_FALSE=
15760 fi
15761         $as_echo "#define HAVE_NETBSD_OS 1" >>confdefs.h
15762
15763 else
15764
15765
15766 if $FALSEPRG; then
15767   HAVE_NETBSD_OS_TRUE=
15768   HAVE_NETBSD_OS_FALSE='#'
15769 else
15770   HAVE_NETBSD_OS_TRUE='#'
15771   HAVE_NETBSD_OS_FALSE=
15772 fi
15773 fi
15774
15775 if test $HAVE_UNAME=yes -a x`uname -s` = xOpenBSD
15776 then
15777
15778
15779 if $TRUEPRG; then
15780   HAVE_OPENBSD_OS_TRUE=
15781   HAVE_OPENBSD_OS_FALSE='#'
15782 else
15783   HAVE_OPENBSD_OS_TRUE='#'
15784   HAVE_OPENBSD_OS_FALSE=
15785 fi
15786         $as_echo "#define HAVE_OPENBSD_OS 1" >>confdefs.h
15787
15788 else
15789
15790
15791 if $FALSEPRG; then
15792   HAVE_OPENBSD_OS_TRUE=
15793   HAVE_OPENBSD_OS_FALSE='#'
15794 else
15795   HAVE_OPENBSD_OS_TRUE='#'
15796   HAVE_OPENBSD_OS_FALSE=
15797 fi
15798 fi
15799
15800 if test $HAVE_UNAME=yes -a x`uname -s` = xBSD/OS
15801 then
15802
15803
15804 if $TRUEPRG; then
15805   HAVE_BSDI_OS_TRUE=
15806   HAVE_BSDI_OS_FALSE='#'
15807 else
15808   HAVE_BSDI_OS_TRUE='#'
15809   HAVE_BSDI_OS_FALSE=
15810 fi
15811         $as_echo "#define HAVE_BSDI_OS 1" >>confdefs.h
15812
15813 else
15814
15815
15816 if $FALSEPRG; then
15817   HAVE_BSDI_OS_TRUE=
15818   HAVE_BSDI_OS_FALSE='#'
15819 else
15820   HAVE_BSDI_OS_TRUE='#'
15821   HAVE_BSDI_OS_FALSE=
15822 fi
15823 fi
15824
15825 if test $HAVE_UNAME=yes -a x`uname -s` = xSGI
15826 then
15827
15828
15829 if $TRUEPRG; then
15830   HAVE_SGI_OS_TRUE=
15831   HAVE_SGI_OS_FALSE='#'
15832 else
15833   HAVE_SGI_OS_TRUE='#'
15834   HAVE_SGI_OS_FALSE=
15835 fi
15836         $as_echo "#define HAVE_SGI_OS 1" >>confdefs.h
15837
15838 else
15839
15840
15841 if $FALSEPRG; then
15842   HAVE_SGI_OS_TRUE=
15843   HAVE_SGI_OS_FALSE='#'
15844 else
15845   HAVE_SGI_OS_TRUE='#'
15846   HAVE_SGI_OS_FALSE=
15847 fi
15848 fi
15849
15850 if test $HAVE_UNAME=yes -a x`uname -s` = xIRIX -o x`uname -s` = xIRIX64
15851 then
15852
15853
15854 if $TRUEPRG; then
15855   HAVE_IRIX_OS_TRUE=
15856   HAVE_IRIX_OS_FALSE='#'
15857 else
15858   HAVE_IRIX_OS_TRUE='#'
15859   HAVE_IRIX_OS_FALSE=
15860 fi
15861         $as_echo "#define HAVE_IRIX_OS 1" >>confdefs.h
15862
15863 else
15864
15865
15866 if $FALSEPRG; then
15867   HAVE_IRIX_OS_TRUE=
15868   HAVE_IRIX_OS_FALSE='#'
15869 else
15870   HAVE_IRIX_OS_TRUE='#'
15871   HAVE_IRIX_OS_FALSE=
15872 fi
15873 fi
15874
15875 if test $HAVE_UNAME=yes -a x`uname -s` = xDarwin
15876 then
15877
15878
15879 if $TRUEPRG; then
15880   HAVE_DARWIN_OS_TRUE=
15881   HAVE_DARWIN_OS_FALSE='#'
15882 else
15883   HAVE_DARWIN_OS_TRUE='#'
15884   HAVE_DARWIN_OS_FALSE=
15885 fi
15886     $as_echo "#define HAVE_DARWIN_OS 1" >>confdefs.h
15887
15888 else
15889
15890
15891 if $FALSEPRG; then
15892   HAVE_DARWIN_OS_TRUE=
15893   HAVE_DARWIN_OS_FALSE='#'
15894 else
15895   HAVE_DARWIN_OS_TRUE='#'
15896   HAVE_DARWIN_OS_FALSE=
15897 fi
15898 fi
15899
15900
15901 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Operating System Distribution" >&5
15902 $as_echo_n "checking for Operating System Distribution... " >&6; }
15903 if test "x$DISTNAME" != "x"
15904 then
15905         echo "distname set to $DISTNAME"
15906 elif test $HAVE_UNAME=yes -a x`uname -s` = xOSF1
15907 then
15908         DISTNAME=alpha
15909 elif test $HAVE_UNAME=yes -a x`uname -s` = xAIX
15910 then
15911         DISTNAME=aix
15912 elif test $HAVE_UNAME=yes -a x`uname -s` = xHP-UX
15913 then
15914         DISTNAME=hpux
15915 elif test $HAVE_UNAME=yes -a x`uname -s` = xSunOS
15916 then
15917         DISTNAME=solaris
15918 elif test $HAVE_UNAME=yes -a x`uname -s` = xFreeBSD
15919 then
15920         DISTNAME=freebsd
15921 elif test $HAVE_UNAME=yes -a x`uname -s` = xNetBSD
15922 then
15923         DISTNAME=netbsd
15924 elif test $HAVE_UNAME=yes -a x`uname -s` = xOpenBSD
15925 then
15926         DISTNAME=openbsd
15927 elif test $HAVE_UNAME=yes -a x`uname -s` = xIRIX
15928 then
15929         DISTNAME=irix
15930 elif test $HAVE_UNAME=yes -a x`uname -s` = xBSD/OS
15931 then
15932         DISTNAME=bsdi
15933 elif test -f /etc/SuSE-release
15934 then
15935         DISTNAME=suse
15936 elif test -d /etc/SuSEconfig
15937 then
15938         DISTNAME=suse5
15939 elif test -f /etc/mandrake-release
15940 then
15941         DISTNAME=mandrake
15942 elif test -f /etc/whitebox-release
15943 then
15944        DISTNAME=redhat
15945 elif test -f /etc/redhat-release
15946 then
15947         DISTNAME=redhat
15948 elif test -f /etc/gentoo-release
15949 then
15950         DISTNAME=gentoo
15951 elif test -f /etc/debian_version
15952 then
15953         DISTNAME=debian
15954 elif test -f /etc/slackware-version
15955 then
15956         DISTNAME=slackware
15957 elif test x$host_vendor = xapple
15958 then
15959     DISTNAME=osx
15960 elif test $HAVE_UNAME=yes -a x`uname -s` = xDarwin
15961 then
15962     DISTNAME=darwin
15963 elif test -f /etc/engarde-version
15964 then
15965         DISTNAME=engarde
15966 elif test "$CYGWIN" = yes
15967 then
15968         DISTNAME=cygwin
15969         $as_echo "#define HAVE_CYGWIN 1" >>confdefs.h
15970
15971 else
15972         DISTNAME=unknown
15973 fi
15974 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
15975 $as_echo "done" >&6; }
15976
15977
15978 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
15979 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
15980 set x ${MAKE-make}
15981 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
15982 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
15983   $as_echo_n "(cached) " >&6
15984 else
15985   cat >conftest.make <<\_ACEOF
15986 SHELL = /bin/sh
15987 all:
15988         @echo '@@@%%%=$(MAKE)=@@@%%%'
15989 _ACEOF
15990 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
15991 case `${MAKE-make} -f conftest.make 2>/dev/null` in
15992   *@@@%%%=?*=@@@%%%*)
15993     eval ac_cv_prog_make_${ac_make}_set=yes;;
15994   *)
15995     eval ac_cv_prog_make_${ac_make}_set=no;;
15996 esac
15997 rm -f conftest.make
15998 fi
15999 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
16000   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16001 $as_echo "yes" >&6; }
16002   SET_MAKE=
16003 else
16004   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16005 $as_echo "no" >&6; }
16006   SET_MAKE="MAKE=${MAKE-make}"
16007 fi
16008
16009
16010
16011         MKINSTALLDIRS=
16012   if test -n "$ac_aux_dir"; then
16013     case "$ac_aux_dir" in
16014       /*) MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs" ;;
16015       *) MKINSTALLDIRS="\$(top_builddir)/$ac_aux_dir/mkinstalldirs" ;;
16016     esac
16017   fi
16018   if test -z "$MKINSTALLDIRS"; then
16019     MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs"
16020   fi
16021
16022
16023
16024   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
16025 $as_echo_n "checking whether NLS is requested... " >&6; }
16026     # Check whether --enable-nls was given.
16027 if test "${enable_nls+set}" = set; then :
16028   enableval=$enable_nls; USE_NLS=$enableval
16029 else
16030   USE_NLS=yes
16031 fi
16032
16033   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
16034 $as_echo "$USE_NLS" >&6; }
16035
16036
16037
16038
16039
16040
16041 # Prepare PATH_SEPARATOR.
16042 # The user is always right.
16043 if test "${PATH_SEPARATOR+set}" != set; then
16044   echo "#! /bin/sh" >conf$$.sh
16045   echo  "exit 0"   >>conf$$.sh
16046   chmod +x conf$$.sh
16047   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
16048     PATH_SEPARATOR=';'
16049   else
16050     PATH_SEPARATOR=:
16051   fi
16052   rm -f conf$$.sh
16053 fi
16054
16055 # Find out how to test for executable files. Don't use a zero-byte file,
16056 # as systems may use methods other than mode bits to determine executability.
16057 cat >conf$$.file <<_ASEOF
16058 #! /bin/sh
16059 exit 0
16060 _ASEOF
16061 chmod +x conf$$.file
16062 if test -x conf$$.file >/dev/null 2>&1; then
16063   ac_executable_p="test -x"
16064 else
16065   ac_executable_p="test -f"
16066 fi
16067 rm -f conf$$.file
16068
16069 # Extract the first word of "msgfmt", so it can be a program name with args.
16070 set dummy msgfmt; ac_word=$2
16071 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16072 $as_echo_n "checking for $ac_word... " >&6; }
16073 if test "${ac_cv_path_MSGFMT+set}" = set; then :
16074   $as_echo_n "(cached) " >&6
16075 else
16076   case "$MSGFMT" in
16077   [\\/]* | ?:[\\/]*)
16078     ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
16079     ;;
16080   *)
16081     ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
16082     for ac_dir in $PATH; do
16083       IFS="$ac_save_IFS"
16084       test -z "$ac_dir" && ac_dir=.
16085       for ac_exec_ext in '' $ac_executable_extensions; do
16086         if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
16087           echo "$as_me: trying $ac_dir/$ac_word..." >&5
16088           if $ac_dir/$ac_word --statistics /dev/null >&5 2>&1 &&
16089      (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
16090             ac_cv_path_MSGFMT="$ac_dir/$ac_word$ac_exec_ext"
16091             break 2
16092           fi
16093         fi
16094       done
16095     done
16096     IFS="$ac_save_IFS"
16097   test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
16098     ;;
16099 esac
16100 fi
16101 MSGFMT="$ac_cv_path_MSGFMT"
16102 if test "$MSGFMT" != ":"; then
16103   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGFMT" >&5
16104 $as_echo "$MSGFMT" >&6; }
16105 else
16106   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16107 $as_echo "no" >&6; }
16108 fi
16109
16110   # Extract the first word of "gmsgfmt", so it can be a program name with args.
16111 set dummy gmsgfmt; ac_word=$2
16112 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16113 $as_echo_n "checking for $ac_word... " >&6; }
16114 if test "${ac_cv_path_GMSGFMT+set}" = set; then :
16115   $as_echo_n "(cached) " >&6
16116 else
16117   case $GMSGFMT in
16118   [\\/]* | ?:[\\/]*)
16119   ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
16120   ;;
16121   *)
16122   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16123 for as_dir in $PATH
16124 do
16125   IFS=$as_save_IFS
16126   test -z "$as_dir" && as_dir=.
16127     for ac_exec_ext in '' $ac_executable_extensions; do
16128   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
16129     ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
16130     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16131     break 2
16132   fi
16133 done
16134   done
16135 IFS=$as_save_IFS
16136
16137   test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
16138   ;;
16139 esac
16140 fi
16141 GMSGFMT=$ac_cv_path_GMSGFMT
16142 if test -n "$GMSGFMT"; then
16143   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GMSGFMT" >&5
16144 $as_echo "$GMSGFMT" >&6; }
16145 else
16146   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16147 $as_echo "no" >&6; }
16148 fi
16149
16150
16151
16152
16153 # Prepare PATH_SEPARATOR.
16154 # The user is always right.
16155 if test "${PATH_SEPARATOR+set}" != set; then
16156   echo "#! /bin/sh" >conf$$.sh
16157   echo  "exit 0"   >>conf$$.sh
16158   chmod +x conf$$.sh
16159   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
16160     PATH_SEPARATOR=';'
16161   else
16162     PATH_SEPARATOR=:
16163   fi
16164   rm -f conf$$.sh
16165 fi
16166
16167 # Find out how to test for executable files. Don't use a zero-byte file,
16168 # as systems may use methods other than mode bits to determine executability.
16169 cat >conf$$.file <<_ASEOF
16170 #! /bin/sh
16171 exit 0
16172 _ASEOF
16173 chmod +x conf$$.file
16174 if test -x conf$$.file >/dev/null 2>&1; then
16175   ac_executable_p="test -x"
16176 else
16177   ac_executable_p="test -f"
16178 fi
16179 rm -f conf$$.file
16180
16181 # Extract the first word of "xgettext", so it can be a program name with args.
16182 set dummy xgettext; ac_word=$2
16183 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16184 $as_echo_n "checking for $ac_word... " >&6; }
16185 if test "${ac_cv_path_XGETTEXT+set}" = set; then :
16186   $as_echo_n "(cached) " >&6
16187 else
16188   case "$XGETTEXT" in
16189   [\\/]* | ?:[\\/]*)
16190     ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
16191     ;;
16192   *)
16193     ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
16194     for ac_dir in $PATH; do
16195       IFS="$ac_save_IFS"
16196       test -z "$ac_dir" && ac_dir=.
16197       for ac_exec_ext in '' $ac_executable_extensions; do
16198         if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
16199           echo "$as_me: trying $ac_dir/$ac_word..." >&5
16200           if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >&5 2>&1 &&
16201      (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
16202             ac_cv_path_XGETTEXT="$ac_dir/$ac_word$ac_exec_ext"
16203             break 2
16204           fi
16205         fi
16206       done
16207     done
16208     IFS="$ac_save_IFS"
16209   test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
16210     ;;
16211 esac
16212 fi
16213 XGETTEXT="$ac_cv_path_XGETTEXT"
16214 if test "$XGETTEXT" != ":"; then
16215   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XGETTEXT" >&5
16216 $as_echo "$XGETTEXT" >&6; }
16217 else
16218   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16219 $as_echo "no" >&6; }
16220 fi
16221
16222     rm -f messages.po
16223
16224
16225 # Prepare PATH_SEPARATOR.
16226 # The user is always right.
16227 if test "${PATH_SEPARATOR+set}" != set; then
16228   echo "#! /bin/sh" >conf$$.sh
16229   echo  "exit 0"   >>conf$$.sh
16230   chmod +x conf$$.sh
16231   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
16232     PATH_SEPARATOR=';'
16233   else
16234     PATH_SEPARATOR=:
16235   fi
16236   rm -f conf$$.sh
16237 fi
16238
16239 # Find out how to test for executable files. Don't use a zero-byte file,
16240 # as systems may use methods other than mode bits to determine executability.
16241 cat >conf$$.file <<_ASEOF
16242 #! /bin/sh
16243 exit 0
16244 _ASEOF
16245 chmod +x conf$$.file
16246 if test -x conf$$.file >/dev/null 2>&1; then
16247   ac_executable_p="test -x"
16248 else
16249   ac_executable_p="test -f"
16250 fi
16251 rm -f conf$$.file
16252
16253 # Extract the first word of "msgmerge", so it can be a program name with args.
16254 set dummy msgmerge; ac_word=$2
16255 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16256 $as_echo_n "checking for $ac_word... " >&6; }
16257 if test "${ac_cv_path_MSGMERGE+set}" = set; then :
16258   $as_echo_n "(cached) " >&6
16259 else
16260   case "$MSGMERGE" in
16261   [\\/]* | ?:[\\/]*)
16262     ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path.
16263     ;;
16264   *)
16265     ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
16266     for ac_dir in $PATH; do
16267       IFS="$ac_save_IFS"
16268       test -z "$ac_dir" && ac_dir=.
16269       for ac_exec_ext in '' $ac_executable_extensions; do
16270         if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
16271           echo "$as_me: trying $ac_dir/$ac_word..." >&5
16272           if $ac_dir/$ac_word --update -q /dev/null /dev/null >&5 2>&1; then
16273             ac_cv_path_MSGMERGE="$ac_dir/$ac_word$ac_exec_ext"
16274             break 2
16275           fi
16276         fi
16277       done
16278     done
16279     IFS="$ac_save_IFS"
16280   test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":"
16281     ;;
16282 esac
16283 fi
16284 MSGMERGE="$ac_cv_path_MSGMERGE"
16285 if test "$MSGMERGE" != ":"; then
16286   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGMERGE" >&5
16287 $as_echo "$MSGMERGE" >&6; }
16288 else
16289   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16290 $as_echo "no" >&6; }
16291 fi
16292
16293
16294       if test "$GMSGFMT" != ":"; then
16295             if $GMSGFMT --statistics /dev/null >/dev/null 2>&1 &&
16296        (if $GMSGFMT --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
16297       : ;
16298     else
16299       GMSGFMT=`echo "$GMSGFMT" | sed -e 's,^.*/,,'`
16300       { $as_echo "$as_me:${as_lineno-$LINENO}: result: found $GMSGFMT program is not GNU msgfmt; ignore it" >&5
16301 $as_echo "found $GMSGFMT program is not GNU msgfmt; ignore it" >&6; }
16302       GMSGFMT=":"
16303     fi
16304   fi
16305
16306       if test "$XGETTEXT" != ":"; then
16307             if $XGETTEXT --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 &&
16308        (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
16309       : ;
16310     else
16311       { $as_echo "$as_me:${as_lineno-$LINENO}: result: found xgettext program is not GNU xgettext; ignore it" >&5
16312 $as_echo "found xgettext program is not GNU xgettext; ignore it" >&6; }
16313       XGETTEXT=":"
16314     fi
16315         rm -f messages.po
16316   fi
16317
16318   ac_config_commands="$ac_config_commands default-1"
16319
16320
16321
16322       if test "X$prefix" = "XNONE"; then
16323     acl_final_prefix="$ac_default_prefix"
16324   else
16325     acl_final_prefix="$prefix"
16326   fi
16327   if test "X$exec_prefix" = "XNONE"; then
16328     acl_final_exec_prefix='${prefix}'
16329   else
16330     acl_final_exec_prefix="$exec_prefix"
16331   fi
16332   acl_save_prefix="$prefix"
16333   prefix="$acl_final_prefix"
16334   eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
16335   prefix="$acl_save_prefix"
16336
16337
16338 # Check whether --with-gnu-ld was given.
16339 if test "${with_gnu_ld+set}" = set; then :
16340   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
16341 else
16342   with_gnu_ld=no
16343 fi
16344
16345 # Prepare PATH_SEPARATOR.
16346 # The user is always right.
16347 if test "${PATH_SEPARATOR+set}" != set; then
16348   echo "#! /bin/sh" >conf$$.sh
16349   echo  "exit 0"   >>conf$$.sh
16350   chmod +x conf$$.sh
16351   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
16352     PATH_SEPARATOR=';'
16353   else
16354     PATH_SEPARATOR=:
16355   fi
16356   rm -f conf$$.sh
16357 fi
16358 ac_prog=ld
16359 if test "$GCC" = yes; then
16360   # Check if gcc -print-prog-name=ld gives a path.
16361   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by GCC" >&5
16362 $as_echo_n "checking for ld used by GCC... " >&6; }
16363   case $host in
16364   *-*-mingw*)
16365     # gcc leaves a trailing carriage return which upsets mingw
16366     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
16367   *)
16368     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
16369   esac
16370   case $ac_prog in
16371     # Accept absolute paths.
16372     [\\/]* | [A-Za-z]:[\\/]*)
16373       re_direlt='/[^/][^/]*/\.\./'
16374       # Canonicalize the path of ld
16375       ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
16376       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
16377         ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
16378       done
16379       test -z "$LD" && LD="$ac_prog"
16380       ;;
16381   "")
16382     # If it fails, then pretend we aren't using GCC.
16383     ac_prog=ld
16384     ;;
16385   *)
16386     # If it is relative, then search for the first ld in PATH.
16387     with_gnu_ld=unknown
16388     ;;
16389   esac
16390 elif test "$with_gnu_ld" = yes; then
16391   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
16392 $as_echo_n "checking for GNU ld... " >&6; }
16393 else
16394   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
16395 $as_echo_n "checking for non-GNU ld... " >&6; }
16396 fi
16397 if test "${acl_cv_path_LD+set}" = set; then :
16398   $as_echo_n "(cached) " >&6
16399 else
16400   if test -z "$LD"; then
16401   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
16402   for ac_dir in $PATH; do
16403     test -z "$ac_dir" && ac_dir=.
16404     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
16405       acl_cv_path_LD="$ac_dir/$ac_prog"
16406       # Check to see if the program is GNU ld.  I'd rather use --version,
16407       # but apparently some GNU ld's only accept -v.
16408       # Break only if it was the GNU/non-GNU ld that we prefer.
16409       case `"$acl_cv_path_LD" -v 2>&1 < /dev/null` in
16410       *GNU* | *'with BFD'*)
16411         test "$with_gnu_ld" != no && break ;;
16412       *)
16413         test "$with_gnu_ld" != yes && break ;;
16414       esac
16415     fi
16416   done
16417   IFS="$ac_save_ifs"
16418 else
16419   acl_cv_path_LD="$LD" # Let the user override the test with a path.
16420 fi
16421 fi
16422
16423 LD="$acl_cv_path_LD"
16424 if test -n "$LD"; then
16425   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
16426 $as_echo "$LD" >&6; }
16427 else
16428   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16429 $as_echo "no" >&6; }
16430 fi
16431 test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
16432 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
16433 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
16434 if test "${acl_cv_prog_gnu_ld+set}" = set; then :
16435   $as_echo_n "(cached) " >&6
16436 else
16437   # I'd rather use --version here, but apparently some GNU ld's only accept -v.
16438 case `$LD -v 2>&1 </dev/null` in
16439 *GNU* | *'with BFD'*)
16440   acl_cv_prog_gnu_ld=yes ;;
16441 *)
16442   acl_cv_prog_gnu_ld=no ;;
16443 esac
16444 fi
16445 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_prog_gnu_ld" >&5
16446 $as_echo "$acl_cv_prog_gnu_ld" >&6; }
16447 with_gnu_ld=$acl_cv_prog_gnu_ld
16448
16449
16450
16451
16452                                                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shared library run path origin" >&5
16453 $as_echo_n "checking for shared library run path origin... " >&6; }
16454 if test "${acl_cv_rpath+set}" = set; then :
16455   $as_echo_n "(cached) " >&6
16456 else
16457
16458     CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
16459     ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
16460     . ./conftest.sh
16461     rm -f ./conftest.sh
16462     acl_cv_rpath=done
16463
16464 fi
16465 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_rpath" >&5
16466 $as_echo "$acl_cv_rpath" >&6; }
16467   wl="$acl_cv_wl"
16468   libext="$acl_cv_libext"
16469   shlibext="$acl_cv_shlibext"
16470   hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
16471   hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
16472   hardcode_direct="$acl_cv_hardcode_direct"
16473   hardcode_minus_L="$acl_cv_hardcode_minus_L"
16474     # Check whether --enable-rpath was given.
16475 if test "${enable_rpath+set}" = set; then :
16476   enableval=$enable_rpath; :
16477 else
16478   enable_rpath=yes
16479 fi
16480
16481
16482
16483
16484
16485
16486
16487
16488     use_additional=yes
16489
16490   acl_save_prefix="$prefix"
16491   prefix="$acl_final_prefix"
16492   acl_save_exec_prefix="$exec_prefix"
16493   exec_prefix="$acl_final_exec_prefix"
16494
16495     eval additional_includedir=\"$includedir\"
16496     eval additional_libdir=\"$libdir\"
16497
16498   exec_prefix="$acl_save_exec_prefix"
16499   prefix="$acl_save_prefix"
16500
16501
16502 # Check whether --with-libiconv-prefix was given.
16503 if test "${with_libiconv_prefix+set}" = set; then :
16504   withval=$with_libiconv_prefix;
16505     if test "X$withval" = "Xno"; then
16506       use_additional=no
16507     else
16508       if test "X$withval" = "X"; then
16509
16510   acl_save_prefix="$prefix"
16511   prefix="$acl_final_prefix"
16512   acl_save_exec_prefix="$exec_prefix"
16513   exec_prefix="$acl_final_exec_prefix"
16514
16515           eval additional_includedir=\"$includedir\"
16516           eval additional_libdir=\"$libdir\"
16517
16518   exec_prefix="$acl_save_exec_prefix"
16519   prefix="$acl_save_prefix"
16520
16521       else
16522         additional_includedir="$withval/include"
16523         additional_libdir="$withval/lib"
16524       fi
16525     fi
16526
16527 fi
16528
16529       LIBICONV=
16530   LTLIBICONV=
16531   INCICONV=
16532   rpathdirs=
16533   ltrpathdirs=
16534   names_already_handled=
16535   names_next_round='iconv '
16536   while test -n "$names_next_round"; do
16537     names_this_round="$names_next_round"
16538     names_next_round=
16539     for name in $names_this_round; do
16540       already_handled=
16541       for n in $names_already_handled; do
16542         if test "$n" = "$name"; then
16543           already_handled=yes
16544           break
16545         fi
16546       done
16547       if test -z "$already_handled"; then
16548         names_already_handled="$names_already_handled $name"
16549                         uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
16550         eval value=\"\$HAVE_LIB$uppername\"
16551         if test -n "$value"; then
16552           if test "$value" = yes; then
16553             eval value=\"\$LIB$uppername\"
16554             test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
16555             eval value=\"\$LTLIB$uppername\"
16556             test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
16557           else
16558                                     :
16559           fi
16560         else
16561                               found_dir=
16562           found_la=
16563           found_so=
16564           found_a=
16565           if test $use_additional = yes; then
16566             if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
16567               found_dir="$additional_libdir"
16568               found_so="$additional_libdir/lib$name.$shlibext"
16569               if test -f "$additional_libdir/lib$name.la"; then
16570                 found_la="$additional_libdir/lib$name.la"
16571               fi
16572             else
16573               if test -f "$additional_libdir/lib$name.$libext"; then
16574                 found_dir="$additional_libdir"
16575                 found_a="$additional_libdir/lib$name.$libext"
16576                 if test -f "$additional_libdir/lib$name.la"; then
16577                   found_la="$additional_libdir/lib$name.la"
16578                 fi
16579               fi
16580             fi
16581           fi
16582           if test "X$found_dir" = "X"; then
16583             for x in $LDFLAGS $LTLIBICONV; do
16584
16585   acl_save_prefix="$prefix"
16586   prefix="$acl_final_prefix"
16587   acl_save_exec_prefix="$exec_prefix"
16588   exec_prefix="$acl_final_exec_prefix"
16589   eval x=\"$x\"
16590   exec_prefix="$acl_save_exec_prefix"
16591   prefix="$acl_save_prefix"
16592
16593               case "$x" in
16594                 -L*)
16595                   dir=`echo "X$x" | sed -e 's/^X-L//'`
16596                   if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
16597                     found_dir="$dir"
16598                     found_so="$dir/lib$name.$shlibext"
16599                     if test -f "$dir/lib$name.la"; then
16600                       found_la="$dir/lib$name.la"
16601                     fi
16602                   else
16603                     if test -f "$dir/lib$name.$libext"; then
16604                       found_dir="$dir"
16605                       found_a="$dir/lib$name.$libext"
16606                       if test -f "$dir/lib$name.la"; then
16607                         found_la="$dir/lib$name.la"
16608                       fi
16609                     fi
16610                   fi
16611                   ;;
16612               esac
16613               if test "X$found_dir" != "X"; then
16614                 break
16615               fi
16616             done
16617           fi
16618           if test "X$found_dir" != "X"; then
16619                         LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
16620             if test "X$found_so" != "X"; then
16621                                                         if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
16622                                 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
16623               else
16624                                                                                 haveit=
16625                 for x in $ltrpathdirs; do
16626                   if test "X$x" = "X$found_dir"; then
16627                     haveit=yes
16628                     break
16629                   fi
16630                 done
16631                 if test -z "$haveit"; then
16632                   ltrpathdirs="$ltrpathdirs $found_dir"
16633                 fi
16634                                 if test "$hardcode_direct" = yes; then
16635                                                       LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
16636                 else
16637                   if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
16638                                                             LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
16639                                                             haveit=
16640                     for x in $rpathdirs; do
16641                       if test "X$x" = "X$found_dir"; then
16642                         haveit=yes
16643                         break
16644                       fi
16645                     done
16646                     if test -z "$haveit"; then
16647                       rpathdirs="$rpathdirs $found_dir"
16648                     fi
16649                   else
16650                                                                                 haveit=
16651                     for x in $LDFLAGS $LIBICONV; do
16652
16653   acl_save_prefix="$prefix"
16654   prefix="$acl_final_prefix"
16655   acl_save_exec_prefix="$exec_prefix"
16656   exec_prefix="$acl_final_exec_prefix"
16657   eval x=\"$x\"
16658   exec_prefix="$acl_save_exec_prefix"
16659   prefix="$acl_save_prefix"
16660
16661                       if test "X$x" = "X-L$found_dir"; then
16662                         haveit=yes
16663                         break
16664                       fi
16665                     done
16666                     if test -z "$haveit"; then
16667                       LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
16668                     fi
16669                     if test "$hardcode_minus_L" != no; then
16670                                                                                         LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
16671                     else
16672                                                                                                                                                                                 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
16673                     fi
16674                   fi
16675                 fi
16676               fi
16677             else
16678               if test "X$found_a" != "X"; then
16679                                 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
16680               else
16681                                                 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
16682               fi
16683             fi
16684                         additional_includedir=
16685             case "$found_dir" in
16686               */lib | */lib/)
16687                 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
16688                 additional_includedir="$basedir/include"
16689                 ;;
16690             esac
16691             if test "X$additional_includedir" != "X"; then
16692                                                                                                                 if test "X$additional_includedir" != "X/usr/include"; then
16693                 haveit=
16694                 if test "X$additional_includedir" = "X/usr/local/include"; then
16695                   if test -n "$GCC"; then
16696                     case $host_os in
16697                       linux* | gnu* | k*bsd*-gnu) haveit=yes;;
16698                     esac
16699                   fi
16700                 fi
16701                 if test -z "$haveit"; then
16702                   for x in $CPPFLAGS $INCICONV; do
16703
16704   acl_save_prefix="$prefix"
16705   prefix="$acl_final_prefix"
16706   acl_save_exec_prefix="$exec_prefix"
16707   exec_prefix="$acl_final_exec_prefix"
16708   eval x=\"$x\"
16709   exec_prefix="$acl_save_exec_prefix"
16710   prefix="$acl_save_prefix"
16711
16712                     if test "X$x" = "X-I$additional_includedir"; then
16713                       haveit=yes
16714                       break
16715                     fi
16716                   done
16717                   if test -z "$haveit"; then
16718                     if test -d "$additional_includedir"; then
16719                                             INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
16720                     fi
16721                   fi
16722                 fi
16723               fi
16724             fi
16725                         if test -n "$found_la"; then
16726                                                         save_libdir="$libdir"
16727               case "$found_la" in
16728                 */* | *\\*) . "$found_la" ;;
16729                 *) . "./$found_la" ;;
16730               esac
16731               libdir="$save_libdir"
16732                             for dep in $dependency_libs; do
16733                 case "$dep" in
16734                   -L*)
16735                     additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
16736                                                                                                                                                                 if test "X$additional_libdir" != "X/usr/lib"; then
16737                       haveit=
16738                       if test "X$additional_libdir" = "X/usr/local/lib"; then
16739                         if test -n "$GCC"; then
16740                           case $host_os in
16741                             linux* | gnu* | k*bsd*-gnu) haveit=yes;;
16742                           esac
16743                         fi
16744                       fi
16745                       if test -z "$haveit"; then
16746                         haveit=
16747                         for x in $LDFLAGS $LIBICONV; do
16748
16749   acl_save_prefix="$prefix"
16750   prefix="$acl_final_prefix"
16751   acl_save_exec_prefix="$exec_prefix"
16752   exec_prefix="$acl_final_exec_prefix"
16753   eval x=\"$x\"
16754   exec_prefix="$acl_save_exec_prefix"
16755   prefix="$acl_save_prefix"
16756
16757                           if test "X$x" = "X-L$additional_libdir"; then
16758                             haveit=yes
16759                             break
16760                           fi
16761                         done
16762                         if test -z "$haveit"; then
16763                           if test -d "$additional_libdir"; then
16764                                                         LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
16765                           fi
16766                         fi
16767                         haveit=
16768                         for x in $LDFLAGS $LTLIBICONV; do
16769
16770   acl_save_prefix="$prefix"
16771   prefix="$acl_final_prefix"
16772   acl_save_exec_prefix="$exec_prefix"
16773   exec_prefix="$acl_final_exec_prefix"
16774   eval x=\"$x\"
16775   exec_prefix="$acl_save_exec_prefix"
16776   prefix="$acl_save_prefix"
16777
16778                           if test "X$x" = "X-L$additional_libdir"; then
16779                             haveit=yes
16780                             break
16781                           fi
16782                         done
16783                         if test -z "$haveit"; then
16784                           if test -d "$additional_libdir"; then
16785                                                         LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
16786                           fi
16787                         fi
16788                       fi
16789                     fi
16790                     ;;
16791                   -R*)
16792                     dir=`echo "X$dep" | sed -e 's/^X-R//'`
16793                     if test "$enable_rpath" != no; then
16794                                                                   haveit=
16795                       for x in $rpathdirs; do
16796                         if test "X$x" = "X$dir"; then
16797                           haveit=yes
16798                           break
16799                         fi
16800                       done
16801                       if test -z "$haveit"; then
16802                         rpathdirs="$rpathdirs $dir"
16803                       fi
16804                                                                   haveit=
16805                       for x in $ltrpathdirs; do
16806                         if test "X$x" = "X$dir"; then
16807                           haveit=yes
16808                           break
16809                         fi
16810                       done
16811                       if test -z "$haveit"; then
16812                         ltrpathdirs="$ltrpathdirs $dir"
16813                       fi
16814                     fi
16815                     ;;
16816                   -l*)
16817                                         names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
16818                     ;;
16819                   *.la)
16820                                                                                 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
16821                     ;;
16822                   *)
16823                                         LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
16824                     LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
16825                     ;;
16826                 esac
16827               done
16828             fi
16829           else
16830                                                             LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
16831             LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
16832           fi
16833         fi
16834       fi
16835     done
16836   done
16837   if test "X$rpathdirs" != "X"; then
16838     if test -n "$hardcode_libdir_separator"; then
16839                         alldirs=
16840       for found_dir in $rpathdirs; do
16841         alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
16842       done
16843             acl_save_libdir="$libdir"
16844       libdir="$alldirs"
16845       eval flag=\"$hardcode_libdir_flag_spec\"
16846       libdir="$acl_save_libdir"
16847       LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
16848     else
16849             for found_dir in $rpathdirs; do
16850         acl_save_libdir="$libdir"
16851         libdir="$found_dir"
16852         eval flag=\"$hardcode_libdir_flag_spec\"
16853         libdir="$acl_save_libdir"
16854         LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
16855       done
16856     fi
16857   fi
16858   if test "X$ltrpathdirs" != "X"; then
16859             for found_dir in $ltrpathdirs; do
16860       LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
16861     done
16862   fi
16863
16864
16865
16866
16867
16868
16869
16870
16871
16872
16873
16874
16875
16876
16877
16878
16879
16880
16881     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFPreferencesCopyAppValue" >&5
16882 $as_echo_n "checking for CFPreferencesCopyAppValue... " >&6; }
16883 if test "${gt_cv_func_CFPreferencesCopyAppValue+set}" = set; then :
16884   $as_echo_n "(cached) " >&6
16885 else
16886   gt_save_CPPFLAGS="$CPPFLAGS"
16887      CPPFLAGS="$CPPFLAGS -I/System/Library/Frameworks/CoreFoundation.framework/Headers"
16888      gt_save_LIBS="$LIBS"
16889      LIBS="$LIBS -framework CoreFoundation"
16890      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16891 /* end confdefs.h.  */
16892 #include <CFPreferences.h>
16893 int
16894 main ()
16895 {
16896 CFPreferencesCopyAppValue(NULL, NULL)
16897   ;
16898   return 0;
16899 }
16900 _ACEOF
16901 if ac_fn_c_try_link "$LINENO"; then :
16902   gt_cv_func_CFPreferencesCopyAppValue=yes
16903 else
16904   gt_cv_func_CFPreferencesCopyAppValue=no
16905 fi
16906 rm -f core conftest.err conftest.$ac_objext \
16907     conftest$ac_exeext conftest.$ac_ext
16908      CPPFLAGS="$gt_save_CPPFLAGS"
16909      LIBS="$gt_save_LIBS"
16910 fi
16911 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFPreferencesCopyAppValue" >&5
16912 $as_echo "$gt_cv_func_CFPreferencesCopyAppValue" >&6; }
16913   if test $gt_cv_func_CFPreferencesCopyAppValue = yes; then
16914
16915 $as_echo "#define HAVE_CFPREFERENCESCOPYAPPVALUE 1" >>confdefs.h
16916
16917   fi
16918     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFLocaleCopyCurrent" >&5
16919 $as_echo_n "checking for CFLocaleCopyCurrent... " >&6; }
16920 if test "${gt_cv_func_CFLocaleCopyCurrent+set}" = set; then :
16921   $as_echo_n "(cached) " >&6
16922 else
16923   gt_save_CPPFLAGS="$CPPFLAGS"
16924      CPPFLAGS="$CPPFLAGS -I/System/Library/Frameworks/CoreFoundation.framework/Headers"
16925      gt_save_LIBS="$LIBS"
16926      LIBS="$LIBS -framework CoreFoundation"
16927      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16928 /* end confdefs.h.  */
16929 #include <CFLocale.h>
16930 int
16931 main ()
16932 {
16933 CFLocaleCopyCurrent();
16934   ;
16935   return 0;
16936 }
16937 _ACEOF
16938 if ac_fn_c_try_link "$LINENO"; then :
16939   gt_cv_func_CFLocaleCopyCurrent=yes
16940 else
16941   gt_cv_func_CFLocaleCopyCurrent=no
16942 fi
16943 rm -f core conftest.err conftest.$ac_objext \
16944     conftest$ac_exeext conftest.$ac_ext
16945      CPPFLAGS="$gt_save_CPPFLAGS"
16946      LIBS="$gt_save_LIBS"
16947 fi
16948 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFLocaleCopyCurrent" >&5
16949 $as_echo "$gt_cv_func_CFLocaleCopyCurrent" >&6; }
16950   if test $gt_cv_func_CFLocaleCopyCurrent = yes; then
16951
16952 $as_echo "#define HAVE_CFLOCALECOPYCURRENT 1" >>confdefs.h
16953
16954   fi
16955   INTL_MACOSX_LIBS=
16956   if test $gt_cv_func_CFPreferencesCopyAppValue = yes || test $gt_cv_func_CFLocaleCopyCurrent = yes; then
16957     INTL_MACOSX_LIBS="-Wl,-framework -Wl,CoreFoundation"
16958   fi
16959
16960
16961
16962
16963   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
16964 $as_echo_n "checking whether NLS is requested... " >&6; }
16965     # Check whether --enable-nls was given.
16966 if test "${enable_nls+set}" = set; then :
16967   enableval=$enable_nls; USE_NLS=$enableval
16968 else
16969   USE_NLS=yes
16970 fi
16971
16972   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
16973 $as_echo "$USE_NLS" >&6; }
16974
16975
16976
16977
16978   LIBINTL=
16979   LTLIBINTL=
16980   POSUB=
16981
16982     if test "$USE_NLS" = "yes"; then
16983     gt_use_preinstalled_gnugettext=no
16984
16985
16986
16987
16988
16989
16990         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libc" >&5
16991 $as_echo_n "checking for GNU gettext in libc... " >&6; }
16992 if test "${gt_cv_func_gnugettext1_libc+set}" = set; then :
16993   $as_echo_n "(cached) " >&6
16994 else
16995   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16996 /* end confdefs.h.  */
16997 #include <libintl.h>
16998 extern int _nl_msg_cat_cntr;
16999 extern int *_nl_domain_bindings;
17000 int
17001 main ()
17002 {
17003 bindtextdomain ("", "");
17004 return * gettext ("") + _nl_msg_cat_cntr + *_nl_domain_bindings
17005   ;
17006   return 0;
17007 }
17008 _ACEOF
17009 if ac_fn_c_try_link "$LINENO"; then :
17010   gt_cv_func_gnugettext1_libc=yes
17011 else
17012   gt_cv_func_gnugettext1_libc=no
17013 fi
17014 rm -f core conftest.err conftest.$ac_objext \
17015     conftest$ac_exeext conftest.$ac_ext
17016 fi
17017 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_gnugettext1_libc" >&5
17018 $as_echo "$gt_cv_func_gnugettext1_libc" >&6; }
17019
17020         if test "$gt_cv_func_gnugettext1_libc" != "yes"; then
17021
17022
17023
17024
17025
17026           am_save_CPPFLAGS="$CPPFLAGS"
17027
17028   for element in $INCICONV; do
17029     haveit=
17030     for x in $CPPFLAGS; do
17031
17032   acl_save_prefix="$prefix"
17033   prefix="$acl_final_prefix"
17034   acl_save_exec_prefix="$exec_prefix"
17035   exec_prefix="$acl_final_exec_prefix"
17036   eval x=\"$x\"
17037   exec_prefix="$acl_save_exec_prefix"
17038   prefix="$acl_save_prefix"
17039
17040       if test "X$x" = "X$element"; then
17041         haveit=yes
17042         break
17043       fi
17044     done
17045     if test -z "$haveit"; then
17046       CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
17047     fi
17048   done
17049
17050
17051   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5
17052 $as_echo_n "checking for iconv... " >&6; }
17053 if test "${am_cv_func_iconv+set}" = set; then :
17054   $as_echo_n "(cached) " >&6
17055 else
17056
17057     am_cv_func_iconv="no, consider installing GNU libiconv"
17058     am_cv_lib_iconv=no
17059     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17060 /* end confdefs.h.  */
17061 #include <stdlib.h>
17062 #include <iconv.h>
17063 int
17064 main ()
17065 {
17066 iconv_t cd = iconv_open("","");
17067        iconv(cd,NULL,NULL,NULL,NULL);
17068        iconv_close(cd);
17069   ;
17070   return 0;
17071 }
17072 _ACEOF
17073 if ac_fn_c_try_link "$LINENO"; then :
17074   am_cv_func_iconv=yes
17075 fi
17076 rm -f core conftest.err conftest.$ac_objext \
17077     conftest$ac_exeext conftest.$ac_ext
17078     if test "$am_cv_func_iconv" != yes; then
17079       am_save_LIBS="$LIBS"
17080       LIBS="$LIBS $LIBICONV"
17081       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17082 /* end confdefs.h.  */
17083 #include <stdlib.h>
17084 #include <iconv.h>
17085 int
17086 main ()
17087 {
17088 iconv_t cd = iconv_open("","");
17089          iconv(cd,NULL,NULL,NULL,NULL);
17090          iconv_close(cd);
17091   ;
17092   return 0;
17093 }
17094 _ACEOF
17095 if ac_fn_c_try_link "$LINENO"; then :
17096   am_cv_lib_iconv=yes
17097         am_cv_func_iconv=yes
17098 fi
17099 rm -f core conftest.err conftest.$ac_objext \
17100     conftest$ac_exeext conftest.$ac_ext
17101       LIBS="$am_save_LIBS"
17102     fi
17103
17104 fi
17105 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5
17106 $as_echo "$am_cv_func_iconv" >&6; }
17107   if test "$am_cv_func_iconv" = yes; then
17108
17109 $as_echo "#define HAVE_ICONV 1" >>confdefs.h
17110
17111   fi
17112   if test "$am_cv_lib_iconv" = yes; then
17113     { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libiconv" >&5
17114 $as_echo_n "checking how to link with libiconv... " >&6; }
17115     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBICONV" >&5
17116 $as_echo "$LIBICONV" >&6; }
17117   else
17118             CPPFLAGS="$am_save_CPPFLAGS"
17119     LIBICONV=
17120     LTLIBICONV=
17121   fi
17122
17123
17124
17125
17126
17127
17128     use_additional=yes
17129
17130   acl_save_prefix="$prefix"
17131   prefix="$acl_final_prefix"
17132   acl_save_exec_prefix="$exec_prefix"
17133   exec_prefix="$acl_final_exec_prefix"
17134
17135     eval additional_includedir=\"$includedir\"
17136     eval additional_libdir=\"$libdir\"
17137
17138   exec_prefix="$acl_save_exec_prefix"
17139   prefix="$acl_save_prefix"
17140
17141
17142 # Check whether --with-libintl-prefix was given.
17143 if test "${with_libintl_prefix+set}" = set; then :
17144   withval=$with_libintl_prefix;
17145     if test "X$withval" = "Xno"; then
17146       use_additional=no
17147     else
17148       if test "X$withval" = "X"; then
17149
17150   acl_save_prefix="$prefix"
17151   prefix="$acl_final_prefix"
17152   acl_save_exec_prefix="$exec_prefix"
17153   exec_prefix="$acl_final_exec_prefix"
17154
17155           eval additional_includedir=\"$includedir\"
17156           eval additional_libdir=\"$libdir\"
17157
17158   exec_prefix="$acl_save_exec_prefix"
17159   prefix="$acl_save_prefix"
17160
17161       else
17162         additional_includedir="$withval/include"
17163         additional_libdir="$withval/lib"
17164       fi
17165     fi
17166
17167 fi
17168
17169       LIBINTL=
17170   LTLIBINTL=
17171   INCINTL=
17172   rpathdirs=
17173   ltrpathdirs=
17174   names_already_handled=
17175   names_next_round='intl '
17176   while test -n "$names_next_round"; do
17177     names_this_round="$names_next_round"
17178     names_next_round=
17179     for name in $names_this_round; do
17180       already_handled=
17181       for n in $names_already_handled; do
17182         if test "$n" = "$name"; then
17183           already_handled=yes
17184           break
17185         fi
17186       done
17187       if test -z "$already_handled"; then
17188         names_already_handled="$names_already_handled $name"
17189                         uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
17190         eval value=\"\$HAVE_LIB$uppername\"
17191         if test -n "$value"; then
17192           if test "$value" = yes; then
17193             eval value=\"\$LIB$uppername\"
17194             test -z "$value" || LIBINTL="${LIBINTL}${LIBINTL:+ }$value"
17195             eval value=\"\$LTLIB$uppername\"
17196             test -z "$value" || LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$value"
17197           else
17198                                     :
17199           fi
17200         else
17201                               found_dir=
17202           found_la=
17203           found_so=
17204           found_a=
17205           if test $use_additional = yes; then
17206             if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
17207               found_dir="$additional_libdir"
17208               found_so="$additional_libdir/lib$name.$shlibext"
17209               if test -f "$additional_libdir/lib$name.la"; then
17210                 found_la="$additional_libdir/lib$name.la"
17211               fi
17212             else
17213               if test -f "$additional_libdir/lib$name.$libext"; then
17214                 found_dir="$additional_libdir"
17215                 found_a="$additional_libdir/lib$name.$libext"
17216                 if test -f "$additional_libdir/lib$name.la"; then
17217                   found_la="$additional_libdir/lib$name.la"
17218                 fi
17219               fi
17220             fi
17221           fi
17222           if test "X$found_dir" = "X"; then
17223             for x in $LDFLAGS $LTLIBINTL; do
17224
17225   acl_save_prefix="$prefix"
17226   prefix="$acl_final_prefix"
17227   acl_save_exec_prefix="$exec_prefix"
17228   exec_prefix="$acl_final_exec_prefix"
17229   eval x=\"$x\"
17230   exec_prefix="$acl_save_exec_prefix"
17231   prefix="$acl_save_prefix"
17232
17233               case "$x" in
17234                 -L*)
17235                   dir=`echo "X$x" | sed -e 's/^X-L//'`
17236                   if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
17237                     found_dir="$dir"
17238                     found_so="$dir/lib$name.$shlibext"
17239                     if test -f "$dir/lib$name.la"; then
17240                       found_la="$dir/lib$name.la"
17241                     fi
17242                   else
17243                     if test -f "$dir/lib$name.$libext"; then
17244                       found_dir="$dir"
17245                       found_a="$dir/lib$name.$libext"
17246                       if test -f "$dir/lib$name.la"; then
17247                         found_la="$dir/lib$name.la"
17248                       fi
17249                     fi
17250                   fi
17251                   ;;
17252               esac
17253               if test "X$found_dir" != "X"; then
17254                 break
17255               fi
17256             done
17257           fi
17258           if test "X$found_dir" != "X"; then
17259                         LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$found_dir -l$name"
17260             if test "X$found_so" != "X"; then
17261                                                         if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
17262                                 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
17263               else
17264                                                                                 haveit=
17265                 for x in $ltrpathdirs; do
17266                   if test "X$x" = "X$found_dir"; then
17267                     haveit=yes
17268                     break
17269                   fi
17270                 done
17271                 if test -z "$haveit"; then
17272                   ltrpathdirs="$ltrpathdirs $found_dir"
17273                 fi
17274                                 if test "$hardcode_direct" = yes; then
17275                                                       LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
17276                 else
17277                   if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
17278                                                             LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
17279                                                             haveit=
17280                     for x in $rpathdirs; do
17281                       if test "X$x" = "X$found_dir"; then
17282                         haveit=yes
17283                         break
17284                       fi
17285                     done
17286                     if test -z "$haveit"; then
17287                       rpathdirs="$rpathdirs $found_dir"
17288                     fi
17289                   else
17290                                                                                 haveit=
17291                     for x in $LDFLAGS $LIBINTL; do
17292
17293   acl_save_prefix="$prefix"
17294   prefix="$acl_final_prefix"
17295   acl_save_exec_prefix="$exec_prefix"
17296   exec_prefix="$acl_final_exec_prefix"
17297   eval x=\"$x\"
17298   exec_prefix="$acl_save_exec_prefix"
17299   prefix="$acl_save_prefix"
17300
17301                       if test "X$x" = "X-L$found_dir"; then
17302                         haveit=yes
17303                         break
17304                       fi
17305                     done
17306                     if test -z "$haveit"; then
17307                       LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir"
17308                     fi
17309                     if test "$hardcode_minus_L" != no; then
17310                                                                                         LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
17311                     else
17312                                                                                                                                                                                 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
17313                     fi
17314                   fi
17315                 fi
17316               fi
17317             else
17318               if test "X$found_a" != "X"; then
17319                                 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_a"
17320               else
17321                                                 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir -l$name"
17322               fi
17323             fi
17324                         additional_includedir=
17325             case "$found_dir" in
17326               */lib | */lib/)
17327                 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
17328                 additional_includedir="$basedir/include"
17329                 ;;
17330             esac
17331             if test "X$additional_includedir" != "X"; then
17332                                                                                                                 if test "X$additional_includedir" != "X/usr/include"; then
17333                 haveit=
17334                 if test "X$additional_includedir" = "X/usr/local/include"; then
17335                   if test -n "$GCC"; then
17336                     case $host_os in
17337                       linux* | gnu* | k*bsd*-gnu) haveit=yes;;
17338                     esac
17339                   fi
17340                 fi
17341                 if test -z "$haveit"; then
17342                   for x in $CPPFLAGS $INCINTL; do
17343
17344   acl_save_prefix="$prefix"
17345   prefix="$acl_final_prefix"
17346   acl_save_exec_prefix="$exec_prefix"
17347   exec_prefix="$acl_final_exec_prefix"
17348   eval x=\"$x\"
17349   exec_prefix="$acl_save_exec_prefix"
17350   prefix="$acl_save_prefix"
17351
17352                     if test "X$x" = "X-I$additional_includedir"; then
17353                       haveit=yes
17354                       break
17355                     fi
17356                   done
17357                   if test -z "$haveit"; then
17358                     if test -d "$additional_includedir"; then
17359                                             INCINTL="${INCINTL}${INCINTL:+ }-I$additional_includedir"
17360                     fi
17361                   fi
17362                 fi
17363               fi
17364             fi
17365                         if test -n "$found_la"; then
17366                                                         save_libdir="$libdir"
17367               case "$found_la" in
17368                 */* | *\\*) . "$found_la" ;;
17369                 *) . "./$found_la" ;;
17370               esac
17371               libdir="$save_libdir"
17372                             for dep in $dependency_libs; do
17373                 case "$dep" in
17374                   -L*)
17375                     additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
17376                                                                                                                                                                 if test "X$additional_libdir" != "X/usr/lib"; then
17377                       haveit=
17378                       if test "X$additional_libdir" = "X/usr/local/lib"; then
17379                         if test -n "$GCC"; then
17380                           case $host_os in
17381                             linux* | gnu* | k*bsd*-gnu) haveit=yes;;
17382                           esac
17383                         fi
17384                       fi
17385                       if test -z "$haveit"; then
17386                         haveit=
17387                         for x in $LDFLAGS $LIBINTL; do
17388
17389   acl_save_prefix="$prefix"
17390   prefix="$acl_final_prefix"
17391   acl_save_exec_prefix="$exec_prefix"
17392   exec_prefix="$acl_final_exec_prefix"
17393   eval x=\"$x\"
17394   exec_prefix="$acl_save_exec_prefix"
17395   prefix="$acl_save_prefix"
17396
17397                           if test "X$x" = "X-L$additional_libdir"; then
17398                             haveit=yes
17399                             break
17400                           fi
17401                         done
17402                         if test -z "$haveit"; then
17403                           if test -d "$additional_libdir"; then
17404                                                         LIBINTL="${LIBINTL}${LIBINTL:+ }-L$additional_libdir"
17405                           fi
17406                         fi
17407                         haveit=
17408                         for x in $LDFLAGS $LTLIBINTL; do
17409
17410   acl_save_prefix="$prefix"
17411   prefix="$acl_final_prefix"
17412   acl_save_exec_prefix="$exec_prefix"
17413   exec_prefix="$acl_final_exec_prefix"
17414   eval x=\"$x\"
17415   exec_prefix="$acl_save_exec_prefix"
17416   prefix="$acl_save_prefix"
17417
17418                           if test "X$x" = "X-L$additional_libdir"; then
17419                             haveit=yes
17420                             break
17421                           fi
17422                         done
17423                         if test -z "$haveit"; then
17424                           if test -d "$additional_libdir"; then
17425                                                         LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$additional_libdir"
17426                           fi
17427                         fi
17428                       fi
17429                     fi
17430                     ;;
17431                   -R*)
17432                     dir=`echo "X$dep" | sed -e 's/^X-R//'`
17433                     if test "$enable_rpath" != no; then
17434                                                                   haveit=
17435                       for x in $rpathdirs; do
17436                         if test "X$x" = "X$dir"; then
17437                           haveit=yes
17438                           break
17439                         fi
17440                       done
17441                       if test -z "$haveit"; then
17442                         rpathdirs="$rpathdirs $dir"
17443                       fi
17444                                                                   haveit=
17445                       for x in $ltrpathdirs; do
17446                         if test "X$x" = "X$dir"; then
17447                           haveit=yes
17448                           break
17449                         fi
17450                       done
17451                       if test -z "$haveit"; then
17452                         ltrpathdirs="$ltrpathdirs $dir"
17453                       fi
17454                     fi
17455                     ;;
17456                   -l*)
17457                                         names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
17458                     ;;
17459                   *.la)
17460                                                                                 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
17461                     ;;
17462                   *)
17463                                         LIBINTL="${LIBINTL}${LIBINTL:+ }$dep"
17464                     LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$dep"
17465                     ;;
17466                 esac
17467               done
17468             fi
17469           else
17470                                                             LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
17471             LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-l$name"
17472           fi
17473         fi
17474       fi
17475     done
17476   done
17477   if test "X$rpathdirs" != "X"; then
17478     if test -n "$hardcode_libdir_separator"; then
17479                         alldirs=
17480       for found_dir in $rpathdirs; do
17481         alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
17482       done
17483             acl_save_libdir="$libdir"
17484       libdir="$alldirs"
17485       eval flag=\"$hardcode_libdir_flag_spec\"
17486       libdir="$acl_save_libdir"
17487       LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
17488     else
17489             for found_dir in $rpathdirs; do
17490         acl_save_libdir="$libdir"
17491         libdir="$found_dir"
17492         eval flag=\"$hardcode_libdir_flag_spec\"
17493         libdir="$acl_save_libdir"
17494         LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
17495       done
17496     fi
17497   fi
17498   if test "X$ltrpathdirs" != "X"; then
17499             for found_dir in $ltrpathdirs; do
17500       LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-R$found_dir"
17501     done
17502   fi
17503
17504           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libintl" >&5
17505 $as_echo_n "checking for GNU gettext in libintl... " >&6; }
17506 if test "${gt_cv_func_gnugettext1_libintl+set}" = set; then :
17507   $as_echo_n "(cached) " >&6
17508 else
17509   gt_save_CPPFLAGS="$CPPFLAGS"
17510             CPPFLAGS="$CPPFLAGS $INCINTL"
17511             gt_save_LIBS="$LIBS"
17512             LIBS="$LIBS $LIBINTL"
17513                         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17514 /* end confdefs.h.  */
17515 #include <libintl.h>
17516 extern int _nl_msg_cat_cntr;
17517 extern
17518 #ifdef __cplusplus
17519 "C"
17520 #endif
17521 const char *_nl_expand_alias (const char *);
17522 int
17523 main ()
17524 {
17525 bindtextdomain ("", "");
17526 return * gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias ("")
17527   ;
17528   return 0;
17529 }
17530 _ACEOF
17531 if ac_fn_c_try_link "$LINENO"; then :
17532   gt_cv_func_gnugettext1_libintl=yes
17533 else
17534   gt_cv_func_gnugettext1_libintl=no
17535 fi
17536 rm -f core conftest.err conftest.$ac_objext \
17537     conftest$ac_exeext conftest.$ac_ext
17538                         if test "$gt_cv_func_gnugettext1_libintl" != yes && test -n "$LIBICONV"; then
17539               LIBS="$LIBS $LIBICONV"
17540               cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17541 /* end confdefs.h.  */
17542 #include <libintl.h>
17543 extern int _nl_msg_cat_cntr;
17544 extern
17545 #ifdef __cplusplus
17546 "C"
17547 #endif
17548 const char *_nl_expand_alias (const char *);
17549 int
17550 main ()
17551 {
17552 bindtextdomain ("", "");
17553 return * gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias ("")
17554   ;
17555   return 0;
17556 }
17557 _ACEOF
17558 if ac_fn_c_try_link "$LINENO"; then :
17559   LIBINTL="$LIBINTL $LIBICONV"
17560                 LTLIBINTL="$LTLIBINTL $LTLIBICONV"
17561                 gt_cv_func_gnugettext1_libintl=yes
17562
17563 fi
17564 rm -f core conftest.err conftest.$ac_objext \
17565     conftest$ac_exeext conftest.$ac_ext
17566             fi
17567             CPPFLAGS="$gt_save_CPPFLAGS"
17568             LIBS="$gt_save_LIBS"
17569 fi
17570 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_gnugettext1_libintl" >&5
17571 $as_echo "$gt_cv_func_gnugettext1_libintl" >&6; }
17572         fi
17573
17574                                         if test "$gt_cv_func_gnugettext1_libc" = "yes" \
17575            || { test "$gt_cv_func_gnugettext1_libintl" = "yes" \
17576                 && test "$PACKAGE" != gettext-runtime \
17577                 && test "$PACKAGE" != gettext-tools; }; then
17578           gt_use_preinstalled_gnugettext=yes
17579         else
17580                     LIBINTL=
17581           LTLIBINTL=
17582           INCINTL=
17583         fi
17584
17585
17586
17587     if test -n "$INTL_MACOSX_LIBS"; then
17588       if test "$gt_use_preinstalled_gnugettext" = "yes" \
17589          || test "$nls_cv_use_gnu_gettext" = "yes"; then
17590                 LIBINTL="$LIBINTL $INTL_MACOSX_LIBS"
17591         LTLIBINTL="$LTLIBINTL $INTL_MACOSX_LIBS"
17592       fi
17593     fi
17594
17595     if test "$gt_use_preinstalled_gnugettext" = "yes" \
17596        || test "$nls_cv_use_gnu_gettext" = "yes"; then
17597
17598 $as_echo "#define ENABLE_NLS 1" >>confdefs.h
17599
17600     else
17601       USE_NLS=no
17602     fi
17603   fi
17604
17605   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use NLS" >&5
17606 $as_echo_n "checking whether to use NLS... " >&6; }
17607   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
17608 $as_echo "$USE_NLS" >&6; }
17609   if test "$USE_NLS" = "yes"; then
17610     { $as_echo "$as_me:${as_lineno-$LINENO}: checking where the gettext function comes from" >&5
17611 $as_echo_n "checking where the gettext function comes from... " >&6; }
17612     if test "$gt_use_preinstalled_gnugettext" = "yes"; then
17613       if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
17614         gt_source="external libintl"
17615       else
17616         gt_source="libc"
17617       fi
17618     else
17619       gt_source="included intl directory"
17620     fi
17621     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_source" >&5
17622 $as_echo "$gt_source" >&6; }
17623   fi
17624
17625   if test "$USE_NLS" = "yes"; then
17626
17627     if test "$gt_use_preinstalled_gnugettext" = "yes"; then
17628       if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
17629         { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libintl" >&5
17630 $as_echo_n "checking how to link with libintl... " >&6; }
17631         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBINTL" >&5
17632 $as_echo "$LIBINTL" >&6; }
17633
17634   for element in $INCINTL; do
17635     haveit=
17636     for x in $CPPFLAGS; do
17637
17638   acl_save_prefix="$prefix"
17639   prefix="$acl_final_prefix"
17640   acl_save_exec_prefix="$exec_prefix"
17641   exec_prefix="$acl_final_exec_prefix"
17642   eval x=\"$x\"
17643   exec_prefix="$acl_save_exec_prefix"
17644   prefix="$acl_save_prefix"
17645
17646       if test "X$x" = "X$element"; then
17647         haveit=yes
17648         break
17649       fi
17650     done
17651     if test -z "$haveit"; then
17652       CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
17653     fi
17654   done
17655
17656       fi
17657
17658
17659 $as_echo "#define HAVE_GETTEXT 1" >>confdefs.h
17660
17661
17662 $as_echo "#define HAVE_DCGETTEXT 1" >>confdefs.h
17663
17664     fi
17665
17666         POSUB=po
17667   fi
17668
17669
17670
17671     INTLLIBS="$LIBINTL"
17672
17673
17674
17675
17676
17677
17678
17679 os_name=`uname -s 2>/dev/null`
17680 if test x${prefix} = xNONE ; then
17681    if test `eval echo ${sysconfdir}` = NONE/etc ; then
17682       sysconfdir=/etc/bacula
17683    fi
17684
17685    if test `eval echo ${libdir}` = NONE/lib ; then
17686       case ${os_name} in
17687       Linux)
17688          os_processor=`uname -p 2>/dev/null`
17689          case ${os_processor} in
17690          x86_64)
17691             libdir=/usr/lib64
17692             ;;
17693          *)
17694             libdir=/usr/lib
17695             ;;
17696          esac
17697          ;;
17698       *)
17699          libdir=/usr/lib
17700          ;;
17701       esac
17702    fi
17703
17704    if test `eval echo ${includedir}` = NONE/include ; then
17705       includedir=/usr/include
17706    fi
17707
17708    if test `eval echo ${datarootdir}` = NONE/share ; then
17709       datarootdir=/usr/share
17710    fi
17711    prefix=
17712 fi
17713
17714 if test x${exec_prefix} = xNONE ; then
17715    exec_prefix=${prefix}
17716 fi
17717
17718 sysconfdir=`eval echo ${sysconfdir}`
17719 datarootdir=`eval echo ${datarootdir}`
17720 docdir=`eval echo ${docdir}`
17721 htmldir=`eval echo ${htmldir}`
17722 libdir=`eval echo ${libdir}`
17723 includedir=`eval echo ${includedir}`
17724 localedir=`eval echo ${datarootdir}/locale`
17725 cat >>confdefs.h <<_ACEOF
17726 #define SYSCONFDIR "$sysconfdir"
17727 _ACEOF
17728
17729 cat >>confdefs.h <<_ACEOF
17730 #define LOCALEDIR "$localedir"
17731 _ACEOF
17732
17733
17734 if test x$sbindir = x'${exec_prefix}/sbin' ; then
17735    sbindir=${exec_prefix}/sbin
17736 fi
17737 sbindir=`eval echo ${sbindir}`
17738
17739 if test x$mandir = x'${prefix}/man' ; then
17740    mandir=/usr/share/man
17741 fi
17742
17743 if test x$htmldir = x${docdir} ; then
17744    htmldir=`eval echo ${docdir}bacula/html`
17745 fi
17746
17747 if test x$docdir = x'/usr/share/doc/' ; then
17748    docdir=`eval echo ${docdir}bacula`
17749 fi
17750
17751
17752 for ac_prog in msgfmt
17753 do
17754   # Extract the first word of "$ac_prog", so it can be a program name with args.
17755 set dummy $ac_prog; ac_word=$2
17756 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17757 $as_echo_n "checking for $ac_word... " >&6; }
17758 if test "${ac_cv_path_MSGFMT+set}" = set; then :
17759   $as_echo_n "(cached) " >&6
17760 else
17761   case $MSGFMT in
17762   [\\/]* | ?:[\\/]*)
17763   ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
17764   ;;
17765   *)
17766   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17767 for as_dir in $PATH
17768 do
17769   IFS=$as_save_IFS
17770   test -z "$as_dir" && as_dir=.
17771     for ac_exec_ext in '' $ac_executable_extensions; do
17772   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
17773     ac_cv_path_MSGFMT="$as_dir/$ac_word$ac_exec_ext"
17774     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17775     break 2
17776   fi
17777 done
17778   done
17779 IFS=$as_save_IFS
17780
17781   ;;
17782 esac
17783 fi
17784 MSGFMT=$ac_cv_path_MSGFMT
17785 if test -n "$MSGFMT"; then
17786   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGFMT" >&5
17787 $as_echo "$MSGFMT" >&6; }
17788 else
17789   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17790 $as_echo "no" >&6; }
17791 fi
17792
17793
17794   test -n "$MSGFMT" && break
17795 done
17796 test -n "$MSGFMT" || MSGFMT="no"
17797
17798 if test "$MSGFMT" = "no"
17799 then
17800    echo 'msgfmt program not found, disabling NLS !'
17801    USE_NLS=no
17802    USE_INCLUDED_LIBINTL=no
17803 #else
17804
17805     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C Library 2 or newer" >&5
17806 $as_echo_n "checking whether we are using the GNU C Library 2 or newer... " >&6; }
17807 if test "${ac_cv_gnu_library_2+set}" = set; then :
17808   $as_echo_n "(cached) " >&6
17809 else
17810   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17811 /* end confdefs.h.  */
17812
17813 #include <features.h>
17814 #ifdef __GNU_LIBRARY__
17815  #if (__GLIBC__ >= 2)
17816   Lucky GNU user
17817  #endif
17818 #endif
17819
17820 _ACEOF
17821 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
17822   $EGREP "Lucky GNU user" >/dev/null 2>&1; then :
17823   ac_cv_gnu_library_2=yes
17824 else
17825   ac_cv_gnu_library_2=no
17826 fi
17827 rm -f conftest*
17828
17829
17830
17831 fi
17832 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_gnu_library_2" >&5
17833 $as_echo "$ac_cv_gnu_library_2" >&6; }
17834
17835     GLIBC2="$ac_cv_gnu_library_2"
17836
17837
17838 if test -n "$ac_tool_prefix"; then
17839   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
17840 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
17841 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17842 $as_echo_n "checking for $ac_word... " >&6; }
17843 if test "${ac_cv_prog_RANLIB+set}" = set; then :
17844   $as_echo_n "(cached) " >&6
17845 else
17846   if test -n "$RANLIB"; then
17847   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
17848 else
17849 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17850 for as_dir in $PATH
17851 do
17852   IFS=$as_save_IFS
17853   test -z "$as_dir" && as_dir=.
17854     for ac_exec_ext in '' $ac_executable_extensions; do
17855   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
17856     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
17857     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17858     break 2
17859   fi
17860 done
17861   done
17862 IFS=$as_save_IFS
17863
17864 fi
17865 fi
17866 RANLIB=$ac_cv_prog_RANLIB
17867 if test -n "$RANLIB"; then
17868   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
17869 $as_echo "$RANLIB" >&6; }
17870 else
17871   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17872 $as_echo "no" >&6; }
17873 fi
17874
17875
17876 fi
17877 if test -z "$ac_cv_prog_RANLIB"; then
17878   ac_ct_RANLIB=$RANLIB
17879   # Extract the first word of "ranlib", so it can be a program name with args.
17880 set dummy ranlib; ac_word=$2
17881 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17882 $as_echo_n "checking for $ac_word... " >&6; }
17883 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
17884   $as_echo_n "(cached) " >&6
17885 else
17886   if test -n "$ac_ct_RANLIB"; then
17887   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
17888 else
17889 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17890 for as_dir in $PATH
17891 do
17892   IFS=$as_save_IFS
17893   test -z "$as_dir" && as_dir=.
17894     for ac_exec_ext in '' $ac_executable_extensions; do
17895   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
17896     ac_cv_prog_ac_ct_RANLIB="ranlib"
17897     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17898     break 2
17899   fi
17900 done
17901   done
17902 IFS=$as_save_IFS
17903
17904 fi
17905 fi
17906 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
17907 if test -n "$ac_ct_RANLIB"; then
17908   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
17909 $as_echo "$ac_ct_RANLIB" >&6; }
17910 else
17911   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17912 $as_echo "no" >&6; }
17913 fi
17914
17915   if test "x$ac_ct_RANLIB" = x; then
17916     RANLIB=":"
17917   else
17918     case $cross_compiling:$ac_tool_warned in
17919 yes:)
17920 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
17921 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
17922 ac_tool_warned=yes ;;
17923 esac
17924     RANLIB=$ac_ct_RANLIB
17925   fi
17926 else
17927   RANLIB="$ac_cv_prog_RANLIB"
17928 fi
17929
17930
17931         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for strerror in -lcposix" >&5
17932 $as_echo_n "checking for strerror in -lcposix... " >&6; }
17933 if test "${ac_cv_lib_cposix_strerror+set}" = set; then :
17934   $as_echo_n "(cached) " >&6
17935 else
17936   ac_check_lib_save_LIBS=$LIBS
17937 LIBS="-lcposix  $LIBS"
17938 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17939 /* end confdefs.h.  */
17940
17941 /* Override any GCC internal prototype to avoid an error.
17942    Use char because int might match the return type of a GCC
17943    builtin and then its argument prototype would still apply.  */
17944 #ifdef __cplusplus
17945 extern "C"
17946 #endif
17947 char strerror ();
17948 int
17949 main ()
17950 {
17951 return strerror ();
17952   ;
17953   return 0;
17954 }
17955 _ACEOF
17956 if ac_fn_c_try_link "$LINENO"; then :
17957   ac_cv_lib_cposix_strerror=yes
17958 else
17959   ac_cv_lib_cposix_strerror=no
17960 fi
17961 rm -f core conftest.err conftest.$ac_objext \
17962     conftest$ac_exeext conftest.$ac_ext
17963 LIBS=$ac_check_lib_save_LIBS
17964 fi
17965 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_cposix_strerror" >&5
17966 $as_echo "$ac_cv_lib_cposix_strerror" >&6; }
17967 if test "x$ac_cv_lib_cposix_strerror" = x""yes; then :
17968   LIBS="$LIBS -lcposix"
17969 fi
17970
17971
17972
17973 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
17974 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
17975 if test "${ac_cv_c_const+set}" = set; then :
17976   $as_echo_n "(cached) " >&6
17977 else
17978   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17979 /* end confdefs.h.  */
17980
17981 int
17982 main ()
17983 {
17984 /* FIXME: Include the comments suggested by Paul. */
17985 #ifndef __cplusplus
17986   /* Ultrix mips cc rejects this.  */
17987   typedef int charset[2];
17988   const charset cs;
17989   /* SunOS 4.1.1 cc rejects this.  */
17990   char const *const *pcpcc;
17991   char **ppc;
17992   /* NEC SVR4.0.2 mips cc rejects this.  */
17993   struct point {int x, y;};
17994   static struct point const zero = {0,0};
17995   /* AIX XL C 1.02.0.0 rejects this.
17996      It does not let you subtract one const X* pointer from another in
17997      an arm of an if-expression whose if-part is not a constant
17998      expression */
17999   const char *g = "string";
18000   pcpcc = &g + (g ? g-g : 0);
18001   /* HPUX 7.0 cc rejects these. */
18002   ++pcpcc;
18003   ppc = (char**) pcpcc;
18004   pcpcc = (char const *const *) ppc;
18005   { /* SCO 3.2v4 cc rejects this.  */
18006     char *t;
18007     char const *s = 0 ? (char *) 0 : (char const *) 0;
18008
18009     *t++ = 0;
18010     if (s) return 0;
18011   }
18012   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
18013     int x[] = {25, 17};
18014     const int *foo = &x[0];
18015     ++foo;
18016   }
18017   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
18018     typedef const int *iptr;
18019     iptr p = 0;
18020     ++p;
18021   }
18022   { /* AIX XL C 1.02.0.0 rejects this saying
18023        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
18024     struct s { int j; const int *ap[3]; };
18025     struct s *b; b->j = 5;
18026   }
18027   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
18028     const int foo = 10;
18029     if (!foo) return 0;
18030   }
18031   return !cs[0] && !zero.x;
18032 #endif
18033
18034   ;
18035   return 0;
18036 }
18037 _ACEOF
18038 if ac_fn_c_try_compile "$LINENO"; then :
18039   ac_cv_c_const=yes
18040 else
18041   ac_cv_c_const=no
18042 fi
18043 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18044 fi
18045 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
18046 $as_echo "$ac_cv_c_const" >&6; }
18047 if test $ac_cv_c_const = no; then
18048
18049 $as_echo "#define const /**/" >>confdefs.h
18050
18051 fi
18052
18053
18054   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for signed" >&5
18055 $as_echo_n "checking for signed... " >&6; }
18056 if test "${bh_cv_c_signed+set}" = set; then :
18057   $as_echo_n "(cached) " >&6
18058 else
18059   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18060 /* end confdefs.h.  */
18061
18062 int
18063 main ()
18064 {
18065 signed char x;
18066   ;
18067   return 0;
18068 }
18069 _ACEOF
18070 if ac_fn_c_try_compile "$LINENO"; then :
18071   bh_cv_c_signed=yes
18072 else
18073   bh_cv_c_signed=no
18074 fi
18075 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18076 fi
18077 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bh_cv_c_signed" >&5
18078 $as_echo "$bh_cv_c_signed" >&6; }
18079   if test $bh_cv_c_signed = no; then
18080
18081 $as_echo "#define signed /**/" >>confdefs.h
18082
18083   fi
18084
18085 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
18086 $as_echo_n "checking for inline... " >&6; }
18087 if test "${ac_cv_c_inline+set}" = set; then :
18088   $as_echo_n "(cached) " >&6
18089 else
18090   ac_cv_c_inline=no
18091 for ac_kw in inline __inline__ __inline; do
18092   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18093 /* end confdefs.h.  */
18094 #ifndef __cplusplus
18095 typedef int foo_t;
18096 static $ac_kw foo_t static_foo () {return 0; }
18097 $ac_kw foo_t foo () {return 0; }
18098 #endif
18099
18100 _ACEOF
18101 if ac_fn_c_try_compile "$LINENO"; then :
18102   ac_cv_c_inline=$ac_kw
18103 fi
18104 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18105   test "$ac_cv_c_inline" != no && break
18106 done
18107
18108 fi
18109 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
18110 $as_echo "$ac_cv_c_inline" >&6; }
18111
18112 case $ac_cv_c_inline in
18113   inline | yes) ;;
18114   *)
18115     case $ac_cv_c_inline in
18116       no) ac_val=;;
18117       *) ac_val=$ac_cv_c_inline;;
18118     esac
18119     cat >>confdefs.h <<_ACEOF
18120 #ifndef __cplusplus
18121 #define inline $ac_val
18122 #endif
18123 _ACEOF
18124     ;;
18125 esac
18126
18127 ac_fn_c_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default"
18128 if test "x$ac_cv_type_off_t" = x""yes; then :
18129
18130 else
18131
18132 cat >>confdefs.h <<_ACEOF
18133 #define off_t long int
18134 _ACEOF
18135
18136 fi
18137
18138 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
18139 if test "x$ac_cv_type_size_t" = x""yes; then :
18140
18141 else
18142
18143 cat >>confdefs.h <<_ACEOF
18144 #define size_t unsigned int
18145 _ACEOF
18146
18147 fi
18148
18149
18150   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long" >&5
18151 $as_echo_n "checking for long long... " >&6; }
18152 if test "${ac_cv_type_long_long+set}" = set; then :
18153   $as_echo_n "(cached) " >&6
18154 else
18155   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18156 /* end confdefs.h.  */
18157 long long ll = 1LL; int i = 63;
18158 int
18159 main ()
18160 {
18161 long long llmax = (long long) -1;
18162      return ll << i | ll >> i | llmax / ll | llmax % ll;
18163   ;
18164   return 0;
18165 }
18166 _ACEOF
18167 if ac_fn_c_try_link "$LINENO"; then :
18168   ac_cv_type_long_long=yes
18169 else
18170   ac_cv_type_long_long=no
18171 fi
18172 rm -f core conftest.err conftest.$ac_objext \
18173     conftest$ac_exeext conftest.$ac_ext
18174 fi
18175 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_long" >&5
18176 $as_echo "$ac_cv_type_long_long" >&6; }
18177   if test $ac_cv_type_long_long = yes; then
18178
18179 $as_echo "#define HAVE_LONG_LONG 1" >>confdefs.h
18180
18181   fi
18182
18183
18184   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long double" >&5
18185 $as_echo_n "checking for long double... " >&6; }
18186 if test "${gt_cv_c_long_double+set}" = set; then :
18187   $as_echo_n "(cached) " >&6
18188 else
18189   if test "$GCC" = yes; then
18190        gt_cv_c_long_double=yes
18191      else
18192        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18193 /* end confdefs.h.  */
18194
18195          /* The Stardent Vistra knows sizeof(long double), but does not support it.  */
18196          long double foo = 0.0;
18197          /* On Ultrix 4.3 cc, long double is 4 and double is 8.  */
18198          int array [2*(sizeof(long double) >= sizeof(double)) - 1];
18199
18200 int
18201 main ()
18202 {
18203
18204   ;
18205   return 0;
18206 }
18207 _ACEOF
18208 if ac_fn_c_try_compile "$LINENO"; then :
18209   gt_cv_c_long_double=yes
18210 else
18211   gt_cv_c_long_double=no
18212 fi
18213 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18214      fi
18215 fi
18216 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_long_double" >&5
18217 $as_echo "$gt_cv_c_long_double" >&6; }
18218   if test $gt_cv_c_long_double = yes; then
18219
18220 $as_echo "#define HAVE_LONG_DOUBLE 1" >>confdefs.h
18221
18222   fi
18223
18224
18225   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wchar_t" >&5
18226 $as_echo_n "checking for wchar_t... " >&6; }
18227 if test "${gt_cv_c_wchar_t+set}" = set; then :
18228   $as_echo_n "(cached) " >&6
18229 else
18230   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18231 /* end confdefs.h.  */
18232 #include <stddef.h>
18233        wchar_t foo = (wchar_t)'\0';
18234 int
18235 main ()
18236 {
18237
18238   ;
18239   return 0;
18240 }
18241 _ACEOF
18242 if ac_fn_c_try_compile "$LINENO"; then :
18243   gt_cv_c_wchar_t=yes
18244 else
18245   gt_cv_c_wchar_t=no
18246 fi
18247 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18248 fi
18249 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_wchar_t" >&5
18250 $as_echo "$gt_cv_c_wchar_t" >&6; }
18251   if test $gt_cv_c_wchar_t = yes; then
18252
18253 $as_echo "#define HAVE_WCHAR_T 1" >>confdefs.h
18254
18255   fi
18256
18257
18258   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wint_t" >&5
18259 $as_echo_n "checking for wint_t... " >&6; }
18260 if test "${gt_cv_c_wint_t+set}" = set; then :
18261   $as_echo_n "(cached) " >&6
18262 else
18263   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18264 /* end confdefs.h.  */
18265 #include <wchar.h>
18266        wint_t foo = (wchar_t)'\0';
18267 int
18268 main ()
18269 {
18270
18271   ;
18272   return 0;
18273 }
18274 _ACEOF
18275 if ac_fn_c_try_compile "$LINENO"; then :
18276   gt_cv_c_wint_t=yes
18277 else
18278   gt_cv_c_wint_t=no
18279 fi
18280 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18281 fi
18282 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_wint_t" >&5
18283 $as_echo "$gt_cv_c_wint_t" >&6; }
18284   if test $gt_cv_c_wint_t = yes; then
18285
18286 $as_echo "#define HAVE_WINT_T 1" >>confdefs.h
18287
18288   fi
18289
18290
18291   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inttypes.h" >&5
18292 $as_echo_n "checking for inttypes.h... " >&6; }
18293 if test "${gl_cv_header_inttypes_h+set}" = set; then :
18294   $as_echo_n "(cached) " >&6
18295 else
18296   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18297 /* end confdefs.h.  */
18298 #include <sys/types.h>
18299 #include <inttypes.h>
18300 int
18301 main ()
18302 {
18303 uintmax_t i = (uintmax_t) -1;
18304   ;
18305   return 0;
18306 }
18307 _ACEOF
18308 if ac_fn_c_try_compile "$LINENO"; then :
18309   gl_cv_header_inttypes_h=yes
18310 else
18311   gl_cv_header_inttypes_h=no
18312 fi
18313 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18314 fi
18315 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_inttypes_h" >&5
18316 $as_echo "$gl_cv_header_inttypes_h" >&6; }
18317   if test $gl_cv_header_inttypes_h = yes; then
18318
18319 cat >>confdefs.h <<_ACEOF
18320 #define HAVE_INTTYPES_H_WITH_UINTMAX 1
18321 _ACEOF
18322
18323   fi
18324
18325
18326   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdint.h" >&5
18327 $as_echo_n "checking for stdint.h... " >&6; }
18328 if test "${gl_cv_header_stdint_h+set}" = set; then :
18329   $as_echo_n "(cached) " >&6
18330 else
18331   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18332 /* end confdefs.h.  */
18333 #include <sys/types.h>
18334 #include <stdint.h>
18335 int
18336 main ()
18337 {
18338 uintmax_t i = (uintmax_t) -1;
18339   ;
18340   return 0;
18341 }
18342 _ACEOF
18343 if ac_fn_c_try_compile "$LINENO"; then :
18344   gl_cv_header_stdint_h=yes
18345 else
18346   gl_cv_header_stdint_h=no
18347 fi
18348 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18349 fi
18350 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_stdint_h" >&5
18351 $as_echo "$gl_cv_header_stdint_h" >&6; }
18352   if test $gl_cv_header_stdint_h = yes; then
18353
18354 cat >>confdefs.h <<_ACEOF
18355 #define HAVE_STDINT_H_WITH_UINTMAX 1
18356 _ACEOF
18357
18358   fi
18359
18360
18361
18362
18363   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for intmax_t" >&5
18364 $as_echo_n "checking for intmax_t... " >&6; }
18365 if test "${gt_cv_c_intmax_t+set}" = set; then :
18366   $as_echo_n "(cached) " >&6
18367 else
18368   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18369 /* end confdefs.h.  */
18370
18371 #include <stddef.h>
18372 #include <stdlib.h>
18373 #if HAVE_STDINT_H_WITH_UINTMAX
18374 #include <stdint.h>
18375 #endif
18376 #if HAVE_INTTYPES_H_WITH_UINTMAX
18377 #include <inttypes.h>
18378 #endif
18379
18380 int
18381 main ()
18382 {
18383 intmax_t x = -1;
18384   ;
18385   return 0;
18386 }
18387 _ACEOF
18388 if ac_fn_c_try_compile "$LINENO"; then :
18389   gt_cv_c_intmax_t=yes
18390 else
18391   gt_cv_c_intmax_t=no
18392 fi
18393 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18394 fi
18395 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_intmax_t" >&5
18396 $as_echo "$gt_cv_c_intmax_t" >&6; }
18397   if test $gt_cv_c_intmax_t = yes; then
18398
18399 $as_echo "#define HAVE_INTMAX_T 1" >>confdefs.h
18400
18401   fi
18402
18403
18404
18405   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether printf() supports POSIX/XSI format strings" >&5
18406 $as_echo_n "checking whether printf() supports POSIX/XSI format strings... " >&6; }
18407 if test "${gt_cv_func_printf_posix+set}" = set; then :
18408   $as_echo_n "(cached) " >&6
18409 else
18410
18411       if test "$cross_compiling" = yes; then :
18412
18413         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18414 /* end confdefs.h.  */
18415
18416 #if defined __NetBSD__ || defined _MSC_VER || defined __MINGW32__ || defined __CYGWIN__
18417   notposix
18418 #endif
18419
18420 _ACEOF
18421 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
18422   $EGREP "notposix" >/dev/null 2>&1; then :
18423   gt_cv_func_printf_posix="guessing no"
18424 else
18425   gt_cv_func_printf_posix="guessing yes"
18426 fi
18427 rm -f conftest*
18428
18429
18430 else
18431   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18432 /* end confdefs.h.  */
18433
18434 #include <stdio.h>
18435 #include <string.h>
18436 /* The string "%2$d %1$d", with dollar characters protected from the shell's
18437    dollar expansion (possibly an autoconf bug).  */
18438 static char format[] = { '%', '2', '$', 'd', ' ', '%', '1', '$', 'd', '\0' };
18439 static char buf[100];
18440 int main ()
18441 {
18442   sprintf (buf, format, 33, 55);
18443   return (strcmp (buf, "55 33") != 0);
18444 }
18445 _ACEOF
18446 if ac_fn_c_try_run "$LINENO"; then :
18447   gt_cv_func_printf_posix=yes
18448 else
18449   gt_cv_func_printf_posix=no
18450 fi
18451 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
18452   conftest.$ac_objext conftest.beam conftest.$ac_ext
18453 fi
18454
18455
18456 fi
18457 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_printf_posix" >&5
18458 $as_echo "$gt_cv_func_printf_posix" >&6; }
18459   case $gt_cv_func_printf_posix in
18460     *yes)
18461
18462 $as_echo "#define HAVE_POSIX_PRINTF 1" >>confdefs.h
18463
18464       ;;
18465   esac
18466
18467 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
18468 # for constant arguments.  Useless!
18469 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5
18470 $as_echo_n "checking for working alloca.h... " >&6; }
18471 if test "${ac_cv_working_alloca_h+set}" = set; then :
18472   $as_echo_n "(cached) " >&6
18473 else
18474   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18475 /* end confdefs.h.  */
18476 #include <alloca.h>
18477 int
18478 main ()
18479 {
18480 char *p = (char *) alloca (2 * sizeof (int));
18481                           if (p) return 0;
18482   ;
18483   return 0;
18484 }
18485 _ACEOF
18486 if ac_fn_c_try_link "$LINENO"; then :
18487   ac_cv_working_alloca_h=yes
18488 else
18489   ac_cv_working_alloca_h=no
18490 fi
18491 rm -f core conftest.err conftest.$ac_objext \
18492     conftest$ac_exeext conftest.$ac_ext
18493 fi
18494 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5
18495 $as_echo "$ac_cv_working_alloca_h" >&6; }
18496 if test $ac_cv_working_alloca_h = yes; then
18497
18498 $as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h
18499
18500 fi
18501
18502 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5
18503 $as_echo_n "checking for alloca... " >&6; }
18504 if test "${ac_cv_func_alloca_works+set}" = set; then :
18505   $as_echo_n "(cached) " >&6
18506 else
18507   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18508 /* end confdefs.h.  */
18509 #ifdef __GNUC__
18510 # define alloca __builtin_alloca
18511 #else
18512 # ifdef _MSC_VER
18513 #  include <malloc.h>
18514 #  define alloca _alloca
18515 # else
18516 #  ifdef HAVE_ALLOCA_H
18517 #   include <alloca.h>
18518 #  else
18519 #   ifdef _AIX
18520  #pragma alloca
18521 #   else
18522 #    ifndef alloca /* predefined by HP cc +Olibcalls */
18523 char *alloca ();
18524 #    endif
18525 #   endif
18526 #  endif
18527 # endif
18528 #endif
18529
18530 int
18531 main ()
18532 {
18533 char *p = (char *) alloca (1);
18534                                     if (p) return 0;
18535   ;
18536   return 0;
18537 }
18538 _ACEOF
18539 if ac_fn_c_try_link "$LINENO"; then :
18540   ac_cv_func_alloca_works=yes
18541 else
18542   ac_cv_func_alloca_works=no
18543 fi
18544 rm -f core conftest.err conftest.$ac_objext \
18545     conftest$ac_exeext conftest.$ac_ext
18546 fi
18547 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5
18548 $as_echo "$ac_cv_func_alloca_works" >&6; }
18549
18550 if test $ac_cv_func_alloca_works = yes; then
18551
18552 $as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
18553
18554 else
18555   # The SVR3 libPW and SVR4 libucb both contain incompatible functions
18556 # that cause trouble.  Some versions do not even contain alloca or
18557 # contain a buggy version.  If you still want to use their alloca,
18558 # use ar to extract alloca.o from them instead of compiling alloca.c.
18559
18560 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
18561
18562 $as_echo "#define C_ALLOCA 1" >>confdefs.h
18563
18564
18565 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether \`alloca.c' needs Cray hooks" >&5
18566 $as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; }
18567 if test "${ac_cv_os_cray+set}" = set; then :
18568   $as_echo_n "(cached) " >&6
18569 else
18570   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18571 /* end confdefs.h.  */
18572 #if defined CRAY && ! defined CRAY2
18573 webecray
18574 #else
18575 wenotbecray
18576 #endif
18577
18578 _ACEOF
18579 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
18580   $EGREP "webecray" >/dev/null 2>&1; then :
18581   ac_cv_os_cray=yes
18582 else
18583   ac_cv_os_cray=no
18584 fi
18585 rm -f conftest*
18586
18587 fi
18588 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5
18589 $as_echo "$ac_cv_os_cray" >&6; }
18590 if test $ac_cv_os_cray = yes; then
18591   for ac_func in _getb67 GETB67 getb67; do
18592     as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
18593 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
18594 eval as_val=\$$as_ac_var
18595    if test "x$as_val" = x""yes; then :
18596
18597 cat >>confdefs.h <<_ACEOF
18598 #define CRAY_STACKSEG_END $ac_func
18599 _ACEOF
18600
18601     break
18602 fi
18603
18604   done
18605 fi
18606
18607 { $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5
18608 $as_echo_n "checking stack direction for C alloca... " >&6; }
18609 if test "${ac_cv_c_stack_direction+set}" = set; then :
18610   $as_echo_n "(cached) " >&6
18611 else
18612   if test "$cross_compiling" = yes; then :
18613   ac_cv_c_stack_direction=0
18614 else
18615   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18616 /* end confdefs.h.  */
18617 $ac_includes_default
18618 int
18619 find_stack_direction ()
18620 {
18621   static char *addr = 0;
18622   auto char dummy;
18623   if (addr == 0)
18624     {
18625       addr = &dummy;
18626       return find_stack_direction ();
18627     }
18628   else
18629     return (&dummy > addr) ? 1 : -1;
18630 }
18631
18632 int
18633 main ()
18634 {
18635   return find_stack_direction () < 0;
18636 }
18637 _ACEOF
18638 if ac_fn_c_try_run "$LINENO"; then :
18639   ac_cv_c_stack_direction=1
18640 else
18641   ac_cv_c_stack_direction=-1
18642 fi
18643 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
18644   conftest.$ac_objext conftest.beam conftest.$ac_ext
18645 fi
18646
18647 fi
18648 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5
18649 $as_echo "$ac_cv_c_stack_direction" >&6; }
18650 cat >>confdefs.h <<_ACEOF
18651 #define STACK_DIRECTION $ac_cv_c_stack_direction
18652 _ACEOF
18653
18654
18655 fi
18656
18657
18658
18659
18660   for ac_header in $ac_header_list
18661 do :
18662   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
18663 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
18664 "
18665 eval as_val=\$$as_ac_Header
18666    if test "x$as_val" = x""yes; then :
18667   cat >>confdefs.h <<_ACEOF
18668 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
18669 _ACEOF
18670
18671 fi
18672
18673 done
18674
18675
18676
18677
18678
18679
18680
18681
18682 for ac_func in getpagesize
18683 do :
18684   ac_fn_c_check_func "$LINENO" "getpagesize" "ac_cv_func_getpagesize"
18685 if test "x$ac_cv_func_getpagesize" = x""yes; then :
18686   cat >>confdefs.h <<_ACEOF
18687 #define HAVE_GETPAGESIZE 1
18688 _ACEOF
18689
18690 fi
18691 done
18692
18693 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap" >&5
18694 $as_echo_n "checking for working mmap... " >&6; }
18695 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then :
18696   $as_echo_n "(cached) " >&6
18697 else
18698   if test "$cross_compiling" = yes; then :
18699   ac_cv_func_mmap_fixed_mapped=no
18700 else
18701   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18702 /* end confdefs.h.  */
18703 $ac_includes_default
18704 /* malloc might have been renamed as rpl_malloc. */
18705 #undef malloc
18706
18707 /* Thanks to Mike Haertel and Jim Avera for this test.
18708    Here is a matrix of mmap possibilities:
18709         mmap private not fixed
18710         mmap private fixed at somewhere currently unmapped
18711         mmap private fixed at somewhere already mapped
18712         mmap shared not fixed
18713         mmap shared fixed at somewhere currently unmapped
18714         mmap shared fixed at somewhere already mapped
18715    For private mappings, we should verify that changes cannot be read()
18716    back from the file, nor mmap's back from the file at a different
18717    address.  (There have been systems where private was not correctly
18718    implemented like the infamous i386 svr4.0, and systems where the
18719    VM page cache was not coherent with the file system buffer cache
18720    like early versions of FreeBSD and possibly contemporary NetBSD.)
18721    For shared mappings, we should conversely verify that changes get
18722    propagated back to all the places they're supposed to be.
18723
18724    Grep wants private fixed already mapped.
18725    The main things grep needs to know about mmap are:
18726    * does it exist and is it safe to write into the mmap'd area
18727    * how to use it (BSD variants)  */
18728
18729 #include <fcntl.h>
18730 #include <sys/mman.h>
18731
18732 #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
18733 char *malloc ();
18734 #endif
18735
18736 /* This mess was copied from the GNU getpagesize.h.  */
18737 #ifndef HAVE_GETPAGESIZE
18738 # ifdef _SC_PAGESIZE
18739 #  define getpagesize() sysconf(_SC_PAGESIZE)
18740 # else /* no _SC_PAGESIZE */
18741 #  ifdef HAVE_SYS_PARAM_H
18742 #   include <sys/param.h>
18743 #   ifdef EXEC_PAGESIZE
18744 #    define getpagesize() EXEC_PAGESIZE
18745 #   else /* no EXEC_PAGESIZE */
18746 #    ifdef NBPG
18747 #     define getpagesize() NBPG * CLSIZE
18748 #     ifndef CLSIZE
18749 #      define CLSIZE 1
18750 #     endif /* no CLSIZE */
18751 #    else /* no NBPG */
18752 #     ifdef NBPC
18753 #      define getpagesize() NBPC
18754 #     else /* no NBPC */
18755 #      ifdef PAGESIZE
18756 #       define getpagesize() PAGESIZE
18757 #      endif /* PAGESIZE */
18758 #     endif /* no NBPC */
18759 #    endif /* no NBPG */
18760 #   endif /* no EXEC_PAGESIZE */
18761 #  else /* no HAVE_SYS_PARAM_H */
18762 #   define getpagesize() 8192   /* punt totally */
18763 #  endif /* no HAVE_SYS_PARAM_H */
18764 # endif /* no _SC_PAGESIZE */
18765
18766 #endif /* no HAVE_GETPAGESIZE */
18767
18768 int
18769 main ()
18770 {
18771   char *data, *data2, *data3;
18772   int i, pagesize;
18773   int fd, fd2;
18774
18775   pagesize = getpagesize ();
18776
18777   /* First, make a file with some known garbage in it. */
18778   data = (char *) malloc (pagesize);
18779   if (!data)
18780     return 1;
18781   for (i = 0; i < pagesize; ++i)
18782     *(data + i) = rand ();
18783   umask (0);
18784   fd = creat ("conftest.mmap", 0600);
18785   if (fd < 0)
18786     return 2;
18787   if (write (fd, data, pagesize) != pagesize)
18788     return 3;
18789   close (fd);
18790
18791   /* Next, check that the tail of a page is zero-filled.  File must have
18792      non-zero length, otherwise we risk SIGBUS for entire page.  */
18793   fd2 = open ("conftest.txt", O_RDWR | O_CREAT | O_TRUNC, 0600);
18794   if (fd2 < 0)
18795     return 4;
18796   data2 = "";
18797   if (write (fd2, data2, 1) != 1)
18798     return 5;
18799   data2 = mmap (0, pagesize, PROT_READ | PROT_WRITE, MAP_SHARED, fd2, 0L);
18800   if (data2 == MAP_FAILED)
18801     return 6;
18802   for (i = 0; i < pagesize; ++i)
18803     if (*(data2 + i))
18804       return 7;
18805   close (fd2);
18806   if (munmap (data2, pagesize))
18807     return 8;
18808
18809   /* Next, try to mmap the file at a fixed address which already has
18810      something else allocated at it.  If we can, also make sure that
18811      we see the same garbage.  */
18812   fd = open ("conftest.mmap", O_RDWR);
18813   if (fd < 0)
18814     return 9;
18815   if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
18816                      MAP_PRIVATE | MAP_FIXED, fd, 0L))
18817     return 10;
18818   for (i = 0; i < pagesize; ++i)
18819     if (*(data + i) != *(data2 + i))
18820       return 11;
18821
18822   /* Finally, make sure that changes to the mapped area do not
18823      percolate back to the file as seen by read().  (This is a bug on
18824      some variants of i386 svr4.0.)  */
18825   for (i = 0; i < pagesize; ++i)
18826     *(data2 + i) = *(data2 + i) + 1;
18827   data3 = (char *) malloc (pagesize);
18828   if (!data3)
18829     return 12;
18830   if (read (fd, data3, pagesize) != pagesize)
18831     return 13;
18832   for (i = 0; i < pagesize; ++i)
18833     if (*(data + i) != *(data3 + i))
18834       return 14;
18835   close (fd);
18836   return 0;
18837 }
18838 _ACEOF
18839 if ac_fn_c_try_run "$LINENO"; then :
18840   ac_cv_func_mmap_fixed_mapped=yes
18841 else
18842   ac_cv_func_mmap_fixed_mapped=no
18843 fi
18844 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
18845   conftest.$ac_objext conftest.beam conftest.$ac_ext
18846 fi
18847
18848 fi
18849 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_fixed_mapped" >&5
18850 $as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; }
18851 if test $ac_cv_func_mmap_fixed_mapped = yes; then
18852
18853 $as_echo "#define HAVE_MMAP 1" >>confdefs.h
18854
18855 fi
18856 rm -f conftest.mmap conftest.txt
18857
18858
18859     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C Library 2.1 or newer" >&5
18860 $as_echo_n "checking whether we are using the GNU C Library 2.1 or newer... " >&6; }
18861 if test "${ac_cv_gnu_library_2_1+set}" = set; then :
18862   $as_echo_n "(cached) " >&6
18863 else
18864   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18865 /* end confdefs.h.  */
18866
18867 #include <features.h>
18868 #ifdef __GNU_LIBRARY__
18869  #if (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 1) || (__GLIBC__ > 2)
18870   Lucky GNU user
18871  #endif
18872 #endif
18873
18874 _ACEOF
18875 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
18876   $EGREP "Lucky GNU user" >/dev/null 2>&1; then :
18877   ac_cv_gnu_library_2_1=yes
18878 else
18879   ac_cv_gnu_library_2_1=no
18880 fi
18881 rm -f conftest*
18882
18883
18884
18885 fi
18886 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_gnu_library_2_1" >&5
18887 $as_echo "$ac_cv_gnu_library_2_1" >&6; }
18888
18889     GLIBC21="$ac_cv_gnu_library_2_1"
18890
18891
18892
18893
18894   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether integer division by zero raises SIGFPE" >&5
18895 $as_echo_n "checking whether integer division by zero raises SIGFPE... " >&6; }
18896 if test "${gt_cv_int_divbyzero_sigfpe+set}" = set; then :
18897   $as_echo_n "(cached) " >&6
18898 else
18899
18900       if test "$cross_compiling" = yes; then :
18901
18902           # Guess based on the CPU.
18903           case "$host_cpu" in
18904             alpha* | i3456786 | m68k | s390*)
18905               gt_cv_int_divbyzero_sigfpe="guessing yes";;
18906             *)
18907               gt_cv_int_divbyzero_sigfpe="guessing no";;
18908           esac
18909
18910 else
18911   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18912 /* end confdefs.h.  */
18913
18914 #include <stdlib.h>
18915 #include <signal.h>
18916
18917 static void
18918 #ifdef __cplusplus
18919 sigfpe_handler (int sig)
18920 #else
18921 sigfpe_handler (sig) int sig;
18922 #endif
18923 {
18924   /* Exit with code 0 if SIGFPE, with code 1 if any other signal.  */
18925   exit (sig != SIGFPE);
18926 }
18927
18928 int x = 1;
18929 int y = 0;
18930 int z;
18931 int nan;
18932
18933 int main ()
18934 {
18935   signal (SIGFPE, sigfpe_handler);
18936 /* IRIX and AIX (when "xlc -qcheck" is used) yield signal SIGTRAP.  */
18937 #if (defined (__sgi) || defined (_AIX)) && defined (SIGTRAP)
18938   signal (SIGTRAP, sigfpe_handler);
18939 #endif
18940 /* Linux/SPARC yields signal SIGILL.  */
18941 #if defined (__sparc__) && defined (__linux__)
18942   signal (SIGILL, sigfpe_handler);
18943 #endif
18944
18945   z = x / y;
18946   nan = y / y;
18947   exit (1);
18948 }
18949
18950 _ACEOF
18951 if ac_fn_c_try_run "$LINENO"; then :
18952   gt_cv_int_divbyzero_sigfpe=yes
18953 else
18954   gt_cv_int_divbyzero_sigfpe=no
18955 fi
18956 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
18957   conftest.$ac_objext conftest.beam conftest.$ac_ext
18958 fi
18959
18960
18961 fi
18962 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_int_divbyzero_sigfpe" >&5
18963 $as_echo "$gt_cv_int_divbyzero_sigfpe" >&6; }
18964   case "$gt_cv_int_divbyzero_sigfpe" in
18965     *yes) value=1;;
18966     *) value=0;;
18967   esac
18968
18969 cat >>confdefs.h <<_ACEOF
18970 #define INTDIV0_RAISES_SIGFPE $value
18971 _ACEOF
18972
18973
18974
18975   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned long long" >&5
18976 $as_echo_n "checking for unsigned long long... " >&6; }
18977 if test "${ac_cv_type_unsigned_long_long+set}" = set; then :
18978   $as_echo_n "(cached) " >&6
18979 else
18980   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18981 /* end confdefs.h.  */
18982 unsigned long long ull = 1ULL; int i = 63;
18983 int
18984 main ()
18985 {
18986 unsigned long long ullmax = (unsigned long long) -1;
18987      return ull << i | ull >> i | ullmax / ull | ullmax % ull;
18988   ;
18989   return 0;
18990 }
18991 _ACEOF
18992 if ac_fn_c_try_link "$LINENO"; then :
18993   ac_cv_type_unsigned_long_long=yes
18994 else
18995   ac_cv_type_unsigned_long_long=no
18996 fi
18997 rm -f core conftest.err conftest.$ac_objext \
18998     conftest$ac_exeext conftest.$ac_ext
18999 fi
19000 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_unsigned_long_long" >&5
19001 $as_echo "$ac_cv_type_unsigned_long_long" >&6; }
19002   if test $ac_cv_type_unsigned_long_long = yes; then
19003
19004 $as_echo "#define HAVE_UNSIGNED_LONG_LONG 1" >>confdefs.h
19005
19006   fi
19007
19008
19009
19010
19011   if test $gl_cv_header_inttypes_h = no && test $gl_cv_header_stdint_h = no; then
19012
19013     test $ac_cv_type_unsigned_long_long = yes \
19014       && ac_type='unsigned long long' \
19015       || ac_type='unsigned long'
19016
19017 cat >>confdefs.h <<_ACEOF
19018 #define uintmax_t $ac_type
19019 _ACEOF
19020
19021   else
19022
19023 $as_echo "#define HAVE_UINTMAX_T 1" >>confdefs.h
19024
19025   fi
19026
19027
19028   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inttypes.h" >&5
19029 $as_echo_n "checking for inttypes.h... " >&6; }
19030 if test "${gt_cv_header_inttypes_h+set}" = set; then :
19031   $as_echo_n "(cached) " >&6
19032 else
19033
19034     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19035 /* end confdefs.h.  */
19036 #include <sys/types.h>
19037 #include <inttypes.h>
19038 int
19039 main ()
19040 {
19041
19042   ;
19043   return 0;
19044 }
19045 _ACEOF
19046 if ac_fn_c_try_compile "$LINENO"; then :
19047   gt_cv_header_inttypes_h=yes
19048 else
19049   gt_cv_header_inttypes_h=no
19050 fi
19051 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19052
19053 fi
19054 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_header_inttypes_h" >&5
19055 $as_echo "$gt_cv_header_inttypes_h" >&6; }
19056   if test $gt_cv_header_inttypes_h = yes; then
19057
19058 cat >>confdefs.h <<_ACEOF
19059 #define HAVE_INTTYPES_H 1
19060 _ACEOF
19061
19062   fi
19063
19064
19065
19066   if test $gt_cv_header_inttypes_h = yes; then
19067     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the inttypes.h PRIxNN macros are broken" >&5
19068 $as_echo_n "checking whether the inttypes.h PRIxNN macros are broken... " >&6; }
19069 if test "${gt_cv_inttypes_pri_broken+set}" = set; then :
19070   $as_echo_n "(cached) " >&6
19071 else
19072
19073         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19074 /* end confdefs.h.  */
19075 #include <inttypes.h>
19076 #ifdef PRId32
19077 char *p = PRId32;
19078 #endif
19079
19080 int
19081 main ()
19082 {
19083
19084   ;
19085   return 0;
19086 }
19087 _ACEOF
19088 if ac_fn_c_try_compile "$LINENO"; then :
19089   gt_cv_inttypes_pri_broken=no
19090 else
19091   gt_cv_inttypes_pri_broken=yes
19092 fi
19093 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19094
19095 fi
19096 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_inttypes_pri_broken" >&5
19097 $as_echo "$gt_cv_inttypes_pri_broken" >&6; }
19098   fi
19099   if test "$gt_cv_inttypes_pri_broken" = yes; then
19100
19101 cat >>confdefs.h <<_ACEOF
19102 #define PRI_MACROS_BROKEN 1
19103 _ACEOF
19104
19105   fi
19106
19107
19108   for ac_header in stdint.h
19109 do :
19110   ac_fn_c_check_header_mongrel "$LINENO" "stdint.h" "ac_cv_header_stdint_h" "$ac_includes_default"
19111 if test "x$ac_cv_header_stdint_h" = x""yes; then :
19112   cat >>confdefs.h <<_ACEOF
19113 #define HAVE_STDINT_H 1
19114 _ACEOF
19115
19116 fi
19117
19118 done
19119
19120     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SIZE_MAX" >&5
19121 $as_echo_n "checking for SIZE_MAX... " >&6; }
19122   result=
19123   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19124 /* end confdefs.h.  */
19125
19126 #include <limits.h>
19127 #if HAVE_STDINT_H
19128 #include <stdint.h>
19129 #endif
19130 #ifdef SIZE_MAX
19131 Found it
19132 #endif
19133
19134 _ACEOF
19135 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19136   $EGREP "Found it" >/dev/null 2>&1; then :
19137   result=yes
19138 fi
19139 rm -f conftest*
19140
19141   if test -z "$result"; then
19142                     if ac_fn_c_compute_int "$LINENO" "~(size_t)0 / 10" "res_hi"        "#include <stddef.h>"; then :
19143
19144 else
19145   result=?
19146 fi
19147
19148
19149     if ac_fn_c_compute_int "$LINENO" "~(size_t)0 % 10" "res_lo"        "#include <stddef.h>"; then :
19150
19151 else
19152   result=?
19153 fi
19154
19155
19156     if ac_fn_c_compute_int "$LINENO" "sizeof (size_t) <= sizeof (unsigned int)" "fits_in_uint"        "#include <stddef.h>"; then :
19157
19158 else
19159   result=?
19160 fi
19161
19162
19163     if test "$fits_in_uint" = 1; then
19164                   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19165 /* end confdefs.h.  */
19166 #include <stddef.h>
19167         extern size_t foo;
19168         extern unsigned long foo;
19169
19170 int
19171 main ()
19172 {
19173
19174   ;
19175   return 0;
19176 }
19177 _ACEOF
19178 if ac_fn_c_try_compile "$LINENO"; then :
19179   fits_in_uint=0
19180 fi
19181 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19182     fi
19183     if test -z "$result"; then
19184       if test "$fits_in_uint" = 1; then
19185         result="$res_hi$res_lo"U
19186       else
19187         result="$res_hi$res_lo"UL
19188       fi
19189     else
19190             result='~(size_t)0'
19191     fi
19192   fi
19193   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $result" >&5
19194 $as_echo "$result" >&6; }
19195   if test "$result" != yes; then
19196
19197 cat >>confdefs.h <<_ACEOF
19198 #define SIZE_MAX $result
19199 _ACEOF
19200
19201   fi
19202
19203
19204
19205
19206   for ac_header in stdint.h
19207 do :
19208   ac_fn_c_check_header_mongrel "$LINENO" "stdint.h" "ac_cv_header_stdint_h" "$ac_includes_default"
19209 if test "x$ac_cv_header_stdint_h" = x""yes; then :
19210   cat >>confdefs.h <<_ACEOF
19211 #define HAVE_STDINT_H 1
19212 _ACEOF
19213
19214 fi
19215
19216 done
19217
19218
19219
19220
19221
19222
19223
19224
19225   ac_fn_c_check_type "$LINENO" "ptrdiff_t" "ac_cv_type_ptrdiff_t" "$ac_includes_default"
19226 if test "x$ac_cv_type_ptrdiff_t" = x""yes; then :
19227
19228 else
19229
19230 $as_echo "#define ptrdiff_t long" >>confdefs.h
19231
19232
19233 fi
19234
19235   for ac_header in argz.h limits.h locale.h nl_types.h malloc.h stddef.h \
19236 stdlib.h string.h unistd.h sys/param.h
19237 do :
19238   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
19239 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
19240 eval as_val=\$$as_ac_Header
19241    if test "x$as_val" = x""yes; then :
19242   cat >>confdefs.h <<_ACEOF
19243 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
19244 _ACEOF
19245
19246 fi
19247
19248 done
19249
19250   for ac_func in asprintf fwprintf getcwd getegid geteuid getgid getuid \
19251 mempcpy munmap putenv setenv setlocale snprintf stpcpy strcasecmp strdup \
19252 strtoul tsearch wcslen __argz_count __argz_stringify __argz_next \
19253 __fsetlocking
19254 do :
19255   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
19256 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
19257 eval as_val=\$$as_ac_var
19258    if test "x$as_val" = x""yes; then :
19259   cat >>confdefs.h <<_ACEOF
19260 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
19261 _ACEOF
19262
19263 fi
19264 done
19265
19266
19267
19268   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether _snprintf is declared" >&5
19269 $as_echo_n "checking whether _snprintf is declared... " >&6; }
19270 if test "${ac_cv_have_decl__snprintf+set}" = set; then :
19271   $as_echo_n "(cached) " >&6
19272 else
19273   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19274 /* end confdefs.h.  */
19275 #include <stdio.h>
19276 int
19277 main ()
19278 {
19279
19280 #ifndef _snprintf
19281   char *p = (char *) _snprintf;
19282 #endif
19283
19284   ;
19285   return 0;
19286 }
19287 _ACEOF
19288 if ac_fn_c_try_compile "$LINENO"; then :
19289   ac_cv_have_decl__snprintf=yes
19290 else
19291   ac_cv_have_decl__snprintf=no
19292 fi
19293 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19294 fi
19295 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_decl__snprintf" >&5
19296 $as_echo "$ac_cv_have_decl__snprintf" >&6; }
19297   if test $ac_cv_have_decl__snprintf = yes; then
19298     gt_value=1
19299   else
19300     gt_value=0
19301   fi
19302
19303 cat >>confdefs.h <<_ACEOF
19304 #define HAVE_DECL__SNPRINTF $gt_value
19305 _ACEOF
19306
19307
19308
19309   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether _snwprintf is declared" >&5
19310 $as_echo_n "checking whether _snwprintf is declared... " >&6; }
19311 if test "${ac_cv_have_decl__snwprintf+set}" = set; then :
19312   $as_echo_n "(cached) " >&6
19313 else
19314   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19315 /* end confdefs.h.  */
19316 #include <stdio.h>
19317 int
19318 main ()
19319 {
19320
19321 #ifndef _snwprintf
19322   char *p = (char *) _snwprintf;
19323 #endif
19324
19325   ;
19326   return 0;
19327 }
19328 _ACEOF
19329 if ac_fn_c_try_compile "$LINENO"; then :
19330   ac_cv_have_decl__snwprintf=yes
19331 else
19332   ac_cv_have_decl__snwprintf=no
19333 fi
19334 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19335 fi
19336 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_decl__snwprintf" >&5
19337 $as_echo "$ac_cv_have_decl__snwprintf" >&6; }
19338   if test $ac_cv_have_decl__snwprintf = yes; then
19339     gt_value=1
19340   else
19341     gt_value=0
19342   fi
19343
19344 cat >>confdefs.h <<_ACEOF
19345 #define HAVE_DECL__SNWPRINTF $gt_value
19346 _ACEOF
19347
19348
19349
19350
19351   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether feof_unlocked is declared" >&5
19352 $as_echo_n "checking whether feof_unlocked is declared... " >&6; }
19353 if test "${ac_cv_have_decl_feof_unlocked+set}" = set; then :
19354   $as_echo_n "(cached) " >&6
19355 else
19356   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19357 /* end confdefs.h.  */
19358 #include <stdio.h>
19359 int
19360 main ()
19361 {
19362
19363 #ifndef feof_unlocked
19364   char *p = (char *) feof_unlocked;
19365 #endif
19366
19367   ;
19368   return 0;
19369 }
19370 _ACEOF
19371 if ac_fn_c_try_compile "$LINENO"; then :
19372   ac_cv_have_decl_feof_unlocked=yes
19373 else
19374   ac_cv_have_decl_feof_unlocked=no
19375 fi
19376 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19377 fi
19378 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_decl_feof_unlocked" >&5
19379 $as_echo "$ac_cv_have_decl_feof_unlocked" >&6; }
19380   if test $ac_cv_have_decl_feof_unlocked = yes; then
19381     gt_value=1
19382   else
19383     gt_value=0
19384   fi
19385
19386 cat >>confdefs.h <<_ACEOF
19387 #define HAVE_DECL_FEOF_UNLOCKED $gt_value
19388 _ACEOF
19389
19390
19391
19392   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether fgets_unlocked is declared" >&5
19393 $as_echo_n "checking whether fgets_unlocked is declared... " >&6; }
19394 if test "${ac_cv_have_decl_fgets_unlocked+set}" = set; then :
19395   $as_echo_n "(cached) " >&6
19396 else
19397   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19398 /* end confdefs.h.  */
19399 #include <stdio.h>
19400 int
19401 main ()
19402 {
19403
19404 #ifndef fgets_unlocked
19405   char *p = (char *) fgets_unlocked;
19406 #endif
19407
19408   ;
19409   return 0;
19410 }
19411 _ACEOF
19412 if ac_fn_c_try_compile "$LINENO"; then :
19413   ac_cv_have_decl_fgets_unlocked=yes
19414 else
19415   ac_cv_have_decl_fgets_unlocked=no
19416 fi
19417 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19418 fi
19419 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_decl_fgets_unlocked" >&5
19420 $as_echo "$ac_cv_have_decl_fgets_unlocked" >&6; }
19421   if test $ac_cv_have_decl_fgets_unlocked = yes; then
19422     gt_value=1
19423   else
19424     gt_value=0
19425   fi
19426
19427 cat >>confdefs.h <<_ACEOF
19428 #define HAVE_DECL_FGETS_UNLOCKED $gt_value
19429 _ACEOF
19430
19431
19432
19433   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether getc_unlocked is declared" >&5
19434 $as_echo_n "checking whether getc_unlocked is declared... " >&6; }
19435 if test "${ac_cv_have_decl_getc_unlocked+set}" = set; then :
19436   $as_echo_n "(cached) " >&6
19437 else
19438   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19439 /* end confdefs.h.  */
19440 #include <stdio.h>
19441 int
19442 main ()
19443 {
19444
19445 #ifndef getc_unlocked
19446   char *p = (char *) getc_unlocked;
19447 #endif
19448
19449   ;
19450   return 0;
19451 }
19452 _ACEOF
19453 if ac_fn_c_try_compile "$LINENO"; then :
19454   ac_cv_have_decl_getc_unlocked=yes
19455 else
19456   ac_cv_have_decl_getc_unlocked=no
19457 fi
19458 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19459 fi
19460 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_decl_getc_unlocked" >&5
19461 $as_echo "$ac_cv_have_decl_getc_unlocked" >&6; }
19462   if test $ac_cv_have_decl_getc_unlocked = yes; then
19463     gt_value=1
19464   else
19465     gt_value=0
19466   fi
19467
19468 cat >>confdefs.h <<_ACEOF
19469 #define HAVE_DECL_GETC_UNLOCKED $gt_value
19470 _ACEOF
19471
19472
19473
19474   case $gt_cv_func_printf_posix in
19475     *yes) HAVE_POSIX_PRINTF=1 ;;
19476     *) HAVE_POSIX_PRINTF=0 ;;
19477   esac
19478
19479   if test "$ac_cv_func_asprintf" = yes; then
19480     HAVE_ASPRINTF=1
19481   else
19482     HAVE_ASPRINTF=0
19483   fi
19484
19485   if test "$ac_cv_func_snprintf" = yes; then
19486     HAVE_SNPRINTF=1
19487   else
19488     HAVE_SNPRINTF=0
19489   fi
19490
19491   if test "$ac_cv_func_wprintf" = yes; then
19492     HAVE_WPRINTF=1
19493   else
19494     HAVE_WPRINTF=0
19495   fi
19496
19497
19498
19499
19500
19501
19502
19503           am_save_CPPFLAGS="$CPPFLAGS"
19504
19505   for element in $INCICONV; do
19506     haveit=
19507     for x in $CPPFLAGS; do
19508
19509   acl_save_prefix="$prefix"
19510   prefix="$acl_final_prefix"
19511   acl_save_exec_prefix="$exec_prefix"
19512   exec_prefix="$acl_final_exec_prefix"
19513   eval x=\"$x\"
19514   exec_prefix="$acl_save_exec_prefix"
19515   prefix="$acl_save_prefix"
19516
19517       if test "X$x" = "X$element"; then
19518         haveit=yes
19519         break
19520       fi
19521     done
19522     if test -z "$haveit"; then
19523       CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
19524     fi
19525   done
19526
19527
19528   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5
19529 $as_echo_n "checking for iconv... " >&6; }
19530 if test "${am_cv_func_iconv+set}" = set; then :
19531   $as_echo_n "(cached) " >&6
19532 else
19533
19534     am_cv_func_iconv="no, consider installing GNU libiconv"
19535     am_cv_lib_iconv=no
19536     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19537 /* end confdefs.h.  */
19538 #include <stdlib.h>
19539 #include <iconv.h>
19540 int
19541 main ()
19542 {
19543 iconv_t cd = iconv_open("","");
19544        iconv(cd,NULL,NULL,NULL,NULL);
19545        iconv_close(cd);
19546   ;
19547   return 0;
19548 }
19549 _ACEOF
19550 if ac_fn_c_try_link "$LINENO"; then :
19551   am_cv_func_iconv=yes
19552 fi
19553 rm -f core conftest.err conftest.$ac_objext \
19554     conftest$ac_exeext conftest.$ac_ext
19555     if test "$am_cv_func_iconv" != yes; then
19556       am_save_LIBS="$LIBS"
19557       LIBS="$LIBS $LIBICONV"
19558       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19559 /* end confdefs.h.  */
19560 #include <stdlib.h>
19561 #include <iconv.h>
19562 int
19563 main ()
19564 {
19565 iconv_t cd = iconv_open("","");
19566          iconv(cd,NULL,NULL,NULL,NULL);
19567          iconv_close(cd);
19568   ;
19569   return 0;
19570 }
19571 _ACEOF
19572 if ac_fn_c_try_link "$LINENO"; then :
19573   am_cv_lib_iconv=yes
19574         am_cv_func_iconv=yes
19575 fi
19576 rm -f core conftest.err conftest.$ac_objext \
19577     conftest$ac_exeext conftest.$ac_ext
19578       LIBS="$am_save_LIBS"
19579     fi
19580
19581 fi
19582 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5
19583 $as_echo "$am_cv_func_iconv" >&6; }
19584   if test "$am_cv_func_iconv" = yes; then
19585
19586 $as_echo "#define HAVE_ICONV 1" >>confdefs.h
19587
19588   fi
19589   if test "$am_cv_lib_iconv" = yes; then
19590     { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libiconv" >&5
19591 $as_echo_n "checking how to link with libiconv... " >&6; }
19592     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBICONV" >&5
19593 $as_echo "$LIBICONV" >&6; }
19594   else
19595             CPPFLAGS="$am_save_CPPFLAGS"
19596     LIBICONV=
19597     LTLIBICONV=
19598   fi
19599
19600
19601
19602   if test "$am_cv_func_iconv" = yes; then
19603     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv declaration" >&5
19604 $as_echo_n "checking for iconv declaration... " >&6; }
19605     if test "${am_cv_proto_iconv+set}" = set; then :
19606   $as_echo_n "(cached) " >&6
19607 else
19608
19609       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19610 /* end confdefs.h.  */
19611
19612 #include <stdlib.h>
19613 #include <iconv.h>
19614 extern
19615 #ifdef __cplusplus
19616 "C"
19617 #endif
19618 #if defined(__STDC__) || defined(__cplusplus)
19619 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
19620 #else
19621 size_t iconv();
19622 #endif
19623
19624 int
19625 main ()
19626 {
19627
19628   ;
19629   return 0;
19630 }
19631 _ACEOF
19632 if ac_fn_c_try_compile "$LINENO"; then :
19633   am_cv_proto_iconv_arg1=""
19634 else
19635   am_cv_proto_iconv_arg1="const"
19636 fi
19637 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19638       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);"
19639 fi
19640
19641     am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
19642     { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${ac_t:-
19643          }$am_cv_proto_iconv" >&5
19644 $as_echo "${ac_t:-
19645          }$am_cv_proto_iconv" >&6; }
19646
19647 cat >>confdefs.h <<_ACEOF
19648 #define ICONV_CONST $am_cv_proto_iconv_arg1
19649 _ACEOF
19650
19651   fi
19652
19653
19654   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nl_langinfo and CODESET" >&5
19655 $as_echo_n "checking for nl_langinfo and CODESET... " >&6; }
19656 if test "${am_cv_langinfo_codeset+set}" = set; then :
19657   $as_echo_n "(cached) " >&6
19658 else
19659   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19660 /* end confdefs.h.  */
19661 #include <langinfo.h>
19662 int
19663 main ()
19664 {
19665 char* cs = nl_langinfo(CODESET);
19666   ;
19667   return 0;
19668 }
19669 _ACEOF
19670 if ac_fn_c_try_link "$LINENO"; then :
19671   am_cv_langinfo_codeset=yes
19672 else
19673   am_cv_langinfo_codeset=no
19674 fi
19675 rm -f core conftest.err conftest.$ac_objext \
19676     conftest$ac_exeext conftest.$ac_ext
19677
19678 fi
19679 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_langinfo_codeset" >&5
19680 $as_echo "$am_cv_langinfo_codeset" >&6; }
19681   if test $am_cv_langinfo_codeset = yes; then
19682
19683 $as_echo "#define HAVE_LANGINFO_CODESET 1" >>confdefs.h
19684
19685   fi
19686
19687   if test $ac_cv_header_locale_h = yes; then
19688
19689   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LC_MESSAGES" >&5
19690 $as_echo_n "checking for LC_MESSAGES... " >&6; }
19691 if test "${gt_cv_val_LC_MESSAGES+set}" = set; then :
19692   $as_echo_n "(cached) " >&6
19693 else
19694   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19695 /* end confdefs.h.  */
19696 #include <locale.h>
19697 int
19698 main ()
19699 {
19700 return LC_MESSAGES
19701   ;
19702   return 0;
19703 }
19704 _ACEOF
19705 if ac_fn_c_try_link "$LINENO"; then :
19706   gt_cv_val_LC_MESSAGES=yes
19707 else
19708   gt_cv_val_LC_MESSAGES=no
19709 fi
19710 rm -f core conftest.err conftest.$ac_objext \
19711     conftest$ac_exeext conftest.$ac_ext
19712 fi
19713 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_val_LC_MESSAGES" >&5
19714 $as_echo "$gt_cv_val_LC_MESSAGES" >&6; }
19715   if test $gt_cv_val_LC_MESSAGES = yes; then
19716
19717 $as_echo "#define HAVE_LC_MESSAGES 1" >>confdefs.h
19718
19719   fi
19720
19721   fi
19722
19723   if test -n "$INTL_MACOSX_LIBS"; then
19724     CPPFLAGS="$CPPFLAGS -I/System/Library/Frameworks/CoreFoundation.framework/Headers"
19725   fi
19726
19727                       for ac_prog in bison
19728 do
19729   # Extract the first word of "$ac_prog", so it can be a program name with args.
19730 set dummy $ac_prog; ac_word=$2
19731 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19732 $as_echo_n "checking for $ac_word... " >&6; }
19733 if test "${ac_cv_prog_INTLBISON+set}" = set; then :
19734   $as_echo_n "(cached) " >&6
19735 else
19736   if test -n "$INTLBISON"; then
19737   ac_cv_prog_INTLBISON="$INTLBISON" # Let the user override the test.
19738 else
19739 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19740 for as_dir in $PATH
19741 do
19742   IFS=$as_save_IFS
19743   test -z "$as_dir" && as_dir=.
19744     for ac_exec_ext in '' $ac_executable_extensions; do
19745   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
19746     ac_cv_prog_INTLBISON="$ac_prog"
19747     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
19748     break 2
19749   fi
19750 done
19751   done
19752 IFS=$as_save_IFS
19753
19754 fi
19755 fi
19756 INTLBISON=$ac_cv_prog_INTLBISON
19757 if test -n "$INTLBISON"; then
19758   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INTLBISON" >&5
19759 $as_echo "$INTLBISON" >&6; }
19760 else
19761   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19762 $as_echo "no" >&6; }
19763 fi
19764
19765
19766   test -n "$INTLBISON" && break
19767 done
19768
19769   if test -z "$INTLBISON"; then
19770     ac_verc_fail=yes
19771   else
19772         { $as_echo "$as_me:${as_lineno-$LINENO}: checking version of bison" >&5
19773 $as_echo_n "checking version of bison... " >&6; }
19774     ac_prog_version=`$INTLBISON --version 2>&1 | sed -n 's/^.*GNU Bison.* \([0-9]*\.[0-9.]*\).*$/\1/p'`
19775     case $ac_prog_version in
19776       '') ac_prog_version="v. ?.??, bad"; ac_verc_fail=yes;;
19777       1.2[6-9]* | 1.[3-9][0-9]* | [2-9].*)
19778          ac_prog_version="$ac_prog_version, ok"; ac_verc_fail=no;;
19779       *) ac_prog_version="$ac_prog_version, bad"; ac_verc_fail=yes;;
19780     esac
19781     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_prog_version" >&5
19782 $as_echo "$ac_prog_version" >&6; }
19783   fi
19784   if test $ac_verc_fail = yes; then
19785     INTLBISON=:
19786   fi
19787
19788
19789
19790
19791
19792
19793
19794
19795
19796
19797
19798
19799
19800
19801
19802
19803     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFPreferencesCopyAppValue" >&5
19804 $as_echo_n "checking for CFPreferencesCopyAppValue... " >&6; }
19805 if test "${gt_cv_func_CFPreferencesCopyAppValue+set}" = set; then :
19806   $as_echo_n "(cached) " >&6
19807 else
19808   gt_save_CPPFLAGS="$CPPFLAGS"
19809      CPPFLAGS="$CPPFLAGS -I/System/Library/Frameworks/CoreFoundation.framework/Headers"
19810      gt_save_LIBS="$LIBS"
19811      LIBS="$LIBS -framework CoreFoundation"
19812      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19813 /* end confdefs.h.  */
19814 #include <CFPreferences.h>
19815 int
19816 main ()
19817 {
19818 CFPreferencesCopyAppValue(NULL, NULL)
19819   ;
19820   return 0;
19821 }
19822 _ACEOF
19823 if ac_fn_c_try_link "$LINENO"; then :
19824   gt_cv_func_CFPreferencesCopyAppValue=yes
19825 else
19826   gt_cv_func_CFPreferencesCopyAppValue=no
19827 fi
19828 rm -f core conftest.err conftest.$ac_objext \
19829     conftest$ac_exeext conftest.$ac_ext
19830      CPPFLAGS="$gt_save_CPPFLAGS"
19831      LIBS="$gt_save_LIBS"
19832 fi
19833 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFPreferencesCopyAppValue" >&5
19834 $as_echo "$gt_cv_func_CFPreferencesCopyAppValue" >&6; }
19835   if test $gt_cv_func_CFPreferencesCopyAppValue = yes; then
19836
19837 $as_echo "#define HAVE_CFPREFERENCESCOPYAPPVALUE 1" >>confdefs.h
19838
19839   fi
19840     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFLocaleCopyCurrent" >&5
19841 $as_echo_n "checking for CFLocaleCopyCurrent... " >&6; }
19842 if test "${gt_cv_func_CFLocaleCopyCurrent+set}" = set; then :
19843   $as_echo_n "(cached) " >&6
19844 else
19845   gt_save_CPPFLAGS="$CPPFLAGS"
19846      CPPFLAGS="$CPPFLAGS -I/System/Library/Frameworks/CoreFoundation.framework/Headers"
19847      gt_save_LIBS="$LIBS"
19848      LIBS="$LIBS -framework CoreFoundation"
19849      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19850 /* end confdefs.h.  */
19851 #include <CFLocale.h>
19852 int
19853 main ()
19854 {
19855 CFLocaleCopyCurrent();
19856   ;
19857   return 0;
19858 }
19859 _ACEOF
19860 if ac_fn_c_try_link "$LINENO"; then :
19861   gt_cv_func_CFLocaleCopyCurrent=yes
19862 else
19863   gt_cv_func_CFLocaleCopyCurrent=no
19864 fi
19865 rm -f core conftest.err conftest.$ac_objext \
19866     conftest$ac_exeext conftest.$ac_ext
19867      CPPFLAGS="$gt_save_CPPFLAGS"
19868      LIBS="$gt_save_LIBS"
19869 fi
19870 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFLocaleCopyCurrent" >&5
19871 $as_echo "$gt_cv_func_CFLocaleCopyCurrent" >&6; }
19872   if test $gt_cv_func_CFLocaleCopyCurrent = yes; then
19873
19874 $as_echo "#define HAVE_CFLOCALECOPYCURRENT 1" >>confdefs.h
19875
19876   fi
19877   INTL_MACOSX_LIBS=
19878   if test $gt_cv_func_CFPreferencesCopyAppValue = yes || test $gt_cv_func_CFLocaleCopyCurrent = yes; then
19879     INTL_MACOSX_LIBS="-Wl,-framework -Wl,CoreFoundation"
19880   fi
19881
19882
19883
19884
19885   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
19886 $as_echo_n "checking whether NLS is requested... " >&6; }
19887     # Check whether --enable-nls was given.
19888 if test "${enable_nls+set}" = set; then :
19889   enableval=$enable_nls; USE_NLS=$enableval
19890 else
19891   USE_NLS=yes
19892 fi
19893
19894   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
19895 $as_echo "$USE_NLS" >&6; }
19896
19897
19898
19899
19900     BUILD_INCLUDED_LIBINTL=no
19901     USE_INCLUDED_LIBINTL=no
19902
19903   LIBINTL=
19904   LTLIBINTL=
19905   POSUB=
19906
19907     if test "$USE_NLS" = "yes"; then
19908     gt_use_preinstalled_gnugettext=no
19909
19910       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether included gettext is requested" >&5
19911 $as_echo_n "checking whether included gettext is requested... " >&6; }
19912
19913 # Check whether --with-included-gettext was given.
19914 if test "${with_included_gettext+set}" = set; then :
19915   withval=$with_included_gettext; nls_cv_force_use_gnu_gettext=$withval
19916 else
19917   nls_cv_force_use_gnu_gettext=no
19918 fi
19919
19920       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $nls_cv_force_use_gnu_gettext" >&5
19921 $as_echo "$nls_cv_force_use_gnu_gettext" >&6; }
19922
19923       nls_cv_use_gnu_gettext="$nls_cv_force_use_gnu_gettext"
19924       if test "$nls_cv_force_use_gnu_gettext" != "yes"; then
19925
19926
19927
19928
19929
19930
19931         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libc" >&5
19932 $as_echo_n "checking for GNU gettext in libc... " >&6; }
19933 if test "${gt_cv_func_gnugettext1_libc+set}" = set; then :
19934   $as_echo_n "(cached) " >&6
19935 else
19936   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19937 /* end confdefs.h.  */
19938 #include <libintl.h>
19939 extern int _nl_msg_cat_cntr;
19940 extern int *_nl_domain_bindings;
19941 int
19942 main ()
19943 {
19944 bindtextdomain ("", "");
19945 return * gettext ("") + _nl_msg_cat_cntr + *_nl_domain_bindings
19946   ;
19947   return 0;
19948 }
19949 _ACEOF
19950 if ac_fn_c_try_link "$LINENO"; then :
19951   gt_cv_func_gnugettext1_libc=yes
19952 else
19953   gt_cv_func_gnugettext1_libc=no
19954 fi
19955 rm -f core conftest.err conftest.$ac_objext \
19956     conftest$ac_exeext conftest.$ac_ext
19957 fi
19958 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_gnugettext1_libc" >&5
19959 $as_echo "$gt_cv_func_gnugettext1_libc" >&6; }
19960
19961         if test "$gt_cv_func_gnugettext1_libc" != "yes"; then
19962
19963
19964
19965     use_additional=yes
19966
19967   acl_save_prefix="$prefix"
19968   prefix="$acl_final_prefix"
19969   acl_save_exec_prefix="$exec_prefix"
19970   exec_prefix="$acl_final_exec_prefix"
19971
19972     eval additional_includedir=\"$includedir\"
19973     eval additional_libdir=\"$libdir\"
19974
19975   exec_prefix="$acl_save_exec_prefix"
19976   prefix="$acl_save_prefix"
19977
19978
19979 # Check whether --with-libintl-prefix was given.
19980 if test "${with_libintl_prefix+set}" = set; then :
19981   withval=$with_libintl_prefix;
19982     if test "X$withval" = "Xno"; then
19983       use_additional=no
19984     else
19985       if test "X$withval" = "X"; then
19986
19987   acl_save_prefix="$prefix"
19988   prefix="$acl_final_prefix"
19989   acl_save_exec_prefix="$exec_prefix"
19990   exec_prefix="$acl_final_exec_prefix"
19991
19992           eval additional_includedir=\"$includedir\"
19993           eval additional_libdir=\"$libdir\"
19994
19995   exec_prefix="$acl_save_exec_prefix"
19996   prefix="$acl_save_prefix"
19997
19998       else
19999         additional_includedir="$withval/include"
20000         additional_libdir="$withval/lib"
20001       fi
20002     fi
20003
20004 fi
20005
20006       LIBINTL=
20007   LTLIBINTL=
20008   INCINTL=
20009   rpathdirs=
20010   ltrpathdirs=
20011   names_already_handled=
20012   names_next_round='intl '
20013   while test -n "$names_next_round"; do
20014     names_this_round="$names_next_round"
20015     names_next_round=
20016     for name in $names_this_round; do
20017       already_handled=
20018       for n in $names_already_handled; do
20019         if test "$n" = "$name"; then
20020           already_handled=yes
20021           break
20022         fi
20023       done
20024       if test -z "$already_handled"; then
20025         names_already_handled="$names_already_handled $name"
20026                         uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
20027         eval value=\"\$HAVE_LIB$uppername\"
20028         if test -n "$value"; then
20029           if test "$value" = yes; then
20030             eval value=\"\$LIB$uppername\"
20031             test -z "$value" || LIBINTL="${LIBINTL}${LIBINTL:+ }$value"
20032             eval value=\"\$LTLIB$uppername\"
20033             test -z "$value" || LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$value"
20034           else
20035                                     :
20036           fi
20037         else
20038                               found_dir=
20039           found_la=
20040           found_so=
20041           found_a=
20042           if test $use_additional = yes; then
20043             if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
20044               found_dir="$additional_libdir"
20045               found_so="$additional_libdir/lib$name.$shlibext"
20046               if test -f "$additional_libdir/lib$name.la"; then
20047                 found_la="$additional_libdir/lib$name.la"
20048               fi
20049             else
20050               if test -f "$additional_libdir/lib$name.$libext"; then
20051                 found_dir="$additional_libdir"
20052                 found_a="$additional_libdir/lib$name.$libext"
20053                 if test -f "$additional_libdir/lib$name.la"; then
20054                   found_la="$additional_libdir/lib$name.la"
20055                 fi
20056               fi
20057             fi
20058           fi
20059           if test "X$found_dir" = "X"; then
20060             for x in $LDFLAGS $LTLIBINTL; do
20061
20062   acl_save_prefix="$prefix"
20063   prefix="$acl_final_prefix"
20064   acl_save_exec_prefix="$exec_prefix"
20065   exec_prefix="$acl_final_exec_prefix"
20066   eval x=\"$x\"
20067   exec_prefix="$acl_save_exec_prefix"
20068   prefix="$acl_save_prefix"
20069
20070               case "$x" in
20071                 -L*)
20072                   dir=`echo "X$x" | sed -e 's/^X-L//'`
20073                   if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
20074                     found_dir="$dir"
20075                     found_so="$dir/lib$name.$shlibext"
20076                     if test -f "$dir/lib$name.la"; then
20077                       found_la="$dir/lib$name.la"
20078                     fi
20079                   else
20080                     if test -f "$dir/lib$name.$libext"; then
20081                       found_dir="$dir"
20082                       found_a="$dir/lib$name.$libext"
20083                       if test -f "$dir/lib$name.la"; then
20084                         found_la="$dir/lib$name.la"
20085                       fi
20086                     fi
20087                   fi
20088                   ;;
20089               esac
20090               if test "X$found_dir" != "X"; then
20091                 break
20092               fi
20093             done
20094           fi
20095           if test "X$found_dir" != "X"; then
20096                         LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$found_dir -l$name"
20097             if test "X$found_so" != "X"; then
20098                                                         if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
20099                                 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
20100               else
20101                                                                                 haveit=
20102                 for x in $ltrpathdirs; do
20103                   if test "X$x" = "X$found_dir"; then
20104                     haveit=yes
20105                     break
20106                   fi
20107                 done
20108                 if test -z "$haveit"; then
20109                   ltrpathdirs="$ltrpathdirs $found_dir"
20110                 fi
20111                                 if test "$hardcode_direct" = yes; then
20112                                                       LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
20113                 else
20114                   if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
20115                                                             LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
20116                                                             haveit=
20117                     for x in $rpathdirs; do
20118                       if test "X$x" = "X$found_dir"; then
20119                         haveit=yes
20120                         break
20121                       fi
20122                     done
20123                     if test -z "$haveit"; then
20124                       rpathdirs="$rpathdirs $found_dir"
20125                     fi
20126                   else
20127                                                                                 haveit=
20128                     for x in $LDFLAGS $LIBINTL; do
20129
20130   acl_save_prefix="$prefix"
20131   prefix="$acl_final_prefix"
20132   acl_save_exec_prefix="$exec_prefix"
20133   exec_prefix="$acl_final_exec_prefix"
20134   eval x=\"$x\"
20135   exec_prefix="$acl_save_exec_prefix"
20136   prefix="$acl_save_prefix"
20137
20138                       if test "X$x" = "X-L$found_dir"; then
20139                         haveit=yes
20140                         break
20141                       fi
20142                     done
20143                     if test -z "$haveit"; then
20144                       LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir"
20145                     fi
20146                     if test "$hardcode_minus_L" != no; then
20147                                                                                         LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
20148                     else
20149                                                                                                                                                                                 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
20150                     fi
20151                   fi
20152                 fi
20153               fi
20154             else
20155               if test "X$found_a" != "X"; then
20156                                 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_a"
20157               else
20158                                                 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir -l$name"
20159               fi
20160             fi
20161                         additional_includedir=
20162             case "$found_dir" in
20163               */lib | */lib/)
20164                 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
20165                 additional_includedir="$basedir/include"
20166                 ;;
20167             esac
20168             if test "X$additional_includedir" != "X"; then
20169                                                                                                                 if test "X$additional_includedir" != "X/usr/include"; then
20170                 haveit=
20171                 if test "X$additional_includedir" = "X/usr/local/include"; then
20172                   if test -n "$GCC"; then
20173                     case $host_os in
20174                       linux* | gnu* | k*bsd*-gnu) haveit=yes;;
20175                     esac
20176                   fi
20177                 fi
20178                 if test -z "$haveit"; then
20179                   for x in $CPPFLAGS $INCINTL; do
20180
20181   acl_save_prefix="$prefix"
20182   prefix="$acl_final_prefix"
20183   acl_save_exec_prefix="$exec_prefix"
20184   exec_prefix="$acl_final_exec_prefix"
20185   eval x=\"$x\"
20186   exec_prefix="$acl_save_exec_prefix"
20187   prefix="$acl_save_prefix"
20188
20189                     if test "X$x" = "X-I$additional_includedir"; then
20190                       haveit=yes
20191                       break
20192                     fi
20193                   done
20194                   if test -z "$haveit"; then
20195                     if test -d "$additional_includedir"; then
20196                                             INCINTL="${INCINTL}${INCINTL:+ }-I$additional_includedir"
20197                     fi
20198                   fi
20199                 fi
20200               fi
20201             fi
20202                         if test -n "$found_la"; then
20203                                                         save_libdir="$libdir"
20204               case "$found_la" in
20205                 */* | *\\*) . "$found_la" ;;
20206                 *) . "./$found_la" ;;
20207               esac
20208               libdir="$save_libdir"
20209                             for dep in $dependency_libs; do
20210                 case "$dep" in
20211                   -L*)
20212                     additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
20213                                                                                                                                                                 if test "X$additional_libdir" != "X/usr/lib"; then
20214                       haveit=
20215                       if test "X$additional_libdir" = "X/usr/local/lib"; then
20216                         if test -n "$GCC"; then
20217                           case $host_os in
20218                             linux* | gnu* | k*bsd*-gnu) haveit=yes;;
20219                           esac
20220                         fi
20221                       fi
20222                       if test -z "$haveit"; then
20223                         haveit=
20224                         for x in $LDFLAGS $LIBINTL; do
20225
20226   acl_save_prefix="$prefix"
20227   prefix="$acl_final_prefix"
20228   acl_save_exec_prefix="$exec_prefix"
20229   exec_prefix="$acl_final_exec_prefix"
20230   eval x=\"$x\"
20231   exec_prefix="$acl_save_exec_prefix"
20232   prefix="$acl_save_prefix"
20233
20234                           if test "X$x" = "X-L$additional_libdir"; then
20235                             haveit=yes
20236                             break
20237                           fi
20238                         done
20239                         if test -z "$haveit"; then
20240                           if test -d "$additional_libdir"; then
20241                                                         LIBINTL="${LIBINTL}${LIBINTL:+ }-L$additional_libdir"
20242                           fi
20243                         fi
20244                         haveit=
20245                         for x in $LDFLAGS $LTLIBINTL; do
20246
20247   acl_save_prefix="$prefix"
20248   prefix="$acl_final_prefix"
20249   acl_save_exec_prefix="$exec_prefix"
20250   exec_prefix="$acl_final_exec_prefix"
20251   eval x=\"$x\"
20252   exec_prefix="$acl_save_exec_prefix"
20253   prefix="$acl_save_prefix"
20254
20255                           if test "X$x" = "X-L$additional_libdir"; then
20256                             haveit=yes
20257                             break
20258                           fi
20259                         done
20260                         if test -z "$haveit"; then
20261                           if test -d "$additional_libdir"; then
20262                                                         LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$additional_libdir"
20263                           fi
20264                         fi
20265                       fi
20266                     fi
20267                     ;;
20268                   -R*)
20269                     dir=`echo "X$dep" | sed -e 's/^X-R//'`
20270                     if test "$enable_rpath" != no; then
20271                                                                   haveit=
20272                       for x in $rpathdirs; do
20273                         if test "X$x" = "X$dir"; then
20274                           haveit=yes
20275                           break
20276                         fi
20277                       done
20278                       if test -z "$haveit"; then
20279                         rpathdirs="$rpathdirs $dir"
20280                       fi
20281                                                                   haveit=
20282                       for x in $ltrpathdirs; do
20283                         if test "X$x" = "X$dir"; then
20284                           haveit=yes
20285                           break
20286                         fi
20287                       done
20288                       if test -z "$haveit"; then
20289                         ltrpathdirs="$ltrpathdirs $dir"
20290                       fi
20291                     fi
20292                     ;;
20293                   -l*)
20294                                         names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
20295                     ;;
20296                   *.la)
20297                                                                                 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
20298                     ;;
20299                   *)
20300                                         LIBINTL="${LIBINTL}${LIBINTL:+ }$dep"
20301                     LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$dep"
20302                     ;;
20303                 esac
20304               done
20305             fi
20306           else
20307                                                             LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
20308             LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-l$name"
20309           fi
20310         fi
20311       fi
20312     done
20313   done
20314   if test "X$rpathdirs" != "X"; then
20315     if test -n "$hardcode_libdir_separator"; then
20316                         alldirs=
20317       for found_dir in $rpathdirs; do
20318         alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
20319       done
20320             acl_save_libdir="$libdir"
20321       libdir="$alldirs"
20322       eval flag=\"$hardcode_libdir_flag_spec\"
20323       libdir="$acl_save_libdir"
20324       LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
20325     else
20326             for found_dir in $rpathdirs; do
20327         acl_save_libdir="$libdir"
20328         libdir="$found_dir"
20329         eval flag=\"$hardcode_libdir_flag_spec\"
20330         libdir="$acl_save_libdir"
20331         LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
20332       done
20333     fi
20334   fi
20335   if test "X$ltrpathdirs" != "X"; then
20336             for found_dir in $ltrpathdirs; do
20337       LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-R$found_dir"
20338     done
20339   fi
20340
20341           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libintl" >&5
20342 $as_echo_n "checking for GNU gettext in libintl... " >&6; }
20343 if test "${gt_cv_func_gnugettext1_libintl+set}" = set; then :
20344   $as_echo_n "(cached) " >&6
20345 else
20346   gt_save_CPPFLAGS="$CPPFLAGS"
20347             CPPFLAGS="$CPPFLAGS $INCINTL"
20348             gt_save_LIBS="$LIBS"
20349             LIBS="$LIBS $LIBINTL"
20350                         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20351 /* end confdefs.h.  */
20352 #include <libintl.h>
20353 extern int _nl_msg_cat_cntr;
20354 extern
20355 #ifdef __cplusplus
20356 "C"
20357 #endif
20358 const char *_nl_expand_alias (const char *);
20359 int
20360 main ()
20361 {
20362 bindtextdomain ("", "");
20363 return * gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias ("")
20364   ;
20365   return 0;
20366 }
20367 _ACEOF
20368 if ac_fn_c_try_link "$LINENO"; then :
20369   gt_cv_func_gnugettext1_libintl=yes
20370 else
20371   gt_cv_func_gnugettext1_libintl=no
20372 fi
20373 rm -f core conftest.err conftest.$ac_objext \
20374     conftest$ac_exeext conftest.$ac_ext
20375                         if test "$gt_cv_func_gnugettext1_libintl" != yes && test -n "$LIBICONV"; then
20376               LIBS="$LIBS $LIBICONV"
20377               cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20378 /* end confdefs.h.  */
20379 #include <libintl.h>
20380 extern int _nl_msg_cat_cntr;
20381 extern
20382 #ifdef __cplusplus
20383 "C"
20384 #endif
20385 const char *_nl_expand_alias (const char *);
20386 int
20387 main ()
20388 {
20389 bindtextdomain ("", "");
20390 return * gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias ("")
20391   ;
20392   return 0;
20393 }
20394 _ACEOF
20395 if ac_fn_c_try_link "$LINENO"; then :
20396   LIBINTL="$LIBINTL $LIBICONV"
20397                 LTLIBINTL="$LTLIBINTL $LTLIBICONV"
20398                 gt_cv_func_gnugettext1_libintl=yes
20399
20400 fi
20401 rm -f core conftest.err conftest.$ac_objext \
20402     conftest$ac_exeext conftest.$ac_ext
20403             fi
20404             CPPFLAGS="$gt_save_CPPFLAGS"
20405             LIBS="$gt_save_LIBS"
20406 fi
20407 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_gnugettext1_libintl" >&5
20408 $as_echo "$gt_cv_func_gnugettext1_libintl" >&6; }
20409         fi
20410
20411                                         if test "$gt_cv_func_gnugettext1_libc" = "yes" \
20412            || { test "$gt_cv_func_gnugettext1_libintl" = "yes" \
20413                 && test "$PACKAGE" != gettext-runtime \
20414                 && test "$PACKAGE" != gettext-tools; }; then
20415           gt_use_preinstalled_gnugettext=yes
20416         else
20417                     LIBINTL=
20418           LTLIBINTL=
20419           INCINTL=
20420         fi
20421
20422
20423         if test "$gt_use_preinstalled_gnugettext" != "yes"; then
20424                               nls_cv_use_gnu_gettext=yes
20425         fi
20426       fi
20427
20428       if test "$nls_cv_use_gnu_gettext" = "yes"; then
20429                 BUILD_INCLUDED_LIBINTL=yes
20430         USE_INCLUDED_LIBINTL=yes
20431         LIBINTL="\${top_builddir}/intl/libintl.a $LIBICONV"
20432         LTLIBINTL="\${top_builddir}/intl/libintl.a $LTLIBICONV"
20433         LIBS=`echo " $LIBS " | sed -e 's/ -lintl / /' -e 's/^ //' -e 's/ $//'`
20434       fi
20435
20436       CATOBJEXT=
20437       if test "$gt_use_preinstalled_gnugettext" = "yes" \
20438          || test "$nls_cv_use_gnu_gettext" = "yes"; then
20439                 CATOBJEXT=.gmo
20440       fi
20441
20442
20443     if test -n "$INTL_MACOSX_LIBS"; then
20444       if test "$gt_use_preinstalled_gnugettext" = "yes" \
20445          || test "$nls_cv_use_gnu_gettext" = "yes"; then
20446                 LIBINTL="$LIBINTL $INTL_MACOSX_LIBS"
20447         LTLIBINTL="$LTLIBINTL $INTL_MACOSX_LIBS"
20448       fi
20449     fi
20450
20451     if test "$gt_use_preinstalled_gnugettext" = "yes" \
20452        || test "$nls_cv_use_gnu_gettext" = "yes"; then
20453
20454 $as_echo "#define ENABLE_NLS 1" >>confdefs.h
20455
20456     else
20457       USE_NLS=no
20458     fi
20459   fi
20460
20461   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use NLS" >&5
20462 $as_echo_n "checking whether to use NLS... " >&6; }
20463   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
20464 $as_echo "$USE_NLS" >&6; }
20465   if test "$USE_NLS" = "yes"; then
20466     { $as_echo "$as_me:${as_lineno-$LINENO}: checking where the gettext function comes from" >&5
20467 $as_echo_n "checking where the gettext function comes from... " >&6; }
20468     if test "$gt_use_preinstalled_gnugettext" = "yes"; then
20469       if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
20470         gt_source="external libintl"
20471       else
20472         gt_source="libc"
20473       fi
20474     else
20475       gt_source="included intl directory"
20476     fi
20477     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_source" >&5
20478 $as_echo "$gt_source" >&6; }
20479   fi
20480
20481   if test "$USE_NLS" = "yes"; then
20482
20483     if test "$gt_use_preinstalled_gnugettext" = "yes"; then
20484       if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
20485         { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libintl" >&5
20486 $as_echo_n "checking how to link with libintl... " >&6; }
20487         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBINTL" >&5
20488 $as_echo "$LIBINTL" >&6; }
20489
20490   for element in $INCINTL; do
20491     haveit=
20492     for x in $CPPFLAGS; do
20493
20494   acl_save_prefix="$prefix"
20495   prefix="$acl_final_prefix"
20496   acl_save_exec_prefix="$exec_prefix"
20497   exec_prefix="$acl_final_exec_prefix"
20498   eval x=\"$x\"
20499   exec_prefix="$acl_save_exec_prefix"
20500   prefix="$acl_save_prefix"
20501
20502       if test "X$x" = "X$element"; then
20503         haveit=yes
20504         break
20505       fi
20506     done
20507     if test -z "$haveit"; then
20508       CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
20509     fi
20510   done
20511
20512       fi
20513
20514
20515 $as_echo "#define HAVE_GETTEXT 1" >>confdefs.h
20516
20517
20518 $as_echo "#define HAVE_DCGETTEXT 1" >>confdefs.h
20519
20520     fi
20521
20522         POSUB=po
20523   fi
20524
20525
20526             if test "$PACKAGE" = gettext-runtime || test "$PACKAGE" = gettext-tools; then
20527       BUILD_INCLUDED_LIBINTL=yes
20528     fi
20529
20530
20531
20532
20533
20534         nls_cv_header_intl=
20535     nls_cv_header_libgt=
20536
20537         DATADIRNAME=share
20538
20539
20540         INSTOBJEXT=.mo
20541
20542
20543         GENCAT=gencat
20544
20545
20546         INTLOBJS=
20547     if test "$USE_INCLUDED_LIBINTL" = yes; then
20548       INTLOBJS="\$(GETTOBJS)"
20549     fi
20550
20551
20552         INTL_LIBTOOL_SUFFIX_PREFIX=
20553
20554
20555
20556     INTLLIBS="$LIBINTL"
20557
20558
20559
20560
20561
20562
20563 fi
20564
20565 support_mysql=no
20566 support_sqlite=no
20567 support_sqlite3=no
20568 support_postgresql=no
20569 support_ingres=no
20570 support_dbi=no
20571 support_smartalloc=yes
20572 support_readline=yes
20573 support_conio=yes
20574 support_gnome=no
20575 support_bat=no
20576 support_wx_console=no
20577 support_tray_monitor=no
20578 support_tls=no
20579 support_crypto=no
20580 gnome_version=
20581 wx_version=
20582 support_static_tools=no
20583 support_static_fd=no
20584 support_static_sd=no
20585 support_static_dir=no
20586 support_static_cons=no
20587 support_python=no
20588 build_client_only=no
20589 build_dird=yes
20590 build_stored=yes
20591 cats=
20592 db_type=Internal
20593 support_lockmgr=no
20594 DB_TYPE=bdb
20595
20596
20597 # Check whether --enable-gnome was given.
20598 if test "${enable_gnome+set}" = set; then :
20599   enableval=$enable_gnome;
20600        if test x$enableval = xyes; then
20601           support_gnome=yes
20602        fi
20603
20604
20605 fi
20606
20607
20608 GNOME_DIR=
20609 if test x$support_gnome = xyes; then
20610    as_fn_error "bgnome-console no longer supported" "$LINENO" 5
20611    as_fn_error "--enable-gnome option no longer supported" "$LINENO" 5
20612 fi
20613 # AC_SUBST(GNOME_DIR)
20614
20615 # Check whether --enable-bat was given.
20616 if test "${enable_bat+set}" = set; then :
20617   enableval=$enable_bat;
20618        if test x$enableval = xyes; then
20619
20620 $as_echo "#define HAVE_BAT 1" >>confdefs.h
20621
20622           support_bat=yes
20623        fi
20624
20625
20626 fi
20627
20628
20629 BAT_DIR=
20630 if test x$support_bat = xyes; then
20631    abc=`$PKGCONFIG --atleast-version=4.2 QtGui`
20632    pkg=$?
20633    if test $pkg = 0; then
20634       BAT_DIR=src/qt-console
20635    else
20636       as_fn_error "Unable to find Qt4 installation needed by bat" "$LINENO" 5
20637    fi
20638 fi
20639
20640 got_qwt=no
20641 QWT_INC=
20642 QWT_LDFLAGS=
20643 QWT_LIB=
20644 QWT=
20645 no_qwt=no
20646
20647
20648
20649
20650
20651
20652
20653
20654 # Check whether --enable-bwx-console was given.
20655 if test "${enable_bwx_console+set}" = set; then :
20656   enableval=$enable_bwx_console;
20657        if test x$enableval = xyes; then
20658           support_wx_console=yes
20659        fi
20660
20661
20662 fi
20663
20664
20665 WX_DIR=
20666 if test x$support_wx_console = xyes; then
20667    abc=`$WXCONFIG $WXFLAGS --cppflags`
20668    pkg=$?
20669    if test $pkg = 0; then
20670       wx_version="wxWidgets `$WXCONFIG $WXFLAGS --release`"
20671       WXCONS_CPPFLAGS=`$WXCONFIG $WXFLAGS --cppflags`
20672       WXCONS_LDFLAGS=`$WXCONFIG $WXFLAGS --libs`
20673
20674
20675
20676       WX_DIR="src/wx-console"
20677    else
20678       echo " "
20679       echo "wx-config program not found. bwx-console disabled."
20680       echo " "
20681       support_wx_console=no
20682    fi
20683 fi
20684
20685
20686 # Check whether --enable-tray-monitor was given.
20687 if test "${enable_tray_monitor+set}" = set; then :
20688   enableval=$enable_tray_monitor;
20689        if test x$enableval = xyes; then
20690           support_tray_monitor=yes
20691        fi
20692
20693
20694 fi
20695
20696
20697 TRAY_MONITOR_DIR=
20698 if test x$support_tray_monitor = xyes; then
20699    abc=`$PKGCONFIG --exists gtk+-2.0`
20700    pkg=$?
20701    if test $pkg = 0; then
20702       TRAY_MONITOR_CPPFLAGS=`$PKGCONFIG --cflags gtk+-2.0`
20703       TRAY_MONITOR_LDFLAGS=`$PKGCONFIG --libs gtk+-2.0`
20704
20705
20706       TRAY_MONITOR_DIR=src/tray-monitor
20707       abc=`$PKGCONFIG --atleast-version=2.4 gtk+-2.0`
20708       pkg=$?
20709       if test $pkg = 0; then
20710
20711 $as_echo "#define HAVE_GTK_2_4 1" >>confdefs.h
20712
20713       fi
20714    fi
20715 fi
20716
20717
20718 # Check whether --enable-smartalloc was given.
20719 if test "${enable_smartalloc+set}" = set; then :
20720   enableval=$enable_smartalloc;
20721        if test x$enableval = xno; then
20722           support_smartalloc=no
20723        fi
20724
20725
20726 fi
20727
20728
20729 if test x$support_smartalloc = xyes; then
20730
20731 $as_echo "#define SMARTALLOC 1" >>confdefs.h
20732
20733 fi
20734
20735 # Check whether --enable-lockmgr was given.
20736 if test "${enable_lockmgr+set}" = set; then :
20737   enableval=$enable_lockmgr;
20738        if test x$enableval = xyes; then
20739           support_lockmgr=yes
20740        fi
20741
20742
20743 fi
20744
20745
20746 if test x$support_lockmgr = xyes; then
20747
20748 $as_echo "#define _USE_LOCKMGR 1" >>confdefs.h
20749
20750 fi
20751
20752
20753 # Check whether --enable-static-tools was given.
20754 if test "${enable_static_tools+set}" = set; then :
20755   enableval=$enable_static_tools;
20756        if test x$enableval = xyes; then
20757           if test x$use_libtool = xyes; then
20758              as_fn_error "Libtool is enabled, not compatible with static tools,
20759   please rerun configure with --disable-libtool" "$LINENO" 5
20760           fi
20761           support_static_tools=yes
20762        fi
20763
20764
20765 fi
20766
20767
20768 TTOOL_LDFLAGS=
20769 if test x$support_static_tools = xyes; then
20770    TTOOL_LDFLAGS="-static"
20771 fi
20772
20773
20774 # Check whether --enable-static-fd was given.
20775 if test "${enable_static_fd+set}" = set; then :
20776   enableval=$enable_static_fd;
20777        if test x$enableval = xyes; then
20778           if test x$use_libtool = xyes; then
20779              as_fn_error "Libtool is enabled, not compatible with static tools,
20780   please rerun configure with --disable-libtool" "$LINENO" 5
20781           fi
20782           support_static_fd=yes
20783        fi
20784
20785
20786 fi
20787
20788
20789 STATIC_FD=
20790 if test x$support_static_fd = xyes; then
20791    STATIC_FD="static-bacula-fd"
20792 fi
20793
20794
20795 # Check whether --enable-static-sd was given.
20796 if test "${enable_static_sd+set}" = set; then :
20797   enableval=$enable_static_sd;
20798        if test x$enableval = xyes; then
20799           if test x$use_libtool = xyes; then
20800              as_fn_error "Libtool is enabled, not compatible with static tools,
20801   please rerun configure with --disable-libtool" "$LINENO" 5
20802           fi
20803           support_static_sd=yes
20804        fi
20805
20806
20807 fi
20808
20809
20810 STATIC_SD=
20811 if test x$support_static_sd = xyes; then
20812    STATIC_SD="static-bacula-sd"
20813 fi
20814
20815
20816 # Check whether --enable-static-dir was given.
20817 if test "${enable_static_dir+set}" = set; then :
20818   enableval=$enable_static_dir;
20819        if test x$enableval = xyes; then
20820           if test x$use_libtool = xyes; then
20821              as_fn_error "Libtool is enabled, not compatible with static tools,
20822   please rerun configure with --disable-libtool" "$LINENO" 5
20823           fi
20824           support_static_dir=yes
20825        fi
20826
20827
20828 fi
20829
20830
20831 STATIC_DIR=
20832 if test x$support_static_dir = xyes; then
20833    STATIC_DIR="static-bacula-dir"
20834 fi
20835
20836
20837 # Check whether --enable-static-cons was given.
20838 if test "${enable_static_cons+set}" = set; then :
20839   enableval=$enable_static_cons;
20840        if test x$enableval = xyes; then
20841           if test x$use_libtool = xyes; then
20842              as_fn_error "Libtool is enabled, not compatible with static tools,
20843   please rerun configure with --disable-libtool" "$LINENO" 5
20844           fi
20845           support_static_cons=yes
20846        fi
20847
20848
20849 fi
20850
20851
20852 STATIC_CONS=
20853 STATIC_GNOME_CONS=
20854 STATIC_WX_CONS=
20855 if test x$support_static_cons = xyes; then
20856    STATIC_CONS="static-bconsole"
20857    STATIC_GNOME_CONS="static-bgnome-console"
20858    STATIC_WX_CONS="static-bwx-console"
20859 fi
20860
20861
20862
20863
20864 # Check whether --enable-client-only was given.
20865 if test "${enable_client_only+set}" = set; then :
20866   enableval=$enable_client_only;
20867        if test x$enableval = xyes; then
20868           build_client_only=yes
20869           db_type=None
20870           DB_TYPE=none
20871        fi
20872
20873
20874 fi
20875
20876 if test x$build_client_only = xno; then
20877    ALL_DIRS="subdirs"
20878 else
20879    ALL_DIRS=""
20880 fi
20881
20882
20883 # Check whether --enable-build-dird was given.
20884 if test "${enable_build_dird+set}" = set; then :
20885   enableval=$enable_build_dird;
20886        if test x$enableval = xno; then
20887           build_dird=no
20888        fi
20889
20890
20891 fi
20892
20893 if test x$build_dird = xyes; then
20894    DIRD_DIR="src/dird"
20895    DIR_TOOLS="DIRTOOLS"
20896 else
20897    DIRD_DIR=""
20898    DIR_TOOLS="NODIRTOOLS"
20899 fi
20900
20901
20902
20903 # Check whether --enable-build-stored was given.
20904 if test "${enable_build_stored+set}" = set; then :
20905   enableval=$enable_build_stored;
20906       if test x$enableval = xno; then
20907          build_stored=no
20908       fi
20909
20910
20911 fi
20912
20913 if test x$build_stored = xyes; then
20914    STORED_DIR="src/stored"
20915 else
20916    STORED_DIR=""
20917 fi
20918
20919
20920 # Check whether --enable-conio was given.
20921 if test "${enable_conio+set}" = set; then :
20922   enableval=$enable_conio;
20923        if test x$enableval = xno; then
20924           support_conio=no
20925        fi
20926
20927
20928 fi
20929
20930
20931
20932 support_ipv6=yes
20933 # Check whether --enable-ipv6 was given.
20934 if test "${enable_ipv6+set}" = set; then :
20935   enableval=$enable_ipv6;
20936        if test x$enableval = xno; then
20937           support_ipv6=no
20938        fi
20939
20940
20941 fi
20942
20943
20944 if test x$support_ipv6 = xyes; then
20945     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20946 /* end confdefs.h.  */
20947  #include <sys/types.h>
20948 #include <sys/socket.h>
20949 #include <netinet/in.h>
20950 int
20951 main ()
20952 {
20953 struct sockaddr_in6 s; struct in6_addr t=in6addr_any; int i=AF_INET6; s; t.s6_addr[0] = 0;
20954   ;
20955   return 0;
20956 }
20957 _ACEOF
20958 if ac_fn_c_try_link "$LINENO"; then :
20959   support_ipv6=yes
20960 else
20961   support_ipv6=no
20962 fi
20963 rm -f core conftest.err conftest.$ac_objext \
20964     conftest$ac_exeext conftest.$ac_ext
20965 fi
20966
20967 if test x$support_ipv6 = xyes; then
20968
20969 $as_echo "#define HAVE_IPV6 1" >>confdefs.h
20970
20971 fi
20972
20973 TERM_LIB=""
20974 ac_fn_c_check_header_mongrel "$LINENO" "curses.h" "ac_cv_header_curses_h" "$ac_includes_default"
20975 if test "x$ac_cv_header_curses_h" = x""yes; then :
20976    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tgetent in -lncurses" >&5
20977 $as_echo_n "checking for tgetent in -lncurses... " >&6; }
20978 if test "${ac_cv_lib_ncurses_tgetent+set}" = set; then :
20979   $as_echo_n "(cached) " >&6
20980 else
20981   ac_check_lib_save_LIBS=$LIBS
20982 LIBS="-lncurses  $LIBS"
20983 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20984 /* end confdefs.h.  */
20985
20986 /* Override any GCC internal prototype to avoid an error.
20987    Use char because int might match the return type of a GCC
20988    builtin and then its argument prototype would still apply.  */
20989 #ifdef __cplusplus
20990 extern "C"
20991 #endif
20992 char tgetent ();
20993 int
20994 main ()
20995 {
20996 return tgetent ();
20997   ;
20998   return 0;
20999 }
21000 _ACEOF
21001 if ac_fn_c_try_link "$LINENO"; then :
21002   ac_cv_lib_ncurses_tgetent=yes
21003 else
21004   ac_cv_lib_ncurses_tgetent=no
21005 fi
21006 rm -f core conftest.err conftest.$ac_objext \
21007     conftest$ac_exeext conftest.$ac_ext
21008 LIBS=$ac_check_lib_save_LIBS
21009 fi
21010 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ncurses_tgetent" >&5
21011 $as_echo "$ac_cv_lib_ncurses_tgetent" >&6; }
21012 if test "x$ac_cv_lib_ncurses_tgetent" = x""yes; then :
21013    TERM_LIB="-lncurses"
21014 else
21015    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tgetent in -ltermcap" >&5
21016 $as_echo_n "checking for tgetent in -ltermcap... " >&6; }
21017 if test "${ac_cv_lib_termcap_tgetent+set}" = set; then :
21018   $as_echo_n "(cached) " >&6
21019 else
21020   ac_check_lib_save_LIBS=$LIBS
21021 LIBS="-ltermcap  $LIBS"
21022 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21023 /* end confdefs.h.  */
21024
21025 /* Override any GCC internal prototype to avoid an error.
21026    Use char because int might match the return type of a GCC
21027    builtin and then its argument prototype would still apply.  */
21028 #ifdef __cplusplus
21029 extern "C"
21030 #endif
21031 char tgetent ();
21032 int
21033 main ()
21034 {
21035 return tgetent ();
21036   ;
21037   return 0;
21038 }
21039 _ACEOF
21040 if ac_fn_c_try_link "$LINENO"; then :
21041   ac_cv_lib_termcap_tgetent=yes
21042 else
21043   ac_cv_lib_termcap_tgetent=no
21044 fi
21045 rm -f core conftest.err conftest.$ac_objext \
21046     conftest$ac_exeext conftest.$ac_ext
21047 LIBS=$ac_check_lib_save_LIBS
21048 fi
21049 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_termcap_tgetent" >&5
21050 $as_echo "$ac_cv_lib_termcap_tgetent" >&6; }
21051 if test "x$ac_cv_lib_termcap_tgetent" = x""yes; then :
21052    TERM_LIB="-ltermcap"
21053 fi
21054
21055
21056 fi
21057
21058
21059 else
21060     for ac_header in curses.h
21061 do :
21062   ac_fn_c_check_header_mongrel "$LINENO" "curses.h" "ac_cv_header_curses_h" "$ac_includes_default"
21063 if test "x$ac_cv_header_curses_h" = x""yes; then :
21064   cat >>confdefs.h <<_ACEOF
21065 #define HAVE_CURSES_H 1
21066 _ACEOF
21067
21068 fi
21069
21070 done
21071
21072      ac_fn_c_check_header_mongrel "$LINENO" "term.h" "ac_cv_header_term_h" "$ac_includes_default"
21073 if test "x$ac_cv_header_term_h" = x""yes; then :
21074    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tgetent in -lcurses" >&5
21075 $as_echo_n "checking for tgetent in -lcurses... " >&6; }
21076 if test "${ac_cv_lib_curses_tgetent+set}" = set; then :
21077   $as_echo_n "(cached) " >&6
21078 else
21079   ac_check_lib_save_LIBS=$LIBS
21080 LIBS="-lcurses  $LIBS"
21081 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21082 /* end confdefs.h.  */
21083
21084 /* Override any GCC internal prototype to avoid an error.
21085    Use char because int might match the return type of a GCC
21086    builtin and then its argument prototype would still apply.  */
21087 #ifdef __cplusplus
21088 extern "C"
21089 #endif
21090 char tgetent ();
21091 int
21092 main ()
21093 {
21094 return tgetent ();
21095   ;
21096   return 0;
21097 }
21098 _ACEOF
21099 if ac_fn_c_try_link "$LINENO"; then :
21100   ac_cv_lib_curses_tgetent=yes
21101 else
21102   ac_cv_lib_curses_tgetent=no
21103 fi
21104 rm -f core conftest.err conftest.$ac_objext \
21105     conftest$ac_exeext conftest.$ac_ext
21106 LIBS=$ac_check_lib_save_LIBS
21107 fi
21108 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_curses_tgetent" >&5
21109 $as_echo "$ac_cv_lib_curses_tgetent" >&6; }
21110 if test "x$ac_cv_lib_curses_tgetent" = x""yes; then :
21111    TERM_LIB="-lcurses"
21112 fi
21113
21114
21115 fi
21116
21117
21118
21119 fi
21120
21121
21122
21123
21124 got_conio="no"
21125 if test x$support_conio = xyes; then
21126    if test x$TERM_LIB != x; then
21127       CONS_LIBS=$TERM_LIB
21128       CONS_OBJ="conio.o"
21129       CONS_SRC="conio.c"
21130       got_conio="yes"
21131       support_readline=no
21132
21133 $as_echo "#define HAVE_CONIO 1" >>confdefs.h
21134
21135    else
21136       echo " "; echo "Required libraries not found. CONIO turned off ..."; echo " "],
21137    fi
21138 fi
21139
21140
21141 # Check whether --enable-readline was given.
21142 if test "${enable_readline+set}" = set; then :
21143   enableval=$enable_readline;
21144        if test x$enableval = xno; then
21145           support_readline=no
21146        fi
21147
21148
21149 fi
21150
21151 if test x$TERM_LIB = x ; then
21152    support_readline=no
21153 fi
21154
21155 got_readline="no"
21156 READLINE_SRC=
21157 if test x$support_readline = xyes; then
21158
21159 # Check whether --with-readline was given.
21160 if test "${with_readline+set}" = set; then :
21161   withval=$with_readline;
21162           case "$with_readline" in
21163           no)
21164              :
21165              ;;
21166           yes|*)
21167              if test -f ${with_readline}/readline.h; then
21168                 CONS_INC="-I${with_readline}"
21169                 CONS_LDFLAGS="-L$with_readline"
21170              elif test -f ${with_readline}/include/readline/readline.h; then
21171                 CONS_INC="-I${with_readline}/include/readline"
21172                 CONS_LDFLAGS="-L${with_readline}/lib"
21173                 with_readline="${with_readline}/include/readline"
21174              else
21175                 with_readline="/usr/include/readline"
21176              fi
21177
21178              as_ac_Header=`$as_echo "ac_cv_header_${with_readline}/readline.h" | $as_tr_sh`
21179 ac_fn_c_check_header_mongrel "$LINENO" "${with_readline}/readline.h" "$as_ac_Header" "$ac_includes_default"
21180 eval as_val=\$$as_ac_Header
21181    if test "x$as_val" = x""yes; then :
21182
21183
21184 $as_echo "#define HAVE_READLINE 1" >>confdefs.h
21185
21186                     CONS_LIBS="-lreadline -lhistory $TERM_LIB"
21187                     got_readline="yes"
21188
21189 else
21190
21191                     echo " "
21192                     echo "readline.h not found. readline turned off ..."
21193                     echo " "
21194
21195
21196 fi
21197
21198
21199              ;;
21200           esac
21201
21202 else
21203
21204                  ac_fn_c_check_header_mongrel "$LINENO" "/usr/include/readline/readline.h" "ac_cv_header__usr_include_readline_readline_h" "$ac_includes_default"
21205 if test "x$ac_cv_header__usr_include_readline_readline_h" = x""yes; then :
21206
21207
21208 $as_echo "#define HAVE_READLINE 1" >>confdefs.h
21209
21210                 got_readline="yes"
21211                 CONS_INC="-I/usr/include/readline"
21212                 CONS_LIBS="-lreadline $TERM_LIB"
21213
21214 else
21215
21216                                 as_ac_Header=`$as_echo "ac_cv_header_${TOP_DIR}/depkgs/readline/readline.h" | $as_tr_sh`
21217 ac_fn_c_check_header_mongrel "$LINENO" "${TOP_DIR}/depkgs/readline/readline.h" "$as_ac_Header" "$ac_includes_default"
21218 eval as_val=\$$as_ac_Header
21219    if test "x$as_val" = x""yes; then :
21220
21221
21222 $as_echo "#define HAVE_READLINE 1" >>confdefs.h
21223
21224                         got_readline="yes"
21225                         CONS_INC="-I${TOP_DIR}/depkgs/readline"
21226                         CONS_LIBS="-lreadline -lhistory $TERM_LIB"
21227                         CONS_LDFLAGS="-L${TOP_DIR}/depkgs/readline"
21228                         PRTREADLINE_SRC="${TOP_DIR}/depkgs/readline"
21229
21230 else
21231
21232                         echo " "
21233                         echo "readline.h not found. readline turned off ..."
21234                         echo " "
21235
21236
21237 fi
21238
21239
21240
21241
21242 fi
21243
21244
21245
21246
21247 fi
21248
21249 fi
21250
21251
21252
21253
21254
21255
21256
21257
21258 MAKE_SHELL=/bin/sh
21259
21260 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat file-mode macros are broken" >&5
21261 $as_echo_n "checking whether stat file-mode macros are broken... " >&6; }
21262 if test "${ac_cv_header_stat_broken+set}" = set; then :
21263   $as_echo_n "(cached) " >&6
21264 else
21265   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21266 /* end confdefs.h.  */
21267 #include <sys/types.h>
21268 #include <sys/stat.h>
21269
21270 #if defined S_ISBLK && defined S_IFDIR
21271 extern char c1[S_ISBLK (S_IFDIR) ? -1 : 1];
21272 #endif
21273
21274 #if defined S_ISBLK && defined S_IFCHR
21275 extern char c2[S_ISBLK (S_IFCHR) ? -1 : 1];
21276 #endif
21277
21278 #if defined S_ISLNK && defined S_IFREG
21279 extern char c3[S_ISLNK (S_IFREG) ? -1 : 1];
21280 #endif
21281
21282 #if defined S_ISSOCK && defined S_IFREG
21283 extern char c4[S_ISSOCK (S_IFREG) ? -1 : 1];
21284 #endif
21285
21286 _ACEOF
21287 if ac_fn_c_try_compile "$LINENO"; then :
21288   ac_cv_header_stat_broken=no
21289 else
21290   ac_cv_header_stat_broken=yes
21291 fi
21292 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21293 fi
21294 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stat_broken" >&5
21295 $as_echo "$ac_cv_header_stat_broken" >&6; }
21296 if test $ac_cv_header_stat_broken = yes; then
21297
21298 $as_echo "#define STAT_MACROS_BROKEN 1" >>confdefs.h
21299
21300 fi
21301
21302 ac_header_dirent=no
21303 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
21304   as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
21305 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_hdr that defines DIR" >&5
21306 $as_echo_n "checking for $ac_hdr that defines DIR... " >&6; }
21307 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then :
21308   $as_echo_n "(cached) " >&6
21309 else
21310   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21311 /* end confdefs.h.  */
21312 #include <sys/types.h>
21313 #include <$ac_hdr>
21314
21315 int
21316 main ()
21317 {
21318 if ((DIR *) 0)
21319 return 0;
21320   ;
21321   return 0;
21322 }
21323 _ACEOF
21324 if ac_fn_c_try_compile "$LINENO"; then :
21325   eval "$as_ac_Header=yes"
21326 else
21327   eval "$as_ac_Header=no"
21328 fi
21329 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21330 fi
21331 eval ac_res=\$$as_ac_Header
21332                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
21333 $as_echo "$ac_res" >&6; }
21334 eval as_val=\$$as_ac_Header
21335    if test "x$as_val" = x""yes; then :
21336   cat >>confdefs.h <<_ACEOF
21337 #define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
21338 _ACEOF
21339
21340 ac_header_dirent=$ac_hdr; break
21341 fi
21342
21343 done
21344 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
21345 if test $ac_header_dirent = dirent.h; then
21346   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
21347 $as_echo_n "checking for library containing opendir... " >&6; }
21348 if test "${ac_cv_search_opendir+set}" = set; then :
21349   $as_echo_n "(cached) " >&6
21350 else
21351   ac_func_search_save_LIBS=$LIBS
21352 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21353 /* end confdefs.h.  */
21354
21355 /* Override any GCC internal prototype to avoid an error.
21356    Use char because int might match the return type of a GCC
21357    builtin and then its argument prototype would still apply.  */
21358 #ifdef __cplusplus
21359 extern "C"
21360 #endif
21361 char opendir ();
21362 int
21363 main ()
21364 {
21365 return opendir ();
21366   ;
21367   return 0;
21368 }
21369 _ACEOF
21370 for ac_lib in '' dir; do
21371   if test -z "$ac_lib"; then
21372     ac_res="none required"
21373   else
21374     ac_res=-l$ac_lib
21375     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
21376   fi
21377   if ac_fn_c_try_link "$LINENO"; then :
21378   ac_cv_search_opendir=$ac_res
21379 fi
21380 rm -f core conftest.err conftest.$ac_objext \
21381     conftest$ac_exeext
21382   if test "${ac_cv_search_opendir+set}" = set; then :
21383   break
21384 fi
21385 done
21386 if test "${ac_cv_search_opendir+set}" = set; then :
21387
21388 else
21389   ac_cv_search_opendir=no
21390 fi
21391 rm conftest.$ac_ext
21392 LIBS=$ac_func_search_save_LIBS
21393 fi
21394 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
21395 $as_echo "$ac_cv_search_opendir" >&6; }
21396 ac_res=$ac_cv_search_opendir
21397 if test "$ac_res" != no; then :
21398   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
21399
21400 fi
21401
21402 else
21403   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
21404 $as_echo_n "checking for library containing opendir... " >&6; }
21405 if test "${ac_cv_search_opendir+set}" = set; then :
21406   $as_echo_n "(cached) " >&6
21407 else
21408   ac_func_search_save_LIBS=$LIBS
21409 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21410 /* end confdefs.h.  */
21411
21412 /* Override any GCC internal prototype to avoid an error.
21413    Use char because int might match the return type of a GCC
21414    builtin and then its argument prototype would still apply.  */
21415 #ifdef __cplusplus
21416 extern "C"
21417 #endif
21418 char opendir ();
21419 int
21420 main ()
21421 {
21422 return opendir ();
21423   ;
21424   return 0;
21425 }
21426 _ACEOF
21427 for ac_lib in '' x; do
21428   if test -z "$ac_lib"; then
21429     ac_res="none required"
21430   else
21431     ac_res=-l$ac_lib
21432     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
21433   fi
21434   if ac_fn_c_try_link "$LINENO"; then :
21435   ac_cv_search_opendir=$ac_res
21436 fi
21437 rm -f core conftest.err conftest.$ac_objext \
21438     conftest$ac_exeext
21439   if test "${ac_cv_search_opendir+set}" = set; then :
21440   break
21441 fi
21442 done
21443 if test "${ac_cv_search_opendir+set}" = set; then :
21444
21445 else
21446   ac_cv_search_opendir=no
21447 fi
21448 rm conftest.$ac_ext
21449 LIBS=$ac_func_search_save_LIBS
21450 fi
21451 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
21452 $as_echo "$ac_cv_search_opendir" >&6; }
21453 ac_res=$ac_cv_search_opendir
21454 if test "$ac_res" != no; then :
21455   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
21456
21457 fi
21458
21459 fi
21460
21461 for ac_func in strcasecmp select setenv putenv tcgetattr lstat lchown
21462 do :
21463   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
21464 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
21465 eval as_val=\$$as_ac_var
21466    if test "x$as_val" = x""yes; then :
21467   cat >>confdefs.h <<_ACEOF
21468 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
21469 _ACEOF
21470
21471 fi
21472 done
21473
21474 for ac_func in nanosleep nl_langinfo
21475 do :
21476   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
21477 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
21478 eval as_val=\$$as_ac_var
21479    if test "x$as_val" = x""yes; then :
21480   cat >>confdefs.h <<_ACEOF
21481 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
21482 _ACEOF
21483
21484 fi
21485 done
21486
21487 for ac_header in varargs.h
21488 do :
21489   ac_fn_c_check_header_mongrel "$LINENO" "varargs.h" "ac_cv_header_varargs_h" "$ac_includes_default"
21490 if test "x$ac_cv_header_varargs_h" = x""yes; then :
21491   cat >>confdefs.h <<_ACEOF
21492 #define HAVE_VARARGS_H 1
21493 _ACEOF
21494
21495 fi
21496
21497 done
21498
21499
21500
21501 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Python support" >&5
21502 $as_echo_n "checking for Python support... " >&6; }
21503
21504 # Check whether --with-python was given.
21505 if test "${with_python+set}" = set; then :
21506   withval=$with_python;
21507        PYTHON_INCDIR=
21508        PYTHON_LIBS=
21509        if test "$withval" != "no"; then
21510           if test "$withval" = "yes"; then
21511              if test -e /usr/bin/python-config ; then
21512                 PYTHON_INCDIR=`/usr/bin/python-config --includes`
21513                 PYTHON_LIBS=`/usr/bin/python-config --libs`
21514              else
21515                 for python_root in /usr /usr/local /usr/sfw; do
21516                    for ver in python2.2 python2.3 python2.4 python2.5 python2.6 python3; do
21517                       if test -f $python_root/include/${ver}/Python.h; then
21518                          PYTHON_INCDIR=-I$python_root/include/${ver}
21519                          if test -d $python_root/lib64/${ver}/config; then
21520                             PYTHON_LIBS="-L$python_root/lib64/${ver}/config -l${ver}"
21521                          else
21522                             PYTHON_LIBS="-L$python_root/lib/${ver}/config -l${ver}"
21523                          fi
21524                          break
21525                       fi
21526                    done
21527                 done
21528
21529                 if test x$PYTHON_INCDIR = x; then
21530                    if test -f $prefix/include/Python.h; then
21531                       PYTHON_INCDIR=-I$prefix/include
21532                       if test -d $prefix/lib64/config; then
21533                          PYTHON_LIBS="-L$prefix/lib64/config -lpython"
21534                       else
21535                          PYTHON_LIBS="-L$prefix/lib/config -lpython"
21536                       fi
21537                    else
21538                       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21539 $as_echo "no" >&6; }
21540                       as_fn_error "Unable to find Python.h in standard locations" "$LINENO" 5
21541                    fi
21542                 fi
21543              fi
21544           else
21545              if test -e $withval/bin/python-config ; then
21546                 PYTHON_INCDIR=`$withval/bin/python-config --includes`
21547                 PYTHON_LIBS=`$withval/bin/python-config --libs`
21548              elif test -f $withval/Python.h; then
21549                 PYTHON_INCDIR=-I$withval
21550                 PYTHON_LIBS="-L$withval/config -lpython"
21551              elif test -f $withval/include/Python.h; then
21552                 PYTHON_INCDIR=-I$withval/include
21553                 if test -d $withval/lib64/config; then
21554                    PYTHON_LIBS="-L$withval/lib64/config -lpython"
21555                 else
21556                    PYTHON_LIBS="-L$withval/lib/config -lpython"
21557                 fi
21558              elif test -f $withval/include/python/Python.h; then
21559                 PYTHON_INCDIR=-I$withval/include/python
21560                 if test -d $withval/lib64/python/config; then
21561                    PYTHON_LIBS="-L$withval/lib64/python/config -lpython"
21562                 else
21563                    PYTHON_LIBS="-L$withval/lib/python/config -lpython"
21564                 fi
21565              else
21566                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21567 $as_echo "no" >&6; }
21568                 as_fn_error "Invalid Python directory $withval - unable to find Python.h under $withval" "$LINENO" 5
21569              fi
21570           fi
21571
21572           $as_echo "#define HAVE_PYTHON 1" >>confdefs.h
21573
21574           { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21575 $as_echo "yes" >&6; }
21576           support_python=yes
21577           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for more Python libs" >&5
21578 $as_echo "$as_me: checking for more Python libs" >&6;}
21579           saved_LIBS="$LIBS"; LIBS=
21580           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing shm_open" >&5
21581 $as_echo_n "checking for library containing shm_open... " >&6; }
21582 if test "${ac_cv_search_shm_open+set}" = set; then :
21583   $as_echo_n "(cached) " >&6
21584 else
21585   ac_func_search_save_LIBS=$LIBS
21586 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21587 /* end confdefs.h.  */
21588
21589 /* Override any GCC internal prototype to avoid an error.
21590    Use char because int might match the return type of a GCC
21591    builtin and then its argument prototype would still apply.  */
21592 #ifdef __cplusplus
21593 extern "C"
21594 #endif
21595 char shm_open ();
21596 int
21597 main ()
21598 {
21599 return shm_open ();
21600   ;
21601   return 0;
21602 }
21603 _ACEOF
21604 for ac_lib in '' rt; do
21605   if test -z "$ac_lib"; then
21606     ac_res="none required"
21607   else
21608     ac_res=-l$ac_lib
21609     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
21610   fi
21611   if ac_fn_c_try_link "$LINENO"; then :
21612   ac_cv_search_shm_open=$ac_res
21613 fi
21614 rm -f core conftest.err conftest.$ac_objext \
21615     conftest$ac_exeext
21616   if test "${ac_cv_search_shm_open+set}" = set; then :
21617   break
21618 fi
21619 done
21620 if test "${ac_cv_search_shm_open+set}" = set; then :
21621
21622 else
21623   ac_cv_search_shm_open=no
21624 fi
21625 rm conftest.$ac_ext
21626 LIBS=$ac_func_search_save_LIBS
21627 fi
21628 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_shm_open" >&5
21629 $as_echo "$ac_cv_search_shm_open" >&6; }
21630 ac_res=$ac_cv_search_shm_open
21631 if test "$ac_res" != no; then :
21632   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
21633
21634 fi
21635
21636           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for openpty in -lutil" >&5
21637 $as_echo_n "checking for openpty in -lutil... " >&6; }
21638 if test "${ac_cv_lib_util_openpty+set}" = set; then :
21639   $as_echo_n "(cached) " >&6
21640 else
21641   ac_check_lib_save_LIBS=$LIBS
21642 LIBS="-lutil  $LIBS"
21643 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21644 /* end confdefs.h.  */
21645
21646 /* Override any GCC internal prototype to avoid an error.
21647    Use char because int might match the return type of a GCC
21648    builtin and then its argument prototype would still apply.  */
21649 #ifdef __cplusplus
21650 extern "C"
21651 #endif
21652 char openpty ();
21653 int
21654 main ()
21655 {
21656 return openpty ();
21657   ;
21658   return 0;
21659 }
21660 _ACEOF
21661 if ac_fn_c_try_link "$LINENO"; then :
21662   ac_cv_lib_util_openpty=yes
21663 else
21664   ac_cv_lib_util_openpty=no
21665 fi
21666 rm -f core conftest.err conftest.$ac_objext \
21667     conftest$ac_exeext conftest.$ac_ext
21668 LIBS=$ac_check_lib_save_LIBS
21669 fi
21670 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_util_openpty" >&5
21671 $as_echo "$ac_cv_lib_util_openpty" >&6; }
21672 if test "x$ac_cv_lib_util_openpty" = x""yes; then :
21673   cat >>confdefs.h <<_ACEOF
21674 #define HAVE_LIBUTIL 1
21675 _ACEOF
21676
21677   LIBS="-lutil $LIBS"
21678
21679 fi
21680
21681           PYTHON_LIBS="$PYTHON_LIBS $LIBS"
21682           LIBS="$saved_LIBS"
21683        else
21684           { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21685 $as_echo "no" >&6; }
21686        fi
21687
21688 else
21689
21690        { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21691 $as_echo "no" >&6; }
21692
21693
21694 fi
21695
21696
21697
21698
21699 ac_fn_c_check_func "$LINENO" "socket" "ac_cv_func_socket"
21700 if test "x$ac_cv_func_socket" = x""yes; then :
21701   { $as_echo "$as_me:${as_lineno-$LINENO}: result: using libc's socket" >&5
21702 $as_echo "using libc's socket" >&6; }
21703 else
21704   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socket in -lxnet" >&5
21705 $as_echo_n "checking for socket in -lxnet... " >&6; }
21706 if test "${ac_cv_lib_xnet_socket+set}" = set; then :
21707   $as_echo_n "(cached) " >&6
21708 else
21709   ac_check_lib_save_LIBS=$LIBS
21710 LIBS="-lxnet  $LIBS"
21711 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21712 /* end confdefs.h.  */
21713
21714 /* Override any GCC internal prototype to avoid an error.
21715    Use char because int might match the return type of a GCC
21716    builtin and then its argument prototype would still apply.  */
21717 #ifdef __cplusplus
21718 extern "C"
21719 #endif
21720 char socket ();
21721 int
21722 main ()
21723 {
21724 return socket ();
21725   ;
21726   return 0;
21727 }
21728 _ACEOF
21729 if ac_fn_c_try_link "$LINENO"; then :
21730   ac_cv_lib_xnet_socket=yes
21731 else
21732   ac_cv_lib_xnet_socket=no
21733 fi
21734 rm -f core conftest.err conftest.$ac_objext \
21735     conftest$ac_exeext conftest.$ac_ext
21736 LIBS=$ac_check_lib_save_LIBS
21737 fi
21738 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_xnet_socket" >&5
21739 $as_echo "$ac_cv_lib_xnet_socket" >&6; }
21740 if test "x$ac_cv_lib_xnet_socket" = x""yes; then :
21741   cat >>confdefs.h <<_ACEOF
21742 #define HAVE_LIBXNET 1
21743 _ACEOF
21744
21745   LIBS="-lxnet $LIBS"
21746
21747 fi
21748
21749     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socket in -lsocket" >&5
21750 $as_echo_n "checking for socket in -lsocket... " >&6; }
21751 if test "${ac_cv_lib_socket_socket+set}" = set; then :
21752   $as_echo_n "(cached) " >&6
21753 else
21754   ac_check_lib_save_LIBS=$LIBS
21755 LIBS="-lsocket  $LIBS"
21756 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21757 /* end confdefs.h.  */
21758
21759 /* Override any GCC internal prototype to avoid an error.
21760    Use char because int might match the return type of a GCC
21761    builtin and then its argument prototype would still apply.  */
21762 #ifdef __cplusplus
21763 extern "C"
21764 #endif
21765 char socket ();
21766 int
21767 main ()
21768 {
21769 return socket ();
21770   ;
21771   return 0;
21772 }
21773 _ACEOF
21774 if ac_fn_c_try_link "$LINENO"; then :
21775   ac_cv_lib_socket_socket=yes
21776 else
21777   ac_cv_lib_socket_socket=no
21778 fi
21779 rm -f core conftest.err conftest.$ac_objext \
21780     conftest$ac_exeext conftest.$ac_ext
21781 LIBS=$ac_check_lib_save_LIBS
21782 fi
21783 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_socket" >&5
21784 $as_echo "$ac_cv_lib_socket_socket" >&6; }
21785 if test "x$ac_cv_lib_socket_socket" = x""yes; then :
21786   cat >>confdefs.h <<_ACEOF
21787 #define HAVE_LIBSOCKET 1
21788 _ACEOF
21789
21790   LIBS="-lsocket $LIBS"
21791
21792 fi
21793
21794     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socket in -linet" >&5
21795 $as_echo_n "checking for socket in -linet... " >&6; }
21796 if test "${ac_cv_lib_inet_socket+set}" = set; then :
21797   $as_echo_n "(cached) " >&6
21798 else
21799   ac_check_lib_save_LIBS=$LIBS
21800 LIBS="-linet  $LIBS"
21801 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21802 /* end confdefs.h.  */
21803
21804 /* Override any GCC internal prototype to avoid an error.
21805    Use char because int might match the return type of a GCC
21806    builtin and then its argument prototype would still apply.  */
21807 #ifdef __cplusplus
21808 extern "C"
21809 #endif
21810 char socket ();
21811 int
21812 main ()
21813 {
21814 return socket ();
21815   ;
21816   return 0;
21817 }
21818 _ACEOF
21819 if ac_fn_c_try_link "$LINENO"; then :
21820   ac_cv_lib_inet_socket=yes
21821 else
21822   ac_cv_lib_inet_socket=no
21823 fi
21824 rm -f core conftest.err conftest.$ac_objext \
21825     conftest$ac_exeext conftest.$ac_ext
21826 LIBS=$ac_check_lib_save_LIBS
21827 fi
21828 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_inet_socket" >&5
21829 $as_echo "$ac_cv_lib_inet_socket" >&6; }
21830 if test "x$ac_cv_lib_inet_socket" = x""yes; then :
21831   cat >>confdefs.h <<_ACEOF
21832 #define HAVE_LIBINET 1
21833 _ACEOF
21834
21835   LIBS="-linet $LIBS"
21836
21837 fi
21838
21839 fi
21840
21841
21842 TCPW_MSG="no"
21843 WRAPLIBS=""
21844
21845 # Check whether --with-tcp-wrappers was given.
21846 if test "${with_tcp_wrappers+set}" = set; then :
21847   withval=$with_tcp_wrappers;
21848        if test "x$withval" != "xno" ; then
21849           saved_LIBS="$LIBS"
21850           LIBS="$saved_LIBS -lwrap"
21851           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing nanosleep" >&5
21852 $as_echo_n "checking for library containing nanosleep... " >&6; }
21853 if test "${ac_cv_search_nanosleep+set}" = set; then :
21854   $as_echo_n "(cached) " >&6
21855 else
21856   ac_func_search_save_LIBS=$LIBS
21857 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21858 /* end confdefs.h.  */
21859
21860 /* Override any GCC internal prototype to avoid an error.
21861    Use char because int might match the return type of a GCC
21862    builtin and then its argument prototype would still apply.  */
21863 #ifdef __cplusplus
21864 extern "C"
21865 #endif
21866 char nanosleep ();
21867 int
21868 main ()
21869 {
21870 return nanosleep ();
21871   ;
21872   return 0;
21873 }
21874 _ACEOF
21875 for ac_lib in '' rt; do
21876   if test -z "$ac_lib"; then
21877     ac_res="none required"
21878   else
21879     ac_res=-l$ac_lib
21880     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
21881   fi
21882   if ac_fn_c_try_link "$LINENO"; then :
21883   ac_cv_search_nanosleep=$ac_res
21884 fi
21885 rm -f core conftest.err conftest.$ac_objext \
21886     conftest$ac_exeext
21887   if test "${ac_cv_search_nanosleep+set}" = set; then :
21888   break
21889 fi
21890 done
21891 if test "${ac_cv_search_nanosleep+set}" = set; then :
21892
21893 else
21894   ac_cv_search_nanosleep=no
21895 fi
21896 rm conftest.$ac_ext
21897 LIBS=$ac_func_search_save_LIBS
21898 fi
21899 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_nanosleep" >&5
21900 $as_echo "$ac_cv_search_nanosleep" >&6; }
21901 ac_res=$ac_cv_search_nanosleep
21902 if test "$ac_res" != no; then :
21903   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
21904
21905 fi
21906
21907           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libwrap" >&5
21908 $as_echo_n "checking for libwrap... " >&6; }
21909           cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21910 /* end confdefs.h.  */
21911
21912                #include <sys/types.h>
21913                #include <tcpd.h>
21914                int deny_severity = 0;
21915                int allow_severity = 0;
21916                struct request_info *req;
21917
21918 int
21919 main ()
21920 {
21921
21922                 hosts_access(req);
21923
21924   ;
21925   return 0;
21926 }
21927 _ACEOF
21928 if ac_fn_c_try_link "$LINENO"; then :
21929
21930                  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21931 $as_echo "yes" >&6; }
21932
21933 $as_echo "#define HAVE_LIBWRAP 1" >>confdefs.h
21934
21935                  TCPW_MSG="yes"
21936                  LIBS="$saved_LIBS"
21937                  WRAPLIBS="-lwrap"
21938
21939 else
21940
21941                  LIBS="$saved_LIBS -lwrap -lnsl"
21942                  WRAPLIBS="$saved_LIBS -lwrap -lnsl"
21943                  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21944 /* end confdefs.h.  */
21945
21946                        #include <sys/types.h>
21947                        #include <tcpd.h>
21948                        int deny_severity = 0;
21949                        int allow_severity = 0;
21950                        struct request_info *req;
21951
21952 int
21953 main ()
21954 {
21955
21956                        hosts_access(req);
21957
21958   ;
21959   return 0;
21960 }
21961 _ACEOF
21962 if ac_fn_c_try_link "$LINENO"; then :
21963
21964                       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21965 $as_echo "yes" >&6; }
21966
21967 $as_echo "#define HAVE_LIBWRAP 1" >>confdefs.h
21968
21969                       TCPW_MSG="yes"
21970                       LIBS="$saved_LIBS"
21971                       WRAPLIBS="-lwrap"
21972
21973 else
21974
21975                       as_fn_error "*** libwrap missing" "$LINENO" 5
21976
21977
21978 fi
21979 rm -f core conftest.err conftest.$ac_objext \
21980     conftest$ac_exeext conftest.$ac_ext
21981
21982
21983 fi
21984 rm -f core conftest.err conftest.$ac_objext \
21985     conftest$ac_exeext conftest.$ac_ext
21986        fi
21987
21988
21989 fi
21990
21991
21992 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OpenSSL" >&5
21993 $as_echo_n "checking for OpenSSL... " >&6; }
21994
21995 # Check whether --with-openssl was given.
21996 if test "${with_openssl+set}" = set; then :
21997   withval=$with_openssl;
21998         with_openssl_directory=${withval}
21999
22000
22001 fi
22002
22003
22004 if test "x$with_openssl_directory" != "xno"; then
22005    OPENSSL_LIBS="-lssl -lcrypto"
22006    OPENSSL_INC=""
22007
22008    if test "x$with_openssl_directory" != "xyes" && test x"${with_openssl_directory}" != "x"; then
22009       #
22010       # Make sure the $with_openssl_directory also makes sense
22011       #
22012       if test -d "$with_openssl_directory/lib" -a -d "$with_openssl_directory/include"; then
22013          OPENSSL_LIBS="-L$with_openssl_directory/lib $OPENSSL_LIBS"
22014          OPENSSL_INC="-I$with_openssl_directory/include $OPENSSL_INC"
22015       fi
22016    fi
22017
22018    saved_LIBS="${LIBS}"
22019    saved_CFLAGS="${CFLAGS}"
22020    LIBS="${saved_LIBS} ${OPENSSL_LIBS}"
22021    CFLAGS="${saved_CFLAGS} ${OPENSSL_INC}"
22022
22023    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22024 /* end confdefs.h.  */
22025
22026           #include <openssl/ssl.h>
22027
22028 int
22029 main ()
22030 {
22031
22032            CRYPTO_set_id_callback(NULL);
22033
22034   ;
22035   return 0;
22036 }
22037 _ACEOF
22038 if ac_fn_c_try_link "$LINENO"; then :
22039
22040           support_tls="yes"
22041           support_crypto="yes"
22042
22043 else
22044
22045           support_tls="no"
22046           support_crypto="no"
22047
22048
22049 fi
22050 rm -f core conftest.err conftest.$ac_objext \
22051     conftest$ac_exeext conftest.$ac_ext
22052
22053    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22054 /* end confdefs.h.  */
22055
22056           #include <openssl/evp.h>
22057
22058 int
22059 main ()
22060 {
22061
22062           EVP_sha512();
22063
22064   ;
22065   return 0;
22066 }
22067 _ACEOF
22068 if ac_fn_c_try_link "$LINENO"; then :
22069
22070           ac_cv_openssl_sha2="yes"
22071
22072 else
22073
22074           ac_cv_openssl_sha2="no"
22075
22076
22077 fi
22078 rm -f core conftest.err conftest.$ac_objext \
22079     conftest$ac_exeext conftest.$ac_ext
22080
22081                cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22082 /* end confdefs.h.  */
22083
22084           #include <openssl/evp.h>
22085
22086 int
22087 main ()
22088 {
22089
22090           EVP_aes_192_cbc();
22091
22092   ;
22093   return 0;
22094 }
22095 _ACEOF
22096 if ac_fn_c_try_link "$LINENO"; then :
22097
22098           ac_cv_openssl_export="no"
22099
22100 else
22101
22102           ac_cv_openssl_export="yes"
22103
22104
22105 fi
22106 rm -f core conftest.err conftest.$ac_objext \
22107     conftest$ac_exeext conftest.$ac_ext
22108
22109    LIBS="${saved_LIBS}"
22110    CFLAGS="${saved_CFLAGS}"
22111
22112    if test "$support_tls" = "yes"; then
22113
22114 $as_echo "#define HAVE_OPENSSL 1" >>confdefs.h
22115
22116
22117 $as_echo "#define HAVE_TLS 1" >>confdefs.h
22118
22119
22120 $as_echo "#define HAVE_CRYPTO 1" >>confdefs.h
22121
22122    fi
22123
22124    if test "$ac_cv_openssl_sha2" = "yes"; then
22125
22126 $as_echo "#define HAVE_SHA2 1" >>confdefs.h
22127
22128    fi
22129
22130    if test "$ac_cv_openssl_export" = "yes"; then
22131
22132 $as_echo "#define HAVE_OPENSSL_EXPORT_LIBRARY 1" >>confdefs.h
22133
22134    fi
22135 else
22136    support_tls="no"
22137    support_crypto="no"
22138    OPENSSL_LIBS=""
22139    OPENSSL_INC=""
22140 fi
22141 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $support_tls" >&5
22142 $as_echo "$support_tls" >&6; }
22143
22144 if test "$support_tls" = "no"; then
22145    OPENSSL_LIBS=""
22146    OPENSSL_INC=""
22147 fi
22148 if test "$support_crypto" = "no"; then
22149    OPENSSL_LIBS=""
22150    OPENSSL_INC=""
22151 else
22152    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EVP_PKEY_encrypt_old in -lssl" >&5
22153 $as_echo_n "checking for EVP_PKEY_encrypt_old in -lssl... " >&6; }
22154 if test "${ac_cv_lib_ssl_EVP_PKEY_encrypt_old+set}" = set; then :
22155   $as_echo_n "(cached) " >&6
22156 else
22157   ac_check_lib_save_LIBS=$LIBS
22158 LIBS="-lssl  $LIBS"
22159 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22160 /* end confdefs.h.  */
22161
22162 /* Override any GCC internal prototype to avoid an error.
22163    Use char because int might match the return type of a GCC
22164    builtin and then its argument prototype would still apply.  */
22165 #ifdef __cplusplus
22166 extern "C"
22167 #endif
22168 char EVP_PKEY_encrypt_old ();
22169 int
22170 main ()
22171 {
22172 return EVP_PKEY_encrypt_old ();
22173   ;
22174   return 0;
22175 }
22176 _ACEOF
22177 if ac_fn_c_try_link "$LINENO"; then :
22178   ac_cv_lib_ssl_EVP_PKEY_encrypt_old=yes
22179 else
22180   ac_cv_lib_ssl_EVP_PKEY_encrypt_old=no
22181 fi
22182 rm -f core conftest.err conftest.$ac_objext \
22183     conftest$ac_exeext conftest.$ac_ext
22184 LIBS=$ac_check_lib_save_LIBS
22185 fi
22186 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ssl_EVP_PKEY_encrypt_old" >&5
22187 $as_echo "$ac_cv_lib_ssl_EVP_PKEY_encrypt_old" >&6; }
22188 if test "x$ac_cv_lib_ssl_EVP_PKEY_encrypt_old" = x""yes; then :
22189
22190 $as_echo "#define HAVE_OPENSSLv1 1" >>confdefs.h
22191
22192 fi
22193
22194 fi
22195
22196
22197
22198
22199 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5
22200 $as_echo_n "checking for library containing dlopen... " >&6; }
22201 if test "${ac_cv_search_dlopen+set}" = set; then :
22202   $as_echo_n "(cached) " >&6
22203 else
22204   ac_func_search_save_LIBS=$LIBS
22205 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22206 /* end confdefs.h.  */
22207
22208 /* Override any GCC internal prototype to avoid an error.
22209    Use char because int might match the return type of a GCC
22210    builtin and then its argument prototype would still apply.  */
22211 #ifdef __cplusplus
22212 extern "C"
22213 #endif
22214 char dlopen ();
22215 int
22216 main ()
22217 {
22218 return dlopen ();
22219   ;
22220   return 0;
22221 }
22222 _ACEOF
22223 for ac_lib in '' dl; do
22224   if test -z "$ac_lib"; then
22225     ac_res="none required"
22226   else
22227     ac_res=-l$ac_lib
22228     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
22229   fi
22230   if ac_fn_c_try_link "$LINENO"; then :
22231   ac_cv_search_dlopen=$ac_res
22232 fi
22233 rm -f core conftest.err conftest.$ac_objext \
22234     conftest$ac_exeext
22235   if test "${ac_cv_search_dlopen+set}" = set; then :
22236   break
22237 fi
22238 done
22239 if test "${ac_cv_search_dlopen+set}" = set; then :
22240
22241 else
22242   ac_cv_search_dlopen=no
22243 fi
22244 rm conftest.$ac_ext
22245 LIBS=$ac_func_search_save_LIBS
22246 fi
22247 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5
22248 $as_echo "$ac_cv_search_dlopen" >&6; }
22249 ac_res=$ac_cv_search_dlopen
22250 if test "$ac_res" != no; then :
22251   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
22252
22253 fi
22254
22255
22256 working_dir=`eval echo ${prefix}/var/bacula/working`
22257
22258 # Check whether --with-working-dir was given.
22259 if test "${with_working_dir+set}" = set; then :
22260   withval=$with_working_dir;
22261        if test "x$withval" != "xno" ; then
22262          working_dir=$withval
22263        fi
22264
22265
22266 fi
22267
22268
22269
22270
22271 archivedir=/tmp
22272
22273 # Check whether --with-archivedir was given.
22274 if test "${with_archivedir+set}" = set; then :
22275   withval=$with_archivedir;
22276        if test "x$withval" != "xno" ; then
22277           archivedir=$withval
22278        fi
22279
22280
22281 fi
22282
22283
22284
22285
22286 basename=`hostname`
22287
22288 # Check whether --with-basename was given.
22289 if test "${with_basename+set}" = set; then :
22290   withval=$with_basename;
22291        if test "x$withval" != "xno" ; then
22292           basename=$withval
22293        fi
22294
22295
22296 fi
22297
22298
22299
22300
22301 hostname=`uname -n | cut -d '.' -f 1`
22302 if test x${hostname} = x ; then
22303   hostname="localhost"
22304 fi
22305
22306 # Check whether --with-hostname was given.
22307 if test "${with_hostname+set}" = set; then :
22308   withval=$with_hostname;
22309        if test "x$withval" != "xno" ; then
22310          hostname=$withval
22311        fi
22312
22313
22314 fi
22315
22316
22317
22318
22319
22320 scriptdir=`eval echo ${sysconfdir}`
22321
22322 # Check whether --with-scriptdir was given.
22323 if test "${with_scriptdir+set}" = set; then :
22324   withval=$with_scriptdir;
22325        if test "x$withval" != "xno" ; then
22326           scriptdir=$withval
22327        fi
22328
22329
22330 fi
22331
22332
22333
22334
22335
22336 bsrdir=/tmp
22337
22338 # Check whether --with-bsrdir was given.
22339 if test "${with_bsrdir+set}" = set; then :
22340   withval=$with_bsrdir;
22341        if test "x$withval" != "xno" ; then
22342           bsrdir=$withval
22343        fi
22344
22345
22346 fi
22347
22348
22349
22350
22351 logdir=/tmp
22352
22353 # Check whether --with-logdir was given.
22354 if test "${with_logdir+set}" = set; then :
22355   withval=$with_logdir;
22356        if test "x$withval" != "xno" ; then
22357           logdir=$withval
22358        fi
22359
22360
22361 fi
22362
22363
22364
22365
22366
22367 # ------------------------------------------
22368 # Where to place plugindir (plugin files)
22369 # ------------------------------------------
22370 plugindir=`eval echo ${libdir}`
22371
22372 # Check whether --with-plugindir was given.
22373 if test "${with_plugindir+set}" = set; then :
22374   withval=$with_plugindir;
22375        if test "x$withval" != "xno" ; then
22376           plugindir=$withval
22377        fi
22378
22379
22380 fi
22381
22382
22383
22384
22385 dump_email=root@localhost
22386
22387 # Check whether --with-dump-email was given.
22388 if test "${with_dump_email+set}" = set; then :
22389   withval=$with_dump_email;
22390        if test "x$withval" != "xno" ; then
22391           dump_email=$withval
22392        fi
22393
22394
22395 fi
22396
22397
22398
22399
22400 job_email=root@localhost
22401
22402 # Check whether --with-job-email was given.
22403 if test "${with_job_email+set}" = set; then :
22404   withval=$with_job_email;
22405        if test "x$withval" != "xno" ; then
22406           job_email=$withval
22407        fi
22408
22409
22410 fi
22411
22412
22413
22414
22415 smtp_host=localhost
22416
22417 # Check whether --with-smtp_host was given.
22418 if test "${with_smtp_host+set}" = set; then :
22419   withval=$with_smtp_host;
22420        if test "x$withval" != "xno" ; then
22421           smtp_host=$withval
22422        fi
22423
22424
22425 fi
22426
22427
22428
22429
22430 piddir=/var/run
22431
22432 # Check whether --with-pid-dir was given.
22433 if test "${with_pid_dir+set}" = set; then :
22434   withval=$with_pid_dir;
22435        if test "x$withval" != "xno" ; then
22436           piddir=$withval
22437        fi
22438
22439
22440 fi
22441
22442
22443 cat >>confdefs.h <<_ACEOF
22444 #define _PATH_BACULA_PIDDIR "$piddir"
22445 _ACEOF
22446
22447
22448
22449 subsysdir=/var/run/subsys
22450 if test -d /var/run/subsys; then
22451    subsysdir=/var/run/subsys
22452 elif test -d /var/lock/subsys; then
22453    subsysdir=/var/lock/subsys
22454 else
22455    subsysdir=/var/run/subsys
22456 fi
22457
22458 # Check whether --with-subsys-dir was given.
22459 if test "${with_subsys_dir+set}" = set; then :
22460   withval=$with_subsys_dir;
22461        if test "x$withval" != "xno" ; then
22462           subsysdir=$withval
22463        fi
22464
22465
22466 fi
22467
22468
22469
22470
22471 baseport=9101
22472
22473 # Check whether --with-baseport was given.
22474 if test "${with_baseport+set}" = set; then :
22475   withval=$with_baseport;
22476        if test "x$withval" != "xno" ; then
22477           baseport=$withval
22478        fi
22479
22480
22481 fi
22482
22483
22484
22485 dir_port=`expr $baseport`
22486 fd_port=`expr $baseport + 1`
22487 sd_port=`expr $fd_port + 1`
22488
22489
22490
22491
22492
22493 dir_password=
22494
22495 # Check whether --with-dir-password was given.
22496 if test "${with_dir_password+set}" = set; then :
22497   withval=$with_dir_password;
22498        if test "x$withval" != "xno" ; then
22499           dir_password=$withval
22500        fi
22501
22502
22503 fi
22504
22505
22506 if test "x$dir_password" = "x" ; then
22507    if test "x$OPENSSL" = "xnone" ; then
22508       key=`autoconf/randpass 33`
22509    else
22510       key=`openssl rand -base64 33`
22511    fi
22512    dir_password=$key
22513 fi
22514
22515 fd_password=
22516
22517 # Check whether --with-fd-password was given.
22518 if test "${with_fd_password+set}" = set; then :
22519   withval=$with_fd_password;
22520        if test "x$withval" != "xno" ; then
22521           fd_password=$withval
22522        fi
22523
22524
22525 fi
22526
22527
22528 if test "x$fd_password" = "x" ; then
22529    if test "x$OPENSSL" = "xnone" ; then
22530       key=`autoconf/randpass 37`
22531    else
22532       key=`openssl rand -base64 33`
22533    fi
22534    fd_password=$key
22535 fi
22536
22537 sd_password=
22538
22539 # Check whether --with-sd-password was given.
22540 if test "${with_sd_password+set}" = set; then :
22541   withval=$with_sd_password;
22542        if test "x$withval" != "xno" ; then
22543           sd_password=$withval
22544        fi
22545
22546
22547 fi
22548
22549
22550 if test "x$sd_password" = "x" ; then
22551    if test "x$OPENSSL" = "xnone" ; then
22552       key=`autoconf/randpass 41`
22553    else
22554       key=`openssl rand -base64 33`
22555    fi
22556    sd_password=$key
22557 fi
22558
22559 mon_dir_password=
22560
22561 # Check whether --with-mon-dir-password was given.
22562 if test "${with_mon_dir_password+set}" = set; then :
22563   withval=$with_mon_dir_password;
22564        if test "x$withval" != "xno" ; then
22565           mon_dir_password=$withval
22566        fi
22567
22568
22569 fi
22570
22571
22572 if test "x$mon_dir_password" = "x" ; then
22573    if test "x$OPENSSL" = "xnone" ; then
22574       key=`autoconf/randpass 33`
22575    else
22576       key=`openssl rand -base64 33`
22577    fi
22578    mon_dir_password=$key
22579 fi
22580
22581 mon_fd_password=
22582
22583 # Check whether --with-mon-fd-password was given.
22584 if test "${with_mon_fd_password+set}" = set; then :
22585   withval=$with_mon_fd_password;
22586        if test "x$withval" != "xno" ; then
22587           mon_fd_password=$withval
22588        fi
22589
22590
22591 fi
22592
22593
22594 if test "x$mon_fd_password" = "x" ; then
22595    if test "x$OPENSSL" = "xnone" ; then
22596       key=`autoconf/randpass 37`
22597    else
22598       key=`openssl rand -base64 33`
22599    fi
22600    mon_fd_password=$key
22601 fi
22602
22603 mon_sd_password=
22604
22605 # Check whether --with-mon-sd-password was given.
22606 if test "${with_mon_sd_password+set}" = set; then :
22607   withval=$with_mon_sd_password;
22608        if test "x$withval" != "xno" ; then
22609           mon_sd_password=$withval
22610        fi
22611
22612
22613 fi
22614
22615
22616 if test "x$mon_sd_password" = "x" ; then
22617    if test "x$OPENSSL" = "xnone" ; then
22618       key=`autoconf/randpass 41`
22619    else
22620       key=`openssl rand -base64 33`
22621    fi
22622    mon_sd_password=$key
22623 fi
22624
22625
22626
22627
22628
22629
22630
22631
22632 db_name=bacula
22633
22634 # Check whether --with-db_name was given.
22635 if test "${with_db_name+set}" = set; then :
22636   withval=$with_db_name;
22637        if test "x$withval" != "x" ; then
22638           db_name=$withval
22639        fi
22640
22641
22642 fi
22643
22644
22645
22646 db_user=bacula
22647
22648 # Check whether --with-db_user was given.
22649 if test "${with_db_user+set}" = set; then :
22650   withval=$with_db_user;
22651        if test "x$withval" != "x" ; then
22652           db_user=$withval
22653        fi
22654
22655
22656 fi
22657
22658
22659
22660 db_password=
22661
22662 # Check whether --with-db_password was given.
22663 if test "${with_db_password+set}" = set; then :
22664   withval=$with_db_password;
22665        if test "x$withval" != "x" ; then
22666           db_password=$withval
22667        fi
22668
22669
22670 fi
22671
22672
22673
22674 db_port=" "
22675
22676 # Check whether --with-db_port was given.
22677 if test "${with_db_port+set}" = set; then :
22678   withval=$with_db_port;
22679        if test "x$withval" != "x" ; then
22680           db_port=$withval
22681        fi
22682
22683
22684 fi
22685
22686
22687
22688 #
22689 # Handle users and groups for each daemon
22690 #
22691 dir_user=
22692
22693 # Check whether --with-dir_user was given.
22694 if test "${with_dir_user+set}" = set; then :
22695   withval=$with_dir_user;
22696        if test "x$withval" != "x" ; then
22697            dir_user=$withval
22698        fi
22699
22700
22701 fi
22702
22703
22704 dir_group=
22705
22706 # Check whether --with-dir_group was given.
22707 if test "${with_dir_group+set}" = set; then :
22708   withval=$with_dir_group;
22709        if test "x$withval" != "x" ; then
22710           dir_group=$withval
22711        fi
22712
22713
22714 fi
22715
22716
22717 sd_user=
22718
22719 # Check whether --with-sd_user was given.
22720 if test "${with_sd_user+set}" = set; then :
22721   withval=$with_sd_user;
22722        if test "x$withval" != "x" ; then
22723           sd_user=$withval
22724        fi
22725
22726
22727 fi
22728
22729
22730 sd_group=
22731
22732 # Check whether --with-sd_group was given.
22733 if test "${with_sd_group+set}" = set; then :
22734   withval=$with_sd_group;
22735        if test "x$withval" != "x" ; then
22736           sd_group=$withval
22737        fi
22738
22739
22740 fi
22741
22742
22743 fd_user=
22744
22745 # Check whether --with-fd_user was given.
22746 if test "${with_fd_user+set}" = set; then :
22747   withval=$with_fd_user;
22748        if test "x$withval" != "x" ; then
22749           fd_user=$withval
22750        fi
22751
22752
22753 fi
22754
22755
22756 fd_group=
22757
22758 # Check whether --with-fd_group was given.
22759 if test "${with_fd_group+set}" = set; then :
22760   withval=$with_fd_group;
22761        if test "x$withval" != "x" ; then
22762           fd_group=$withval
22763        fi
22764
22765
22766 fi
22767
22768
22769
22770
22771
22772
22773
22774
22775
22776 SBINPERM=0750
22777
22778 # Check whether --with-sbin-perm was given.
22779 if test "${with_sbin_perm+set}" = set; then :
22780   withval=$with_sbin_perm;
22781        if test "x$withval" != "x" ; then
22782           SBINPERM=$withval
22783        fi
22784
22785
22786 fi
22787
22788
22789
22790
22791 SQL_LIB=
22792
22793 db_found=no
22794 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PostgreSQL support" >&5
22795 $as_echo_n "checking for PostgreSQL support... " >&6; }
22796
22797 # Check whether --with-postgresql was given.
22798 if test "${with_postgresql+set}" = set; then :
22799   withval=$with_postgresql;
22800   if test "$withval" != "no"; then
22801       if test "$db_found" = "yes"; then
22802           { $as_echo "$as_me:${as_lineno-$LINENO}: result: error" >&5
22803 $as_echo "error" >&6; }
22804           as_fn_error "\"You can configure for only one database.\"" "$LINENO" 5;
22805       fi
22806       if test "$withval" = "yes"; then
22807           PG_CONFIG=`which pg_config`
22808           if test -n "$PG_CONFIG";then
22809               POSTGRESQL_INCDIR=`"$PG_CONFIG" --includedir`
22810               POSTGRESQL_LIBDIR=`"$PG_CONFIG" --libdir`
22811               POSTGRESQL_BINDIR=`"$PG_CONFIG" --bindir`
22812           elif test -f /usr/local/include/libpq-fe.h; then
22813               POSTGRESQL_INCDIR=/usr/local/include
22814               if test -d /usr/local/lib64; then
22815                  POSTGRESQL_LIBDIR=/usr/local/lib64
22816               else
22817                  POSTGRESQL_LIBDIR=/usr/local/lib
22818               fi
22819               POSTGRESQL_BINDIR=/usr/local/bin
22820           elif test -f /usr/include/libpq-fe.h; then
22821               POSTGRESQL_INCDIR=/usr/include
22822               if test -d /usr/lib64; then
22823                  POSTGRESQL_LIBDIR=/usr/lib64
22824               else
22825                  POSTGRESQL_LIBDIR=/usr/lib
22826               fi
22827               POSTGRESQL_BINDIR=/usr/bin
22828           elif test -f /usr/include/pgsql/libpq-fe.h; then
22829               POSTGRESQL_INCDIR=/usr/include/pgsql
22830               if test -d /usr/lib64/pgsql; then
22831                  POSTGRESQL_LIBDIR=/usr/lib64/pgsql
22832               else
22833                  POSTGRESQL_LIBDIR=/usr/lib/pgsql
22834               fi
22835               POSTGRESQL_BINDIR=/usr/bin
22836           elif test -f /usr/include/postgresql/libpq-fe.h; then
22837               POSTGRESQL_INCDIR=/usr/include/postgresql
22838               if test -d /usr/lib64/postgresql; then
22839                  POSTGRESQL_LIBDIR=/usr/lib64/postgresql
22840               else
22841                  POSTGRESQL_LIBDIR=/usr/lib/postgresql
22842               fi
22843               POSTGRESQL_BINDIR=/usr/bin
22844           else
22845               { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22846 $as_echo "no" >&6; }
22847               as_fn_error "Unable to find libpq-fe.h in standard locations" "$LINENO" 5
22848           fi
22849       elif test -f $withval/include/libpq-fe.h; then
22850           POSTGRESQL_INCDIR=$withval/include
22851           POSTGRESQL_LIBDIR=$withval/lib
22852           POSTGRESQL_BINDIR=$withval/bin
22853       elif test -f $withval/include/postgresql/libpq-fe.h; then
22854           POSTGRESQL_INCDIR=$withval/include/postgresql
22855      if test -d $withval/lib64; then
22856          POSTGRESQL_LIBDIR=$withval/lib64
22857      else
22858          POSTGRESQL_LIBDIR=$withval/lib
22859      fi
22860           POSTGRESQL_BINDIR=$withval/bin
22861       else
22862           { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22863 $as_echo "no" >&6; }
22864           as_fn_error "Invalid PostgreSQL directory $withval - unable to find libpq-fe.h under $withval" "$LINENO" 5
22865       fi
22866       $as_echo "#define HAVE_POSTGRESQL 1" >>confdefs.h
22867
22868       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22869 $as_echo "yes" >&6; }
22870       POSTGRESQL_LFLAGS="-L$POSTGRESQL_LIBDIR -lpq"
22871       ac_fn_c_check_func "$LINENO" "crypt" "ac_cv_func_crypt"
22872 if test "x$ac_cv_func_crypt" = x""yes; then :
22873
22874 else
22875   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for crypt in -lcrypt" >&5
22876 $as_echo_n "checking for crypt in -lcrypt... " >&6; }
22877 if test "${ac_cv_lib_crypt_crypt+set}" = set; then :
22878   $as_echo_n "(cached) " >&6
22879 else
22880   ac_check_lib_save_LIBS=$LIBS
22881 LIBS="-lcrypt  $LIBS"
22882 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22883 /* end confdefs.h.  */
22884
22885 /* Override any GCC internal prototype to avoid an error.
22886    Use char because int might match the return type of a GCC
22887    builtin and then its argument prototype would still apply.  */
22888 #ifdef __cplusplus
22889 extern "C"
22890 #endif
22891 char crypt ();
22892 int
22893 main ()
22894 {
22895 return crypt ();
22896   ;
22897   return 0;
22898 }
22899 _ACEOF
22900 if ac_fn_c_try_link "$LINENO"; then :
22901   ac_cv_lib_crypt_crypt=yes
22902 else
22903   ac_cv_lib_crypt_crypt=no
22904 fi
22905 rm -f core conftest.err conftest.$ac_objext \
22906     conftest$ac_exeext conftest.$ac_ext
22907 LIBS=$ac_check_lib_save_LIBS
22908 fi
22909 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypt_crypt" >&5
22910 $as_echo "$ac_cv_lib_crypt_crypt" >&6; }
22911 if test "x$ac_cv_lib_crypt_crypt" = x""yes; then :
22912   POSTGRESQL_LFLAGS="$POSTGRESQL_LFLAGS -lcrypt"
22913 fi
22914
22915 fi
22916
22917       SQL_INCLUDE=-I$POSTGRESQL_INCDIR
22918       SQL_LFLAGS=$POSTGRESQL_LFLAGS
22919       SQL_BINDIR=$POSTGRESQL_BINDIR
22920       SQL_LIB=$POSTGRESQL_LIBDIR/libpq.a
22921
22922       db_found=yes
22923       support_postgresql=yes
22924       db_type=PostgreSQL
22925       DB_TYPE=postgresql
22926   else
22927       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22928 $as_echo "no" >&6; }
22929   fi
22930
22931 else
22932
22933   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22934 $as_echo "no" >&6; }
22935
22936 fi
22937
22938
22939
22940
22941
22942
22943
22944
22945 db_found=no
22946 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MySQL support" >&5
22947 $as_echo_n "checking for MySQL support... " >&6; }
22948
22949 # Check whether --with-mysql was given.
22950 if test "${with_mysql+set}" = set; then :
22951   withval=$with_mysql;
22952   if test "$withval" != "no"; then
22953         if test "$withval" = "yes"; then
22954            if test -f /usr/local/mysql/include/mysql/mysql.h; then
22955                    MYSQL_INCDIR=/usr/local/mysql/include/mysql
22956                    if test -f /usr/local/mysql/lib64/mysql/libmysqlclient_r.a \
22957                         -o -f /usr/local/mysql/lib64/mysql/libmysqlclient_r.so; then
22958                            MYSQL_LIBDIR=/usr/local/mysql/lib64/mysql
22959                    else
22960                            MYSQL_LIBDIR=/usr/local/mysql/lib/mysql
22961                    fi
22962                    MYSQL_BINDIR=/usr/local/mysql/bin
22963            elif test -f /usr/include/mysql/mysql.h; then
22964                    MYSQL_INCDIR=/usr/include/mysql
22965                    if test -f /usr/lib64/mysql/libmysqlclient_r.a \
22966                         -o -f /usr/lib64/mysql/libmysqlclient_r.so; then
22967                            MYSQL_LIBDIR=/usr/lib64/mysql
22968                    elif test -f /usr/lib64/libmysqlclient_r.a \
22969                         -o -f /usr/lib64/libmysqlclient_r.so; then
22970                            MYSQL_LIBDIR=/usr/lib64
22971                    elif test -f /usr/lib/mysql/libmysqlclient_r.a \
22972                           -o -f /usr/lib/mysql/libmysqlclient_r.so; then
22973                            MYSQL_LIBDIR=/usr/lib/mysql
22974                    else
22975                            MYSQL_LIBDIR=/usr/lib
22976                    fi
22977                    MYSQL_BINDIR=/usr/bin
22978            elif test -f /usr/include/mysql.h; then
22979                    MYSQL_INCDIR=/usr/include
22980                    if test -f /usr/lib64/libmysqlclient_r.a \
22981                         -o -f /usr/lib64/libmysqlclient_r.so; then
22982                            MYSQL_LIBDIR=/usr/lib64
22983                    else
22984                            MYSQL_LIBDIR=/usr/lib
22985                    fi
22986                    MYSQL_BINDIR=/usr/bin
22987            elif test -f /usr/local/include/mysql/mysql.h; then
22988                    MYSQL_INCDIR=/usr/local/include/mysql
22989                    if test -f /usr/local/lib64/mysql/libmysqlclient_r.a \
22990                         -o -f /usr/local/lib64/mysql/libmysqlclient_r.so; then
22991                            MYSQL_LIBDIR=/usr/local/lib64/mysql
22992                    else
22993                            MYSQL_LIBDIR=/usr/local/lib/mysql
22994                    fi
22995                    MYSQL_BINDIR=/usr/local/bin
22996            elif test -f /usr/local/include/mysql.h; then
22997                    MYSQL_INCDIR=/usr/local/include
22998                    if test -f /usr/local/lib64/libmysqlclient_r.a \
22999                         -o -f /usr/local/lib64/libmysqlclient_r.so; then
23000                            MYSQL_LIBDIR=/usr/local/lib64
23001                    else
23002                            MYSQL_LIBDIR=/usr/local/lib
23003                    fi
23004                    MYSQL_BINDIR=/usr/local/bin
23005            else
23006               { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23007 $as_echo "no" >&6; }
23008               as_fn_error "Unable to find mysql.h in standard locations" "$LINENO" 5
23009            fi
23010         else
23011            if test -f $withval/include/mysql/mysql.h; then
23012               MYSQL_INCDIR=$withval/include/mysql
23013               if test -f $withval/lib64/mysql/libmysqlclient_r.a \
23014                    -o -f $withval/lib64/mysql/libmysqlclient_r.so; then
23015                  MYSQL_LIBDIR=$withval/lib64/mysql
23016               elif test -f $withval/lib64/libmysqlclient_r.a \
23017                    -o -f $withval/lib64/libmysqlclient_r.so; then
23018                  MYSQL_LIBDIR=$withval/lib64
23019               elif test -f $withval/lib/libmysqlclient_r.a \
23020                    -o -f $withval/lib/libmysqlclient_r.so; then
23021                  MYSQL_LIBDIR=$withval/lib
23022               else
23023                  MYSQL_LIBDIR=$withval/lib/mysql
23024               fi
23025               MYSQL_BINDIR=$withval/bin
23026            elif test -f $withval/include/mysql.h; then
23027               MYSQL_INCDIR=$withval/include
23028               if test -f $withval/lib64/libmysqlclient_r.a \
23029                    -o -f $withval/lib64/libmysqlclient_r.so; then
23030                  MYSQL_LIBDIR=$withval/lib64
23031               else
23032                  MYSQL_LIBDIR=$withval/lib
23033               fi
23034               MYSQL_BINDIR=$withval/bin
23035            else
23036               { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23037 $as_echo "no" >&6; }
23038               as_fn_error "Invalid MySQL directory $withval - unable to find mysql.h under $withval" "$LINENO" 5
23039            fi
23040         fi
23041     SQL_INCLUDE=-I$MYSQL_INCDIR
23042     if test -f $MYSQL_LIBDIR/libmysqlclient_r.a \
23043          -o -f $MYSQL_LIBDIR/libmysqlclient_r.so; then
23044        SQL_LFLAGS="-L$MYSQL_LIBDIR -lmysqlclient_r -lz"
23045        $as_echo "#define HAVE_THREAD_SAFE_MYSQL 1" >>confdefs.h
23046
23047     fi
23048     SQL_BINDIR=$MYSQL_BINDIR
23049     SQL_LIB=$MYSQL_LIBDIR/libmysqlclient_r.a
23050
23051
23052 $as_echo "#define HAVE_MYSQL 1" >>confdefs.h
23053
23054     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
23055 $as_echo "yes" >&6; }
23056     db_found=yes
23057     support_mysql=yes
23058     db_type=MySQL
23059     DB_TYPE=mysql
23060
23061   else
23062         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23063 $as_echo "no" >&6; }
23064   fi
23065
23066
23067 fi
23068
23069
23070
23071 # Check whether --with-embedded-mysql was given.
23072 if test "${with_embedded_mysql+set}" = set; then :
23073   withval=$with_embedded_mysql;
23074   if test "$withval" != "no"; then
23075         if test "$withval" = "yes"; then
23076                 if test -f /usr/local/mysql/include/mysql/mysql.h; then
23077                         MYSQL_INCDIR=/usr/local/mysql/include/mysql
23078                         if test -d /usr/local/mysql/lib64/mysql; then
23079                                 MYSQL_LIBDIR=/usr/local/mysql/lib64/mysql
23080                         else
23081                                 MYSQL_LIBDIR=/usr/local/mysql/lib/mysql
23082                         fi
23083                         MYSQL_BINDIR=/usr/local/mysql/bin
23084                 elif test -f /usr/include/mysql/mysql.h; then
23085                         MYSQL_INCDIR=/usr/include/mysql
23086                         if test -d /usr/lib64/mysql; then
23087                                 MYSQL_LIBDIR=/usr/lib64/mysql
23088                         else
23089                                 MYSQL_LIBDIR=/usr/lib/mysql
23090                         fi
23091                         MYSQL_BINDIR=/usr/bin
23092                 elif test -f /usr/include/mysql.h; then
23093                         MYSQL_INCDIR=/usr/include
23094                         if test -d /usr/lib64; then
23095                                 MYSQL_LIBDIR=/usr/lib64
23096                         else
23097                                 MYSQL_LIBDIR=/usr/lib
23098                         fi
23099                         MYSQL_BINDIR=/usr/bin
23100                 elif test -f /usr/local/include/mysql/mysql.h; then
23101                         MYSQL_INCDIR=/usr/local/include/mysql
23102                         if test -d /usr/local/lib64/mysql; then
23103                                 MYSQL_LIBDIR=/usr/local/lib64/mysql
23104                         else
23105                                 MYSQL_LIBDIR=/usr/local/lib/mysql
23106                         fi
23107                         MYSQL_BINDIR=/usr/local/bin
23108                 elif test -f /usr/local/include/mysql.h; then
23109                         MYSQL_INCDIR=/usr/local/include
23110                         if test -d /usr/local/lib64; then
23111                                 MYSQL_LIBDIR=/usr/local/lib64
23112                         else
23113                                 MYSQL_LIBDIR=/usr/local/lib
23114                         fi
23115                         MYSQL_BINDIR=/usr/local/bin
23116                 else
23117                    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23118 $as_echo "no" >&6; }
23119                    as_fn_error "Unable to find mysql.h in standard locations" "$LINENO" 5
23120                 fi
23121         else
23122                 if test -f $withval/include/mysql/mysql.h; then
23123                         MYSQL_INCDIR=$withval/include/mysql
23124                         if test -d $withval/lib64/mysql; then
23125                                 MYSQL_LIBDIR=$withval/lib64/mysql
23126                         else
23127                                 MYSQL_LIBDIR=$withval/lib/mysql
23128                         fi
23129                         MYSQL_BINDIR=$withval/bin
23130                 elif test -f $withval/include/mysql.h; then
23131                         MYSQL_INCDIR=$withval/include
23132                         if test -d $withval/lib64; then
23133                                 MYSQL_LIBDIR=$withval/lib64
23134                         else
23135                                 MYSQL_LIBDIR=$withval/lib
23136                         fi
23137                         MYSQL_BINDIR=$withval/bin
23138                 else
23139                    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23140 $as_echo "no" >&6; }
23141                    as_fn_error "Invalid MySQL directory $withval - unable to find mysql.h under $withval" "$LINENO" 5
23142                 fi
23143         fi
23144     SQL_INCLUDE=-I$MYSQL_INCDIR
23145     SQL_LFLAGS="-L$MYSQL_LIBDIR -lmysqld -lz -lm -lcrypt"
23146     SQL_BINDIR=$MYSQL_BINDIR
23147     SQL_LIB=$MYSQL_LIBDIR/libmysqld.a
23148
23149     $as_echo "#define HAVE_MYSQL 1" >>confdefs.h
23150
23151     $as_echo "#define HAVE_EMBEDDED_MYSQL 1" >>confdefs.h
23152
23153     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
23154 $as_echo "yes" >&6; }
23155     db_found=yes
23156     support_mysql=yes
23157     db_type=MySQL
23158     DB_TYPE=mysql
23159
23160   else
23161         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23162 $as_echo "no" >&6; }
23163   fi
23164
23165
23166 fi
23167
23168
23169
23170
23171
23172
23173
23174
23175
23176
23177 db_found=no
23178 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Ingres support" >&5
23179 $as_echo_n "checking for Ingres support... " >&6; }
23180
23181 # Check whether --with-ingres was given.
23182 if test "${with_ingres+set}" = set; then :
23183   withval=$with_ingres;
23184   if test "$withval" != "no"; then
23185      if test "$withval" = "yes"; then
23186         if test -f ${II_SYSTEM}/files/eqdefc.h; then
23187            INGRES_INCDIR=${II_SYSTEM}/files
23188            INGRES_LIBDIR=${II_SYSTEM}/lib
23189            INGRES_BINDIR=${II_SYSTEM}/bin
23190         elif test -f ${II_SYSTEM}/ingres/files/eqdefc.h; then
23191            INGRES_INCDIR=${II_SYSTEM}/ingres/files
23192            INGRES_LIBDIR=${II_SYSTEM}/ingres/lib
23193            INGRES_BINDIR=${II_SYSTEM}/ingres/bin
23194         else
23195            { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23196 $as_echo "no" >&6; }
23197            as_fn_error "Unable to find eqdefc.h in standard locations" "$LINENO" 5
23198         fi
23199      else
23200         if test -f $withval/files/eqdefc.h; then
23201            INGRES_INCDIR=$withval/files
23202            INGRES_LIBDIR=$withval/lib
23203            INGRES_BINDIR=$withval/bin
23204         else
23205            { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23206 $as_echo "no" >&6; }
23207            as_fn_error "Invalid Ingres directory $withval - unable to find Ingres headers under $withval" "$LINENO" 5
23208         fi
23209      fi
23210      SQL_INCLUDE=-I$INGRES_INCDIR
23211      SQL_LFLAGS="-L$INGRES_LIBDIR -lq.1 -lcompat.1 -lframe.1"
23212      SQL_BINDIR=$INGRES_BINDIR
23213      SQL_LIB=$INGRES_LIBDIR/libingres.a
23214
23215 $as_echo "#define HAVE_INGRES 1" >>confdefs.h
23216
23217      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
23218 $as_echo "yes" >&6; }
23219      db_found=yes
23220      support_ingres=yes
23221      db_type=Ingres
23222      DB_TYPE=ingres
23223
23224   else
23225      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23226 $as_echo "no" >&6; }
23227   fi
23228
23229 else
23230
23231   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23232 $as_echo "no" >&6; }
23233
23234 fi
23235
23236
23237
23238
23239
23240
23241
23242
23243 db_found=no
23244 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SQLite3 support" >&5
23245 $as_echo_n "checking for SQLite3 support... " >&6; }
23246
23247 # Check whether --with-sqlite3 was given.
23248 if test "${with_sqlite3+set}" = set; then :
23249   withval=$with_sqlite3;
23250   if test "$withval" != "no"; then
23251      if test "$withval" = "yes"; then
23252         if test -f /usr/local/include/sqlite3.h; then
23253            SQLITE_INCDIR=/usr/local/include
23254            if test -d /usr/local/lib64; then
23255               SQLITE_LIBDIR=/usr/local/lib64
23256            else
23257               SQLITE_LIBDIR=/usr/local/lib
23258            fi
23259            SQLITE_BINDIR=/usr/local/bin
23260         elif test -f /usr/include/sqlite3.h; then
23261            SQLITE_INCDIR=/usr/include
23262            if test -d /usr/lib64; then
23263               SQLITE_LIBDIR=/usr/lib64
23264            else
23265               SQLITE_LIBDIR=/usr/lib
23266            fi
23267            SQLITE_BINDIR=/usr/bin
23268         elif test -f $prefix/include/sqlite3.h; then
23269            SQLITE_INCDIR=$prefix/include
23270            if test -d $prefix/lib64; then
23271               SQLITE_LIBDIR=$prefix/lib64
23272            else
23273               SQLITE_LIBDIR=$prefix/lib
23274            fi
23275            SQLITE_BINDIR=$prefix/bin
23276         else
23277            { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23278 $as_echo "no" >&6; }
23279            as_fn_error "Unable to find sqlite3.h in standard locations" "$LINENO" 5
23280         fi
23281      else
23282         if test -f $withval/sqlite3.h; then
23283            SQLITE_INCDIR=$withval
23284            SQLITE_LIBDIR=$withval
23285            SQLITE_BINDIR=$withval
23286         elif test -f $withval/include/sqlite3.h; then
23287            SQLITE_INCDIR=$withval/include
23288            if test -d $withval/lib64; then
23289               SQLITE_LIBDIR=$withval/lib64
23290            else
23291               SQLITE_LIBDIR=$withval/lib
23292            fi
23293            SQLITE_BINDIR=$withval/bin
23294         else
23295            { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23296 $as_echo "no" >&6; }
23297            as_fn_error "Invalid SQLite3 directory $withval - unable to find sqlite3.h under $withval" "$LINENO" 5
23298         fi
23299      fi
23300      SQL_INCLUDE=-I$SQLITE_INCDIR
23301      SQL_LFLAGS="-L$SQLITE_LIBDIR -lsqlite3"
23302      SQL_BINDIR=$SQLITE_BINDIR
23303      SQL_LIB=$SQLITE_LIBDIR/libsqlite3.a
23304
23305      $as_echo "#define HAVE_SQLITE3 1" >>confdefs.h
23306
23307      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
23308 $as_echo "yes" >&6; }
23309      db_found=yes
23310      support_sqlite3=yes
23311      db_type=SQLite3
23312      DB_TYPE=sqlite3
23313
23314   else
23315      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23316 $as_echo "no" >&6; }
23317   fi
23318
23319 else
23320
23321   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23322 $as_echo "no" >&6; }
23323
23324 fi
23325
23326
23327
23328
23329
23330
23331
23332 # BA_CHECK_SQLITE_DB
23333
23334
23335 db_found=no
23336 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DBI support" >&5
23337 $as_echo_n "checking for DBI support... " >&6; }
23338
23339 # Check whether --with-dbi was given.
23340 if test "${with_dbi+set}" = set; then :
23341   withval=$with_dbi;
23342   if test "$withval" != "no"; then
23343      if test "$withval" = "yes"; then
23344         if test -f /usr/local/include/dbi/dbi.h; then
23345            DBI_INCDIR=/usr/local/dbi/include
23346            if test -d /usr/local/lib64; then
23347               DBI_LIBDIR=/usr/local/lib64
23348            else
23349               DBI_LIBDIR=/usr/local/lib
23350            fi
23351            DBI_BINDIR=/usr/local/bin
23352         elif test -f /usr/include/dbi/dbi.h; then
23353            DBI_INCDIR=/usr/include
23354            if test -d /usr/lib64; then
23355               DBI_LIBDIR=/usr/lib64
23356            else
23357               DBI_LIBDIR=/usr/lib
23358            fi
23359            DBI_BINDIR=/usr/bin
23360         elif test -f $prefix/include/dbi/dbi.h; then
23361            DBI_INCDIR=$prefix/include
23362            if test -d $prefix/lib64; then
23363               DBI_LIBDIR=$prefix/lib64
23364            else
23365               DBI_LIBDIR=$prefix/lib
23366            fi
23367            DBI_BINDIR=$prefix/bin
23368         else
23369            { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23370 $as_echo "no" >&6; }
23371            as_fn_error "Unable to find dbi.h in standard locations" "$LINENO" 5
23372         fi
23373         if test -d /usr/local/lib/dbd; then
23374            DRIVERDIR=/usr/local/lib/dbd
23375            if test -d /usr/local/lib64/dbd; then
23376               DRIVERDIR=/usr/local/lib64/dbd
23377            else
23378               DRIVERDIR=/usr/local/lib/dbd
23379            fi
23380         elif test -d /usr/lib/dbd; then
23381            DRIVERDIR=/usr/lib/dbd
23382            if test -d /usr/lib64/dbd; then
23383               DRIVERDIR=/usr/lib64/dbd
23384            else
23385               DRIVERDIR=/usr/lib/dbd
23386            fi
23387         elif test -d $prefix/lib/dbd; then
23388            if test -d $prefix/lib64/dbd; then
23389               DRIVERDIR=$prefix/lib64/dbd
23390            else
23391               DRIVERDIR=$prefix/lib/dbd
23392            fi
23393         elif test -d /usr/local/lib64/dbd; then
23394            DRIVERDIR=/usr/local/lib64/dbd
23395         elif test -d /usr/lib64/dbd; then
23396            DRIVERDIR=/usr/lib64/dbd
23397         elif test -d $prefix/lib64/dbd; then
23398            DRIVERDIR=$prefix/lib64/dbd
23399         else
23400            { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23401 $as_echo "no" >&6; }
23402            as_fn_error "Unable to find DBD drivers in standard locations" "$LINENO" 5
23403         fi
23404      else
23405         if test -f $withval/dbi.h; then
23406            DBI_INCDIR=$withval
23407            DBI_LIBDIR=$withval
23408            DBI_BINDIR=$withval
23409         elif test -f $withval/include/dbi/dbi.h; then
23410            DBI_INCDIR=$withval/include
23411            if test -d $withval/lib64; then
23412               DBI_LIBDIR=$withval/lib64
23413            else
23414               DBI_LIBDIR=$withval/lib
23415            fi
23416            DBI_BINDIR=$withval/bin
23417         else
23418            { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23419 $as_echo "no" >&6; }
23420            as_fn_error "Invalid DBI directory $withval - unable to find dbi.h under $withval" "$LINENO" 5
23421         fi
23422         if test -d $withval/dbd; then
23423            DRIVERDIR=$withval/dbd
23424         elif test -d $withval/lib/; then
23425            if test -d $withval/lib64/dbd; then
23426               DRIVERDIR=$withval/lib64/dbd
23427            else
23428               DRIVERDIR=$withval/lib/dbd
23429            fi
23430         elif test -d $withval/lib64/dbd; then
23431            DRIVERDIR=$withval/lib64/dbd
23432         else
23433            { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23434 $as_echo "no" >&6; }
23435            as_fn_error "Invalid DBD driver directory $withval - unable to find DBD drivers under $withval" "$LINENO" 5
23436         fi
23437      fi
23438      SQL_INCLUDE=-I$DBI_INCDIR
23439      SQL_LFLAGS="-L$DBI_LIBDIR -ldbi"
23440      SQL_BINDIR=$DBI_BINDIR
23441      SQL_LIB=$DBI_LIBDIR/libdbi.a
23442      DBI_DBD_DRIVERDIR="-D DBI_DRIVER_DIR=\\\"$DRIVERDIR\\\""
23443
23444
23445 $as_echo "#define HAVE_DBI 1" >>confdefs.h
23446
23447      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
23448 $as_echo "yes" >&6; }
23449      db_found=yes
23450      support_dbi=yes
23451      db_type=DBI
23452      DB_TYPE=dbi
23453      uncomment_dbi=" "
23454
23455   else
23456      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23457 $as_echo "no" >&6; }
23458   fi
23459
23460 else
23461
23462   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23463 $as_echo "no" >&6; }
23464
23465 fi
23466
23467
23468
23469
23470
23471
23472
23473
23474
23475
23476 db_found=no
23477 db_prog=no
23478 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DBI drivers support" >&5
23479 $as_echo_n "checking for DBI drivers support... " >&6; }
23480
23481 # Check whether --with-dbi-driver was given.
23482 if test "${with_dbi_driver+set}" = set; then :
23483   withval=$with_dbi_driver;
23484   if test "$withval" != "no"; then
23485      case $withval in
23486         "mysql")
23487            db_prog="mysql"
23488            if test -f /usr/local/mysql/bin/mysql; then
23489               SQL_BINDIR=/usr/local/mysql/bin
23490               if test -f /usr/local/mysql/lib64/mysql/libmysqlclient_r.a \
23491                  -o -f /usr/local/mysql/lib64/mysql/libmysqlclient_r.so; then
23492                  SQL_LIBDIR=/usr/local/mysql/lib64/mysql
23493               else
23494                  SQL_LIBDIR=/usr/local/mysql/lib/mysql
23495               fi
23496            elif test -f /usr/bin/mysql; then
23497               SQL_BINDIR=/usr/bin
23498               if test -f /usr/lib64/mysql/libmysqlclient_r.a \
23499                   -o -f /usr/lib64/mysql/libmysqlclient_r.so; then
23500                   SQL_LIBDIR=/usr/lib64/mysql
23501               elif test -f /usr/lib/mysql/libmysqlclient_r.a \
23502                   -o -f /usr/lib/mysql/libmysqlclient_r.so; then
23503                   SQL_LIBDIR=/usr/lib/mysql
23504               else
23505                   SQL_LIBDIR=/usr/lib
23506               fi
23507            elif test -f /usr/local/bin/mysql; then
23508               SQL_BINDIR=/usr/local/bin
23509               if test -f /usr/local/lib64/mysql/libmysqlclient_r.a \
23510                   -o -f /usr/local/lib64/mysql/libmysqlclient_r.so; then
23511                   SQL_LIBDIR=/usr/local/lib64/mysql
23512               elif test -f /usr/local/lib/mysql/libmysqlclient_r.a \
23513                   -o -f /usr/local/lib/mysql/libmysqlclient_r.so; then
23514                   SQL_LIBDIR=/usr/local/lib/mysql
23515               else
23516                   SQL_LIBDIR=/usr/local/lib
23517               fi
23518            elif test -f $withval/bin/mysql; then
23519               SQL_BINDIR=$withval/bin
23520               if test -f $withval/lib64/mysql/libmysqlclient_r.a \
23521                   -o -f $withval/lib64/mysql/libmysqlclient_r.so; then
23522                   SQL_LIBDIR=$withval/lib64/mysql
23523               elif test -f $withval/lib64/libmysqlclient_r.a \
23524                   -o -f $withval/lib64/libmysqlclient_r.so; then
23525                   SQL_LIBDIR=$withval/lib64
23526               elif test -f $withval/lib/libmysqlclient_r.a \
23527                   -o -f $withval/lib/libmysqlclient_r.so; then
23528                   SQL_LIBDIR=$withval/lib/
23529               else
23530                   SQL_LIBDIR=$withval/lib/mysql
23531               fi
23532            else
23533               { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23534 $as_echo "no" >&6; }
23535               as_fn_error "Unable to find mysql in standard locations" "$LINENO" 5
23536            fi
23537            if test -f $SQL_LIBDIR/libmysqlclient_r.so; then
23538               DB_PROG_LIB=$SQL_LIBDIR/libmysqlclient_r.so
23539            else
23540               DB_PROG_LIB=$SQL_LIBDIR/libmysqlclient_r.a
23541            fi
23542         ;;
23543         "postgresql")
23544            db_prog="postgresql"
23545            PG_CONFIG=`which pg_config`
23546            if test -n "$PG_CONFIG"; then
23547               SQL_BINDIR=`"$PG_CONFIG" --bindir`
23548               SQL_LIBDIR=`"$PG_CONFIG" --libdir`
23549            elif test -f /usr/local/bin/psql; then
23550               SQL_BINDIR=/usr/local/bin
23551               if test -d /usr/local/lib64; then
23552                  SQL_LIBDIR=/usr/local/lib64
23553               else
23554                  SQL_LIBDIR=/usr/local/lib
23555               fi
23556            elif test -f /usr/bin/psql; then
23557               SQL_BINDIR=/usr/local/bin
23558               if test -d /usr/lib64/postgresql; then
23559                  SQL_LIBDIR=/usr/lib64/postgresql
23560               elif test -d /usr/lib/postgresql; then
23561                  SQL_LIBDIR=/usr/lib/postgresql
23562               elif test -d /usr/lib64; then
23563                  SQL_LIBDIR=/usr/lib64
23564               else
23565                  SQL_LIBDIR=/usr/lib
23566               fi
23567            elif test -f $withval/bin/psql; then
23568               SQL_BINDIR=$withval/bin
23569               if test -d $withval/lib64; then
23570                  SQL_LIBDIR=$withval/lib64
23571               else
23572                  SQL_LIBDIR=$withval/lib
23573               fi
23574            else
23575               { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23576 $as_echo "no" >&6; }
23577               as_fn_error "Unable to find psql in standard locations" "$LINENO" 5
23578            fi
23579            if test -f $SQL_LIBDIR/libpq.so; then
23580               DB_PROG_LIB=$SQL_LIBDIR/libpq.so
23581            else
23582               DB_PROG_LIB=$SQL_LIBDIR/libpq.a
23583            fi
23584         ;;
23585         "sqlite")
23586            db_prog="sqlite"
23587            if test -f /usr/local/bin/sqlite; then
23588               SQL_BINDIR=/usr/local/bin
23589               if test -d /usr/local/lib64; then
23590                  SQL_LIBDIR=/usr/local/lib64
23591               else
23592                  SQL_LIBDIR=/usr/local/lib
23593               fi
23594            elif test -f /usr/bin/sqlite; then
23595               SQL_BINDIR=/usr/bin
23596               if test -d /usr/lib64; then
23597                  SQL_LIBDIR=/usr/lib64
23598               else
23599                  SQL_LIBDIR=/usr/lib
23600               fi
23601            elif test -f $withval/bin/sqlite; then
23602               SQL_BINDIR=$withval/bin
23603               if test -d $withval/lib64; then
23604                  SQL_LIBDIR=$withval/lib64
23605               else
23606                  SQL_LIBDIR=$withval/lib
23607               fi
23608            else
23609               { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23610 $as_echo "no" >&6; }
23611               as_fn_error "Unable to find sqlite in standard locations" "$LINENO" 5
23612            fi
23613            if test -f $SQL_LIBDIR/libsqlite.so; then
23614               DB_PROG_LIB=$SQL_LIBDIR/libsqlite.so
23615            else
23616               DB_PROG_LIB=$SQL_LIBDIR/libsqlite.a
23617            fi
23618         ;;
23619         "sqlite3")
23620            db_prog="sqlite3"
23621            if test -f /usr/local/bin/sqlite3; then
23622               SQL_BINDIR=/usr/local/bin
23623               if test -d /usr/local/lib64; then
23624                  SQL_LIBDIR=/usr/local/lib64
23625               else
23626                  SQL_LIBDIR=/usr/local/lib
23627               fi
23628            elif test -f /usr/bin/sqlite3; then
23629               SQL_BINDIR=/usr/bin
23630               if test -d /usr/lib64; then
23631                  SQL_LIBDIR=/usr/lib64
23632               else
23633                  SQL_LIBDIR=/usr/lib
23634               fi
23635            elif test -f $withval/bin/sqlite3; then
23636               SQL_BINDIR=$withval/bin
23637               if test -d $withval/lib64; then
23638                  SQL_LIBDIR=$withval/lib64
23639               else
23640                  SQL_LIBDIR=$withval/lib
23641               fi
23642            else
23643               { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23644 $as_echo "no" >&6; }
23645               as_fn_error "Unable to find sqlite in standard locations" "$LINENO" 5
23646            fi
23647            if test -f $SQL_LIBDIR/libsqlite3.so; then
23648               DB_PROG_LIB=$SQL_LIBDIR/libsqlite3.so
23649            else
23650               DB_PROG_LIB=$SQL_LIBDIR/libsqlite3.a
23651            fi
23652         ;;
23653         *)
23654            { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23655 $as_echo "no" >&6; }
23656            as_fn_error "Unable to set DBI driver. $withval is not supported" "$LINENO" 5
23657         ;;
23658      esac
23659
23660      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
23661 $as_echo "yes" >&6; }
23662      DB_PROG=$db_prog
23663   else
23664      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23665 $as_echo "no" >&6; }
23666   fi
23667
23668 else
23669
23670   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23671 $as_echo "no" >&6; }
23672
23673 fi
23674
23675
23676
23677
23678
23679
23680
23681
23682
23683
23684 support_batch_insert=no
23685 A=`test -f $SQL_LIB && nm $SQL_LIB | grep pthread_mutex_lock`
23686 pkg=$?
23687 if test $pkg = 0; then
23688    support_batch_insert=yes
23689    # Check whether --enable-batch-insert was given.
23690 if test "${enable_batch_insert+set}" = set; then :
23691   enableval=$enable_batch_insert;
23692           if test x$enableval = xno; then
23693              support_batch_insert=no
23694           else
23695              support_batch_insert=yes
23696           fi
23697
23698
23699 fi
23700
23701 fi
23702
23703 saved_LIBS="${LIBS}"
23704 LIBS="${saved_LIBS} ${SQL_LFLAGS}"
23705
23706 if test x$DB_TYPE = xpostgresql; then
23707    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PQisthreadsafe in -lpq" >&5
23708 $as_echo_n "checking for PQisthreadsafe in -lpq... " >&6; }
23709 if test "${ac_cv_lib_pq_PQisthreadsafe+set}" = set; then :
23710   $as_echo_n "(cached) " >&6
23711 else
23712   ac_check_lib_save_LIBS=$LIBS
23713 LIBS="-lpq  $LIBS"
23714 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23715 /* end confdefs.h.  */
23716
23717 /* Override any GCC internal prototype to avoid an error.
23718    Use char because int might match the return type of a GCC
23719    builtin and then its argument prototype would still apply.  */
23720 #ifdef __cplusplus
23721 extern "C"
23722 #endif
23723 char PQisthreadsafe ();
23724 int
23725 main ()
23726 {
23727 return PQisthreadsafe ();
23728   ;
23729   return 0;
23730 }
23731 _ACEOF
23732 if ac_fn_c_try_link "$LINENO"; then :
23733   ac_cv_lib_pq_PQisthreadsafe=yes
23734 else
23735   ac_cv_lib_pq_PQisthreadsafe=no
23736 fi
23737 rm -f core conftest.err conftest.$ac_objext \
23738     conftest$ac_exeext conftest.$ac_ext
23739 LIBS=$ac_check_lib_save_LIBS
23740 fi
23741 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pq_PQisthreadsafe" >&5
23742 $as_echo "$ac_cv_lib_pq_PQisthreadsafe" >&6; }
23743 if test "x$ac_cv_lib_pq_PQisthreadsafe" = x""yes; then :
23744
23745 $as_echo "#define HAVE_PQISTHREADSAFE 1" >>confdefs.h
23746
23747 fi
23748
23749    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PQputCopyData in -lpq" >&5
23750 $as_echo_n "checking for PQputCopyData in -lpq... " >&6; }
23751 if test "${ac_cv_lib_pq_PQputCopyData+set}" = set; then :
23752   $as_echo_n "(cached) " >&6
23753 else
23754   ac_check_lib_save_LIBS=$LIBS
23755 LIBS="-lpq  $LIBS"
23756 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23757 /* end confdefs.h.  */
23758
23759 /* Override any GCC internal prototype to avoid an error.
23760    Use char because int might match the return type of a GCC
23761    builtin and then its argument prototype would still apply.  */
23762 #ifdef __cplusplus
23763 extern "C"
23764 #endif
23765 char PQputCopyData ();
23766 int
23767 main ()
23768 {
23769 return PQputCopyData ();
23770   ;
23771   return 0;
23772 }
23773 _ACEOF
23774 if ac_fn_c_try_link "$LINENO"; then :
23775   ac_cv_lib_pq_PQputCopyData=yes
23776 else
23777   ac_cv_lib_pq_PQputCopyData=no
23778 fi
23779 rm -f core conftest.err conftest.$ac_objext \
23780     conftest$ac_exeext conftest.$ac_ext
23781 LIBS=$ac_check_lib_save_LIBS
23782 fi
23783 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pq_PQputCopyData" >&5
23784 $as_echo "$ac_cv_lib_pq_PQputCopyData" >&6; }
23785 if test "x$ac_cv_lib_pq_PQputCopyData" = x""yes; then :
23786
23787 $as_echo "#define HAVE_PQ_COPY 1" >>confdefs.h
23788
23789 fi
23790
23791    if test "x$ac_cv_lib_pq_PQputCopyData" != "xyes"
23792     then
23793         support_batch_insert=no
23794    fi
23795 fi
23796
23797 if test x$DB_TYPE = xdbi; then
23798    DB_TYPE=$DB_PROG
23799    db_type=$DB_PROG
23800    pkg=1
23801       if test $DB_PROG = postgresql; then
23802       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PQisthreadsafe in -lpq" >&5
23803 $as_echo_n "checking for PQisthreadsafe in -lpq... " >&6; }
23804 if test "${ac_cv_lib_pq_PQisthreadsafe+set}" = set; then :
23805   $as_echo_n "(cached) " >&6
23806 else
23807   ac_check_lib_save_LIBS=$LIBS
23808 LIBS="-lpq  $LIBS"
23809 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23810 /* end confdefs.h.  */
23811
23812 /* Override any GCC internal prototype to avoid an error.
23813    Use char because int might match the return type of a GCC
23814    builtin and then its argument prototype would still apply.  */
23815 #ifdef __cplusplus
23816 extern "C"
23817 #endif
23818 char PQisthreadsafe ();
23819 int
23820 main ()
23821 {
23822 return PQisthreadsafe ();
23823   ;
23824   return 0;
23825 }
23826 _ACEOF
23827 if ac_fn_c_try_link "$LINENO"; then :
23828   ac_cv_lib_pq_PQisthreadsafe=yes
23829 else
23830   ac_cv_lib_pq_PQisthreadsafe=no
23831 fi
23832 rm -f core conftest.err conftest.$ac_objext \
23833     conftest$ac_exeext conftest.$ac_ext
23834 LIBS=$ac_check_lib_save_LIBS
23835 fi
23836 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pq_PQisthreadsafe" >&5
23837 $as_echo "$ac_cv_lib_pq_PQisthreadsafe" >&6; }
23838 if test "x$ac_cv_lib_pq_PQisthreadsafe" = x""yes; then :
23839   $as_echo "#define HAVE_PQISTHREADSAFE 1" >>confdefs.h
23840
23841 fi
23842
23843       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PQputCopyData in -lpq" >&5
23844 $as_echo_n "checking for PQputCopyData in -lpq... " >&6; }
23845 if test "${ac_cv_lib_pq_PQputCopyData+set}" = set; then :
23846   $as_echo_n "(cached) " >&6
23847 else
23848   ac_check_lib_save_LIBS=$LIBS
23849 LIBS="-lpq  $LIBS"
23850 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23851 /* end confdefs.h.  */
23852
23853 /* Override any GCC internal prototype to avoid an error.
23854    Use char because int might match the return type of a GCC
23855    builtin and then its argument prototype would still apply.  */
23856 #ifdef __cplusplus
23857 extern "C"
23858 #endif
23859 char PQputCopyData ();
23860 int
23861 main ()
23862 {
23863 return PQputCopyData ();
23864   ;
23865   return 0;
23866 }
23867 _ACEOF
23868 if ac_fn_c_try_link "$LINENO"; then :
23869   ac_cv_lib_pq_PQputCopyData=yes
23870 else
23871   ac_cv_lib_pq_PQputCopyData=no
23872 fi
23873 rm -f core conftest.err conftest.$ac_objext \
23874     conftest$ac_exeext conftest.$ac_ext
23875 LIBS=$ac_check_lib_save_LIBS
23876 fi
23877 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pq_PQputCopyData" >&5
23878 $as_echo "$ac_cv_lib_pq_PQputCopyData" >&6; }
23879 if test "x$ac_cv_lib_pq_PQputCopyData" = x""yes; then :
23880   $as_echo "#define HAVE_PQ_COPY 1" >>confdefs.h
23881
23882 fi
23883
23884       test "x$ac_cv_lib_pq_PQputCopyData" != "xyes"
23885       pkg=$?
23886    fi
23887
23888    if test $DB_PROG = mysql; then
23889       A=`test -f $SQL_LIB && nm $DB_PROG_LIB | grep pthread_mutex_lock`
23890       pkg=$?
23891    fi
23892
23893    if test $DB_PROG = sqlite3; then
23894       A=`test -f $SQL_LIB && nm $DB_PROG_LIB | grep pthread_mutex_lock`
23895       pkg=$?
23896       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sqlite3_threadsafe in -lsqlite3" >&5
23897 $as_echo_n "checking for sqlite3_threadsafe in -lsqlite3... " >&6; }
23898 if test "${ac_cv_lib_sqlite3_sqlite3_threadsafe+set}" = set; then :
23899   $as_echo_n "(cached) " >&6
23900 else
23901   ac_check_lib_save_LIBS=$LIBS
23902 LIBS="-lsqlite3  $LIBS"
23903 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23904 /* end confdefs.h.  */
23905
23906 /* Override any GCC internal prototype to avoid an error.
23907    Use char because int might match the return type of a GCC
23908    builtin and then its argument prototype would still apply.  */
23909 #ifdef __cplusplus
23910 extern "C"
23911 #endif
23912 char sqlite3_threadsafe ();
23913 int
23914 main ()
23915 {
23916 return sqlite3_threadsafe ();
23917   ;
23918   return 0;
23919 }
23920 _ACEOF
23921 if ac_fn_c_try_link "$LINENO"; then :
23922   ac_cv_lib_sqlite3_sqlite3_threadsafe=yes
23923 else
23924   ac_cv_lib_sqlite3_sqlite3_threadsafe=no
23925 fi
23926 rm -f core conftest.err conftest.$ac_objext \
23927     conftest$ac_exeext conftest.$ac_ext
23928 LIBS=$ac_check_lib_save_LIBS
23929 fi
23930 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_sqlite3_sqlite3_threadsafe" >&5
23931 $as_echo "$ac_cv_lib_sqlite3_sqlite3_threadsafe" >&6; }
23932 if test "x$ac_cv_lib_sqlite3_sqlite3_threadsafe" = x""yes; then :
23933
23934 $as_echo "#define HAVE_SQLITE3_THREADSAFE 1" >>confdefs.h
23935
23936 fi
23937
23938    fi
23939
23940    if test $pkg = 0; then
23941       # Check whether --enable-batch-insert was given.
23942 if test "${enable_batch_insert+set}" = set; then :
23943   enableval=$enable_batch_insert;
23944              if test x$enableval = xno; then
23945                 support_batch_insert=no
23946              else
23947                 support_batch_insert=yes
23948              fi
23949
23950
23951 fi
23952
23953    fi
23954 else
23955       uncomment_dbi="#"
23956 fi
23957
23958 LIBS="${saved_LIBS}"
23959
23960
23961
23962 if test x$DB_TYPE = xingres; then
23963    support_batch_insert=yes
23964 fi
23965
23966 if test $support_batch_insert = yes ; then
23967
23968 $as_echo "#define HAVE_BATCH_FILE_INSERT 1" >>confdefs.h
23969
23970 fi
23971
23972 $as_echo "#define PROTOTYPES 1" >>confdefs.h
23973
23974
23975 if test -z "$CFLAGS" -o "$CFLAGS" = "-g -O2"; then
23976    if test -z "$CCOPTS"; then
23977       CCOPTS='-g -O2 -Wall'
23978    fi
23979    CFLAGS="$CCOPTS"
23980 fi
23981
23982
23983
23984 largefile_support="no"
23985
23986    # Check whether --enable-largefile was given.
23987 if test "${enable_largefile+set}" = set; then :
23988   enableval=$enable_largefile;
23989 fi
23990
23991    if test "$enable_largefile" != no; then
23992      if test -n "$ac_tool_prefix"; then
23993   # Extract the first word of "${ac_tool_prefix}getconf", so it can be a program name with args.
23994 set dummy ${ac_tool_prefix}getconf; ac_word=$2
23995 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
23996 $as_echo_n "checking for $ac_word... " >&6; }
23997 if test "${ac_cv_prog_GETCONF+set}" = set; then :
23998   $as_echo_n "(cached) " >&6
23999 else
24000   if test -n "$GETCONF"; then
24001   ac_cv_prog_GETCONF="$GETCONF" # Let the user override the test.
24002 else
24003 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24004 for as_dir in $PATH
24005 do
24006   IFS=$as_save_IFS
24007   test -z "$as_dir" && as_dir=.
24008     for ac_exec_ext in '' $ac_executable_extensions; do
24009   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
24010     ac_cv_prog_GETCONF="${ac_tool_prefix}getconf"
24011     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
24012     break 2
24013   fi
24014 done
24015   done
24016 IFS=$as_save_IFS
24017
24018 fi
24019 fi
24020 GETCONF=$ac_cv_prog_GETCONF
24021 if test -n "$GETCONF"; then
24022   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GETCONF" >&5
24023 $as_echo "$GETCONF" >&6; }
24024 else
24025   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24026 $as_echo "no" >&6; }
24027 fi
24028
24029
24030 fi
24031 if test -z "$ac_cv_prog_GETCONF"; then
24032   ac_ct_GETCONF=$GETCONF
24033   # Extract the first word of "getconf", so it can be a program name with args.
24034 set dummy getconf; ac_word=$2
24035 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
24036 $as_echo_n "checking for $ac_word... " >&6; }
24037 if test "${ac_cv_prog_ac_ct_GETCONF+set}" = set; then :
24038   $as_echo_n "(cached) " >&6
24039 else
24040   if test -n "$ac_ct_GETCONF"; then
24041   ac_cv_prog_ac_ct_GETCONF="$ac_ct_GETCONF" # Let the user override the test.
24042 else
24043 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24044 for as_dir in $PATH
24045 do
24046   IFS=$as_save_IFS
24047   test -z "$as_dir" && as_dir=.
24048     for ac_exec_ext in '' $ac_executable_extensions; do
24049   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
24050     ac_cv_prog_ac_ct_GETCONF="getconf"
24051     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
24052     break 2
24053   fi
24054 done
24055   done
24056 IFS=$as_save_IFS
24057
24058 fi
24059 fi
24060 ac_ct_GETCONF=$ac_cv_prog_ac_ct_GETCONF
24061 if test -n "$ac_ct_GETCONF"; then
24062   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GETCONF" >&5
24063 $as_echo "$ac_ct_GETCONF" >&6; }
24064 else
24065   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24066 $as_echo "no" >&6; }
24067 fi
24068
24069   if test "x$ac_ct_GETCONF" = x; then
24070     GETCONF=""
24071   else
24072     case $cross_compiling:$ac_tool_warned in
24073 yes:)
24074 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
24075 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
24076 ac_tool_warned=yes ;;
24077 esac
24078     GETCONF=$ac_ct_GETCONF
24079   fi
24080 else
24081   GETCONF="$ac_cv_prog_GETCONF"
24082 fi
24083
24084      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFLAGS value to request large file support" >&5
24085 $as_echo_n "checking for CFLAGS value to request large file support... " >&6; }
24086 if test "${ac_cv_sys_largefile_CFLAGS+set}" = set; then :
24087   $as_echo_n "(cached) " >&6
24088 else
24089   ac_cv_sys_largefile_CFLAGS=`($GETCONF LFS_CFLAGS) 2>/dev/null` || {
24090         ac_cv_sys_largefile_CFLAGS=no
24091         case "$host_os" in
24092            # IRIX 6.2 and later require cc -n32.
24093            irix6.[2-9]* | irix6.1[0-9]* | irix[7-9].* | irix[1-9][0-9]*)
24094              if test "$GCC" != yes; then
24095                ac_cv_sys_largefile_CFLAGS=-n32
24096              fi
24097              ac_save_CC="$CC"
24098              CC="$CC $ac_cv_sys_largefile_CFLAGS"
24099              cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24100 /* end confdefs.h.  */
24101
24102 int
24103 main ()
24104 {
24105
24106   ;
24107   return 0;
24108 }
24109 _ACEOF
24110 if ac_fn_c_try_link "$LINENO"; then :
24111
24112 else
24113   ac_cv_sys_largefile_CFLAGS=no
24114 fi
24115 rm -f core conftest.err conftest.$ac_objext \
24116     conftest$ac_exeext conftest.$ac_ext
24117              CC="$ac_save_CC"
24118            esac
24119       }
24120 fi
24121 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CFLAGS" >&5
24122 $as_echo "$ac_cv_sys_largefile_CFLAGS" >&6; }
24123      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LDFLAGS value to request large file support" >&5
24124 $as_echo_n "checking for LDFLAGS value to request large file support... " >&6; }
24125 if test "${ac_cv_sys_largefile_LDFLAGS+set}" = set; then :
24126   $as_echo_n "(cached) " >&6
24127 else
24128   ac_cv_sys_largefile_LDFLAGS=`($GETCONF LFS_LDFLAGS) 2>/dev/null` || {
24129         ac_cv_sys_largefile_LDFLAGS=no
24130
24131       }
24132 fi
24133 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_LDFLAGS" >&5
24134 $as_echo "$ac_cv_sys_largefile_LDFLAGS" >&6; }
24135      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LIBS value to request large file support" >&5
24136 $as_echo_n "checking for LIBS value to request large file support... " >&6; }
24137 if test "${ac_cv_sys_largefile_LIBS+set}" = set; then :
24138   $as_echo_n "(cached) " >&6
24139 else
24140   ac_cv_sys_largefile_LIBS=`($GETCONF LFS_LIBS) 2>/dev/null` || {
24141         ac_cv_sys_largefile_LIBS=no
24142
24143       }
24144 fi
24145 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_LIBS" >&5
24146 $as_echo "$ac_cv_sys_largefile_LIBS" >&6; }
24147
24148      for ac_flag in $ac_cv_sys_largefile_CFLAGS no; do
24149        case "$ac_flag" in
24150        no) ;;
24151        -D_FILE_OFFSET_BITS=*) ;;
24152        -D_LARGEFILE_SOURCE | -D_LARGEFILE_SOURCE=*) ;;
24153        -D_LARGE_FILES | -D_LARGE_FILES=*) ;;
24154        -D?* | -I?*)
24155          case "$ac_flag" in
24156    no) ;;
24157    ?*)
24158      case "$CPPFLAGS" in
24159      '') CPPFLAGS="$ac_flag" ;;
24160      *) CPPFLAGS=$CPPFLAGS' '"$ac_flag" ;;
24161      esac ;;
24162    esac ;;
24163        *)
24164          case "$ac_flag" in
24165    no) ;;
24166    ?*)
24167      case "$CFLAGS" in
24168      '') CFLAGS="$ac_flag" ;;
24169      *) CFLAGS=$CFLAGS' '"$ac_flag" ;;
24170      esac ;;
24171    esac ;;
24172        esac
24173      done
24174      case "$ac_cv_sys_largefile_LDFLAGS" in
24175    no) ;;
24176    ?*)
24177      case "$LDFLAGS" in
24178      '') LDFLAGS="$ac_cv_sys_largefile_LDFLAGS" ;;
24179      *) LDFLAGS=$LDFLAGS' '"$ac_cv_sys_largefile_LDFLAGS" ;;
24180      esac ;;
24181    esac
24182      case "$ac_cv_sys_largefile_LIBS" in
24183    no) ;;
24184    ?*)
24185      case "$LIBS" in
24186      '') LIBS="$ac_cv_sys_largefile_LIBS" ;;
24187      *) LIBS=$LIBS' '"$ac_cv_sys_largefile_LIBS" ;;
24188      esac ;;
24189    esac
24190      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS" >&5
24191 $as_echo_n "checking for _FILE_OFFSET_BITS... " >&6; }
24192 if test "${ac_cv_sys_file_offset_bits+set}" = set; then :
24193   $as_echo_n "(cached) " >&6
24194 else
24195   ac_cv_sys_file_offset_bits=no
24196       ac_cv_sys_file_offset_bits=64
24197       for ac_flag in $ac_cv_sys_largefile_CFLAGS no; do
24198         case "$ac_flag" in
24199         -D_FILE_OFFSET_BITS)
24200           ac_cv_sys_file_offset_bits=1 ;;
24201         -D_FILE_OFFSET_BITS=*)
24202           ac_cv_sys_file_offset_bits=`expr " $ac_flag" : '[^=]*=\(.*\)'` ;;
24203         esac
24204       done
24205
24206 fi
24207 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
24208 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
24209    if test "$ac_cv_sys_file_offset_bits" != no; then
24210
24211 cat >>confdefs.h <<_ACEOF
24212 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
24213 _ACEOF
24214
24215    fi
24216      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGEFILE_SOURCE" >&5
24217 $as_echo_n "checking for _LARGEFILE_SOURCE... " >&6; }
24218 if test "${ac_cv_sys_largefile_source+set}" = set; then :
24219   $as_echo_n "(cached) " >&6
24220 else
24221   ac_cv_sys_largefile_source=no
24222       ac_cv_sys_largefile_source=1
24223       for ac_flag in $ac_cv_sys_largefile_CFLAGS no; do
24224         case "$ac_flag" in
24225         -D_LARGEFILE_SOURCE)
24226           ac_cv_sys_largefile_source=1 ;;
24227         -D_LARGEFILE_SOURCE=*)
24228           ac_cv_sys_largefile_source=`expr " $ac_flag" : '[^=]*=\(.*\)'` ;;
24229         esac
24230       done
24231
24232 fi
24233 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_source" >&5
24234 $as_echo "$ac_cv_sys_largefile_source" >&6; }
24235    if test "$ac_cv_sys_largefile_source" != no; then
24236
24237 cat >>confdefs.h <<_ACEOF
24238 #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
24239 _ACEOF
24240
24241    fi
24242      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES" >&5
24243 $as_echo_n "checking for _LARGE_FILES... " >&6; }
24244 if test "${ac_cv_sys_large_files+set}" = set; then :
24245   $as_echo_n "(cached) " >&6
24246 else
24247   ac_cv_sys_large_files=no
24248       ac_cv_sys_large_files=1
24249       for ac_flag in $ac_cv_sys_largefile_CFLAGS no; do
24250         case "$ac_flag" in
24251         -D_LARGE_FILES)
24252           ac_cv_sys_large_files=1 ;;
24253         -D_LARGE_FILES=*)
24254           ac_cv_sys_large_files=`expr " $ac_flag" : '[^=]*=\(.*\)'` ;;
24255         esac
24256       done
24257
24258 fi
24259 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
24260 $as_echo "$ac_cv_sys_large_files" >&6; }
24261    if test "$ac_cv_sys_large_files" != no; then
24262
24263 cat >>confdefs.h <<_ACEOF
24264 #define _LARGE_FILES $ac_cv_sys_large_files
24265 _ACEOF
24266
24267    fi
24268    fi
24269
24270
24271 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for X" >&5
24272 $as_echo_n "checking for X... " >&6; }
24273
24274
24275 # Check whether --with-x was given.
24276 if test "${with_x+set}" = set; then :
24277   withval=$with_x;
24278 fi
24279
24280 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
24281 if test "x$with_x" = xno; then
24282   # The user explicitly disabled X.
24283   have_x=disabled
24284 else
24285   case $x_includes,$x_libraries in #(
24286     *\'*) as_fn_error "cannot use X directory names containing '" "$LINENO" 5;; #(
24287     *,NONE | NONE,*) if test "${ac_cv_have_x+set}" = set; then :
24288   $as_echo_n "(cached) " >&6
24289 else
24290   # One or both of the vars are not set, and there is no cached value.
24291 ac_x_includes=no ac_x_libraries=no
24292 rm -f -r conftest.dir
24293 if mkdir conftest.dir; then
24294   cd conftest.dir
24295   cat >Imakefile <<'_ACEOF'
24296 incroot:
24297         @echo incroot='${INCROOT}'
24298 usrlibdir:
24299         @echo usrlibdir='${USRLIBDIR}'
24300 libdir:
24301         @echo libdir='${LIBDIR}'
24302 _ACEOF
24303   if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
24304     # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
24305     for ac_var in incroot usrlibdir libdir; do
24306       eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
24307     done
24308     # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
24309     for ac_extension in a so sl dylib la dll; do
24310       if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
24311          test -f "$ac_im_libdir/libX11.$ac_extension"; then
24312         ac_im_usrlibdir=$ac_im_libdir; break
24313       fi
24314     done
24315     # Screen out bogus values from the imake configuration.  They are
24316     # bogus both because they are the default anyway, and because
24317     # using them would break gcc on systems where it needs fixed includes.
24318     case $ac_im_incroot in
24319         /usr/include) ac_x_includes= ;;
24320         *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
24321     esac
24322     case $ac_im_usrlibdir in
24323         /usr/lib | /usr/lib64 | /lib | /lib64) ;;
24324         *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
24325     esac
24326   fi
24327   cd ..
24328   rm -f -r conftest.dir
24329 fi
24330
24331 # Standard set of common directories for X headers.
24332 # Check X11 before X11Rn because it is often a symlink to the current release.
24333 ac_x_header_dirs='
24334 /usr/X11/include
24335 /usr/X11R7/include
24336 /usr/X11R6/include
24337 /usr/X11R5/include
24338 /usr/X11R4/include
24339
24340 /usr/include/X11
24341 /usr/include/X11R7
24342 /usr/include/X11R6
24343 /usr/include/X11R5
24344 /usr/include/X11R4
24345
24346 /usr/local/X11/include
24347 /usr/local/X11R7/include
24348 /usr/local/X11R6/include
24349 /usr/local/X11R5/include
24350 /usr/local/X11R4/include
24351
24352 /usr/local/include/X11
24353 /usr/local/include/X11R7
24354 /usr/local/include/X11R6
24355 /usr/local/include/X11R5
24356 /usr/local/include/X11R4
24357
24358 /usr/X386/include
24359 /usr/x386/include
24360 /usr/XFree86/include/X11
24361
24362 /usr/include
24363 /usr/local/include
24364 /usr/unsupported/include
24365 /usr/athena/include
24366 /usr/local/x11r5/include
24367 /usr/lpp/Xamples/include
24368
24369 /usr/openwin/include
24370 /usr/openwin/share/include'
24371
24372 if test "$ac_x_includes" = no; then
24373   # Guess where to find include files, by looking for Xlib.h.
24374   # First, try using that file with no special directory specified.
24375   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24376 /* end confdefs.h.  */
24377 #include <X11/Xlib.h>
24378 _ACEOF
24379 if ac_fn_c_try_cpp "$LINENO"; then :
24380   # We can compile using X headers with no special include directory.
24381 ac_x_includes=
24382 else
24383   for ac_dir in $ac_x_header_dirs; do
24384   if test -r "$ac_dir/X11/Xlib.h"; then
24385     ac_x_includes=$ac_dir
24386     break
24387   fi
24388 done
24389 fi
24390 rm -f conftest.err conftest.$ac_ext
24391 fi # $ac_x_includes = no
24392
24393 if test "$ac_x_libraries" = no; then
24394   # Check for the libraries.
24395   # See if we find them without any special options.
24396   # Don't add to $LIBS permanently.
24397   ac_save_LIBS=$LIBS
24398   LIBS="-lX11 $LIBS"
24399   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24400 /* end confdefs.h.  */
24401 #include <X11/Xlib.h>
24402 int
24403 main ()
24404 {
24405 XrmInitialize ()
24406   ;
24407   return 0;
24408 }
24409 _ACEOF
24410 if ac_fn_c_try_link "$LINENO"; then :
24411   LIBS=$ac_save_LIBS
24412 # We can link X programs with no special library path.
24413 ac_x_libraries=
24414 else
24415   LIBS=$ac_save_LIBS
24416 for ac_dir in `$as_echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
24417 do
24418   # Don't even attempt the hair of trying to link an X program!
24419   for ac_extension in a so sl dylib la dll; do
24420     if test -r "$ac_dir/libX11.$ac_extension"; then
24421       ac_x_libraries=$ac_dir
24422       break 2
24423     fi
24424   done
24425 done
24426 fi
24427 rm -f core conftest.err conftest.$ac_objext \
24428     conftest$ac_exeext conftest.$ac_ext
24429 fi # $ac_x_libraries = no
24430
24431 case $ac_x_includes,$ac_x_libraries in #(
24432   no,* | *,no | *\'*)
24433     # Didn't find X, or a directory has "'" in its name.
24434     ac_cv_have_x="have_x=no";; #(
24435   *)
24436     # Record where we found X for the cache.
24437     ac_cv_have_x="have_x=yes\
24438         ac_x_includes='$ac_x_includes'\
24439         ac_x_libraries='$ac_x_libraries'"
24440 esac
24441 fi
24442 ;; #(
24443     *) have_x=yes;;
24444   esac
24445   eval "$ac_cv_have_x"
24446 fi # $with_x != no
24447
24448 if test "$have_x" != yes; then
24449   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_x" >&5
24450 $as_echo "$have_x" >&6; }
24451   no_x=yes
24452 else
24453   # If each of the values was on the command line, it overrides each guess.
24454   test "x$x_includes" = xNONE && x_includes=$ac_x_includes
24455   test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
24456   # Update the cache value to reflect the command line values.
24457   ac_cv_have_x="have_x=yes\
24458         ac_x_includes='$x_includes'\
24459         ac_x_libraries='$x_libraries'"
24460   { $as_echo "$as_me:${as_lineno-$LINENO}: result: libraries $x_libraries, headers $x_includes" >&5
24461 $as_echo "libraries $x_libraries, headers $x_includes" >&6; }
24462 fi
24463
24464 if test "$no_x" = yes; then
24465   # Not all programs may use this symbol, but it does not hurt to define it.
24466
24467 $as_echo "#define X_DISPLAY_MISSING 1" >>confdefs.h
24468
24469   X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
24470 else
24471   if test -n "$x_includes"; then
24472     X_CFLAGS="$X_CFLAGS -I$x_includes"
24473   fi
24474
24475   # It would also be nice to do this for all -L options, not just this one.
24476   if test -n "$x_libraries"; then
24477     X_LIBS="$X_LIBS -L$x_libraries"
24478     # For Solaris; some versions of Sun CC require a space after -R and
24479     # others require no space.  Words are not sufficient . . . .
24480     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -R must be followed by a space" >&5
24481 $as_echo_n "checking whether -R must be followed by a space... " >&6; }
24482     ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
24483     ac_xsave_c_werror_flag=$ac_c_werror_flag
24484     ac_c_werror_flag=yes
24485     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24486 /* end confdefs.h.  */
24487
24488 int
24489 main ()
24490 {
24491
24492   ;
24493   return 0;
24494 }
24495 _ACEOF
24496 if ac_fn_c_try_link "$LINENO"; then :
24497   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24498 $as_echo "no" >&6; }
24499        X_LIBS="$X_LIBS -R$x_libraries"
24500 else
24501   LIBS="$ac_xsave_LIBS -R $x_libraries"
24502        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24503 /* end confdefs.h.  */
24504
24505 int
24506 main ()
24507 {
24508
24509   ;
24510   return 0;
24511 }
24512 _ACEOF
24513 if ac_fn_c_try_link "$LINENO"; then :
24514   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
24515 $as_echo "yes" >&6; }
24516           X_LIBS="$X_LIBS -R $x_libraries"
24517 else
24518   { $as_echo "$as_me:${as_lineno-$LINENO}: result: neither works" >&5
24519 $as_echo "neither works" >&6; }
24520 fi
24521 rm -f core conftest.err conftest.$ac_objext \
24522     conftest$ac_exeext conftest.$ac_ext
24523 fi
24524 rm -f core conftest.err conftest.$ac_objext \
24525     conftest$ac_exeext conftest.$ac_ext
24526     ac_c_werror_flag=$ac_xsave_c_werror_flag
24527     LIBS=$ac_xsave_LIBS
24528   fi
24529
24530   # Check for system-dependent libraries X programs must link with.
24531   # Do this before checking for the system-independent R6 libraries
24532   # (-lICE), since we may need -lsocket or whatever for X linking.
24533
24534   if test "$ISC" = yes; then
24535     X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
24536   else
24537     # Martyn Johnson says this is needed for Ultrix, if the X
24538     # libraries were built with DECnet support.  And Karl Berry says
24539     # the Alpha needs dnet_stub (dnet does not exist).
24540     ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
24541     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24542 /* end confdefs.h.  */
24543
24544 /* Override any GCC internal prototype to avoid an error.
24545    Use char because int might match the return type of a GCC
24546    builtin and then its argument prototype would still apply.  */
24547 #ifdef __cplusplus
24548 extern "C"
24549 #endif
24550 char XOpenDisplay ();
24551 int
24552 main ()
24553 {
24554 return XOpenDisplay ();
24555   ;
24556   return 0;
24557 }
24558 _ACEOF
24559 if ac_fn_c_try_link "$LINENO"; then :
24560
24561 else
24562   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet" >&5
24563 $as_echo_n "checking for dnet_ntoa in -ldnet... " >&6; }
24564 if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then :
24565   $as_echo_n "(cached) " >&6
24566 else
24567   ac_check_lib_save_LIBS=$LIBS
24568 LIBS="-ldnet  $LIBS"
24569 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24570 /* end confdefs.h.  */
24571
24572 /* Override any GCC internal prototype to avoid an error.
24573    Use char because int might match the return type of a GCC
24574    builtin and then its argument prototype would still apply.  */
24575 #ifdef __cplusplus
24576 extern "C"
24577 #endif
24578 char dnet_ntoa ();
24579 int
24580 main ()
24581 {
24582 return dnet_ntoa ();
24583   ;
24584   return 0;
24585 }
24586 _ACEOF
24587 if ac_fn_c_try_link "$LINENO"; then :
24588   ac_cv_lib_dnet_dnet_ntoa=yes
24589 else
24590   ac_cv_lib_dnet_dnet_ntoa=no
24591 fi
24592 rm -f core conftest.err conftest.$ac_objext \
24593     conftest$ac_exeext conftest.$ac_ext
24594 LIBS=$ac_check_lib_save_LIBS
24595 fi
24596 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
24597 $as_echo "$ac_cv_lib_dnet_dnet_ntoa" >&6; }
24598 if test "x$ac_cv_lib_dnet_dnet_ntoa" = x""yes; then :
24599   X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
24600 fi
24601
24602     if test $ac_cv_lib_dnet_dnet_ntoa = no; then
24603       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet_stub" >&5
24604 $as_echo_n "checking for dnet_ntoa in -ldnet_stub... " >&6; }
24605 if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then :
24606   $as_echo_n "(cached) " >&6
24607 else
24608   ac_check_lib_save_LIBS=$LIBS
24609 LIBS="-ldnet_stub  $LIBS"
24610 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24611 /* end confdefs.h.  */
24612
24613 /* Override any GCC internal prototype to avoid an error.
24614    Use char because int might match the return type of a GCC
24615    builtin and then its argument prototype would still apply.  */
24616 #ifdef __cplusplus
24617 extern "C"
24618 #endif
24619 char dnet_ntoa ();
24620 int
24621 main ()
24622 {
24623 return dnet_ntoa ();
24624   ;
24625   return 0;
24626 }
24627 _ACEOF
24628 if ac_fn_c_try_link "$LINENO"; then :
24629   ac_cv_lib_dnet_stub_dnet_ntoa=yes
24630 else
24631   ac_cv_lib_dnet_stub_dnet_ntoa=no
24632 fi
24633 rm -f core conftest.err conftest.$ac_objext \
24634     conftest$ac_exeext conftest.$ac_ext
24635 LIBS=$ac_check_lib_save_LIBS
24636 fi
24637 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
24638 $as_echo "$ac_cv_lib_dnet_stub_dnet_ntoa" >&6; }
24639 if test "x$ac_cv_lib_dnet_stub_dnet_ntoa" = x""yes; then :
24640   X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
24641 fi
24642
24643     fi
24644 fi
24645 rm -f core conftest.err conftest.$ac_objext \
24646     conftest$ac_exeext conftest.$ac_ext
24647     LIBS="$ac_xsave_LIBS"
24648
24649     # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
24650     # to get the SysV transport functions.
24651     # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
24652     # needs -lnsl.
24653     # The nsl library prevents programs from opening the X display
24654     # on Irix 5.2, according to T.E. Dickey.
24655     # The functions gethostbyname, getservbyname, and inet_addr are
24656     # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
24657     ac_fn_c_check_func "$LINENO" "gethostbyname" "ac_cv_func_gethostbyname"
24658 if test "x$ac_cv_func_gethostbyname" = x""yes; then :
24659
24660 fi
24661
24662     if test $ac_cv_func_gethostbyname = no; then
24663       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lnsl" >&5
24664 $as_echo_n "checking for gethostbyname in -lnsl... " >&6; }
24665 if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then :
24666   $as_echo_n "(cached) " >&6
24667 else
24668   ac_check_lib_save_LIBS=$LIBS
24669 LIBS="-lnsl  $LIBS"
24670 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24671 /* end confdefs.h.  */
24672
24673 /* Override any GCC internal prototype to avoid an error.
24674    Use char because int might match the return type of a GCC
24675    builtin and then its argument prototype would still apply.  */
24676 #ifdef __cplusplus
24677 extern "C"
24678 #endif
24679 char gethostbyname ();
24680 int
24681 main ()
24682 {
24683 return gethostbyname ();
24684   ;
24685   return 0;
24686 }
24687 _ACEOF
24688 if ac_fn_c_try_link "$LINENO"; then :
24689   ac_cv_lib_nsl_gethostbyname=yes
24690 else
24691   ac_cv_lib_nsl_gethostbyname=no
24692 fi
24693 rm -f core conftest.err conftest.$ac_objext \
24694     conftest$ac_exeext conftest.$ac_ext
24695 LIBS=$ac_check_lib_save_LIBS
24696 fi
24697 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_gethostbyname" >&5
24698 $as_echo "$ac_cv_lib_nsl_gethostbyname" >&6; }
24699 if test "x$ac_cv_lib_nsl_gethostbyname" = x""yes; then :
24700   X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
24701 fi
24702
24703       if test $ac_cv_lib_nsl_gethostbyname = no; then
24704         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lbsd" >&5
24705 $as_echo_n "checking for gethostbyname in -lbsd... " >&6; }
24706 if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then :
24707   $as_echo_n "(cached) " >&6
24708 else
24709   ac_check_lib_save_LIBS=$LIBS
24710 LIBS="-lbsd  $LIBS"
24711 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24712 /* end confdefs.h.  */
24713
24714 /* Override any GCC internal prototype to avoid an error.
24715    Use char because int might match the return type of a GCC
24716    builtin and then its argument prototype would still apply.  */
24717 #ifdef __cplusplus
24718 extern "C"
24719 #endif
24720 char gethostbyname ();
24721 int
24722 main ()
24723 {
24724 return gethostbyname ();
24725   ;
24726   return 0;
24727 }
24728 _ACEOF
24729 if ac_fn_c_try_link "$LINENO"; then :
24730   ac_cv_lib_bsd_gethostbyname=yes
24731 else
24732   ac_cv_lib_bsd_gethostbyname=no
24733 fi
24734 rm -f core conftest.err conftest.$ac_objext \
24735     conftest$ac_exeext conftest.$ac_ext
24736 LIBS=$ac_check_lib_save_LIBS
24737 fi
24738 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bsd_gethostbyname" >&5
24739 $as_echo "$ac_cv_lib_bsd_gethostbyname" >&6; }
24740 if test "x$ac_cv_lib_bsd_gethostbyname" = x""yes; then :
24741   X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
24742 fi
24743
24744       fi
24745     fi
24746
24747     # lieder@skyler.mavd.honeywell.com says without -lsocket,
24748     # socket/setsockopt and other routines are undefined under SCO ODT
24749     # 2.0.  But -lsocket is broken on IRIX 5.2 (and is not necessary
24750     # on later versions), says Simon Leinen: it contains gethostby*
24751     # variants that don't use the name server (or something).  -lsocket
24752     # must be given before -lnsl if both are needed.  We assume that
24753     # if connect needs -lnsl, so does gethostbyname.
24754     ac_fn_c_check_func "$LINENO" "connect" "ac_cv_func_connect"
24755 if test "x$ac_cv_func_connect" = x""yes; then :
24756
24757 fi
24758
24759     if test $ac_cv_func_connect = no; then
24760       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for connect in -lsocket" >&5
24761 $as_echo_n "checking for connect in -lsocket... " >&6; }
24762 if test "${ac_cv_lib_socket_connect+set}" = set; then :
24763   $as_echo_n "(cached) " >&6
24764 else
24765   ac_check_lib_save_LIBS=$LIBS
24766 LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
24767 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24768 /* end confdefs.h.  */
24769
24770 /* Override any GCC internal prototype to avoid an error.
24771    Use char because int might match the return type of a GCC
24772    builtin and then its argument prototype would still apply.  */
24773 #ifdef __cplusplus
24774 extern "C"
24775 #endif
24776 char connect ();
24777 int
24778 main ()
24779 {
24780 return connect ();
24781   ;
24782   return 0;
24783 }
24784 _ACEOF
24785 if ac_fn_c_try_link "$LINENO"; then :
24786   ac_cv_lib_socket_connect=yes
24787 else
24788   ac_cv_lib_socket_connect=no
24789 fi
24790 rm -f core conftest.err conftest.$ac_objext \
24791     conftest$ac_exeext conftest.$ac_ext
24792 LIBS=$ac_check_lib_save_LIBS
24793 fi
24794 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_connect" >&5
24795 $as_echo "$ac_cv_lib_socket_connect" >&6; }
24796 if test "x$ac_cv_lib_socket_connect" = x""yes; then :
24797   X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
24798 fi
24799
24800     fi
24801
24802     # Guillermo Gomez says -lposix is necessary on A/UX.
24803     ac_fn_c_check_func "$LINENO" "remove" "ac_cv_func_remove"
24804 if test "x$ac_cv_func_remove" = x""yes; then :
24805
24806 fi
24807
24808     if test $ac_cv_func_remove = no; then
24809       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for remove in -lposix" >&5
24810 $as_echo_n "checking for remove in -lposix... " >&6; }
24811 if test "${ac_cv_lib_posix_remove+set}" = set; then :
24812   $as_echo_n "(cached) " >&6
24813 else
24814   ac_check_lib_save_LIBS=$LIBS
24815 LIBS="-lposix  $LIBS"
24816 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24817 /* end confdefs.h.  */
24818
24819 /* Override any GCC internal prototype to avoid an error.
24820    Use char because int might match the return type of a GCC
24821    builtin and then its argument prototype would still apply.  */
24822 #ifdef __cplusplus
24823 extern "C"
24824 #endif
24825 char remove ();
24826 int
24827 main ()
24828 {
24829 return remove ();
24830   ;
24831   return 0;
24832 }
24833 _ACEOF
24834 if ac_fn_c_try_link "$LINENO"; then :
24835   ac_cv_lib_posix_remove=yes
24836 else
24837   ac_cv_lib_posix_remove=no
24838 fi
24839 rm -f core conftest.err conftest.$ac_objext \
24840     conftest$ac_exeext conftest.$ac_ext
24841 LIBS=$ac_check_lib_save_LIBS
24842 fi
24843 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_posix_remove" >&5
24844 $as_echo "$ac_cv_lib_posix_remove" >&6; }
24845 if test "x$ac_cv_lib_posix_remove" = x""yes; then :
24846   X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
24847 fi
24848
24849     fi
24850
24851     # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
24852     ac_fn_c_check_func "$LINENO" "shmat" "ac_cv_func_shmat"
24853 if test "x$ac_cv_func_shmat" = x""yes; then :
24854
24855 fi
24856
24857     if test $ac_cv_func_shmat = no; then
24858       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shmat in -lipc" >&5
24859 $as_echo_n "checking for shmat in -lipc... " >&6; }
24860 if test "${ac_cv_lib_ipc_shmat+set}" = set; then :
24861   $as_echo_n "(cached) " >&6
24862 else
24863   ac_check_lib_save_LIBS=$LIBS
24864 LIBS="-lipc  $LIBS"
24865 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24866 /* end confdefs.h.  */
24867
24868 /* Override any GCC internal prototype to avoid an error.
24869    Use char because int might match the return type of a GCC
24870    builtin and then its argument prototype would still apply.  */
24871 #ifdef __cplusplus
24872 extern "C"
24873 #endif
24874 char shmat ();
24875 int
24876 main ()
24877 {
24878 return shmat ();
24879   ;
24880   return 0;
24881 }
24882 _ACEOF
24883 if ac_fn_c_try_link "$LINENO"; then :
24884   ac_cv_lib_ipc_shmat=yes
24885 else
24886   ac_cv_lib_ipc_shmat=no
24887 fi
24888 rm -f core conftest.err conftest.$ac_objext \
24889     conftest$ac_exeext conftest.$ac_ext
24890 LIBS=$ac_check_lib_save_LIBS
24891 fi
24892 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ipc_shmat" >&5
24893 $as_echo "$ac_cv_lib_ipc_shmat" >&6; }
24894 if test "x$ac_cv_lib_ipc_shmat" = x""yes; then :
24895   X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
24896 fi
24897
24898     fi
24899   fi
24900
24901   # Check for libraries that X11R6 Xt/Xaw programs need.
24902   ac_save_LDFLAGS=$LDFLAGS
24903   test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
24904   # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
24905   # check for ICE first), but we must link in the order -lSM -lICE or
24906   # we get undefined symbols.  So assume we have SM if we have ICE.
24907   # These have to be linked with before -lX11, unlike the other
24908   # libraries we check for below, so use a different variable.
24909   # John Interrante, Karl Berry
24910   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for IceConnectionNumber in -lICE" >&5
24911 $as_echo_n "checking for IceConnectionNumber in -lICE... " >&6; }
24912 if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then :
24913   $as_echo_n "(cached) " >&6
24914 else
24915   ac_check_lib_save_LIBS=$LIBS
24916 LIBS="-lICE $X_EXTRA_LIBS $LIBS"
24917 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24918 /* end confdefs.h.  */
24919
24920 /* Override any GCC internal prototype to avoid an error.
24921    Use char because int might match the return type of a GCC
24922    builtin and then its argument prototype would still apply.  */
24923 #ifdef __cplusplus
24924 extern "C"
24925 #endif
24926 char IceConnectionNumber ();
24927 int
24928 main ()
24929 {
24930 return IceConnectionNumber ();
24931   ;
24932   return 0;
24933 }
24934 _ACEOF
24935 if ac_fn_c_try_link "$LINENO"; then :
24936   ac_cv_lib_ICE_IceConnectionNumber=yes
24937 else
24938   ac_cv_lib_ICE_IceConnectionNumber=no
24939 fi
24940 rm -f core conftest.err conftest.$ac_objext \
24941     conftest$ac_exeext conftest.$ac_ext
24942 LIBS=$ac_check_lib_save_LIBS
24943 fi
24944 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
24945 $as_echo "$ac_cv_lib_ICE_IceConnectionNumber" >&6; }
24946 if test "x$ac_cv_lib_ICE_IceConnectionNumber" = x""yes; then :
24947   X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
24948 fi
24949
24950   LDFLAGS=$ac_save_LDFLAGS
24951
24952 fi
24953
24954
24955 for ac_header in \
24956    assert.h \
24957    fcntl.h \
24958    grp.h \
24959    pwd.h \
24960    libc.h \
24961    limits.h \
24962    stdarg.h \
24963    stdlib.h \
24964    stdint.h \
24965    string.h \
24966    strings.h \
24967    termios.h \
24968    termcap.h \
24969    term.h \
24970    unistd.h \
24971    sys/bitypes.h \
24972    sys/byteorder.h \
24973    sys/ioctl.h \
24974    sys/select.h \
24975    sys/socket.h \
24976    sys/sockio.h \
24977    sys/stat.h \
24978    sys/time.h \
24979    sys/types.h \
24980    arpa/nameser.h \
24981    mtio.h \
24982    sys/mtio.h \
24983    sys/tape.h \
24984    regex.h \
24985
24986 do :
24987   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
24988 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
24989 eval as_val=\$$as_ac_Header
24990    if test "x$as_val" = x""yes; then :
24991   cat >>confdefs.h <<_ACEOF
24992 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
24993 _ACEOF
24994
24995 fi
24996
24997 done
24998
24999 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
25000 $as_echo_n "checking for ANSI C header files... " >&6; }
25001 if test "${ac_cv_header_stdc+set}" = set; then :
25002   $as_echo_n "(cached) " >&6
25003 else
25004   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25005 /* end confdefs.h.  */
25006 #include <stdlib.h>
25007 #include <stdarg.h>
25008 #include <string.h>
25009 #include <float.h>
25010
25011 int
25012 main ()
25013 {
25014
25015   ;
25016   return 0;
25017 }
25018 _ACEOF
25019 if ac_fn_c_try_compile "$LINENO"; then :
25020   ac_cv_header_stdc=yes
25021 else
25022   ac_cv_header_stdc=no
25023 fi
25024 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25025
25026 if test $ac_cv_header_stdc = yes; then
25027   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
25028   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25029 /* end confdefs.h.  */
25030 #include <string.h>
25031
25032 _ACEOF
25033 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
25034   $EGREP "memchr" >/dev/null 2>&1; then :
25035
25036 else
25037   ac_cv_header_stdc=no
25038 fi
25039 rm -f conftest*
25040
25041 fi
25042
25043 if test $ac_cv_header_stdc = yes; then
25044   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
25045   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25046 /* end confdefs.h.  */
25047 #include <stdlib.h>
25048
25049 _ACEOF
25050 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
25051   $EGREP "free" >/dev/null 2>&1; then :
25052
25053 else
25054   ac_cv_header_stdc=no
25055 fi
25056 rm -f conftest*
25057
25058 fi
25059
25060 if test $ac_cv_header_stdc = yes; then
25061   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
25062   if test "$cross_compiling" = yes; then :
25063   :
25064 else
25065   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25066 /* end confdefs.h.  */
25067 #include <ctype.h>
25068 #include <stdlib.h>
25069 #if ((' ' & 0x0FF) == 0x020)
25070 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
25071 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
25072 #else
25073 # define ISLOWER(c) \
25074                    (('a' <= (c) && (c) <= 'i') \
25075                      || ('j' <= (c) && (c) <= 'r') \
25076                      || ('s' <= (c) && (c) <= 'z'))
25077 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
25078 #endif
25079
25080 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
25081 int
25082 main ()
25083 {
25084   int i;
25085   for (i = 0; i < 256; i++)
25086     if (XOR (islower (i), ISLOWER (i))
25087         || toupper (i) != TOUPPER (i))
25088       return 2;
25089   return 0;
25090 }
25091 _ACEOF
25092 if ac_fn_c_try_run "$LINENO"; then :
25093
25094 else
25095   ac_cv_header_stdc=no
25096 fi
25097 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
25098   conftest.$ac_objext conftest.beam conftest.$ac_ext
25099 fi
25100
25101 fi
25102 fi
25103 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
25104 $as_echo "$ac_cv_header_stdc" >&6; }
25105 if test $ac_cv_header_stdc = yes; then
25106
25107 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
25108
25109 fi
25110
25111 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether sys/types.h defines makedev" >&5
25112 $as_echo_n "checking whether sys/types.h defines makedev... " >&6; }
25113 if test "${ac_cv_header_sys_types_h_makedev+set}" = set; then :
25114   $as_echo_n "(cached) " >&6
25115 else
25116   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25117 /* end confdefs.h.  */
25118 #include <sys/types.h>
25119 int
25120 main ()
25121 {
25122 return makedev(0, 0);
25123   ;
25124   return 0;
25125 }
25126 _ACEOF
25127 if ac_fn_c_try_link "$LINENO"; then :
25128   ac_cv_header_sys_types_h_makedev=yes
25129 else
25130   ac_cv_header_sys_types_h_makedev=no
25131 fi
25132 rm -f core conftest.err conftest.$ac_objext \
25133     conftest$ac_exeext conftest.$ac_ext
25134
25135 fi
25136 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_types_h_makedev" >&5
25137 $as_echo "$ac_cv_header_sys_types_h_makedev" >&6; }
25138
25139 if test $ac_cv_header_sys_types_h_makedev = no; then
25140 ac_fn_c_check_header_mongrel "$LINENO" "sys/mkdev.h" "ac_cv_header_sys_mkdev_h" "$ac_includes_default"
25141 if test "x$ac_cv_header_sys_mkdev_h" = x""yes; then :
25142
25143 $as_echo "#define MAJOR_IN_MKDEV 1" >>confdefs.h
25144
25145 fi
25146
25147
25148
25149   if test $ac_cv_header_sys_mkdev_h = no; then
25150     ac_fn_c_check_header_mongrel "$LINENO" "sys/sysmacros.h" "ac_cv_header_sys_sysmacros_h" "$ac_includes_default"
25151 if test "x$ac_cv_header_sys_sysmacros_h" = x""yes; then :
25152
25153 $as_echo "#define MAJOR_IN_SYSMACROS 1" >>confdefs.h
25154
25155 fi
25156
25157
25158   fi
25159 fi
25160
25161 ac_header_dirent=no
25162 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
25163   as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
25164 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_hdr that defines DIR" >&5
25165 $as_echo_n "checking for $ac_hdr that defines DIR... " >&6; }
25166 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then :
25167   $as_echo_n "(cached) " >&6
25168 else
25169   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25170 /* end confdefs.h.  */
25171 #include <sys/types.h>
25172 #include <$ac_hdr>
25173
25174 int
25175 main ()
25176 {
25177 if ((DIR *) 0)
25178 return 0;
25179   ;
25180   return 0;
25181 }
25182 _ACEOF
25183 if ac_fn_c_try_compile "$LINENO"; then :
25184   eval "$as_ac_Header=yes"
25185 else
25186   eval "$as_ac_Header=no"
25187 fi
25188 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25189 fi
25190 eval ac_res=\$$as_ac_Header
25191                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
25192 $as_echo "$ac_res" >&6; }
25193 eval as_val=\$$as_ac_Header
25194    if test "x$as_val" = x""yes; then :
25195   cat >>confdefs.h <<_ACEOF
25196 #define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
25197 _ACEOF
25198
25199 ac_header_dirent=$ac_hdr; break
25200 fi
25201
25202 done
25203 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
25204 if test $ac_header_dirent = dirent.h; then
25205   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
25206 $as_echo_n "checking for library containing opendir... " >&6; }
25207 if test "${ac_cv_search_opendir+set}" = set; then :
25208   $as_echo_n "(cached) " >&6
25209 else
25210   ac_func_search_save_LIBS=$LIBS
25211 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25212 /* end confdefs.h.  */
25213
25214 /* Override any GCC internal prototype to avoid an error.
25215    Use char because int might match the return type of a GCC
25216    builtin and then its argument prototype would still apply.  */
25217 #ifdef __cplusplus
25218 extern "C"
25219 #endif
25220 char opendir ();
25221 int
25222 main ()
25223 {
25224 return opendir ();
25225   ;
25226   return 0;
25227 }
25228 _ACEOF
25229 for ac_lib in '' dir; do
25230   if test -z "$ac_lib"; then
25231     ac_res="none required"
25232   else
25233     ac_res=-l$ac_lib
25234     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
25235   fi
25236   if ac_fn_c_try_link "$LINENO"; then :
25237   ac_cv_search_opendir=$ac_res
25238 fi
25239 rm -f core conftest.err conftest.$ac_objext \
25240     conftest$ac_exeext
25241   if test "${ac_cv_search_opendir+set}" = set; then :
25242   break
25243 fi
25244 done
25245 if test "${ac_cv_search_opendir+set}" = set; then :
25246
25247 else
25248   ac_cv_search_opendir=no
25249 fi
25250 rm conftest.$ac_ext
25251 LIBS=$ac_func_search_save_LIBS
25252 fi
25253 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
25254 $as_echo "$ac_cv_search_opendir" >&6; }
25255 ac_res=$ac_cv_search_opendir
25256 if test "$ac_res" != no; then :
25257   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
25258
25259 fi
25260
25261 else
25262   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
25263 $as_echo_n "checking for library containing opendir... " >&6; }
25264 if test "${ac_cv_search_opendir+set}" = set; then :
25265   $as_echo_n "(cached) " >&6
25266 else
25267   ac_func_search_save_LIBS=$LIBS
25268 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25269 /* end confdefs.h.  */
25270
25271 /* Override any GCC internal prototype to avoid an error.
25272    Use char because int might match the return type of a GCC
25273    builtin and then its argument prototype would still apply.  */
25274 #ifdef __cplusplus
25275 extern "C"
25276 #endif
25277 char opendir ();
25278 int
25279 main ()
25280 {
25281 return opendir ();
25282   ;
25283   return 0;
25284 }
25285 _ACEOF
25286 for ac_lib in '' x; do
25287   if test -z "$ac_lib"; then
25288     ac_res="none required"
25289   else
25290     ac_res=-l$ac_lib
25291     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
25292   fi
25293   if ac_fn_c_try_link "$LINENO"; then :
25294   ac_cv_search_opendir=$ac_res
25295 fi
25296 rm -f core conftest.err conftest.$ac_objext \
25297     conftest$ac_exeext
25298   if test "${ac_cv_search_opendir+set}" = set; then :
25299   break
25300 fi
25301 done
25302 if test "${ac_cv_search_opendir+set}" = set; then :
25303
25304 else
25305   ac_cv_search_opendir=no
25306 fi
25307 rm conftest.$ac_ext
25308 LIBS=$ac_func_search_save_LIBS
25309 fi
25310 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
25311 $as_echo "$ac_cv_search_opendir" >&6; }
25312 ac_res=$ac_cv_search_opendir
25313 if test "$ac_res" != no; then :
25314   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
25315
25316 fi
25317
25318 fi
25319
25320 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat file-mode macros are broken" >&5
25321 $as_echo_n "checking whether stat file-mode macros are broken... " >&6; }
25322 if test "${ac_cv_header_stat_broken+set}" = set; then :
25323   $as_echo_n "(cached) " >&6
25324 else
25325   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25326 /* end confdefs.h.  */
25327 #include <sys/types.h>
25328 #include <sys/stat.h>
25329
25330 #if defined S_ISBLK && defined S_IFDIR
25331 extern char c1[S_ISBLK (S_IFDIR) ? -1 : 1];
25332 #endif
25333
25334 #if defined S_ISBLK && defined S_IFCHR
25335 extern char c2[S_ISBLK (S_IFCHR) ? -1 : 1];
25336 #endif
25337
25338 #if defined S_ISLNK && defined S_IFREG
25339 extern char c3[S_ISLNK (S_IFREG) ? -1 : 1];
25340 #endif
25341
25342 #if defined S_ISSOCK && defined S_IFREG
25343 extern char c4[S_ISSOCK (S_IFREG) ? -1 : 1];
25344 #endif
25345
25346 _ACEOF
25347 if ac_fn_c_try_compile "$LINENO"; then :
25348   ac_cv_header_stat_broken=no
25349 else
25350   ac_cv_header_stat_broken=yes
25351 fi
25352 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25353 fi
25354 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stat_broken" >&5
25355 $as_echo "$ac_cv_header_stat_broken" >&6; }
25356 if test $ac_cv_header_stat_broken = yes; then
25357
25358 $as_echo "#define STAT_MACROS_BROKEN 1" >>confdefs.h
25359
25360 fi
25361
25362 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sys/wait.h that is POSIX.1 compatible" >&5
25363 $as_echo_n "checking for sys/wait.h that is POSIX.1 compatible... " >&6; }
25364 if test "${ac_cv_header_sys_wait_h+set}" = set; then :
25365   $as_echo_n "(cached) " >&6
25366 else
25367   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25368 /* end confdefs.h.  */
25369 #include <sys/types.h>
25370 #include <sys/wait.h>
25371 #ifndef WEXITSTATUS
25372 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
25373 #endif
25374 #ifndef WIFEXITED
25375 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
25376 #endif
25377
25378 int
25379 main ()
25380 {
25381   int s;
25382   wait (&s);
25383   s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
25384   ;
25385   return 0;
25386 }
25387 _ACEOF
25388 if ac_fn_c_try_compile "$LINENO"; then :
25389   ac_cv_header_sys_wait_h=yes
25390 else
25391   ac_cv_header_sys_wait_h=no
25392 fi
25393 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25394 fi
25395 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_wait_h" >&5
25396 $as_echo "$ac_cv_header_sys_wait_h" >&6; }
25397 if test $ac_cv_header_sys_wait_h = yes; then
25398
25399 $as_echo "#define HAVE_SYS_WAIT_H 1" >>confdefs.h
25400
25401 fi
25402
25403 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
25404 $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
25405 if test "${ac_cv_header_time+set}" = set; then :
25406   $as_echo_n "(cached) " >&6
25407 else
25408   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25409 /* end confdefs.h.  */
25410 #include <sys/types.h>
25411 #include <sys/time.h>
25412 #include <time.h>
25413
25414 int
25415 main ()
25416 {
25417 if ((struct tm *) 0)
25418 return 0;
25419   ;
25420   return 0;
25421 }
25422 _ACEOF
25423 if ac_fn_c_try_compile "$LINENO"; then :
25424   ac_cv_header_time=yes
25425 else
25426   ac_cv_header_time=no
25427 fi
25428 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25429 fi
25430 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
25431 $as_echo "$ac_cv_header_time" >&6; }
25432 if test $ac_cv_header_time = yes; then
25433
25434 $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
25435
25436 fi
25437
25438 ac_fn_c_check_member "$LINENO" "struct stat" "st_blksize" "ac_cv_member_struct_stat_st_blksize" "$ac_includes_default"
25439 if test "x$ac_cv_member_struct_stat_st_blksize" = x""yes; then :
25440
25441 cat >>confdefs.h <<_ACEOF
25442 #define HAVE_STRUCT_STAT_ST_BLKSIZE 1
25443 _ACEOF
25444
25445
25446 $as_echo "#define HAVE_ST_BLKSIZE 1" >>confdefs.h
25447
25448 fi
25449
25450
25451 ac_fn_c_check_member "$LINENO" "struct stat" "st_blocks" "ac_cv_member_struct_stat_st_blocks" "$ac_includes_default"
25452 if test "x$ac_cv_member_struct_stat_st_blocks" = x""yes; then :
25453
25454 cat >>confdefs.h <<_ACEOF
25455 #define HAVE_STRUCT_STAT_ST_BLOCKS 1
25456 _ACEOF
25457
25458
25459 $as_echo "#define HAVE_ST_BLOCKS 1" >>confdefs.h
25460
25461 else
25462   case " $LIBOBJS " in
25463   *" fileblocks.$ac_objext "* ) ;;
25464   *) LIBOBJS="$LIBOBJS fileblocks.$ac_objext"
25465  ;;
25466 esac
25467
25468 fi
25469
25470
25471 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct tm is in sys/time.h or time.h" >&5
25472 $as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
25473 if test "${ac_cv_struct_tm+set}" = set; then :
25474   $as_echo_n "(cached) " >&6
25475 else
25476   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25477 /* end confdefs.h.  */
25478 #include <sys/types.h>
25479 #include <time.h>
25480
25481 int
25482 main ()
25483 {
25484 struct tm tm;
25485                                      int *p = &tm.tm_sec;
25486                                      return !p;
25487   ;
25488   return 0;
25489 }
25490 _ACEOF
25491 if ac_fn_c_try_compile "$LINENO"; then :
25492   ac_cv_struct_tm=time.h
25493 else
25494   ac_cv_struct_tm=sys/time.h
25495 fi
25496 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25497 fi
25498 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm" >&5
25499 $as_echo "$ac_cv_struct_tm" >&6; }
25500 if test $ac_cv_struct_tm = sys/time.h; then
25501
25502 $as_echo "#define TM_IN_SYS_TIME 1" >>confdefs.h
25503
25504 fi
25505
25506 ac_fn_c_check_member "$LINENO" "struct tm" "tm_zone" "ac_cv_member_struct_tm_tm_zone" "#include <sys/types.h>
25507 #include <$ac_cv_struct_tm>
25508
25509 "
25510 if test "x$ac_cv_member_struct_tm_tm_zone" = x""yes; then :
25511
25512 cat >>confdefs.h <<_ACEOF
25513 #define HAVE_STRUCT_TM_TM_ZONE 1
25514 _ACEOF
25515
25516
25517 fi
25518
25519 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
25520
25521 $as_echo "#define HAVE_TM_ZONE 1" >>confdefs.h
25522
25523 else
25524   ac_fn_c_check_decl "$LINENO" "tzname" "ac_cv_have_decl_tzname" "#include <time.h>
25525 "
25526 if test "x$ac_cv_have_decl_tzname" = x""yes; then :
25527   ac_have_decl=1
25528 else
25529   ac_have_decl=0
25530 fi
25531
25532 cat >>confdefs.h <<_ACEOF
25533 #define HAVE_DECL_TZNAME $ac_have_decl
25534 _ACEOF
25535
25536   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tzname" >&5
25537 $as_echo_n "checking for tzname... " >&6; }
25538 if test "${ac_cv_var_tzname+set}" = set; then :
25539   $as_echo_n "(cached) " >&6
25540 else
25541   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25542 /* end confdefs.h.  */
25543 #include <time.h>
25544 #if !HAVE_DECL_TZNAME
25545 extern char *tzname[];
25546 #endif
25547
25548 int
25549 main ()
25550 {
25551 return tzname[0][0];
25552   ;
25553   return 0;
25554 }
25555 _ACEOF
25556 if ac_fn_c_try_link "$LINENO"; then :
25557   ac_cv_var_tzname=yes
25558 else
25559   ac_cv_var_tzname=no
25560 fi
25561 rm -f core conftest.err conftest.$ac_objext \
25562     conftest$ac_exeext conftest.$ac_ext
25563 fi
25564 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_var_tzname" >&5
25565 $as_echo "$ac_cv_var_tzname" >&6; }
25566   if test $ac_cv_var_tzname = yes; then
25567
25568 $as_echo "#define HAVE_TZNAME 1" >>confdefs.h
25569
25570   fi
25571 fi
25572
25573
25574 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for utime.h" >&5
25575 $as_echo_n "checking for utime.h... " >&6; }
25576 if test "${ba_cv_header_utime_h+set}" = set; then :
25577   $as_echo_n "(cached) " >&6
25578 else
25579
25580        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25581 /* end confdefs.h.  */
25582
25583               #include <sys/types.h>
25584               #include <utime.h>
25585
25586 int
25587 main ()
25588 {
25589
25590               struct utimbuf foo
25591
25592   ;
25593   return 0;
25594 }
25595 _ACEOF
25596 if ac_fn_c_try_compile "$LINENO"; then :
25597
25598               ba_cv_header_utime_h=yes
25599
25600 else
25601
25602               ba_cv_header_utime_h=no
25603
25604
25605 fi
25606 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25607
25608
25609 fi
25610 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ba_cv_header_utime_h" >&5
25611 $as_echo "$ba_cv_header_utime_h" >&6; }
25612 test $ba_cv_header_utime_h = yes &&
25613 $as_echo "#define HAVE_UTIME_H 1" >>confdefs.h
25614
25615
25616 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socklen_t" >&5
25617 $as_echo_n "checking for socklen_t... " >&6; }
25618 if test "${ba_cv_header_socklen_t+set}" = set; then :
25619   $as_echo_n "(cached) " >&6
25620 else
25621
25622        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25623 /* end confdefs.h.  */
25624
25625               #include <sys/types.h>
25626               #include <sys/socket.h>
25627
25628 int
25629 main ()
25630 {
25631
25632               socklen_t x
25633
25634   ;
25635   return 0;
25636 }
25637 _ACEOF
25638 if ac_fn_c_try_compile "$LINENO"; then :
25639
25640              ba_cv_header_socklen_t=yes
25641
25642 else
25643
25644              ba_cv_header_socklen_t=no
25645
25646
25647 fi
25648 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25649
25650
25651 fi
25652 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ba_cv_header_socklen_t" >&5
25653 $as_echo "$ba_cv_header_socklen_t" >&6; }
25654 test $ba_cv_header_socklen_t = yes &&
25655 $as_echo "#define HAVE_SOCKLEN_T 1" >>confdefs.h
25656
25657
25658 ac_ext=cpp
25659 ac_cpp='$CXXCPP $CPPFLAGS'
25660 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25661 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25662 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
25663
25664 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ioctl_req_t" >&5
25665 $as_echo_n "checking for ioctl_req_t... " >&6; }
25666 if test "${ba_cv_header_ioctl_req_t+set}" = set; then :
25667   $as_echo_n "(cached) " >&6
25668 else
25669
25670        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25671 /* end confdefs.h.  */
25672
25673               #include <unistd.h>
25674               #include <sys/types.h>
25675               #include <sys/ioctl.h>
25676
25677 int
25678 main ()
25679 {
25680
25681               int (*d_ioctl)(int fd, unsigned long int request, ...);
25682               d_ioctl = ::ioctl;
25683
25684   ;
25685   return 0;
25686 }
25687 _ACEOF
25688 if ac_fn_cxx_try_compile "$LINENO"; then :
25689
25690              ba_cv_header_ioctl_req_t=yes
25691
25692 else
25693
25694              ba_cv_header_ioctl_req_t=no
25695
25696
25697 fi
25698 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25699
25700
25701 fi
25702 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ba_cv_header_ioctl_req_t" >&5
25703 $as_echo "$ba_cv_header_ioctl_req_t" >&6; }
25704 test $ba_cv_header_ioctl_req_t = yes &&
25705 $as_echo "#define HAVE_IOCTL_ULINT_REQUEST 1" >>confdefs.h
25706
25707
25708 ac_ext=c
25709 ac_cpp='$CPP $CPPFLAGS'
25710 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25711 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25712 ac_compiler_gnu=$ac_cv_c_compiler_gnu
25713
25714
25715 ac_ext=cpp
25716 ac_cpp='$CXXCPP $CPPFLAGS'
25717 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25718 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25719 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
25720
25721 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for typeof" >&5
25722 $as_echo_n "checking for typeof... " >&6; }
25723 if test "${ba_cv_have_typeof+set}" = set; then :
25724   $as_echo_n "(cached) " >&6
25725 else
25726
25727        if test "$cross_compiling" = yes; then :
25728
25729               ba_cv_have_typeof=no
25730
25731
25732 else
25733   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25734 /* end confdefs.h.  */
25735
25736               main(){char *a = 0; a = (typeof a)a;}
25737
25738 _ACEOF
25739 if ac_fn_cxx_try_run "$LINENO"; then :
25740
25741               ba_cv_have_typeof=yes
25742
25743 else
25744
25745               ba_cv_have_typeof=no
25746
25747 fi
25748 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
25749   conftest.$ac_objext conftest.beam conftest.$ac_ext
25750 fi
25751
25752
25753
25754 fi
25755 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ba_cv_have_typeof" >&5
25756 $as_echo "$ba_cv_have_typeof" >&6; }
25757 test $ba_cv_have_typeof = yes &&
25758 $as_echo "#define HAVE_TYPEOF 1" >>confdefs.h
25759
25760 ac_ext=c
25761 ac_cpp='$CPP $CPPFLAGS'
25762 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25763 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25764 ac_compiler_gnu=$ac_cv_c_compiler_gnu
25765
25766
25767 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
25768 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
25769 if test "${ac_cv_c_const+set}" = set; then :
25770   $as_echo_n "(cached) " >&6
25771 else
25772   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25773 /* end confdefs.h.  */
25774
25775 int
25776 main ()
25777 {
25778 /* FIXME: Include the comments suggested by Paul. */
25779 #ifndef __cplusplus
25780   /* Ultrix mips cc rejects this.  */
25781   typedef int charset[2];
25782   const charset cs;
25783   /* SunOS 4.1.1 cc rejects this.  */
25784   char const *const *pcpcc;
25785   char **ppc;
25786   /* NEC SVR4.0.2 mips cc rejects this.  */
25787   struct point {int x, y;};
25788   static struct point const zero = {0,0};
25789   /* AIX XL C 1.02.0.0 rejects this.
25790      It does not let you subtract one const X* pointer from another in
25791      an arm of an if-expression whose if-part is not a constant
25792      expression */
25793   const char *g = "string";
25794   pcpcc = &g + (g ? g-g : 0);
25795   /* HPUX 7.0 cc rejects these. */
25796   ++pcpcc;
25797   ppc = (char**) pcpcc;
25798   pcpcc = (char const *const *) ppc;
25799   { /* SCO 3.2v4 cc rejects this.  */
25800     char *t;
25801     char const *s = 0 ? (char *) 0 : (char const *) 0;
25802
25803     *t++ = 0;
25804     if (s) return 0;
25805   }
25806   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
25807     int x[] = {25, 17};
25808     const int *foo = &x[0];
25809     ++foo;
25810   }
25811   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
25812     typedef const int *iptr;
25813     iptr p = 0;
25814     ++p;
25815   }
25816   { /* AIX XL C 1.02.0.0 rejects this saying
25817        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
25818     struct s { int j; const int *ap[3]; };
25819     struct s *b; b->j = 5;
25820   }
25821   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
25822     const int foo = 10;
25823     if (!foo) return 0;
25824   }
25825   return !cs[0] && !zero.x;
25826 #endif
25827
25828   ;
25829   return 0;
25830 }
25831 _ACEOF
25832 if ac_fn_c_try_compile "$LINENO"; then :
25833   ac_cv_c_const=yes
25834 else
25835   ac_cv_c_const=no
25836 fi
25837 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25838 fi
25839 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
25840 $as_echo "$ac_cv_c_const" >&6; }
25841 if test $ac_cv_c_const = no; then
25842
25843 $as_echo "#define const /**/" >>confdefs.h
25844
25845 fi
25846
25847
25848 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to get filesystem type" >&5
25849 $as_echo_n "checking how to get filesystem type... " >&6; }
25850 fstype=no
25851 # The order of these tests is important.
25852 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25853 /* end confdefs.h.  */
25854
25855        #include <sys/statvfs.h>
25856        #include <sys/fstyp.h>
25857
25858 _ACEOF
25859 if ac_fn_c_try_cpp "$LINENO"; then :
25860   $as_echo "#define FSTYPE_STATVFS 1" >>confdefs.h
25861  fstype=SVR4
25862
25863 fi
25864 rm -f conftest.err conftest.$ac_ext
25865 if test $fstype = no; then
25866    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25867 /* end confdefs.h.  */
25868
25869           #include <sys/statfs.h>
25870           #include <sys/fstyp.h>
25871
25872 _ACEOF
25873 if ac_fn_c_try_cpp "$LINENO"; then :
25874   $as_echo "#define FSTYPE_USG_STATFS 1" >>confdefs.h
25875  fstype=SVR3
25876
25877 fi
25878 rm -f conftest.err conftest.$ac_ext
25879 fi
25880 if test $fstype = no; then
25881    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25882 /* end confdefs.h.  */
25883
25884           #include <sys/statfs.h>
25885           #include <sys/vmount.h>
25886
25887 _ACEOF
25888 if ac_fn_c_try_cpp "$LINENO"; then :
25889   $as_echo "#define FSTYPE_AIX_STATFS 1" >>confdefs.h
25890  fstype=AIX
25891
25892 fi
25893 rm -f conftest.err conftest.$ac_ext
25894 fi
25895 if test $fstype = no; then
25896    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25897 /* end confdefs.h.  */
25898
25899           #include <mntent.h>
25900
25901 _ACEOF
25902 if ac_fn_c_try_cpp "$LINENO"; then :
25903   $as_echo "#define FSTYPE_MNTENT 1" >>confdefs.h
25904  fstype=4.3BSD
25905
25906 fi
25907 rm -f conftest.err conftest.$ac_ext
25908 fi
25909 if test $fstype = no; then
25910    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25911 /* end confdefs.h.  */
25912 #include <sys/mount.h>
25913
25914 _ACEOF
25915 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
25916   $EGREP "f_type;" >/dev/null 2>&1; then :
25917   $as_echo "#define FSTYPE_STATFS 1" >>confdefs.h
25918  fstype=4.4BSD/OSF1
25919 fi
25920 rm -f conftest*
25921
25922 fi
25923 if test $fstype = no; then
25924    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25925 /* end confdefs.h.  */
25926
25927           #include <sys/mount.h>
25928           #include <sys/fs_types.h>
25929
25930 _ACEOF
25931 if ac_fn_c_try_cpp "$LINENO"; then :
25932   $as_echo "#define FSTYPE_GETMNT 1" >>confdefs.h
25933  fstype=Ultrix
25934
25935 fi
25936 rm -f conftest.err conftest.$ac_ext
25937 fi
25938 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $fstype" >&5
25939 $as_echo "$fstype" >&6; }
25940
25941 ac_fn_c_check_header_mongrel "$LINENO" "sys/statvfs.h" "ac_cv_header_sys_statvfs_h" "$ac_includes_default"
25942 if test "x$ac_cv_header_sys_statvfs_h" = x""yes; then :
25943
25944 $as_echo "#define HAVE_SYS_STATVFS_H 1" >>confdefs.h
25945
25946 fi
25947
25948
25949
25950 { $as_echo "$as_me:${as_lineno-$LINENO}: checking return type of signal handlers" >&5
25951 $as_echo_n "checking return type of signal handlers... " >&6; }
25952 if test "${ac_cv_type_signal+set}" = set; then :
25953   $as_echo_n "(cached) " >&6
25954 else
25955   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25956 /* end confdefs.h.  */
25957 #include <sys/types.h>
25958 #include <signal.h>
25959
25960 int
25961 main ()
25962 {
25963 return *(signal (0, 0)) (0) == 1;
25964   ;
25965   return 0;
25966 }
25967 _ACEOF
25968 if ac_fn_c_try_compile "$LINENO"; then :
25969   ac_cv_type_signal=int
25970 else
25971   ac_cv_type_signal=void
25972 fi
25973 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25974 fi
25975 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_signal" >&5
25976 $as_echo "$ac_cv_type_signal" >&6; }
25977
25978 cat >>confdefs.h <<_ACEOF
25979 #define RETSIGTYPE $ac_cv_type_signal
25980 _ACEOF
25981
25982
25983
25984   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for type of signal functions" >&5
25985 $as_echo_n "checking for type of signal functions... " >&6; }
25986   if test "${bash_cv_signal_vintage+set}" = set; then :
25987   $as_echo_n "(cached) " >&6
25988 else
25989
25990     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25991 /* end confdefs.h.  */
25992 #include <signal.h>
25993 int
25994 main ()
25995 {
25996
25997       sigset_t ss;
25998       struct sigaction sa;
25999       sigemptyset(&ss); sigsuspend(&ss);
26000       sigaction(SIGINT, &sa, (struct sigaction *) 0);
26001       sigprocmask(SIG_BLOCK, &ss, (sigset_t *) 0);
26002
26003   ;
26004   return 0;
26005 }
26006 _ACEOF
26007 if ac_fn_c_try_link "$LINENO"; then :
26008   bash_cv_signal_vintage="posix"
26009 else
26010
26011       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26012 /* end confdefs.h.  */
26013 #include <signal.h>
26014 int
26015 main ()
26016 {
26017
26018           int mask = sigmask(SIGINT);
26019           sigsetmask(mask); sigblock(mask); sigpause(mask);
26020
26021   ;
26022   return 0;
26023 }
26024 _ACEOF
26025 if ac_fn_c_try_link "$LINENO"; then :
26026   bash_cv_signal_vintage="4.2bsd"
26027 else
26028
26029         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26030 /* end confdefs.h.  */
26031
26032           #include <signal.h>
26033           RETSIGTYPE foo() { }
26034 int
26035 main ()
26036 {
26037
26038                   int mask = sigmask(SIGINT);
26039                   sigset(SIGINT, foo); sigrelse(SIGINT);
26040                   sighold(SIGINT); sigpause(SIGINT);
26041
26042   ;
26043   return 0;
26044 }
26045 _ACEOF
26046 if ac_fn_c_try_link "$LINENO"; then :
26047   bash_cv_signal_vintage="svr3"
26048 else
26049   bash_cv_signal_vintage="v7"
26050
26051 fi
26052 rm -f core conftest.err conftest.$ac_objext \
26053     conftest$ac_exeext conftest.$ac_ext
26054
26055 fi
26056 rm -f core conftest.err conftest.$ac_objext \
26057     conftest$ac_exeext conftest.$ac_ext
26058
26059 fi
26060 rm -f core conftest.err conftest.$ac_objext \
26061     conftest$ac_exeext conftest.$ac_ext
26062
26063 fi
26064
26065   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bash_cv_signal_vintage" >&5
26066 $as_echo "$bash_cv_signal_vintage" >&6; }
26067   if test "$bash_cv_signal_vintage" = "posix"; then
26068     $as_echo "#define HAVE_POSIX_SIGNALS 1" >>confdefs.h
26069
26070   elif test "$bash_cv_signal_vintage" = "4.2bsd"; then
26071     $as_echo "#define HAVE_BSD_SIGNALS 1" >>confdefs.h
26072
26073   elif test "$bash_cv_signal_vintage" = "svr3"; then
26074     $as_echo "#define HAVE_USG_SIGHOLD 1" >>confdefs.h
26075
26076   fi
26077
26078 ac_fn_c_check_type "$LINENO" "mode_t" "ac_cv_type_mode_t" "$ac_includes_default"
26079 if test "x$ac_cv_type_mode_t" = x""yes; then :
26080
26081 else
26082
26083 cat >>confdefs.h <<_ACEOF
26084 #define mode_t int
26085 _ACEOF
26086
26087 fi
26088
26089 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uid_t in sys/types.h" >&5
26090 $as_echo_n "checking for uid_t in sys/types.h... " >&6; }
26091 if test "${ac_cv_type_uid_t+set}" = set; then :
26092   $as_echo_n "(cached) " >&6
26093 else
26094   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26095 /* end confdefs.h.  */
26096 #include <sys/types.h>
26097
26098 _ACEOF
26099 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
26100   $EGREP "uid_t" >/dev/null 2>&1; then :
26101   ac_cv_type_uid_t=yes
26102 else
26103   ac_cv_type_uid_t=no
26104 fi
26105 rm -f conftest*
26106
26107 fi
26108 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_uid_t" >&5
26109 $as_echo "$ac_cv_type_uid_t" >&6; }
26110 if test $ac_cv_type_uid_t = no; then
26111
26112 $as_echo "#define uid_t int" >>confdefs.h
26113
26114
26115 $as_echo "#define gid_t int" >>confdefs.h
26116
26117 fi
26118
26119 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
26120 if test "x$ac_cv_type_size_t" = x""yes; then :
26121
26122 else
26123
26124 cat >>confdefs.h <<_ACEOF
26125 #define size_t unsigned int
26126 _ACEOF
26127
26128 fi
26129
26130 ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
26131 if test "x$ac_cv_type_pid_t" = x""yes; then :
26132
26133 else
26134
26135 cat >>confdefs.h <<_ACEOF
26136 #define pid_t int
26137 _ACEOF
26138
26139 fi
26140
26141 ac_fn_c_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default"
26142 if test "x$ac_cv_type_off_t" = x""yes; then :
26143
26144 else
26145
26146 cat >>confdefs.h <<_ACEOF
26147 #define off_t long int
26148 _ACEOF
26149
26150 fi
26151
26152
26153   ac_fn_c_check_type "$LINENO" "intptr_t" "ac_cv_type_intptr_t" "$ac_includes_default"
26154 if test "x$ac_cv_type_intptr_t" = x""yes; then :
26155
26156 $as_echo "#define HAVE_INTPTR_T 1" >>confdefs.h
26157
26158 else
26159   for ac_type in 'int' 'long int' 'long long int'; do
26160        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26161 /* end confdefs.h.  */
26162 $ac_includes_default
26163 int
26164 main ()
26165 {
26166 static int test_array [1 - 2 * !(sizeof (void *) <= sizeof ($ac_type))];
26167 test_array [0] = 0
26168
26169   ;
26170   return 0;
26171 }
26172 _ACEOF
26173 if ac_fn_c_try_compile "$LINENO"; then :
26174
26175 cat >>confdefs.h <<_ACEOF
26176 #define intptr_t $ac_type
26177 _ACEOF
26178
26179           ac_type=
26180 fi
26181 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26182        test -z "$ac_type" && break
26183      done
26184 fi
26185
26186
26187
26188   ac_fn_c_check_type "$LINENO" "uintptr_t" "ac_cv_type_uintptr_t" "$ac_includes_default"
26189 if test "x$ac_cv_type_uintptr_t" = x""yes; then :
26190
26191 $as_echo "#define HAVE_UINTPTR_T 1" >>confdefs.h
26192
26193 else
26194   for ac_type in 'unsigned int' 'unsigned long int' \
26195         'unsigned long long int'; do
26196        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26197 /* end confdefs.h.  */
26198 $ac_includes_default
26199 int
26200 main ()
26201 {
26202 static int test_array [1 - 2 * !(sizeof (void *) <= sizeof ($ac_type))];
26203 test_array [0] = 0
26204
26205   ;
26206   return 0;
26207 }
26208 _ACEOF
26209 if ac_fn_c_try_compile "$LINENO"; then :
26210
26211 cat >>confdefs.h <<_ACEOF
26212 #define uintptr_t $ac_type
26213 _ACEOF
26214
26215           ac_type=
26216 fi
26217 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26218        test -z "$ac_type" && break
26219      done
26220 fi
26221
26222
26223 ac_fn_c_check_type "$LINENO" "ino_t" "ac_cv_type_ino_t" "$ac_includes_default"
26224 if test "x$ac_cv_type_ino_t" = x""yes; then :
26225
26226 else
26227
26228 cat >>confdefs.h <<_ACEOF
26229 #define ino_t unsigned long
26230 _ACEOF
26231
26232 fi
26233
26234 ac_fn_c_check_type "$LINENO" "dev_t" "ac_cv_type_dev_t" "$ac_includes_default"
26235 if test "x$ac_cv_type_dev_t" = x""yes; then :
26236
26237 else
26238
26239 cat >>confdefs.h <<_ACEOF
26240 #define dev_t unsigned long
26241 _ACEOF
26242
26243 fi
26244
26245 ac_fn_c_check_type "$LINENO" "daddr_t" "ac_cv_type_daddr_t" "$ac_includes_default"
26246 if test "x$ac_cv_type_daddr_t" = x""yes; then :
26247
26248 else
26249
26250 cat >>confdefs.h <<_ACEOF
26251 #define daddr_t long
26252 _ACEOF
26253
26254 fi
26255
26256 ac_fn_c_check_type "$LINENO" "major_t" "ac_cv_type_major_t" "$ac_includes_default"
26257 if test "x$ac_cv_type_major_t" = x""yes; then :
26258
26259 else
26260
26261 cat >>confdefs.h <<_ACEOF
26262 #define major_t int
26263 _ACEOF
26264
26265 fi
26266
26267 ac_fn_c_check_type "$LINENO" "minor_t" "ac_cv_type_minor_t" "$ac_includes_default"
26268 if test "x$ac_cv_type_minor_t" = x""yes; then :
26269
26270 else
26271
26272 cat >>confdefs.h <<_ACEOF
26273 #define minor_t int
26274 _ACEOF
26275
26276 fi
26277
26278 ac_fn_c_check_type "$LINENO" "ssize_t" "ac_cv_type_ssize_t" "$ac_includes_default"
26279 if test "x$ac_cv_type_ssize_t" = x""yes; then :
26280
26281 else
26282
26283 cat >>confdefs.h <<_ACEOF
26284 #define ssize_t int
26285 _ACEOF
26286
26287 fi
26288
26289 ac_fn_c_check_member "$LINENO" "struct stat" "st_blocks" "ac_cv_member_struct_stat_st_blocks" "$ac_includes_default"
26290 if test "x$ac_cv_member_struct_stat_st_blocks" = x""yes; then :
26291
26292 cat >>confdefs.h <<_ACEOF
26293 #define HAVE_STRUCT_STAT_ST_BLOCKS 1
26294 _ACEOF
26295
26296
26297 $as_echo "#define HAVE_ST_BLOCKS 1" >>confdefs.h
26298
26299 else
26300   case " $LIBOBJS " in
26301   *" fileblocks.$ac_objext "* ) ;;
26302   *) LIBOBJS="$LIBOBJS fileblocks.$ac_objext"
26303  ;;
26304 esac
26305
26306 fi
26307
26308
26309 ac_fn_c_check_member "$LINENO" "struct stat" "st_rdev" "ac_cv_member_struct_stat_st_rdev" "$ac_includes_default"
26310 if test "x$ac_cv_member_struct_stat_st_rdev" = x""yes; then :
26311
26312 cat >>confdefs.h <<_ACEOF
26313 #define HAVE_STRUCT_STAT_ST_RDEV 1
26314 _ACEOF
26315
26316
26317 $as_echo "#define HAVE_ST_RDEV 1" >>confdefs.h
26318
26319 fi
26320
26321
26322 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct tm is in sys/time.h or time.h" >&5
26323 $as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
26324 if test "${ac_cv_struct_tm+set}" = set; then :
26325   $as_echo_n "(cached) " >&6
26326 else
26327   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26328 /* end confdefs.h.  */
26329 #include <sys/types.h>
26330 #include <time.h>
26331
26332 int
26333 main ()
26334 {
26335 struct tm tm;
26336                                      int *p = &tm.tm_sec;
26337                                      return !p;
26338   ;
26339   return 0;
26340 }
26341 _ACEOF
26342 if ac_fn_c_try_compile "$LINENO"; then :
26343   ac_cv_struct_tm=time.h
26344 else
26345   ac_cv_struct_tm=sys/time.h
26346 fi
26347 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26348 fi
26349 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm" >&5
26350 $as_echo "$ac_cv_struct_tm" >&6; }
26351 if test $ac_cv_struct_tm = sys/time.h; then
26352
26353 $as_echo "#define TM_IN_SYS_TIME 1" >>confdefs.h
26354
26355 fi
26356
26357 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
26358 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
26359 if test "${ac_cv_c_const+set}" = set; then :
26360   $as_echo_n "(cached) " >&6
26361 else
26362   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26363 /* end confdefs.h.  */
26364
26365 int
26366 main ()
26367 {
26368 /* FIXME: Include the comments suggested by Paul. */
26369 #ifndef __cplusplus
26370   /* Ultrix mips cc rejects this.  */
26371   typedef int charset[2];
26372   const charset cs;
26373   /* SunOS 4.1.1 cc rejects this.  */
26374   char const *const *pcpcc;
26375   char **ppc;
26376   /* NEC SVR4.0.2 mips cc rejects this.  */
26377   struct point {int x, y;};
26378   static struct point const zero = {0,0};
26379   /* AIX XL C 1.02.0.0 rejects this.
26380      It does not let you subtract one const X* pointer from another in
26381      an arm of an if-expression whose if-part is not a constant
26382      expression */
26383   const char *g = "string";
26384   pcpcc = &g + (g ? g-g : 0);
26385   /* HPUX 7.0 cc rejects these. */
26386   ++pcpcc;
26387   ppc = (char**) pcpcc;
26388   pcpcc = (char const *const *) ppc;
26389   { /* SCO 3.2v4 cc rejects this.  */
26390     char *t;
26391     char const *s = 0 ? (char *) 0 : (char const *) 0;
26392
26393     *t++ = 0;
26394     if (s) return 0;
26395   }
26396   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
26397     int x[] = {25, 17};
26398     const int *foo = &x[0];
26399     ++foo;
26400   }
26401   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
26402     typedef const int *iptr;
26403     iptr p = 0;
26404     ++p;
26405   }
26406   { /* AIX XL C 1.02.0.0 rejects this saying
26407        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
26408     struct s { int j; const int *ap[3]; };
26409     struct s *b; b->j = 5;
26410   }
26411   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
26412     const int foo = 10;
26413     if (!foo) return 0;
26414   }
26415   return !cs[0] && !zero.x;
26416 #endif
26417
26418   ;
26419   return 0;
26420 }
26421 _ACEOF
26422 if ac_fn_c_try_compile "$LINENO"; then :
26423   ac_cv_c_const=yes
26424 else
26425   ac_cv_c_const=no
26426 fi
26427 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26428 fi
26429 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
26430 $as_echo "$ac_cv_c_const" >&6; }
26431 if test $ac_cv_c_const = no; then
26432
26433 $as_echo "#define const /**/" >>confdefs.h
26434
26435 fi
26436
26437
26438 # The cast to long int works around a bug in the HP C Compiler
26439 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
26440 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
26441 # This bug is HP SR number 8606223364.
26442 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of char" >&5
26443 $as_echo_n "checking size of char... " >&6; }
26444 if test "${ac_cv_sizeof_char+set}" = set; then :
26445   $as_echo_n "(cached) " >&6
26446 else
26447   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (char))" "ac_cv_sizeof_char"        "$ac_includes_default"; then :
26448
26449 else
26450   if test "$ac_cv_type_char" = yes; then
26451      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
26452 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
26453 { as_fn_set_status 77
26454 as_fn_error "cannot compute sizeof (char)
26455 See \`config.log' for more details." "$LINENO" 5; }; }
26456    else
26457      ac_cv_sizeof_char=0
26458    fi
26459 fi
26460
26461 fi
26462 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_char" >&5
26463 $as_echo "$ac_cv_sizeof_char" >&6; }
26464
26465
26466
26467 cat >>confdefs.h <<_ACEOF
26468 #define SIZEOF_CHAR $ac_cv_sizeof_char
26469 _ACEOF
26470
26471
26472 # The cast to long int works around a bug in the HP C Compiler
26473 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
26474 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
26475 # This bug is HP SR number 8606223364.
26476 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of short int" >&5
26477 $as_echo_n "checking size of short int... " >&6; }
26478 if test "${ac_cv_sizeof_short_int+set}" = set; then :
26479   $as_echo_n "(cached) " >&6
26480 else
26481   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (short int))" "ac_cv_sizeof_short_int"        "$ac_includes_default"; then :
26482
26483 else
26484   if test "$ac_cv_type_short_int" = yes; then
26485      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
26486 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
26487 { as_fn_set_status 77
26488 as_fn_error "cannot compute sizeof (short int)
26489 See \`config.log' for more details." "$LINENO" 5; }; }
26490    else
26491      ac_cv_sizeof_short_int=0
26492    fi
26493 fi
26494
26495 fi
26496 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_short_int" >&5
26497 $as_echo "$ac_cv_sizeof_short_int" >&6; }
26498
26499
26500
26501 cat >>confdefs.h <<_ACEOF
26502 #define SIZEOF_SHORT_INT $ac_cv_sizeof_short_int
26503 _ACEOF
26504
26505
26506 # The cast to long int works around a bug in the HP C Compiler
26507 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
26508 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
26509 # This bug is HP SR number 8606223364.
26510 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5
26511 $as_echo_n "checking size of int... " >&6; }
26512 if test "${ac_cv_sizeof_int+set}" = set; then :
26513   $as_echo_n "(cached) " >&6
26514 else
26515   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int"        "$ac_includes_default"; then :
26516
26517 else
26518   if test "$ac_cv_type_int" = yes; then
26519      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
26520 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
26521 { as_fn_set_status 77
26522 as_fn_error "cannot compute sizeof (int)
26523 See \`config.log' for more details." "$LINENO" 5; }; }
26524    else
26525      ac_cv_sizeof_int=0
26526    fi
26527 fi
26528
26529 fi
26530 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5
26531 $as_echo "$ac_cv_sizeof_int" >&6; }
26532
26533
26534
26535 cat >>confdefs.h <<_ACEOF
26536 #define SIZEOF_INT $ac_cv_sizeof_int
26537 _ACEOF
26538
26539
26540 # The cast to long int works around a bug in the HP C Compiler
26541 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
26542 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
26543 # This bug is HP SR number 8606223364.
26544 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long int" >&5
26545 $as_echo_n "checking size of long int... " >&6; }
26546 if test "${ac_cv_sizeof_long_int+set}" = set; then :
26547   $as_echo_n "(cached) " >&6
26548 else
26549   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long int))" "ac_cv_sizeof_long_int"        "$ac_includes_default"; then :
26550
26551 else
26552   if test "$ac_cv_type_long_int" = yes; then
26553      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
26554 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
26555 { as_fn_set_status 77
26556 as_fn_error "cannot compute sizeof (long int)
26557 See \`config.log' for more details." "$LINENO" 5; }; }
26558    else
26559      ac_cv_sizeof_long_int=0
26560    fi
26561 fi
26562
26563 fi
26564 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_int" >&5
26565 $as_echo "$ac_cv_sizeof_long_int" >&6; }
26566
26567
26568
26569 cat >>confdefs.h <<_ACEOF
26570 #define SIZEOF_LONG_INT $ac_cv_sizeof_long_int
26571 _ACEOF
26572
26573
26574 # The cast to long int works around a bug in the HP C Compiler
26575 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
26576 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
26577 # This bug is HP SR number 8606223364.
26578 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long long int" >&5
26579 $as_echo_n "checking size of long long int... " >&6; }
26580 if test "${ac_cv_sizeof_long_long_int+set}" = set; then :
26581   $as_echo_n "(cached) " >&6
26582 else
26583   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long long int))" "ac_cv_sizeof_long_long_int"        "$ac_includes_default"; then :
26584
26585 else
26586   if test "$ac_cv_type_long_long_int" = yes; then
26587      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
26588 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
26589 { as_fn_set_status 77
26590 as_fn_error "cannot compute sizeof (long long int)
26591 See \`config.log' for more details." "$LINENO" 5; }; }
26592    else
26593      ac_cv_sizeof_long_long_int=0
26594    fi
26595 fi
26596
26597 fi
26598 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_long_int" >&5
26599 $as_echo "$ac_cv_sizeof_long_long_int" >&6; }
26600
26601
26602
26603 cat >>confdefs.h <<_ACEOF
26604 #define SIZEOF_LONG_LONG_INT $ac_cv_sizeof_long_long_int
26605 _ACEOF
26606
26607
26608 # The cast to long int works around a bug in the HP C Compiler
26609 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
26610 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
26611 # This bug is HP SR number 8606223364.
26612 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int *" >&5
26613 $as_echo_n "checking size of int *... " >&6; }
26614 if test "${ac_cv_sizeof_int_p+set}" = set; then :
26615   $as_echo_n "(cached) " >&6
26616 else
26617   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int *))" "ac_cv_sizeof_int_p"        "$ac_includes_default"; then :
26618
26619 else
26620   if test "$ac_cv_type_int_p" = yes; then
26621      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
26622 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
26623 { as_fn_set_status 77
26624 as_fn_error "cannot compute sizeof (int *)
26625 See \`config.log' for more details." "$LINENO" 5; }; }
26626    else
26627      ac_cv_sizeof_int_p=0
26628    fi
26629 fi
26630
26631 fi
26632 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int_p" >&5
26633 $as_echo "$ac_cv_sizeof_int_p" >&6; }
26634
26635
26636
26637 cat >>confdefs.h <<_ACEOF
26638 #define SIZEOF_INT_P $ac_cv_sizeof_int_p
26639 _ACEOF
26640
26641
26642
26643 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for u_int type" >&5
26644 $as_echo_n "checking for u_int type... " >&6; }
26645 if test "${ac_cv_have_u_int+set}" = set; then :
26646   $as_echo_n "(cached) " >&6
26647 else
26648
26649        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26650 /* end confdefs.h.  */
26651
26652               #include <sys/types.h>
26653
26654 int
26655 main ()
26656 {
26657
26658               u_int a; a = 1;
26659
26660   ;
26661   return 0;
26662 }
26663 _ACEOF
26664 if ac_fn_c_try_compile "$LINENO"; then :
26665
26666               ac_cv_have_u_int="yes"
26667
26668 else
26669
26670               ac_cv_have_u_int="no"
26671
26672
26673 fi
26674 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26675
26676
26677 fi
26678 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_u_int" >&5
26679 $as_echo "$ac_cv_have_u_int" >&6; }
26680 if test "x$ac_cv_have_u_int" = "xyes" ; then
26681    $as_echo "#define HAVE_U_INT 1" >>confdefs.h
26682
26683    have_u_int=1
26684 fi
26685
26686 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for intmax_t type" >&5
26687 $as_echo_n "checking for intmax_t type... " >&6; }
26688 if test "${ac_cv_have_intmax_t+set}" = set; then :
26689   $as_echo_n "(cached) " >&6
26690 else
26691
26692        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26693 /* end confdefs.h.  */
26694
26695               #include <sys/types.h>
26696
26697 int
26698 main ()
26699 {
26700
26701               intmax_t a; a = 1;
26702
26703   ;
26704   return 0;
26705 }
26706 _ACEOF
26707 if ac_fn_c_try_compile "$LINENO"; then :
26708
26709               ac_cv_have_intmax_t="yes"
26710
26711 else
26712
26713               cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26714 /* end confdefs.h.  */
26715
26716                      #include <stdint.h>
26717
26718 int
26719 main ()
26720 {
26721
26722                      intmax_t a; a = 1;
26723
26724   ;
26725   return 0;
26726 }
26727 _ACEOF
26728 if ac_fn_c_try_compile "$LINENO"; then :
26729
26730                      ac_cv_have_intmax_t="yes"
26731
26732 else
26733
26734                      ac_cv_have_intmax_t="no"
26735
26736
26737 fi
26738 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26739
26740
26741 fi
26742 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26743
26744
26745 fi
26746 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_intmax_t" >&5
26747 $as_echo "$ac_cv_have_intmax_t" >&6; }
26748 if test "x$ac_cv_have_intmax_t" = "xyes" ; then
26749    $as_echo "#define HAVE_INTMAX_T 1" >>confdefs.h
26750
26751    have_intmax_t=1
26752 fi
26753
26754 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for u_intmax_t type" >&5
26755 $as_echo_n "checking for u_intmax_t type... " >&6; }
26756 if test "${ac_cv_have_u_intmax_t+set}" = set; then :
26757   $as_echo_n "(cached) " >&6
26758 else
26759
26760        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26761 /* end confdefs.h.  */
26762
26763               #include <sys/types.h>
26764
26765 int
26766 main ()
26767 {
26768
26769               u_intmax_t a; a = 1;
26770
26771   ;
26772   return 0;
26773 }
26774 _ACEOF
26775 if ac_fn_c_try_compile "$LINENO"; then :
26776
26777               ac_cv_have_u_intmax_t="yes"
26778
26779 else
26780
26781               cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26782 /* end confdefs.h.  */
26783
26784                      #include <stdint.h>
26785
26786 int
26787 main ()
26788 {
26789
26790                     u_intmax_t a; a = 1;
26791
26792   ;
26793   return 0;
26794 }
26795 _ACEOF
26796 if ac_fn_c_try_compile "$LINENO"; then :
26797
26798                     ac_cv_have_u_intmax_t="yes"
26799
26800 else
26801
26802                     ac_cv_have_u_intmax_t="no"
26803
26804
26805 fi
26806 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26807
26808
26809 fi
26810 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26811
26812
26813 fi
26814 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_u_intmax_t" >&5
26815 $as_echo "$ac_cv_have_u_intmax_t" >&6; }
26816 if test "x$ac_cv_have_u_intmax_t" = "xyes" ; then
26817    $as_echo "#define HAVE_U_INTMAX_T 1" >>confdefs.h
26818
26819    have_u_intmax_t=1
26820 fi
26821
26822 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for intXX_t types" >&5
26823 $as_echo_n "checking for intXX_t types... " >&6; }
26824 if test "${ac_cv_have_intxx_t+set}" = set; then :
26825   $as_echo_n "(cached) " >&6
26826 else
26827
26828        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26829 /* end confdefs.h.  */
26830
26831               #include <sys/types.h>
26832
26833 int
26834 main ()
26835 {
26836
26837               int8_t a; int16_t b; int32_t c; a = b = c = 1;
26838
26839   ;
26840   return 0;
26841 }
26842 _ACEOF
26843 if ac_fn_c_try_compile "$LINENO"; then :
26844
26845               ac_cv_have_intxx_t="yes"
26846
26847 else
26848
26849               ac_cv_have_intxx_t="no"
26850
26851
26852 fi
26853 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26854
26855
26856 fi
26857 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_intxx_t" >&5
26858 $as_echo "$ac_cv_have_intxx_t" >&6; }
26859 if test "x$ac_cv_have_intxx_t" = "xyes" ; then
26860    $as_echo "#define HAVE_INTXX_T 1" >>confdefs.h
26861
26862    have_intxx_t=1
26863 fi
26864
26865 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for int64_t type" >&5
26866 $as_echo_n "checking for int64_t type... " >&6; }
26867 if test "${ac_cv_have_int64_t+set}" = set; then :
26868   $as_echo_n "(cached) " >&6
26869 else
26870
26871        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26872 /* end confdefs.h.  */
26873
26874               #include <sys/types.h>
26875
26876 int
26877 main ()
26878 {
26879
26880               int64_t a; a = 1;
26881
26882   ;
26883   return 0;
26884 }
26885 _ACEOF
26886 if ac_fn_c_try_compile "$LINENO"; then :
26887
26888               ac_cv_have_int64_t="yes"
26889
26890 else
26891
26892               ac_cv_have_int64_t="no"
26893
26894
26895 fi
26896 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26897
26898
26899 fi
26900 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_int64_t" >&5
26901 $as_echo "$ac_cv_have_int64_t" >&6; }
26902 if test "x$ac_cv_have_int64_t" = "xyes" ; then
26903    $as_echo "#define HAVE_INT64_T 1" >>confdefs.h
26904
26905    have_int64_t=1
26906 fi
26907
26908 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for u_intXX_t types" >&5
26909 $as_echo_n "checking for u_intXX_t types... " >&6; }
26910 if test "${ac_cv_have_u_intxx_t+set}" = set; then :
26911   $as_echo_n "(cached) " >&6
26912 else
26913
26914        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26915 /* end confdefs.h.  */
26916
26917               #include <sys/types.h>
26918
26919 int
26920 main ()
26921 {
26922
26923               u_int8_t a; u_int16_t b; u_int32_t c; a = b = c = 1;
26924
26925   ;
26926   return 0;
26927 }
26928 _ACEOF
26929 if ac_fn_c_try_compile "$LINENO"; then :
26930
26931              ac_cv_have_u_intxx_t="yes"
26932
26933 else
26934
26935              ac_cv_have_u_intxx_t="no"
26936
26937
26938 fi
26939 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26940
26941
26942 fi
26943 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_u_intxx_t" >&5
26944 $as_echo "$ac_cv_have_u_intxx_t" >&6; }
26945 if test "x$ac_cv_have_u_intxx_t" = "xyes" ; then
26946    $as_echo "#define HAVE_U_INTXX_T 1" >>confdefs.h
26947
26948    have_u_intxx_t=1
26949 fi
26950
26951 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for u_int64_t types" >&5
26952 $as_echo_n "checking for u_int64_t types... " >&6; }
26953 if test "${ac_cv_have_u_int64_t+set}" = set; then :
26954   $as_echo_n "(cached) " >&6
26955 else
26956
26957        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26958 /* end confdefs.h.  */
26959
26960               #include <sys/types.h>
26961
26962 int
26963 main ()
26964 {
26965
26966               u_int64_t a; a = 1;
26967
26968   ;
26969   return 0;
26970 }
26971 _ACEOF
26972 if ac_fn_c_try_compile "$LINENO"; then :
26973
26974              ac_cv_have_u_int64_t="yes"
26975
26976 else
26977
26978              ac_cv_have_u_int64_t="no"
26979
26980
26981 fi
26982 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26983
26984
26985 fi
26986 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_u_int64_t" >&5
26987 $as_echo "$ac_cv_have_u_int64_t" >&6; }
26988 if test "x$ac_cv_have_u_int64_t" = "xyes" ; then
26989    $as_echo "#define HAVE_U_INT64_T 1" >>confdefs.h
26990
26991    have_u_int64_t=1
26992 fi
26993
26994 if (test -z "$have_u_intxx_t" || test -z "$have_intxx_t" && \
26995     test "x$ac_cv_header_sys_bitypes_h" = "xyes")
26996 then
26997    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for intXX_t and u_intXX_t types in sys/bitypes.h" >&5
26998 $as_echo_n "checking for intXX_t and u_intXX_t types in sys/bitypes.h... " >&6; }
26999    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27000 /* end confdefs.h.  */
27001
27002           #include <sys/bitypes.h>
27003
27004 int
27005 main ()
27006 {
27007
27008           int8_t a; int16_t b; int32_t c;
27009           u_int8_t e; u_int16_t f; u_int32_t g;
27010           a = b = c = e = f = g = 1;
27011
27012   ;
27013   return 0;
27014 }
27015 _ACEOF
27016 if ac_fn_c_try_compile "$LINENO"; then :
27017
27018           $as_echo "#define HAVE_U_INTXX_T 1" >>confdefs.h
27019
27020           $as_echo "#define HAVE_INTXX_T 1" >>confdefs.h
27021
27022           $as_echo "#define HAVE_SYS_BITYPES_H 1" >>confdefs.h
27023
27024           { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
27025 $as_echo "yes" >&6; }
27026
27027 else
27028
27029           { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27030 $as_echo "no" >&6; }
27031
27032
27033 fi
27034 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27035 fi
27036
27037 if test -z "$have_u_intxx_t" ; then
27038    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uintXX_t types" >&5
27039 $as_echo_n "checking for uintXX_t types... " >&6; }
27040 if test "${ac_cv_have_uintxx_t+set}" = set; then :
27041   $as_echo_n "(cached) " >&6
27042 else
27043
27044           cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27045 /* end confdefs.h.  */
27046
27047                  #include <sys/types.h>
27048
27049 int
27050 main ()
27051 {
27052
27053                  uint8_t a; uint16_t b;
27054                  uint32_t c; a = b = c = 1;
27055
27056   ;
27057   return 0;
27058 }
27059 _ACEOF
27060 if ac_fn_c_try_compile "$LINENO"; then :
27061
27062                 ac_cv_have_uintxx_t="yes"
27063
27064 else
27065
27066                 ac_cv_have_uintxx_t="no"
27067
27068
27069 fi
27070 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27071
27072
27073 fi
27074 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_uintxx_t" >&5
27075 $as_echo "$ac_cv_have_uintxx_t" >&6; }
27076    if test "x$ac_cv_have_uintxx_t" = "xyes" ; then
27077       $as_echo "#define HAVE_UINTXX_T 1" >>confdefs.h
27078
27079    fi
27080 fi
27081
27082 if (test -z "$have_u_int64_t" || test -z "$have_int64_t" && \
27083     test "x$ac_cv_header_sys_bitypes_h" = "xyes")
27084 then
27085    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for int64_t and u_int64_t types in sys/bitypes.h" >&5
27086 $as_echo_n "checking for int64_t and u_int64_t types in sys/bitypes.h... " >&6; }
27087    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27088 /* end confdefs.h.  */
27089
27090           #include <sys/bitypes.h>
27091
27092 int
27093 main ()
27094 {
27095
27096           int64_t a; u_int64_t b;
27097           a = b = 1;
27098
27099   ;
27100   return 0;
27101 }
27102 _ACEOF
27103 if ac_fn_c_try_compile "$LINENO"; then :
27104
27105           $as_echo "#define HAVE_U_INT64_T 1" >>confdefs.h
27106
27107           $as_echo "#define HAVE_INT64_T 1" >>confdefs.h
27108
27109           { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
27110 $as_echo "yes" >&6; }
27111
27112 else
27113
27114           { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27115 $as_echo "no" >&6; }
27116
27117
27118 fi
27119 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27120 fi
27121
27122 if (test -z "$have_uintxx_t" && \
27123     test "x$ac_cv_header_sys_bitypes_h" = "xyes")
27124 then
27125    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uintXX_t types in sys/bitypes.h" >&5
27126 $as_echo_n "checking for uintXX_t types in sys/bitypes.h... " >&6; }
27127    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27128 /* end confdefs.h.  */
27129
27130           #include <sys/bitypes.h>
27131
27132 int
27133 main ()
27134 {
27135
27136           uint8_t a; uint16_t b;
27137           uint32_t c; a = b = c = 1;
27138
27139   ;
27140   return 0;
27141 }
27142 _ACEOF
27143 if ac_fn_c_try_compile "$LINENO"; then :
27144
27145           $as_echo "#define HAVE_UINTXX_T 1" >>confdefs.h
27146
27147           { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
27148 $as_echo "yes" >&6; }
27149
27150 else
27151
27152           { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27153 $as_echo "no" >&6; }
27154
27155
27156 fi
27157 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27158 fi
27159
27160 for ac_func in \
27161    fork \
27162    getcwd \
27163    gethostname \
27164    getpid \
27165    gettimeofday \
27166    setpgid \
27167    setpgrp \
27168    setsid \
27169    signal \
27170    strerror \
27171    strncmp \
27172    strncpy \
27173    vfprintf \
27174
27175 do :
27176   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
27177 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
27178 eval as_val=\$$as_ac_var
27179    if test "x$as_val" = x""yes; then :
27180   cat >>confdefs.h <<_ACEOF
27181 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
27182 _ACEOF
27183
27184 else
27185   echo 'configure: cannot find needed function.'; exit 1
27186
27187 fi
27188 done
27189
27190
27191 for ac_func in fchdir
27192 do :
27193   ac_fn_c_check_func "$LINENO" "fchdir" "ac_cv_func_fchdir"
27194 if test "x$ac_cv_func_fchdir" = x""yes; then :
27195   cat >>confdefs.h <<_ACEOF
27196 #define HAVE_FCHDIR 1
27197 _ACEOF
27198  $as_echo "#define HAVE_FCHDIR 1" >>confdefs.h
27199
27200 fi
27201 done
27202
27203 for ac_func in strtoll
27204 do :
27205   ac_fn_c_check_func "$LINENO" "strtoll" "ac_cv_func_strtoll"
27206 if test "x$ac_cv_func_strtoll" = x""yes; then :
27207   cat >>confdefs.h <<_ACEOF
27208 #define HAVE_STRTOLL 1
27209 _ACEOF
27210  $as_echo "#define HAVE_STRTOLL 1" >>confdefs.h
27211
27212 fi
27213 done
27214
27215 for ac_func in posix_fadvise
27216 do :
27217   ac_fn_c_check_func "$LINENO" "posix_fadvise" "ac_cv_func_posix_fadvise"
27218 if test "x$ac_cv_func_posix_fadvise" = x""yes; then :
27219   cat >>confdefs.h <<_ACEOF
27220 #define HAVE_POSIX_FADVISE 1
27221 _ACEOF
27222
27223 fi
27224 done
27225
27226 for ac_func in fdatasync
27227 do :
27228   ac_fn_c_check_func "$LINENO" "fdatasync" "ac_cv_func_fdatasync"
27229 if test "x$ac_cv_func_fdatasync" = x""yes; then :
27230   cat >>confdefs.h <<_ACEOF
27231 #define HAVE_FDATASYNC 1
27232 _ACEOF
27233
27234 fi
27235 done
27236
27237
27238 for ac_func in chflags
27239 do :
27240   ac_fn_c_check_func "$LINENO" "chflags" "ac_cv_func_chflags"
27241 if test "x$ac_cv_func_chflags" = x""yes; then :
27242   cat >>confdefs.h <<_ACEOF
27243 #define HAVE_CHFLAGS 1
27244 _ACEOF
27245
27246 fi
27247 done
27248
27249
27250 for ac_func in snprintf vsnprintf gethostid fseeko
27251 do :
27252   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
27253 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
27254 eval as_val=\$$as_ac_var
27255    if test "x$as_val" = x""yes; then :
27256   cat >>confdefs.h <<_ACEOF
27257 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
27258 _ACEOF
27259
27260 fi
27261 done
27262
27263
27264 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for va_copy" >&5
27265 $as_echo_n "checking for va_copy... " >&6; }
27266 if test "${ba_cv_va_copy+set}" = set; then :
27267   $as_echo_n "(cached) " >&6
27268 else
27269
27270        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27271 /* end confdefs.h.  */
27272
27273               #include <stdarg.h>
27274               void use_va_copy(va_list args){va_list args2; va_copy(args2,args); va_end(args2);}
27275               void call_use_va_copy(int junk,...){va_list args; va_start(args,junk); use_va_copy(args); va_end(args);}
27276
27277 int
27278 main ()
27279 {
27280
27281               call_use_va_copy(1,2,3)
27282
27283   ;
27284   return 0;
27285 }
27286 _ACEOF
27287 if ac_fn_c_try_link "$LINENO"; then :
27288
27289               ba_cv_va_copy=yes,
27290
27291 else
27292
27293               ba_cv_va_copy=no
27294
27295
27296 fi
27297 rm -f core conftest.err conftest.$ac_objext \
27298     conftest$ac_exeext conftest.$ac_ext
27299
27300
27301 fi
27302 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ba_cv_va_copy" >&5
27303 $as_echo "$ba_cv_va_copy" >&6; }
27304 test $ba_cv_va_copy = yes &&
27305 $as_echo "#define HAVE_VA_COPY 1" >>confdefs.h
27306
27307
27308 for ac_func in localtime_r readdir_r strerror_r gethostbyname_r
27309 do :
27310   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
27311 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
27312 eval as_val=\$$as_ac_var
27313    if test "x$as_val" = x""yes; then :
27314   cat >>confdefs.h <<_ACEOF
27315 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
27316 _ACEOF
27317
27318 fi
27319 done
27320
27321
27322 # If resolver functions are not in libc check for -lnsl or -lresolv.
27323 ac_fn_c_check_func "$LINENO" "gethostbyname_r" "ac_cv_func_gethostbyname_r"
27324 if test "x$ac_cv_func_gethostbyname_r" = x""yes; then :
27325   { $as_echo "$as_me:${as_lineno-$LINENO}: result: using libc's resolver" >&5
27326 $as_echo "using libc's resolver" >&6; }
27327 else
27328   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname_r in -lnsl" >&5
27329 $as_echo_n "checking for gethostbyname_r in -lnsl... " >&6; }
27330 if test "${ac_cv_lib_nsl_gethostbyname_r+set}" = set; then :
27331   $as_echo_n "(cached) " >&6
27332 else
27333   ac_check_lib_save_LIBS=$LIBS
27334 LIBS="-lnsl  $LIBS"
27335 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27336 /* end confdefs.h.  */
27337
27338 /* Override any GCC internal prototype to avoid an error.
27339    Use char because int might match the return type of a GCC
27340    builtin and then its argument prototype would still apply.  */
27341 #ifdef __cplusplus
27342 extern "C"
27343 #endif
27344 char gethostbyname_r ();
27345 int
27346 main ()
27347 {
27348 return gethostbyname_r ();
27349   ;
27350   return 0;
27351 }
27352 _ACEOF
27353 if ac_fn_c_try_link "$LINENO"; then :
27354   ac_cv_lib_nsl_gethostbyname_r=yes
27355 else
27356   ac_cv_lib_nsl_gethostbyname_r=no
27357 fi
27358 rm -f core conftest.err conftest.$ac_objext \
27359     conftest$ac_exeext conftest.$ac_ext
27360 LIBS=$ac_check_lib_save_LIBS
27361 fi
27362 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_gethostbyname_r" >&5
27363 $as_echo "$ac_cv_lib_nsl_gethostbyname_r" >&6; }
27364 if test "x$ac_cv_lib_nsl_gethostbyname_r" = x""yes; then :
27365   cat >>confdefs.h <<_ACEOF
27366 #define HAVE_LIBNSL 1
27367 _ACEOF
27368
27369   LIBS="-lnsl $LIBS"
27370
27371 fi
27372
27373     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname_r in -lresolv" >&5
27374 $as_echo_n "checking for gethostbyname_r in -lresolv... " >&6; }
27375 if test "${ac_cv_lib_resolv_gethostbyname_r+set}" = set; then :
27376   $as_echo_n "(cached) " >&6
27377 else
27378   ac_check_lib_save_LIBS=$LIBS
27379 LIBS="-lresolv  $LIBS"
27380 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27381 /* end confdefs.h.  */
27382
27383 /* Override any GCC internal prototype to avoid an error.
27384    Use char because int might match the return type of a GCC
27385    builtin and then its argument prototype would still apply.  */
27386 #ifdef __cplusplus
27387 extern "C"
27388 #endif
27389 char gethostbyname_r ();
27390 int
27391 main ()
27392 {
27393 return gethostbyname_r ();
27394   ;
27395   return 0;
27396 }
27397 _ACEOF
27398 if ac_fn_c_try_link "$LINENO"; then :
27399   ac_cv_lib_resolv_gethostbyname_r=yes
27400 else
27401   ac_cv_lib_resolv_gethostbyname_r=no
27402 fi
27403 rm -f core conftest.err conftest.$ac_objext \
27404     conftest$ac_exeext conftest.$ac_ext
27405 LIBS=$ac_check_lib_save_LIBS
27406 fi
27407 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_resolv_gethostbyname_r" >&5
27408 $as_echo "$ac_cv_lib_resolv_gethostbyname_r" >&6; }
27409 if test "x$ac_cv_lib_resolv_gethostbyname_r" = x""yes; then :
27410   cat >>confdefs.h <<_ACEOF
27411 #define HAVE_LIBRESOLV 1
27412 _ACEOF
27413
27414   LIBS="-lresolv $LIBS"
27415
27416 fi
27417
27418 fi
27419
27420
27421 for ac_func in inet_pton
27422 do :
27423   ac_fn_c_check_func "$LINENO" "inet_pton" "ac_cv_func_inet_pton"
27424 if test "x$ac_cv_func_inet_pton" = x""yes; then :
27425   cat >>confdefs.h <<_ACEOF
27426 #define HAVE_INET_PTON 1
27427 _ACEOF
27428  $as_echo "#define HAVE_INET_PTON 1" >>confdefs.h
27429
27430 fi
27431 done
27432
27433 for ac_func in inet_ntop
27434 do :
27435   ac_fn_c_check_func "$LINENO" "inet_ntop" "ac_cv_func_inet_ntop"
27436 if test "x$ac_cv_func_inet_ntop" = x""yes; then :
27437   cat >>confdefs.h <<_ACEOF
27438 #define HAVE_INET_NTOP 1
27439 _ACEOF
27440  $as_echo "#define HAVE_INET_NTOP 1" >>confdefs.h
27441
27442 fi
27443 done
27444
27445 for ac_func in gethostbyname2
27446 do :
27447   ac_fn_c_check_func "$LINENO" "gethostbyname2" "ac_cv_func_gethostbyname2"
27448 if test "x$ac_cv_func_gethostbyname2" = x""yes; then :
27449   cat >>confdefs.h <<_ACEOF
27450 #define HAVE_GETHOSTBYNAME2 1
27451 _ACEOF
27452  $as_echo "#define HAVE_GETHOSTBYNAME2 1" >>confdefs.h
27453
27454 fi
27455 done
27456
27457
27458 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct sockaddr has a sa_len field" >&5
27459 $as_echo_n "checking for struct sockaddr has a sa_len field... " >&6; }
27460 if test "${ac_cv_struct_sockaddr_sa_len+set}" = set; then :
27461   $as_echo_n "(cached) " >&6
27462 else
27463
27464        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27465 /* end confdefs.h.  */
27466
27467               #include <sys/socket.h>
27468
27469 int
27470 main ()
27471 {
27472
27473               struct sockaddr s; s.sa_len;
27474
27475   ;
27476   return 0;
27477 }
27478 _ACEOF
27479 if ac_fn_c_try_compile "$LINENO"; then :
27480
27481              ac_cv_struct_sockaddr_sa_len=yes
27482
27483 else
27484   ac_cv_struct_sockaddr_sa_len=no
27485
27486
27487 fi
27488 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27489
27490
27491 fi
27492 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_sockaddr_sa_len" >&5
27493 $as_echo "$ac_cv_struct_sockaddr_sa_len" >&6; }
27494
27495 if test $ac_cv_struct_sockaddr_sa_len = yes; then
27496
27497 $as_echo "#define HAVE_SA_LEN 1" >>confdefs.h
27498
27499 fi
27500
27501 for ac_func in strftime
27502 do :
27503   ac_fn_c_check_func "$LINENO" "strftime" "ac_cv_func_strftime"
27504 if test "x$ac_cv_func_strftime" = x""yes; then :
27505   cat >>confdefs.h <<_ACEOF
27506 #define HAVE_STRFTIME 1
27507 _ACEOF
27508
27509 else
27510   # strftime is in -lintl on SCO UNIX.
27511 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for strftime in -lintl" >&5
27512 $as_echo_n "checking for strftime in -lintl... " >&6; }
27513 if test "${ac_cv_lib_intl_strftime+set}" = set; then :
27514   $as_echo_n "(cached) " >&6
27515 else
27516   ac_check_lib_save_LIBS=$LIBS
27517 LIBS="-lintl  $LIBS"
27518 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27519 /* end confdefs.h.  */
27520
27521 /* Override any GCC internal prototype to avoid an error.
27522    Use char because int might match the return type of a GCC
27523    builtin and then its argument prototype would still apply.  */
27524 #ifdef __cplusplus
27525 extern "C"
27526 #endif
27527 char strftime ();
27528 int
27529 main ()
27530 {
27531 return strftime ();
27532   ;
27533   return 0;
27534 }
27535 _ACEOF
27536 if ac_fn_c_try_link "$LINENO"; then :
27537   ac_cv_lib_intl_strftime=yes
27538 else
27539   ac_cv_lib_intl_strftime=no
27540 fi
27541 rm -f core conftest.err conftest.$ac_objext \
27542     conftest$ac_exeext conftest.$ac_ext
27543 LIBS=$ac_check_lib_save_LIBS
27544 fi
27545 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_intl_strftime" >&5
27546 $as_echo "$ac_cv_lib_intl_strftime" >&6; }
27547 if test "x$ac_cv_lib_intl_strftime" = x""yes; then :
27548   $as_echo "#define HAVE_STRFTIME 1" >>confdefs.h
27549
27550 LIBS="-lintl $LIBS"
27551 fi
27552
27553 fi
27554 done
27555
27556 for ac_func in vprintf
27557 do :
27558   ac_fn_c_check_func "$LINENO" "vprintf" "ac_cv_func_vprintf"
27559 if test "x$ac_cv_func_vprintf" = x""yes; then :
27560   cat >>confdefs.h <<_ACEOF
27561 #define HAVE_VPRINTF 1
27562 _ACEOF
27563
27564 ac_fn_c_check_func "$LINENO" "_doprnt" "ac_cv_func__doprnt"
27565 if test "x$ac_cv_func__doprnt" = x""yes; then :
27566
27567 $as_echo "#define HAVE_DOPRNT 1" >>confdefs.h
27568
27569 fi
27570
27571 fi
27572 done
27573
27574
27575 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
27576 # for constant arguments.  Useless!
27577 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5
27578 $as_echo_n "checking for working alloca.h... " >&6; }
27579 if test "${ac_cv_working_alloca_h+set}" = set; then :
27580   $as_echo_n "(cached) " >&6
27581 else
27582   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27583 /* end confdefs.h.  */
27584 #include <alloca.h>
27585 int
27586 main ()
27587 {
27588 char *p = (char *) alloca (2 * sizeof (int));
27589                           if (p) return 0;
27590   ;
27591   return 0;
27592 }
27593 _ACEOF
27594 if ac_fn_c_try_link "$LINENO"; then :
27595   ac_cv_working_alloca_h=yes
27596 else
27597   ac_cv_working_alloca_h=no
27598 fi
27599 rm -f core conftest.err conftest.$ac_objext \
27600     conftest$ac_exeext conftest.$ac_ext
27601 fi
27602 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5
27603 $as_echo "$ac_cv_working_alloca_h" >&6; }
27604 if test $ac_cv_working_alloca_h = yes; then
27605
27606 $as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h
27607
27608 fi
27609
27610 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5
27611 $as_echo_n "checking for alloca... " >&6; }
27612 if test "${ac_cv_func_alloca_works+set}" = set; then :
27613   $as_echo_n "(cached) " >&6
27614 else
27615   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27616 /* end confdefs.h.  */
27617 #ifdef __GNUC__
27618 # define alloca __builtin_alloca
27619 #else
27620 # ifdef _MSC_VER
27621 #  include <malloc.h>
27622 #  define alloca _alloca
27623 # else
27624 #  ifdef HAVE_ALLOCA_H
27625 #   include <alloca.h>
27626 #  else
27627 #   ifdef _AIX
27628  #pragma alloca
27629 #   else
27630 #    ifndef alloca /* predefined by HP cc +Olibcalls */
27631 char *alloca ();
27632 #    endif
27633 #   endif
27634 #  endif
27635 # endif
27636 #endif
27637
27638 int
27639 main ()
27640 {
27641 char *p = (char *) alloca (1);
27642                                     if (p) return 0;
27643   ;
27644   return 0;
27645 }
27646 _ACEOF
27647 if ac_fn_c_try_link "$LINENO"; then :
27648   ac_cv_func_alloca_works=yes
27649 else
27650   ac_cv_func_alloca_works=no
27651 fi
27652 rm -f core conftest.err conftest.$ac_objext \
27653     conftest$ac_exeext conftest.$ac_ext
27654 fi
27655 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5
27656 $as_echo "$ac_cv_func_alloca_works" >&6; }
27657
27658 if test $ac_cv_func_alloca_works = yes; then
27659
27660 $as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
27661
27662 else
27663   # The SVR3 libPW and SVR4 libucb both contain incompatible functions
27664 # that cause trouble.  Some versions do not even contain alloca or
27665 # contain a buggy version.  If you still want to use their alloca,
27666 # use ar to extract alloca.o from them instead of compiling alloca.c.
27667
27668 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
27669
27670 $as_echo "#define C_ALLOCA 1" >>confdefs.h
27671
27672
27673 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether \`alloca.c' needs Cray hooks" >&5
27674 $as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; }
27675 if test "${ac_cv_os_cray+set}" = set; then :
27676   $as_echo_n "(cached) " >&6
27677 else
27678   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27679 /* end confdefs.h.  */
27680 #if defined CRAY && ! defined CRAY2
27681 webecray
27682 #else
27683 wenotbecray
27684 #endif
27685
27686 _ACEOF
27687 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
27688   $EGREP "webecray" >/dev/null 2>&1; then :
27689   ac_cv_os_cray=yes
27690 else
27691   ac_cv_os_cray=no
27692 fi
27693 rm -f conftest*
27694
27695 fi
27696 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5
27697 $as_echo "$ac_cv_os_cray" >&6; }
27698 if test $ac_cv_os_cray = yes; then
27699   for ac_func in _getb67 GETB67 getb67; do
27700     as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
27701 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
27702 eval as_val=\$$as_ac_var
27703    if test "x$as_val" = x""yes; then :
27704
27705 cat >>confdefs.h <<_ACEOF
27706 #define CRAY_STACKSEG_END $ac_func
27707 _ACEOF
27708
27709     break
27710 fi
27711
27712   done
27713 fi
27714
27715 { $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5
27716 $as_echo_n "checking stack direction for C alloca... " >&6; }
27717 if test "${ac_cv_c_stack_direction+set}" = set; then :
27718   $as_echo_n "(cached) " >&6
27719 else
27720   if test "$cross_compiling" = yes; then :
27721   ac_cv_c_stack_direction=0
27722 else
27723   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27724 /* end confdefs.h.  */
27725 $ac_includes_default
27726 int
27727 find_stack_direction ()
27728 {
27729   static char *addr = 0;
27730   auto char dummy;
27731   if (addr == 0)
27732     {
27733       addr = &dummy;
27734       return find_stack_direction ();
27735     }
27736   else
27737     return (&dummy > addr) ? 1 : -1;
27738 }
27739
27740 int
27741 main ()
27742 {
27743   return find_stack_direction () < 0;
27744 }
27745 _ACEOF
27746 if ac_fn_c_try_run "$LINENO"; then :
27747   ac_cv_c_stack_direction=1
27748 else
27749   ac_cv_c_stack_direction=-1
27750 fi
27751 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
27752   conftest.$ac_objext conftest.beam conftest.$ac_ext
27753 fi
27754
27755 fi
27756 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5
27757 $as_echo "$ac_cv_c_stack_direction" >&6; }
27758 cat >>confdefs.h <<_ACEOF
27759 #define STACK_DIRECTION $ac_cv_c_stack_direction
27760 _ACEOF
27761
27762
27763 fi
27764
27765 # getmntent is in the standard C library on UNICOS, in -lsun on Irix 4,
27766 # -lseq on Dynix/PTX, -lgen on Unixware.
27767 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing getmntent" >&5
27768 $as_echo_n "checking for library containing getmntent... " >&6; }
27769 if test "${ac_cv_search_getmntent+set}" = set; then :
27770   $as_echo_n "(cached) " >&6
27771 else
27772   ac_func_search_save_LIBS=$LIBS
27773 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27774 /* end confdefs.h.  */
27775
27776 /* Override any GCC internal prototype to avoid an error.
27777    Use char because int might match the return type of a GCC
27778    builtin and then its argument prototype would still apply.  */
27779 #ifdef __cplusplus
27780 extern "C"
27781 #endif
27782 char getmntent ();
27783 int
27784 main ()
27785 {
27786 return getmntent ();
27787   ;
27788   return 0;
27789 }
27790 _ACEOF
27791 for ac_lib in '' sun seq gen; do
27792   if test -z "$ac_lib"; then
27793     ac_res="none required"
27794   else
27795     ac_res=-l$ac_lib
27796     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
27797   fi
27798   if ac_fn_c_try_link "$LINENO"; then :
27799   ac_cv_search_getmntent=$ac_res
27800 fi
27801 rm -f core conftest.err conftest.$ac_objext \
27802     conftest$ac_exeext
27803   if test "${ac_cv_search_getmntent+set}" = set; then :
27804   break
27805 fi
27806 done
27807 if test "${ac_cv_search_getmntent+set}" = set; then :
27808
27809 else
27810   ac_cv_search_getmntent=no
27811 fi
27812 rm conftest.$ac_ext
27813 LIBS=$ac_func_search_save_LIBS
27814 fi
27815 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_getmntent" >&5
27816 $as_echo "$ac_cv_search_getmntent" >&6; }
27817 ac_res=$ac_cv_search_getmntent
27818 if test "$ac_res" != no; then :
27819   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
27820   ac_cv_func_getmntent=yes
27821
27822 $as_echo "#define HAVE_GETMNTENT 1" >>confdefs.h
27823
27824 else
27825   ac_cv_func_getmntent=no
27826 fi
27827
27828
27829 for ac_func in getmntinfo
27830 do :
27831   ac_fn_c_check_func "$LINENO" "getmntinfo" "ac_cv_func_getmntinfo"
27832 if test "x$ac_cv_func_getmntinfo" = x""yes; then :
27833   cat >>confdefs.h <<_ACEOF
27834 #define HAVE_GETMNTINFO 1
27835 _ACEOF
27836  $as_echo "#define HAVE_GETMNTINFO 1" >>confdefs.h
27837
27838 fi
27839 done
27840
27841 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether closedir returns void" >&5
27842 $as_echo_n "checking whether closedir returns void... " >&6; }
27843 if test "${ac_cv_func_closedir_void+set}" = set; then :
27844   $as_echo_n "(cached) " >&6
27845 else
27846   if test "$cross_compiling" = yes; then :
27847   ac_cv_func_closedir_void=yes
27848 else
27849   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27850 /* end confdefs.h.  */
27851 $ac_includes_default
27852 #include <$ac_header_dirent>
27853 #ifndef __cplusplus
27854 int closedir ();
27855 #endif
27856
27857 int
27858 main ()
27859 {
27860 return closedir (opendir (".")) != 0;
27861   ;
27862   return 0;
27863 }
27864 _ACEOF
27865 if ac_fn_c_try_run "$LINENO"; then :
27866   ac_cv_func_closedir_void=no
27867 else
27868   ac_cv_func_closedir_void=yes
27869 fi
27870 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
27871   conftest.$ac_objext conftest.beam conftest.$ac_ext
27872 fi
27873
27874 fi
27875 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_closedir_void" >&5
27876 $as_echo "$ac_cv_func_closedir_void" >&6; }
27877 if test $ac_cv_func_closedir_void = yes; then
27878
27879 $as_echo "#define CLOSEDIR_VOID 1" >>confdefs.h
27880
27881 fi
27882
27883 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether setpgrp takes no argument" >&5
27884 $as_echo_n "checking whether setpgrp takes no argument... " >&6; }
27885 if test "${ac_cv_func_setpgrp_void+set}" = set; then :
27886   $as_echo_n "(cached) " >&6
27887 else
27888   if test "$cross_compiling" = yes; then :
27889   as_fn_error "cannot check setpgrp when cross compiling" "$LINENO" 5
27890 else
27891   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27892 /* end confdefs.h.  */
27893 $ac_includes_default
27894 int
27895 main ()
27896 {
27897 /* If this system has a BSD-style setpgrp which takes arguments,
27898   setpgrp(1, 1) will fail with ESRCH and return -1, in that case
27899   exit successfully. */
27900   return setpgrp (1,1) != -1;
27901   ;
27902   return 0;
27903 }
27904 _ACEOF
27905 if ac_fn_c_try_run "$LINENO"; then :
27906   ac_cv_func_setpgrp_void=no
27907 else
27908   ac_cv_func_setpgrp_void=yes
27909 fi
27910 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
27911   conftest.$ac_objext conftest.beam conftest.$ac_ext
27912 fi
27913
27914 fi
27915 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_setpgrp_void" >&5
27916 $as_echo "$ac_cv_func_setpgrp_void" >&6; }
27917 if test $ac_cv_func_setpgrp_void = yes; then
27918
27919 $as_echo "#define SETPGRP_VOID 1" >>confdefs.h
27920
27921 fi
27922             # AC_FUNC_FNMATCH    dnl use local version
27923
27924 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gettext in -lintl" >&5
27925 $as_echo_n "checking for gettext in -lintl... " >&6; }
27926 if test "${ac_cv_lib_intl_gettext+set}" = set; then :
27927   $as_echo_n "(cached) " >&6
27928 else
27929   ac_check_lib_save_LIBS=$LIBS
27930 LIBS="-lintl  $LIBS"
27931 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27932 /* end confdefs.h.  */
27933
27934 /* Override any GCC internal prototype to avoid an error.
27935    Use char because int might match the return type of a GCC
27936    builtin and then its argument prototype would still apply.  */
27937 #ifdef __cplusplus
27938 extern "C"
27939 #endif
27940 char gettext ();
27941 int
27942 main ()
27943 {
27944 return gettext ();
27945   ;
27946   return 0;
27947 }
27948 _ACEOF
27949 if ac_fn_c_try_link "$LINENO"; then :
27950   ac_cv_lib_intl_gettext=yes
27951 else
27952   ac_cv_lib_intl_gettext=no
27953 fi
27954 rm -f core conftest.err conftest.$ac_objext \
27955     conftest$ac_exeext conftest.$ac_ext
27956 LIBS=$ac_check_lib_save_LIBS
27957 fi
27958 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_intl_gettext" >&5
27959 $as_echo "$ac_cv_lib_intl_gettext" >&6; }
27960 if test "x$ac_cv_lib_intl_gettext" = x""yes; then :
27961   LIBS="$LIBS -lintl"
27962 fi
27963
27964
27965 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getpwnam in -lsun" >&5
27966 $as_echo_n "checking for getpwnam in -lsun... " >&6; }
27967 if test "${ac_cv_lib_sun_getpwnam+set}" = set; then :
27968   $as_echo_n "(cached) " >&6
27969 else
27970   ac_check_lib_save_LIBS=$LIBS
27971 LIBS="-lsun  $LIBS"
27972 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27973 /* end confdefs.h.  */
27974
27975 /* Override any GCC internal prototype to avoid an error.
27976    Use char because int might match the return type of a GCC
27977    builtin and then its argument prototype would still apply.  */
27978 #ifdef __cplusplus
27979 extern "C"
27980 #endif
27981 char getpwnam ();
27982 int
27983 main ()
27984 {
27985 return getpwnam ();
27986   ;
27987   return 0;
27988 }
27989 _ACEOF
27990 if ac_fn_c_try_link "$LINENO"; then :
27991   ac_cv_lib_sun_getpwnam=yes
27992 else
27993   ac_cv_lib_sun_getpwnam=no
27994 fi
27995 rm -f core conftest.err conftest.$ac_objext \
27996     conftest$ac_exeext conftest.$ac_ext
27997 LIBS=$ac_check_lib_save_LIBS
27998 fi
27999 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_sun_getpwnam" >&5
28000 $as_echo "$ac_cv_lib_sun_getpwnam" >&6; }
28001 if test "x$ac_cv_lib_sun_getpwnam" = x""yes; then :
28002   cat >>confdefs.h <<_ACEOF
28003 #define HAVE_LIBSUN 1
28004 _ACEOF
28005
28006   LIBS="-lsun $LIBS"
28007
28008 fi
28009
28010
28011 for ac_header in zlib.h
28012 do :
28013   ac_fn_c_check_header_mongrel "$LINENO" "zlib.h" "ac_cv_header_zlib_h" "$ac_includes_default"
28014 if test "x$ac_cv_header_zlib_h" = x""yes; then :
28015   cat >>confdefs.h <<_ACEOF
28016 #define HAVE_ZLIB_H 1
28017 _ACEOF
28018
28019 fi
28020
28021 done
28022
28023 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for deflate in -lz" >&5
28024 $as_echo_n "checking for deflate in -lz... " >&6; }
28025 if test "${ac_cv_lib_z_deflate+set}" = set; then :
28026   $as_echo_n "(cached) " >&6
28027 else
28028   ac_check_lib_save_LIBS=$LIBS
28029 LIBS="-lz  $LIBS"
28030 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28031 /* end confdefs.h.  */
28032
28033 /* Override any GCC internal prototype to avoid an error.
28034    Use char because int might match the return type of a GCC
28035    builtin and then its argument prototype would still apply.  */
28036 #ifdef __cplusplus
28037 extern "C"
28038 #endif
28039 char deflate ();
28040 int
28041 main ()
28042 {
28043 return deflate ();
28044   ;
28045   return 0;
28046 }
28047 _ACEOF
28048 if ac_fn_c_try_link "$LINENO"; then :
28049   ac_cv_lib_z_deflate=yes
28050 else
28051   ac_cv_lib_z_deflate=no
28052 fi
28053 rm -f core conftest.err conftest.$ac_objext \
28054     conftest$ac_exeext conftest.$ac_ext
28055 LIBS=$ac_check_lib_save_LIBS
28056 fi
28057 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_deflate" >&5
28058 $as_echo "$ac_cv_lib_z_deflate" >&6; }
28059 if test "x$ac_cv_lib_z_deflate" = x""yes; then :
28060   ZLIBS="-lz"
28061 fi
28062
28063 have_zlib=no
28064 if test x$ZLIBS = x-lz; then
28065    $as_echo "#define HAVE_LIBZ 1" >>confdefs.h
28066
28067    have_zlib=yes
28068 fi
28069
28070
28071 AFS_CFLAGS=""
28072 AFS_LIBS=""
28073 support_afs=auto
28074 # Check whether --enable-afs was given.
28075 if test "${enable_afs+set}" = set; then :
28076   enableval=$enable_afs;
28077        if test x$enableval = xyes; then
28078           support_afs=yes
28079        elif test x$enableval = xno; then
28080           support_afs=no
28081        fi
28082
28083
28084 fi
28085
28086
28087 have_afs=no
28088 if test x$support_afs = xyes -o x$support_afs = xauto; then
28089
28090 # Check whether --with-afsdir was given.
28091 if test "${with_afsdir+set}" = set; then :
28092   withval=$with_afsdir; with_afsdir=$withval
28093
28094 fi
28095
28096
28097             if test x$with_afsdir = x; then
28098       for root in /usr /usr/local; do
28099          if test -d ${root}/include/afs/ ; then
28100             with_afsdir=${root}
28101             break
28102          fi
28103       done
28104    fi
28105
28106    AFS_CFLAGS="-I${with_afsdir}/include"
28107
28108    saved_CFLAGS="${CFLAGS}"
28109    CFLAGS="${AFS_CFLAGS} ${saved_CFLAGS}"
28110
28111    for ac_header in afs/stds.h
28112 do :
28113   ac_fn_c_check_header_mongrel "$LINENO" "afs/stds.h" "ac_cv_header_afs_stds_h" "$ac_includes_default"
28114 if test "x$ac_cv_header_afs_stds_h" = x""yes; then :
28115   cat >>confdefs.h <<_ACEOF
28116 #define HAVE_AFS_STDS_H 1
28117 _ACEOF
28118
28119 fi
28120
28121 done
28122
28123
28124    CFLAGS="${saved_CFLAGS}"
28125
28126             for dir in ${with_afsdir}/lib ${with_afsdir}/lib/afs
28127    do
28128       for arch_type in .a .so
28129       do
28130          A=`test -f ${dir}/libsys${arch_type} && nm ${dir}/libsys${arch_type} | grep pioctl`
28131          pkg=$?
28132          if test $pkg = 0; then
28133             have_afs=yes
28134             AFS_LIBS="-L${dir} -lsys -lrx -llwp ${dir}/util.a"
28135             break
28136          fi
28137       done
28138    done
28139
28140    if test x$support_afs = xyes -a $have_afs != yes; then
28141       as_fn_error "afs support explicitly enabled but no supported afs implementation found,
28142   please either load the afs libraries or rerun configure without --enable-afs" "$LINENO" 5
28143    else
28144       if test $have_afs = yes; then
28145
28146 $as_echo "#define HAVE_AFS 1" >>confdefs.h
28147
28148
28149 $as_echo "#define HAVE_AFS_ACL 1" >>confdefs.h
28150
28151       fi
28152    fi
28153 fi
28154
28155
28156
28157
28158 support_acl=auto
28159 # Check whether --enable-acl was given.
28160 if test "${enable_acl+set}" = set; then :
28161   enableval=$enable_acl;
28162        if test x$enableval = xyes; then
28163           support_acl=yes
28164        elif test x$enableval = xno; then
28165           support_acl=no
28166        fi
28167
28168
28169 fi
28170
28171
28172 have_acl=no
28173 have_extended_acl=no
28174 if test x$support_acl = xyes -o x$support_acl = xauto; then
28175    ac_fn_c_check_header_mongrel "$LINENO" "sys/acl.h" "ac_cv_header_sys_acl_h" "$ac_includes_default"
28176 if test "x$ac_cv_header_sys_acl_h" = x""yes; then :
28177
28178 $as_echo "#define HAVE_SYS_ACL_H 1" >>confdefs.h
28179
28180 fi
28181
28182
28183    ac_fn_c_check_func "$LINENO" "acl_get_file" "ac_cv_func_acl_get_file"
28184 if test "x$ac_cv_func_acl_get_file" = x""yes; then :
28185
28186           have_acl=yes
28187
28188 else
28189
28190           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for acl_get_file in -lacl" >&5
28191 $as_echo_n "checking for acl_get_file in -lacl... " >&6; }
28192 if test "${ac_cv_lib_acl_acl_get_file+set}" = set; then :
28193   $as_echo_n "(cached) " >&6
28194 else
28195   ac_check_lib_save_LIBS=$LIBS
28196 LIBS="-lacl  $LIBS"
28197 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28198 /* end confdefs.h.  */
28199
28200 /* Override any GCC internal prototype to avoid an error.
28201    Use char because int might match the return type of a GCC
28202    builtin and then its argument prototype would still apply.  */
28203 #ifdef __cplusplus
28204 extern "C"
28205 #endif
28206 char acl_get_file ();
28207 int
28208 main ()
28209 {
28210 return acl_get_file ();
28211   ;
28212   return 0;
28213 }
28214 _ACEOF
28215 if ac_fn_c_try_link "$LINENO"; then :
28216   ac_cv_lib_acl_acl_get_file=yes
28217 else
28218   ac_cv_lib_acl_acl_get_file=no
28219 fi
28220 rm -f core conftest.err conftest.$ac_objext \
28221     conftest$ac_exeext conftest.$ac_ext
28222 LIBS=$ac_check_lib_save_LIBS
28223 fi
28224 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_acl_acl_get_file" >&5
28225 $as_echo "$ac_cv_lib_acl_acl_get_file" >&6; }
28226 if test "x$ac_cv_lib_acl_acl_get_file" = x""yes; then :
28227
28228                  have_acl=yes;
28229                  if test $have_afs = yes; then
28230                                                                     if test -d /usr/lib64/; then
28231                        FDLIBS="-L/usr/lib64 -lacl $FDLIBS"
28232                     else
28233                        FDLIBS="-L/usr/lib -lacl $FDLIBS"
28234                     fi
28235                  else
28236                     FDLIBS="-lacl $FDLIBS"
28237                  fi
28238
28239 else
28240
28241                  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for acl_get_file in -lpacl" >&5
28242 $as_echo_n "checking for acl_get_file in -lpacl... " >&6; }
28243 if test "${ac_cv_lib_pacl_acl_get_file+set}" = set; then :
28244   $as_echo_n "(cached) " >&6
28245 else
28246   ac_check_lib_save_LIBS=$LIBS
28247 LIBS="-lpacl  $LIBS"
28248 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28249 /* end confdefs.h.  */
28250
28251 /* Override any GCC internal prototype to avoid an error.
28252    Use char because int might match the return type of a GCC
28253    builtin and then its argument prototype would still apply.  */
28254 #ifdef __cplusplus
28255 extern "C"
28256 #endif
28257 char acl_get_file ();
28258 int
28259 main ()
28260 {
28261 return acl_get_file ();
28262   ;
28263   return 0;
28264 }
28265 _ACEOF
28266 if ac_fn_c_try_link "$LINENO"; then :
28267   ac_cv_lib_pacl_acl_get_file=yes
28268 else
28269   ac_cv_lib_pacl_acl_get_file=no
28270 fi
28271 rm -f core conftest.err conftest.$ac_objext \
28272     conftest$ac_exeext conftest.$ac_ext
28273 LIBS=$ac_check_lib_save_LIBS
28274 fi
28275 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pacl_acl_get_file" >&5
28276 $as_echo "$ac_cv_lib_pacl_acl_get_file" >&6; }
28277 if test "x$ac_cv_lib_pacl_acl_get_file" = x""yes; then :
28278
28279                         have_acl=yes;
28280                         FDLIBS="-lpacl $FDLIBS"
28281
28282 else
28283
28284                         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for acltotext in -lsec" >&5
28285 $as_echo_n "checking for acltotext in -lsec... " >&6; }
28286 if test "${ac_cv_lib_sec_acltotext+set}" = set; then :
28287   $as_echo_n "(cached) " >&6
28288 else
28289   ac_check_lib_save_LIBS=$LIBS
28290 LIBS="-lsec  $LIBS"
28291 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28292 /* end confdefs.h.  */
28293
28294 /* Override any GCC internal prototype to avoid an error.
28295    Use char because int might match the return type of a GCC
28296    builtin and then its argument prototype would still apply.  */
28297 #ifdef __cplusplus
28298 extern "C"
28299 #endif
28300 char acltotext ();
28301 int
28302 main ()
28303 {
28304 return acltotext ();
28305   ;
28306   return 0;
28307 }
28308 _ACEOF
28309 if ac_fn_c_try_link "$LINENO"; then :
28310   ac_cv_lib_sec_acltotext=yes
28311 else
28312   ac_cv_lib_sec_acltotext=no
28313 fi
28314 rm -f core conftest.err conftest.$ac_objext \
28315     conftest$ac_exeext conftest.$ac_ext
28316 LIBS=$ac_check_lib_save_LIBS
28317 fi
28318 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_sec_acltotext" >&5
28319 $as_echo "$ac_cv_lib_sec_acltotext" >&6; }
28320 if test "x$ac_cv_lib_sec_acltotext" = x""yes; then :
28321
28322                                have_acl=yes;
28323                                FDLIBS="-lsec $FDLIBS"
28324
28325                                { $as_echo "$as_me:${as_lineno-$LINENO}: checking for acl_totext in -lsec" >&5
28326 $as_echo_n "checking for acl_totext in -lsec... " >&6; }
28327 if test "${ac_cv_lib_sec_acl_totext+set}" = set; then :
28328   $as_echo_n "(cached) " >&6
28329 else
28330   ac_check_lib_save_LIBS=$LIBS
28331 LIBS="-lsec  $LIBS"
28332 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28333 /* end confdefs.h.  */
28334
28335 /* Override any GCC internal prototype to avoid an error.
28336    Use char because int might match the return type of a GCC
28337    builtin and then its argument prototype would still apply.  */
28338 #ifdef __cplusplus
28339 extern "C"
28340 #endif
28341 char acl_totext ();
28342 int
28343 main ()
28344 {
28345 return acl_totext ();
28346   ;
28347   return 0;
28348 }
28349 _ACEOF
28350 if ac_fn_c_try_link "$LINENO"; then :
28351   ac_cv_lib_sec_acl_totext=yes
28352 else
28353   ac_cv_lib_sec_acl_totext=no
28354 fi
28355 rm -f core conftest.err conftest.$ac_objext \
28356     conftest$ac_exeext conftest.$ac_ext
28357 LIBS=$ac_check_lib_save_LIBS
28358 fi
28359 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_sec_acl_totext" >&5
28360 $as_echo "$ac_cv_lib_sec_acl_totext" >&6; }
28361 if test "x$ac_cv_lib_sec_acl_totext" = x""yes; then :
28362
28363                                       have_extended_acl=yes
28364
28365
28366 fi
28367
28368
28369
28370 fi
28371
28372
28373
28374 fi
28375
28376
28377
28378 fi
28379
28380
28381
28382 fi
28383
28384
28385    if test x$support_acl = xyes -a $have_acl != yes; then
28386       as_fn_error "acl support explicitly enabled but no supported acl implementation found,
28387   please either load the acl libraries or rerun configure without --enable-acl" "$LINENO" 5
28388    else
28389       if test $have_acl = yes; then
28390
28391 $as_echo "#define HAVE_ACL 1" >>confdefs.h
28392
28393       fi
28394
28395       if test $have_extended_acl = yes; then
28396
28397 $as_echo "#define HAVE_EXTENDED_ACL 1" >>confdefs.h
28398
28399       fi
28400    fi
28401 fi
28402
28403 support_xattr=auto
28404 # Check whether --enable-xattr was given.
28405 if test "${enable_xattr+set}" = set; then :
28406   enableval=$enable_xattr;
28407        if test x$enableval = xyes; then
28408           support_xattr=yes
28409        elif test x$enableval = xno; then
28410           support_xattr=no
28411        fi
28412
28413
28414 fi
28415
28416
28417 have_xattr=no
28418 if test x$support_xattr = xyes -o x$support_xattr = xauto; then
28419             ac_fn_c_check_header_mongrel "$LINENO" "sys/extattr.h" "ac_cv_header_sys_extattr_h" "$ac_includes_default"
28420 if test "x$ac_cv_header_sys_extattr_h" = x""yes; then :
28421
28422 $as_echo "#define HAVE_SYS_EXTATTR_H 1" >>confdefs.h
28423
28424 fi
28425
28426
28427    ac_fn_c_check_header_mongrel "$LINENO" "libutil.h" "ac_cv_header_libutil_h" "$ac_includes_default"
28428 if test "x$ac_cv_header_libutil_h" = x""yes; then :
28429
28430 $as_echo "#define HAVE_LIBUTIL_H 1" >>confdefs.h
28431
28432 fi
28433
28434
28435    for ac_func in extattr_get_link extattr_set_link extattr_list_link
28436 do :
28437   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
28438 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
28439 eval as_val=\$$as_ac_var
28440    if test "x$as_val" = x""yes; then :
28441   cat >>confdefs.h <<_ACEOF
28442 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
28443 _ACEOF
28444
28445           have_xattr=yes
28446
28447 $as_echo "#define HAVE_EXTATTR_GET_LINK 1" >>confdefs.h
28448
28449
28450 $as_echo "#define HAVE_EXTATTR_SET_LINK 1" >>confdefs.h
28451
28452
28453 $as_echo "#define HAVE_EXTATTR_LIST_LINK 1" >>confdefs.h
28454
28455
28456
28457 fi
28458 done
28459
28460
28461    if test $have_xattr = no; then
28462       for ac_func in extattr_get_file extattr_set_file extattr_list_file
28463 do :
28464   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
28465 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
28466 eval as_val=\$$as_ac_var
28467    if test "x$as_val" = x""yes; then :
28468   cat >>confdefs.h <<_ACEOF
28469 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
28470 _ACEOF
28471
28472              have_xattr=yes
28473
28474 $as_echo "#define HAVE_EXTATTR_GET_FILE 1" >>confdefs.h
28475
28476
28477 $as_echo "#define HAVE_EXTATTR_SET_FILE 1" >>confdefs.h
28478
28479
28480 $as_echo "#define HAVE_EXTATTR_LIST_FILE 1" >>confdefs.h
28481
28482
28483
28484 fi
28485 done
28486
28487    fi
28488
28489    if test $have_xattr = yes; then
28490       have_extattr_string_in_libc=no
28491       for ac_func in extattr_namespace_to_string extattr_string_to_namespace
28492 do :
28493   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
28494 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
28495 eval as_val=\$$as_ac_var
28496    if test "x$as_val" = x""yes; then :
28497   cat >>confdefs.h <<_ACEOF
28498 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
28499 _ACEOF
28500
28501              have_extattr_string_in_libc=yes
28502
28503 $as_echo "#define HAVE_EXTATTR_NAMESPACE_TO_STRING 1" >>confdefs.h
28504
28505
28506 $as_echo "#define HAVE_EXTATTR_STRING_TO_NAMESPACE 1" >>confdefs.h
28507
28508
28509
28510 fi
28511 done
28512
28513
28514                         if test $have_extattr_string_in_libc = no; then
28515          { $as_echo "$as_me:${as_lineno-$LINENO}: checking for extattr_namespace_to_string extattr_string_to_namespace in -lutil" >&5
28516 $as_echo_n "checking for extattr_namespace_to_string extattr_string_to_namespace in -lutil... " >&6; }
28517 if test "${ac_cv_lib_util_extattr_namespace_to_string_extattr_string_to_namespace+set}" = set; then :
28518   $as_echo_n "(cached) " >&6
28519 else
28520   ac_check_lib_save_LIBS=$LIBS
28521 LIBS="-lutil  $LIBS"
28522 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28523 /* end confdefs.h.  */
28524
28525 /* Override any GCC internal prototype to avoid an error.
28526    Use char because int might match the return type of a GCC
28527    builtin and then its argument prototype would still apply.  */
28528 #ifdef __cplusplus
28529 extern "C"
28530 #endif
28531 char extattr_namespace_to_string extattr_string_to_namespace ();
28532 int
28533 main ()
28534 {
28535 return extattr_namespace_to_string extattr_string_to_namespace ();
28536   ;
28537   return 0;
28538 }
28539 _ACEOF
28540 if ac_fn_c_try_link "$LINENO"; then :
28541   ac_cv_lib_util_extattr_namespace_to_string_extattr_string_to_namespace=yes
28542 else
28543   ac_cv_lib_util_extattr_namespace_to_string_extattr_string_to_namespace=no
28544 fi
28545 rm -f core conftest.err conftest.$ac_objext \
28546     conftest$ac_exeext conftest.$ac_ext
28547 LIBS=$ac_check_lib_save_LIBS
28548 fi
28549 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_util_extattr_namespace_to_string_extattr_string_to_namespace" >&5
28550 $as_echo "$ac_cv_lib_util_extattr_namespace_to_string_extattr_string_to_namespace" >&6; }
28551 if test "x$ac_cv_lib_util_extattr_namespace_to_string_extattr_string_to_namespace" = x""yes; then :
28552
28553
28554 $as_echo "#define HAVE_EXTATTR_NAMESPACE_TO_STRING 1" >>confdefs.h
28555
28556
28557 $as_echo "#define HAVE_EXTATTR_STRING_TO_NAMESPACE 1" >>confdefs.h
28558
28559                 FDLIBS="-lutil $FDLIBS"
28560
28561
28562 fi
28563
28564       fi
28565    fi
28566
28567             if test $have_xattr = no; then
28568       ac_fn_c_check_header_mongrel "$LINENO" "sys/xattr.h" "ac_cv_header_sys_xattr_h" "$ac_includes_default"
28569 if test "x$ac_cv_header_sys_xattr_h" = x""yes; then :
28570
28571 $as_echo "#define HAVE_SYS_XATTR_H 1" >>confdefs.h
28572
28573 fi
28574
28575
28576       for ac_func in llistxattr lgetxattr lsetxattr
28577 do :
28578   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
28579 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
28580 eval as_val=\$$as_ac_var
28581    if test "x$as_val" = x""yes; then :
28582   cat >>confdefs.h <<_ACEOF
28583 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
28584 _ACEOF
28585
28586              have_xattr=yes
28587
28588 $as_echo "#define HAVE_LLISTXATTR 1" >>confdefs.h
28589
28590
28591 $as_echo "#define HAVE_LGETXATTR 1" >>confdefs.h
28592
28593
28594 $as_echo "#define HAVE_LSETXATTR 1" >>confdefs.h
28595
28596
28597
28598 fi
28599 done
28600
28601
28602       if test $have_xattr = no; then
28603          for ac_func in listxattr getxattr setxattr
28604 do :
28605   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
28606 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
28607 eval as_val=\$$as_ac_var
28608    if test "x$as_val" = x""yes; then :
28609   cat >>confdefs.h <<_ACEOF
28610 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
28611 _ACEOF
28612
28613                 have_xattr=yes
28614
28615 $as_echo "#define HAVE_LISTXATTR 1" >>confdefs.h
28616
28617
28618 $as_echo "#define HAVE_GETXATTR 1" >>confdefs.h
28619
28620
28621 $as_echo "#define HAVE_SETXATTR 1" >>confdefs.h
28622
28623
28624
28625 fi
28626 done
28627
28628       fi
28629    fi
28630
28631             if test $have_xattr = no; then
28632       ac_fn_c_check_header_mongrel "$LINENO" "sys/attr.h" "ac_cv_header_sys_attr_h" "$ac_includes_default"
28633 if test "x$ac_cv_header_sys_attr_h" = x""yes; then :
28634
28635 $as_echo "#define HAVE_SYS_ATTR_H 1" >>confdefs.h
28636
28637 fi
28638
28639
28640       ac_fn_c_check_header_mongrel "$LINENO" "sys/nvpair.h" "ac_cv_header_sys_nvpair_h" "$ac_includes_default"
28641 if test "x$ac_cv_header_sys_nvpair_h" = x""yes; then :
28642
28643 $as_echo "#define HAVE_SYS_NVPAIR_H 1" >>confdefs.h
28644
28645 fi
28646
28647
28648       ac_fn_c_check_header_mongrel "$LINENO" "attr.h" "ac_cv_header_attr_h" "$ac_includes_default"
28649 if test "x$ac_cv_header_attr_h" = x""yes; then :
28650
28651 $as_echo "#define HAVE_ATTR_H 1" >>confdefs.h
28652
28653 fi
28654
28655
28656
28657       for ac_func in openat fstatat unlinkat fchownat futimesat
28658 do :
28659   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
28660 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
28661 eval as_val=\$$as_ac_var
28662    if test "x$as_val" = x""yes; then :
28663   cat >>confdefs.h <<_ACEOF
28664 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
28665 _ACEOF
28666
28667              have_xattr=yes
28668
28669 $as_echo "#define HAVE_OPENAT 1" >>confdefs.h
28670
28671
28672 $as_echo "#define HAVE_FSTATAT 1" >>confdefs.h
28673
28674
28675 $as_echo "#define HAVE_UNLINKAT 1" >>confdefs.h
28676
28677
28678 $as_echo "#define HAVE_FCHOWNAT 1" >>confdefs.h
28679
28680
28681 $as_echo "#define HAVE_FUTIMESAT 1" >>confdefs.h
28682
28683
28684
28685 fi
28686 done
28687
28688
28689       if test $have_xattr = yes; then
28690          { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nvlist_next_nvpair in -lnvpair" >&5
28691 $as_echo_n "checking for nvlist_next_nvpair in -lnvpair... " >&6; }
28692 if test "${ac_cv_lib_nvpair_nvlist_next_nvpair+set}" = set; then :
28693   $as_echo_n "(cached) " >&6
28694 else
28695   ac_check_lib_save_LIBS=$LIBS
28696 LIBS="-lnvpair  $LIBS"
28697 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28698 /* end confdefs.h.  */
28699
28700 /* Override any GCC internal prototype to avoid an error.
28701    Use char because int might match the return type of a GCC
28702    builtin and then its argument prototype would still apply.  */
28703 #ifdef __cplusplus
28704 extern "C"
28705 #endif
28706 char nvlist_next_nvpair ();
28707 int
28708 main ()
28709 {
28710 return nvlist_next_nvpair ();
28711   ;
28712   return 0;
28713 }
28714 _ACEOF
28715 if ac_fn_c_try_link "$LINENO"; then :
28716   ac_cv_lib_nvpair_nvlist_next_nvpair=yes
28717 else
28718   ac_cv_lib_nvpair_nvlist_next_nvpair=no
28719 fi
28720 rm -f core conftest.err conftest.$ac_objext \
28721     conftest$ac_exeext conftest.$ac_ext
28722 LIBS=$ac_check_lib_save_LIBS
28723 fi
28724 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nvpair_nvlist_next_nvpair" >&5
28725 $as_echo "$ac_cv_lib_nvpair_nvlist_next_nvpair" >&6; }
28726 if test "x$ac_cv_lib_nvpair_nvlist_next_nvpair" = x""yes; then :
28727
28728
28729 $as_echo "#define HAVE_NVLIST_NEXT_NVPAIR 1" >>confdefs.h
28730
28731                 FDLIBS="-lnvpair $FDLIBS"
28732
28733
28734 fi
28735
28736       fi
28737    fi
28738
28739    if test x$support_xattr = xyes -a $have_xattr != yes; then
28740       as_fn_error "xattr support explicitly enabled but no supported xattr implementation found,
28741   please either load the xattr libraries or rerun configure without --enable-xattr" "$LINENO" 5
28742    else
28743       if test $have_xattr = yes; then
28744
28745 $as_echo "#define HAVE_XATTR 1" >>confdefs.h
28746
28747       fi
28748    fi
28749 fi
28750
28751 PTHREAD_LIB=""
28752 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_create in -lpthread" >&5
28753 $as_echo_n "checking for pthread_create in -lpthread... " >&6; }
28754 if test "${ac_cv_lib_pthread_pthread_create+set}" = set; then :
28755   $as_echo_n "(cached) " >&6
28756 else
28757   ac_check_lib_save_LIBS=$LIBS
28758 LIBS="-lpthread  $LIBS"
28759 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28760 /* end confdefs.h.  */
28761
28762 /* Override any GCC internal prototype to avoid an error.
28763    Use char because int might match the return type of a GCC
28764    builtin and then its argument prototype would still apply.  */
28765 #ifdef __cplusplus
28766 extern "C"
28767 #endif
28768 char pthread_create ();
28769 int
28770 main ()
28771 {
28772 return pthread_create ();
28773   ;
28774   return 0;
28775 }
28776 _ACEOF
28777 if ac_fn_c_try_link "$LINENO"; then :
28778   ac_cv_lib_pthread_pthread_create=yes
28779 else
28780   ac_cv_lib_pthread_pthread_create=no
28781 fi
28782 rm -f core conftest.err conftest.$ac_objext \
28783     conftest$ac_exeext conftest.$ac_ext
28784 LIBS=$ac_check_lib_save_LIBS
28785 fi
28786 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_pthread_create" >&5
28787 $as_echo "$ac_cv_lib_pthread_pthread_create" >&6; }
28788 if test "x$ac_cv_lib_pthread_pthread_create" = x""yes; then :
28789   PTHREAD_LIB="-lpthread"
28790 else
28791
28792        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_create in -lpthreads" >&5
28793 $as_echo_n "checking for pthread_create in -lpthreads... " >&6; }
28794 if test "${ac_cv_lib_pthreads_pthread_create+set}" = set; then :
28795   $as_echo_n "(cached) " >&6
28796 else
28797   ac_check_lib_save_LIBS=$LIBS
28798 LIBS="-lpthreads  $LIBS"
28799 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28800 /* end confdefs.h.  */
28801
28802 /* Override any GCC internal prototype to avoid an error.
28803    Use char because int might match the return type of a GCC
28804    builtin and then its argument prototype would still apply.  */
28805 #ifdef __cplusplus
28806 extern "C"
28807 #endif
28808 char pthread_create ();
28809 int
28810 main ()
28811 {
28812 return pthread_create ();
28813   ;
28814   return 0;
28815 }
28816 _ACEOF
28817 if ac_fn_c_try_link "$LINENO"; then :
28818   ac_cv_lib_pthreads_pthread_create=yes
28819 else
28820   ac_cv_lib_pthreads_pthread_create=no
28821 fi
28822 rm -f core conftest.err conftest.$ac_objext \
28823     conftest$ac_exeext conftest.$ac_ext
28824 LIBS=$ac_check_lib_save_LIBS
28825 fi
28826 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthreads_pthread_create" >&5
28827 $as_echo "$ac_cv_lib_pthreads_pthread_create" >&6; }
28828 if test "x$ac_cv_lib_pthreads_pthread_create" = x""yes; then :
28829   PTHREAD_LIB="-lpthreads"
28830 else
28831
28832               { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_create in -lc_r" >&5
28833 $as_echo_n "checking for pthread_create in -lc_r... " >&6; }
28834 if test "${ac_cv_lib_c_r_pthread_create+set}" = set; then :
28835   $as_echo_n "(cached) " >&6
28836 else
28837   ac_check_lib_save_LIBS=$LIBS
28838 LIBS="-lc_r  $LIBS"
28839 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28840 /* end confdefs.h.  */
28841
28842 /* Override any GCC internal prototype to avoid an error.
28843    Use char because int might match the return type of a GCC
28844    builtin and then its argument prototype would still apply.  */
28845 #ifdef __cplusplus
28846 extern "C"
28847 #endif
28848 char pthread_create ();
28849 int
28850 main ()
28851 {
28852 return pthread_create ();
28853   ;
28854   return 0;
28855 }
28856 _ACEOF
28857 if ac_fn_c_try_link "$LINENO"; then :
28858   ac_cv_lib_c_r_pthread_create=yes
28859 else
28860   ac_cv_lib_c_r_pthread_create=no
28861 fi
28862 rm -f core conftest.err conftest.$ac_objext \
28863     conftest$ac_exeext conftest.$ac_ext
28864 LIBS=$ac_check_lib_save_LIBS
28865 fi
28866 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_r_pthread_create" >&5
28867 $as_echo "$ac_cv_lib_c_r_pthread_create" >&6; }
28868 if test "x$ac_cv_lib_c_r_pthread_create" = x""yes; then :
28869   PTHREAD_LIB="-lc_r"
28870 else
28871
28872                      ac_fn_c_check_func "$LINENO" "pthread_create" "ac_cv_func_pthread_create"
28873 if test "x$ac_cv_func_pthread_create" = x""yes; then :
28874
28875 fi
28876
28877
28878
28879 fi
28880
28881
28882
28883 fi
28884
28885
28886
28887 fi
28888
28889
28890 for ac_header in sys/prctl.h sys/capability.h
28891 do :
28892   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
28893 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
28894 eval as_val=\$$as_ac_Header
28895    if test "x$as_val" = x""yes; then :
28896   cat >>confdefs.h <<_ACEOF
28897 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
28898 _ACEOF
28899
28900 fi
28901
28902 done
28903
28904 for ac_func in prctl setreuid
28905 do :
28906   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
28907 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
28908 eval as_val=\$$as_ac_var
28909    if test "x$as_val" = x""yes; then :
28910   cat >>confdefs.h <<_ACEOF
28911 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
28912 _ACEOF
28913
28914 fi
28915 done
28916
28917 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cap_set_proc in -lcap" >&5
28918 $as_echo_n "checking for cap_set_proc in -lcap... " >&6; }
28919 if test "${ac_cv_lib_cap_cap_set_proc+set}" = set; then :
28920   $as_echo_n "(cached) " >&6
28921 else
28922   ac_check_lib_save_LIBS=$LIBS
28923 LIBS="-lcap  $LIBS"
28924 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28925 /* end confdefs.h.  */
28926
28927 /* Override any GCC internal prototype to avoid an error.
28928    Use char because int might match the return type of a GCC
28929    builtin and then its argument prototype would still apply.  */
28930 #ifdef __cplusplus
28931 extern "C"
28932 #endif
28933 char cap_set_proc ();
28934 int
28935 main ()
28936 {
28937 return cap_set_proc ();
28938   ;
28939   return 0;
28940 }
28941 _ACEOF
28942 if ac_fn_c_try_link "$LINENO"; then :
28943   ac_cv_lib_cap_cap_set_proc=yes
28944 else
28945   ac_cv_lib_cap_cap_set_proc=no
28946 fi
28947 rm -f core conftest.err conftest.$ac_objext \
28948     conftest$ac_exeext conftest.$ac_ext
28949 LIBS=$ac_check_lib_save_LIBS
28950 fi
28951 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_cap_cap_set_proc" >&5
28952 $as_echo "$ac_cv_lib_cap_cap_set_proc" >&6; }
28953 if test "x$ac_cv_lib_cap_cap_set_proc" = x""yes; then :
28954   CAP_LIBS="-lcap"
28955 else
28956   CAP_LIBS=
28957 fi
28958
28959 if test x$CAP_LIBS = x-lcap; then
28960
28961 $as_echo "#define HAVE_LIBCAP 1" >>confdefs.h
28962
28963 fi
28964
28965
28966
28967 $as_echo "#define FDLIBS 1" >>confdefs.h
28968
28969
28970 CFLAGS=${CFLAGS--O}
28971
28972 if test x$have_gcc = xyes ; then
28973    CPPFLAGS="$CPPFLAGS -fno-strict-aliasing -fno-exceptions -fno-rtti"
28974    CFLAGS="$CFLAGS -fno-strict-aliasing -fno-exceptions -fno-rtti"
28975 fi
28976 LDFLAGS=${LDFLAGS--O}
28977 DB_LIBS="${SQL_LFLAGS}"
28978 CPPFLAGS="$CPPFLAGS"
28979 CFLAGS="$CFLAGS"
28980
28981
28982
28983
28984
28985
28986
28987
28988
28989
28990
28991
28992
28993
28994
28995
28996 OBJLIST=
28997
28998
28999 lld="lld"
29000 llu="llu"
29001
29002 WCFLAGS=
29003 WLDFLAGS=
29004
29005 PFILES="platforms/Makefile"
29006 PSCMD="ps -e"
29007 WIN32=
29008 MACOSX=
29009
29010 hostname=`uname -n | cut -d '.' -f 1`
29011 if test x${hostname} = x ; then
29012    hostname="localhost"
29013 fi
29014 ping -c 1 $hostname 2>/dev/null 1>/dev/null
29015 if test ! $? = 0; then
29016   hostname="localhost"
29017 fi
29018
29019 case "$DISTNAME" in
29020 aix)
29021    DISTVER=`uname -r`
29022    PSCMD="ps -e -o pid,comm"
29023    PFILES="${PFILES} \
29024       platforms/aix/Makefile"
29025    TAPEDRIVE="/dev/rmt0.1"
29026   ;;
29027 alpha)
29028    DISTVER=`uname -r`
29029    PTHREAD_LIB="-lpthread -lexc"
29030    if test "${CC}" = "gcc" ; then
29031       lld="lld"
29032       llu="llu"
29033    else
29034       lld="ld"
29035       llu="lu"
29036    fi
29037    TAPEDRIVE="/dev/nrmt0"
29038   ;;
29039 bsdi)
29040    DISTVER=`uname -a |awk '{print $3}'`
29041    TAPEDRIVE="/dev/nrmt0"
29042    PTHREAD_LIB="-pthread"
29043    CFLAGS="${CFLAGS} -pthread"
29044    PSCMD="ps -ax -o pid,command"
29045    lld="qd"
29046    llu="qu"
29047    PFILES="${PFILES} \
29048        platforms/bsdi/Makefile \
29049        platforms/bsdi/bacula-fd \
29050        platforms/bsdi/bacula-sd \
29051        platforms/bsdi/bacula-dir"
29052    largefile_support="yes"
29053   ;;
29054 cygwin)
29055    DISTVER=`uname -a |awk '{print $3}'`
29056    TAPEDRIVE="/dev/nrst0"
29057    WIN32=win32
29058    WCFLAGS="-mwindows"
29059    WLDFLAGS="-mwindows"
29060   ;;
29061 darwin)
29062    DISTVER=`uname -r`
29063    TAPEDRIVE="/dev/nst0"
29064    PSCMD="ps -e -o pid,command"
29065    MACOSX=macosx
29066    PFILES="${PFILES} \
29067       platforms/darwin/Makefile"
29068   ;;
29069 osx)
29070    DISTVER=`uname -r`
29071    TAPEDRIVE="/dev/nst0"
29072    PSCMD="ps -e -o pid,command"
29073    MACOSX=macosx
29074    PFILES="${PFILES} \
29075       platforms/osx/Makefile"
29076   ;;
29077 debian)
29078    if `test -f /etc/apt/sources.list && grep -q ubuntu /etc/apt/sources.list`; then
29079       DISTNAME="ubuntu"
29080    fi
29081    DISTVER=`cat /etc/debian_version`
29082    if test -f /etc/lsb-release ; then
29083       . /etc/lsb-release
29084       if test "x$DISTRIB_ID" != "x" ; then
29085          DISTNAME=$DISTRIB_ID
29086       fi
29087       if test "x$DISTRIB_RELEASE" != "x" ; then
29088          DISTVER=$DISTRIB_RELEASE
29089       fi
29090    fi
29091    if test "$DISTNAME" = "Ubuntu" ; then
29092       DISTNAME="ubuntu"
29093    fi
29094    TAPEDRIVE="/dev/nst0"
29095    PSCMD="ps -e -o pid,command"
29096    if test "$DISTNAME" = "ubuntu" ; then
29097       PFILES="${PFILES} \
29098          platforms/ubuntu/Makefile \
29099          platforms/ubuntu/bacula-fd \
29100          platforms/ubuntu/bacula-sd \
29101          platforms/ubuntu/bacula-dir"
29102    else
29103       PFILES="${PFILES} \
29104          platforms/debian/Makefile \
29105          platforms/debian/bacula-fd \
29106          platforms/debian/bacula-sd \
29107          platforms/debian/bacula-dir"
29108    fi
29109   ;;
29110 freebsd)
29111    DISTVER=`uname -a |awk '{print $3}'`
29112    VER=`echo $DISTVER | cut -c 1`
29113    if test x$VER = x4 ; then
29114       PTHREAD_LIB="${PTHREAD_LIBS:--pthread}"
29115       CFLAGS="${CFLAGS} ${PTHREAD_CFLAGS:--pthread}"
29116    fi
29117    lld="qd"
29118    llu="qu"
29119    TAPEDRIVE="/dev/nrsa0"
29120    PSCMD="ps -ax -o pid,command"
29121    PFILES="${PFILES} \
29122        platforms/freebsd/Makefile \
29123        platforms/freebsd/bacula-fd \
29124        platforms/freebsd/bacula-sd \
29125        platforms/freebsd/bacula-dir"
29126    largefile_support="yes"
29127   ;;
29128 hpux)
29129    PSCMD="UNIX95=1; ps -e -o pid,comm"
29130    CFLAGS="${CFLAGS} -D_XOPEN_SOURCE_EXTENDED=1"
29131    DISTVER=`uname -r`
29132    TAPEDRIVE="/dev/rmt/0hnb"
29133    PTHREAD_LIB="-lpthread"
29134    $as_echo "#define _INCLUDE_LONGLONG 1" >>confdefs.h
29135
29136   ;;
29137 irix)
29138    DISTVER=`uname -r`
29139    TAPEDRIVE="/dev/rmt/0cbn"
29140    PSCMD="ps -e -o pid,comm"
29141    PFILES="${PFILES} \
29142        platforms/irix/Makefile \
29143        platforms/irix/bacula-fd \
29144        platforms/irix/bacula-sd \
29145        platforms/irix/bacula-dir"
29146   ;;
29147 netbsd)
29148    DISTVER=`uname -a |awk '{print $3}'`
29149    lld="qd"
29150    llu="qu"
29151    TAPEDRIVE="/dev/nrst0"
29152    PSCMD="ps -ax -o pid,command"
29153    PTHREAD_LIB="-pthread"
29154    CFLAGS="${CFLAGS} -pthread"
29155   ;;
29156 openbsd)
29157    DISTVER=`uname -a |awk '{print $3}'`
29158    lld="qd"
29159    llu="qu"
29160    TAPEDRIVE="/dev/nrst0"
29161    PSCMD="ps -ax -o pid,command"
29162    PTHREAD_LIB="-pthread"
29163    CFLAGS="${CFLAGS} -pthread"
29164    PFILES="${PFILES} \
29165        platforms/openbsd/Makefile \
29166        platforms/openbsd/bacula-fd \
29167        platforms/openbsd/bacula-sd \
29168        platforms/openbsd/bacula-dir"
29169   ;;
29170 redhat)
29171    if test -f /etc/whitebox-release ; then
29172       f=/etc/whitebox-release
29173    else
29174       f=/etc/redhat-release
29175    fi
29176    if test `cat $f | grep release |\
29177          cut -f 3 -d ' '`x = "Enterprise"x ; then
29178       DISTVER="Enterprise "`cat $f | grep release |\
29179           cut -f 6 -d ' '`
29180    else
29181        DISTVER=`cat /etc/redhat-release | grep release |\
29182            cut -f 5 -d ' '`
29183    fi
29184    TAPEDRIVE="/dev/nst0"
29185    PSCMD="ps -e -o pid,command"
29186    PFILES="${PFILES} \
29187        platforms/redhat/Makefile \
29188        platforms/redhat/bacula-fd \
29189        platforms/redhat/bacula-sd \
29190        platforms/redhat/bacula-dir
29191        "
29192   ;;
29193 mandrake)
29194    DISTVER=`cat /etc/mandrake-release | grep release |\
29195       cut -f 5 -d ' '`
29196    TAPEDRIVE="/dev/nst0"
29197    PSCMD="ps -e -o pid,command"
29198    PFILES="${PFILES} \
29199        platforms/mandrake/Makefile \
29200        platforms/mandrake/bacula-fd \
29201        platforms/mandrake/bacula-sd \
29202        platforms/mandrake/bacula-dir \
29203        "
29204   ;;
29205 gentoo)
29206    DISTVER=`awk '/version / {print $5}' < /etc/gentoo-release`
29207    TAPEDRIVE="/dev/nst0"
29208    PSCMD="ps -e -o pid,command"
29209    PFILES="${PFILES} \
29210        platforms/gentoo/Makefile \
29211     platforms/gentoo/bacula-init \
29212        platforms/gentoo/bacula-fd \
29213        platforms/gentoo/bacula-sd \
29214        platforms/gentoo/bacula-dir"
29215   ;;
29216 slackware)
29217    DISTVER=`cat /etc/slackware-version`
29218    TAPEDRIVE="/dev/nst0"
29219    PSCMD="ps -e -o pid,command"
29220    PFILES="${PFILES} \
29221        platforms/slackware/Makefile \
29222        platforms/slackware/rc.bacula-fd \
29223        platforms/slackware/rc.bacula-sd \
29224        platforms/slackware/rc.bacula-dir\
29225        platforms/slackware/functions.bacula"
29226   ;;
29227 solaris)
29228    DISTVER=`uname -r`
29229    TAPEDRIVE="/dev/rmt/0cbn"
29230    PSCMD="ps -e -o pid,comm"
29231    PFILES="${PFILES} \
29232        platforms/solaris/Makefile \
29233        platforms/solaris/bacula-fd \
29234        platforms/solaris/bacula-sd \
29235        platforms/solaris/bacula-dir"
29236    if test x$DISTVER = x5.6 ; then
29237        $as_echo "#define HAVE_OLD_SOCKOPT 1" >>confdefs.h
29238
29239    fi
29240    LIBS="$LIBS -lresolv -lrt"
29241   ;;
29242 suse)
29243    DISTVER=`cat /etc/SuSE-release |grep VERSION|\
29244        cut -f 3 -d ' '`
29245    TAPEDRIVE="/dev/nst0"
29246    PSCMD="ps -e -o pid,command"
29247    PFILES="${PFILES} \
29248        platforms/suse/Makefile \
29249        platforms/suse/bacula-fd \
29250        platforms/suse/bacula-sd \
29251        platforms/suse/bacula-dir \
29252        platforms/suse/bacula"
29253   ;;
29254 suse5)
29255    DISTNAME=suse
29256    DISTVER=5.x
29257    TAPEDRIVE="/dev/nst0"
29258    PSCMD="ps -e -o pid,command"
29259    PFILES="${PFILES} \
29260        platforms/suse/Makefile \
29261        platforms/suse/bacula-fd \
29262        platforms/suse/bacula-sd \
29263        platforms/suse/bacula-dir"
29264   ;;
29265 unknown)
29266    DISTVER=unknown
29267    TAPEDRIVE="/dev/nst0"
29268   ;;
29269 *)
29270   echo " === Something went wrong. Unknown DISTNAME $DISTNAME ==="
29271   ;;
29272 esac
29273
29274
29275
29276 LIBS="$PTHREAD_LIB $LIBS"
29277
29278 cat >>confdefs.h <<_ACEOF
29279 #define lld "$lld"
29280 _ACEOF
29281
29282 cat >>confdefs.h <<_ACEOF
29283 #define llu "$llu"
29284 _ACEOF
29285
29286
29287
29288
29289
29290
29291
29292
29293 MCOMMON=./autoconf/Make.common
29294
29295
29296 if test "x${subsysdir}" = "x${sbindir}" ; then
29297    echo " "
29298    echo " "
29299    echo "You have set both --sbindir and --with-subsys-dir"
29300    echo "  equal to: ${subsysdir} "
29301    echo "This is not permitted. Please reconfigure."
29302    echo " "
29303    echo "Aborting configuration ..."
29304    echo " "
29305    echo " "
29306    exit 1
29307 fi
29308
29309 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_bacula_database src/cats/update_bacula_tables src/cats/grant_bacula_privileges src/cats/make_bacula_tables src/cats/drop_bacula_tables src/cats/drop_bacula_database src/findlib/Makefile src/tools/Makefile src/plugins/fd/Makefile src/plugins/sd/Makefile src/plugins/dir/Makefile src/win32/Makefile.inc po/Makefile.in updatedb/update_mysql_tables_9_to_10 updatedb/update_sqlite3_tables_9_to_10 updatedb/update_postgresql_tables_9_to_10 updatedb/update_mysql_tables_10_to_11 updatedb/update_sqlite3_tables_10_to_11 updatedb/update_postgresql_tables_10_to_11 updatedb/update_mysql_tables_11_to_12 updatedb/update_sqlite3_tables_11_to_12 updatedb/update_postgresql_tables_11_to_12 examples/nagios/check_bacula/Makefile $PFILES"
29310
29311 ac_config_commands="$ac_config_commands default"
29312
29313 cat >confcache <<\_ACEOF
29314 # This file is a shell script that caches the results of configure
29315 # tests run on this system so they can be shared between configure
29316 # scripts and configure runs, see configure's option --config-cache.
29317 # It is not useful on other systems.  If it contains results you don't
29318 # want to keep, you may remove or edit it.
29319 #
29320 # config.status only pays attention to the cache file if you give it
29321 # the --recheck option to rerun configure.
29322 #
29323 # `ac_cv_env_foo' variables (set or unset) will be overridden when
29324 # loading this file, other *unset* `ac_cv_foo' will be assigned the
29325 # following values.
29326
29327 _ACEOF
29328
29329 # The following way of writing the cache mishandles newlines in values,
29330 # but we know of no workaround that is simple, portable, and efficient.
29331 # So, we kill variables containing newlines.
29332 # Ultrix sh set writes to stderr and can't be redirected directly,
29333 # and sets the high bit in the cache file unless we assign to the vars.
29334 (
29335   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
29336     eval ac_val=\$$ac_var
29337     case $ac_val in #(
29338     *${as_nl}*)
29339       case $ac_var in #(
29340       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
29341 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
29342       esac
29343       case $ac_var in #(
29344       _ | IFS | as_nl) ;; #(
29345       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
29346       *) { eval $ac_var=; unset $ac_var;} ;;
29347       esac ;;
29348     esac
29349   done
29350
29351   (set) 2>&1 |
29352     case $as_nl`(ac_space=' '; set) 2>&1` in #(
29353     *${as_nl}ac_space=\ *)
29354       # `set' does not quote correctly, so add quotes: double-quote
29355       # substitution turns \\\\ into \\, and sed turns \\ into \.
29356       sed -n \
29357         "s/'/'\\\\''/g;
29358           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
29359       ;; #(
29360     *)
29361       # `set' quotes correctly as required by POSIX, so do not add quotes.
29362       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
29363       ;;
29364     esac |
29365     sort
29366 ) |
29367   sed '
29368      /^ac_cv_env_/b end
29369      t clear
29370      :clear
29371      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
29372      t end
29373      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
29374      :end' >>confcache
29375 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
29376   if test -w "$cache_file"; then
29377     test "x$cache_file" != "x/dev/null" &&
29378       { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
29379 $as_echo "$as_me: updating cache $cache_file" >&6;}
29380     cat confcache >$cache_file
29381   else
29382     { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
29383 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
29384   fi
29385 fi
29386 rm -f confcache
29387
29388 test "x$prefix" = xNONE && prefix=$ac_default_prefix
29389 # Let make expand exec_prefix.
29390 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
29391
29392 DEFS=-DHAVE_CONFIG_H
29393
29394 ac_libobjs=
29395 ac_ltlibobjs=
29396 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
29397   # 1. Remove the extension, and $U if already installed.
29398   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
29399   ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
29400   # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
29401   #    will be set to the directory where LIBOBJS objects are built.
29402   as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
29403   as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
29404 done
29405 LIBOBJS=$ac_libobjs
29406
29407 LTLIBOBJS=$ac_ltlibobjs
29408
29409
29410
29411 : ${CONFIG_STATUS=./config.status}
29412 ac_write_fail=0
29413 ac_clean_files_save=$ac_clean_files
29414 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
29415 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
29416 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
29417 as_write_fail=0
29418 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
29419 #! $SHELL
29420 # Generated by $as_me.
29421 # Run this file to recreate the current configuration.
29422 # Compiler output produced by configure, useful for debugging
29423 # configure, is in config.log if it exists.
29424
29425 debug=false
29426 ac_cs_recheck=false
29427 ac_cs_silent=false
29428
29429 SHELL=\${CONFIG_SHELL-$SHELL}
29430 export SHELL
29431 _ASEOF
29432 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
29433 ## -------------------- ##
29434 ## M4sh Initialization. ##
29435 ## -------------------- ##
29436
29437 # Be more Bourne compatible
29438 DUALCASE=1; export DUALCASE # for MKS sh
29439 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
29440   emulate sh
29441   NULLCMD=:
29442   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
29443   # is contrary to our usage.  Disable this feature.
29444   alias -g '${1+"$@"}'='"$@"'
29445   setopt NO_GLOB_SUBST
29446 else
29447   case `(set -o) 2>/dev/null` in #(
29448   *posix*) :
29449     set -o posix ;; #(
29450   *) :
29451      ;;
29452 esac
29453 fi
29454
29455
29456 as_nl='
29457 '
29458 export as_nl
29459 # Printing a long string crashes Solaris 7 /usr/bin/printf.
29460 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
29461 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
29462 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
29463 # Prefer a ksh shell builtin over an external printf program on Solaris,
29464 # but without wasting forks for bash or zsh.
29465 if test -z "$BASH_VERSION$ZSH_VERSION" \
29466     && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
29467   as_echo='print -r --'
29468   as_echo_n='print -rn --'
29469 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
29470   as_echo='printf %s\n'
29471   as_echo_n='printf %s'
29472 else
29473   if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
29474     as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
29475     as_echo_n='/usr/ucb/echo -n'
29476   else
29477     as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
29478     as_echo_n_body='eval
29479       arg=$1;
29480       case $arg in #(
29481       *"$as_nl"*)
29482         expr "X$arg" : "X\\(.*\\)$as_nl";
29483         arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
29484       esac;
29485       expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
29486     '
29487     export as_echo_n_body
29488     as_echo_n='sh -c $as_echo_n_body as_echo'
29489   fi
29490   export as_echo_body
29491   as_echo='sh -c $as_echo_body as_echo'
29492 fi
29493
29494 # The user is always right.
29495 if test "${PATH_SEPARATOR+set}" != set; then
29496   PATH_SEPARATOR=:
29497   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
29498     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
29499       PATH_SEPARATOR=';'
29500   }
29501 fi
29502
29503
29504 # IFS
29505 # We need space, tab and new line, in precisely that order.  Quoting is
29506 # there to prevent editors from complaining about space-tab.
29507 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
29508 # splitting by setting IFS to empty value.)
29509 IFS=" ""        $as_nl"
29510
29511 # Find who we are.  Look in the path if we contain no directory separator.
29512 case $0 in #((
29513   *[\\/]* ) as_myself=$0 ;;
29514   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29515 for as_dir in $PATH
29516 do
29517   IFS=$as_save_IFS
29518   test -z "$as_dir" && as_dir=.
29519     test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
29520   done
29521 IFS=$as_save_IFS
29522
29523      ;;
29524 esac
29525 # We did not find ourselves, most probably we were run as `sh COMMAND'
29526 # in which case we are not to be found in the path.
29527 if test "x$as_myself" = x; then
29528   as_myself=$0
29529 fi
29530 if test ! -f "$as_myself"; then
29531   $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
29532   exit 1
29533 fi
29534
29535 # Unset variables that we do not need and which cause bugs (e.g. in
29536 # pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
29537 # suppresses any "Segmentation fault" message there.  '((' could
29538 # trigger a bug in pdksh 5.2.14.
29539 for as_var in BASH_ENV ENV MAIL MAILPATH
29540 do eval test x\${$as_var+set} = xset \
29541   && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
29542 done
29543 PS1='$ '
29544 PS2='> '
29545 PS4='+ '
29546
29547 # NLS nuisances.
29548 LC_ALL=C
29549 export LC_ALL
29550 LANGUAGE=C
29551 export LANGUAGE
29552
29553 # CDPATH.
29554 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
29555
29556
29557 # as_fn_error ERROR [LINENO LOG_FD]
29558 # ---------------------------------
29559 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
29560 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
29561 # script with status $?, using 1 if that was 0.
29562 as_fn_error ()
29563 {
29564   as_status=$?; test $as_status -eq 0 && as_status=1
29565   if test "$3"; then
29566     as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
29567     $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
29568   fi
29569   $as_echo "$as_me: error: $1" >&2
29570   as_fn_exit $as_status
29571 } # as_fn_error
29572
29573
29574 # as_fn_set_status STATUS
29575 # -----------------------
29576 # Set $? to STATUS, without forking.
29577 as_fn_set_status ()
29578 {
29579   return $1
29580 } # as_fn_set_status
29581
29582 # as_fn_exit STATUS
29583 # -----------------
29584 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
29585 as_fn_exit ()
29586 {
29587   set +e
29588   as_fn_set_status $1
29589   exit $1
29590 } # as_fn_exit
29591
29592 # as_fn_unset VAR
29593 # ---------------
29594 # Portably unset VAR.
29595 as_fn_unset ()
29596 {
29597   { eval $1=; unset $1;}
29598 }
29599 as_unset=as_fn_unset
29600 # as_fn_append VAR VALUE
29601 # ----------------------
29602 # Append the text in VALUE to the end of the definition contained in VAR. Take
29603 # advantage of any shell optimizations that allow amortized linear growth over
29604 # repeated appends, instead of the typical quadratic growth present in naive
29605 # implementations.
29606 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
29607   eval 'as_fn_append ()
29608   {
29609     eval $1+=\$2
29610   }'
29611 else
29612   as_fn_append ()
29613   {
29614     eval $1=\$$1\$2
29615   }
29616 fi # as_fn_append
29617
29618 # as_fn_arith ARG...
29619 # ------------------
29620 # Perform arithmetic evaluation on the ARGs, and store the result in the
29621 # global $as_val. Take advantage of shells that can avoid forks. The arguments
29622 # must be portable across $(()) and expr.
29623 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
29624   eval 'as_fn_arith ()
29625   {
29626     as_val=$(( $* ))
29627   }'
29628 else
29629   as_fn_arith ()
29630   {
29631     as_val=`expr "$@" || test $? -eq 1`
29632   }
29633 fi # as_fn_arith
29634
29635
29636 if expr a : '\(a\)' >/dev/null 2>&1 &&
29637    test "X`expr 00001 : '.*\(...\)'`" = X001; then
29638   as_expr=expr
29639 else
29640   as_expr=false
29641 fi
29642
29643 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
29644   as_basename=basename
29645 else
29646   as_basename=false
29647 fi
29648
29649 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
29650   as_dirname=dirname
29651 else
29652   as_dirname=false
29653 fi
29654
29655 as_me=`$as_basename -- "$0" ||
29656 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
29657          X"$0" : 'X\(//\)$' \| \
29658          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
29659 $as_echo X/"$0" |
29660     sed '/^.*\/\([^/][^/]*\)\/*$/{
29661             s//\1/
29662             q
29663           }
29664           /^X\/\(\/\/\)$/{
29665             s//\1/
29666             q
29667           }
29668           /^X\/\(\/\).*/{
29669             s//\1/
29670             q
29671           }
29672           s/.*/./; q'`
29673
29674 # Avoid depending upon Character Ranges.
29675 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
29676 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
29677 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
29678 as_cr_digits='0123456789'
29679 as_cr_alnum=$as_cr_Letters$as_cr_digits
29680
29681 ECHO_C= ECHO_N= ECHO_T=
29682 case `echo -n x` in #(((((
29683 -n*)
29684   case `echo 'xy\c'` in
29685   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
29686   xy)  ECHO_C='\c';;
29687   *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
29688        ECHO_T=' ';;
29689   esac;;
29690 *)
29691   ECHO_N='-n';;
29692 esac
29693
29694 rm -f conf$$ conf$$.exe conf$$.file
29695 if test -d conf$$.dir; then
29696   rm -f conf$$.dir/conf$$.file
29697 else
29698   rm -f conf$$.dir
29699   mkdir conf$$.dir 2>/dev/null
29700 fi
29701 if (echo >conf$$.file) 2>/dev/null; then
29702   if ln -s conf$$.file conf$$ 2>/dev/null; then
29703     as_ln_s='ln -s'
29704     # ... but there are two gotchas:
29705     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
29706     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
29707     # In both cases, we have to default to `cp -p'.
29708     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
29709       as_ln_s='cp -p'
29710   elif ln conf$$.file conf$$ 2>/dev/null; then
29711     as_ln_s=ln
29712   else
29713     as_ln_s='cp -p'
29714   fi
29715 else
29716   as_ln_s='cp -p'
29717 fi
29718 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
29719 rmdir conf$$.dir 2>/dev/null
29720
29721
29722 # as_fn_mkdir_p
29723 # -------------
29724 # Create "$as_dir" as a directory, including parents if necessary.
29725 as_fn_mkdir_p ()
29726 {
29727
29728   case $as_dir in #(
29729   -*) as_dir=./$as_dir;;
29730   esac
29731   test -d "$as_dir" || eval $as_mkdir_p || {
29732     as_dirs=
29733     while :; do
29734       case $as_dir in #(
29735       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
29736       *) as_qdir=$as_dir;;
29737       esac
29738       as_dirs="'$as_qdir' $as_dirs"
29739       as_dir=`$as_dirname -- "$as_dir" ||
29740 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
29741          X"$as_dir" : 'X\(//\)[^/]' \| \
29742          X"$as_dir" : 'X\(//\)$' \| \
29743          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
29744 $as_echo X"$as_dir" |
29745     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
29746             s//\1/
29747             q
29748           }
29749           /^X\(\/\/\)[^/].*/{
29750             s//\1/
29751             q
29752           }
29753           /^X\(\/\/\)$/{
29754             s//\1/
29755             q
29756           }
29757           /^X\(\/\).*/{
29758             s//\1/
29759             q
29760           }
29761           s/.*/./; q'`
29762       test -d "$as_dir" && break
29763     done
29764     test -z "$as_dirs" || eval "mkdir $as_dirs"
29765   } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
29766
29767
29768 } # as_fn_mkdir_p
29769 if mkdir -p . 2>/dev/null; then
29770   as_mkdir_p='mkdir -p "$as_dir"'
29771 else
29772   test -d ./-p && rmdir ./-p
29773   as_mkdir_p=false
29774 fi
29775
29776 if test -x / >/dev/null 2>&1; then
29777   as_test_x='test -x'
29778 else
29779   if ls -dL / >/dev/null 2>&1; then
29780     as_ls_L_option=L
29781   else
29782     as_ls_L_option=
29783   fi
29784   as_test_x='
29785     eval sh -c '\''
29786       if test -d "$1"; then
29787         test -d "$1/.";
29788       else
29789         case $1 in #(
29790         -*)set "./$1";;
29791         esac;
29792         case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
29793         ???[sx]*):;;*)false;;esac;fi
29794     '\'' sh
29795   '
29796 fi
29797 as_executable_p=$as_test_x
29798
29799 # Sed expression to map a string onto a valid CPP name.
29800 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
29801
29802 # Sed expression to map a string onto a valid variable name.
29803 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
29804
29805
29806 exec 6>&1
29807 ## ----------------------------------- ##
29808 ## Main body of $CONFIG_STATUS script. ##
29809 ## ----------------------------------- ##
29810 _ASEOF
29811 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
29812
29813 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
29814 # Save the log message, to keep $0 and so on meaningful, and to
29815 # report actual input values of CONFIG_FILES etc. instead of their
29816 # values after options handling.
29817 ac_log="
29818 This file was extended by $as_me, which was
29819 generated by GNU Autoconf 2.65.  Invocation command line was
29820
29821   CONFIG_FILES    = $CONFIG_FILES
29822   CONFIG_HEADERS  = $CONFIG_HEADERS
29823   CONFIG_LINKS    = $CONFIG_LINKS
29824   CONFIG_COMMANDS = $CONFIG_COMMANDS
29825   $ $0 $@
29826
29827 on `(hostname || uname -n) 2>/dev/null | sed 1q`
29828 "
29829
29830 _ACEOF
29831
29832 case $ac_config_files in *"
29833 "*) set x $ac_config_files; shift; ac_config_files=$*;;
29834 esac
29835
29836 case $ac_config_headers in *"
29837 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
29838 esac
29839
29840
29841 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
29842 # Files that config.status was made for.
29843 config_files="$ac_config_files"
29844 config_headers="$ac_config_headers"
29845 config_commands="$ac_config_commands"
29846
29847 _ACEOF
29848
29849 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
29850 ac_cs_usage="\
29851 \`$as_me' instantiates files and other configuration actions
29852 from templates according to the current configuration.  Unless the files
29853 and actions are specified as TAGs, all are instantiated by default.
29854
29855 Usage: $0 [OPTION]... [TAG]...
29856
29857   -h, --help       print this help, then exit
29858   -V, --version    print version number and configuration settings, then exit
29859       --config     print configuration, then exit
29860   -q, --quiet, --silent
29861                    do not print progress messages
29862   -d, --debug      don't remove temporary files
29863       --recheck    update $as_me by reconfiguring in the same conditions
29864       --file=FILE[:TEMPLATE]
29865                    instantiate the configuration file FILE
29866       --header=FILE[:TEMPLATE]
29867                    instantiate the configuration header FILE
29868
29869 Configuration files:
29870 $config_files
29871
29872 Configuration headers:
29873 $config_headers
29874
29875 Configuration commands:
29876 $config_commands
29877
29878 Report bugs to the package provider."
29879
29880 _ACEOF
29881 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
29882 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
29883 ac_cs_version="\\
29884 config.status
29885 configured by $0, generated by GNU Autoconf 2.65,
29886   with options \\"\$ac_cs_config\\"
29887
29888 Copyright (C) 2009 Free Software Foundation, Inc.
29889 This config.status script is free software; the Free Software Foundation
29890 gives unlimited permission to copy, distribute and modify it."
29891
29892 ac_pwd='$ac_pwd'
29893 srcdir='$srcdir'
29894 INSTALL='$INSTALL'
29895 AWK='$AWK'
29896 test -n "\$AWK" || AWK=awk
29897 _ACEOF
29898
29899 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
29900 # The default lists apply if the user does not specify any file.
29901 ac_need_defaults=:
29902 while test $# != 0
29903 do
29904   case $1 in
29905   --*=*)
29906     ac_option=`expr "X$1" : 'X\([^=]*\)='`
29907     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
29908     ac_shift=:
29909     ;;
29910   *)
29911     ac_option=$1
29912     ac_optarg=$2
29913     ac_shift=shift
29914     ;;
29915   esac
29916
29917   case $ac_option in
29918   # Handling of the options.
29919   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
29920     ac_cs_recheck=: ;;
29921   --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
29922     $as_echo "$ac_cs_version"; exit ;;
29923   --config | --confi | --conf | --con | --co | --c )
29924     $as_echo "$ac_cs_config"; exit ;;
29925   --debug | --debu | --deb | --de | --d | -d )
29926     debug=: ;;
29927   --file | --fil | --fi | --f )
29928     $ac_shift
29929     case $ac_optarg in
29930     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
29931     esac
29932     as_fn_append CONFIG_FILES " '$ac_optarg'"
29933     ac_need_defaults=false;;
29934   --header | --heade | --head | --hea )
29935     $ac_shift
29936     case $ac_optarg in
29937     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
29938     esac
29939     as_fn_append CONFIG_HEADERS " '$ac_optarg'"
29940     ac_need_defaults=false;;
29941   --he | --h)
29942     # Conflict between --help and --header
29943     as_fn_error "ambiguous option: \`$1'
29944 Try \`$0 --help' for more information.";;
29945   --help | --hel | -h )
29946     $as_echo "$ac_cs_usage"; exit ;;
29947   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
29948   | -silent | --silent | --silen | --sile | --sil | --si | --s)
29949     ac_cs_silent=: ;;
29950
29951   # This is an error.
29952   -*) as_fn_error "unrecognized option: \`$1'
29953 Try \`$0 --help' for more information." ;;
29954
29955   *) as_fn_append ac_config_targets " $1"
29956      ac_need_defaults=false ;;
29957
29958   esac
29959   shift
29960 done
29961
29962 ac_configure_extra_args=
29963
29964 if $ac_cs_silent; then
29965   exec 6>/dev/null
29966   ac_configure_extra_args="$ac_configure_extra_args --silent"
29967 fi
29968
29969 _ACEOF
29970 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
29971 if \$ac_cs_recheck; then
29972   set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
29973   shift
29974   \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
29975   CONFIG_SHELL='$SHELL'
29976   export CONFIG_SHELL
29977   exec "\$@"
29978 fi
29979
29980 _ACEOF
29981 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
29982 exec 5>>config.log
29983 {
29984   echo
29985   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
29986 ## Running $as_me. ##
29987 _ASBOX
29988   $as_echo "$ac_log"
29989 } >&5
29990
29991 _ACEOF
29992 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
29993 #
29994 # INIT-COMMANDS
29995 #
29996
29997
29998 # The HP-UX ksh and POSIX shell print the target directory to stdout
29999 # if CDPATH is set.
30000 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
30001
30002 sed_quote_subst='$sed_quote_subst'
30003 double_quote_subst='$double_quote_subst'
30004 delay_variable_subst='$delay_variable_subst'
30005 macro_version='`$ECHO "X$macro_version" | $Xsed -e "$delay_single_quote_subst"`'
30006 macro_revision='`$ECHO "X$macro_revision" | $Xsed -e "$delay_single_quote_subst"`'
30007 enable_shared='`$ECHO "X$enable_shared" | $Xsed -e "$delay_single_quote_subst"`'
30008 enable_static='`$ECHO "X$enable_static" | $Xsed -e "$delay_single_quote_subst"`'
30009 pic_mode='`$ECHO "X$pic_mode" | $Xsed -e "$delay_single_quote_subst"`'
30010 enable_fast_install='`$ECHO "X$enable_fast_install" | $Xsed -e "$delay_single_quote_subst"`'
30011 host_alias='`$ECHO "X$host_alias" | $Xsed -e "$delay_single_quote_subst"`'
30012 host='`$ECHO "X$host" | $Xsed -e "$delay_single_quote_subst"`'
30013 host_os='`$ECHO "X$host_os" | $Xsed -e "$delay_single_quote_subst"`'
30014 build_alias='`$ECHO "X$build_alias" | $Xsed -e "$delay_single_quote_subst"`'
30015 build='`$ECHO "X$build" | $Xsed -e "$delay_single_quote_subst"`'
30016 build_os='`$ECHO "X$build_os" | $Xsed -e "$delay_single_quote_subst"`'
30017 SED='`$ECHO "X$SED" | $Xsed -e "$delay_single_quote_subst"`'
30018 Xsed='`$ECHO "X$Xsed" | $Xsed -e "$delay_single_quote_subst"`'
30019 GREP='`$ECHO "X$GREP" | $Xsed -e "$delay_single_quote_subst"`'
30020 EGREP='`$ECHO "X$EGREP" | $Xsed -e "$delay_single_quote_subst"`'
30021 FGREP='`$ECHO "X$FGREP" | $Xsed -e "$delay_single_quote_subst"`'
30022 LD='`$ECHO "X$LD" | $Xsed -e "$delay_single_quote_subst"`'
30023 NM='`$ECHO "X$NM" | $Xsed -e "$delay_single_quote_subst"`'
30024 LN_S='`$ECHO "X$LN_S" | $Xsed -e "$delay_single_quote_subst"`'
30025 max_cmd_len='`$ECHO "X$max_cmd_len" | $Xsed -e "$delay_single_quote_subst"`'
30026 ac_objext='`$ECHO "X$ac_objext" | $Xsed -e "$delay_single_quote_subst"`'
30027 exeext='`$ECHO "X$exeext" | $Xsed -e "$delay_single_quote_subst"`'
30028 lt_unset='`$ECHO "X$lt_unset" | $Xsed -e "$delay_single_quote_subst"`'
30029 lt_SP2NL='`$ECHO "X$lt_SP2NL" | $Xsed -e "$delay_single_quote_subst"`'
30030 lt_NL2SP='`$ECHO "X$lt_NL2SP" | $Xsed -e "$delay_single_quote_subst"`'
30031 reload_flag='`$ECHO "X$reload_flag" | $Xsed -e "$delay_single_quote_subst"`'
30032 reload_cmds='`$ECHO "X$reload_cmds" | $Xsed -e "$delay_single_quote_subst"`'
30033 OBJDUMP='`$ECHO "X$OBJDUMP" | $Xsed -e "$delay_single_quote_subst"`'
30034 deplibs_check_method='`$ECHO "X$deplibs_check_method" | $Xsed -e "$delay_single_quote_subst"`'
30035 file_magic_cmd='`$ECHO "X$file_magic_cmd" | $Xsed -e "$delay_single_quote_subst"`'
30036 AR='`$ECHO "X$AR" | $Xsed -e "$delay_single_quote_subst"`'
30037 AR_FLAGS='`$ECHO "X$AR_FLAGS" | $Xsed -e "$delay_single_quote_subst"`'
30038 STRIP='`$ECHO "X$STRIP" | $Xsed -e "$delay_single_quote_subst"`'
30039 RANLIB='`$ECHO "X$RANLIB" | $Xsed -e "$delay_single_quote_subst"`'
30040 old_postinstall_cmds='`$ECHO "X$old_postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
30041 old_postuninstall_cmds='`$ECHO "X$old_postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
30042 old_archive_cmds='`$ECHO "X$old_archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
30043 CC='`$ECHO "X$CC" | $Xsed -e "$delay_single_quote_subst"`'
30044 CFLAGS='`$ECHO "X$CFLAGS" | $Xsed -e "$delay_single_quote_subst"`'
30045 compiler='`$ECHO "X$compiler" | $Xsed -e "$delay_single_quote_subst"`'
30046 GCC='`$ECHO "X$GCC" | $Xsed -e "$delay_single_quote_subst"`'
30047 lt_cv_sys_global_symbol_pipe='`$ECHO "X$lt_cv_sys_global_symbol_pipe" | $Xsed -e "$delay_single_quote_subst"`'
30048 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "X$lt_cv_sys_global_symbol_to_cdecl" | $Xsed -e "$delay_single_quote_subst"`'
30049 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"`'
30050 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"`'
30051 objdir='`$ECHO "X$objdir" | $Xsed -e "$delay_single_quote_subst"`'
30052 SHELL='`$ECHO "X$SHELL" | $Xsed -e "$delay_single_quote_subst"`'
30053 ECHO='`$ECHO "X$ECHO" | $Xsed -e "$delay_single_quote_subst"`'
30054 MAGIC_CMD='`$ECHO "X$MAGIC_CMD" | $Xsed -e "$delay_single_quote_subst"`'
30055 lt_prog_compiler_no_builtin_flag='`$ECHO "X$lt_prog_compiler_no_builtin_flag" | $Xsed -e "$delay_single_quote_subst"`'
30056 lt_prog_compiler_wl='`$ECHO "X$lt_prog_compiler_wl" | $Xsed -e "$delay_single_quote_subst"`'
30057 lt_prog_compiler_pic='`$ECHO "X$lt_prog_compiler_pic" | $Xsed -e "$delay_single_quote_subst"`'
30058 lt_prog_compiler_static='`$ECHO "X$lt_prog_compiler_static" | $Xsed -e "$delay_single_quote_subst"`'
30059 lt_cv_prog_compiler_c_o='`$ECHO "X$lt_cv_prog_compiler_c_o" | $Xsed -e "$delay_single_quote_subst"`'
30060 need_locks='`$ECHO "X$need_locks" | $Xsed -e "$delay_single_quote_subst"`'
30061 DSYMUTIL='`$ECHO "X$DSYMUTIL" | $Xsed -e "$delay_single_quote_subst"`'
30062 NMEDIT='`$ECHO "X$NMEDIT" | $Xsed -e "$delay_single_quote_subst"`'
30063 LIPO='`$ECHO "X$LIPO" | $Xsed -e "$delay_single_quote_subst"`'
30064 OTOOL='`$ECHO "X$OTOOL" | $Xsed -e "$delay_single_quote_subst"`'
30065 OTOOL64='`$ECHO "X$OTOOL64" | $Xsed -e "$delay_single_quote_subst"`'
30066 libext='`$ECHO "X$libext" | $Xsed -e "$delay_single_quote_subst"`'
30067 shrext_cmds='`$ECHO "X$shrext_cmds" | $Xsed -e "$delay_single_quote_subst"`'
30068 extract_expsyms_cmds='`$ECHO "X$extract_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
30069 archive_cmds_need_lc='`$ECHO "X$archive_cmds_need_lc" | $Xsed -e "$delay_single_quote_subst"`'
30070 enable_shared_with_static_runtimes='`$ECHO "X$enable_shared_with_static_runtimes" | $Xsed -e "$delay_single_quote_subst"`'
30071 export_dynamic_flag_spec='`$ECHO "X$export_dynamic_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
30072 whole_archive_flag_spec='`$ECHO "X$whole_archive_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
30073 compiler_needs_object='`$ECHO "X$compiler_needs_object" | $Xsed -e "$delay_single_quote_subst"`'
30074 old_archive_from_new_cmds='`$ECHO "X$old_archive_from_new_cmds" | $Xsed -e "$delay_single_quote_subst"`'
30075 old_archive_from_expsyms_cmds='`$ECHO "X$old_archive_from_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
30076 archive_cmds='`$ECHO "X$archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
30077 archive_expsym_cmds='`$ECHO "X$archive_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
30078 module_cmds='`$ECHO "X$module_cmds" | $Xsed -e "$delay_single_quote_subst"`'
30079 module_expsym_cmds='`$ECHO "X$module_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
30080 with_gnu_ld='`$ECHO "X$with_gnu_ld" | $Xsed -e "$delay_single_quote_subst"`'
30081 allow_undefined_flag='`$ECHO "X$allow_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
30082 no_undefined_flag='`$ECHO "X$no_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
30083 hardcode_libdir_flag_spec='`$ECHO "X$hardcode_libdir_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
30084 hardcode_libdir_flag_spec_ld='`$ECHO "X$hardcode_libdir_flag_spec_ld" | $Xsed -e "$delay_single_quote_subst"`'
30085 hardcode_libdir_separator='`$ECHO "X$hardcode_libdir_separator" | $Xsed -e "$delay_single_quote_subst"`'
30086 hardcode_direct='`$ECHO "X$hardcode_direct" | $Xsed -e "$delay_single_quote_subst"`'
30087 hardcode_direct_absolute='`$ECHO "X$hardcode_direct_absolute" | $Xsed -e "$delay_single_quote_subst"`'
30088 hardcode_minus_L='`$ECHO "X$hardcode_minus_L" | $Xsed -e "$delay_single_quote_subst"`'
30089 hardcode_shlibpath_var='`$ECHO "X$hardcode_shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
30090 hardcode_automatic='`$ECHO "X$hardcode_automatic" | $Xsed -e "$delay_single_quote_subst"`'
30091 inherit_rpath='`$ECHO "X$inherit_rpath" | $Xsed -e "$delay_single_quote_subst"`'
30092 link_all_deplibs='`$ECHO "X$link_all_deplibs" | $Xsed -e "$delay_single_quote_subst"`'
30093 fix_srcfile_path='`$ECHO "X$fix_srcfile_path" | $Xsed -e "$delay_single_quote_subst"`'
30094 always_export_symbols='`$ECHO "X$always_export_symbols" | $Xsed -e "$delay_single_quote_subst"`'
30095 export_symbols_cmds='`$ECHO "X$export_symbols_cmds" | $Xsed -e "$delay_single_quote_subst"`'
30096 exclude_expsyms='`$ECHO "X$exclude_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
30097 include_expsyms='`$ECHO "X$include_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
30098 prelink_cmds='`$ECHO "X$prelink_cmds" | $Xsed -e "$delay_single_quote_subst"`'
30099 file_list_spec='`$ECHO "X$file_list_spec" | $Xsed -e "$delay_single_quote_subst"`'
30100 variables_saved_for_relink='`$ECHO "X$variables_saved_for_relink" | $Xsed -e "$delay_single_quote_subst"`'
30101 need_lib_prefix='`$ECHO "X$need_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`'
30102 need_version='`$ECHO "X$need_version" | $Xsed -e "$delay_single_quote_subst"`'
30103 version_type='`$ECHO "X$version_type" | $Xsed -e "$delay_single_quote_subst"`'
30104 runpath_var='`$ECHO "X$runpath_var" | $Xsed -e "$delay_single_quote_subst"`'
30105 shlibpath_var='`$ECHO "X$shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
30106 shlibpath_overrides_runpath='`$ECHO "X$shlibpath_overrides_runpath" | $Xsed -e "$delay_single_quote_subst"`'
30107 libname_spec='`$ECHO "X$libname_spec" | $Xsed -e "$delay_single_quote_subst"`'
30108 library_names_spec='`$ECHO "X$library_names_spec" | $Xsed -e "$delay_single_quote_subst"`'
30109 soname_spec='`$ECHO "X$soname_spec" | $Xsed -e "$delay_single_quote_subst"`'
30110 postinstall_cmds='`$ECHO "X$postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
30111 postuninstall_cmds='`$ECHO "X$postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
30112 finish_cmds='`$ECHO "X$finish_cmds" | $Xsed -e "$delay_single_quote_subst"`'
30113 finish_eval='`$ECHO "X$finish_eval" | $Xsed -e "$delay_single_quote_subst"`'
30114 hardcode_into_libs='`$ECHO "X$hardcode_into_libs" | $Xsed -e "$delay_single_quote_subst"`'
30115 sys_lib_search_path_spec='`$ECHO "X$sys_lib_search_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
30116 sys_lib_dlsearch_path_spec='`$ECHO "X$sys_lib_dlsearch_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
30117 hardcode_action='`$ECHO "X$hardcode_action" | $Xsed -e "$delay_single_quote_subst"`'
30118 enable_dlopen='`$ECHO "X$enable_dlopen" | $Xsed -e "$delay_single_quote_subst"`'
30119 enable_dlopen_self='`$ECHO "X$enable_dlopen_self" | $Xsed -e "$delay_single_quote_subst"`'
30120 enable_dlopen_self_static='`$ECHO "X$enable_dlopen_self_static" | $Xsed -e "$delay_single_quote_subst"`'
30121 old_striplib='`$ECHO "X$old_striplib" | $Xsed -e "$delay_single_quote_subst"`'
30122 striplib='`$ECHO "X$striplib" | $Xsed -e "$delay_single_quote_subst"`'
30123 compiler_lib_search_dirs='`$ECHO "X$compiler_lib_search_dirs" | $Xsed -e "$delay_single_quote_subst"`'
30124 predep_objects='`$ECHO "X$predep_objects" | $Xsed -e "$delay_single_quote_subst"`'
30125 postdep_objects='`$ECHO "X$postdep_objects" | $Xsed -e "$delay_single_quote_subst"`'
30126 predeps='`$ECHO "X$predeps" | $Xsed -e "$delay_single_quote_subst"`'
30127 postdeps='`$ECHO "X$postdeps" | $Xsed -e "$delay_single_quote_subst"`'
30128 compiler_lib_search_path='`$ECHO "X$compiler_lib_search_path" | $Xsed -e "$delay_single_quote_subst"`'
30129 LD_CXX='`$ECHO "X$LD_CXX" | $Xsed -e "$delay_single_quote_subst"`'
30130 old_archive_cmds_CXX='`$ECHO "X$old_archive_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
30131 compiler_CXX='`$ECHO "X$compiler_CXX" | $Xsed -e "$delay_single_quote_subst"`'
30132 GCC_CXX='`$ECHO "X$GCC_CXX" | $Xsed -e "$delay_single_quote_subst"`'
30133 lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "X$lt_prog_compiler_no_builtin_flag_CXX" | $Xsed -e "$delay_single_quote_subst"`'
30134 lt_prog_compiler_wl_CXX='`$ECHO "X$lt_prog_compiler_wl_CXX" | $Xsed -e "$delay_single_quote_subst"`'
30135 lt_prog_compiler_pic_CXX='`$ECHO "X$lt_prog_compiler_pic_CXX" | $Xsed -e "$delay_single_quote_subst"`'
30136 lt_prog_compiler_static_CXX='`$ECHO "X$lt_prog_compiler_static_CXX" | $Xsed -e "$delay_single_quote_subst"`'
30137 lt_cv_prog_compiler_c_o_CXX='`$ECHO "X$lt_cv_prog_compiler_c_o_CXX" | $Xsed -e "$delay_single_quote_subst"`'
30138 archive_cmds_need_lc_CXX='`$ECHO "X$archive_cmds_need_lc_CXX" | $Xsed -e "$delay_single_quote_subst"`'
30139 enable_shared_with_static_runtimes_CXX='`$ECHO "X$enable_shared_with_static_runtimes_CXX" | $Xsed -e "$delay_single_quote_subst"`'
30140 export_dynamic_flag_spec_CXX='`$ECHO "X$export_dynamic_flag_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
30141 whole_archive_flag_spec_CXX='`$ECHO "X$whole_archive_flag_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
30142 compiler_needs_object_CXX='`$ECHO "X$compiler_needs_object_CXX" | $Xsed -e "$delay_single_quote_subst"`'
30143 old_archive_from_new_cmds_CXX='`$ECHO "X$old_archive_from_new_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
30144 old_archive_from_expsyms_cmds_CXX='`$ECHO "X$old_archive_from_expsyms_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
30145 archive_cmds_CXX='`$ECHO "X$archive_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
30146 archive_expsym_cmds_CXX='`$ECHO "X$archive_expsym_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
30147 module_cmds_CXX='`$ECHO "X$module_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
30148 module_expsym_cmds_CXX='`$ECHO "X$module_expsym_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
30149 with_gnu_ld_CXX='`$ECHO "X$with_gnu_ld_CXX" | $Xsed -e "$delay_single_quote_subst"`'
30150 allow_undefined_flag_CXX='`$ECHO "X$allow_undefined_flag_CXX" | $Xsed -e "$delay_single_quote_subst"`'
30151 no_undefined_flag_CXX='`$ECHO "X$no_undefined_flag_CXX" | $Xsed -e "$delay_single_quote_subst"`'
30152 hardcode_libdir_flag_spec_CXX='`$ECHO "X$hardcode_libdir_flag_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
30153 hardcode_libdir_flag_spec_ld_CXX='`$ECHO "X$hardcode_libdir_flag_spec_ld_CXX" | $Xsed -e "$delay_single_quote_subst"`'
30154 hardcode_libdir_separator_CXX='`$ECHO "X$hardcode_libdir_separator_CXX" | $Xsed -e "$delay_single_quote_subst"`'
30155 hardcode_direct_CXX='`$ECHO "X$hardcode_direct_CXX" | $Xsed -e "$delay_single_quote_subst"`'
30156 hardcode_direct_absolute_CXX='`$ECHO "X$hardcode_direct_absolute_CXX" | $Xsed -e "$delay_single_quote_subst"`'
30157 hardcode_minus_L_CXX='`$ECHO "X$hardcode_minus_L_CXX" | $Xsed -e "$delay_single_quote_subst"`'
30158 hardcode_shlibpath_var_CXX='`$ECHO "X$hardcode_shlibpath_var_CXX" | $Xsed -e "$delay_single_quote_subst"`'
30159 hardcode_automatic_CXX='`$ECHO "X$hardcode_automatic_CXX" | $Xsed -e "$delay_single_quote_subst"`'
30160 inherit_rpath_CXX='`$ECHO "X$inherit_rpath_CXX" | $Xsed -e "$delay_single_quote_subst"`'
30161 link_all_deplibs_CXX='`$ECHO "X$link_all_deplibs_CXX" | $Xsed -e "$delay_single_quote_subst"`'
30162 fix_srcfile_path_CXX='`$ECHO "X$fix_srcfile_path_CXX" | $Xsed -e "$delay_single_quote_subst"`'
30163 always_export_symbols_CXX='`$ECHO "X$always_export_symbols_CXX" | $Xsed -e "$delay_single_quote_subst"`'
30164 export_symbols_cmds_CXX='`$ECHO "X$export_symbols_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
30165 exclude_expsyms_CXX='`$ECHO "X$exclude_expsyms_CXX" | $Xsed -e "$delay_single_quote_subst"`'
30166 include_expsyms_CXX='`$ECHO "X$include_expsyms_CXX" | $Xsed -e "$delay_single_quote_subst"`'
30167 prelink_cmds_CXX='`$ECHO "X$prelink_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
30168 file_list_spec_CXX='`$ECHO "X$file_list_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
30169 hardcode_action_CXX='`$ECHO "X$hardcode_action_CXX" | $Xsed -e "$delay_single_quote_subst"`'
30170 compiler_lib_search_dirs_CXX='`$ECHO "X$compiler_lib_search_dirs_CXX" | $Xsed -e "$delay_single_quote_subst"`'
30171 predep_objects_CXX='`$ECHO "X$predep_objects_CXX" | $Xsed -e "$delay_single_quote_subst"`'
30172 postdep_objects_CXX='`$ECHO "X$postdep_objects_CXX" | $Xsed -e "$delay_single_quote_subst"`'
30173 predeps_CXX='`$ECHO "X$predeps_CXX" | $Xsed -e "$delay_single_quote_subst"`'
30174 postdeps_CXX='`$ECHO "X$postdeps_CXX" | $Xsed -e "$delay_single_quote_subst"`'
30175 compiler_lib_search_path_CXX='`$ECHO "X$compiler_lib_search_path_CXX" | $Xsed -e "$delay_single_quote_subst"`'
30176
30177 LTCC='$LTCC'
30178 LTCFLAGS='$LTCFLAGS'
30179 compiler='$compiler_DEFAULT'
30180
30181 # Quote evaled strings.
30182 for var in SED \
30183 GREP \
30184 EGREP \
30185 FGREP \
30186 LD \
30187 NM \
30188 LN_S \
30189 lt_SP2NL \
30190 lt_NL2SP \
30191 reload_flag \
30192 OBJDUMP \
30193 deplibs_check_method \
30194 file_magic_cmd \
30195 AR \
30196 AR_FLAGS \
30197 STRIP \
30198 RANLIB \
30199 CC \
30200 CFLAGS \
30201 compiler \
30202 lt_cv_sys_global_symbol_pipe \
30203 lt_cv_sys_global_symbol_to_cdecl \
30204 lt_cv_sys_global_symbol_to_c_name_address \
30205 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
30206 SHELL \
30207 ECHO \
30208 lt_prog_compiler_no_builtin_flag \
30209 lt_prog_compiler_wl \
30210 lt_prog_compiler_pic \
30211 lt_prog_compiler_static \
30212 lt_cv_prog_compiler_c_o \
30213 need_locks \
30214 DSYMUTIL \
30215 NMEDIT \
30216 LIPO \
30217 OTOOL \
30218 OTOOL64 \
30219 shrext_cmds \
30220 export_dynamic_flag_spec \
30221 whole_archive_flag_spec \
30222 compiler_needs_object \
30223 with_gnu_ld \
30224 allow_undefined_flag \
30225 no_undefined_flag \
30226 hardcode_libdir_flag_spec \
30227 hardcode_libdir_flag_spec_ld \
30228 hardcode_libdir_separator \
30229 fix_srcfile_path \
30230 exclude_expsyms \
30231 include_expsyms \
30232 file_list_spec \
30233 variables_saved_for_relink \
30234 libname_spec \
30235 library_names_spec \
30236 soname_spec \
30237 finish_eval \
30238 old_striplib \
30239 striplib \
30240 compiler_lib_search_dirs \
30241 predep_objects \
30242 postdep_objects \
30243 predeps \
30244 postdeps \
30245 compiler_lib_search_path \
30246 LD_CXX \
30247 compiler_CXX \
30248 lt_prog_compiler_no_builtin_flag_CXX \
30249 lt_prog_compiler_wl_CXX \
30250 lt_prog_compiler_pic_CXX \
30251 lt_prog_compiler_static_CXX \
30252 lt_cv_prog_compiler_c_o_CXX \
30253 export_dynamic_flag_spec_CXX \
30254 whole_archive_flag_spec_CXX \
30255 compiler_needs_object_CXX \
30256 with_gnu_ld_CXX \
30257 allow_undefined_flag_CXX \
30258 no_undefined_flag_CXX \
30259 hardcode_libdir_flag_spec_CXX \
30260 hardcode_libdir_flag_spec_ld_CXX \
30261 hardcode_libdir_separator_CXX \
30262 fix_srcfile_path_CXX \
30263 exclude_expsyms_CXX \
30264 include_expsyms_CXX \
30265 file_list_spec_CXX \
30266 compiler_lib_search_dirs_CXX \
30267 predep_objects_CXX \
30268 postdep_objects_CXX \
30269 predeps_CXX \
30270 postdeps_CXX \
30271 compiler_lib_search_path_CXX; do
30272     case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
30273     *[\\\\\\\`\\"\\\$]*)
30274       eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
30275       ;;
30276     *)
30277       eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
30278       ;;
30279     esac
30280 done
30281
30282 # Double-quote double-evaled strings.
30283 for var in reload_cmds \
30284 old_postinstall_cmds \
30285 old_postuninstall_cmds \
30286 old_archive_cmds \
30287 extract_expsyms_cmds \
30288 old_archive_from_new_cmds \
30289 old_archive_from_expsyms_cmds \
30290 archive_cmds \
30291 archive_expsym_cmds \
30292 module_cmds \
30293 module_expsym_cmds \
30294 export_symbols_cmds \
30295 prelink_cmds \
30296 postinstall_cmds \
30297 postuninstall_cmds \
30298 finish_cmds \
30299 sys_lib_search_path_spec \
30300 sys_lib_dlsearch_path_spec \
30301 old_archive_cmds_CXX \
30302 old_archive_from_new_cmds_CXX \
30303 old_archive_from_expsyms_cmds_CXX \
30304 archive_cmds_CXX \
30305 archive_expsym_cmds_CXX \
30306 module_cmds_CXX \
30307 module_expsym_cmds_CXX \
30308 export_symbols_cmds_CXX \
30309 prelink_cmds_CXX; do
30310     case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
30311     *[\\\\\\\`\\"\\\$]*)
30312       eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
30313       ;;
30314     *)
30315       eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
30316       ;;
30317     esac
30318 done
30319
30320 # Fix-up fallback echo if it was mangled by the above quoting rules.
30321 case \$lt_ECHO in
30322 *'\\\$0 --fallback-echo"')  lt_ECHO=\`\$ECHO "X\$lt_ECHO" | \$Xsed -e 's/\\\\\\\\\\\\\\\$0 --fallback-echo"\$/\$0 --fallback-echo"/'\`
30323   ;;
30324 esac
30325
30326 ac_aux_dir='$ac_aux_dir'
30327 xsi_shell='$xsi_shell'
30328 lt_shell_append='$lt_shell_append'
30329
30330 # See if we are running on zsh, and set the options which allow our
30331 # commands through without removal of \ escapes INIT.
30332 if test -n "\${ZSH_VERSION+set}" ; then
30333    setopt NO_GLOB_SUBST
30334 fi
30335
30336
30337     PACKAGE='$PACKAGE'
30338     VERSION='$VERSION'
30339     TIMESTAMP='$TIMESTAMP'
30340     RM='$RM'
30341     ofile='$ofile'
30342
30343
30344
30345
30346
30347 # Capture the value of obsolete ALL_LINGUAS because we need it to compute
30348     # POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES, CATALOGS. But hide it
30349     # from automake.
30350     eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"'
30351     # Capture the value of LINGUAS because we need it to compute CATALOGS.
30352     LINGUAS="${LINGUAS-%UNSET%}"
30353
30354
30355 _ACEOF
30356
30357 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
30358
30359 # Handling of arguments.
30360 for ac_config_target in $ac_config_targets
30361 do
30362   case $ac_config_target in
30363     "src/config.h") CONFIG_HEADERS="$CONFIG_HEADERS src/config.h:autoconf/config.h.in" ;;
30364     "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
30365     "default-1") CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
30366     "autoconf/Make.common") CONFIG_FILES="$CONFIG_FILES autoconf/Make.common" ;;
30367     "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
30368     "manpages/Makefile") CONFIG_FILES="$CONFIG_FILES manpages/Makefile" ;;
30369     "scripts/startmysql") CONFIG_FILES="$CONFIG_FILES scripts/startmysql" ;;
30370     "scripts/stopmysql") CONFIG_FILES="$CONFIG_FILES scripts/stopmysql" ;;
30371     "scripts/btraceback") CONFIG_FILES="$CONFIG_FILES scripts/btraceback" ;;
30372     "scripts/startit") CONFIG_FILES="$CONFIG_FILES scripts/startit" ;;
30373     "scripts/stopit") CONFIG_FILES="$CONFIG_FILES scripts/stopit" ;;
30374     "scripts/bconsole") CONFIG_FILES="$CONFIG_FILES scripts/bconsole" ;;
30375     "scripts/gconsole") CONFIG_FILES="$CONFIG_FILES scripts/gconsole" ;;
30376     "scripts/bacula") CONFIG_FILES="$CONFIG_FILES scripts/bacula" ;;
30377     "scripts/bacula-ctl-dir") CONFIG_FILES="$CONFIG_FILES scripts/bacula-ctl-dir" ;;
30378     "scripts/bacula-ctl-fd") CONFIG_FILES="$CONFIG_FILES scripts/bacula-ctl-fd" ;;
30379     "scripts/bacula-ctl-sd") CONFIG_FILES="$CONFIG_FILES scripts/bacula-ctl-sd" ;;
30380     "scripts/devel_bacula") CONFIG_FILES="$CONFIG_FILES scripts/devel_bacula" ;;
30381     "scripts/Makefile") CONFIG_FILES="$CONFIG_FILES scripts/Makefile" ;;
30382     "scripts/logrotate") CONFIG_FILES="$CONFIG_FILES scripts/logrotate" ;;
30383     "scripts/bacula.desktop.gnome1") CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome1" ;;
30384     "scripts/bacula.desktop.gnome2") CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome2" ;;
30385     "scripts/bacula.desktop.gnome1.consolehelper") CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome1.consolehelper" ;;
30386     "scripts/bacula.desktop.gnome2.consolehelper") CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome2.consolehelper" ;;
30387     "scripts/bacula.desktop.gnome1.xsu") CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome1.xsu" ;;
30388     "scripts/bacula.desktop.gnome2.xsu") CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome2.xsu" ;;
30389     "scripts/bgnome-console.console_apps") CONFIG_FILES="$CONFIG_FILES scripts/bgnome-console.console_apps" ;;
30390     "scripts/mtx-changer") CONFIG_FILES="$CONFIG_FILES scripts/mtx-changer" ;;
30391     "scripts/disk-changer") CONFIG_FILES="$CONFIG_FILES scripts/disk-changer" ;;
30392     "scripts/dvd-handler") CONFIG_FILES="$CONFIG_FILES scripts/dvd-handler" ;;
30393     "scripts/dvd-simulator") CONFIG_FILES="$CONFIG_FILES scripts/dvd-simulator" ;;
30394     "scripts/bacula-tray-monitor.desktop") CONFIG_FILES="$CONFIG_FILES scripts/bacula-tray-monitor.desktop" ;;
30395     "scripts/logwatch/Makefile") CONFIG_FILES="$CONFIG_FILES scripts/logwatch/Makefile" ;;
30396     "scripts/logwatch/logfile.bacula.conf") CONFIG_FILES="$CONFIG_FILES scripts/logwatch/logfile.bacula.conf" ;;
30397     "scripts/wxconsole.console_apps") CONFIG_FILES="$CONFIG_FILES scripts/wxconsole.console_apps" ;;
30398     "scripts/wxconsole.desktop.consolehelper") CONFIG_FILES="$CONFIG_FILES scripts/wxconsole.desktop.consolehelper" ;;
30399     "scripts/wxconsole.desktop.xsu") CONFIG_FILES="$CONFIG_FILES scripts/wxconsole.desktop.xsu" ;;
30400     "scripts/bat.desktop") CONFIG_FILES="$CONFIG_FILES scripts/bat.desktop" ;;
30401     "scripts/bat.desktop.xsu") CONFIG_FILES="$CONFIG_FILES scripts/bat.desktop.xsu" ;;
30402     "scripts/bat.desktop.consolehelper") CONFIG_FILES="$CONFIG_FILES scripts/bat.desktop.consolehelper" ;;
30403     "scripts/bat.console_apps") CONFIG_FILES="$CONFIG_FILES scripts/bat.console_apps" ;;
30404     "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
30405     "src/host.h") CONFIG_FILES="$CONFIG_FILES src/host.h" ;;
30406     "src/console/Makefile") CONFIG_FILES="$CONFIG_FILES src/console/Makefile" ;;
30407     "src/console/bconsole.conf") CONFIG_FILES="$CONFIG_FILES src/console/bconsole.conf" ;;
30408     "src/qt-console/bat.conf") CONFIG_FILES="$CONFIG_FILES src/qt-console/bat.conf" ;;
30409     "src/qt-console/bat.pro") CONFIG_FILES="$CONFIG_FILES src/qt-console/bat.pro" ;;
30410     "src/qt-console/bat.pro.mingw32") CONFIG_FILES="$CONFIG_FILES src/qt-console/bat.pro.mingw32" ;;
30411     "src/qt-console/install_conf_file") CONFIG_FILES="$CONFIG_FILES src/qt-console/install_conf_file" ;;
30412     "src/wx-console/Makefile") CONFIG_FILES="$CONFIG_FILES src/wx-console/Makefile" ;;
30413     "src/wx-console/bwx-console.conf") CONFIG_FILES="$CONFIG_FILES src/wx-console/bwx-console.conf" ;;
30414     "src/tray-monitor/Makefile") CONFIG_FILES="$CONFIG_FILES src/tray-monitor/Makefile" ;;
30415     "src/tray-monitor/tray-monitor.conf") CONFIG_FILES="$CONFIG_FILES src/tray-monitor/tray-monitor.conf" ;;
30416     "src/dird/Makefile") CONFIG_FILES="$CONFIG_FILES src/dird/Makefile" ;;
30417     "src/dird/bacula-dir.conf") CONFIG_FILES="$CONFIG_FILES src/dird/bacula-dir.conf" ;;
30418     "src/lib/Makefile") CONFIG_FILES="$CONFIG_FILES src/lib/Makefile" ;;
30419     "src/stored/Makefile") CONFIG_FILES="$CONFIG_FILES src/stored/Makefile" ;;
30420     "src/stored/bacula-sd.conf") CONFIG_FILES="$CONFIG_FILES src/stored/bacula-sd.conf" ;;
30421     "src/filed/Makefile") CONFIG_FILES="$CONFIG_FILES src/filed/Makefile" ;;
30422     "src/filed/bacula-fd.conf") CONFIG_FILES="$CONFIG_FILES src/filed/bacula-fd.conf" ;;
30423     "src/cats/Makefile") CONFIG_FILES="$CONFIG_FILES src/cats/Makefile" ;;
30424     "src/cats/make_catalog_backup.pl") CONFIG_FILES="$CONFIG_FILES src/cats/make_catalog_backup.pl" ;;
30425     "src/cats/make_catalog_backup") CONFIG_FILES="$CONFIG_FILES src/cats/make_catalog_backup" ;;
30426     "src/cats/delete_catalog_backup") CONFIG_FILES="$CONFIG_FILES src/cats/delete_catalog_backup" ;;
30427     "src/cats/create_postgresql_database") CONFIG_FILES="$CONFIG_FILES src/cats/create_postgresql_database" ;;
30428     "src/cats/update_postgresql_tables") CONFIG_FILES="$CONFIG_FILES src/cats/update_postgresql_tables" ;;
30429     "src/cats/make_postgresql_tables") CONFIG_FILES="$CONFIG_FILES src/cats/make_postgresql_tables" ;;
30430     "src/cats/grant_postgresql_privileges") CONFIG_FILES="$CONFIG_FILES src/cats/grant_postgresql_privileges" ;;
30431     "src/cats/drop_postgresql_tables") CONFIG_FILES="$CONFIG_FILES src/cats/drop_postgresql_tables" ;;
30432     "src/cats/drop_postgresql_database") CONFIG_FILES="$CONFIG_FILES src/cats/drop_postgresql_database" ;;
30433     "src/cats/create_mysql_database") CONFIG_FILES="$CONFIG_FILES src/cats/create_mysql_database" ;;
30434     "src/cats/update_mysql_tables") CONFIG_FILES="$CONFIG_FILES src/cats/update_mysql_tables" ;;
30435     "src/cats/make_mysql_tables") CONFIG_FILES="$CONFIG_FILES src/cats/make_mysql_tables" ;;
30436     "src/cats/grant_mysql_privileges") CONFIG_FILES="$CONFIG_FILES src/cats/grant_mysql_privileges" ;;
30437     "src/cats/drop_mysql_tables") CONFIG_FILES="$CONFIG_FILES src/cats/drop_mysql_tables" ;;
30438     "src/cats/drop_mysql_database") CONFIG_FILES="$CONFIG_FILES src/cats/drop_mysql_database" ;;
30439     "src/cats/create_sqlite3_database") CONFIG_FILES="$CONFIG_FILES src/cats/create_sqlite3_database" ;;
30440     "src/cats/update_sqlite3_tables") CONFIG_FILES="$CONFIG_FILES src/cats/update_sqlite3_tables" ;;
30441     "src/cats/make_sqlite3_tables") CONFIG_FILES="$CONFIG_FILES src/cats/make_sqlite3_tables" ;;
30442     "src/cats/grant_sqlite3_privileges") CONFIG_FILES="$CONFIG_FILES src/cats/grant_sqlite3_privileges" ;;
30443     "src/cats/drop_sqlite3_tables") CONFIG_FILES="$CONFIG_FILES src/cats/drop_sqlite3_tables" ;;
30444     "src/cats/drop_sqlite3_database") CONFIG_FILES="$CONFIG_FILES src/cats/drop_sqlite3_database" ;;
30445     "src/cats/create_ingres_database") CONFIG_FILES="$CONFIG_FILES src/cats/create_ingres_database" ;;
30446     "src/cats/update_ingres_tables") CONFIG_FILES="$CONFIG_FILES src/cats/update_ingres_tables" ;;
30447     "src/cats/make_ingres_tables") CONFIG_FILES="$CONFIG_FILES src/cats/make_ingres_tables" ;;
30448     "src/cats/grant_ingres_privileges") CONFIG_FILES="$CONFIG_FILES src/cats/grant_ingres_privileges" ;;
30449     "src/cats/drop_ingres_tables") CONFIG_FILES="$CONFIG_FILES src/cats/drop_ingres_tables" ;;
30450     "src/cats/drop_ingres_database") CONFIG_FILES="$CONFIG_FILES src/cats/drop_ingres_database" ;;
30451     "src/cats/sqlite") CONFIG_FILES="$CONFIG_FILES src/cats/sqlite" ;;
30452     "src/cats/mysql") CONFIG_FILES="$CONFIG_FILES src/cats/mysql" ;;
30453     "src/cats/create_bacula_database") CONFIG_FILES="$CONFIG_FILES src/cats/create_bacula_database" ;;
30454     "src/cats/update_bacula_tables") CONFIG_FILES="$CONFIG_FILES src/cats/update_bacula_tables" ;;
30455     "src/cats/grant_bacula_privileges") CONFIG_FILES="$CONFIG_FILES src/cats/grant_bacula_privileges" ;;
30456     "src/cats/make_bacula_tables") CONFIG_FILES="$CONFIG_FILES src/cats/make_bacula_tables" ;;
30457     "src/cats/drop_bacula_tables") CONFIG_FILES="$CONFIG_FILES src/cats/drop_bacula_tables" ;;
30458     "src/cats/drop_bacula_database") CONFIG_FILES="$CONFIG_FILES src/cats/drop_bacula_database" ;;
30459     "src/findlib/Makefile") CONFIG_FILES="$CONFIG_FILES src/findlib/Makefile" ;;
30460     "src/tools/Makefile") CONFIG_FILES="$CONFIG_FILES src/tools/Makefile" ;;
30461     "src/plugins/fd/Makefile") CONFIG_FILES="$CONFIG_FILES src/plugins/fd/Makefile" ;;
30462     "src/plugins/sd/Makefile") CONFIG_FILES="$CONFIG_FILES src/plugins/sd/Makefile" ;;
30463     "src/plugins/dir/Makefile") CONFIG_FILES="$CONFIG_FILES src/plugins/dir/Makefile" ;;
30464     "src/win32/Makefile.inc") CONFIG_FILES="$CONFIG_FILES src/win32/Makefile.inc" ;;
30465     "po/Makefile.in") CONFIG_FILES="$CONFIG_FILES po/Makefile.in" ;;
30466     "updatedb/update_mysql_tables_9_to_10") CONFIG_FILES="$CONFIG_FILES updatedb/update_mysql_tables_9_to_10" ;;
30467     "updatedb/update_sqlite3_tables_9_to_10") CONFIG_FILES="$CONFIG_FILES updatedb/update_sqlite3_tables_9_to_10" ;;
30468     "updatedb/update_postgresql_tables_9_to_10") CONFIG_FILES="$CONFIG_FILES updatedb/update_postgresql_tables_9_to_10" ;;
30469     "updatedb/update_mysql_tables_10_to_11") CONFIG_FILES="$CONFIG_FILES updatedb/update_mysql_tables_10_to_11" ;;
30470     "updatedb/update_sqlite3_tables_10_to_11") CONFIG_FILES="$CONFIG_FILES updatedb/update_sqlite3_tables_10_to_11" ;;
30471     "updatedb/update_postgresql_tables_10_to_11") CONFIG_FILES="$CONFIG_FILES updatedb/update_postgresql_tables_10_to_11" ;;
30472     "updatedb/update_mysql_tables_11_to_12") CONFIG_FILES="$CONFIG_FILES updatedb/update_mysql_tables_11_to_12" ;;
30473     "updatedb/update_sqlite3_tables_11_to_12") CONFIG_FILES="$CONFIG_FILES updatedb/update_sqlite3_tables_11_to_12" ;;
30474     "updatedb/update_postgresql_tables_11_to_12") CONFIG_FILES="$CONFIG_FILES updatedb/update_postgresql_tables_11_to_12" ;;
30475     "examples/nagios/check_bacula/Makefile") CONFIG_FILES="$CONFIG_FILES examples/nagios/check_bacula/Makefile" ;;
30476     "$PFILES") CONFIG_FILES="$CONFIG_FILES $PFILES" ;;
30477     "default") CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
30478
30479   *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
30480   esac
30481 done
30482
30483
30484 # If the user did not use the arguments to specify the items to instantiate,
30485 # then the envvar interface is used.  Set only those that are not.
30486 # We use the long form for the default assignment because of an extremely
30487 # bizarre bug on SunOS 4.1.3.
30488 if $ac_need_defaults; then
30489   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
30490   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
30491   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
30492 fi
30493
30494 # Have a temporary directory for convenience.  Make it in the build tree
30495 # simply because there is no reason against having it here, and in addition,
30496 # creating and moving files from /tmp can sometimes cause problems.
30497 # Hook for its removal unless debugging.
30498 # Note that there is a small window in which the directory will not be cleaned:
30499 # after its creation but before its name has been assigned to `$tmp'.
30500 $debug ||
30501 {
30502   tmp=
30503   trap 'exit_status=$?
30504   { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
30505 ' 0
30506   trap 'as_fn_exit 1' 1 2 13 15
30507 }
30508 # Create a (secure) tmp directory for tmp files.
30509
30510 {
30511   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
30512   test -n "$tmp" && test -d "$tmp"
30513 }  ||
30514 {
30515   tmp=./conf$$-$RANDOM
30516   (umask 077 && mkdir "$tmp")
30517 } || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
30518
30519 # Set up the scripts for CONFIG_FILES section.
30520 # No need to generate them if there are no CONFIG_FILES.
30521 # This happens for instance with `./config.status config.h'.
30522 if test -n "$CONFIG_FILES"; then
30523
30524 if $AWK 'BEGIN { getline <"/dev/null" }' </dev/null 2>/dev/null; then
30525   ac_cs_awk_getline=:
30526   ac_cs_awk_pipe_init=
30527   ac_cs_awk_read_file='
30528       while ((getline aline < (F[key])) > 0)
30529         print(aline)
30530       close(F[key])'
30531   ac_cs_awk_pipe_fini=
30532 else
30533   ac_cs_awk_getline=false
30534   ac_cs_awk_pipe_init="print \"cat <<'|#_!!_#|' &&\""
30535   ac_cs_awk_read_file='
30536       print "|#_!!_#|"
30537       print "cat " F[key] " &&"
30538       '$ac_cs_awk_pipe_init
30539   # The final `:' finishes the AND list.
30540   ac_cs_awk_pipe_fini='END { print "|#_!!_#|"; print ":" }'
30541 fi
30542 ac_cr=`echo X | tr X '\015'`
30543 # On cygwin, bash can eat \r inside `` if the user requested igncr.
30544 # But we know of no other shell where ac_cr would be empty at this
30545 # point, so we can use a bashism as a fallback.
30546 if test "x$ac_cr" = x; then
30547   eval ac_cr=\$\'\\r\'
30548 fi
30549 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
30550 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
30551   ac_cs_awk_cr='\r'
30552 else
30553   ac_cs_awk_cr=$ac_cr
30554 fi
30555
30556 echo 'BEGIN {' >"$tmp/subs1.awk" &&
30557 _ACEOF
30558
30559 # Create commands to substitute file output variables.
30560 {
30561   echo "cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1" &&
30562   echo 'cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&' &&
30563   echo "$ac_subst_files" | sed 's/.*/F["&"]="$&"/' &&
30564   echo "_ACAWK" &&
30565   echo "_ACEOF"
30566 } >conf$$files.sh &&
30567 . ./conf$$files.sh ||
30568   as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
30569 rm -f conf$$files.sh
30570
30571 {
30572   echo "cat >conf$$subs.awk <<_ACEOF" &&
30573   echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
30574   echo "_ACEOF"
30575 } >conf$$subs.sh ||
30576   as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
30577 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
30578 ac_delim='%!_!# '
30579 for ac_last_try in false false false false false :; do
30580   . ./conf$$subs.sh ||
30581     as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
30582
30583   ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
30584   if test $ac_delim_n = $ac_delim_num; then
30585     break
30586   elif $ac_last_try; then
30587     as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
30588   else
30589     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
30590   fi
30591 done
30592 rm -f conf$$subs.sh
30593
30594 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
30595 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
30596 _ACEOF
30597 sed -n '
30598 h
30599 s/^/S["/; s/!.*/"]=/
30600 p
30601 g
30602 s/^[^!]*!//
30603 :repl
30604 t repl
30605 s/'"$ac_delim"'$//
30606 t delim
30607 :nl
30608 h
30609 s/\(.\{148\}\)..*/\1/
30610 t more1
30611 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
30612 p
30613 n
30614 b repl
30615 :more1
30616 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
30617 p
30618 g
30619 s/.\{148\}//
30620 t nl
30621 :delim
30622 h
30623 s/\(.\{148\}\)..*/\1/
30624 t more2
30625 s/["\\]/\\&/g; s/^/"/; s/$/"/
30626 p
30627 b
30628 :more2
30629 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
30630 p
30631 g
30632 s/.\{148\}//
30633 t delim
30634 ' <conf$$subs.awk | sed '
30635 /^[^""]/{
30636   N
30637   s/\n//
30638 }
30639 ' >>$CONFIG_STATUS || ac_write_fail=1
30640 rm -f conf$$subs.awk
30641 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
30642 _ACAWK
30643 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
30644   for (key in S) S_is_set[key] = 1
30645   FS = "\a"
30646   \$ac_cs_awk_pipe_init
30647 }
30648 {
30649   line = $ 0
30650   nfields = split(line, field, "@")
30651   substed = 0
30652   len = length(field[1])
30653   for (i = 2; i < nfields; i++) {
30654     key = field[i]
30655     keylen = length(key)
30656     if (S_is_set[key]) {
30657       value = S[key]
30658       line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
30659       len += length(value) + length(field[++i])
30660       substed = 1
30661     } else
30662       len += 1 + keylen
30663   }
30664   if (nfields == 3 && !substed) {
30665     key = field[2]
30666     if (F[key] != "" && line ~ /^[       ]*@.*@[         ]*$/) {
30667       \$ac_cs_awk_read_file
30668       next
30669     }
30670   }
30671   print line
30672 }
30673 \$ac_cs_awk_pipe_fini
30674 _ACAWK
30675 _ACEOF
30676 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
30677 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
30678   sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
30679 else
30680   cat
30681 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
30682   || as_fn_error "could not setup config files machinery" "$LINENO" 5
30683 _ACEOF
30684
30685 # VPATH may cause trouble with some makes, so we remove $(srcdir),
30686 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
30687 # trailing colons and then remove the whole line if VPATH becomes empty
30688 # (actually we leave an empty line to preserve line numbers).
30689 if test "x$srcdir" = x.; then
30690   ac_vpsub='/^[  ]*VPATH[        ]*=/{
30691 s/:*\$(srcdir):*/:/
30692 s/:*\${srcdir}:*/:/
30693 s/:*@srcdir@:*/:/
30694 s/^\([^=]*=[     ]*\):*/\1/
30695 s/:*$//
30696 s/^[^=]*=[       ]*$//
30697 }'
30698 fi
30699
30700 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
30701 fi # test -n "$CONFIG_FILES"
30702
30703 # Set up the scripts for CONFIG_HEADERS section.
30704 # No need to generate them if there are no CONFIG_HEADERS.
30705 # This happens for instance with `./config.status Makefile'.
30706 if test -n "$CONFIG_HEADERS"; then
30707 cat >"$tmp/defines.awk" <<\_ACAWK ||
30708 BEGIN {
30709 _ACEOF
30710
30711 # Transform confdefs.h into an awk script `defines.awk', embedded as
30712 # here-document in config.status, that substitutes the proper values into
30713 # config.h.in to produce config.h.
30714
30715 # Create a delimiter string that does not exist in confdefs.h, to ease
30716 # handling of long lines.
30717 ac_delim='%!_!# '
30718 for ac_last_try in false false :; do
30719   ac_t=`sed -n "/$ac_delim/p" confdefs.h`
30720   if test -z "$ac_t"; then
30721     break
30722   elif $ac_last_try; then
30723     as_fn_error "could not make $CONFIG_HEADERS" "$LINENO" 5
30724   else
30725     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
30726   fi
30727 done
30728
30729 # For the awk script, D is an array of macro values keyed by name,
30730 # likewise P contains macro parameters if any.  Preserve backslash
30731 # newline sequences.
30732
30733 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
30734 sed -n '
30735 s/.\{148\}/&'"$ac_delim"'/g
30736 t rset
30737 :rset
30738 s/^[     ]*#[    ]*define[       ][      ]*/ /
30739 t def
30740 d
30741 :def
30742 s/\\$//
30743 t bsnl
30744 s/["\\]/\\&/g
30745 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
30746 D["\1"]=" \3"/p
30747 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2"/p
30748 d
30749 :bsnl
30750 s/["\\]/\\&/g
30751 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
30752 D["\1"]=" \3\\\\\\n"\\/p
30753 t cont
30754 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
30755 t cont
30756 d
30757 :cont
30758 n
30759 s/.\{148\}/&'"$ac_delim"'/g
30760 t clear
30761 :clear
30762 s/\\$//
30763 t bsnlc
30764 s/["\\]/\\&/g; s/^/"/; s/$/"/p
30765 d
30766 :bsnlc
30767 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
30768 b cont
30769 ' <confdefs.h | sed '
30770 s/'"$ac_delim"'/"\\\
30771 "/g' >>$CONFIG_STATUS || ac_write_fail=1
30772
30773 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
30774   for (key in D) D_is_set[key] = 1
30775   FS = "\a"
30776 }
30777 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
30778   line = \$ 0
30779   split(line, arg, " ")
30780   if (arg[1] == "#") {
30781     defundef = arg[2]
30782     mac1 = arg[3]
30783   } else {
30784     defundef = substr(arg[1], 2)
30785     mac1 = arg[2]
30786   }
30787   split(mac1, mac2, "(") #)
30788   macro = mac2[1]
30789   prefix = substr(line, 1, index(line, defundef) - 1)
30790   if (D_is_set[macro]) {
30791     # Preserve the white space surrounding the "#".
30792     print prefix "define", macro P[macro] D[macro]
30793     next
30794   } else {
30795     # Replace #undef with comments.  This is necessary, for example,
30796     # in the case of _POSIX_SOURCE, which is predefined and required
30797     # on some systems where configure will not decide to define it.
30798     if (defundef == "undef") {
30799       print "/*", prefix defundef, macro, "*/"
30800       next
30801     }
30802   }
30803 }
30804 { print }
30805 _ACAWK
30806 _ACEOF
30807 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
30808   as_fn_error "could not setup config headers machinery" "$LINENO" 5
30809 fi # test -n "$CONFIG_HEADERS"
30810
30811
30812 eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
30813 shift
30814 for ac_tag
30815 do
30816   case $ac_tag in
30817   :[FHLC]) ac_mode=$ac_tag; continue;;
30818   esac
30819   case $ac_mode$ac_tag in
30820   :[FHL]*:*);;
30821   :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
30822   :[FH]-) ac_tag=-:-;;
30823   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
30824   esac
30825   ac_save_IFS=$IFS
30826   IFS=:
30827   set x $ac_tag
30828   IFS=$ac_save_IFS
30829   shift
30830   ac_file=$1
30831   shift
30832
30833   case $ac_mode in
30834   :L) ac_source=$1;;
30835   :[FH])
30836     ac_file_inputs=
30837     for ac_f
30838     do
30839       case $ac_f in
30840       -) ac_f="$tmp/stdin";;
30841       *) # Look for the file first in the build tree, then in the source tree
30842          # (if the path is not absolute).  The absolute path cannot be DOS-style,
30843          # because $ac_f cannot contain `:'.
30844          test -f "$ac_f" ||
30845            case $ac_f in
30846            [\\/$]*) false;;
30847            *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
30848            esac ||
30849            as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
30850       esac
30851       case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
30852       as_fn_append ac_file_inputs " '$ac_f'"
30853     done
30854
30855     # Let's still pretend it is `configure' which instantiates (i.e., don't
30856     # use $as_me), people would be surprised to read:
30857     #    /* config.h.  Generated by config.status.  */
30858     configure_input='Generated from '`
30859           $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
30860         `' by configure.'
30861     if test x"$ac_file" != x-; then
30862       configure_input="$ac_file.  $configure_input"
30863       { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
30864 $as_echo "$as_me: creating $ac_file" >&6;}
30865     fi
30866     # Neutralize special characters interpreted by sed in replacement strings.
30867     case $configure_input in #(
30868     *\&* | *\|* | *\\* )
30869        ac_sed_conf_input=`$as_echo "$configure_input" |
30870        sed 's/[\\\\&|]/\\\\&/g'`;; #(
30871     *) ac_sed_conf_input=$configure_input;;
30872     esac
30873
30874     case $ac_tag in
30875     *:-:* | *:-) cat >"$tmp/stdin" \
30876       || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
30877     esac
30878     ;;
30879   esac
30880
30881   ac_dir=`$as_dirname -- "$ac_file" ||
30882 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
30883          X"$ac_file" : 'X\(//\)[^/]' \| \
30884          X"$ac_file" : 'X\(//\)$' \| \
30885          X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
30886 $as_echo X"$ac_file" |
30887     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
30888             s//\1/
30889             q
30890           }
30891           /^X\(\/\/\)[^/].*/{
30892             s//\1/
30893             q
30894           }
30895           /^X\(\/\/\)$/{
30896             s//\1/
30897             q
30898           }
30899           /^X\(\/\).*/{
30900             s//\1/
30901             q
30902           }
30903           s/.*/./; q'`
30904   as_dir="$ac_dir"; as_fn_mkdir_p
30905   ac_builddir=.
30906
30907 case "$ac_dir" in
30908 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
30909 *)
30910   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
30911   # A ".." for each directory in $ac_dir_suffix.
30912   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
30913   case $ac_top_builddir_sub in
30914   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
30915   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
30916   esac ;;
30917 esac
30918 ac_abs_top_builddir=$ac_pwd
30919 ac_abs_builddir=$ac_pwd$ac_dir_suffix
30920 # for backward compatibility:
30921 ac_top_builddir=$ac_top_build_prefix
30922
30923 case $srcdir in
30924   .)  # We are building in place.
30925     ac_srcdir=.
30926     ac_top_srcdir=$ac_top_builddir_sub
30927     ac_abs_top_srcdir=$ac_pwd ;;
30928   [\\/]* | ?:[\\/]* )  # Absolute name.
30929     ac_srcdir=$srcdir$ac_dir_suffix;
30930     ac_top_srcdir=$srcdir
30931     ac_abs_top_srcdir=$srcdir ;;
30932   *) # Relative name.
30933     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
30934     ac_top_srcdir=$ac_top_build_prefix$srcdir
30935     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
30936 esac
30937 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
30938
30939
30940   case $ac_mode in
30941   :F)
30942   #
30943   # CONFIG_FILE
30944   #
30945
30946   case $INSTALL in
30947   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
30948   *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
30949   esac
30950 _ACEOF
30951
30952 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
30953 # If the template does not know about datarootdir, expand it.
30954 # FIXME: This hack should be removed a few years after 2.60.
30955 ac_datarootdir_hack=; ac_datarootdir_seen=
30956 ac_sed_dataroot='
30957 /datarootdir/ {
30958   p
30959   q
30960 }
30961 /@datadir@/p
30962 /@docdir@/p
30963 /@infodir@/p
30964 /@localedir@/p
30965 /@mandir@/p'
30966 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
30967 *datarootdir*) ac_datarootdir_seen=yes;;
30968 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
30969   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
30970 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
30971 _ACEOF
30972 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
30973   ac_datarootdir_hack='
30974   s&@datadir@&$datadir&g
30975   s&@docdir@&$docdir&g
30976   s&@infodir@&$infodir&g
30977   s&@localedir@&$localedir&g
30978   s&@mandir@&$mandir&g
30979   s&\\\${datarootdir}&$datarootdir&g' ;;
30980 esac
30981 _ACEOF
30982
30983 # Neutralize VPATH when `$srcdir' = `.'.
30984 # Shell code in configure.ac might set extrasub.
30985 # FIXME: do we really want to maintain this feature?
30986 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
30987 ac_sed_extra="$ac_vpsub
30988 $extrasub
30989 _ACEOF
30990 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
30991 :t
30992 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
30993 s|@configure_input@|$ac_sed_conf_input|;t t
30994 s&@top_builddir@&$ac_top_builddir_sub&;t t
30995 s&@top_build_prefix@&$ac_top_build_prefix&;t t
30996 s&@srcdir@&$ac_srcdir&;t t
30997 s&@abs_srcdir@&$ac_abs_srcdir&;t t
30998 s&@top_srcdir@&$ac_top_srcdir&;t t
30999 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
31000 s&@builddir@&$ac_builddir&;t t
31001 s&@abs_builddir@&$ac_abs_builddir&;t t
31002 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
31003 s&@INSTALL@&$ac_INSTALL&;t t
31004 $ac_datarootdir_hack
31005 "
31006 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" |
31007 if $ac_cs_awk_getline; then
31008   $AWK -f "$tmp/subs.awk"
31009 else
31010   $AWK -f "$tmp/subs.awk" | $SHELL
31011 fi >$tmp/out \
31012   || as_fn_error "could not create $ac_file" "$LINENO" 5
31013
31014 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
31015   { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
31016   { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
31017   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
31018 which seems to be undefined.  Please make sure it is defined." >&5
31019 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
31020 which seems to be undefined.  Please make sure it is defined." >&2;}
31021
31022   rm -f "$tmp/stdin"
31023   case $ac_file in
31024   -) cat "$tmp/out" && rm -f "$tmp/out";;
31025   *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
31026   esac \
31027   || as_fn_error "could not create $ac_file" "$LINENO" 5
31028  ;;
31029   :H)
31030   #
31031   # CONFIG_HEADER
31032   #
31033   if test x"$ac_file" != x-; then
31034     {
31035       $as_echo "/* $configure_input  */" \
31036       && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
31037     } >"$tmp/config.h" \
31038       || as_fn_error "could not create $ac_file" "$LINENO" 5
31039     if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
31040       { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
31041 $as_echo "$as_me: $ac_file is unchanged" >&6;}
31042     else
31043       rm -f "$ac_file"
31044       mv "$tmp/config.h" "$ac_file" \
31045         || as_fn_error "could not create $ac_file" "$LINENO" 5
31046     fi
31047   else
31048     $as_echo "/* $configure_input  */" \
31049       && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
31050       || as_fn_error "could not create -" "$LINENO" 5
31051   fi
31052  ;;
31053
31054   :C)  { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
31055 $as_echo "$as_me: executing $ac_file commands" >&6;}
31056  ;;
31057   esac
31058
31059
31060   case $ac_file$ac_mode in
31061     "libtool":C)
31062
31063     # See if we are running on zsh, and set the options which allow our
31064     # commands through without removal of \ escapes.
31065     if test -n "${ZSH_VERSION+set}" ; then
31066       setopt NO_GLOB_SUBST
31067     fi
31068
31069     cfgfile="${ofile}T"
31070     trap "$RM \"$cfgfile\"; exit 1" 1 2 15
31071     $RM "$cfgfile"
31072
31073     cat <<_LT_EOF >> "$cfgfile"
31074 #! $SHELL
31075
31076 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
31077 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
31078 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
31079 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
31080 #
31081 #   Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
31082 #                 2006, 2007, 2008 Free Software Foundation, Inc.
31083 #   Written by Gordon Matzigkeit, 1996
31084 #
31085 #   This file is part of GNU Libtool.
31086 #
31087 # GNU Libtool is free software; you can redistribute it and/or
31088 # modify it under the terms of the GNU General Public License as
31089 # published by the Free Software Foundation; either version 2 of
31090 # the License, or (at your option) any later version.
31091 #
31092 # As a special exception to the GNU General Public License,
31093 # if you distribute this file as part of a program or library that
31094 # is built using GNU Libtool, you may include this file under the
31095 # same distribution terms that you use for the rest of that program.
31096 #
31097 # GNU Libtool is distributed in the hope that it will be useful,
31098 # but WITHOUT ANY WARRANTY; without even the implied warranty of
31099 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
31100 # GNU General Public License for more details.
31101 #
31102 # You should have received a copy of the GNU General Public License
31103 # along with GNU Libtool; see the file COPYING.  If not, a copy
31104 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
31105 # obtained by writing to the Free Software Foundation, Inc.,
31106 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
31107
31108
31109 # The names of the tagged configurations supported by this script.
31110 available_tags="CXX "
31111
31112 # ### BEGIN LIBTOOL CONFIG
31113
31114 # Which release of libtool.m4 was used?
31115 macro_version=$macro_version
31116 macro_revision=$macro_revision
31117
31118 # Whether or not to build shared libraries.
31119 build_libtool_libs=$enable_shared
31120
31121 # Whether or not to build static libraries.
31122 build_old_libs=$enable_static
31123
31124 # What type of objects to build.
31125 pic_mode=$pic_mode
31126
31127 # Whether or not to optimize for fast installation.
31128 fast_install=$enable_fast_install
31129
31130 # The host system.
31131 host_alias=$host_alias
31132 host=$host
31133 host_os=$host_os
31134
31135 # The build system.
31136 build_alias=$build_alias
31137 build=$build
31138 build_os=$build_os
31139
31140 # A sed program that does not truncate output.
31141 SED=$lt_SED
31142
31143 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
31144 Xsed="\$SED -e 1s/^X//"
31145
31146 # A grep program that handles long lines.
31147 GREP=$lt_GREP
31148
31149 # An ERE matcher.
31150 EGREP=$lt_EGREP
31151
31152 # A literal string matcher.
31153 FGREP=$lt_FGREP
31154
31155 # A BSD- or MS-compatible name lister.
31156 NM=$lt_NM
31157
31158 # Whether we need soft or hard links.
31159 LN_S=$lt_LN_S
31160
31161 # What is the maximum length of a command?
31162 max_cmd_len=$max_cmd_len
31163
31164 # Object file suffix (normally "o").
31165 objext=$ac_objext
31166
31167 # Executable file suffix (normally "").
31168 exeext=$exeext
31169
31170 # whether the shell understands "unset".
31171 lt_unset=$lt_unset
31172
31173 # turn spaces into newlines.
31174 SP2NL=$lt_lt_SP2NL
31175
31176 # turn newlines into spaces.
31177 NL2SP=$lt_lt_NL2SP
31178
31179 # How to create reloadable object files.
31180 reload_flag=$lt_reload_flag
31181 reload_cmds=$lt_reload_cmds
31182
31183 # An object symbol dumper.
31184 OBJDUMP=$lt_OBJDUMP
31185
31186 # Method to check whether dependent libraries are shared objects.
31187 deplibs_check_method=$lt_deplibs_check_method
31188
31189 # Command to use when deplibs_check_method == "file_magic".
31190 file_magic_cmd=$lt_file_magic_cmd
31191
31192 # The archiver.
31193 AR=$lt_AR
31194 AR_FLAGS=$lt_AR_FLAGS
31195
31196 # A symbol stripping program.
31197 STRIP=$lt_STRIP
31198
31199 # Commands used to install an old-style archive.
31200 RANLIB=$lt_RANLIB
31201 old_postinstall_cmds=$lt_old_postinstall_cmds
31202 old_postuninstall_cmds=$lt_old_postuninstall_cmds
31203
31204 # A C compiler.
31205 LTCC=$lt_CC
31206
31207 # LTCC compiler flags.
31208 LTCFLAGS=$lt_CFLAGS
31209
31210 # Take the output of nm and produce a listing of raw symbols and C names.
31211 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
31212
31213 # Transform the output of nm in a proper C declaration.
31214 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
31215
31216 # Transform the output of nm in a C name address pair.
31217 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
31218
31219 # Transform the output of nm in a C name address pair when lib prefix is needed.
31220 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
31221
31222 # The name of the directory that contains temporary libtool files.
31223 objdir=$objdir
31224
31225 # Shell to use when invoking shell scripts.
31226 SHELL=$lt_SHELL
31227
31228 # An echo program that does not interpret backslashes.
31229 ECHO=$lt_ECHO
31230
31231 # Used to examine libraries when file_magic_cmd begins with "file".
31232 MAGIC_CMD=$MAGIC_CMD
31233
31234 # Must we lock files when doing compilation?
31235 need_locks=$lt_need_locks
31236
31237 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
31238 DSYMUTIL=$lt_DSYMUTIL
31239
31240 # Tool to change global to local symbols on Mac OS X.
31241 NMEDIT=$lt_NMEDIT
31242
31243 # Tool to manipulate fat objects and archives on Mac OS X.
31244 LIPO=$lt_LIPO
31245
31246 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
31247 OTOOL=$lt_OTOOL
31248
31249 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
31250 OTOOL64=$lt_OTOOL64
31251
31252 # Old archive suffix (normally "a").
31253 libext=$libext
31254
31255 # Shared library suffix (normally ".so").
31256 shrext_cmds=$lt_shrext_cmds
31257
31258 # The commands to extract the exported symbol list from a shared archive.
31259 extract_expsyms_cmds=$lt_extract_expsyms_cmds
31260
31261 # Variables whose values should be saved in libtool wrapper scripts and
31262 # restored at link time.
31263 variables_saved_for_relink=$lt_variables_saved_for_relink
31264
31265 # Do we need the "lib" prefix for modules?
31266 need_lib_prefix=$need_lib_prefix
31267
31268 # Do we need a version for libraries?
31269 need_version=$need_version
31270
31271 # Library versioning type.
31272 version_type=$version_type
31273
31274 # Shared library runtime path variable.
31275 runpath_var=$runpath_var
31276
31277 # Shared library path variable.
31278 shlibpath_var=$shlibpath_var
31279
31280 # Is shlibpath searched before the hard-coded library search path?
31281 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
31282
31283 # Format of library name prefix.
31284 libname_spec=$lt_libname_spec
31285
31286 # List of archive names.  First name is the real one, the rest are links.
31287 # The last name is the one that the linker finds with -lNAME
31288 library_names_spec=$lt_library_names_spec
31289
31290 # The coded name of the library, if different from the real name.
31291 soname_spec=$lt_soname_spec
31292
31293 # Command to use after installation of a shared archive.
31294 postinstall_cmds=$lt_postinstall_cmds
31295
31296 # Command to use after uninstallation of a shared archive.
31297 postuninstall_cmds=$lt_postuninstall_cmds
31298
31299 # Commands used to finish a libtool library installation in a directory.
31300 finish_cmds=$lt_finish_cmds
31301
31302 # As "finish_cmds", except a single script fragment to be evaled but
31303 # not shown.
31304 finish_eval=$lt_finish_eval
31305
31306 # Whether we should hardcode library paths into libraries.
31307 hardcode_into_libs=$hardcode_into_libs
31308
31309 # Compile-time system search path for libraries.
31310 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
31311
31312 # Run-time system search path for libraries.
31313 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
31314
31315 # Whether dlopen is supported.
31316 dlopen_support=$enable_dlopen
31317
31318 # Whether dlopen of programs is supported.
31319 dlopen_self=$enable_dlopen_self
31320
31321 # Whether dlopen of statically linked programs is supported.
31322 dlopen_self_static=$enable_dlopen_self_static
31323
31324 # Commands to strip libraries.
31325 old_striplib=$lt_old_striplib
31326 striplib=$lt_striplib
31327
31328
31329 # The linker used to build libraries.
31330 LD=$lt_LD
31331
31332 # Commands used to build an old-style archive.
31333 old_archive_cmds=$lt_old_archive_cmds
31334
31335 # A language specific compiler.
31336 CC=$lt_compiler
31337
31338 # Is the compiler the GNU compiler?
31339 with_gcc=$GCC
31340
31341 # Compiler flag to turn off builtin functions.
31342 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
31343
31344 # How to pass a linker flag through the compiler.
31345 wl=$lt_lt_prog_compiler_wl
31346
31347 # Additional compiler flags for building library objects.
31348 pic_flag=$lt_lt_prog_compiler_pic
31349
31350 # Compiler flag to prevent dynamic linking.
31351 link_static_flag=$lt_lt_prog_compiler_static
31352
31353 # Does compiler simultaneously support -c and -o options?
31354 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
31355
31356 # Whether or not to add -lc for building shared libraries.
31357 build_libtool_need_lc=$archive_cmds_need_lc
31358
31359 # Whether or not to disallow shared libs when runtime libs are static.
31360 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
31361
31362 # Compiler flag to allow reflexive dlopens.
31363 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
31364
31365 # Compiler flag to generate shared objects directly from archives.
31366 whole_archive_flag_spec=$lt_whole_archive_flag_spec
31367
31368 # Whether the compiler copes with passing no objects directly.
31369 compiler_needs_object=$lt_compiler_needs_object
31370
31371 # Create an old-style archive from a shared archive.
31372 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
31373
31374 # Create a temporary old-style archive to link instead of a shared archive.
31375 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
31376
31377 # Commands used to build a shared archive.
31378 archive_cmds=$lt_archive_cmds
31379 archive_expsym_cmds=$lt_archive_expsym_cmds
31380
31381 # Commands used to build a loadable module if different from building
31382 # a shared archive.
31383 module_cmds=$lt_module_cmds
31384 module_expsym_cmds=$lt_module_expsym_cmds
31385
31386 # Whether we are building with GNU ld or not.
31387 with_gnu_ld=$lt_with_gnu_ld
31388
31389 # Flag that allows shared libraries with undefined symbols to be built.
31390 allow_undefined_flag=$lt_allow_undefined_flag
31391
31392 # Flag that enforces no undefined symbols.
31393 no_undefined_flag=$lt_no_undefined_flag
31394
31395 # Flag to hardcode \$libdir into a binary during linking.
31396 # This must work even if \$libdir does not exist
31397 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
31398
31399 # If ld is used when linking, flag to hardcode \$libdir into a binary
31400 # during linking.  This must work even if \$libdir does not exist.
31401 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
31402
31403 # Whether we need a single "-rpath" flag with a separated argument.
31404 hardcode_libdir_separator=$lt_hardcode_libdir_separator
31405
31406 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
31407 # DIR into the resulting binary.
31408 hardcode_direct=$hardcode_direct
31409
31410 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
31411 # DIR into the resulting binary and the resulting library dependency is
31412 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
31413 # library is relocated.
31414 hardcode_direct_absolute=$hardcode_direct_absolute
31415
31416 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
31417 # into the resulting binary.
31418 hardcode_minus_L=$hardcode_minus_L
31419
31420 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
31421 # into the resulting binary.
31422 hardcode_shlibpath_var=$hardcode_shlibpath_var
31423
31424 # Set to "yes" if building a shared library automatically hardcodes DIR
31425 # into the library and all subsequent libraries and executables linked
31426 # against it.
31427 hardcode_automatic=$hardcode_automatic
31428
31429 # Set to yes if linker adds runtime paths of dependent libraries
31430 # to runtime path list.
31431 inherit_rpath=$inherit_rpath
31432
31433 # Whether libtool must link a program against all its dependency libraries.
31434 link_all_deplibs=$link_all_deplibs
31435
31436 # Fix the shell variable \$srcfile for the compiler.
31437 fix_srcfile_path=$lt_fix_srcfile_path
31438
31439 # Set to "yes" if exported symbols are required.
31440 always_export_symbols=$always_export_symbols
31441
31442 # The commands to list exported symbols.
31443 export_symbols_cmds=$lt_export_symbols_cmds
31444
31445 # Symbols that should not be listed in the preloaded symbols.
31446 exclude_expsyms=$lt_exclude_expsyms
31447
31448 # Symbols that must always be exported.
31449 include_expsyms=$lt_include_expsyms
31450
31451 # Commands necessary for linking programs (against libraries) with templates.
31452 prelink_cmds=$lt_prelink_cmds
31453
31454 # Specify filename containing input files.
31455 file_list_spec=$lt_file_list_spec
31456
31457 # How to hardcode a shared library path into an executable.
31458 hardcode_action=$hardcode_action
31459
31460 # The directories searched by this compiler when creating a shared library.
31461 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
31462
31463 # Dependencies to place before and after the objects being linked to
31464 # create a shared library.
31465 predep_objects=$lt_predep_objects
31466 postdep_objects=$lt_postdep_objects
31467 predeps=$lt_predeps
31468 postdeps=$lt_postdeps
31469
31470 # The library search path used internally by the compiler when linking
31471 # a shared library.
31472 compiler_lib_search_path=$lt_compiler_lib_search_path
31473
31474 # ### END LIBTOOL CONFIG
31475
31476 _LT_EOF
31477
31478   case $host_os in
31479   aix3*)
31480     cat <<\_LT_EOF >> "$cfgfile"
31481 # AIX sometimes has problems with the GCC collect2 program.  For some
31482 # reason, if we set the COLLECT_NAMES environment variable, the problems
31483 # vanish in a puff of smoke.
31484 if test "X${COLLECT_NAMES+set}" != Xset; then
31485   COLLECT_NAMES=
31486   export COLLECT_NAMES
31487 fi
31488 _LT_EOF
31489     ;;
31490   esac
31491
31492
31493 ltmain="$ac_aux_dir/ltmain.sh"
31494
31495
31496   # We use sed instead of cat because bash on DJGPP gets confused if
31497   # if finds mixed CR/LF and LF-only lines.  Since sed operates in
31498   # text mode, it properly converts lines to CR/LF.  This bash problem
31499   # is reportedly fixed, but why not run on old versions too?
31500   sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
31501     || (rm -f "$cfgfile"; exit 1)
31502
31503   case $xsi_shell in
31504   yes)
31505     cat << \_LT_EOF >> "$cfgfile"
31506
31507 # func_dirname file append nondir_replacement
31508 # Compute the dirname of FILE.  If nonempty, add APPEND to the result,
31509 # otherwise set result to NONDIR_REPLACEMENT.
31510 func_dirname ()
31511 {
31512   case ${1} in
31513     */*) func_dirname_result="${1%/*}${2}" ;;
31514     *  ) func_dirname_result="${3}" ;;
31515   esac
31516 }
31517
31518 # func_basename file
31519 func_basename ()
31520 {
31521   func_basename_result="${1##*/}"
31522 }
31523
31524 # func_dirname_and_basename file append nondir_replacement
31525 # perform func_basename and func_dirname in a single function
31526 # call:
31527 #   dirname:  Compute the dirname of FILE.  If nonempty,
31528 #             add APPEND to the result, otherwise set result
31529 #             to NONDIR_REPLACEMENT.
31530 #             value returned in "$func_dirname_result"
31531 #   basename: Compute filename of FILE.
31532 #             value retuned in "$func_basename_result"
31533 # Implementation must be kept synchronized with func_dirname
31534 # and func_basename. For efficiency, we do not delegate to
31535 # those functions but instead duplicate the functionality here.
31536 func_dirname_and_basename ()
31537 {
31538   case ${1} in
31539     */*) func_dirname_result="${1%/*}${2}" ;;
31540     *  ) func_dirname_result="${3}" ;;
31541   esac
31542   func_basename_result="${1##*/}"
31543 }
31544
31545 # func_stripname prefix suffix name
31546 # strip PREFIX and SUFFIX off of NAME.
31547 # PREFIX and SUFFIX must not contain globbing or regex special
31548 # characters, hashes, percent signs, but SUFFIX may contain a leading
31549 # dot (in which case that matches only a dot).
31550 func_stripname ()
31551 {
31552   # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
31553   # positional parameters, so assign one to ordinary parameter first.
31554   func_stripname_result=${3}
31555   func_stripname_result=${func_stripname_result#"${1}"}
31556   func_stripname_result=${func_stripname_result%"${2}"}
31557 }
31558
31559 # func_opt_split
31560 func_opt_split ()
31561 {
31562   func_opt_split_opt=${1%%=*}
31563   func_opt_split_arg=${1#*=}
31564 }
31565
31566 # func_lo2o object
31567 func_lo2o ()
31568 {
31569   case ${1} in
31570     *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
31571     *)    func_lo2o_result=${1} ;;
31572   esac
31573 }
31574
31575 # func_xform libobj-or-source
31576 func_xform ()
31577 {
31578   func_xform_result=${1%.*}.lo
31579 }
31580
31581 # func_arith arithmetic-term...
31582 func_arith ()
31583 {
31584   func_arith_result=$(( $* ))
31585 }
31586
31587 # func_len string
31588 # STRING may not start with a hyphen.
31589 func_len ()
31590 {
31591   func_len_result=${#1}
31592 }
31593
31594 _LT_EOF
31595     ;;
31596   *) # Bourne compatible functions.
31597     cat << \_LT_EOF >> "$cfgfile"
31598
31599 # func_dirname file append nondir_replacement
31600 # Compute the dirname of FILE.  If nonempty, add APPEND to the result,
31601 # otherwise set result to NONDIR_REPLACEMENT.
31602 func_dirname ()
31603 {
31604   # Extract subdirectory from the argument.
31605   func_dirname_result=`$ECHO "X${1}" | $Xsed -e "$dirname"`
31606   if test "X$func_dirname_result" = "X${1}"; then
31607     func_dirname_result="${3}"
31608   else
31609     func_dirname_result="$func_dirname_result${2}"
31610   fi
31611 }
31612
31613 # func_basename file
31614 func_basename ()
31615 {
31616   func_basename_result=`$ECHO "X${1}" | $Xsed -e "$basename"`
31617 }
31618
31619
31620 # func_stripname prefix suffix name
31621 # strip PREFIX and SUFFIX off of NAME.
31622 # PREFIX and SUFFIX must not contain globbing or regex special
31623 # characters, hashes, percent signs, but SUFFIX may contain a leading
31624 # dot (in which case that matches only a dot).
31625 # func_strip_suffix prefix name
31626 func_stripname ()
31627 {
31628   case ${2} in
31629     .*) func_stripname_result=`$ECHO "X${3}" \
31630            | $Xsed -e "s%^${1}%%" -e "s%\\\\${2}\$%%"`;;
31631     *)  func_stripname_result=`$ECHO "X${3}" \
31632            | $Xsed -e "s%^${1}%%" -e "s%${2}\$%%"`;;
31633   esac
31634 }
31635
31636 # sed scripts:
31637 my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
31638 my_sed_long_arg='1s/^-[^=]*=//'
31639
31640 # func_opt_split
31641 func_opt_split ()
31642 {
31643   func_opt_split_opt=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_opt"`
31644   func_opt_split_arg=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_arg"`
31645 }
31646
31647 # func_lo2o object
31648 func_lo2o ()
31649 {
31650   func_lo2o_result=`$ECHO "X${1}" | $Xsed -e "$lo2o"`
31651 }
31652
31653 # func_xform libobj-or-source
31654 func_xform ()
31655 {
31656   func_xform_result=`$ECHO "X${1}" | $Xsed -e 's/\.[^.]*$/.lo/'`
31657 }
31658
31659 # func_arith arithmetic-term...
31660 func_arith ()
31661 {
31662   func_arith_result=`expr "$@"`
31663 }
31664
31665 # func_len string
31666 # STRING may not start with a hyphen.
31667 func_len ()
31668 {
31669   func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
31670 }
31671
31672 _LT_EOF
31673 esac
31674
31675 case $lt_shell_append in
31676   yes)
31677     cat << \_LT_EOF >> "$cfgfile"
31678
31679 # func_append var value
31680 # Append VALUE to the end of shell variable VAR.
31681 func_append ()
31682 {
31683   eval "$1+=\$2"
31684 }
31685 _LT_EOF
31686     ;;
31687   *)
31688     cat << \_LT_EOF >> "$cfgfile"
31689
31690 # func_append var value
31691 # Append VALUE to the end of shell variable VAR.
31692 func_append ()
31693 {
31694   eval "$1=\$$1\$2"
31695 }
31696
31697 _LT_EOF
31698     ;;
31699   esac
31700
31701
31702   sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
31703     || (rm -f "$cfgfile"; exit 1)
31704
31705   mv -f "$cfgfile" "$ofile" ||
31706     (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
31707   chmod +x "$ofile"
31708
31709
31710     cat <<_LT_EOF >> "$ofile"
31711
31712 # ### BEGIN LIBTOOL TAG CONFIG: CXX
31713
31714 # The linker used to build libraries.
31715 LD=$lt_LD_CXX
31716
31717 # Commands used to build an old-style archive.
31718 old_archive_cmds=$lt_old_archive_cmds_CXX
31719
31720 # A language specific compiler.
31721 CC=$lt_compiler_CXX
31722
31723 # Is the compiler the GNU compiler?
31724 with_gcc=$GCC_CXX
31725
31726 # Compiler flag to turn off builtin functions.
31727 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
31728
31729 # How to pass a linker flag through the compiler.
31730 wl=$lt_lt_prog_compiler_wl_CXX
31731
31732 # Additional compiler flags for building library objects.
31733 pic_flag=$lt_lt_prog_compiler_pic_CXX
31734
31735 # Compiler flag to prevent dynamic linking.
31736 link_static_flag=$lt_lt_prog_compiler_static_CXX
31737
31738 # Does compiler simultaneously support -c and -o options?
31739 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
31740
31741 # Whether or not to add -lc for building shared libraries.
31742 build_libtool_need_lc=$archive_cmds_need_lc_CXX
31743
31744 # Whether or not to disallow shared libs when runtime libs are static.
31745 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
31746
31747 # Compiler flag to allow reflexive dlopens.
31748 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
31749
31750 # Compiler flag to generate shared objects directly from archives.
31751 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
31752
31753 # Whether the compiler copes with passing no objects directly.
31754 compiler_needs_object=$lt_compiler_needs_object_CXX
31755
31756 # Create an old-style archive from a shared archive.
31757 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
31758
31759 # Create a temporary old-style archive to link instead of a shared archive.
31760 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
31761
31762 # Commands used to build a shared archive.
31763 archive_cmds=$lt_archive_cmds_CXX
31764 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
31765
31766 # Commands used to build a loadable module if different from building
31767 # a shared archive.
31768 module_cmds=$lt_module_cmds_CXX
31769 module_expsym_cmds=$lt_module_expsym_cmds_CXX
31770
31771 # Whether we are building with GNU ld or not.
31772 with_gnu_ld=$lt_with_gnu_ld_CXX
31773
31774 # Flag that allows shared libraries with undefined symbols to be built.
31775 allow_undefined_flag=$lt_allow_undefined_flag_CXX
31776
31777 # Flag that enforces no undefined symbols.
31778 no_undefined_flag=$lt_no_undefined_flag_CXX
31779
31780 # Flag to hardcode \$libdir into a binary during linking.
31781 # This must work even if \$libdir does not exist
31782 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
31783
31784 # If ld is used when linking, flag to hardcode \$libdir into a binary
31785 # during linking.  This must work even if \$libdir does not exist.
31786 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
31787
31788 # Whether we need a single "-rpath" flag with a separated argument.
31789 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
31790
31791 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
31792 # DIR into the resulting binary.
31793 hardcode_direct=$hardcode_direct_CXX
31794
31795 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
31796 # DIR into the resulting binary and the resulting library dependency is
31797 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
31798 # library is relocated.
31799 hardcode_direct_absolute=$hardcode_direct_absolute_CXX
31800
31801 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
31802 # into the resulting binary.
31803 hardcode_minus_L=$hardcode_minus_L_CXX
31804
31805 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
31806 # into the resulting binary.
31807 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
31808
31809 # Set to "yes" if building a shared library automatically hardcodes DIR
31810 # into the library and all subsequent libraries and executables linked
31811 # against it.
31812 hardcode_automatic=$hardcode_automatic_CXX
31813
31814 # Set to yes if linker adds runtime paths of dependent libraries
31815 # to runtime path list.
31816 inherit_rpath=$inherit_rpath_CXX
31817
31818 # Whether libtool must link a program against all its dependency libraries.
31819 link_all_deplibs=$link_all_deplibs_CXX
31820
31821 # Fix the shell variable \$srcfile for the compiler.
31822 fix_srcfile_path=$lt_fix_srcfile_path_CXX
31823
31824 # Set to "yes" if exported symbols are required.
31825 always_export_symbols=$always_export_symbols_CXX
31826
31827 # The commands to list exported symbols.
31828 export_symbols_cmds=$lt_export_symbols_cmds_CXX
31829
31830 # Symbols that should not be listed in the preloaded symbols.
31831 exclude_expsyms=$lt_exclude_expsyms_CXX
31832
31833 # Symbols that must always be exported.
31834 include_expsyms=$lt_include_expsyms_CXX
31835
31836 # Commands necessary for linking programs (against libraries) with templates.
31837 prelink_cmds=$lt_prelink_cmds_CXX
31838
31839 # Specify filename containing input files.
31840 file_list_spec=$lt_file_list_spec_CXX
31841
31842 # How to hardcode a shared library path into an executable.
31843 hardcode_action=$hardcode_action_CXX
31844
31845 # The directories searched by this compiler when creating a shared library.
31846 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
31847
31848 # Dependencies to place before and after the objects being linked to
31849 # create a shared library.
31850 predep_objects=$lt_predep_objects_CXX
31851 postdep_objects=$lt_postdep_objects_CXX
31852 predeps=$lt_predeps_CXX
31853 postdeps=$lt_postdeps_CXX
31854
31855 # The library search path used internally by the compiler when linking
31856 # a shared library.
31857 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
31858
31859 # ### END LIBTOOL TAG CONFIG: CXX
31860 _LT_EOF
31861
31862  ;;
31863     "default-1":C)
31864     for ac_file in $CONFIG_FILES; do
31865       # Support "outfile[:infile[:infile...]]"
31866       case "$ac_file" in
31867         *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
31868       esac
31869       # PO directories have a Makefile.in generated from Makefile.in.in.
31870       case "$ac_file" in */Makefile.in)
31871         # Adjust a relative srcdir.
31872         ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
31873         ac_dir_suffix="/`echo "$ac_dir"|sed 's%^\./%%'`"
31874         ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
31875         # In autoconf-2.13 it is called $ac_given_srcdir.
31876         # In autoconf-2.50 it is called $srcdir.
31877         test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
31878         case "$ac_given_srcdir" in
31879           .)  top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
31880           /*) top_srcdir="$ac_given_srcdir" ;;
31881           *)  top_srcdir="$ac_dots$ac_given_srcdir" ;;
31882         esac
31883         # Treat a directory as a PO directory if and only if it has a
31884         # POTFILES.in file. This allows packages to have multiple PO
31885         # directories under different names or in different locations.
31886         if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
31887           rm -f "$ac_dir/POTFILES"
31888           test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
31889           cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[   ]*\$/d" -e "s,.*,     $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES"
31890           POMAKEFILEDEPS="POTFILES.in"
31891           # ALL_LINGUAS, POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES depend
31892           # on $ac_dir but don't depend on user-specified configuration
31893           # parameters.
31894           if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
31895             # The LINGUAS file contains the set of available languages.
31896             if test -n "$OBSOLETE_ALL_LINGUAS"; then
31897               test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete"
31898             fi
31899             ALL_LINGUAS_=`sed -e "/^#/d" -e "s/#.*//" "$ac_given_srcdir/$ac_dir/LINGUAS"`
31900             # Hide the ALL_LINGUAS assigment from automake.
31901             eval 'ALL_LINGUAS''=$ALL_LINGUAS_'
31902             POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS"
31903           else
31904             # The set of available languages was given in configure.in.
31905             eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS'
31906           fi
31907           # Compute POFILES
31908           # as      $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).po)
31909           # Compute UPDATEPOFILES
31910           # as      $(foreach lang, $(ALL_LINGUAS), $(lang).po-update)
31911           # Compute DUMMYPOFILES
31912           # as      $(foreach lang, $(ALL_LINGUAS), $(lang).nop)
31913           # Compute GMOFILES
31914           # as      $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).gmo)
31915           case "$ac_given_srcdir" in
31916             .) srcdirpre= ;;
31917             *) srcdirpre='$(srcdir)/' ;;
31918           esac
31919           POFILES=
31920           UPDATEPOFILES=
31921           DUMMYPOFILES=
31922           GMOFILES=
31923           for lang in $ALL_LINGUAS; do
31924             POFILES="$POFILES $srcdirpre$lang.po"
31925             UPDATEPOFILES="$UPDATEPOFILES $lang.po-update"
31926             DUMMYPOFILES="$DUMMYPOFILES $lang.nop"
31927             GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
31928           done
31929           # CATALOGS depends on both $ac_dir and the user's LINGUAS
31930           # environment variable.
31931           INST_LINGUAS=
31932           if test -n "$ALL_LINGUAS"; then
31933             for presentlang in $ALL_LINGUAS; do
31934               useit=no
31935               if test "%UNSET%" != "$LINGUAS"; then
31936                 desiredlanguages="$LINGUAS"
31937               else
31938                 desiredlanguages="$ALL_LINGUAS"
31939               fi
31940               for desiredlang in $desiredlanguages; do
31941                 # Use the presentlang catalog if desiredlang is
31942                 #   a. equal to presentlang, or
31943                 #   b. a variant of presentlang (because in this case,
31944                 #      presentlang can be used as a fallback for messages
31945                 #      which are not translated in the desiredlang catalog).
31946                 case "$desiredlang" in
31947                   "$presentlang"*) useit=yes;;
31948                 esac
31949               done
31950               if test $useit = yes; then
31951                 INST_LINGUAS="$INST_LINGUAS $presentlang"
31952               fi
31953             done
31954           fi
31955           CATALOGS=
31956           if test -n "$INST_LINGUAS"; then
31957             for lang in $INST_LINGUAS; do
31958               CATALOGS="$CATALOGS $lang.gmo"
31959             done
31960           fi
31961           test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
31962           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"
31963           for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do
31964             if test -f "$f"; then
31965               case "$f" in
31966                 *.orig | *.bak | *~) ;;
31967                 *) cat "$f" >> "$ac_dir/Makefile" ;;
31968               esac
31969             fi
31970           done
31971         fi
31972         ;;
31973       esac
31974     done ;;
31975     "default":C)
31976  ;;
31977
31978   esac
31979 done # for ac_tag
31980
31981
31982 as_fn_exit 0
31983 _ACEOF
31984 ac_clean_files=$ac_clean_files_save
31985
31986 test $ac_write_fail = 0 ||
31987   as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
31988
31989
31990 # configure is writing to config.log, and then calls config.status.
31991 # config.status does its own redirection, appending to config.log.
31992 # Unfortunately, on DOS this fails, as config.log is still kept open
31993 # by configure, so config.status won't be able to write to it; its
31994 # output is simply discarded.  So we exec the FD to /dev/null,
31995 # effectively closing config.log, so it can be properly (re)opened and
31996 # appended to by config.status.  When coming back to configure, we
31997 # need to make the FD available again.
31998 if test "$no_create" != yes; then
31999   ac_cs_success=:
32000   ac_config_status_args=
32001   test "$silent" = yes &&
32002     ac_config_status_args="$ac_config_status_args --quiet"
32003   exec 5>/dev/null
32004   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
32005   exec 5>>config.log
32006   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
32007   # would make configure fail if this is the last instruction.
32008   $ac_cs_success || as_fn_exit $?
32009 fi
32010 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
32011   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
32012 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
32013 fi
32014
32015
32016 if test "${support_bat}" = "yes" ; then
32017    if test "x$QMAKE" = "xnone"; then
32018       as_fn_error "Could not find qmake $PATH. Check your Qt installation" "$LINENO" 5
32019    fi
32020
32021    QMAKEBIN="qmake"
32022    cd src/qt-console
32023    echo "Creating bat Makefile"
32024    touch bat
32025    chmod 755 bat
32026    rm -f Makefile
32027    $QMAKEBIN
32028    ${MAKE:-make} clean
32029    cd ${BUILD_DIR}
32030 fi
32031
32032 if test X"$GCC" = "Xyes" ; then
32033   echo "Doing make of dependencies"
32034   ${MAKE:-make} depend
32035 fi
32036
32037 cd src/qt-console
32038 chmod 755 install_conf_file build-depkgs-qt-console
32039 cd ${BUILD_DIR}
32040
32041 cd scripts
32042 chmod 755 startmysql stopmysql bacula startit stopit btraceback mtx-changer
32043 chmod 755 dvd-handler dvd-simulator
32044 chmod 755 bconsole gconsole mtx-changer devel_bacula logrotate
32045 cd ..
32046
32047 c=updatedb
32048 chmod 755 $c/update_mysql_tables_10_to_11   $c/update_sqlite3_tables_10_to_11
32049 chmod 755 $c/update_postgresql_tables_10_to_11
32050 chmod 755 $c/update_mysql_tables_11_to_12   $c/update_sqlite3_tables_11_to_12
32051 chmod 755 $c/update_postgresql_tables_11_to_12
32052
32053
32054 c=src/cats
32055
32056 chmod 755 $c/create_bacula_database   $c/update_bacula_tables  $c/make_bacula_tables
32057 chmod 755 $c/grant_bacula_privileges  $c/drop_bacula_tables    $c/drop_bacula_database
32058
32059 chmod 755 $c/create_mysql_database    $c/update_mysql_tables   $c/make_mysql_tables
32060 chmod 755 $c/grant_mysql_privileges   $c/drop_mysql_tables     $c/drop_mysql_database
32061
32062 chmod 755 $c/create_sqlite3_database   $c/update_sqlite3_tables  $c/make_sqlite3_tables
32063 chmod 755 $c/grant_sqlite3_privileges  $c/drop_sqlite3_tables    $c/drop_sqlite3_database
32064
32065 chmod 755 $c/create_postgresql_database  $c/update_postgresql_tables $c/make_postgresql_tables
32066 chmod 755 $c/grant_postgresql_privileges $c/drop_postgresql_tables   $c/drop_postgresql_database
32067
32068 chmod 755 $c/create_ingres_database  $c/update_ingres_tables $c/make_ingres_tables
32069 chmod 755 $c/grant_ingres_privileges $c/drop_ingres_tables   $c/drop_ingres_database
32070
32071
32072 chmod 755 $c/make_catalog_backup $c/delete_catalog_backup  $c/make_catalog_backup.pl
32073 chmod 755 $c/sqlite
32074 chmod 755 $c/mysql
32075
32076 chmod 755 src/win32/build-depkgs-mingw32
32077
32078 if test "x$ac_cv_sys_largefile_CFLAGS" != "xno" ; then
32079    largefile_support="yes"
32080 fi
32081
32082 if test X"$GCC" = "Xyes" ; then
32083                CCVERSION=`${CC} --version | tr '\n' ' ' | cut -f 3 -d ' '`
32084    if test "x${CCVERSION}" = "x" ; then
32085       CCVERSION=`${CC} --version | tr '\n' ' ' | cut -f 1 -d ' '`
32086    fi
32087    CXXVERSION=`${CXX} --version | tr '\n' ' ' | cut -f 3 -d ' '`
32088    if test x"${CXXVERSION}" = x ; then
32089       CXXVERSION=`${CXX} --version | tr '\n' ' ' | cut -f 1 -d ' '`
32090    fi
32091 fi
32092
32093 # clean up any old junk
32094 echo " "
32095 echo "Cleaning up"
32096 echo " "
32097 ${MAKE:-make} clean
32098
32099 if test "x${db_type}" = "xInternal" ; then
32100    echo " "
32101    echo " "
32102    echo "You have not specified either --enable-client-only or one of the"
32103    echo "  supported databases: MySQL, PostgreSQL, Ingres, SQLite3 or DBI."
32104    echo "  This is not permitted. Please reconfigure."
32105    echo " "
32106    echo "Aborting the configuration ..."
32107    echo " "
32108    echo " "
32109    exit 1
32110 fi
32111
32112 echo "
32113 Configuration on `date`:
32114
32115    Host:                    ${host}${post_host} -- ${DISTNAME} ${DISTVER}
32116    Bacula version:          ${BACULA} ${VERSION} (${DATE})
32117    Source code location:    ${srcdir}
32118    Install binaries:        ${sbindir}
32119    Install libraries:       ${libdir}
32120    Install config files:    ${sysconfdir}
32121    Scripts directory:       ${scriptdir}
32122    Archive directory:       ${archivedir}
32123    Working directory:       ${working_dir}
32124    PID directory:           ${piddir}
32125    Subsys directory:        ${subsysdir}
32126    Man directory:           ${mandir}
32127    Data directory:          ${datarootdir}
32128    Plugin directory:        ${plugindir}
32129    C Compiler:              ${CC} ${CCVERSION}
32130    C++ Compiler:            ${CXX} ${CXXVERSION}
32131    Compiler flags:          ${WCFLAGS} ${CFLAGS}
32132    Linker flags:            ${WLDFLAGS} ${LDFLAGS}
32133    Libraries:               ${LIBS}
32134    Statically Linked Tools: ${support_static_tools}
32135    Statically Linked FD:    ${support_static_fd}
32136    Statically Linked SD:    ${support_static_sd}
32137    Statically Linked DIR:   ${support_static_dir}
32138    Statically Linked CONS:  ${support_static_cons}
32139    Database type:           ${db_type}
32140    Database port:           ${db_port}
32141    Database lib:            ${DB_LIBS}
32142    Database name:           ${db_name}
32143    Database user:           ${db_user}
32144
32145    Job Output Email:        ${job_email}
32146    Traceback Email:         ${dump_email}
32147    SMTP Host Address:       ${smtp_host}
32148
32149    Director Port:           ${dir_port}
32150    File daemon Port:        ${fd_port}
32151    Storage daemon Port:     ${sd_port}
32152
32153    Director User:           ${dir_user}
32154    Director Group:          ${dir_group}
32155    Storage Daemon User:     ${sd_user}
32156    Storage DaemonGroup:     ${sd_group}
32157    File Daemon User:        ${fd_user}
32158    File Daemon Group:       ${fd_group}
32159
32160    SQL binaries Directory   ${SQL_BINDIR}
32161
32162    Large file support:      $largefile_support
32163    Bacula conio support:    ${got_conio} ${CONS_LIBS}
32164    readline support:        ${got_readline} ${PRTREADLINE_SRC}
32165    TCP Wrappers support:    ${TCPW_MSG} ${WRAPLIBS}
32166    TLS support:             ${support_tls}
32167    Encryption support:      ${support_crypto}
32168    ZLIB support:            ${have_zlib}
32169    enable-smartalloc:       ${support_smartalloc}
32170    enable-lockmgr:          ${support_lockmgr}
32171    bat support:             ${support_bat}
32172    enable-gnome:            ${support_gnome} ${gnome_version}
32173    enable-bwx-console:      ${support_wx_console} ${wx_version}
32174    enable-tray-monitor:     ${support_tray_monitor}
32175    client-only:             ${build_client_only}
32176    build-dird:              ${build_dird}
32177    build-stored:            ${build_stored}
32178    Plugin support:          ${have_plugins}
32179    AFS support:             ${have_afs}
32180    ACL support:             ${have_acl}
32181    XATTR support:           ${have_xattr}
32182    Python support:          ${support_python} ${PYTHON_LIBS}
32183    Batch insert enabled:    ${support_batch_insert}
32184
32185   " > config.out
32186
32187 # create a small shell script useful for support with
32188 # configure options and config.out info
32189 cat > scripts/bacula_config << EOF
32190 #!/bin/sh
32191 cat << __EOC__
32192 $ $0 $ac_configure_args
32193 EOF
32194 cat config.out >> scripts/bacula_config
32195 echo __EOC__ >> scripts/bacula_config
32196 chmod 755 scripts/bacula_config
32197
32198 cat config.out
32199
32200 # Display a warning message if postgresql client lib is <= 8.1
32201 if test x$DB_TYPE = xpostgresql -a x$ac_cv_lib_pq_PQisthreadsafe != xyes \
32202         -a x$support_batch_insert = xyes
32203 then
32204         echo "WARNING: Your PostgreSQL client library is too old to detect "
32205         echo " if it was compiled with --enable-thread-safety, consider to"
32206         echo " upgrade it in order to avoid problems with Batch insert mode"
32207         echo
32208 fi